
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















1
Introductory material. This module illustrates the interactions of the protocols of the TCP/IPprotocol suite with the help of an example. The example intents tomotivate the study of the TCP/IP protocols.
docsity.com
A user on host
argon.tcpip-lab.edu
Argon
”) makes a web
access to URL
http://neon.tcpip-lab.edu/index.html.
What actually happens in the network?
argon.tcpip-lab.edu
("Argon")
neon.tcpip-lab.edu
("Neon")
Web requestWeb page
Web client
Web server
docsity.com
GET
/index.html
HTTP/1.
Accept: image/gif, /Accept-Language: en-usAccept-Encoding: gzip, deflateUser-Agent:
Mozilla/4.
Host: neon.tcpip-lab.eduConnection: Keep-Alive
docsity.com
HTTP/1.1 200 OKDate: Sat, 25 May 2002 21:10:32 GMTServer: Apache/1.3.19 (Unix)Last-Modified: Sat, 25 May 2002 20:51:33 GMTETag: "56497-51-3ceff955"Accept-Ranges: bytesContent-Length: 81Keep-Alive:
timeout=15, max=
Connection: Keep-AliveContent-Type: text/htmlInternet LabClick here for
the Internet Lab webpage.
docsity.com
Since TCP does not work with hostnames and also does notknow how to find the HTTP server program at Neon, twothings must happen:
into a 32-bit
IP address.
bit
port number
docsity.com
The translation of the hostname
neon.tcpip-lab.edu
into an IP
address is done via a database lookup
-^
The distributed database used is called the
Domain Name
System (DNS)
-^
All machines on the Internet have an IP address:
argon.tcpip-lab.edu
128.143.137.
neon.tcpip-lab.edu
128.143.71.
HTTP client
DNS Server
argon.tcpip-lab.edu
128.143.136.
neon.tcpip-lab.edu
128.143.71.
docsity.com
The HTTP client at
argon.tcpip-lab.edu
requests the TCP client to
establish a connection to port 80 of the machine with address128.141.71.
argon.tcpip-lab.edu HTTP client TCP client
Establish a TCP connectionto port 80 of 128.143.71.
docsity.com
The TCP client at
Argon
sends a request to establisha connection to port 80 at Neon
-^
This is done by asking itslocal IP module to send anIP datagram to
128.143.71.
-^
(The data portion of the IPdatagram contains the request toopen a connection)
TCP client
argon.tcpip-lab.edu
IP
Send an IP datagram to128.143.71.
docsity.com
Note that the gateway has a different name for each of itsinterfaces.
neon.tcpip-lab.edu
"Neon"
128.143.71.
argon.tcpip-lab.edu "Argon
"
128.143.137. router137.tcpip-lab.edu
"Router137" 128.143.137.
router71.tcpip-lab.edu"Router71" 128.143.71.
Ethernet Network
Ethernet Network
Router
docsity.com
To send an IP datagram to Router137,
Argon
puts the IP
datagram in an Ethernet frame, and transmits the frame.
-^
However, Ethernet uses different addresses, so-called MediaAccess Control (MAC) addresses (also called: physicaladdress, hardware address)
-^
Therefore,
Argon
must first translate the IP address
128.143.137.
into a MAC address.
The translation of addressed is performed via the AddressResolution Protocol (ARP)
docsity.com
The IP module at
Argon
, tells its Ethernet device driver to send
an Ethernet frame to address
00:e0:f9:23:a8:
argon.tcpip-lab.edu
IP module Ethernet
Send an Ethernet frameto 00:e0:f9:23:a8:
docsity.com
The Ethernet device driver of
Argon
sends the Ethernet frame
to the Ethernet network interface card (NIC)
-^
The NIC sends the frame onto the wire argon.tcpip-lab.edu128.143.137.14400:a0:24:71:e4:
IP Datagram for Neon
router137.tcpip-lab.edu128.143.137.100:e0:f9:23:a8:
docsity.com
The router needs to find the MAC address of
Neon
Again, ARP is invoked, to translate the IP address of
Neon
into the MAC address of neon
(00:20:af:03:98:28).
ARP message:
What is the MAC
address of 128.143.71.21?
ARP message:
IP address 128.143.71.
belongs to MAC address 00:20:af:03:98:
neon.tcpip-lab.edu
128.143.71. 00:20:af:03:98:
router71.tcpip-lab.edu128.143.71.
docsity.com
The IP protocol at
Router
, tells its Ethernet device driver to
send an Ethernet frame to address
00:20:af:03:98:
router71.tcpip-lab.edu
IP module Ethernet
Send a frame to00:20:af:03:98:
docsity.com