HDLC简介及相应hdlc实训
生活随笔
收集整理的這篇文章主要介紹了
HDLC简介及相应hdlc实训
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
HDLC簡介
HDLC 協議
高級數據鏈路控制(HDLC,High-level Data Link Control)是一種面向比特的鏈路層協議,
其最大特點是對任何一種比特流,均可以實現透明的傳輸。HDLC協議具有以下優點。
HDLC幀格式
在HDLC 中,數據和控制報文均以幀的標準格式傳送,完整的 HDLC的幀由標志字段(F)、地址字段(A)、控制字段(C)、信息字段(I)、幀校驗字段(FCS)等組成,其格式如圖 所示。
| 字段名稱 | 標志F | 地址A | 控制C | 信息1 | 幀校驗序列FCS | 標志F |
| 大小 | 1個字節 01111110 | 1個字節 | 1個字節 | N個字節 | 2個或4個字節 | 1個字節 01111110 |
實訓一:HDLC基本配置
【實驗拓撲】
?
【設備參數表】
| 設備 | 接口 | IP地址 | 子網掩碼 | 默認網關 |
| R1 | S0/0/0 | 192.168.12.1 | 255.255.255.0 | N/A |
| R2 | S0/0/0 | 192.168.12.2 | 255.255.255.0 | N/A |
【實驗步驟】
(1)R1的基本配置
Router(config)#hostname R1R1(config)#interface s0/0/0R1(config-if)#ip add 192.168.12.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#encapsulation hdlc(2)R2的基本配置
Router(config)#hostname R2R2(config)#intR2(config)#interface s0/0/0R2(config-if)#ip add 192.168.12.2 255.255.255.0R2(config-if)#clock rate 2000000R2(config-if)#encapsulation hdlcR2(config-if)#no shutdown(3)驗證配置
R2(config-if)#do ping 192.168.12.1Type 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 = 1/3/6 ms(4)查看接口信息
R1#show interfaces serial 0/0/0Serial0/0/0 is up, line protocol is up (connected)Hardware is HD64570Internet address is 192.168.12.1/24MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation HDLC, loopback not set, keepalive set (10 sec)Last input never, output never, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0Queueing strategy: weighted fairOutput queue: 0/1000/64/0 (size/max total/threshold/drops)Conversations 0/0/256 (active/max active/max total)Reserved Conversations 0/0 (allocated/max allocated)Available Bandwidth 1158 kilobits/sec5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no bufferReceived 0 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort0 packets output, 0 bytes, 0 underruns0 output errors, 0 collisions, 1 interface resets0 output buffer failures, 0 output buffers swapped out0 carrier transitionsDCD=up DSR=up DTR=up RTS=up CTS=up總結
以上是生活随笔為你收集整理的HDLC简介及相应hdlc实训的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 游戏设计----常见的碰撞检测
- 下一篇: html控制页面用ie打开,大神操作wi