IP头格式口诀

 IP头格式口诀:

版头类全分组三,

存活协议checksum,

源目选项占的宽。

 

IP头最少占20bytes

-----------------------------------------------------------------------------------------------------------------------------------------------

|  ver(4bit) |  Hlen(4bit)  |           TOS(Type of service) 8bit          |                          Total Length                              |

----------------------------------------------------------------------------------------------------------------------------------------------

|                                   Idendification(16 bit)                                    |   Flag(3bit)|        Offset(13bit)                         |

--------------------------------------------------------------------------------------------------------------------------------------------

|       TTL(8bit)               |              Protocol(8bit)                              |                         checksum(16bit)                           |

-------------------------------------------------------------------------------------------------------------------------------------------

|                                                                                             source address (32bit)                                                   |

--------------------------------------------------------------------------------------------------------------------------------------------

|                                                                           destination address(32bit)                                                                |

----------------------------------------------------------------------------------------------------------------------------------------------

|                                                                       option(if has)                                                                                            |

_________________________________________________________________________________

 

 

你可能感兴趣的:(service)