
In this test lab core consists of 3 routers which are running MPLS with 2 as provider edge routers and one as provider router. Two different VPNs are connected from PE1 and PE2 routers. Both different VPNs has different QOS requirement and to meet the service level aggrements different class of service profiles have been created on PE routers. But the core is running with four type of class of services. So what ever the packets are coming from customers are  checked according to the profile created on edge router and are forwarding in the core according to the class of services defined. I have shown the one way communiaction, but in real network bi directional quality of service requires. So it could be enabled but not shown in the given test lab. The QOS policies are mapped according to the high level diagram shown in previous post.   
I have used the type of services to mark the packets from the customer routers and same has been checked with the help of ip accounting precedence command on remote CE routers.
Below is the config shown for the core routers with the policies defined for customers:- Config of PE2
Class Map and Policy Map Configured For VPN-2:-
class-map match-all FROM-CE2-2
 match ip precedence 2
class-map match-all FROM-CE2-3
 match ip precedence 3
class-map match-all FROM-CE2-1
 match ip precedence 1
policy-map FROM-CE2
 class FROM-CE2-1
  set mpls experimental imposition 1
 class FROM-CE2-2
  set mpls experimental imposition 2
 class FROM-CE2-3
  set mpls experimental imposition 3
interface FastEthernet0/0
 description connected to ce2
 ip vrf forwarding TEST
 ip address 172.16.1.1 255.255.255.252
 ip accounting precedence input
 duplex auto
 speed auto
 service-policy input FROM-CE2
Class Map Configured For VPN-3:-
class-map match-all CE3-2
 match ip precedence 2
class-map match-all CE3-5
 match ip precedence 5
policy-map FROM-CE3
 class CE3-2
  set mpls experimental 2
 class CE3-5
  set mpls experimental 5
 class class-default
  set mpls experimental 0
interface FastEthernet2/0
 ip vrf forwarding CE3
 ip address 2.2.2.14 255.255.255.252
 duplex half
 mpls label protocol ldp
 mpls ip
service-policy input FROM-CE3
Class Map Configured Towards P:-
class-map match-all TO-P-2-3
 match mpls experimental topmost 2  3
class-map match-all TO-P-1
 match mpls experimental topmost 1
class-map match-all TO-P-5
 match mpls experimental topmost 5
!
!
policy-map TO-PE1
 class TO-P-1
  bandwidth 1000
 class TO-P-2-3
  bandwidth 5000
 class TO-P-5
  bandwidth 5000
policy-map TO-P
 class TO-P-1
  bandwidth 1000
 class TO-P-2-3
  bandwidth 5000
 class TO-P-5
  bandwidth 2000
 class class-default
!
Interface Config of P
interface FastEthernet0/0
 ip address 2.2.2.2 255.255.255.252
 duplex auto
 speed auto
 mpls label protocol ldp
 mpls ip
 service-policy output TO-PE1
!
interface FastEthernet0/1
 ip address 1.1.1.2 255.255.255.252
 duplex auto
 speed auto
 mpls label protocol ldp
 mpls ip
Config of PE1
class-map match-all TO-CE-5
 match qos-group 5
class-map match-all TO-CE-1
 match qos-group 1
class-map match-all TO-CE-3
 match qos-group 3
class-map match-all TO-CE-2
 match qos-group 2
class-map match-all MPLS-COS-5
 match mpls experimental topmost 5
class-map match-all MPLS-COS-1
 match mpls experimental topmost 1
class-map match-any B-TELNET
 match  dscp ef
class-map match-all MPLS-COS-3
 match mpls experimental topmost 3
class-map match-all MPLS-COS-2
 match mpls experimental topmost 2
!
!
policy-map TO-CE1
 class TO-CE-1
  bandwidth 1000
 class TO-CE-2
  bandwidth 2000
 class TO-CE-3
  bandwidth 3000
policy-map TO-CE3
 class TO-CE-2
  bandwidth 2000
 class TO-CE-5
  bandwidth 1000
policy-map MPLS-COS
 class MPLS-COS-1
  set qos-group 1
 class MPLS-COS-2
  set qos-group 2
 class MPLS-COS-3
  set qos-group 3
 class MPLS-COS-5
  set qos-group 5
!
Interface of PE1
interface FastEthernet0/0
 ip vrf forwarding TEST
 ip address 172.168.2.1 255.255.255.252
 ip accounting precedence output
 load-interval 30
 duplex auto
 speed auto
 service-policy output TO-CE1 (VPN-2)
!
interface FastEthernet0/1
 ip address 2.2.2.1 255.255.255.252
 load-interval 30
 duplex auto
 speed auto
 mpls label protocol ldp
 mpls ip
 service-policy input MPLS-COS
!
interface FastEthernet2/0
 ip vrf forwarding CE3
 ip address 23.23.23.1 255.255.255.252
 duplex auto
 speed auto
 service-policy output TO-CE3 (VPN-3)
