IPheader::=SEQUENCE{
Version BIT STRING(SIZE(4)), 4
IHL INTEGER(0..16), 6
TypeofService TYPEOFSERVICE, 00
TotalLength INTEGER(0..16K), 00 2c
Identification BIT STRING(SIZE(16)), 00 00
Flags FLAGS, 010
FragmentOffset BIT STRING(SZIE(13)) 00 00
TimetoLive INTEGER(0..255), FF
Protocol BIT STRING(SIZE(8)) 06
HeaderChecksum INTEGER(0..16K), A1 BD
SourceAddress BIT STRING(SIZE(32)), 0A 44 C5 1E
DestinationAddress BIT STRING(SIZE(32)), 0A 00 00 AC
Options BIT STRING(SZIE(24)) OPTIONAL,
Padding BIT STRING(SIZE(8)) OPTIONAL,
Date OCTET STRING
}
TYPEOFSERVICE::=SEQUENCE{
PRECEDENCE INTEGER(0..7),
D INTEGER(0,1),
T INTEGER(0,1),
R INTEGER(0,1),
Spare INTEGER(0..3)
}
FLAGS::=SEQUENCE{
Spare INTEGER(0),
DF INTEGER(0,1),
MF INTEGER(0,1)
}
45 00 00 2C 00 00 40 00 FF 06 A1 BD 0A 44
C5 1E 0A 00 00 AC
Octet(s)
Description
45 = 0100 0101
版本 = 0100 首部长度 = 0101
00
服务类型
00 2c
长度 = 0x 2c
00 00
认证
40 00 = 010 + ...
标志 = 010 段偏移量 = 0x 00
FF
TTL = 0x FF
06
协议 = TCP
A1 BD
校验和
0A 44 C5 1E
源IP = 10.68.192.30
0A 00 00 AC
目标IP = 10.0.0.172
TCP 层数据
。。。。