Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Understanding TCP/IP

You're reading from   Understanding TCP/IP A clear and comprehensive guide to TCP/IP protocols

Arrow left icon
Product type Paperback
Published in May 2006
Publisher Packt
ISBN-13 9781904811718
Length
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
CP Books a.s. CP Books a.s.
Author Profile Icon CP Books a.s.
CP Books a.s.
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Introduction to Network Protocols FREE CHAPTER 2. Network Monitoring Tools 3. Physical Layer 4. Link Layer 5. Internet Protocol 6. IP Address 7. Routing 8. IP Version 6 9. Transmission Control Protocol 10. User Datagram Protocol 11. Domain Name System 12. Telnet 13. File Transfer Protocol 14. Hypertext Transfer Protocol 15. Email 16. Forums 17. Lightweight Directory Access Protocol A. CISCO Routers Index

5.2. Internet Control Message Protocol

ICMP is a service protocol that is part of IP. It is used to signal abnormal events in networks built on the IP protocol. ICMP wraps its packets into an IP datagram, i.e., if we capture transported datagrams, we can later find a link header then an IP header followed by the header of the ICMP packet.

It is possible to signal various states with ICMP; however, the reality is that any specific implementation of TCP/IP can only support a certain number of these signals and, above all, many ICMP signals may be discarded by routers for security reasons.

An ICMP packet header is always 8-bytes long (see Figure 5.10). The first four bytes always have the same meaning, and the contents of the remaining four depend on the ICMP packet type.

5.2. Internet Control Message Protocol

Figure 5.10: ICMP packet

The first four bytes of the header always contain the message type, message code, and a 16-bit checksum. The message format depends on the value of the type field. The type field is a rough division...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image