!
Outputs of Policy Map On PE1 which is depicting the packet matches in customer profile as well as in the core profile.
PE2#sh policy-map interface
 FastEthernet0/0
  Service-policy input: FROM-CE2
    Class-map: FROM-CE2-1 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: ip precedence 1
      QoS Set
        mpls experimental imposition 1
          Packets marked 0
    Class-map: FROM-CE2-2 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: ip precedence 2
      QoS Set
        mpls experimental imposition 2
          Packets marked 0
    Class-map: FROM-CE2-3 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: ip precedence 3
      QoS Set
        mpls experimental imposition 3
          Packets marked 0
    Class-map: class-default (match-any)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any
 FastEthernet0/1
  Service-policy output: TO-P
    Class-map: TO-P-1 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: mpls experimental topmost 1
      Queueing
        Output Queue: Conversation 265
        Bandwidth 1000 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
    Class-map: TO-P-2-3 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: mpls experimental topmost 2  3
      Queueing
        Output Queue: Conversation 266
        Bandwidth 5000 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
    Class-map: TO-P-5 (match-all)
      20 packets, 2440 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: mpls experimental topmost 5
      Queueing
        Output Queue: Conversation 267
        Bandwidth 2000 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 1/122
        (depth/total drops/no-buffer drops) 0/0/0
    Class-map: class-default (match-any)
      971 packets, 81819 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any
 FastEthernet2/0
  Service-policy input: FROM-CE3
    Class-map: CE3-2 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: ip precedence 2
      QoS Set
        mpls experimental imposition 2
          Packets marked 0
    Class-map: CE3-5 (match-all)
      5 packets, 570 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: ip precedence 5
      QoS Set
        mpls experimental imposition 5
          Packets marked 5
    Class-map: class-default (match-any)
      5 packets, 570 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any
      QoS Set
        mpls experimental imposition 0
          Packets marked 5
Output of P router
P#sh policy-map interface
 FastEthernet0/0
  Service-policy output: TO-PE1
    Class-map: TO-P-1 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: mpls experimental topmost 1
      Queueing
        Output Queue: Conversation 265
        Bandwidth 1000 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
    Class-map: TO-P-2-3 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: mpls experimental topmost 2  3
      Queueing
        Output Queue: Conversation 266
        Bandwidth 5000 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
    Class-map: TO-P-5 (match-all)
      15 packets, 1830 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: mpls experimental topmost 5
      Queueing
        Output Queue: Conversation 267
        Bandwidth 5000 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 1/122
        (depth/total drops/no-buffer drops) 0/0/0
    Class-map: class-default (match-any)
      662 packets, 56017 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any
Output of PE1 router
PE1#sh policy-map  interface
 FastEthernet0/0
  Service-policy output: TO-CE1
    Class-map: TO-CE-1 (match-all)
      0 packets, 0 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: qos-group 1
      Queueing
        Output Queue: Conversation 265
        Bandwidth 1000 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
    Class-map: TO-CE-2 (match-all)
      0 packets, 0 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: qos-group 2
      Queueing
        Output Queue: Conversation 266
        Bandwidth 2000 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
    Class-map: TO-CE-3 (match-all)
      0 packets, 0 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: qos-group 3
      Queueing
        Output Queue: Conversation 267
        Bandwidth 3000 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
    Class-map: class-default (match-any)
      112 packets, 11393 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: any
 FastEthernet0/1
  Service-policy input: MPLS-COS
    Class-map: MPLS-COS-1 (match-all)
      0 packets, 0 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: mpls experimental topmost 1
      QoS Set
        qos-group 1
          Packets marked 0
    Class-map: MPLS-COS-2 (match-all)
      0 packets, 0 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: mpls experimental topmost 2
      QoS Set
        qos-group 2
          Packets marked 0
    Class-map: MPLS-COS-3 (match-all)
      0 packets, 0 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: mpls experimental topmost 3
      QoS Set
        qos-group 3
          Packets marked 0
    Class-map: MPLS-COS-5 (match-all)
      10 packets, 1220 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: mpls experimental topmost 5
      QoS Set
        qos-group 5
          Packets marked 10
    Class-map: class-default (match-any)
      385 packets, 30566 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: any
 FastEthernet2/0
  Service-policy output: TO-CE3
    Class-map: TO-CE-2 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: qos-group 2
      Queueing
        Output Queue: Conversation 265
        Bandwidth 2000 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
    Class-map: TO-CE-5 (match-all)
      10 packets, 1140 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: qos-group 5
      Queueing
        Output Queue: Conversation 266
        Bandwidth 1000 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
    Class-map: class-default (match-any)
      113 packets, 11453 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any        
SDN and NFV is the next phase of technology change which will help service provider to launch the services in single click. This is all about the programmability of the networks by using open source software defined network controller.
Thursday, November 19, 2009
Different VPN Using QOS But SP Core Has One Class Of Service
Labels:
QOS
Subscribe to:
Post Comments (Atom)
 
 
No comments:
Post a Comment