Professional Documents
Culture Documents
IP Datagram and Datagram Fowarding
IP Datagram and Datagram Fowarding
IP Datagram and Datagram Fowarding
5/19/2023
Introduction
Forwarding
Best-effort delivery
5/19/2023
Connectionless Service 1
18-3
5/19/2023
Connectionless Service 2
5/19/2023
Virtual Packets 1
5/19/2023
IP Datagram Format
Header area is usually fixed (20 octets) and can have IP options
(information needed to deliver datagram to destination computer
such as IP address., checksum, type, version..)
Data area can contain between 1 octet and 65,535 octets (216 - 1)
which is usually much larger than the header
5/19/2023
Forwarding datagrams
5/19/2023
Forwarding IP Datagrams
5/19/2023
Routing table
18-
10
5/19/2023
Forwarding An IP Datagram
18-
11
Delivers DatagramsNet
to 2destination network
Net 1 Net 3 Net 4
R1
R2 R3
• Routers maintain a “routing table” of “next hops”
• Next Hop field does not appear in the datagram
5/19/2023
Default routes
18-
13
5/19/2023
Routing Tables and Address Masks
18-
14
5/19/2023
IP Addresses and Routing Table Entries
18-
15
5/19/2023
Address Masks
18-
16
5/19/2023
18-
17
5/19/2023
Example 2
18-
18
if ((Mask[i] & D) == Dest[i]) forward to NextHop[i]
Consider 128.1.15.26:
5/19/2023
Destination and Next-Hop Addresses
5/19/2023
Best-Effort Delivery
18-
Network layer (IP) focuses on datagram delivery
20
Corruption of data
Datagram loss
5/19/2023
IP Datagram Header Format
18-
21
0 4 8 16 19 24 31
VERS H. LEN SERVICE TYPE TOTAL LENGTH
SOURCE IP ADDRESS
DESTINATION IP ADDRESS
BEGINNING OF DATA
.
.
5/19/2023
IP Datagram Header Fields
18-
VERS (4 bits): identify IP version (currently IPV4)
22
5/19/2023
IP Datagram Header Fields (cont’d)
18-
23
5/19/2023
Summary
18-
25
Basic unit of data delivery in TCP/IP is IP datagram
Routers use destination address in IP datagram header
to determine the next-hop
Forwarding information is stored in a routing table
IP datagram header has 40 octets of fixed field
information and may be options
IP datagram can be up to 216-1=65,535 bytes
IP can detect and report errors without fixing them
Transport layer provide reliable delivery (TCP)
5/19/2023