帧中继 (Frame Relay) 是一种网络与数据终端设备 (DTE) 接口标准。它可以减少结点的处理时间 , 提高网络的吞吐量。帧中继提供的是数据链路层和物理层的协议规范 , 任何高层协议都独立于帧中继协议 , 因此 , 大大地简化了帧中继的实现。目前帧中继的主要应用之一是局域网互联 , 特别是在局域网通过广域网进行互联时 , 使用帧中继更能体现它的低网络时延、低设备费用、高带宽利用率等优点。帧中继最常用的是星型拓扑结构,由中心节点来提供服务和应用。 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

另外,帧中继的默认的工作模式是非广播多路访问模式( NBMA ),在接口下关闭反向 ARP 功能。

今天我要给大家介绍的是帧中继流量×××。帧中继流量××× (FRTS) 是一种排序方法,其用于在一个帧中继网络中排序限制能够引起拥塞的脉冲。缓冲和被发送到网络中的数据的数量被控制来保证这个通信能够符合特定连接允诺的通信封装。

帧中继流量×××的原因:

1、帧中继两端的速率不匹配

2、数据丢失或传输延迟

3、帧中继交换机没有足够的内存缓存空间

帧中继流量×××使用的条件:

1、当一端是高速率另一端是低速率的时候

2、当一个物理接口具有连接多个不同节点的VC

今天我们来做一个实验:帧中继流量×××。配置帧中继、路由器来完成帧中继流量×××实验,最终结果是实现全网全通。

实验的连线图与拓扑图如下:
SwitchFR S0/0 <----> Router1 S0/0

SwitchFR S0/1 <----> Router2 S0/0

SwitchFR S0/2 <----> Router3 S0/0

SwitchFR S0/3 <----> Router4 S0/0

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />

一、首先来配置第一个路由器。为路由器大概配置以下这些内容。为路由器命名,定义映射名称,帧中继的传输速率(注意:定义帧中继的传输速率时先写平均值在写峰值),然后是进入端口下封装帧中继,启用帧中继流量×××,关闭帧中继的反向ARP与水平分割功能。紧接这进入子接口,配置IP地址,定义 p-t-p子接口下F-R的本地dlci号(映射名称为test),在启用F-R的映射类条件,最后配置路由协议即可。具体的配置命令与介绍如下,

en

conf t

host r1--------------------------为路由器一定义一个名字“r<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />1

map-class frame-relay test----------定义类映射名称

frame-relay traffic-rate 32000 64000--------F-R流量×××数据速率(先写平均值在写峰值

exit

int s0/0

encapsulation frame-relay --------------------封装F-R

frame-relay traffic-shaping --------------启用F-R流量×××

no frame-relay inverse-arp ----------------关闭F-R反向ARP映射

no ip split-horizon ---------------关闭P-T--P环境中的水平分割

no ip addr

no shut

exit

int s0/0.1 point-to-point

ip addr 192.168.1.1 255.255.255.0

frame-relay interface-dlci 102------------定义 p-t-p子接口下F-R的本地dlci

frame-relay class test ------------------在有效子接口下启用F-R的映射类条件

exit

int s0/0.2 point-to-point

ip addr 192.168.2.1 255.255.255.0

frame-relay interface-dlci 103------------定义 p-t-p子接口下F-R的本地dlci

frame-relay class test ------------------在有效子接口下启用F-R的映射类条件

exit

int s0/0.3 point-to-point

ip addr 192.168.3.1 255.255.255.0

frame-relay interface-dlci 104------------定义 p-t-p子接口下F-R的本地dlci

frame-relay class test ------------------在有效子接口下启用F-R的映射类条件

exit

router rip--------------------定义路由器使用的协议

network 192.168.1.0----------宣告192.168.1.0网段

network 192.168.2.0----------宣告192.168.2.0网段

network 192.168.3.0----------宣告192.168.3.0网段      

exit

二、配置第二个路由器,路由二和路由三、四的配置几乎是一样的只须在配置中更该一下 IP 地址即可,下面我们来配置一下路由器二

en

conf t

host r2 --------------------------为路由器一定义一个名字“r2

map-class frame-relay test ----------定义类映射名称

frame-relay traffic-rate 32000 64000 --------F-R流量×××数据速率(先写平均值在写峰值

exit                                                  

int s0/0

encapsulation frame-relay --------------------封装F-R

no frame-relay inverse-arp ----------------关闭F-R反向ARP映射

no ip split-horizon ---------------关闭P-T--P环境中的水平分割

frame-relay traffic-shaping --------------启用F-R流量×××

ip addr 192.168.1.2 255.255.255.0

frame-relay map ip 192.168.1.1 201 broadcast ------ frame-relay 链路上映射 dlci

frame-relay class test ------------在有效接口下启用F-R的映射类条件

no shut

exit

router rip

network 192.168.1.0 ----------宣告192.168.1.0网段

exit

三、接下来我们来配置第三个路由器,和路由二的配置完全一样,只须更改一下 IP 地址。

en

conf t

host r3

map-class frame-relay test ----------定义类映射名称

frame-relay traffic-rate 32000 64000 --------F-R流量×××数据速率(先写平均值在写峰值

exit

int s0/0

encapsulation frame-relay --------------------封装F-R

no frame-relay inverse-arp ----------------关闭F-R反向ARP映射

no ip split-horizon ---------------关闭P-T--P环境中的水平分割

frame-relay traffic-shaping --------------启用F-R流量×××

ip addr 192.168.2.2 255.255.255.0

frame-relay map ip 192.168.2.1 301 broadcast ------ frame-relay 链路上映射 dlci

frame-relay class test ------------在有效接口下启用F-R的映射类条件

no shut

exit

router rip

network 192.168.2.0 ----------宣告192.168.2.0网段

exit

四、配置第四个路由器。下面我们来配置最后一个路由器。

en

conf t

host r4

map-class frame-relay test ----------定义类映射名称

frame-relay traffic-rate 32000 64000 --------F-R流量×××数据速率(先写平均值在写峰值

exit

int s0/0

encapsulation frame-relay --------------------封装F-R

no frame-relay inverse-arp ----------------关闭F-R反向ARP映射

frame-relay traffic-shaping --------------启用F-R流量×××

ip addr 192.168.3.2 255.255.255.0

frame-relay map ip 192.168.3.1 401 broadcast ------ frame-relay 链路上映射 dlci

 

frame-relay class test ------------在有效接口下启用F-R的映射类条件

no shut

exit

router rip

network 192.168.3.0 ----------宣告192.168.3.0网段

exit

五、路由测试。

万事俱备只欠东风。最后我们在路由器上坐一下测试,试试能不能全网全通。如下图,这是我在路由一上 ping 其他的 IP 地址,没问题全 ping 通了。

接下来我们再在路由四上进行测试,如下图,全网全通。

附加:

最后我们在路由器中输入show frame-relay pvc dlci-number(本地的dlci)来查看一下路由表中的信息,如下图我们可以清楚的看到本地的DLCI号、端口信息等

在路由器二中输入命令 show frame-relay pvc dlci-number( 本地的 dlci ) 也可以清楚的看到路由器二中的 DLCI号以及端口信息等。下面几张图为路由二、路有三、路有四的具体信息。

本篇文章到此就结束了,成功的配置完成了frame-relay traffic-shaping帧中继流量×××)实验。下篇文章接着为大家介绍帧中继的其他功能。