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
Conferences
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

9.2 TCP Header Options

Mandatory TCP header items take up 20 B. These mandatory items are followed by optional items. An optional item is made up of the optional item type, optional item length, and value. The length of the TCP segment must be a multiple of four. If the header length is not a multiple of four, it is padded with NOP (no operation) options.

Since the header length field of the whole TCP segment is only four bits long, this field can only contain a maximum value of 11112=1510. The header length is determined in multiples of four, so the header can have a maximum length of 15x4=60 bytes. Mandatory items take up 20 bytes, so at the most only 40 bytes are left for optional items.

Figure 9.8 shows some TCP header options and their structure. The most interesting item is the Maximum Segment Size (MSS) optional item. Using this item, both sides of a connection can agree on a maximum segment size at the beginning of the connection.

9.2 TCP Header Options

Figure 9.8: Some TCP options

An example of a TCP segment...

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