已阅读5页,还剩72页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第八章帧中继 本章提要 帧中继的合理性DLCI PVC帧中继映射的建立帧中继主要术语帧中继基本配置帧中继映射配置在帧中继上运行路由协议的配置点到点子接口点到多点子接口 知识要点 为什么使用帧中继 路由器上需要多个串口 有几条DDN线路 就需要几个串口 DDN线路 为什么使用帧中继 路由器上只需要一个串口 可以有多条PVC 当帧中继网络空闲时 可以实现突发量传输 FrameRelay网云 帧中继预览 帧中继用虚电路为面向连接的服务建立连接 帧中继工作在这里 DCEorFrameRelaySwitch CSU DSU 帧中继协议族FrameRelayStack OSIReferenceModel FrameRelay Physical Presentation Session Transport Network DataLink Application EIA TIA 232 EIA TIA 449 V 35 X 21 EIA TIA 530 FrameRelay IP IPX AppleTalk etc 帧中继工作在OSI参考模型的物理层和数据链路层 Frame relay的关键 DLCI 通俗地讲 DLCI可以看成用来表示哪一条PVC 实际上它是数据链路层地址 DLCI 帧中继的帧格式 帧中继的头部 帧中继的帧格式 什么是DLCI R1要发送数据到R2 只要往DLCI为102的PVC上发送数据 也就是帧中的DLCI为102即可 帧中继交换网络 如何实现PVC S1 S2 R1 R2 102 201 帧中继交换表 部分 数据包传输过程 R1发向R2的数据包目的IP为123 123 123 2 R1用DLCI 102来对IP数据包进行第2层的封装 数据帧到了帧中继交换机 帧中继交换机根据帧中继交换表进行交换 从S1接口收到一个DLCI为102的帧时 交换机将把帧从S2接口发送出去 并且发送出去的帧的DLCI改为201 R2接收到R1发来的数据包 R2响应R1 目的IP为123 123 123 1R2用DLCI 201来对IP数据包进行第2层的封装 数据帧到了帧中继交换机 帧中继交换机同样根据帧中继交换表进行交换 从S2接口收到一个DLCI为201的帧时 交换机将把帧从S1接口发送出去 并且发送出去的帧的DLCI改为102 这样路由器R1就会接收到R2发来的数据包 要有完整的Frame relayMAP R1 123 123 123 2 102123 123 123 3 103R2 123 123 123 1 201123 123 123 3 203R3 123 123 123 1 301123 123 123 2 302 CSU DSU 怎样建立Frame relayMAP 静态映射 管理员手工配置动态映射 InverseARP DLCI 500 PVC 10 1 1 1 InverseARPorFrameRelaymap IP 10 1 1 1 FrameRelay DLCI 500 静态映射 管理员手工配置 frame relaymapipprotocoladdressdlci broadcast 其中 protocol 协议类型address 网络地址dlci 为所需要交换逆向ARP信息的本地接口的DLCI号broadcast 参数表示允许在帧中继线路上传送路由广播或组播信息例子 R1 config if framemapip123 123 123 2102broadcast 帧中继逆向ARP 4 Hello Iam172 168 5 5 3 LocalDLCI100 Active 4 LocalDLCI400 Active 2 StatusInquiry 2 StatusInquiry FrameRelayCloud 1 DLCI 100 DLCI 400 3 172 168 5 5 172 168 5 7 R1 R2 帧中继逆向ARP Keepalives Keepalives Hello Iam172 168 5 7 4 5 FrameRelayMap172 168 5 5DLCI400Active FrameRelayCloud DLCI 100 DLCI 400 FrameRelayMap172 168 5 7DLCI100Active 5 Hello Iam172 168 5 5 6 7 7 172 168 5 5 172 168 5 7 R1 R2 Frame relay成功建立 Frame relay成功建立 LMI LMI LocalManagementInterface 提供了一个帧中继交换机和路由器之间的简单信令在帧中继交换机和路由器之间必须采用相同的LMI类型 Cisco路由器在较高版本 11 2以后 的IOS中具有自动检测LMI类型的功能配置接口LMI类型的命令为 encapsulationframe relay cisco ietf 三种PVC状态 激活状态 Active 本地路由器与帧中继交换机的连接是启动且激活的 可以与帧中继交换机交换数据 非激活状态 Inactive 本地路由器与帧中继交换机的连接是启动且激活的 但PVC另一端的路由器未能与它的帧中继交换机通信 删除状态 Deleted 本地路由器没有从帧中继交换机上收到任何LMI 可能线路或网络有问题 或者配置了不存在的PVC 帧中继术语 访问速率 Accessrate 连接本地环到帧中继的端口速度 数据链路连接标识 DLCI 在源和目的设备之间标识逻辑电路的一个数值 本地管理接口 LMI 是客户前端设备和帧中继交换机之间的信令标准 负责管理设备之间的连接 维护设备之间的连接状态 承诺信息速率 CIR ISP提供的有保障的速率 帧中继术语 前向显示拥塞通知 FECN 当网络发生拥塞的时候 向目的设备发送一个FECN数据包 来通知拥塞 后向显示拥塞通知 BECN 当网络发生拥塞的时候 向源路由器发送一个BECN数据包 来通知拥塞 同时按25 的比例降低数据报发送速率 允许丢弃指示器 DE 当路由器检测到拥塞时 帧中继交换机将会首先丢弃那些DE位设置为1的数据包 子接口 帧中继接口的水平分割 什么叫NBMA 帧中继基本配置 实验1把路由器配置为帧中继交换机 实验目的 理解帧中继交换表的工作原理理解PVC的概念用路由器充当帧中继交换机的配置 实验拓扑 要把R2配置为帧中继交换机 实验步骤1 开启帧中继交换功能 R2 config frame relayswitching 实验步骤2 接口封装为帧中继 R2 config ints0 0 0R2 config if noshutdownR2 config if clockrate128000 注 该接口为DCE 要配置时钟R2 config if encapsulationframe relay 以上配置接口封装成帧中继 如果不加ietf参数 帧类型为cisco 如果加ietf参数 则帧类型为ietf R2 config ints0 0 1R2 config if noshutdownR2 config if clockrate128000R2 config if encapsulationframe relayR2 config ints0 1 0R2 config if noshutdownR2 config if clockrate128000R2 config if encapsulationframe relay 实验步骤3 配置LMI类型 R2 config ints0 0 0R2 config if frame relaylmi typecisco 命令 frame relaylmi type ansi cisco q933a 用来配置LMI的类型 默认时是cisco R2 config if frame relayintf typedce 命令 frame relayintf type dce dte 用来配置接口是帧中继的DCE还是DTE 这里的帧中继接口DCE和s0 0 0接口是DCE还是DTE无关 也就是说即使s0 0 0是DTE 也可以把它配置成帧中继的DCE R2 config ints0 0 1R2 config if frame relaylmi typeciscoR2 config if frame relayintf typedceR2 config ints0 1 0R2 config if frame relaylmi typeciscoR2 config if frame relayintf typedce 实验步骤4 配置帧中继交换表 R2 config ints0 0 0R2 config if frame relayroute103interfaces0 0 1301R2 config if frame relayroute104interfaces0 1 0401 命令 frame relayroute103interfaces0 0 1301 是配置帧中继交换表的 告诉路由器如果从该接口收到DLCI 103的帧 要从s0 0 1交换出去 并且DLCI改为301 R2 config intSerial0 0 1R2 config if frame relayroute301interfaceSerial0 0 0103R2 config intSerial0 1 0R2 config if frame relayroute401interfaceSerial0 0 0104 实验调试1 R2 showframe relayrouteInputIntfInputDlciOutputIntfOutputDlciStatusSerial0 0 0103Serial0 0 1301inactiveSerial0 0 0104Serial0 1 0401inactiveSerial0 0 1301Serial0 0 0103inactiveSerial0 1 0401Serial0 0 0104inactive 实验调试2 R2 showframe relaypvcPVCStatisticsforinterfaceSerial0 0 0 FrameRelayDCE ActiveInactiveDeletedStaticLocal0000Switched0200Unused0000DLCI 103 DLCIUSAGE SWITCHED PVCSTATUS INACTIVE INTERFACE Serial0 0 0 由于PVC还未被使用 所以状态为inactiveinputpkts0outputpkts0inbytes0outbytes0droppedpkts0inpktsdropped0outpktsdropped0outbytesdropped0inFECNpkts0inBECNpkts0outFECNpkts0outBECNpkts0inDEpkts0outDEpkts0 实验2帧中继基本配置 帧中继映射 实验目的 帧中继的基本配置帧中继的动态映射帧中继的静态映射 实验拓扑 在实验1基础上继续本实验要求R1和R3 R4之间能通信 实验步骤1 帧中继接口基本配置 R1 config ints0 0 0R1 config if ipaddress192 168 123 1255 255 255 0R1 config if noshutdownR1 config if encapsulationframe relay 帧中继有两种封装类型 cisco和ietf InternetEngineeringTaskForce 对于cisco路由器 cisco是它的默认值 对于非cisco路由器 须选用ietf类型 R1 config if frame relaylmi typecisco 如果采用的是cisco路由器且IOS是11 2及以后版本的 路由器可以自动适应LMI的类型 则本步骤可不做 国内帧中继线路一般采用ansi的LMI信令类型 我们这里采用的是cisco R3 config ints0 0 1R3 config if ipaddress192 168 123 3255 255 255 0R3 config if noshutdownR3 config if encapsulationframe relayR4 config ints0 0 1R4 config if ipaddress192 168 123 4255 255 255 0R4 config if noshutdownR4 config if encapsulationframe relay 实验调试1 R1 ping192 168 123 3Typeescapesequencetoabort Sending5 100 byteICMPEchosto192 168 123 3 timeoutis2seconds Successrateis100percent 5 5 round tripmin avg max 28 28 28msR1 ping192 168 123 4Typeescapesequencetoabort Sending5 100 byteICMPEchosto192 168 123 4 timeoutis2seconds Successrateis100percent 5 5 round tripmin avg max 28 28 28ms 实验调试2 R1 showframe relaymapSerial0 0 0 up ip192 168 123 3dlci103 0 x67 0 x1870 dynamic broadcast statusdefined activeSerial0 0 0 up ip192 168 123 4dlci104 0 x68 0 x1880 dynamic broadcast statusdefined active 默认时 帧中继接口开启了动态映射 会自动建立帧中继映射 dynamic 表明这是动态映射 实验调试3 R1 showframe relaypvcPVCStatisticsforinterfaceSerial0 0 0 FrameRelayDTE ActiveInactiveDeletedStaticLocal2000Switched0000Unused0000DLCI 103 DLCIUSAGE LOCAL PVCSTATUS ACTIVE INTERFACE Serial0 0 0 可以看到DLCI 103的PVC的状态为active 实验步骤2 手工配置帧中继映射 R1 config ints0 0 0R1 config if noframe relayinverse arp 关闭自动映射R1 config if frame relaymapip192 168 123 3103broadcastR1 config if frame relaymapip192 168 123 4104broadcast R3 config ints0 0 1R3 config if noframe relayinverse arpR3 config if frame relaymapip192 168 123 1301broadcastR4 config ints0 0 1R4 config if noframe relayinverse arpR4 config if frame relaymapip192 168 123 1401broadcast 实验3帧中继上的RIP 实验目的 帧中继上路由协议运行的特殊性水平分割 实验拓扑 在实验1基础上继续本实验要求在R1 R3 R4配置RIP 实验步骤1 配置RIP R1 config interfaceLoopback0R1 config if ipaddress1 1 1 1255 255 255 0R1 config routerripR1 config router network1 0 0 0R1 config router network192 168 123 0 R3 config interfaceLoopback0R3 config if ipaddress3 3 3 3255 255 255 0R3 config routerripR3 config router network3 0 0 0R3 config router network192 168 123 0R4 config interfaceLoopback0R4 config if ipaddress4 4 4 4255 255 255 0R4 config routerripR4 config router network4 0 0 0R4 config router network192 168 123 0 实验步骤2 检查路由表 测试 R3 showiproute 此处省略 C192 168 123 0 24isdirectlyconnected Serial0 0 1R1 0 0 0 8 120 1 via192 168 123 1 00 00 26 Serial0 0 13 0 0 0 24issubnetted 1subnetsC3 3 3 0isdirectlyconnected Loopback0R4 0 0 0 8 120 2 via192 168 123 1 00 00 26 Serial0 0 1 看到正常的路由表 注意RIP路由表中的下一跳都指向192 168 23 1 R3 ping4 4 4 4sourceloopback0Typeescapesequencetoabort Sending5 100 byteICMPEchosto4 4 4 4 timeoutis2seconds Packetsentwithasourceaddressof3 3 3 3 注意这里是从R3的环回口pingR4的环回口 R3 ping4 4 4 4Typeescapesequencetoabort Sending5 100 byteICMPEchosto4 4 4 4 timeoutis2seconds 没有指明ping使用的源接口时就无法ping通R4的环回口了 原因 这里ping命令没指明源地址 则ICMP数据包的源IP为192 168 123 3 目标为4 4 4 4 R3路由表查询路由表得知该数据包应该发送给192 168 123 1 而192 168 123 1的帧中继映射DLCI为301 数据包到达R1 R1路由表查询路由表得知该数据包应该发送给192 168 123 4 而192 168 123 4的帧中继映射DLCI为104 R4收到数据包 进行响应 ICMP数据包的源IP为4 4 4 4 目标为192 168 123 3 R4有192 168 123 0 24的直连路由 然而却没有192 168 123 3的帧中继映射 因此无法进行封装 实验步骤3 水平分割问题 R1 showipints0 0 0Serial0 0 0isup lineprotocolisupInternetaddressis192 168 123 1 24 此处省略 SecuritylevelisdefaultSplithorizonisdisabled 接口封装了帧中继后 水平分割被自动关闭ICMPredirectsarealwayssent 此处省略 R1 config intSerial0 0 0R1 config if ipsplit horizon 在R1上重新打开水平分割 在各路由器上检查路由表 R1 cleariproute 清除路由表R1 showiprouteC192 168 123 0 24isdirectlyconnected Serial0 0 01 0 0 0 24issubnetted 1subnetsC1 1 1 0isdirectlyconnected Loopback0R3 0 0 0 8 120 1 via192 168 123 3 00 00 01 Serial0 0 0R4 0 0 0 8 120 1 via192 168 123 4 00 00 01 Serial0 0 0 R1可以获得R3和R4的环回口路由 R3 cleariproute R3 showiprouteC192 168 123 0 24isdirectlyconnected Serial0 0 1R1 0 0 0 8 120 1 via192 168 123 1 00 00 00 Serial0 0 13 0 0 0 24issubnetted 1subnetsC3 3 3 0isdirectlyconnected Loopback0 R3只能获得R1的环回口路由 这是由于R1上的水平分割开启后 R1从R4接收到R4公告的路由后 不从帧中继口发送出来 导致R3没有接收到R4上公告的路由 R4 cleariproute R4 showiprouteC192 168 123 0 24isdirectlyconnected Serial0 0 1R1 0 0 0 8 120 1 via192 168 123 1 00 00 01 Serial0 0 14 0 0 0 24issubnetted 1subnetsC4 4 4 0isdirectlyconnected Loopback0 R4也只能获得R1的环回口路由 实验4帧中继点到多点子接口 实验目的 点到多点子接口的配置 实验拓扑 在实验1基础上继续本实验R3和R4使用帧中继主接口 在R1上创建点到多点子接口 要求在R1 R3 R4配置RIP 实验步骤1 主接口进行配置 R1 config interfaceserial0 0 0R1 config if noipaddress 注 主接口下不需要IP地址R1 config if encapframe relay 注 封装帧中继R1 config if noframe relayinverse arp 注 通常需要关闭主接口下的IARPR1 config if noshutdown R1 config ints0 0 0 1multipoint 注 创建点到多点子接口R1 config subif ipaddress192 168 123 1255 255 255 0R1 config subif frame relaymapip192 168 123 3103broadcastR1 config subif frame relaymapip192 168 123 4104broadcast 以上是配置帧中继映射命令 interfaceserialslot number interface number subinterface number multipoint point to point 用来创建子接口 其中 slot number interface number 即本物理接口的号码subinterface number 是子接口号 用户可以根据自己喜好来确定multipoint和point to point 属于必须选择的项 是子接口的类型 要么是点到多点 要么是点到点 实验步骤2 创建点到多点子接口 实验步骤3 R1上配置路由协议 R1 config routerripR1 config router network1 0 0 0R1 config router network192 168 123 0 实验步骤4 R3的完整配置 R3 config interfaceserial0 0 1R3 config if ipaddress192 168 123 3255 255 255 0R3 config if encapsulationframe relayR3 config if noframe relayinverse arpR3 config if frame relaymapip192 168 123 1301broadcastR3 config if noshutdownR3 config routerripR3 config router network3 0 0 0R3 config router network192 168 123 0 实验步骤5 R4的完整配置 R4 config interfaceserial0 0 1R4 config if ipaddress192 168 123 4255 255 255 0R4 config if encapsulationframe relayR4 config if noframe relayinverse arpR4 config if frame relaymapip192 168 123 1401broadcastR4 config if noshutdownR4 config routerripR4 config router network4 0 0 0R4 config router network192 168 123 0 实验调试 R1 showiproute 此处省略 C192 168 123 0 24isdirectlyconnected Serial0 0 0 11 0 0 0 24issubnetted 1subnetsC1 1 1 0isdirectlyconnected Loopback0R3 0 0 0 8 120 1 via192 168 123 3 00 00 19 Serial0 0 0 1R4 0 0 0 8 120 1 via192 168 123 4 00 00 16 Serial0 0 0 1 R1可以获得R3和R4的环回口路由 R3 showiproute 此处省略 C192 168 123 0 24isdirectlyconnected Serial0 0 1R1 0 0 0 8 120 1 via192 168 123 1 00 00 01 Serial0 0 13 0 0 0 24issubnetted 1subnetsC3 3 3 0isdirectlyconnected Loopback0 R3只能获得R1的环回口路由 这是由于默认时R1的点到多点子接口水平分割是开启的 可以使用命令 ipsplit horizon 在子接口下关闭水平分割 R4 showiproute 此处省略 C192 168 123 0 24isdirectlyconnected Serial0 0 1R1 0 0 0 8 120 1 via192 168 123 1 00 00 01 Serial0 0 14 0 0 0 24issubnetted 1subnetsC4 4 4 0isdirectlyconnected Loopback0 R4同样只能获得R1的环回口路由 实验5帧中继点到点子接口 实验目的 点到点子接口的配置 实验拓扑 在实验1基础上继续本实验R3和R4使用帧中继主接口 在R1上创建点到多点子接口 要求在R1 R3 R4配置RIP 实验步骤1 主接口进行配置 R1 config interfaceserial0 0 0R1 config if noipaddressR1 config if encapframe relayR1 config if noframe relayinverse arpR1 config if noshutdown 实验步骤2 创建两个点到点子接口 R1 config ints0 0 0 3point to point 注 创建点到点子接口R1 config subif ipaddress192 168 13 1255 255 255 0R1 config subif frame relayinterface dlci103 在接口下不能使用 frame relaymapip 命令来配置帧中继的映射 而是改用命令 frame relayinterface dlci103 R1 config ints0 0 0 4point to pointR1 config subif ipaddress192 168 14 1255 255 255 0R1 config subif frame relayinterface
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年中国计量秤行业市场前景预测及投资价值评估分析报告
- 2026年中国煤矿用隔爆型潜水泵行业市场前景预测及投资价值评估分析报告
- 2025年小米汽车售后服务配件质量合同协议
- 2025年环境工程师兼职协议
- 药品代理合作协议书范本
- 2026年南昌交通学院单招职业倾向性测试题库及答案1套
- 2026年长沙电力职业技术学院单招综合素质考试题库附答案
- 2026年长春师范高等专科学校单招职业倾向性测试题库附答案
- 2026年罗定职业技术学院单招职业适应性考试必刷测试卷附答案
- 2026年河北建材职业技术学院单招综合素质考试题库附答案
- 2025年心理b证笔试试题及答案
- 急性阑尾炎课件
- 糖尿病伴心血管疾病的护理
- 银行物业服务承诺和质量保障措施
- 人工智能在智能水处理中的应用
- 2024-2025学年新乡市一中八年级上册期末考试数学试卷(含部分答案)
- 全国高校辅导员素质能力大赛试题(谈心谈话、案例分析)
- 人工智能安全:原理与实践 课件全套 李剑 第1-16章 人工智能安全概述- 代码漏洞检测原理与实践
- 完整版人教版小学3-6年级英语单词表,可直接打印
- 健康管理中心的建设与运营
- 三减三健课件
评论
0/150
提交评论