TCP/IP Protocol Suite - examples

Slides:



Advertisements
Similar presentations
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.
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
Leon-Garcia & Widjaja: Communication Networks Copyright ©2000 The McGraw Hill Companies The user clicks on a link to indicate which document is to be retrieved.
1 Review of Important Networking Concepts Introductory material. This module uses the example from the previous module to review important networking concepts:
Institute of Technology Sligo - Dept of Computing Semester 2 Chapter 9 The TCP/IP Protocol Suite Paul Flynn.
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
Chapter Overview TCP/IP Protocols IP Addressing.
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
1 TCP/IP architecture A set of protocols allowing communication across diverse networks Out of ARPANET Emphasize on robustness regarding to failure Emphasize.
Lecture 8 Modeling & Simulation of Communication Networks.
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
Process-to-Process Delivery:
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.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
Hands-On Microsoft Windows Server 2003 Networking Chapter Three TCP/IP Architecture.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 3: TCP/IP Architecture.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
Layer Architecture of Network Protocols
1 ELEN602 Lecture 2 Review of Last Lecture Layering.
THE OSI MODEL AND THE TCP/IP PROTOCOL SUITE CS 1202 Lectur3 part2.
Examining TCP/IP.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
Computer Networks (CS 132/EECS148) General Networking Example Karim El Defrawy Donald Bren School of Information and Computer Science University of California.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Mukesh N. Tekwani Elphinstone College Mumbai
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
1 Chapter 2 Applications and Layered Architectures Protocols, Services & Layering OSI Reference Model TCP/IP Architecture How the Layers Work Together.
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)
The Transport Layer application transport network data link physical application transport network data link physical application transport network data.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
CSE 6590 Department of Computer Science & Engineering York University 111/9/ :26 AM.
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
ECEN “Internet Protocols and Modeling”, Spring 2012 Course Materials: Papers, Reference Texts: Bertsekas/Gallager, Stuber, Stallings, etc Class.
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.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 3: TCP/IP Architecture.
1 OSI and TCP/IP Models. 2 TCP/IP Encapsulation (Packet) (Frame)
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Individual Project 1 Sarah Pritchard. Fran, a customer of your company, would like to visit your company’s website from her home computer… How does your.
1. Layered Architecture of Communication Networks: TCP/IP Model
Computer Communication: An example What happens when I click on
Transmission Control Protocol (TCP) Internet Protocol (IP)
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
2.1 Chapter 2 Network Models – cont. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
- 1 - DPNM Review of Important Networking Concepts J. Won-Ki Hong Dept. of Computer Science and Engineering POSTECH Tel:
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
COMPUTER NETWORKS Hwajung Lee. Image Source:
Communication Networks NETW 501 Tutorial 2
Process-to-Process Delivery:
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Chapter 5 Network and Transport Layers
Introduction to TCP/IP
Layered Architectures
Network Architecture Introductory material
Topic 5: Communication and the Internet
Review of Important Networking Concepts
TCP/IP Networking An Example
Process-to-Process Delivery:
Review of Important Networking Concepts
TCP/IP Protocol Suite: Review
Communication Networks NETW 501
TCP/IP Protocol Suite: Review
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
Kyle Broussard, Alexandra Mikolai,
Review of Important Networking Concepts
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Presentation transcript:

TCP/IP Protocol Suite - examples

Examples To reinforce understanding of TCP/IP protocol suite operations encapsulation addressing

Each machine on the LAN typically have two addresses: 4/21/2017 10:13 AM HTTP and Web Browsing Infrastructure: A LAN comprising of a server and a workstation is connected via a router to a PC. The connection between the router and PC is a point-to-point (PPP) connection. Each machine on the LAN typically have two addresses: An IP address known globally An Ethernet address determined by its network interface card (NIC) The router has as many IP addresses as the number of networks connected to it. (1,1), s Server LAN (1,2), w Workstation (1,3), r Router (2,1) Server Work station Router PC IP (1,1) (1,2) (1,3) (2,2) (2,1) Ethernet s w r PPP (2,2) PC

Example PPP Netid=2 Ethernet (netid=1) netid hostid Physical address Server PC Router (2,1) PPP Netid=2 (1,1) s (1,3) r (2,2) w Ethernet (netid=1) *PPP does not use phys addresses Workstation (1,2) netid hostid Physical address server 1 s workstation 2 w router 3 r - PC

Encapsulation Ethernet header contains: IP header IP Payload Ethernet header FCS IP header IP Payload Ethernet header contains: source and destination physical addresses network protocol type (e.g. IP)

HTTP and Web Browsing (2) 4/21/2017 10:13 AM HTTP and Web Browsing (2) Protocols: used for an HTTP request made by PC to server HTTP TCP IP Interface Ethernet PPP Server / workstation PC Router (1,1), s Server LAN (1,2), w Workstation (1,3), r Router (2,1) PPP (2,2) PC

