TCP/IP Networks. Table of Contents Computer networks, layers, protocols, interfaces; OSI reference model; TCP/IP reference model; Internet Protocol (operations,

Slides:



Advertisements
Similar presentations
Introduction to TCP/IP
Advertisements

Cisco 2 - Routers Perrine. J Page 14/30/2015 Chapter 10 TCP/IP Protocol Suite The function of the TCP/IP protocol stack is to transfer information from.
IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
CCNA 1 v3.1 Module 11 Review.
Chapter 2 Network Models.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.
Inside the Internet. INTERNET ARCHITECTURE The Internet system consists of a number of interconnected packet networks supporting communication among host.
Networks 1 CS502 Spring 2006 Network Input & Output CS-502 Operating Systems Spring 2006.
CS-3013 & CS-502, Summer 2006 Network Input & Output1 CS-3013 & CS-502, Summer 2006.
OSI Reference Model An overview. Standards and the internet International Organization for Standardization ISO 70’s.
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
1 Review of Important Networking Concepts Introductory material. This slide uses the example from the previous module to review important networking concepts:
CS 356 Systems Security Spring Dr. Indrajit Ray
Communication Network Protocols ----Krishna Priyanka Chebrolu.
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
Chapter Eleven An Introduction to TCP/IP. Objectives To compare TCP/IP’s layered structure to OSI To review the structure of an IP address To look at.
Data Communications and Networks
WXES2106 Network Technology Semester /2005 Chapter 4 TCP/IP CCNA1: Module 9, 10.3 and 11.
Chapter 9.
Chapter 2 Network Models
OSI Reference Model & Layered Communication Sritrusta Sukaridhoto.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
13/09/2015 Michael Chai; Behrouz Forouzan Staffordshire University School of Computing Transport layer and Application Layer Slide 1.
Jaringan Komputer Dasar OSI Transport Layer Aurelio Rahmadian.
Huda AL_Omairl - Network 71 Protocols and Network Software.
TCP/IP and the Internet ARPANET (1969) –R&D network funded by DARPA. –Packet Switching Survive nuclear war. –Experimental to operational (1975). –Not suitable.
Release 16/07/2009Jetking Infotrain Ltd. Assembling and Cabling Cisco Devices Chapter 3.
Computer Communication & Networks Lecture # 02 Nadeem Majeed Choudhary
Introduction to Telecommunications Babak Esfandiari (with material by Roger Impey and Qusay Mahmoud)
1 Review - OSI Model n OSI Reference Model u represents the communications process. u 7 layers: physical, data link, network, transport, session, presentation.
Advanced Higher Computing Computer Networking Topic 1: Network Protocols and Standards.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
10/13/20151 TCP/IP Transmission Control Protocol Internet Protocol.
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
TCP/IP Transport and Application (Topic 6)
UNDERSTANDING THE HOST-TO-HOST COMMUNICATIONS MODEL - OSI LAYER & TCP/IP MODEL 1.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Computer Security Workshops Networking 101. Reasons To Know Networking In Regard to Computer Security To understand the flow of information on the Internet.
Basic IP Protocol Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
Data Communications and Networks
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
1. Layered Architecture of Communication Networks: TCP/IP Model
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
Protocol Suits and Layering Models OSI Model Dr. Abraham UTPA.
Net 221D:Computer Networks Fundamentals
Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat.
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 5 – VoIP and the OSI Model.
Network Basics CS490 - Security in Computing Copyright © 2005 by Scott Orr and the Trustees of Indiana University.
Advanced Higher Computing Computer Networking Topic 1: Network Protocols and Standards.
Network Models. The OSI Model Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO). Model for understanding.
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat.
Introduction Chapter 1. TCP/IP Reference Model Why Another Model? Although the OSI reference model is universally recognized, the historical and technical.
Roadmap  Introduction to Basics  Computer Network – Components | Classification  Internet  Clients and Servers  Network Models  Protocol Layers.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
OSI model vs. TCP/IP MODEL
Part I. Overview of Data Communications and Networking
ISO/OSI Model and Collision Domain
Understand the OSI Model Part 2
Chapter 2 Network Models
OSI Reference Model Unit II
The TCP/IP Model.
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Presentation transcript:

