IE分解:Modular QoS CLI(MQC)基于FR的DLCI号对包进行分类
来源:www.56Cto.com作者:wolf_小V 发布时间:2008-10-08 阅读次数

 

二:实验要求:

R2上基于PVC来分配带宽,PVC201可以分得20%的带宽,PVC203分得55%的带宽

三:实验配置:

R1#

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

interface Serial3/0

 ip address 123.0.0.1 255.255.255.0

 encapsulation frame-relay

 ip ospf priority 0

frame-relay map ip 123.0.0.2 102 broadcast

 frame-relay map ip 123.0.0.3 102 broadcast

 no frame-relay inverse-arp

router ospf 1

network 0.0.0.0 255.255.255.255 area 0

 

 

R2#

class-map match-all PVC203                         //步骤1   建立一个class map来表示网络流量

  match fr-dlci 203                                         //指定DLCI号作为匹配标准

class-map match-all PVC201

  match fr-dlci 201

policy-map PVC                                                        //步骤2  创建一个policy map

  class PVC201                                              

   bandwidth percent 20                               

  class PVC203                                               //  应用class mappolicy map

   bandwidth percent 55                                //  设定带宽的百分比

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

interface Serial3/0

encapsulation frame-relay

no frame-relay inverse-arp

 service-policy output PVC                                     //步骤3  policy map绑定到接口的出方向

interface Serial3/0.123 multipoint

 ip address 123.0.0.2 255.255.255.0

 frame-relay map ip 123.0.0.1 201 broadcast

 frame-relay map ip 123.0.0.3 203 broadcast

router ospf 1

network 0.0.0.0 255.255.255.255 area 0

 neighbor 123.0.0.1

 neighbor 123.0.0.3

 

R3#

interface Loopback0

 ip address 3.3.3.3 255.255.255.0

interface Serial3/0

 ip address 123.0.0.3 255.255.255.0

 encapsulation frame-relay

 ip ospf priority 0

frame-relay map ip 123.0.0.1 302 broadcast

 frame-relay map ip 123.0.0.2 302 broadcast

router ospf 1

network 0.0.0.0 255.255.255.255 area 0

 

 

R3#

interface Loopback0

 ip address 3.3.3.3 255.255.255.0

interface Serial3/0

 ip address 123.0.0.3 255.255.255.0

 encapsulation frame-relay

 ip ospf priority 0

frame-relay map ip 123.0.0.1 302 broadcast

 frame-relay map ip 123.0.0.2 302 broadcast

router ospf 1

network 0.0.0.0 255.255.255.255 area 0

 

 

 

 

 

四:调试信息:

 

R2#show policy-map int s3/0

 Serial3/0

  Service-policy output: PVC

 

    Class-map: PVC201 (match-all)

      707 packets, 522012 bytes

      5 minute offered rate 0 bps, drop rate 0 bps

      Match: fr-dlci 201

      Queueing

        Output Queue: Conversation 265

        Bandwidth 20 (%)

        Bandwidth 308 (kbps) Max Threshold 64 (packets)

        (pkts matched/bytes matched) 614/513828

        (depth/total drops/no-buffer drops) 0/0/0

 

    Class-map: PVC203 (match-all)

      707 packets, 522012 bytes

      5 minute offered rate 0 bps, drop rate 0 bps

      Match: fr-dlci 203

      Queueing

        Output Queue: Conversation 266

        Bandwidth 55 (%)

        Bandwidth 849 (kbps) Max Threshold 64 (packets)

        (pkts matched/bytes matched) 614/513828

        (depth/total drops/no-buffer drops) 0/0/0

 

    Class-map: class-default (match-any)

      278 packets, 3892 bytes

      5 minute offered rate 0 bps, drop rate 0 bps

      Match: any

 

 

R2#ping

Protocol [ip]:

Target IP address: 1.1.1.1

Repeat count [5]: 100

Datagram size [100]: 100

Timeout in seconds [2]:

Extended commands [n]: y

Source address or interface: 2.2.2.2

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 100, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:

Packet sent with a source address of 2.2.2.2

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Success rate is 100 percent (100/100), round-trip min/avg/max = 16/104/268 ms

 

R2#ping

Protocol [ip]:

Target IP address: 3.3.3.3

Repeat count [5]: 100

Datagram size [100]: 100

Timeout in seconds [2]:

Extended commands [n]: y

Source address or interface: 2.2.2.2

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 100, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:

Packet sent with a source address of 2.2.2.2

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Success rate is 100 percent (100/100), round-trip min/avg/max = 20/111/300 ms

 

//按理来说到3.3.3.3的返回时间应该短啊?

上一篇:CCIE分解:帧中继子接口和流量整形(Traffic Shaping)配置  
下一篇:QOS试验:修整基于类的加权公平队列