HTTP and Web Browsing (3) 4/21/2017 10:13 AM HTTP and Web Browsing (3) Instruction: http://www.tesla.comm.utoronto.ca/infocomm/index.html Hypertext transfer protocol: Specifies rules by which client / server interact. Uniform Resource locator (URL) of the server: 1st part typically translated to an address by Domain Name Server (DNS), 2nd part specifies document HTTP is only concerned with the interaction of the client with the server, not with the actual setting up of connection. A connection is first set up between the client and the server. For connection-oriented services, this implies setting up of a physical connection. HTTP requires the service of TCP to provide a reliable service between the two machines. TCP itself requires the service of IP and so on. This leads to a layered approach. HTTP (application) TCP (Transport) IP (Internet)

HTTP and Web Browsing (4) 4/21/2017 10:13 AM HTTP and Web Browsing (4) Task: Transfer of an HTTP request from PC to Server For simplicity, assume a TCP connection is established between the server and PC (more on connections later). HTTP request is passed on to the TCP layer of PC that creates a TCP segment containing server port number (SP#) and client port number (CP#) TCP segment is passed to IP layer that creates an IP datagram where protocol field (PF) shows that upper layer has asked for the information. IP datagram is passed on to interface layer. Router LAN PPP (1,1), s Server (1,2), w Workstation (2,2) PC (1,3), r (2,1) CP# HTTP request SP# …. Header TCP segment (2,2) (1,1) …. PF Header

HTTP and Web Browsing (5) 4/21/2017 10:13 AM HTTP and Web Browsing (5) Interface layer encapsulates the IP datagram into a PPP frame, and sends the PPP frame to the router. The IP datagram is extracted by the interface layer of the router and passed on to the Internet layer. The Internet layer extracts the destination address (1,1) and checks the routing table for a match. Since a match exists, the Interface layer prepares an Ethernet frame encapsulating the IP datagram plus the Ethernet addresses in the header, and broadcasts the Ethernet frame on the LAN. Router LAN PPP (1,1), s Server (1,2), w Workstation (2,2) PC (1,3), r (2,1) IP datagram PPP header C Checksum r s …. Header IP datagram C Checksum

HTTP and Web Browsing (6) 4/21/2017 10:13 AM HTTP and Web Browsing (6) Interface layer of the Server compares the Ethernet address with the address on its network interface card (NIC). The address matches so the Ethernet frame is accepted. A Checksum is performed to check for errors. In case of no errors, the IP datagram is extracted and passed on to the Internet layer. The Internet layer maps the IP address and sees that the IP datagram is meant for it. It extracts the TCP segment and passes it on to the TCP layer Router LAN PPP (1,1), s Server (1,2), w Workstation (2,2) PC (1,3), r (2,1) TCP segment (2,2) (1,1) …. PF Header CP# HTTP request SP# …. Header

HTTP and Web Browsing (7) 4/21/2017 10:13 AM HTTP and Web Browsing (7) 7. HTTP request is extracted by TCP layer and passed on to specified port number. 8. Recall that the protocol used by the Transport layer is TCP, which is a reliable connection-oriented protocol. An acknowledgment is therefore sent to the PC in exactly the same manner as the request was received. The Application layer retrieves the HTML document and transmits it to the PC following steps (1-8) in reverse order. Router LAN PPP (1,1), s Server (1,2), w Workstation (2,2) PC (1,3), r (2,1)

How the layers work together Server PC Router (2,1) (1,1) s PPP (1,3) r (2,2) Ethernet HTTP uses process-to-process Reliable byte stream transfer of TCP connection: Server socket: (IP Address, 80) PC socket (IP Address, Eph. #) (b) Server PC HTTP TCP uses node-to-node Unreliable packet transfer of IP Server IP address & PC IP address HTTP TCP TCP Internet IP IP IP Network interface Network interface Network interface Router Ethernet PPP

TCP Header contains source & destination port numbers Encapsulation TCP Header contains source & destination port numbers HTTP Request IP Header contains source and destination IP addresses; transport protocol type TCP header HTTP Request Ethernet Header contains source & destination MAC addresses; network protocol type IP header TCP header HTTP Request Ethernet header IP header TCP header HTTP Request FCS

Summary Encapsulation is key to layering IP provides for transfer of packets across diverse networks TCP and UDP provide universal communications services across the Internet Distributed applications that use TCP and UDP can operate over the entire Internet Internet names, IP addresses, port numbers, sockets, connections, physical addresses

Domain Name System Domain Name System (Service) (DNS) links names to IP addresses in the Internet. The system uses a hierarchical tree topology to reflect different administrative levels. Example: www.cs.yorku.ca (130.63.96.20) DNS servers are distributed databases strategically located on the Internet. Most Internet service providers have DNS servers. Converting domain names to IP addresses & vice versa: www.whatismyipaddress.com www.hcidata.co.uk/host2ip.htm nslookup program (“man nslookup” on Unix for info)

DNS Query In the previous HTTP example, the client first needs to perform a DNS query to obtain the IP address corresponding to the domain name. Send a message to a DNS server. DNS queries use UDP (why?) The following example assumes that the client and the DNS server are located on the same LAN.

Finding out the network address of “www.cs.fsu.edu” netscape goes to a domain name server (DNS) to find out the IP address of “www.cs.fsu.edu” host = gethostbyname(“www.cs.fsu.edu”); DNS server in our department: nu.cs.fsu.edu (128.186.121.10) at 8:0:20:7d:4f:49 How does netscape know the address of the DNS server? Hard-coded at system (network) configuration. E.g. /etc/resolv.conf in my Linux system.

Getting the IP address from the DNS server Netscape, using UDP transport sets up a dialogue with the DNS Server at 128.186.121.10/53 to get the desired address TCP/IP protocol uses IP to send a datagram to 128.186.121.10. Turns out that 128.186.121.10 and my IP address are on the same Ethernet domain; can send the DNS query directly via the Ethernet. Needs to find out the Ethernet address of 128.186.121.10. Uses ARP protocol, sends an ARP packet over the network What is the address of 128.186.121.10? Host 128.186.121.10 replies: result: 8:0:20:7d:4f:49. IP asks Ethernet to send an Ethernet frame to 8:0:20:7d:4f:49. Ethernet on nu.cs.fsu.edu (DNS server) receives a frame, turns out to be an IP packet destined for it, passes it to the IP module. IP module finds out that it is a UDP packet and passes it to the UDP module. UDP realizes that a process is listening to port 53, notifies the process. Process handles the message and replies to Netscape host. DNS client dialogue involves several message exchanges The DNS server eventually sends a message back: 128.186.121.41 is the network address of www.cs.fsu.edu

SMTP and E-mail A sends an email to B  3 transactions A sends the message to the local SMTP server. Local SMTP server transfers the message to the destination SMTP server. Destination SMTP server delivers the message to B. SMTP works best when the receiver machine is always available. Users in a PC environment usually retrieve their email from a mail server using the Post Office Protocol (POP3) (working in conjunction with SMTP).

More Protocols and Utilities Telnet (port 23, unencrypted text) FTP (port 20 for data, 21 for control) IP utilities ping: determines if a host is online and available Example: ping –s gardiner.cs.utoronto.ca echo (port 7): echoes a character back to sender daytime (port 13): returns time and date traceroute (port 33434): returns the source-to-destination route netstat (port 15): queries a host about its TCP/IP network status For more utilities: http://www.caida.org/tools/taxonomy/

Summary of TCP/IP Model

TCP/IP Protocols Protocol Interfaces Each layer in the TCP/IP protocol suite interacts with its immediate adjacent layers. At the source, the application layer makes use of the services of the end-to-end layer and provides data down to that layer. A similar relationship exists at the interface between the transport and internet layers and at the interface of the internet and network access layers. At the destination, each layer delivers data up to the next higher layer. This use of each individual layer is not required by the architecture. As Stallings DCC9e Figure 2.8 suggests, it is possible to develop applications that directly invoke the services of any one of the layers. Most applications require a reliable end-to-end protocol and thus make use of TCP. Some special-purpose applications do not need the services of TCP. Some of these applications, such as the Simple Network Management Protocol (SNMP), use an alternative end-to-end protocol known as the User Datagram Protocol (UDP); others may make use of IP directly. Applications that do not involve internetworking and that do not need TCP have been developed to invoke the network access layer directly.

Connectionless vs. Connection-Oriented Services Three-phases: Connection setup between two SAPs to initialize state information Data unit transfer Connection release Examples: TCP, ATM Connectionless Immediate data unit transfer No connection setup Examples: UDP, IP Layered services need not be of same type TCP operates over IP IP operates over ATM

Connection-oriented vs. Connectionless Communications Does not requires a session connection be established before sending data Sender simply starts sending packets (datagrams) to the receiver Different packets may take different routes Data packets may arrive out-of-order. Less reliable than connection-oriented services

Examples of Connection-oriented Connectionless Communications Internet: One big connectionless packet switching network in which all packet deliveries are handled by IP (unreliable) TCP adds connection-oriented services on top of IP (for reliable delivery) UDP provides connectionless services on top of IP ATM: connection-oriented packet switching networks LANs: Connectionless systems TCP can be used to provide connection-oriented (reliable) services Reference: www.linktionary.com/c/connections.html

Reading The above examples are taken from Chapters 1 and 2 of “Communication Networks: Fundamentals Concepts and Key Architectures,” 2nd edition by Alberto Leon-Garcia and Indra Widjaja, McGraw-Hill, 2004