L16 - Network Layer Protocols
L16 - Network Layer Protocols
Internet Protocol
1
Network Layer
• Source Router
• Creating a packet from the upper
layer. • Routing the packet by consulting the
routing table for each incoming packet
• The header contains source and and find the information that the packet
destination IP addresses. must be sent to.
• Checking the routing table to find
the routing info (eg. Outgoing Destination
interface, or machine address of the
next hop) • Address verification.
• For fragmented frames, wait for all
• If the packet is larger than MTU
fragmentations then reassemble them
(Maximum Transmission Unit ), before delivering the packet to the upper
fragment it. layer.
2
INTERNETWORKING
• Internetworking, connecting networks together to make an internetwork or an internet.
• Let us assume that host A needs to send a data
packet to host D.
20.5
Internet Protocol version 4
The Internet Protocol version 4 (IPv4) is the delivery mechanism used by the
TCP/IP protocols.
• IPv4 is an unreliable and
connectionless datagram protocol –
a best effort delivery
• Best effort means that IPv4
provides no error control (except
for error detection on the header) or
flow control
• IPv4 does its best to get a
transmission through to its
Position of IPv4 in TCP/IP protocol suite
destination, but with no guarantees
6
IPv4 Datagram Format
Protocol values
A datagram with a data size of 4000 bytes fragmented into three fragments.
12
Question
Solution
The first byte number is 100 x 8 = 800.
The total length is 100 bytes, and the header length is 20 bytes
(5 x 4)
No. of bytes in the datagram= 80
If the first byte number is 800, the last byte number must be
879.
Question