关于帧中继
今天做了关于帧中继的,下面是百度里找的帧中继概念:
帧中继(Frame Relay)是一种网络与数据终端设备(DTE)接口标准。由于光纤网比早期的电话网误码率低得多,因此,可以减少X.25的某些差错控制过程,从而可以减少结点的处理时间,提高网络的吞吐量。帧中继就是在这种环境下产生的。帧中继提供的是数据链路层和物理层的协议规范,任何高层协议都独立于帧中继协议,因此,大大地简化了帧中继的实现。目前帧中继的主要应用之一是局域网互联,特别是在局域网通过广域网进行互联时,使用帧中继更能体现它的低网络时延、低设备费用、高带宽利用率等优点。
帧中继的主要特点是:使用光纤作为传输介质,因此误码率极低,能实现近似无差错传输,减少了进行差错校验的开销,提高了网络的吞吐量;帧中继是一种宽带分组交换,使用复用技术时,其传输速率可高达44.6Mbps。但是,帧中继不适合于传输诸如话音、电视等实时信息,它仅限于传输数据。
帧中继 Frame Relay
帧中继是一种用于连接计算机系统的面向分组的通信方法。它主要用在公共或专用网上的局域网互联以及广域网连接。大多数
公共电信局都提供帧中继服务,把它作为建立高性能的虚拟广域连接的一种途径。帧中继是进入带宽范围从56Kbps到1.544Mbps的广域分组交换网的用户接口。帧中继是从综合业务数字网中发展起来的,并在1984年推荐为国际电话电报咨询委员会(CCITT)的一项标准,另外,由美国国家标准协会授权的美国TIS标准委员会也对帧中继做了一些初步工作。
帧中继(Frame Relay)配置
帧中继设置中可分为DCE端和DTE设置,在实际应用中,Cisco路由器为DTE端,通过V.35线缆连接CSU/DSU,如果将两个路由器通过V.35线缆直连,连接V.35 DCE线缆的路由器充当DCE的角色,并且需要提供同步时钟。
DTE端配置
在端口配置中,封装帧中继
encapsulation frame-relay IETF
Cisco路由器缺省为帧中继数据包封装格式为IETF,可以不用显示设置,另外,国内帧中继线路一般为IETF格式的封装,如果不同,请与当地电信管理部门联系,采用其它装格式。
设置LMI信令格式
frame-relay lmi-type Cisco
Cisco路由器缺勤省的LMI信令格式为Cisco,可以不用设置,国内帧中继线路一般采用Cisco的LMI信令格式。如果不同,请与当地电信管理部门联系,采用相应的LMI信令格式。
映射IP地址与帧中继地址
frame-relay map ip 对方路由器的IP 地址 本端口的帧中继号码{broadcast}
broadcast参数表示允许在帧中继线路上传送路由广播信息
本端口IP地址
ip address 本端口IP地址 子网掩码
充当DCE端的路由器设置
在全局配置状态下,打开帧中继交换
frame-relay switching
在端口设置状态下,封装帧中继
encapsulation frame-relay IETF
设置本端口在帧中继线路中充当DCE
frame-relay intf-type DCE
映射IP地址及帧中继地址
frame-relay map ip 对方路由器的IP地址 本端口帧中继号码{broadcast}
设置带宽
bandwith 带宽 单位为K
设置同步时钟
clock rate 同步时钟
本端口IP地址
ip address 本端口IP地址 子网掩码
注意:如果通过直连方式将两路由器连接起来,则两路由器的帧中继地址必须一致,地址可以随意设置。在实际应用中,申请的帧中继地址只有本地意义,两边进行通讯的路由器的帧中继地址可以不同。
实例
拓扑如下:
R4是配置好的帧中继交换机,作为”帧中继云”,使用全网状的拓扑。帧中继交换机的S1和S0接口分别用一组DCE。DTE电缆与R1的S0和R6的S0实现连接。 要求配置R1与R6帧中继网络。
下面就直接上配置….懒
帧中继交换机的
FR-SWITCHING#show running-config
Building configuration…
Current configuration : 5350 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname FR-SWITCHING
!
!
username robin privilege 15 password 7 14141A0E02
ip subnet-zero
!
frame-relay switching
!
!
!
interface Ethernet0
no ip address
shutdown
!
interface Serial0
no ip address
encapsulation frame-relay
no fair-queue
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 101 interface Serial1 110
frame-relay route 102 interface Serial2 210
frame-relay route 103 interface Serial3 310
frame-relay route 104 interface Serial4 410
frame-relay route 105 interface Serial5 510
frame-relay route 106 interface Serial6 610
frame-relay route 107 interface Serial7 710
frame-relay route 108 interface Serial8 810
frame-relay route 109 interface Serial9 910
!
interface Serial1
no ip address
encapsulation frame-relay
clockrate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 112 interface Serial2 211
frame-relay route 113 interface Serial3 311
frame-relay route 114 interface Serial4 411
frame-relay route 115 interface Serial5 511
frame-relay route 116 interface Serial6 611
frame-relay route 117 interface Serial7 711
frame-relay route 118 interface Serial8 811
frame-relay route 119 interface Serial9 911
!
interface Serial2
no ip address
encapsulation frame-relay
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 211 interface Serial1 112
frame-relay route 213 interface Serial3 312
frame-relay route 214 interface Serial4 412
frame-relay route 215 interface Serial5 512
frame-relay route 216 interface Serial6 612
frame-relay route 217 interface Serial7 712
frame-relay route 218 interface Serial8 812
frame-relay route 219 interface Serial9 912
!
interface Serial3
no ip address
encapsulation frame-relay
clockrate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 311 interface Serial1 113
frame-relay route 312 interface Serial2 213
frame-relay route 314 interface Serial4 413
frame-relay route 315 interface Serial5 513
frame-relay route 316 interface Serial6 613
frame-relay route 317 interface Serial7 713
frame-relay route 318 interface Serial8 813
frame-relay route 319 interface Serial9 913
!
interface Serial4
no ip address
encapsulation frame-relay
clockrate 64000
frame-relay intf-type dce
frame-relay route 411 interface Serial1 114
frame-relay route 412 interface Serial2 214
frame-relay route 413 interface Serial3 314
frame-relay route 415 interface Serial5 514
frame-relay route 416 interface Serial6 614
frame-relay route 417 interface Serial7 714
frame-relay route 418 interface Serial8 814
frame-relay route 419 interface Serial9 914
!
interface Serial5
no ip address
encapsulation frame-relay
clockrate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 511 interface Serial1 115
frame-relay route 512 interface Serial2 215
frame-relay route 513 interface Serial3 315
frame-relay route 514 interface Serial4 415
frame-relay route 516 interface Serial6 615
frame-relay route 517 interface Serial7 715
frame-relay route 518 interface Serial8 815
frame-relay route 519 interface Serial9 915
!
interface Serial6
no ip address
encapsulation frame-relay
clockrate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 611 interface Serial1 116
frame-relay route 612 interface Serial2 216
frame-relay route 613 interface Serial3 316
frame-relay route 614 interface Serial4 416
frame-relay route 615 interface Serial5 516
frame-relay route 617 interface Serial7 716
frame-relay route 618 interface Serial8 816
frame-relay route 619 interface Serial9 916
!
interface Serial7
no ip address
encapsulation frame-relay
frame-relay intf-type dce
frame-relay route 711 interface Serial1 117
frame-relay route 712 interface Serial2 217
frame-relay route 713 interface Serial3 317
frame-relay route 714 interface Serial4 417
frame-relay route 715 interface Serial5 517
frame-relay route 716 interface Serial6 617
frame-relay route 718 interface Serial8 817
frame-relay route 719 interface Serial9 917
!
interface Serial8
no ip address
encapsulation frame-relay
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 811 interface Serial1 118
frame-relay route 812 interface Serial2 218
frame-relay route 813 interface Serial3 318
frame-relay route 814 interface Serial4 418
frame-relay route 815 interface Serial5 518
frame-relay route 816 interface Serial6 618
frame-relay route 817 interface Serial7 718
frame-relay route 819 interface Serial9 918
!
interface Serial9
no ip address
encapsulation frame-relay
frame-relay intf-type dce
frame-relay route 911 interface Serial1 119
frame-relay route 912 interface Serial2 219
frame-relay route 913 interface Serial3 319
frame-relay route 914 interface Serial4 419
frame-relay route 915 interface Serial5 519
frame-relay route 916 interface Serial6 619
frame-relay route 917 interface Serial7 719
frame-relay route 918 interface Serial8 819
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
!
no ip classless
ip http server
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
line vty 0 4
exec-timeout 0 0
privilege level 15
login local
!
下面是R1的配置,其它的机器都差不多
R1#show running-config
Building configuration…
Current configuration : 1283 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
memory-size iomem 10
no network-clock-participate slot 1
no network-clock-participate wic 0
ip subnet-zero
!
!
no ip dhcp use vrf connected
!
!
ip cef
no ip ips deny-action ips-interface
!
no ftp-server write-enable
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
no crypto isakmp ccm
!
!
!
!
interface FastEthernet0/0
no ip address
speed auto
half-duplex
!
interface Serial0/0
ip address 1.1.1.1 255.255.255.0
encapsulation frame-relay
no dce-terminal-timing-enable
frame-relay map ip 1.1.1.2 112 broadcast
frame-relay map ip 1.1.1.3 118 broadcast
frame-relay map ip 1.1.1.4 114 broadcast
frame-relay map ip 1.1.1.5 115 broadcast
frame-relay map ip 1.1.1.6 116 broadcast
frame-relay map ip 192.168.20.1 112 broadcast
frame-relay lmi-type ansi
!
interface FastEthernet0/1
no ip address
speed auto
half-duplex
!
interface Serial0/1
no ip address
no dce-terminal-timing-enable
!
ip classless
!
!
ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
voice-port 1/0/0
!
voice-port 1/0/1
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
end