830 views
1 votes
1 votes

When a packet is discarded or lost at some node, we know that network layer will send an ICMP packet.

This ICMP packet is able to give the following information,

1) Which node has discarded the pkt/datagram by inserting it's IP address.

2) Why the pkt has been discarded by filling with appropriate message like TTL exceed/ Source quench etc.

3) Which pkt has been discarded?

The 3rd info is placed in a ICMP packet by inserting Header of Datagram of the discarded pkt along with additional 8 bytes of data? Why we have to keep data bits? Header is only sufficient i think.
Following is the structure of above ICMP packet,

Correct me if iam wrong.
Please explain .

1 Answer

0 votes
0 votes
You can answer this yourself!

 

Packet encapsulates what??

      Packet = IP header + TCP/UDP segment;

 

TCP/UDP segment encapsulates what??

      Segment = TCP Header/UDP header + Application layer data;

 

So,       IP header + first 8 bytes of data inside a packet = IP header + portion of TCP/UDP header.

 

Here's a task for you:

                                   a) See what's stored inside the first 8 bytes of TCP as well as UDP header.

                                    b) Think how this information is beneficial.

Related questions

1 votes
1 votes
1 answer
3