`

IIlustration of the IPv4 Header

阅读更多


 

version: the version of ip service, For IPv4, its value is 4, for IPV6, its value is 6.


header length: the length of ip header, the maximum value is 60 because of using 4 bits representing the length. Generally, its value is 20.

 

type of service: the 8 bits are divided into 3 parts. the first part using 3 bits has been discarded, the second part uses 4 bits,  each bit denotes a functionality.

 

the first bit tells ip module using strategy of minimum delay; the second bit tells ip module using strategy of maxmum throughput; the third bit tells ip module

 

using strategy of maxmum reliability and the fourth bit tells ip module using strategy of minimum cost. The four bits can be only one bit set to 1 at a time.

 

The last bit of type of service is reserved, not using.

 

total length: the length of IP datagram including length of ip header and length of data.

 

identification: It is unique to identify a datagram. Its value is produced randomly. Its value is automatically added by 1 after sending a datagram and would be copied

 

to each fragmentation, therefore all of fragmentations have the same identification.

 

flags: It indicates if there are fragmentations. the first bit is reserved. The second bit denotes "Don't Fragment", if this flag is set, ip module would not fragment datagram.

 

In this situation, if the length of datagram is greater than the MTU, ip module would abandon this datagram and return an ICMP error datagram. The third bit denotes "More Fragment".

 

Other fragmentation must set this bit to 1 except the last fragmentaion in the same group.

 

fragmentaion offset: It indicates the data offset, not including header, of a fragmentation relativing to the original datagram. The actual value using by ip module is the value left

 

shifting 3 bits, which means the length of each fragmentation must be multiples of 8 except the last fragmentation in the same group.

 

time to live: it denotes the maxmum passed steps of the datagram from source  to destination, the value is generally set to 64. the value would be subtracted by 1 while the datagram

 

passed a router. while the value is 0, router would abandon datagram and reuturn an ICMP error datagram. This value can avoid data falling into the trap of Routing Loops.

 

protocol: It can be used to distinguish the protocol of upper layer, TCP, UDP, ICMP and so on.

 

header checksum: It is filled by sender and used by receiver to check if the header of ip datagram is entire and valid.

 

source IP address: It denotes the IP address of sender.

 

destination IP address: It denotes the IP address of receiver.

 

options: They are not used often and here we will not illustrate them.

 

  • 大小: 8.3 KB
分享到:
评论

相关推荐

    IPv4-HEADER-03 测试数据

    TC8 IPv4_HEADER_03 测试数据

    IPv4-HEADER-02测试数据

    TC8 测试 IPv4_HEADER_02测试数据

    Handbook of IPv4 to IPv6 Transition

    ### 知识点一:IPv4到IPv6过渡方法论 #### 介绍 《IPv4到IPv6过渡手册》提供了一系列全面的方法和技术,用于指导机构和企业网络从IPv4平滑过渡到IPv6。IPv4地址空间的枯竭促使全球范围内进行网络架构的重大升级,...

    IPV6 转 IPV4工具

    IPv6到IPv4转换工具是为了解决网络通信中IPv6和IPv4不兼容的问题而设计的。在当前互联网环境中,IPv4地址已接近枯竭,而IPv6因其巨大的地址空间成为未来的趋势。然而,由于过渡期间的兼容性问题,许多设备和服务仍然...

    IPv4协议&IPv6 8.doc

    IPv4包长由首部(header)和实际的数据部分组成。数据部分一般用来传送其它的协议,如TCP, UDP,ICMP等。数据部分最长可为65515字节(=2^16 - 1 - 最短首部长度20字节)。 低层(链路层)的特性会限制能支持的IP...

    IPv4/IPv6过渡技术

    - **BIS (Bump-in-the-Stack)** 和 **BIA (Bump-in-the-API)**:通过修改操作系统内核或应用程序接口实现IPv4和IPv6的互操作。 - **DSTM (Dual-Stack Tunneling Mechanism)**:结合了双栈和隧道技术的特点,为IPv6...

    IPV4子网掩码计算器v1.0.xlsm

    目前为止最好用的: IPV4子网掩码计算器, IPV4子网划分计算器

    IPv6与IPv4转换技术

    IPv6(Internet Protocol Version 6)是互联网协议的第六版,设计用来替代当前广泛使用的IPv4,因为IPv4地址池即将耗尽。IPv6引入了更庞大的地址空间,解决了IPv4地址不足的问题,并且提供了更好的安全性、效率和可...

    全球IPv4归属地

    标题 "全球IPv4归属地" 指的是一项服务或数据资源,它包含了关于全球所有IPv4地址的信息,这些信息通常包括IP地址的所属国家、地区、城市等地理位置信息,以及可能的网络运营商等详细数据。这样的数据对于网络分析、...

    IPV4和IPV6兼容的socket编程(原著)

    IPv4和IPv6兼容的socket编程是现代网络编程中的一项重要技术,特别是在向IPv6迁移的过程中。IPv4和IPv6是互联网协议的两种版本,IPv4是早期的4字节地址系统,而IPv6则是为了解决IPv4地址耗尽问题而设计的128字节地址...

    IPV4与IPV6兼容的socket编程

    IPV4 与 IPV6 兼容的 Socket 编程 在 Socket 编程中,兼容 IPV4 和 IPV6 是一个非常重要的设计考虑。 IPV4 和 IPV6 是两种不同的网络协议,它们之间存在着一定的差异,特别是在地址结构和 Socket 编程接口方面。...

    全球IPv4地址分配库

    全球IPv4地址分配情况,chm格式。网络安全人士必备。

    ensp实验:ipv6 over ipv4

    IPv6 over IPv4是一种在IPv4网络中传输IPv6数据包的技术,主要用于过渡阶段,使得不支持IPv6的网络基础设施可以承载IPv6流量。在这个ensp(Enterprise Network Simulation Platform,企业网络模拟平台)实验中,我们...

    WinPcap来捕获和分析ipv4

    IPv4是互联网协议的第四版,是互联网上最广泛使用的网络层协议,负责在不同网络之间路由数据包。 一、WinPcap基础知识 1. **WinPcap架构**:WinPcap由四个主要组件组成:Packet Driver(数据包驱动)、Kernel ...

    The NAT-PT Providing IPv4 to IPv6 and IPv6 to IPv4 Address Translation

    ### NAT-PT:提供IPv4到IPv6及IPv6到IPv4地址转换 #### 引言 随着互联网的快速发展,IPv4地址空间逐渐耗尽,IPv6作为一种解决方案被提出并得到了广泛的应用。IPv6不仅解决了地址空间的问题,还带来了诸多改进,如...

    IPv4包头详解

    ### IPv4包头详解 IPv4包头是互联网协议第4版(Internet Protocol version 4, IPv4)中用于封装数据的重要组成部分。它包含了确保数据在网络中正确传输所需的关键信息。接下来,我们将深入探讨IPv4包头中的各个字段...

    通信与网络中的IPv4网络和IPv6网络互连技术

    IPv4网络和IPv6网络互连技术是当前网络演进中的关键问题,因为尽管IPv6正在逐渐推广,但IPv4由于其广泛部署和历史积累,短期内仍占据主导地位。为了解决这两种网络并存的问题,一种重要的解决方案是利用网络地址和...

    IPV4计算器

    标题中的“IPV4计算器”指的是一个专门用于处理IPv4(Internet Protocol Version 4)地址的工具。在互联网中,IPv4是最早被广泛使用的网络协议之一,它为每个连接到互联网的设备分配一个唯一的32位地址。由于IPv4...

Global site tag (gtag.js) - Google Analytics