200 likes | 336 Views
TCP/IP Protocol Suite. Application. Application. TCP. UDP. ICMP. IP. ARP. RARP. Physical. network. HTTP Request. Encapsulation. Header contains source and destination port numbers. TCP Header. Header contains: source and destination IP addresses; transport protocol type. IP Header.
E N D
TCP/IP Protocol Suite Application Application TCP UDP ICMP IP ARP RARP Physical network
HTTP Request Encapsulation Header contains source and destination port numbers TCP Header Header contains: source and destination IP addresses; transport protocol type IP Header Header contains: source and destination physical addresses; network protocol type FCS Ethernet Header
IP and network interface layers Machine B Machine A Application Application Transport Transport Router/Gateway Internet Internet Internet Network Interface Network Interface Network Interface Network 1 Network 2
IP version 4 Header 0 4 8 16 19 24 31 Version IHL Type of Service Total Length Identification Flags Fragment Offset Time to Live Protocol Header Checksum Source IP Address Destination IP Address Options Padding
5 Classes of Addresses Bit position: 0 1 2 3 8 16 31 Class A 0 Net ID Host ID Class B 1 0 Net ID Host ID Class C 1 1 0 Net ID Host ID Class D 1 1 1 0 Multicast address Class E 1 1 1 1 Reserved for experiments
Subnet Addressing Original 1 0 Net ID Host ID address Subnetted 1 0 Net ID Subnet ID Host ID address
Address assignment with subnets H1 H2 150.100.12.154 150.100.12.176 150.100.12.128 150.100.12.129 150.100.0.1 R1 To the rest of H3 H4 150.100.12.4 the Internet 150.100.12.55 150.100.12.24 150.100.12.0 150.100.12.1 R2 H5 150.100.15.54 150.100.15.11 150.100.15.0
Address Resolution Protocol H1 H2 H3 H4 150.100.76.22 150.100.76.23 150.100.76.20 150.100.76.21 ARP request (what is the MAC address of 150.100.76.22?) H1 H2 H3 H4 ARP response (my MAC address is 08-00-5A-C5-3B-94)
Packet Fragmentation Source Router Destination IP IP Network Network
IPv6 Header 0 4 12 16 24 31 Version Traffic Class Flow Label Payload Length Next Header Hop Limit Source Address Destination Address
Provider-based Address Format n bits m bits o bits p bits (125-m-n-o-p) bits 010 Registry ID Provider ID Subscriber ID Subnet ID Interface ID
Daisy-chain Extension Headers Basic header Next header = TCP segment TCP Basic header Routing header Fragment header Authentication header Next header = Next header = Next header = Next header = TCP segment routing fragment authentication TCP
Extension Header for Jumbo Packet 0 8 16 24 31 Next Header 0 194 Opt Len = 4 Jumbo Payload Length
Fragment extension Header 0 8 16 29 31 Next Header Reserved Fragment Offset Res M Identification
Routing Extension Header 0 8 16 24 31 Next Header Header Length Routing Type = 0 Segment Left Reserved Strict/Loose Bit Mask Address 1 Address 2 . . . Address 24
UDP Datagram 0 16 31 Source Port Destination Port UDP Length UDP Checksum Data
UDP Pseudoheader 0 8 16 31 Source IP Address Destination IP Address 0 0 0 0 0 0 0 0 Protocol = 17 UDP Length
TCP Preview Application Application byte stream byte stream segments Transmitter Receiver Send buffer Receive buffer ACKs
TCP Segment 0 4 10 16 24 31 Source Port Destination Port Sequence Number Acknowledgement Number U A P R S F Header R C S S Y I Reserved Window Size Length G K H T N N Checksum Urgent Pointer Options Padding Data
TCP Pseudoheader 0 8 16 31 Source IP Address Destination IP Address 0 0 0 0 0 0 0 0 Protocol = 6 TCP Segment Length