tcp/ip protocol suite and internetworkingjain/cis677-98/ftp/e_8ip.pdf · the ohio state university...
TRANSCRIPT
![Page 1: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/1.jpg)
Raj JainThe Ohio State University
1
TCP/IP Protocol TCP/IP Protocol Suite and Suite and
InternetworkingInternetworkingRaj Jain
Professor of CIS The Ohio State University
Columbus, OH [email protected]
http://www.cse.ohio-state.edu/~jain/cis677-98
![Page 2: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/2.jpg)
Raj JainThe Ohio State University
2
OverviewOverview
Key Philosophical Differences from OSILayering vs HierarchyProtocol architecture and interfacesInternetworking terms and servicesInternet Protocol (IP): Services, Header, Address format
![Page 3: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/3.jpg)
Raj JainThe Ohio State University
3
Key Differences From OSIKey Differences From OSIConnectionless Service: TCP/IP is pro-connectionlessSimple ManagementHierarchy vs layeringInternetworking: Not in original OSI
![Page 4: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/4.jpg)
Raj JainThe Ohio State University
4
LayeringLayering
Each layer has to perform a set of functionsAll alternatives for a row have the same interfacesChoice at each layer is independent of other layers. Need one component of each layer ⇒ Null componentsNth layer control info is passed as N-1th layer data.
TP4CLNS802.5
Physical
CONS802.3LLC 1 LLC 2
Same Interfaces
![Page 5: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/5.jpg)
Raj JainThe Ohio State University
5
HierarchyHierarchyCan directly use the services of a lower entity even if it is not in an adjacent layerControl and data can be separate connections. Control connections may have different reliability requirements than data.Lower layer control information can be used for higher layer control, e.g., lower layer close may close all higher layers
![Page 6: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/6.jpg)
Raj JainThe Ohio State University
6
TCP/IP ProtocolsTCP/IP ProtocolsNetwork access layer: Ethernet, Token RingInternet layer: IPHost-host layer: TCP, UDPProcess/application layer: FTP, Telnet, Mail (SMTP)
Fig 15.12IP
TCP
BGP
MIME
FTP HTTP SMTP TELNET SNMP
UDPICMP
![Page 7: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/7.jpg)
Raj JainThe Ohio State University
7
IntermediateSystem
FTP Telnet SMTP
Host A
FTP Telnet SMTP
Host BSubnet
2Subnet
1
Internetworking TermsInternetworking TermsEnd-system: HostNetwork: Provides data transfer between end-systemsInternet: A collection of networksSubnetwork: Each component of an internetIntermediate System: Connects two subnetworksPort: Application processes in the host
![Page 8: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/8.jpg)
Raj JainThe Ohio State University
8
User Data
TCP Header
IP Header
Datalink Header
PDU’s PDU’s in TCP/IPin TCP/IP
TCP PDU = SegmentIP PDU = DatagramDatalink PDU = Frame
Segment
DatagramFrame
![Page 9: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/9.jpg)
Raj JainThe Ohio State University
9
Operation of TCP/IPOperation of TCP/IPProcess address within a host = PortHost address on a networkIP deals only with host addresses = Subnet + Host #Application messages are broken into TCP segmentsTCP
Uses segment sequence number for ordering and lost segment detectionUses checksum for error detectionPasses the segment to IP for transmission Delivers the data to appropriate port in the destination host
![Page 10: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/10.jpg)
Raj JainThe Ohio State University
10
TCP/IP ApplicationsTCP/IP ApplicationsSimple Mail Transfer Protocol (SMTP):
Mail transfer between hostsMailing lists, mail forwarding, return receiptsDoes not specify how to create messages
File transfer protocols (FTP):Transfers files between hostsProvides access control (user name and password)Binary or text files are supported.
Remote login (Telnet):Initially designed for simple scroll-mode terminals
![Page 11: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/11.jpg)
Raj JainThe Ohio State University
11
Internet Protocol (IP)Internet Protocol (IP)IP deals with only with host addressesServices:
Send: User to IPDeliver: IP to UserError (optional): IP to User
![Page 12: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/12.jpg)
Raj JainThe Ohio State University
12
IP HeaderIP Header
Ver IHL ToS Total LengthId Fragment Offset
TTL Protocol Header ChecksumSource Address
Flags
Destination Address20B
4b 4b 8b 16b
3bOptions + Padding
Fig 16.7
![Page 13: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/13.jpg)
Raj JainThe Ohio State University
13
IP Header (Cont)IP Header (Cont)Version (4 bits)Internet header length (4 bits): in 32-bit words. Min header is 5 words or 20 bytes.Type of service (8 bits): Reliability, precedence, delay, and throughputTotal length (16 bits): header+data in bytesIdentifier (16 bits): Helps uniquely identify the datagram during its life for a given source, destination address
![Page 14: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/14.jpg)
Raj JainThe Ohio State University
14
IP Header (Cont)IP Header (Cont)Flags (3 bits):
More flag - used for fragmentationNo-fragmentationReserved
Fragment offset (13 bits): In units of 8 bytesTime to live (8 bits): Specified in router hopsProtocol (8 bits): Next level protocol to receive the dataHeader checksum (16 bits): 1’s complement sum of all 16-bit words in the header
![Page 15: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/15.jpg)
Raj JainThe Ohio State University
15
IP Header (Cont)IP Header (Cont)Source Address (32 bits)Destination Address (32 bits)Options (variable): Security, source route, record route, stream id (used for voice) for reserved resources, timestamp recordingPadding (variable): Makes header length a multiple of 4Data (variable): Data + header < 65,535 bytes
![Page 16: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/16.jpg)
Raj JainThe Ohio State University
16
IP AddressIP AddressClass A: Network Local0
71 24 bits
Network Local10142 16 bits
q Class B:
Network Local110213 8 bits
q Class C:
q Local = Subnet + Host (Variable length)
Router Router
Subnet
Host Group (Multicast)1110284 bits
q Class D:
![Page 17: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/17.jpg)
Raj JainThe Ohio State University
17
R E
Address Resolution ProtocolAddress Resolution Protocol
Problem: Given an IP address find the MAC addressSolution: Address resolution protocolThe host broadcasts a request: “What is the MAC address of 127.123.115.08?”The host whose IP address is 127.123.115.08 replies back:“The MAC address for 127.123.115.08 is 8A-5F-3C-23-45-5616”A router may act as a proxy for many IP addresses
![Page 18: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/18.jpg)
Raj JainThe Ohio State University
18
Internet Control Message Internet Control Message Protocol (ICMP)Protocol (ICMP)
Required companion to IP. Provides feedback from the network.
Destination unreachableTime exceededParameter problemSource quenchRedirectEcho
Echo reply TimestampTimestamp replyInformation RequestInformation reply
![Page 19: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/19.jpg)
Raj JainThe Ohio State University
19
Autonomous SystemsAutonomous SystemsAn internet connected by homogeneous routers under the administrative control of a single entity
Fig 16.10
Subnet 1.2 Subnet 1.2
Subnet 1.2Subnet 1.2Subnet 1.2
Subnet 1.2
Subnet 1.2Subnet 1.2
R2
R7
R4 R1
R6
R8R5
R3 Interior
Exterior
![Page 20: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/20.jpg)
Raj JainThe Ohio State University
20
Other Networking ProtocolsOther Networking ProtocolsInterior Router Protocol (IRP): Used for passing routing information among routers internal to an autonomous systemExterior Router Protocol (ERP): Used for passing routing information among routers between autonomous systemsRouting Information Protocol (RIP): First generation ARPAnet IRP protocol. Entire routing table sent to neighbors.⇒ Distance vector routing.
![Page 21: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/21.jpg)
Raj JainThe Ohio State University
21
Networking Protocols (Cont)Networking Protocols (Cont)Open Shortest Path First (OSPF): Interior routing protocol.Provides least-cost path routes using a fully user configurable routing metric (any fn of delay, data rate, dollar cost, etc.)Link costs flooded (Link-state routing)Exterior Gateway Protocol (EGP): Periodic hellos and responses with cost to other networks
![Page 22: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/22.jpg)
Raj JainThe Ohio State University
22
SummarySummary
TCP/IP’s hierarchy vs OSI’s layering
Processes, hosts, networks, ports, subnetwork
IP: Address, headerARP, ICMP, EGP, OSPF
![Page 23: TCP/IP Protocol Suite and Internetworkingjain/cis677-98/ftp/e_8ip.pdf · The Ohio State University Raj Jain 1 TCP/IP Protocol Suite and Internetworking Raj Jain Professor of CIS The](https://reader033.vdocuments.us/reader033/viewer/2022042210/5eae350a6068d70dd15874fc/html5/thumbnails/23.jpg)
Raj JainThe Ohio State University
23
HomeworkHomeworkRead Sections 15.3 and 16.3 in Stallings’ bookSubmit answers to Exercise 16.7, 16.8