四、 帧中继的流量整形
实验拓扑
1. 在还没进行下面的实验以前,先用扩展ping命令:
RouterA#ping
Protocol [ip]:
Target IP address: 192.168.2.1
Repeat count [5]: 55
Datagram size [100]: 1111
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.1.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 55, 1111-byte ICMP Echoes to 192.168.2.1, timeout is 2
seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (55/55), round-trip min/avg/max =
176/179/192 ms
记录下他们的返回时间;
2. 在同一条pvc之间(如RouterARouterB)创建一个map-class,定义pvc的CIR(committed information rate)命令如下:
RouterA(config)#map-class frame-relay CIR
RouterA(config-map-class)#frame-relay traffic-rate 2000
RouterB(config)#map-class frame-relay CIR
RouterB(config-map-class)#frame-relay traffic-rate 2000
3. 将该map-class应用到端口上:
RouterA(config)#interface serial 0
RouterA(config-if)#frame-relay traffic-shaping
RouterA(config-if)#interface serial 0.1 multipoint
RouterA(config-subif)#frame-relay class CIR
RouterB(config)#interface serial 0
RouterB(config-if)#frame-relay traffic-shaping
RouterB(config-if)#interface serial 0.16 point-to-point
RouterB(config-subif)#frame-relay class CIR
4. 用show frame-relay pvc验证CIR的配置;
5. 再一次用扩展ping命令,验证返回的时间是否比原来的要长?