Principle and application of TCP/IP protocol Note 25: Internet Protocol (IP) datagram (Datagram)

Source: Internet
Author: User

1. Datagram (Datagram) format:

2. Length Field

(1) Header Length field,Hlen,4 bits

    • In 4-byte (or 32bits) units
    • Value: 5~15 (that is, the first length is bytes)

(2) Total Length field, sumlength, bits

    • In byte units
    • Header length (i.e. 4 * hlen) + data length

Note: What is the maximum length of IP grouping?


3. Service type field

(1) Type of Service (TOS), 8 bits

    • The quality of service that the group expects

4. Shard Control Fields

(1) Identification field,identification, bits

    • Source Station Each send a group, identity value +1
    • (Source IP address, identity)---> All-network unique group identification

(2) Flag field,flags, 3 bits

(3) Slice offset field,fragmentation offset, bits

    • In 8 bytes Units

Note: Why do IP datagrams need to be fragmented?


Principle and application of TCP/IP protocol Note 25: Internet Protocol (IP) datagram (Datagram)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.