1 / 17

广域网协议的封装

广域网协议的封装. 主讲:张朋 平湖职业中专. 常用的广域网协议. PPP(Point to Point Protocol) 、 HDLC(High level Data Link Control) 、 fram-relay , X·25 , slip 。 PPP :点对点的协议,华为路由器默认封装,是面向字符的控制协议。 HDLC :高级数据链路控制协议, Cisco 路由器默认的封装,是面向位的控制协议。 fram-relay :表示帧中继交换网,它是 x.25 分组交换网的改进,以虚电路的方式工作。

nona
Download Presentation

广域网协议的封装

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 广域网协议的封装 主讲:张朋 平湖职业中专

  2. 常用的广域网协议 • PPP(Point to Point Protocol)、HDLC(High level Data Link Control)、fram-relay,X·25,slip。 • PPP:点对点的协议,华为路由器默认封装,是面向字符的控制协议。 • HDLC:高级数据链路控制协议,Cisco路由器默认的封装,是面向位的控制协议。 • fram-relay:表示帧中继交换网,它是x.25分组交换网的改进,以虚电路的方式工作。 • SDLC:同步数据链路控制(SDLC)协议是一种 IBM 数据链路层协议,适用于系统网络体系结构(SNA)。

  3. PPP协议 • 1、PPP协议的组成和特点 • PPP协议是在SLIP基础上开发的,解决了动态IP和差错检验问题。 • PPP协议包含数据链路控制协议LCP和网络控制协议NCP。 • LCP协议提供了通信双方进行参数协商的手段。 • NCP协议使PPP可以支持IP、IPX等多种网络层协议及IP地址的自动分配。 • PPP协议支持两种验证方式:PAP和CHAP。 • 2、PAP(Password Authentication Protocol)验证 • PAP验证是简单认证方式,采用明文传输,验证只在开始联接时进行。 •   验证方式: • (1)被验方先发起联接,将username和Password一起发给主验方。 • (2)主验方收到被验方username和Password后,在数据库中进行匹配,并回送ACK或NAK。

  4. 3、CHAP(Challenge-Handshake Authentication Protocol)验证 • CHAP是要求握手验证方式,安全性较高,采用密文传送用户名。 •   主验方和被验方两边都有数据库。 •   要求双方的用户名互为对方的主机名,即本端的用户名等于对端的主机名,且口令相同。 •   验证方式: • (1) 主验方向被验证方发送随机报文,将自己的主机名一起发送。 • (2) 被验方根据主验方的主机名在本端的用户表中查找口令字, •   将口令加密运算后加上自己的主机名及用户名回送主验方。 • (3) 主验方根据收到的被验方的用户名在本端查找口令字,根据验证结果返回验证结果。

  5. 帧中继 • 企业网申请帧中继时,局端提供DLCI号和接入的LMI类型,局端是DCE,客户端是DTE。 •   设局端提供的虚电路号DLCI是16和17,本地管理类型接口LMI是Cisco。 •   设置内容:连接端口的IP地址,指定lmi类型,设置虚电路号。 •   例如: • Router(config)#int s0/0 • Router(config-if)#ip address 172.l6.20.1 255.255.255.0 • RouterA(config-if)#encapsulation frame-relay • !将接口协议封装为帧中继 • RouterA(config-if)#end  如果在实验室条件下配置帧中继,要求用一个路由器做继交换机switching。 • Router(config)#frame-relay switching •   当要求一点对多点时,可以使用子接口的帧中继设置。

  6. X.25封装 • X.25使得两台数据终端设备DTE可以通过现有的分组交换网络进行通信。为了进行一次通信,通信的一端必须首先呼叫另一端,请求在他们之间建立一个会话连接;被呼叫的一端可以可以根据自己的情况接收或拒绝这个连接请求。一旦这个连接建立,两端的设备可以全双工地进行信息传输,并且任何一端在任何的时候均有权拆除这个连接。 • X.25是DTE与DCE进行点到点交互的规程。DTE通常指的是用户侧的主机或终端等,DCE则常指同步调制解调器等设备;DTE与DCE直接连接,DCE连接至分组交换机的某个端口,分组交换机之间建立若干连接,这样,便形成了DTE与DCE之间的通路。

  7. 项目实施

  8. 1、查看广域网接口默认的封装类型: • Ra# show interface serial 1/2 • serial 1/2 is UP , line protocol is UP !查看接口的状态,是否为UP • Hardware is PQ2 SCC HDLC CONTROLLER serial • Interfaceaddress is: 1.1.1.2/24 !查看接口IP地址的配置 • MTU 1500 bytes, BW 512 Kbit !查看接口的带宽为512K • Encapsulation protocol is HDLC, loopback not set !默认的封装协议是HDLC • Keepalive interval is 10 sec , set • Carrier delay is 2 sec • RXload is 1 ,Txload is 1 • Queueing strategy: WFQ • 5 minutes input rate 17 bits/sec, 0 packets/sec • 5 minutes output rate 17 bits/sec, 0 packets/sec • 511 packets input, 11242 bytes, 0 no buffer • Received 511 broadcasts, 0 runts, 0 giants • 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort

  9. 511 packets output, 11242 bytes, 0 underruns • 0 output errors, 0 collisions, 1 interface resets • 1 carrier transitions • V35 DTE cable !该接口为DTE端 • DCD=up DSR=up DTR=up RTS=up CTS=up • 2、查看广域网接口支持的封装类型: • RouterA(config)#interface serial 1/2 • RouterA(config-if)#encapsulation ? !encapsulation是封装数据链路层协议的命令 • frame-relay Frame Relay networks !帧中继协议 • hdlc serial HDLC synchronous !高级数据链路控制协议 • lapb LAPB(X.25 Level 2) !X.25的二层协议 • ppp Point-to-Point protocol !PPP点到点协议 • x25 X.25 !X.25协议 • 3、更改广域网接口的封装类型。

  10. PPP封装 • RouterA(config)#interface serial 1/2 !进行serial 1/2 • RouterA(config-if)#encapsulation ppp !将接口协议封装为PPP • RouterA(config-if)#end • RouterA#show interface serial 1/2 !查看接口的封装协议 • serial 1/2 is UP , line protocol is DOWN • Hardware is PQ2 SCC HDLC CONTROLLER serial • Interfaceaddress is: 192.168.1.1/24 • MTU 1500 bytes, BW 2000 Kbit • Encapsulation protocol is PPP, loopback not set • Keepalive interval is 10 sec , set • Carrier delay is 2 sec • RXload is 1 ,Txload is 1

  11. LCP Reqsent !PPP协议相关参数 • Closed: ipcp • Queueing strategy: FIFO • Output queue 0/40, 0 drops; • Input queue 0/75, 0 drops • 5 minutes input rate 14 bits/sec, 0 packets/sec • 5 minutes output rate 36 bits/sec, 0 packets/sec • 403 packets input, 8866 bytes, 0 no buffer • Received 246 broadcasts, 0 runts, 0 giants • 15 input errors, 0 CRC, 15 frame, 0 overrun, 0 abort • 1011 packets output, 29156 bytes, 0 underruns • 0 output errors, 0 collisions, 59 interface resets • 1 carrier transitions • V35 DCE cable • DCD=up DSR=up DTR=up RTS=up CTS=up

  12. Frame-Relay封装 • RouterA(config)#interface serial 1/2 !进行serial 1/2 • RouterA(config-if)#encapsulation frame-relay !将接口协议封装为帧中继 • RouterA(config-if)#end • RouterA#show interface serial 1/2 !查看接口的封装协议 • serial 1/2 is UP , line protocol is UP • Hardware is PQ2 SCC HDLC CONTROLLER serial • Interfaceaddress is: 192.168.1.1/24 • MTU 1500 bytes, BW 2000 Kbit • Encapsulation protocol is FRAME RELAY, loopback not set !封装协议 • Keepalive interval is 10 sec , set • Carrier delay is 2 sec • RXload is 1 ,Txload is 1 • LMI enq sent 1, LMI status recvd 0, LMI update recvd 0, DTE LMI up • LMI enq recvd 0, LMI status sent 0, LMI update sent 0 • LMI DLCI 0 LMI type is CCITT, frame relay DTE interface broadcasts 0

  13. !帧中继协议相关参数 • Queueing strategy: FIFO • Output queue 0/40, 0 drops; • Input queue 0/75, 0 drops • 5 minutes input rate 15 bits/sec, 0 packets/sec • 5 minutes output rate 36 bits/sec, 0 packets/sec • 405 packets input, 8910 bytes, 0 no buffer • Received 246 broadcasts, 0 runts, 0 giants • 15 input errors, 0 CRC, 15 frame, 0 overrun, 0 abort • 1017 packets output, 29239 bytes, 0 underruns • 0 output errors, 0 collisions, 61 interface resets • 1 carrier transitions • V35 DCE cable • DCD=up DSR=up DTR=up RTS=up CTS=up

  14. X.25封装 • RouterA(config)#interface serial 1/2 !进行serial 1/2 • RouterA(config-if)#encapsulation X25 !将接口协议封装为X.25 • RouterA(config-if)#end • RouterA#show interface serial 1/2 !查看接口的封装协议 • serial 1/2 is UP , line protocol is DOWN • Hardware is PQ2 SCC HDLC CONTROLLER serial • Interfaceaddress is: 192.168.1.1/24 • MTU 1500 bytes, BW 2000 Kbit • Encapsulation protocol is X.25, loopback not set !查看封装协议 • Keepalive interval is 0 sec , no set • Carrier delay is 2 sec • RXload is 1 ,Txload is 1 • LAPB DTE, modulo 8, k 7, N1 12056, N2 20 • T1 3000, interface outage (partial T3) 0, T4 0 • State SABMSENT, VS 0, VR 0, Remote VR 0, Retransmissions 2 • Queues: U/S frames 0, I frames 0, unack. 0, reTx 0 • IFRAMEs 0/0 RNRs 0/0 REJs 0/0 SABM/Es 2/0 FRMRs 0/0 DISCs 0/0

  15. X25 DTE,address , state R1, modulo 8 • Defaults: DEF encapsulation, idle 0, nvc 3 • input/output window sizes 2/2, packet sizes 128/128 • Timers: T20 180, T21 200, T22 180, T23 180, TH 0 • Channels: Incoming-only none, Two-way 1-1024, Outgoing-only none • RESTARTs 0/0 CALLs 0+0/0+0/0+0 DIAGs 0/0 !X.25协议相关参数 • Queueing strategy: FIFO • Output queue 0/40, 0 drops; • Input queue 0/75, 0 drops • 5 minutes input rate 16 bits/sec, 0 packets/sec • 5 minutes output rate 32 bits/sec, 0 packets/sec • 407 packets input, 8954 bytes, 0 no buffer • Received 246 broadcasts, 0 runts, 0 giants • 15 input errors, 0 CRC, 15 frame, 0 overrun, 0 abort • 1021 packets output, 29269 bytes, 0 underruns • 0 output errors, 0 collisions, 61 interface resets • 1 carrier transitions • V35 DCE cable • DCD=up DSR=up DTR=up RTS=up CTS=up

  16. 注意事项 • 封装广域网协议时,要求V.35线缆的两个端口封装协议一致,否则链路将无法建立。

  17. 平湖职业中专欢迎您  

More Related