永发信息网

HDLC封装与PPP封装的区别?

答案:1  悬赏:40  手机版
解决时间 2021-04-08 12:16
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.25R1(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.1Type 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#
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
单选题对戊戌变法的评价,不正确的是A.是一次
赛百味的配菜都有什么,春饼的配菜都有什么菜
为什么找不到薪资和能力匹配的工作
创维电视连接无线网以前不收费,现在所有都收
谭木匠梳子是越沉越好吗
火灾报警控制器正面操作距离啥意思
新疆啤酒花股份有限公司的概念内容
满月酒主持人台词简单,满月酒喜宴主持词怎么
求各种泰勒斯威夫特是女主角的小说,中锋至上
什么是求职意向,求职意向岗位是什么意思
夏季闷热,我该如何睡觉
作为低成本信息交换和共享平台的互联网的发展
裹胸和抹胸有什么区别?
辩论题目:纸质阅读会被电子阅读所取代吗。正
2pac名气怎么样,有MJ大吗,他是不是说唱最牛
推荐资讯
指出下列复句的类型(2分)(1)要是你能早点
钱包里的钱被别人拿走了,我反复几次拿出钱包
求推荐类似于松鼠大作战 菲利斯猫 宾尼兔历险
win7显示有限的访问权限
宝马x5领先型到底有没有电动吸合门
微商怎么做1,搭建企业微盟微信商城
微信开通的快捷支付和qq里的是一样的吗
绞车放飞车有哪些危害
在放梅长苏在悬镜司牢里的时候放的歌叫什么?
急求陈凯歌的《黄土地》百度云共享谢了
无证私人托儿所谁来管??
单位有个元老 仗着在公司工作多年的资本 喜欢
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?