Docsity

TCP IP Networking Example-Computer Networking-Lecture Slides, Slides of Computer Network Management and Protocols

Partial preview of the text

Download TCP IP Networking Example-Computer Networking-Lecture Slides and more Slides Computer Network Management and Protocols in PDF only on Docsity!

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.

TCP/IP Networking

An Example

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

A simple TCP/IP Example

docsity.com

HTTP Request

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 Response

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.

  • How does the HTTP request get from Argon to Neon?

docsity.com

Resolving hostnames and port numbers^ •

Since TCP does not work with hostnames and also does notknow how to find the HTTP server program at Neon, twothings must happen:

  1. The name “neon.tcpip-lab.edu” must be translated

into a 32-bit

IP address.

  1. The HTTP server at Neon must be identified by a 16-

bit

port number

docsity.com

Translating a hostname into an IP address^ •

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

Requesting a TCP Connection^ •

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

Invoking the IP Protocol^ •

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

The route from

Argon

to

Neon

•^

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

Finding the MAC address of the gateway^ •

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

Invoking the device driver^ •

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

Sending an Ethernet frame^ •

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

Another lookup of a MAC address^ •

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

Invoking the device driver at the router

•^

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