Jump to content






Photo - - - - -

MPLS QoS Part #1

Posted by MSSK , 26 July 2013 · 3,088 views

Elements

We are going to examine QoS configuration through our MPLS backbone and across the L3VPN connection implemented to maintain connectivity between site #1(R4, R6) and site #2 (R5, R7)
ISIS level-2 will be the IGP used inside our MPLS backbone, and BGP will be the PE-CE routing protocol, OSPF will be the CE-C routing protocol

Configuration

R1

vrf definition MSSK
rd 100:1
!
address-family ipv4
  route-target export 100:1
  route-target import 100:1

mpls label protocol ldp
mpls ldp router-id Loopback0 force

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip router isis 1

interface FastEthernet1/0
ip address 192.1.13.1 255.255.255.0
ip router isis 1
speed 100
duplex full
mpls ip

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.1.14.1 255.255.255.0
speed 100
duplex full

router isis 1
net 49.0001.0000.0000.0001.00
is-type level-2-only

router bgp 100
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source Loopback0

address-family vpnv4
  neighbor 3.3.3.3 activate
  neighbor 3.3.3.3 send-community both

address-family ipv4 vrf MSSK
  network 192.1.14.0
  neighbor 192.1.14.4 remote-as 200
  neighbor 192.1.14.4 activate
  neighbor 192.1.14.4 as-override




R2

vrf definition MSSK
rd 100:1

address-family ipv4
  route-target export 100:1
  route-target import 100:1
exit-address-family

mpls label protocol ldp
mpls ldp router-id Loopback0 force

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip router isis 1

interface FastEthernet1/0
ip address 192.1.23.2 255.255.255.0
ip router isis 1
speed 100
duplex full
mpls ip
no shut

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.1.25.2 255.255.255.0
speed 100
duplex full
no shut

router isis 1
net 49.0001.0000.0000.0002.00
is-type level-2-only

router bgp 100
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source Loopback0

address-family vpnv4
  neighbor 3.3.3.3 activate
  neighbor 3.3.3.3 send-community both

address-family ipv4 vrf MSSK
  network 192.1.25.0
  neighbor 192.1.25.5 remote-as 200
  neighbor 192.1.25.5 activate
  neighbor 192.1.25.5 as-override

R3

mpls label protocol ldp
mpls ldp router-id Loopback0 force

interface Loopback0
ip address 3.3.3.3 255.255.255.255
ip router isis 1

interface FastEthernet1/0
ip address 192.1.13.3 255.255.255.0
ip router isis 1
speed 100
duplex full
mpls ip
no shut

interface FastEthernet1/1
ip address 192.1.23.3 255.255.255.0
ip router isis 1
speed 100
duplex full
mpls ip
no shut

router isis 1
net 49.0001.0000.0000.0003.00
is-type level-2-only

router bgp 100
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 update-source Loopback0
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source Loopback0

address-family vpnv4
  neighbor 1.1.1.1 activate
  neighbor 1.1.1.1 send-community both
  neighbor 1.1.1.1 route-reflector-client
  neighbor 2.2.2.2 activate
  neighbor 2.2.2.2 send-community both
  neighbor 2.2.2.2 route-reflector-client

R4

interface Loopback0
ip address 4.4.4.4 255.255.255.255

interface FastEthernet1/0
ip address 192.1.14.4 255.255.255.0
speed 100
duplex full
no shut

interface FastEthernet1/1
ip address 192.1.46.4 255.255.255.0
speed 100
duplex full
no shut

router ospf 1
router-id 4.4.4.4
redistribute bgp 200 subnets
network 192.1.46.4 0.0.0.0 area 0

router bgp 200
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 192.1.14.1 remote-as 100

address-family ipv4
  network 4.4.4.4 mask 255.255.255.255
  redistribute ospf 1
  neighbor 192.1.14.1 activate
exit-address-family

R5

interface Loopback0
ip address 5.5.5.5 255.255.255.255

interface FastEthernet1/0
ip address 192.1.25.5 255.255.255.0
speed 100
duplex full
no shut

interface FastEthernet1/1
ip address 192.1.57.5 255.255.255.0
speed 100
duplex full
no shut

router ospf 1
router-id 5.5.5.5
redistribute bgp 200 subnets
network 192.1.57.5 0.0.0.0 area 0

router bgp 200
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 192.1.25.2 remote-as 100

address-family ipv4
  network 5.5.5.5 mask 255.255.255.255
  redistribute ospf 1
  neighbor 192.1.25.2 activate
exit-address-family

R6

interface Loopback0
ip address 6.6.6.6 255.255.255.255

