Appendix G. Example Messages (示例消息)
本附录提供Mobile IP消息的具体示例。
G.1. Example ICMP Agent Advertisement Message Format (示例ICMP代理广告消息格式)
示例代理广告消息,包含:
- 标准ICMP路由器广告头
- 移动代理广告扩展
- 前缀长度扩展
[ICMP Router Advertisement Header]
Type: 9
Code: 0
...
[Mobility Agent Advertisement Extension]
Type: 16
Length: 10
Sequence Number: 1234
Registration Lifetime: 3600
Flags: H=1, F=1 (Home Agent and Foreign Agent)
Care-of Addresses: 192.168.1.1
[Prefix-Lengths Extension]
Type: 19
Length: 1
Prefix Length: 24
G.2. Example Registration Request Message Format (示例注册请求消息格式)
示例注册请求:
Type: 1
Flags: S=0, B=0, D=0, M=0, G=0, T=0
Lifetime: 3600
Home Address: 10.1.1.100
Home Agent: 10.1.1.1
Care-of Address: 192.168.1.1
Identification: 0x123456789ABCDEF0
[Mobile-Home Authentication Extension]
Type: 32
SPI: 0x00000100
Authenticator: [128-bit HMAC-MD5 value]
G.3. Example Registration Reply Message Format (示例注册应答消息格式)
示例注册应答(成功):
Type: 3
Code: 0 (Registration accepted)
Lifetime: 3600
Home Address: 10.1.1.100
Home Agent: 10.1.1.1
Identification: 0x123456789ABCDEF0
[Mobile-Home Authentication Extension]
Type: 32
SPI: 0x00000100
Authenticator: [128-bit HMAC-MD5 value]