MPLS-LDP Test Plan
Author: Laxmanagouda Patil
- 1 Test Cases
- 1.1 mpls-ldp_01 - Validate DANOS vRouter image supports mpls-ldp configuration
- 1.2 mpls-ldp_02 - Test case to bring up mpls-ldp and validate functionality
- 1.3 mpls-ldp_03 - Test case to validate mpls-ldp is able to assign correct labels to ipv4 prefix
- 1.4 mpls-ldp_04 - Validate mpls-ldp label allocation policy based on access-list
- 1.5 mpls-ldp_05 - Validate mpls-ldp label allocation policy based on host routes
- 2 Configuration
- 3 Validation
Test Cases
mpls-ldp_01 - Validate DANOS vRouter image supports mpls-ldp configuration
Test Purpose: | The purpose of this test is to validate support of mpls-ldp cli commands |
Test Setup: | As per diagram Topology1: MPLS-LDP |
Prerequisites: | · VM with DANOS image UP and Running |
Procedure: |
exec” mode, configure mpls-ldp protocol using below command o set protocols mpls-ldp address-family ipv4 discovery interface interface dp0s4 o set protocols mpls-ldp address-family ipv4 label-policy allocate host-routes o set protocols mpls-ldp address-family ipv4 transport-address 1.1.1.1 o set protocols mpls-ldp lsr-id 1.1.1.1
|
Expected Results: |
|
mpls-ldp_02 - Test case to bring up mpls-ldp and validate functionality
Test Purpose: | The purpose of this test is to validate mpls-ldp functionality |
Test Setup: | As per diagram Topology1: MPLS-LDP |
Prerequisites: |
|
Procedure: |
o show protocols mpls-ldp neighbor o show protocols mpls-ldp ipv4 interface o show protocols mpls-ldp ipv4 discovery |
Expected Results: |
|
mpls-ldp_03 - Test case to validate mpls-ldp is able to assign correct labels to ipv4 prefix
Test Purpose: | The purpose of this test is to validate mpls-ldp is able to assign label assignment to ipv4 prefix |
Test Setup: | As per diagram Topology1: MPLS-LDP |
Prerequisites: |
|
Procedure: |
|
Expected Results: |
|
mpls-ldp_04 - Validate mpls-ldp label allocation policy based on access-list
Test Purpose: | Test case to validate mpls-ldp label allocation policy when defined via access-list |
Test Setup: | As per diagram Topology1: MPLS-LDP |
Prerequisites: |
|
Procedure: |
o set protocols mpls-ldp address-family ipv4 label-policy allocate for access-list
|
Expected Results: | After step 4, mpls-ldp labels should be assigned as per configured label policy and to acl |
mpls-ldp_05 - Validate mpls-ldp label allocation policy based on host routes
Test Purpose: | Test case to validate mpls-ldp label allocation policy for host routes |
Test Setup: | As per diagram Topology1: MPLS-LDP |
Prerequisites: |
|
Procedure: |
o set protocols mpls-ldp address-family ipv4 label-policy allocate host-routes
|
Expected Results: |
|
Configuration
PE-1
set interfaces dataplane dp0s4 address 20.1.1.1/24
set interfaces dataplane loopback lo address 1.1.1.1/32
set protocols mpls-ldp address-family ipv4 discovery interface interface dp0s4
set protocols mpls-ldp address-family ipv4 label-policy allocate host-routes
set protocols mpls-ldp address-family ipv4 transport-address 1.1.1.1
set protocols mpls-ldp lsr-id 1.1.1.1
set protocols ospf area 0 network 20.1.1.0/24
set protocols ospf area 0 network 1.1.1.1/32
P-1
set interfaces dataplane dp0s3 address 20.1.1.2/24
set interfaces dataplane dp0s8 address 30.1.1.2/24
set interfaces dataplane loopback lo address 2.2.2.2/32
set protocols mpls-ldp address-family ipv4 discovery interface interface dp0s3
set protocols mpls-ldp address-family ipv4 discovery interface interface dp0s8
set protocols mpls-ldp address-family ipv4 label-policy allocate host-routes
set protocols mpls-ldp address-family ipv4 transport-address 2.2.2.2
set protocols mpls-ldp lsr-id 2.2.2.2
set protocols ospf area 0 network 20.1.1.0/24
set protocols ospf area 0 network 30.1.1.0/24
set protocols ospf area 0 network 2.2.2.2/32
PE-2
set interfaces dataplane dp0s8 address 30.1.1.1/24
set interfaces dataplane loopback lo address 3.3.3.3/32
set protocols mpls-ldp address-family ipv4 discovery interface interface dp0s8
set protocols mpls-ldp address-family ipv4 label-policy allocate host-routes
set protocols mpls-ldp address-family ipv4 transport-address 3.3.3.3
set protocols mpls-ldp lsr-id 3.3.3.3
set protocols ospf area 0 network 30.1.1.0/24
set protocols ospf area 0 network 3.3.3.3/32
Validation
show protocols mpls-ldp neighbor
show protocols mpls-ldp ipv4 interface
show protocols mpls-ldp ipv4 discovery