欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

有关帧中继的全攻略

程序员文章站 2022-04-22 11:15:30
有关帧中继的全攻略   一、简介Frame Relay(帧中继)是一种高性能的广域网(WAN)协议,它运行在OSI参考模型的第一、二层,也就是物理层和数据链路层。 二、相关术语...

有关帧中继的全攻略

 

一、简介Frame Relay(帧中继)是一种高性能的广域网(WAN)协议,它运行在OSI参考模型的第一、二层,也就是物理层和数据链路层。

二、相关术语1、local access rate2、virtual circuit3、permanent virtual circuit (PVC)4、switched virtual circuit (SVC)5、data-link connection identifier (DLCI)6、committed information rate (CIR)7、inverse address resolution protocol (Inverse ARP)8、local management interface (LMI)9、forward explicit congestion notification (FECN)10、backward explicity congestion notification (BECN)

 

三、特点帧中继是面向连接的协议,它基于上层的纠错以及先进的光传输技术满足传输质量的要求,它自身不提供error correction机制。 

帧中继在本地路由器与ISP的本地交换设备相连,它是不管数据是如何具体在ISP云中传输的。 

帧中继所用的线路也可使用串行点到点线路。以下串行标准是被cisco router支持的:EIA/TIA-232EIA/TIA-449EIA/TIA-530V.35V.21

四、帧中继的帧格式帧中继的frame中含有以下几个部分:1、opening flag (0x7E)2、address3、data4、frame check sequence (FCS)5、closing flags (0x7E) 

address部分是由2byte组成的,其中10bit属于dlci号部分,另外6bit为congestion management所用,也就是常用的DE位。 

data部分包含了封装的上层协议内容

五、address mapping有两种地址映射方式:1、动态:LMI (Local management interface) 和 inverse arp 技术提供了DLCI自动发现与绑定2、静态:第二种与对端建立连接的方式是手工定义static map。

六、排错show frame-relay mapshow frame-relay lmi当显示内容中有inactive时,表明对端出现问题,请联系你的分支办公室端ISP解决问题当出现active提示时,说明frame-relay网络正常如果为deleted,则是本端出现问题了,请检查相关配置。

七、几个单词。。。呵呵invert    翻转endorse 认可,赞同,签名于。。subject to 使服务、使遭受,受限制于

八、帧中继配置实例// left routerint s1   ip ad 1.1.1.1 255.255.255.0   encapsulation frame-relay   bandwidth 64 

// right routerint s1   ip ad 1.1.1.2 255.255.255.0   encapsulation frame-relay   bandwidth 64   frame-relay lmi-type ansi 

注意:1、按上面的配置结果是不通的,原因在于lmi-type上,思科默认采用cisco,LMI类型共三种: ansi   cisco   q933a,两端须一致情况下才能进行自动协商。 

2、bandwidth 64:这里的作用在于动态路由协议上,IGRP、EIGRP、OSPF等动态路由协议会根据这里的bandwidth设定值计入相应运算机制 

3、encapsulation frame-relay:这里有两个选项:cisco ietf,默认为cisco,当采用不同厂商设备时,可选择标准的ietf压缩选项。

以上的配置是基于LMI和Inverse ARP的。比较常见的则是static frame relay mapint serial 1   ip ad 1.1.1.1 255.255.255.0   encapsulation frame-relay   bandwidth 64   frame-relay map ip 1.1.1.2 110 broadcast 

注:这里的110为本端dlci号码,broadcast选项表明可以在这条VC上传输broadcast、multicast数据帧,这是为了动态路由协议的正常运行可指定的。当然如果你不打算在广域网上运行OSPF等协议,建议去掉broadcast参数。

九、帧中继子接口point-to-point   and   multipoint模式详解1、point-to-point act like leased line 每个子接口都需要有自己的子网网段,浪费IP地址 适用于hub and spoke星型拓扑2、multipoint act like NBMA networks,所以无法解决split-horizon的问题 所有接口处于一个网段内,节省IP地址资源 适用于partial mesh and full mesh拓扑 例1:(point-to-point)int s0   no ip address   encapsulation frame-relay 

