中易网

HDLC封装与PPP封装的区别?

答案:1  悬赏:50  
解决时间 2021-04-18 14:26
HDLC封装与PPP封装的区别?
最佳答案

串行链路上的封装概念
HDLC的PPP封装的区别



R1#sh int s2/0
Serial2/0 is up, line protocol is up
Hardware is M4T
Internet address is 192.168.12.1/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, crc 16, loopback not set--------默认的封装格式是HDLC
Keepalive set (10 sec)
Restart-Delay is 0 secs
Last input 00:00:06, output 00:00:03, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/1/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 1158 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
113 packets input, 7732 bytes, 0 no buffer
Received 108 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
122 packets output, 8872 bytes, 0 underruns
0 output errors, 0 collisions, 3 interface resets
0 output buffer failures, 0 output buffers swapped out
4 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up

R1#
R1#
R1#
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int s2/0
R1(config-if)#en
R1(config-if)#encapsulation ?
atm-dxi ATM-DXI encapsulation
bstun Block Serial tunneling (BSTUN)
frame-relay Frame Relay networks
hdlc Serial HDLC synchronous
lapb LAPB (X.25 Level 2)
ppp Point-to-Point protocol
sdlc SDLC
sdlc-primary SDLC (primary)
sdlc-secondary SDLC (secondary)
smds Switched Megabit Data Service (SMDS)
stun Serial tunneling (STUN)
x25 X.25


R1(config-if)#encapsulation ppp---------------------实验PPP封装



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



R2(config-if)#int s2/0
R2(config-if)#en
R2(config-if)#encapsulation ppp
R2(config-if)#
*Sep 23 09:27:39.315: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
R2(config-if)#^Z
R2#
*Sep 23 09:27:44.483: %SYS-5-CONFIG_I: Configured from console by console
R2#sh int s2/0
Serial2/0 is up, line protocol is up
Hardware is M4T
Internet address is 192.168.12.2/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Open
Open: IPCP, CDPCP, crc 16, loopback not set
Keepalive set (10 sec)
Restart-Delay is 0 secs
Last input 00:00:31, output 00:00:03, output hang never
Last clearing of "show interface" counters 00:01:36
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/1/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 1158 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
29 packets input, 1388 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
30 packets output, 1396 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up

R2#
R2#ping 192.168.12.1--------------同时封装PPP协议测试连通


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/83/116 ms
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int s2/0
R2(config-if)#en
R2(config-if)#encapsulation hdlc-----------R1封装PPP,R2封装HDLC
R2(config-if)#exit
*Sep 23 09:30:57.755: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to down
R2(config-if)#exit^Z
R2#pi
*Sep 23 09:30:59.227: %SYS-5-CONFIG_I: Configured from console by console
*Sep 23 09:30:59.775: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
R2#ping 192.168.12.1


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:
....
*Sep 23 09:31:27.795: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to down.
Success rate is 0 percent (0/5)
R2#sh int s2/0
Serial2/0 is up, line protocol is down -----------R1封装PPP,R2封装HDLC时,封装不匹配,造成链路故障
Hardware is M4T
Internet address is 192.168.12.2/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, crc 16, loopback not set
Keepalive set (10 sec)
Restart-Delay is 0 secs
Last input 00:00:01, output 00:00:07, output hang never
Last clearing of "show interface" counters 00:00:38
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/1/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 1158 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
4 packets input, 64 bytes, 0 no buffer
Received 4 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
8 packets output, 502 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 output buffer failures, 0 output buffers swapped out
2 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up

R2#
R2#

我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
太和县三塔韵达快递员手机号
一尺是多少厘米?
求个WAR3宽屏分辨率补丁
QQ飞行岛图标灭掉了,怎么点亮?不可以手动了
非离子乳化剂能洗冰丝衣服吗
400米跑步技巧,急啊!!
薏米和莴苣叶煮可以吗
手机卡锁死了怎么办?要PUK码,是多少啊?
lol有时候打开游戏会转到直播界面关了就找不
请别跟着我,知道吗。的英文怎么写
mayhem的音标?
求任贤刘版的月亮代表我的心歌曲
北京东坝管道疏通哪家公司好?比较专业的有?
七个月的宝宝老是拉稀屎正常吗
秦岭—淮河的意义?
推荐资讯
佳能6d相机raw存储还能传到手机上吗
我的邮箱是新浪的,用foxmail出现重复收取邮
济源哪有卖水泥漏粪板的
QQ头像自定义的要求是什么
伍佰的女朋友
03的羚羊车,最近冷车怠速上不来,5-600转。
日本法政大学是什么样的?
苹果7plus包装盒条码能扫描出来吗
犬夜叉的妈妈叫什么
microsoft office pro2007有什么用吗?
经常睡觉腿抽筋,是病还是缺钙。?
酵素减肥价格比较优惠的品牌,是哪个啊?
手机登qq时,显示手机磁盘不足,清理后重新登
刺客的套装怎么选啊?