News
发布日期:2022-08-16 浏览次数:2006 来源:崔志鹏
HCIE培训Datacom考试技术笔记学习-PPP报文类型-WOLFLAB
关注WOLFLAB网络实验室,我们提供HCIE技术培训学习
LCP阶段的报文:
con-request:
Frame 9: 18 bytes on wire (144 bits), 18 bytes captured (144 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff //没意义固定为0XFF,因太链路不需要MAC地址
Control: 0x03 //没意义固定为0X03 ,表示无序号帧,表示不可靠传输;
Protocol: Link Control Protocol (0xc021) //表示上层是个什么报文
PPP Link Control Protocol
Code: Configuration Request (1) //表示报文的类型
Identifier: 2 (0x02) //标识符没啥用,就跟IP头部那个ID有点像
Length: 14
Options: (10 bytes), Maximum Receive Unit, Magic Number
Maximum Receive Unit: 1500 //MRU,采用TLV的方式携带
Type: Maximum Receive Unit (1)
Length: 4
Maximum Receive Unit: 1500
Magic Number: 0x0020a1db //魔术字,采用TLV的方式携带
Type: Magic Number (5)
Length: 6
Magic Number: 0x0020a1db
con-ack:就是把request里面的内容确认一遍
Frame 10: 18 bytes on wire (144 bits), 18 bytes captured (144 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Link Control Protocol (0xc021)
PPP Link Control Protocol
Code: Configuration Ack (2)
Identifier: 2 (0x02)
Length: 14
Options: (10 bytes), Maximum Receive Unit, Magic Number
Maximum Receive Unit: 1500
Type: Maximum Receive Unit (1)
Length: 4
Maximum Receive Unit: 1500
Magic Number: 0x0020a1db
Type: Magic Number (5)
Length: 6
Magic Number: 0x0020a1db
注意:
①address+control一起来标识PPP报文,PPP报头为FF03,用于表示帧的类型,注意,address和control分开有各自的意义,但是用不上了,那就合在一起来表示PPP报文;
Protocol | 0xc021 | 报文类型 |
Code | 1 | LCP Configuration Request |
2 | LCP Configuration Ack | |
3 | LCP Configuration NAK | |
4 | LCP Configuration reject | |
PAP认证阶段的报文:
auth-request:
Frame 2233: 23 bytes on wire (184 bits), 23 bytes captured (184 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Password Authentication Protocol (0xc023)
PPP Password Authentication Protocol
Code: Authenticate-Request (1)
Identifier: 1
Length: 19
Data
Peer-ID-Length: 4
Peer-ID: wolf
Password-Length: 9
Password: wolf-hcie
auth-ack:
Frame 2234: 52 bytes on wire (416 bits), 52 bytes captured (416 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Password Authentication Protocol (0xc023)
PPP Password Authentication Protocol
Code: Authenticate-Ack (2)
Identifier: 1
Length: 48
Data
Message-Length: 43
Message: Welcome to use Quidway ROUTER, Huawei Tech.
auth-nak:
Frame 2257: 9 bytes on wire (72 bits), 9 bytes captured (72 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Password Authentication Protocol (0xc023)
PPP Password Authentication Protocol
Code: Authenticate-Nak (3)
Identifier: 1
Length: 5
Data
Message-Length: 0
Message:
ter-request:
Frame 2262: 8 bytes on wire (64 bits), 8 bytes captured (64 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Link Control Protocol (0xc021)
PPP Link Control Protocol
Code: Termination Request (5)
Identifier: 9 (0x09)
Length: 4
ter-ack:
Frame 2263: 8 bytes on wire (64 bits), 8 bytes captured (64 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Link Control Protocol (0xc021)
PPP Link Control Protocol
Code: Termination Ack (6)
Identifier: 9 (0x09)
Length: 4
Protocol | 0xc023 | 报文类型 |
Code | 1 | PAP Authenticate-Request |
2 | PAP Authenticate-Ack | |
3 | PAP Authenticate-Nak | |
Protocol | 0xc021 | 报文类型 |
5 | Termination Request | |
6 | Termination Ack |
CHAP认证阶段的报文:
挑战报文:
Frame 326: 25 bytes on wire (200 bits), 25 bytes captured (200 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Challenge Handshake Authentication Protocol (0xc223)
PPP Challenge Handshake Authentication Protocol
Code: Challenge (1)
Identifier: 1
Length: 21
Data
Value Size: 16
Value: 254422655b51b640c5de6ad0cb67bbd2
Response报文:
Frame 327: 29 bytes on wire (232 bits), 29 bytes captured (232 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Challenge Handshake Authentication Protocol (0xc223)
PPP Challenge Handshake Authentication Protocol
Code: Response (2)
Identifier: 1
Length: 25
Data
Value Size: 16
Value: 977be4e630a98b4d6177aa91c3946f80
Name: wolf
成功报文:
Frame 328: 20 bytes on wire (160 bits), 20 bytes captured (160 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Challenge Handshake Authentication Protocol (0xc223)
PPP Challenge Handshake Authentication Protocol
Code: Success (3)
Identifier: 1
Length: 16
Message: Welcome to .
失败报文:
Frame 348: 33 bytes on wire (264 bits), 33 bytes captured (264 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Challenge Handshake Authentication Protocol (0xc223)
PPP Challenge Handshake Authentication Protocol
Code: Failure (4)
Identifier: 1
Length: 29
Message: Illegal User or password.
Protocol | 0xc223 | 报文类型 |
Code | 1 | CHAP Challenge |
2 | CHAP Response | |
3 | CHAP Success | |
4 | CHAP Failure | |
Protocol | 0xc021 | 报文类型 |
5 | Termination Request | |
6 | Termination Ack |
NCP阶段报文:
con-request:
Frame 2419: 14 bytes on wire (112 bits), 14 bytes captured (112 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Internet Protocol Control Protocol (0x8021)
PPP IP Control Protocol
Code: Configuration Request (1)
Identifier: 1 (0x01)
Length: 10
Options: (6 bytes), IP Address
IP Address
Type: IP Address (3)
Length: 6
IP Address: 1.1.12.1
con-ack:就是把request里面的内容确认一遍
Frame 2421: 14 bytes on wire (112 bits), 14 bytes captured (112 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Internet Protocol Control Protocol (0x8021)
PPP IP Control Protocol
Code: Configuration Ack (2)
Identifier: 1 (0x01)
Length: 10
Options: (6 bytes), IP Address
IP Address
Type: IP Address (3)
Length: 6
IP Address: 1.1.12.1
Protocol | 0x8021 | 报文类型 |
Code | 1 | IPCP Configuration Request |
2 | IPCP Configuration Ack | |
3 | IPCP Configuration Nak | |
LCP建立完成通过request和reply维持一段链路
request:
Frame 32: 12 bytes on wire (96 bits), 12 bytes captured (96 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Link Control Protocol (0xc021)
PPP Link Control Protocol
Code: Echo Request (9)
Identifier: 37 (0x25)
Length: 8
Magic Number: 0x5c8c3e16
reply:
Frame 33: 12 bytes on wire (96 bits), 12 bytes captured (96 bits) on interface -, id 0
Point-to-Point Protocol
Address: 0xff
Control: 0x03
Protocol: Link Control Protocol (0xc021)
PPP Link Control Protocol
Code: Echo Reply (10)
Identifier: 37 (0x25)
Length: 8
Magic Number: 0x11676e86
Protocol | 0xc021 | 报文类型 |
9 | Request | |
10 | Reply |
关注WOLFLAB网络实验室,HCIE培训课程循环开班,联系在线客服预约免费试听!