Docsity

IP Datagrams, Datagram Forwarding - Computer Network - Lecture Slides, Slides of Computer Networks

Partial preview of the text

Download IP Datagrams, Datagram Forwarding - Computer Network - Lecture Slides and more Slides Computer Networks in PDF only on Docsity!

COMPUTER

NETWORKS

Lecture-

Review Lecture 28

Address Resolution Protocol (ARP)

ARP Message Delivery & Format

Sending an ARP Message

Identifying ARP Responses

Caching ARP Responses

Processing an Incoming ARP Message

Layering, Address Resolution and

Protocol Addresses

Introduction

Fundamental Internet communication service

Format of packets

Processing of packets by Routers

Forwarding Delivery

Connectionless service

End-to-end delivery service is connectionless

Extension of LAN abstraction

Universal addressing Data delivered in packets (frames), each with a header

Combines collection of physical networks into single, virtual network.

Virtual Packets

Packets serve same purpose in internet as frames on LAN.

Each has a header.

Routers (formerly gateways) forward between physical networks.

Virtual Packets

Packets have a uniform, hardware- independent format. Includes header and data. Can't use format from any particular hardware.

Encapsulated in hardware frames for delivery across each physical network.

IP Datagram Size

Datagrams can have different sizes:

Header area usually fixed (20 octets) but can have options.

Data area can contain between 1 octet and 65,535 octets (216 - 1).

Usually, data area is much larger than header.

Forwarding Datagrams

Header contains all information needed to deliver datagram to the destination computer. Destination address Source address Identifier Other delivery information

Router examines header of each datagram and forwards datagram along path to destination.

Routing Table

Routing Tables & Address Masks

In practice, additional information is kept in routing table.

Destination stored as network address.

Next hop stored as IP address of router.

Address mask defines how many bits of address are in prefix. Prefix defines how much of address used to identify network. E.g., class A mask is 255.0.0.0. Used for subnetting.

Address Masks

To identify destination network, apply

address mask to destination address and compare to network address in routing table.

Can use Boolean and

if ((Mask[i] & D) == Dest[i]) forward to NextHop[i].

Address Masks

Best-Effort Delivery

IP provides service equivalent to LAN.

Does not guarantee to prevent:

Duplicate datagrams

Delayed or out-of-order delivery

Corruption of data

Datagram loss Docsity.com

Best-Effort Delivery

Reliable delivery provided by Transport layer

Network layer - IP - can detect and report errors without actually fixing them. Network layer focuses on datagram delivery. Application layer not is interested in differentiating among delivery problems at intermediate routers. Docsity.com