Updated CN Module 4 Network Layer Protocols
Updated CN Module 4 Network Layer Protocols
ARP,
RARP,
ICMP,
IGMP
Address Resolution Protocol (ARP)
The ICMP stands for Internet Control Message Protocol. It is a network layer
protocol. It is used for error handling in the network layer, and it is primarily
used on network devices such as routers. As different types of errors can exist
in the network layer, so ICMP can be used to report these errors and to debug
those errors.
For example, some sender wants to send the message to some destination, but
the router couldn't send the message to the destination. In this case, the router
sends the message to the sender that I could not send the message to that
destination.
Position of ICMP in the network layer
Messages
The ICMP messages are usually divided into two
categories:
ICMP Message Format
The message format has two things; one is a category that tells us which type
of message it is. If the message is of error type, the error message contains the
type and the code. The type defines the type of message while the code defines
the subtype of the message.
The ICMP message contains the following fields:
Debugging tools
There are several tools used for debugging. The two tools that use ICMP for debugging.
The two tools are ping and traceroute.
We have learned about ping in echo-request and echo-reply messages that check
whether the host or a router is alive or running.
Internet Group Management Protocol (IGMP)
IGMP is a communication protocol used by hosts and adjacent routers for multicasting communication
with IP networks and uses the resources efficiently to transmit the message/data packets.
Multicast communication can have single or multiple senders and receivers and thus, IGMP can be used in
streaming videos, gaming or web conferencing tools.
This protocol is used on IPv4 networks and for using this on IPv6, multicasting is managed by Multicast
Listener Discovery (MLD). Like other network protocols, IGMP is used on network layer.
Working:
3.IGMPv3 :
IGMPv2 was revised to IGMPv3 and added source-specific multicast and membership report aggregation.
These reports are sent to 224.0.0.22.
The message packet format in IGMPv3:
2. IGMPv2 :
IGMPv2 is the revised version of IGMPv1 communication protocol.
It has added functionality of leaving the multicast group using group membership.
The message packet format in IGMPv2:
Type –
0x11 for Membership Query
0x12 for IGMPv1 Membership Report
0x16 for IGMPv2 Membership Report
0x22 for IGMPv3 Membership Report
0x17 for Leave Group
•Checksum –
It is the one’s complement of the one’s complement of the sum of IGMP
message.
IGMPv1
IGMPv2
•Version –
IGMPv3 Set to 1.
•Type –
1 for Host Membership Query and Host Membership Report.
•Unused –
8-bits of zero which are of no use.
•Checksum –
It is the one’s complement of the one’s complement of the sum of
IGMP message.
•Group Address –
The group address field is zero when sent and ignored when
received in membership query message. In a membership report
message, the group address field takes the IP host group address
of the group being reported.