C114门户论坛百科APPEN| 举报 切换到宽版

亚星游戏官网

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索

军衔等级:

亚星游戏官网-yaxin222  下士

注册:2010-2-10
发表于 2010-7-8 17:11:35 |显示全部楼层
帧中继的调测
实验环境:本次试验用两台Cisco2801路由器,其中路由器R1 S0/2/0 R2S0/0/0之间通过两台RC903 B版联通。
调测过程:当时认为两台协议转换器做为DCE,两台路由器做为DTE。帧中继就可以起来,事实证明,两台协议转换器虽然做为DCE的设备但是不能够代替帧中继的网络(DCE)功能。最后把一端路由的接口类型改为DCE后调测帧正常。以下是调测的相关配置和debug 过程。
R1 DTE端的配置:
interface Serial0/2/0

ip address 12.1.1.1 255.255.255.0


encapsulation frame-relay IETF


frame-relay map ip 12.1.1.2 101 broadcast


frame-relay interface-dlci 101


frame-relay lmi-type ansi

!
R2 DCE端的配置
r2端路由器上先打开
frame-relay switching
//
开关
interface Serial0/0/0

ip address 12.1.1.2 255.255.255.0


encapsulation frame-relay IETF


frame-relay map ip 12.1.1.1 101 broadcast


frame-relay interface-dlci 101


frame-relay lmi-type ansi


frame-relay intf-type dce


//debug lmi
debug frame-relay lmi
*Jul 15 07:28:34.990: Serial0/2/0(in): Status, myseq 68, pak size 14
*Jul 15 07:28:34.990: RT IE 1, length 1, type 1
*Jul 15 07:28:34.990: KA IE 3, length 2, yourseq 252, myseq 68
*Jul 15 07:28:44.990: Serial0/2/0(out): StEnq, myseq 69, yourseen 252, DTE up
*Jul 15 07:28:44.990: datagramstart = 0xE7000494, datagramsize = 14
*Jul 15 07:28:44.990: FR encap = 0x00010308
*Jul 15 07:28:44.990: 00 75 95 01 01 00 03 02 45 FC
*Jul 15 07:28:44.990:
接口发6type 1 keepalive 报文 10S)的包,发送一个type 0 的报文(含PVC的状态 60S)。
Show frame-relay pvc
R2#show frame-relay pvc 101

PVC Statistics for interface Serial0/0/0 (Frame Relay DCE)

DLCI = 101, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0/0


input pkts 15
output pkts 25
in bytes 1560


out bytes 2600
dropped pkts 0
in pkts dropped 0


out pkts dropped 0
out bytes dropped 0


in FECN pkts 0
in BECN pkts 0
out FECN pkts 0


out BECN pkts 0
in DE pkts 0
out DE pkts 0



out bcast pkts 0
out bcast bytes 0


5 minute input rate 0 bits/sec, 0 packets/sec


5 minute output rate 0 bits/sec, 0 packets/sec


pvc create time 01:16:33, last time pvc status changed 00:59:38