TCP/IP Networks

Table of Contents Computer networks, layers, protocols, interfaces; OSI reference model; TCP/IP reference model; Internet Protocol (operations, addresses, classes); Routing; Transmission Control Protocol (TCP); User Datagram Protocol (UDP); Applications; Sockets.

Computer Networks Hosts; Routers - Gateways; Bridges - Repeaters; Data packets networks, ISDN, leased lines;

Computer networks classification Shared media: Bus Ring Backbone network Vs local access network

Switching Techniques Circuit switching; Message switching; Packet switching.

Protocol Hierarchies Physical medium Layer 5 protocol Layer 4 protocol Layer 4/5 interface Layer 3/4 interface Layer 2/3 interface Layer 1/2 interface Layer 5 Layer 1 Layer 2 Layer 3 Layer 4 Host A Layer 3 protocol Layer 2 protocol Layer 1 protocol Layer 5 Layer 1 Layer 2 Layer 3 Layer 4 Host A

Information Flow Layer 5 Layer 5 protocol M Layer 4 protocol H4 M H3 H4 M1H3 M2 H2 H3 H4 M1 T2H2 H3 M2 T2 M H4 M Source machinedestination machine H3 H4 M1H3 M2 H2 H3 H4 M1 T2H2 H3 M2 T2 Layer 2 Layer 1 Layer 4 Layer 3

OSI Reference Model The OSI reference model based on a proposal developed by ISO has seven layers. The principles that were applied to arrive at the seven layers are as follows: A layer should be created where a different level of abstraction is needed; Each layer should perform a well defined function; The function of each layer should be chosen with an eye toward defining internationally standardised protocols; The layer boundaries should be chosen to minimise the information flow across the interfaces; The number of layers should be large enough that distinct functions need not be thrown together in the same layer out of necessity, and small enough that the architecture does not become unwieldy.

OSI Layers Functions Application: provides user access to an OSI environment. Presentation:hides from the application layer differences in representation of information. Session:provides facilities for synchronization. Transport: enables QoS network facilities. Network: establishes, maintains and terminates connections. Data Link: controls data transfer over physical link, including error detection. Physical: provides electrical and mechanical control to transmit data bits onto communication medium. Application Presentation Session Transport Network Data link Physical

TCP/IP Reference Model The protocols came first and model is just a description of existing protocols; The TCP/IP reference model can not describe non-TCP/IP networks; The layers 5 and 6 are not present in this model. Application Transport Internet Host-to- Network

OSI vs TCP/IP Application Presentation Session Transport Network Data link Physical Application TCP IP Host-to- Network UDP

TCP/IP Detailed View IEEE MAC PING TCP IP UDP ARP RARP ICMP FTP, WWW,CMOT Telnet, rlogin, SMTP, TFTP, DNS, SNMP NFS, yp, etc. IEEE MAC IEEE MAC IEEE MAC EthernetToken busToken ringMANWAN IEEE 802.2, HDLC/X.25, PPP, SLIP

Internet Protocol (IP) Connectionless (i.e., each packet it treated independently, with no reference to packets that have long gone before); Cannot guarantee reliable, in-order delivery; PDU: IP datagram, which contains user data, source-destination IP addresses, other inf. (such as its length, time-to-live, etc.); IP main operations: Fragmentation/Reassembly and Routing

Fragmentation/Reassembly

Reassembly Two options: either in host B, or in router G2. It is preferred the first option. Gain: Simpler routers (no buffering of fragments) Loss:decrement of network utilisation and increment of packet loss probability.

