guide to tcp/ip, third edition
DESCRIPTION
Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols. Objectives. Understand the role that data link protocols, such as SLIP and PPP, play for TCP/IP Distinguish among various Ethernet and token ring frame types - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/1.jpg)
Guide to TCP/IP, Third Edition
Chapter 3: Data Link and Network Layer TCP/IP
Protocols
![Page 2: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/2.jpg)
Guide to TCP/IP, Third Edtion 2
Objectives
• Understand the role that data link protocols, such as SLIP and PPP, play for TCP/IP
• Distinguish among various Ethernet and token ring frame types
• Understand how hardware addresses work in a TCP/IP environment, and the services that ARP and RARP provide for such networks
![Page 3: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/3.jpg)
Guide to TCP/IP, Third Edtion 3
Objectives (continued)
• Appreciate the overwhelming importance of the Internet Protocol (IP), and how IP packets behave on TCP/IP networks
• Understand the lifetime of an IP datagram, and the process of fragmentation and reassembly
• Appreciate service delivery options
• Understand IP header fields and functions
![Page 4: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/4.jpg)
Guide to TCP/IP, Third Edtion 4
Data Link Protocols
• Key jobs of Data Link layer – Media Access Control (MAC)– Logical Link Control (LLC)
• Point-to-point data transfer– Shipping data from one MAC layer address to
another
![Page 5: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/5.jpg)
Guide to TCP/IP, Third Edtion 5
Data Link Protocols (continued)
• WAN encapsulation of frames at Data Link layer involves one or more of the following services– Addressing– Bit-level integrity check– Delimitation– Protocol identification (PID)
![Page 6: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/6.jpg)
Guide to TCP/IP, Third Edtion 6
Serial Line Internet Protocol (SLIP)
• Original point-to-point protocol
• Sometimes used to – Manage communications or networking equipment
through a dial-up serial port connection
• Simple packet-framing protocol described in RFC 1055
• Uses a special END character (0xC0)– Placed at the beginning and end of each IP
datagram to delimit, or separate, each payload
![Page 7: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/7.jpg)
Guide to TCP/IP, Third Edtion 7
Point-to-Point Protocol
• Provides – Frame delimitation– Protocol identification and bit-level integrity check
services• RFC 1661 includes
– Encapsulation methods – A special Link Control Protocol (LCP)– A collection of negotiation protocols
![Page 8: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/8.jpg)
Guide to TCP/IP, Third Edtion 8
Point-to-Point Protocol (continued)
• Fields in the PPP header and trailer include– Flag– Protocol identifier– Frame Check Sequence (FCS)
• Supports a default MTU of 1,500 bytes– Which makes it ideal for interconnecting Ethernet-
based networks (or peers)
![Page 9: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/9.jpg)
Guide to TCP/IP, Third Edtion 9
Special Handling for PPP Links
• For switched technologies– Bidirectional connections must be negotiated
between peers that wish to exchange data
• X.25: RFC 1356. X.25– Standard set of protocols defined in the 1970s by the
International Telecommunications Union (ITU)• Frame relay: RFC 2427
– Assumes that digital-quality transmission lines are available for creating WAN links
![Page 10: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/10.jpg)
Guide to TCP/IP, Third Edtion 10
Special Handling for PPP Links (continued)
• ATM: RFCs 1577 and 1626– High-speed, long-haul, broadband, cell-switched
networking technology– Offers astonishing and ever-increasing bandwidth
• PPPoE: RFC 2516 – Protocol used by Internet service providers to
authenticate and manage broadband subscribers
![Page 11: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/11.jpg)
Guide to TCP/IP, Third Edtion 11
Frame Types
• At Data Link layer– Protocol data units are called frames
• Frame – Represents same data that appears in digital form
at the Network layer in an IP datagram
![Page 12: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/12.jpg)
Guide to TCP/IP, Third Edtion 12
Ethernet Frame Types
• Ethernet II frame type – De facto standard frame type used for IP datagram
transmissions over Ethernet networks– Has protocol identification field
• Ethernet frame types that TCP/IP can use– Ethernet II– Ethernet 802.2 Logical Link Control– Ethernet 802.2 Sub-Network Access Protocol
(SNAP)
![Page 13: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/13.jpg)
Guide to TCP/IP, Third Edtion 13
Ethernet II Frame Structure
• Ethernet II frame type fields and structure– Preamble– Destination Address Field– Source Address Field– Type Field– Data Field– Frame Check Sequence Field
![Page 14: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/14.jpg)
Guide to TCP/IP, Third Edtion 14
Ethernet II Frame Structure (continued)
![Page 15: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/15.jpg)
Guide to TCP/IP, Third Edtion 15
Ethernet II Frame Structure (continued)
![Page 16: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/16.jpg)
Guide to TCP/IP, Third Edtion 16
Ethernet 802.2 LLC Frame Structure
• Unique fields– Preamble– Start Frame Delimiter Field:– Length Field– Destination Service Access Point (DSAP) Field:– Source Service Access Point (SSAP) Field:– Control Field– Destination Address– Source Address– Data– Frame Check Sequence
![Page 17: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/17.jpg)
Guide to TCP/IP, Third Edtion 17
Ethernet 802.2 LLC Frame Structure (continued)
![Page 18: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/18.jpg)
Guide to TCP/IP, Third Edtion 18
Ethernet 802.2 LLC Frame Structure (continued)
![Page 19: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/19.jpg)
Guide to TCP/IP, Third Edtion 19
Ethernet SNAP Frame Structure
• Fields– Organization Code Field– Ether Type Field– Preamble– Start Frame Delimiter– Destination Address– Source Address– Length– Destination Service Access Point– Source Service Access Point
![Page 20: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/20.jpg)
Guide to TCP/IP, Third Edtion 20
Ethernet SNAP Frame Structure (continued)
![Page 21: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/21.jpg)
Guide to TCP/IP, Third Edtion 21
Token Ring Frame Types
• IEEE 802.5 standard – Defines token ring networking
• Token ring networks– Rely on a physical star design, although they use a
logical ring transmission path
• On a token ring network– Each token ring workstation acts as a repeater
• Variations of token ring frames– Token Ring 802.2 LLC frames– Token Ring SNAP frames
![Page 22: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/22.jpg)
Guide to TCP/IP, Third Edtion 22
Token Ring Frame Types (continued)
![Page 23: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/23.jpg)
Guide to TCP/IP, Third Edtion 23
Hardware Addresses in the IP Environment
• IP addresses – Identify individual IP hosts on a TCP/IP internetwork
• TCP/IP networking uses ARP to– Determine the hardware address of the local target
for the packet
• ARP cache – Table of hardware addresses learned through the
ARP process
![Page 24: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/24.jpg)
Guide to TCP/IP, Third Edtion 24
Hardware Addresses in the IP Environment (continued)
![Page 25: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/25.jpg)
Guide to TCP/IP, Third Edtion 25
Hardware Addresses in the IP Environment (continued)
![Page 26: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/26.jpg)
Guide to TCP/IP, Third Edtion 26
Hardware Addresses in the IP Environment (continued)
![Page 27: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/27.jpg)
Guide to TCP/IP, Third Edtion 27
ARP Packet Fields and Functions
• Basic ARP packets– Broadcast ARP request packet– Directed, or unicast, ARP reply packet
• Most confusing part of ARP – Interpretation of the sender and target address
information
![Page 28: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/28.jpg)
Guide to TCP/IP, Third Edtion 28
ARP Packet Fields and Functions (continued)
![Page 29: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/29.jpg)
Guide to TCP/IP, Third Edtion 29
ARP Packet Fields and Functions (continued)
![Page 30: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/30.jpg)
Guide to TCP/IP, Third Edtion 30
ARP Cache
• ARP information – Kept in an ARP cache in memory on most operating
systems
• Windows-based systems– Command arp -a is used to view the table contents– Have utility to view IP and hardware addresses
![Page 31: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/31.jpg)
Guide to TCP/IP, Third Edtion 31
ARP Cache (continued)
![Page 32: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/32.jpg)
Guide to TCP/IP, Third Edtion 32
Proxy ARP
• Method that allows IP host to use a simplified subnetting design
• Enables a router to “ARP” in response to an IP host’s ARP broadcasts
• Most network configurations– May never need to use proxy ARP
![Page 33: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/33.jpg)
Guide to TCP/IP, Third Edtion 33
Proxy ARP (continued)
![Page 34: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/34.jpg)
Guide to TCP/IP, Third Edtion 34
Reverse ARP
• Used to obtain an IP address for an associated data link address
• Initially defined to– Enable diskless workstations to find their own IP
addresses upon booting or startup
• BOOTP, and eventually DHCP, replaced RARP
![Page 35: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/35.jpg)
Guide to TCP/IP, Third Edtion 35
About Internet Protocol
• Network layer communications – End-to-end communications
• Internet Protocol – Network layer protocol used in the TCP/IP suite
• IP version 4 (IPv4)– Widely implemented
• Internet Protocol version 6 (IPv6)– Most used in pilot or experimental implementations
![Page 36: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/36.jpg)
Guide to TCP/IP, Third Edtion 36
Sending IP Datagrams
• Requirements for building an IP datagram packet to transmit on the wire– IP addresses of the source and destination– Hardware address of the source and next-hop router
• IP host – Can use a manually entered destination IP address
or the DNS to obtain a destination’s IP address
![Page 37: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/37.jpg)
Guide to TCP/IP, Third Edtion 37
Route Resolution Process
• Enables IP host to determine if desired destination is local or remote
• Local or Remote Destination?– Upon determination of IP address
• IP host compares network portion of destination address to its own local network address
![Page 38: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/38.jpg)
Guide to TCP/IP, Third Edtion 38
Route Resolution Process (continued)
![Page 39: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/39.jpg)
Guide to TCP/IP, Third Edtion 39
If Remote, Which Router?
• Types of route table entries– Host route entry – Network route entry
• Receiving gateway typically does one of the following– Forwards packet– Sends an ICMP reply– Sends an ICMP reply indicating that it is unclear
where to send the packet
![Page 40: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/40.jpg)
Guide to TCP/IP, Third Edtion 40
Lifetime of an IP Datagram
• IP packets – Have a pre-defined lifetime indicated in each
packet’s Time to Live (TTL) field
• 64– Recommended starting TTL value
• 128– Default TTL in Windows 2000, Windows 2003, and
Windows XP
![Page 41: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/41.jpg)
Guide to TCP/IP, Third Edtion 41
Lifetime of an IP Datagram (continued)
![Page 42: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/42.jpg)
Guide to TCP/IP, Third Edtion 42
Fragmentation and Reassembly
• IP fragmentation – Enables a larger packet to be automatically
fragmented by a router
• Once fragmented– No reassembly occurs until fragments arrive at
destination– All fragments are given the same TTL value
![Page 43: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/43.jpg)
Guide to TCP/IP, Third Edtion 43
Service Delivery Options
• Precedence– Used by routers to determine what packet to send
• Type of Service– Used to select routing path when multiple paths exist– Routing protocols
• OSPF and Border Gateway Protocol (BGP)
![Page 44: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/44.jpg)
Guide to TCP/IP, Third Edtion 44
Differentiated Services and Explicit Congestion Notification
• RFC 2474, RFC 2475, and RFC 3168 – Offer a new use of the TOS field bits– Suggest that TOS and Precedence field bytes be
replaced by a Differentiated Services Code Point (DSCP) field
• Diffserv – Uses DSCP value to enable routers to offer varying
levels of service to traffic based on marker placed in the DSCP field
![Page 45: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/45.jpg)
Guide to TCP/IP, Third Edtion 45
IP Header Fields And Functions
• Version Field– First field in IP header
• Header Length Field– Denotes the length of the IP header only
• Type of Service Field– Has two components: precedence and Type of
Service• Total Length Field
– Defines length of the IP header and any valid data
![Page 46: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/46.jpg)
Guide to TCP/IP, Third Edtion 46
IP Header Fields And Functions (continued)
![Page 47: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/47.jpg)
Guide to TCP/IP, Third Edtion 47
IP Header Fields And Functions (continued)
• Identification Field– Each packet is given a unique ID value when sent
• Flags Field– Three bits long– Typically, fragmentation is allowed
• Fragment Offset Field – Shows where to place packet’s data when
fragments are reassembled
![Page 48: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/48.jpg)
Guide to TCP/IP, Third Edtion 48
IP Header Fields And Functions (continued)
• Time to Live (TTL) Field– Denotes the remaining lifetime of the packet
• Protocol Field– Indicates what is coming up next
• Header Checksum Field– Provides error detection on the contents of the IP
header only
• Source Address Field– The IP address of the IP host that sent the packet
![Page 49: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/49.jpg)
Guide to TCP/IP, Third Edtion 49
IP Header Fields And Functions (continued)
• Destination Address Field– Can include a unicast, multicast, or broadcast
address– Final destination of the packet
• Options Fields– Exist primarily to provide additional IP routing
controls– Can be useful when testing or debugging code or
specific connections
![Page 50: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/50.jpg)
Guide to TCP/IP, Third Edtion 50
Summary
• Data link protocols – Manage transfer of datagrams across the network
• At Data Link layer– Protocols must deliver services, such as delimitation,
bit-level integrity checks, addressing, and protocol identification
• Ethernet II frames– Most common frame type on LANs
![Page 51: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/51.jpg)
Guide to TCP/IP, Third Edtion 51
Summary (continued)
• Understanding frame layouts – Crucial for proper handling of contents
• At the lowest level of detail– Important to understand the differences in field
layouts and meanings
• Imperative to understand how TCP/IP manages the translation between MAC layer addresses and numeric IP addresses
![Page 52: Guide to TCP/IP, Third Edition](https://reader030.vdocuments.us/reader030/viewer/2022013108/56813aee550346895da36137/html5/thumbnails/52.jpg)
Guide to TCP/IP, Third Edtion 52
Summary (continued)
• Proxy ARP – Permits router to interconnect multiple network
segments
• Network layer protocols – Make their way into the Data Link layer through a
process known as data encapsulation
• Important characteristics of IP datagrams– Time to Live (TTL) values– Fragmentation of incoming frames– Service delivery options