TCP/IP learning ---- IP datagram format

Source: Internet
Author: User

TCP/IP learning ---- IP datagram format the format of IP datagram is as follows (Here we only discuss IPv4) IP datagram format version 4B header length 4B service type (TOS) 8B total length (number of bytes) 16B flag 16 mark 3B offset 13B survival time (TTL) 8B protocol 8B header check and 16B source IP address 32B destination IP address 32B (note that the total length of the above fields is 20 bytes) option (if any) Data note: 1. The length of the IP datagram header and Data Length are both variable-length, but always an integer multiple of 4 bytes. for IPv4, the 4-bit version field is 4. 2. protocol fields refer to TCP, UDP, ICMP, and IGMP. 3. Only the IP header is verified, and the data validation is performed by a higher level protocol.

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: info-contact@alibabacloud.com 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.