Top Banner
The Network Layer Chapter 5
21

The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

The Network Layer

Chapter 5

Page 2: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

The IP Protocol

The IPv4 (Internet Protocol) header.

Page 3: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

IP datagram format

ver length

32 bits

data (variable length,typically a TCP

or UDP segment)

16-bit identifier

Internet checksum

time tolive

32 bit source IP address

IP protocol versionnumber

header length (bytes)

max numberremaining hops

(decremented at each router)

forfragmentation/reassembly

total datagramlength (bytes)

upper layer protocolto deliver payload to

head.len

type ofservice

“type” of data flgsfragment

offsetupper layer

32 bit destination IP address

Options (if any) E.g. timestamp,record routetaken, specifylist of routers to visit.

Page 4: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

IP Addresses

IP address formats.

Page 5: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

IP Addresses (2)

Special IP addresses.

Page 6: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

Subnets

A campus network consisting of LANs for various departments.

Page 7: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

Subnets (2)

A class B network subnetted into 64 subnets.

Page 8: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

CDR – Classless InterDomain Routing

A set of IP address assignments.

5-59

Page 9: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

NAT – Network Address Translation

Placement and operation of a NAT box.

Page 10: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

The TCP Segment Header

TCP Header.

Page 11: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

NAT – Network Address Translation

Placement and operation of a NAT box.

Page 12: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

Internet Control Message Protocol

The principal ICMP message types.

5-61

Page 13: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

ICMP: Internet Control Message Protocol

used by hosts & routers to communicate network-level information

error reporting: unreachable host, network, port, protocol

echo request/reply (used by ping) network-layer “above” IP:

ICMP msgs carried in IP datagrams ICMP message: type, code plus first 8 bytes of IP datagram causing error

Type Code description0 0 echo reply (ping)3 0 dest. network unreachable3 1 dest host unreachable3 2 dest protocol unreachable3 3 dest port unreachable3 6 dest network unknown3 7 dest host unknown4 0 source quench (congestion control - not used)8 0 echo request (ping)9 0 route advertisement10 0 router discovery11 0 TTL expired12 0 bad IP header

Page 14: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

Traceroute and ICMP Source sends series of UDP segments to dest

First has TTL =1 Second has TTL=2, etc. Unlikely port number

When nth datagram arrives to nth router: Router discards datagram And sends to source an ICMP

message (type 11, code 0) Message includes name of router&

IP address

When ICMP message arrives, source calculates RTT Traceroute does this 3 times

Stopping criterion UDP segment eventually arrives at destination host Destination returns ICMP “host unreachable” packet (type 3, code 3) When source gets this ICMP, stops.

Page 15: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

ARP– The Address Resolution Protocol

Three interconnected /24 networks: two Ethernets and an FDDI ring.

Page 16: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

Dynamic Host Configuration Protocol

Operation of DHCP.

Page 17: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

The IP Protocol

The IPv4 (Internet Protocol) header.

Page 18: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

The Main IPv6 Header

The IPv6 fixed header (required).

Page 19: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

Extension Headers

IPv6 extension headers.

5-69

Page 20: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

Extension Headers (2)

The hop-by-hop extension header for large datagrams (jumbograms).

Page 21: The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.

Extension Headers (3)

The extension header for routing.