IP Addresses l An IP address defines both the network and the host on the particular network; l An IP address has 4 bytes, so there are 4 billion addresses; l There is one-to-one correspondence between IP and physical addresses; l Example of an IP address : ; l An IP address includes two parts: a network identifier (netid) and a host identifier (hostid); l The netid defines the network, while the hostid differentiate a host of the network from the others; l The length of netid depends on the address class: there are three address classes, namely A,B and C;

Address Classes Class Α:0 + 7bits (netid=1byte) + 3bytes (hostid); Class B: bits (netid=2byte) + 2bytes (hostid); Class C: bits (netid=3byte) + 1bytes (hostid); l When a network is separated into subnetworks, the hostid defines both the host and the subnetwork of the host. = l A subnet mask (32-bit) indicates the split of hostid to subnetid and new hostid; l A subnet mask contains 1 for bits of netid and subnetid and 0 for bits of hostid; l Example: The mask defines 14 subnetorks and 4094 hosts for each subnetwork.

Domain Name Service (DNS) l The DNS servers correspond names such as “swpc94.telecom.ece.ntua.gr” in IP addresses like “ ”; l However, the traffic of TCP/IP packets uses IP addresses and not names; l Before an Internet process, there is a dialogue (approx. 1/10 sec) between the source host and the local DNS server for finding the IP address of the target host.

Routing Direct routing: In the same network, usage of the Address Resolution Protocol (ARP) and Reserve Address Resolution Protocol (RARP) Indirect routing: Between different networks, usage of the routers Routers They can manipulate packets from all the interconnected networks; They communicate with all the interconnected networks; They are “multihomed”, i.e., they have multiple IP addresses referring to all the interconnected networks; They perform routing algorithms using the netid of the IP datagrams.

Indirect Routing Example AB C I II III 3 separate physical networks, with their own addresses, packet size and pattern.

Indirect Routing Example AB C I II III D 4 4 IV The networks are connected via two routers. The routers can send/receive packets to/from both networks.

Indirect Routing Example Introduction of the unique IP address for each host and the IP datagram as common transfer unit. AB C I II III D 4 5 IV

Indirect Routing Example AB C I II III D 4 5 IV Each host or router forwards the datagram per one hop towards its destination. For each hop, the datagram is encapsulated into a specific physical layer packet with a local physical address. The datagram keeps the IP address of its destination. The routers firstly exams the netid. Only at the last hop of routing, the hostid is mapped to the physical address. In case of fragmentation, the destination takes over the reassembly. 3.3data D 3.3data 5 3.3data iii

Indirect Routing Example Both hosts and routers keep routing tables for leading the IP datagrams to destinations and physical addresses tables for mapping the IP addresses to corresponding physical addresses. Routing Table: It contains pairs of the form (N,R), where N is the IP address of the destination network and R is the IP address of the next router towards the destination. Examples: Host x 2.x 3.x NR Computation of the physical address 1.4 Router 1.4/2.4 1.x 2.x 3.x NR direct connection 2.5 direct connection A B D C Physical Addresses Table:

Transmission Control Protocol (TCP) Connection-oriented (i.e., a connection is established before the data transmission); Can guarantee reliable stream delivery services; reserved TCP port numbers (16 bits):FTP 21 Telnet 23 Finger79 HTTP80 A B FTP Telnet

Transmission Control Protocol (TCP) l Sliding Window Technique; l Multiplicative Decrease Congestion Avoidance; l Slow Start Recovery; Allowed_window = min (Receiver_Advertisement, Congestion_Window)

User Datagram Protocol (UDP) Connectionless; No confirmations, packets numbering, flow control; No error detection/recovery; Cannot guarantee reliable in order delivery services; reserved UDP port numbers (16 bits):DNS 53 TFTP 69 SNMP161 Mainly, broadcasting applications use UDP.

Applications l FTP; l SMTP; l WWW; l Telnet; l Many others

Sockets A B FTP Telnet l The combination of an IP address with a port number identifies a socket; l A socket defines an application service;