You are on page 1of 57

Network Layer

Protocol
By
Farhan M.Shaikh
B.Sc. (CS),M.Sc. (IT), B.Ed.,M.Ed., M.A (Sociology)., UGC-NET (Education/ Sociology)

Visiting Faculty
L.S. Raheja College, SantaCruz
Tolani College, Andheri
Pioneer Education Center, Borivali, Andheri & Vasai
L.I.I.T., Dadar & Mulund
Unit 1 : Network Layer Protocol
Internetworking
IPv4, IPv4 Protocol Packet Format
IPv6 Protocol Packet Format
IPv4 v/s IPv6
Address Resolution Protocol
(ARP,RARP)
BOOTP, DHCP

farhan.mohd@yahoo.co.in 2
Internetworking
In this section, we discuss internetworking,
connecting networks together to make an
internetwork or an internet

farhan.mohd@yahoo.co.in 3
Internetworking

farhan.mohd@yahoo.co.in 4
Links between two hosts

farhan.mohd@yahoo.co.in 5
Need for Network Layer

farhan.mohd@yahoo.co.in 6
Note

Switching at the network layer in the


Internet uses the datagram approach to
packet switching.

farhan.mohd@yahoo.co.in 7
Note

Communication at the network layer in


the Internet is connectionless.

farhan.mohd@yahoo.co.in 8
IPv4

The Internet Protocol version 4 (IPv4) is the delivery


mechanism used by the TCP/IP protocols.

Topics discussed in this section:


Datagram
Fragmentation
Checksum
Options
farhan.mohd@yahoo.co.in 9
IPv4

farhan.mohd@yahoo.co.in 10
IPv4 datagram format

farhan.mohd@yahoo.co.in 11
IPv4 datagram format

farhan.mohd@yahoo.co.in 12
Service type or differentiated services

farhan.mohd@yahoo.co.in 13
Note

The precedence subfield was part of


version 4, but never used.

farhan.mohd@yahoo.co.in 14
IPv4 datagram format

farhan.mohd@yahoo.co.in 15
IPv4 datagram format

farhan.mohd@yahoo.co.in 16
IPv4 datagram format

farhan.mohd@yahoo.co.in 17
IPv4 datagram format

farhan.mohd@yahoo.co.in 18
Encapsulation of a small datagram in an Ethernet frame

farhan.mohd@yahoo.co.in 19
IPv4 datagram format

farhan.mohd@yahoo.co.in 20
Protocol values

farhan.mohd@yahoo.co.in 21
IPv4 datagram format

farhan.mohd@yahoo.co.in 22
IPv4 Fragmentation Example

farhan.mohd@yahoo.co.in 23
IPv4 Fragmentation Example

farhan.mohd@yahoo.co.in 24
IPv6

The network layer protocol in the TCP/IP protocol


suite is currently IPv4. Although IPv4 is well designed,
data communication has evolved since the inception of
IPv4 in the 1970s. IPv4 has some deficiencies that
make it unsuitable for the fast-growing Internet.

Topics discussed in this section:


Advantages
Packet Format

farhan.mohd@yahoo.co.in 25
IPv6

farhan.mohd@yahoo.co.in 26
IPv6 Advantages

farhan.mohd@yahoo.co.in 27
IPv6 Advantages

farhan.mohd@yahoo.co.in 28
IPv6 Packet Format

farhan.mohd@yahoo.co.in 29
IPv6 Base Header

farhan.mohd@yahoo.co.in 30
IPv6 Base Header Fields

farhan.mohd@yahoo.co.in 31
IPv6 Base Header Fields

farhan.mohd@yahoo.co.in 32
IPv4 v/s IPv6 Header Fields

farhan.mohd@yahoo.co.in 33
IPv4 v/s IPv6

farhan.mohd@yahoo.co.in 34
ADDRESSMAPPING

The delivery of a packet to a host or a router requires


two levels of addressing: logical and physical. We need
to be able to map a logical address to its corresponding
physical address and vice versa. This can be done by
using either static or dynamic mapping.

Topics discussed in this section:


Mapping Logical to Physical Address
Mapping Physical to Logical Address

farhan.mohd@yahoo.co.in 35
Address Resolution Protocols

farhan.mohd@yahoo.co.in 36
Static Mapping
Creating a table that associated a logical address
with a physical address.
This table is stored in each machine on the network.
Each machine that knows, for eg, the IP address of
another machine but not its physical address can
look up in the table.
A static mapping table is usually updated
periodically. This overhead could affect network
performance.

farhan.mohd@yahoo.co.in 37
Dynamic Mapping
Each machine that knows one of the two addresses
(logical or physical), can use a protocol to find the
other one.
Two protocols have been designed to perform
dynamic mapping: address resolution protocol
(ARP) and reverse address routing protocol (RARP).
ARP maps a logical address to physical address.
RARP maps a physical address to a logical address.
ARP and RARP use unicast and broadcast physical
addresses.
Ethernet uses the all 1s address (FF:FF:FF:FF:FF) as
the broadcast address.
farhan.mohd@yahoo.co.in 38
ARP and RARP

farhan.mohd@yahoo.co.in 39
Position of ARP and RARP in
TCP/IP Protocol Suite

farhan.mohd@yahoo.co.in 40
ARP operation

farhan.mohd@yahoo.co.in 41
ARP operation

farhan.mohd@yahoo.co.in 42
Note

An ARP request is broadcast;


an ARP reply is unicast.

farhan.mohd@yahoo.co.in 43
Proxy ARP

farhan.mohd@yahoo.co.in 44
RARP, BOOTP and DHCP

farhan.mohd@yahoo.co.in 45
RARP

farhan.mohd@yahoo.co.in 46
RARP operation

farhan.mohd@yahoo.co.in 47
Note:

The RARP request packets are broadcast;


the RARP reply packets are unicast.

farhan.mohd@yahoo.co.in 48
RARP

farhan.mohd@yahoo.co.in 49
BOOTP

farhan.mohd@yahoo.co.in 50
BOOTP client and server on the same and different networks

farhan.mohd@yahoo.co.in 51
BOOTP

farhan.mohd@yahoo.co.in 52
DHCP

DHCP provides static and dynamic


address allocation that can be
manual or automatic.

farhan.mohd@yahoo.co.in 53
DHCP

farhan.mohd@yahoo.co.in 54
DHCP

farhan.mohd@yahoo.co.in 55
References
Computer Networks,
Tanenbaum A (PHI)

Data Communications and Networking,


Forouzan B (TMH)

farhan.mohd@yahoo.co.in 56
farhan.mohd@yahoo.co.in 57

You might also like