MPLS-LDP Test Plan

Author: Laxmanagouda Patil

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:

  1. Launch VM using DANOS image with above mentioned configuration

  1. In “

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

  1. Validate commands should not throw any error or exception

Expected Results:

  1. After step 3, all mpls-ldp commands should get execute with no errors and exceptions

  1. Validation using “show configuration” command o/p

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:

  1. 3 VMs with DANOS image UP and Running

Procedure:

  1. Configure all the 3 DANOS routers with IP address and IGP as OSPF. Validate underlying layer- reachability b/n R1, R2 and R3

  1. Configure MPLS-LDP as per the reference Configuration

  1. Validate mpls-ldp operation and state b/n R1/R2 and R2/R3 using

o   show protocols mpls-ldp neighbor

o   show protocols mpls-ldp ipv4 interface

o   show protocols mpls-ldp ipv4 discovery

Expected Results:

  1. After step 3, MPLS LDP neighborship should be UP and Running b/n R1/R2 and R2/R3

  1. Interface should show LDP state as “operational”

  1. Only MPLS configured interfaces should show up

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:

  1. 3 VMs with DANOS image UP and Running

Procedure:

  1. Bring up the setup as mentioned in test case 5.1.2

  1. Make sure mpls-ldp is up and running across the topology

  1. Create a new loopback interface-lo10, configure IP address, advertise the route via OSPF protocol on router-R1

  1. Configure mpls-ldp on “lo10” interface

  1. Validate the new prefix gets label assigned on all routers

Expected Results:

  1. After step 5, mpls-ldp label should be assigned to the new advertised prefix

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:

  1. 3 VMs with DANOS image UP and Running

Procedure:

  1. Bring up the setup as mentioned in test case 5.1.2

  1. Configure label allocation policy using below cli command

o    set protocols mpls-ldp address-family ipv4 label-policy allocate for access-list

  1. Validate the labels are allocated as per the configured label policy and to access-list

  1. Validate using “show protocols mpls-ldp ipv4 binding”

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:

  1. 3 VMs with DANOS image UP and Running

Procedure:

  1. Bring up the setup as mentioned in test case 5.1.2

  1. Configure label allocation policy using below cli command

o    set protocols mpls-ldp address-family ipv4 label-policy allocate host-routes

  1. Validate the labels are allocated as per the configured label policy and for host-routes

  1. Validate using “show protocols mpls-ldp ipv4 binding”

Expected Results:

  1. After step 4, mpls-ldp labels should be assigned as per configured label policy

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