interface FastEthernet1/0
ip address 192.1.46.6 255.255.255.0
speed 100
duplex full
no shut

router ospf 1
router-id 6.6.6.6
network 6.6.6.6 0.0.0.0 area 0
network 192.1.46.6 0.0.0.0 area 0

R7

interface Loopback0
ip address 7.7.7.7 255.255.255.255

interface FastEthernet1/0
ip address 192.1.57.7 255.255.255.0
speed 100
duplex full
no shut

router ospf 1
router-id 7.7.7.7
network 7.7.7.7 0.0.0.0 area 0
network 192.1.57.7 0.0.0.0 area 0

Verification

R1#show bgp vpnv4 unicast all
BGP table version is 13, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
  x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

Network   Next Hop     Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*>  4.4.4.4/32    192.1.14.4    0 0 200 i
*>i 5.5.5.5/32    2.2.2.2   0    100   0 200 i
*>  6.6.6.6/32    192.1.14.4    2 0 200 ?
*>i 7.7.7.7/32    2.2.2.2   2    100   0 200 ?
*>  192.1.14.0    0.0.0.0   0 32768 i
*>i 192.1.25.0    2.2.2.2    0    100   0 i
*>  192.1.46.0    192.1.14.4    0 0 200 ?
*>i 192.1.57.0    2.2.2.2   0    100   0 200 ?

R2#show bgp vpnv4 unicast all
BGP table version is 13, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
  x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

Network   Next Hop     Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 4.4.4.4/32    1.1.1.1   0    100   0 200 i
*>  5.5.5.5/32    192.1.25.5    0 0 200 i
*>i 6.6.6.6/32    1.1.1.1   2    100   0 200 ?
*>  7.7.7.7/32    192.1.25.5    2 0 200 ?
*>i 192.1.14.0    1.1.1.1        0    100   0 i
*>  192.1.25.0    0.0.0.0   0 32768 i
*>i 192.1.46.0    1.1.1.1   0    100   0 200 ?
*>  192.1.57.0    192.1.25.5    0 0 200 ?

R4#show ip bgp
BGP table version is 9, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
  x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

Network   Next Hop     Metric LocPrf Weight Path
*>  4.4.4.4/32    0.0.0.0   0 32768 i
*>  5.5.5.5/32    192.1.14.1 0 100 100 i
*>  6.6.6.6/32    192.1.46.6    2 32768 ?
*>  7.7.7.7/32    192.1.14.1 0 100 100 ?
r>  192.1.14.0    192.1.14.1    0 0 100 i
*>  192.1.25.0    192.1.14.1 0 100 i
*>  192.1.46.0    0.0.0.0   0 32768 ?
*>  192.1.57.0    192.1.14.1      0 100 100 ?

R4#ping 5.5.5.5 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/65/132 ms

R5#sh ip bgp
BGP table version is 9, local router ID is 5.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
  x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

Network   Next Hop     Metric LocPrf Weight Path
*>  4.4.4.4/32    192.1.25.2     0 100 100 i
*>  5.5.5.5/32    0.0.0.0   0 32768 i
*>  6.6.6.6/32    192.1.25.2 0 100 100 ?
*>  7.7.7.7/32    192.1.57.7    2 32768 ?
*>  192.1.14.0    192.1.25.2 0 100 i
r>  192.1.25.0    192.1.25.2    0 0 100 i
*>  192.1.46.0    192.1.25.2 0 100 100 ?
*>  192.1.57.0    0.0.0.0   0 32768 ?

R5#ping 4.4.4.4 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 5.5.5.5
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/44/88 ms

R6#sh ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
   D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
   N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
   E1 - OSPF external type 1, E2 - OSPF external type 2
   i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
   ia - IS-IS inter area, * - candidate default, U - per-user static route
   o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
   + - replicated route, % - next hop override

Gateway of last resort is not set

  4.0.0.0/32 is subnetted, 1 subnets
O E2 4.4.4.4 [110/1] via 192.1.46.4, 1d02h, FastEthernet1/0
  5.0.0.0/32 is subnetted, 1 subnets
O E2 5.5.5.5 [110/1] via 192.1.46.4, 1d02h, FastEthernet1/0
  7.0.0.0/32 is subnetted, 1 subnets
O E2 7.7.7.7 [110/1] via 192.1.46.4, 1d02h, FastEthernet1/0
O E2  192.1.25.0/24 [110/1] via 192.1.46.4, 1d02h, FastEthernet1/0
O E2  192.1.57.0/24 [110/1] via 192.1.46.4, 1d02h, FastEthernet1/0

R6#ping 7.7.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 7.7.7.7, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/85/140 ms