帧中继交换机的配置:
S0/0/0
R2(config-if)#frame-relay route 16 interface s0/0/0 114
S0/0/2:
R2(config-if)#frame-relay route 114 interface s0/0/2 16
当配置了frame-relay route 后,对S0/0/0进来的16的包,就不会上交的三层处理,直接进行帧交换处理。
子接口的配置及调测
R2端路由器的配置(Hub
interface Serial0/0/0

no ip address


encapsulation frame-relay IETF


frame-relay lmi-type ansi


frame-relay intf-type dce

!
interface Serial0/0/0.101 point-to-point //必须制定子接口的类型

ip address 12.1.1.2 255.255.255.0


frame-relay interface-dlci 101

R1 spoke端的配置
interface Serial0/2/0

ip address 12.1.1.1 255.255.255.0


encapsulation frame-relay IETF


frame-relay map ip 12.1.1.2 101 broadcast


frame-relay interface-dlci 101


frame-relay lmi-type ansi

!
R2#ping 12.1.1.1
*Jul 15 08:53:41.749: Serial0/0/0.101(o): dlci 101(0x1851), NLPID 0x3CC(IP), datagramsize 104
*Jul 15 08:53:41.753: Serial0/0/0(i): dlci 101(0x1851), NLPID 0x3CC(IP), datagramsize 104
*Jul 15 08:53:41.753: Serial0/0/0.101(o): dlci 101(0x1851), NLPID 0x3CC(IP), datagramsize 104
*Jul 15 08:53:41.753: Serial0/0/0(i): dlci 101(0x1851), NLPID 0x3CC(IP), datagramsize 104
*Jul 15 08:53:41.757: Serial0/0/0.101(o): dlci 101(0x1851), NLPID 0x3CC(IP), datagramsize 104
*Jul 15 08:53:41.757: Serial0/0/0(i): dlci 101(0x1851), NLPID 0x3CC(IP), datagramsize 104
*Jul 15 08:53:41.757: Serial0/0/0.101(o): dlci 101(0x1851), NLPID 0x3CC(IP), datagramsize 104
*Jul 15 08:53:41.761: Serial0/0/0(i): dlci 101(0x1851), NLPID 0x3CC(IP), datagramsize 104
*Jul 15 08:53:41.761: Serial0/0/0.101(o): dlci 101(0x1851), NLPID 0x3CC(IP), datagramsize 104
*Jul 15 08:53:41.765: Serial0/0/0(i): dlci 101(0x1851), NLPID 0x3CC(IP), datagramsize 104
*Jul 15 08:53:43.141: Serial0/0/0(in): StEnq, myseq 8
*Jul 15 08:53:43.141: RT IE 1, length 1, type 1
*Jul 15 08:53:43.141: KA IE 3, length 2, yourseq 6 , myseq 8
*Jul 15 08:53:43.141: Serial0/0/0(out): Status, myseq 9, yourseen 6, DCE up
*Jul 15 08:53:53.137: Serial0/0/0(in): StEnq, myseq 9
*Jul 15 08:53:53.137: RT IE 1, length 1, type 0
*Jul 15 08:53:53.137: KA IE 3, length 2, yourseq 7 , myseq 9
*Jul 15 08:53:53.137: Serial0/0/0(out): Status, myseq 10, yourseen 7, DCE up
总结:            
1、
在子接口下面没有必要再去配置frame-relay map 因为无论发向哪一个IP 都要向向指定的dlci号去封装。做实验的过程中ping自己也没有问题了。
2、
点对点子接口的使用很好的解决了在NBMA的网络中存在的水平分割的问题。
3、
在主接口下面虽然可以配置frame-relay interface dlci 号指令但是并不会产生帧中继MAP映射。
4、
多点子接口默认水平分割是打开的
5、
点到点子接口适合Star 或则part full mesh网络
6、
多点子接口适合于full mesh的拓扑网络
7、
点对多点子接口需要手工配置MAP
帧中继链路上的QOS
接口下相关速率的修改
R2(config-if)#traffic-shape rate 256000 32000 32000 0 //速率分别为 target rate sustain rate excess rate
buffer lmit

R2(config-subif)#traffic-shap adaptive 32000 // Enable Traffic Shaping adaptation to BECN
R2#show traffic-shape queue
Traffic queued in shaping queue on Serial0/0/0.104

Queueing strategy: weighted fair //shapping
Q机制

Queueing Stats: 0/1000/64/0 (size/max total/threshold/drops)


Conversations
0/0/32 (active/max active/max total)


Reserved Conversations 0/0 (allocated/max allocated)


Available Bandwidth 256 kilobits/sec

总结:令牌桶一定要和Queue结合使用,流量到了以后先做shaping 在做Queing

举报本楼

本帖有 1 个回帖,您需要登录后才能浏览 登录 | 注册
您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系大家 |网站地图  

GMT+8, 2024-9-27 19:18 , Processed in 0.516545 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部
XML 地图 | Sitemap 地图