int s0.110 point-to-point   ip address 1.1.1.1 255.255.255.0   bandwidth 64   frame-relay interface-dlci 110 

int s0.120 point-to-point   ip address 1.1.1.2 255.255.255.0   bandwidth 64   frame-relay interface-dlci 120 

注意:1、必须手工指定point-to-point还是multipoint,这里不存在默认选项 

2、当指定为point-to-point时,必须在子接口上配置local dlci以跟物理接口进行区别开来。命令为 frame-relay interface-dlci 110(本地) 

3、当指定为multipoint时,需保证inverse arp是启用的。不需要配置static map 

4、frame-relay interface dlci 110这条命令切勿使用到物理接口上。 

5、如果定义了一个point-to-point子接口,想将其重新设置为multipoint子接口时,必须重新启动路由器。你可以重新定义一个子接口号作为替代。 

6、当使用子接口时,物理接口上只须配置encapsulation frame-relay命令即可

例2:(multipoint)int serial0   no ip address   encapsulation frame-relay 

interface s2.2 multipoint   ip address 1.1.1.1 255.255.255.0   bandwidth 64   frame-relay map ip 1.1.1.2 120 broadcast   frame-relay map ip 1.1.1.3 130 broadcast   frame-relay map ip 1.1.1.4 140 broadcast 

注意:1、split horizon在帧中继多点主接口上默认是关闭的,而在多点子接口上默认是开启 的,我们必须手工disable split horizon。

十、验证配置及排错show frame-relay traffic   // display fram relay traffic statistics 

clear frame-relay-inarp   // clear dynamic created fr maps using inarp 

show int type number   // display information about fr dlci and lmi 

show frame-relay lmi [type number]   // display lmi statistics 

show frame-relay map   // displays current frame-relay map entries 

show frame-relay pvc   // displays pvc statistics

show interface s0   encapsulation frame-relay   lmi dlci 1023   lmi type is cisco   frame relay DTE 

显示lmi type,dlci number,encapsulation frame-relay,DTE。思科路由器配置为帧中继交换机时,为DCE。

show frame-relay lmi   frame relay DTE   lmi type = cisco   num status enq. sent 113100 num status msgs rcvd 113100   num update status rcvd 0 num status timeouts 0

show frame-relay pvc 100   dlci = 100 , dlci usage = local , pvc status = active , interface =s0还会显示出 FECN BECN 流量

show frame-relay map   s0(up):ip 1.1.1.1 dlci 100(0×64,0×1840),dynamic,broadcast,status defined,active显示动态LMI建立的,状态是active,正常,如为inactive表明远端错误,如为deleted表明本端错误,或者是接口上的DLCI号配置反了,或者是ISP去掉了相应DLCI配置。

clear frame-relay-inarp清除动态建立的fr map

debug frame-relay lmi

十一、常见故障现象及原因如果发现interface up,line protocol down有可能是以下原因:1、线缆、硬件、或载波原因,解决方法:替换法,分别测试模块、线缆 

2、LMI-TYPE 不符,解决方法:确定两端配置类型是一致的(ansi cisco q933a) 

3、keepalives not set,通过show interface命令查找此类型问题,大部分是人为造成的,比如CCIE考试时考官很可能会在这儿动手,默认为keepalives 10秒 

4、encapsulation mismatch,当与非思科设备相连时,只能使用ietf encap。 

5、dlci is inactive or has been deleted,使用show frame-relay pvc 命令观察PVC状态,确定是本端还是对端问题 

6、DLCI在错误的接口上被定义,这也有可能是考官出trouble的地方 

7、未配置frame-relay map命令,此时可输入clear frame-relay-inarp,再用show frame-realy map命令查看是束有map出现,如无,则表明动态LMI与inarp未使用,你将不得不进行手工配置static map。