R7#sh ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
   D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
   N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
   E1 - OSPF external type 1, E2 - OSPF external type 2
   i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
   ia - IS-IS inter area, * - candidate default, U - per-user static route
   o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
   + - replicated route, % - next hop override

Gateway of last resort is not set

  4.0.0.0/32 is subnetted, 1 subnets
O E2 4.4.4.4 [110/1] via 192.1.57.5, 1d02h, FastEthernet1/0
  5.0.0.0/32 is subnetted, 1 subnets
O E2 5.5.5.5 [110/1] via 192.1.57.5, 1d02h, FastEthernet1/0
  6.0.0.0/32 is subnetted, 1 subnets
O E2 6.6.6.6 [110/1] via 192.1.57.5, 1d02h, FastEthernet1/0
O E2  192.1.14.0/24 [110/1] via 192.1.57.5, 1d02h, FastEthernet1/0
O E2  192.1.46.0/24 [110/1] via 192.1.57.5, 1d02h, FastEthernet1/0

R7#ping 6.6.6.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
Packet sent with a source address of 7.7.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/72/96 ms

Now, as reachability is in place let us start diving in configuring MPLS QoS
We will start from the C routers and configure it for IP Precedence classification
Let us choose precedence values 1, 2, 3 and 6
We will depend on MQC model to for our purposes

R6

class-map PRECEDENCE_6
match ip precedence 6
class-map PRECEDENCE_3
match ip precedence 3
class-map PRECEDENCE_2
match ip precedence 2
class-map PRECEDENCE_1
match ip precedence 1

policy-map MATCH
class PRECEDENCE_1
class PRECEDENCE_2
class PRECEDENCE_3
class PRECEDENCE_6

interface FastEthernet1/0
service-policy input MATCH

R7

class-map PRECEDENCE_6
match ip precedence 6
class-map PRECEDENCE_3
match ip precedence 3
class-map PRECEDENCE_2
match ip precedence 2
class-map PRECEDENCE_1
match ip precedence 1

policy-map MATCH
class PRECEDENCE_1
class PRECEDENCE_2
class PRECEDENCE_3
class PRECEDENCE_6

interface FastEthernet1/0
service-policy input MATCH


R6#ping 7.7.7.7 repeat 10
Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 7.7.7.7, timeout is 2 seconds:
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 48/85/156 ms

R6#show policy-map interface fastEthernet 1/0
FastEthernet1/0

  Service-policy input: MATCH

    Class-map: PRECEDENCE_1 (match-all)  
  0 packets, 0 bytes
  5 minute offered rate 0000 bps
  Match: ip precedence 1

    Class-map: PRECEDENCE_2 (match-all)  
  0 packets, 0 bytes
  5 minute offered rate 0000 bps
  Match: ip precedence 2

    Class-map: PRECEDENCE_3 (match-all)  
  0 packets, 0 bytes
  5 minute offered rate 0000 bps
  Match: ip precedence 3

    Class-map: PRECEDENCE_6 (match-all)  
  2 packets, 188 bytes
  5 minute offered rate 0000 bps
  Match: ip precedence 6
  
Class-map: class-default (match-any)  
  10 packets, 1140 bytes
  5 minute offered rate 0000 bps, drop rate 0000 bps
  Match: any

R7#show policy-map interface fastEthernet 1/0
FastEthernet1/0

  Service-policy input: MATCH

    Class-map: PRECEDENCE_1 (match-all)  
  0 packets, 0 bytes
  5 minute offered rate 0000 bps
  Match: ip precedence 1

    Class-map: PRECEDENCE_2 (match-all)  
  0 packets, 0 bytes
  5 minute offered rate 0000 bps
  Match: ip precedence 2

    Class-map: PRECEDENCE_3 (match-all)  
  0 packets, 0 bytes
  5 minute offered rate 0000 bps
  Match: ip precedence 3

    Class-map: PRECEDENCE_6 (match-all)  
  0 packets, 0 bytes
  5 minute offered rate 0000 bps
  Match: ip precedence 6
  
Class-map: class-default (match-any)  
  10 packets, 1140 bytes
  5 minute offered rate 0000 bps, drop rate 0000 bps
  Match: any

As we can see the ICMP packets fall in the class-default, and the PRECEDENCE_6 class counts as it relates to routing updates and keepalives and so on




thanks

January 2019

S M T W T F S
  12345
6789101112
13141516171819
20 21 2223242526
2728293031  

Recent Entries

Recent Comments

Tags

    Search My Blog

    Categories

    Organization

    Community

    Downloads

    Test Providers

    Site Info


    Go to top