You are on page 1of 25

TJ29xx L2 Test Plan

Version 0.1 1

VME L2 Unit Test Plan

ITP <<0.1>>

Revision History:
Revision Date Author Reason Reviewed By Approved By

0.1

2-May-2011

Saikat Choudhury Umang

First version

Sarveshwara Chary, Vinod Chowdappa

0.2

15-Mar-2012

Updated with FP6_4_0 new L2 features Updated with FP6_4_0 new L2 features

0.3

20-Mar-2012

Ganesh Patwardhan

Review History:
Revision Review Date Reviewer(s) Review Comments

0.1

05/09/11

Sarveshwara Chary, Vinod Chowdappa

VME_L2_UTP_RR.txt

Tejas Networks India Ltd.

Company Confidential

Page 2 of 25

1>> Table of Contents 1 Introduction 4 2 Unit test cases 6 3 Appendix A: Open issues 25 Tejas Networks India Ltd. Company Confidential Page 3 of 25 .VME L2 Unit Test Plan ITP <<0.

Company Confidential Page 4 of 25 .VME L2 Unit Test Plan ITP <<0.2 • • Scope Test setup: physical topology.1 Document Objectives This document captures the unit test plan for VME_L2 switch.1>> 1 Introduction 1. There are multiple configurations on the same topology. The test cases will then refer to a specific configuration used for that test.3 Intended Audience − − − DPG team / ELANP development team IE team PV team 1.4 CLI FE GE IP IGMP OSPF PIM Acronyms Description Acronym Command Line Interface Fast Ethernet (100Mbps) Gigabit Ethernet (1000Mbps) Internet Protocol Internet Group Management Protocol Open Shortest Path First Protocol Independent Multicast Tejas Networks India Ltd. configurations Unit test cases This document shall cover the following: 1. 1. Since only L2 features are available in this switch so testing is in accordance to L2 features only It starts with a description of the physical topology of the test setup and the associated test configurations.

TJFCM01 PRD.3 WG 1.6 References Documents Referred Srl#. IEEE L2 switching standards: 802. 1.doc Tejas Networks India Ltd. VME_l2_DD.5 Applicable Standards 1. Mar 2010 http://tn100build/cgibin/cvsweb/Documentation/Requirements/TJFCM01_PRD. April 2011 http://tn100build/cgibin/cvsweb/Documentation/FCM/VME_l2_DD. 802.VME L2 Unit Test Plan ITP <<0.1>> 1. Company Confidential Page 5 of 25 .1. IETF RFCs for switching 2.doc 2.

The following format shall be used for each test case. Company Confidential Page 6 of 25 .1 VLAN testing Test ID: TC_FUNC_1 Test Configuration: C1 SP-1 VME L2 SP-2 Spirent ports SP-1 and SP-2 are connected to VME L2 switch via ports 1 and 2 respectively.1 Functional testing 2. Tejas Networks India Ltd.1. § Test ID o § Represents a unique ID for the test case Test Configuration o Refers to applicable test configuration for the test case § Test Description o o Describes the purpose of the test case Provides detailed procedure for configuration and executing test case § Expected Result o Describes the expected results from the test case 2. Port 1 and 2 form part of same vlan 100.VME L2 Unit Test Plan ITP <<0.1>> 2 Unit test cases This section enumerates the test cases in detail.

5. 4. Frames dropped at port-1. VLAN 100 tagged frames sent from SP-1. 'vlan tagging 100' is configured for port 2. 6. 'vlan pvid 100' is configured for port 1. 7. 2. Port counters increments for port-1 and 2. No frames are received at SP-2.2 Spanning Tree Protocol Test ID: TC_FUNC_2 Test Configuration: C2_A VME L2 SP1 Tejas Networks India Ltd. 2. Untagged frames sent from SP-1. Company Confidential Page 7 of 25 . VLAN 100 tagged frames sent from SP-1. Untagged frames sent from SP-1. SP-2 receives untagged frames. 3. VLAN 100 tagged frames received at SP-2. Untagged frames received at SP-2. VLAN 200 tagged frames sent from SP-1.1>> Test Description: 1. 6. 4. Frames dropped at port-1. Untagged frames sent from SP-1 2. VLAN 100 tagged frames sent from SP-1. VLAN 100 tagged frames received at SP-2. No frames are received at SP-2. Untagged frames received at SP-2.VME L2 Unit Test Plan ITP <<0. 5. Expected Result: 1.1. 7. 3.

Apply spanning tree protocol on ports 1. 2. Port counter will increment by 30 for port-1 and port2/port-3.2 and 3) will show rapid increments. 3.1>> Spirent port SP is connected to node via port-1.2 and 3 form part of same VLAN 200. Looping is expected. Port 1. Port-2 is connected physically to port-3. 2. Repeat the test steps for configuration C2_B. 3. .Ports 2 and 3 are connected to the ports 2 and 3 of other node. Expected Result: 1. One of ports 2/3 will show disabled STP state. One of ports 2/3 will show disabled STP state.2 and 3. Send 30 frames with vlan 200 from SP1. Send vlan 200 frame from SP1. VME L2 Company Confidential SP-2 Page 8 of 25 .2 and 3 form part of same VLAN 200.1. Port counter will increment by 30 for port-1 and port2/port-3. 2. Test Description: 1.3 Access Control list (ACL) Test ID: TC_FUNC_3 Test Configuration: C3 SP-1 Tejas Networks India Ltd.VME L2 Unit Test Plan ITP <<0. Port 1. Configuration : C2_B VME L2 VME L2 SP11 SP2 Spirent port SP1 is connected to node via port-1. All port counters(1.

Port 1 and 2 form part of same vlan 100. a)Create mac ACL M1 with 9 permit rules b)Create mac ACL M2 with 9 deny rules c)Create ip ACL 111 with 9 permit rules d)Create ip ACL 112 with 9 deny rules Test Description: 1. Send 10 streams from spirent SP-1 (9 streams matching the different criteria as per M1 112 and one stream with non-matching parameters). Tejas Networks India Ltd. 4.1>> Spirent ports SP-1 and SP-2 are connected to VME L2 switch via ports 1 and 2 respectively. Last stream with non-conforming values will be dropped as unacceptable frames. 2. Send 10 streams from spirent SP-1 (9 streams matching the different criteria as per M1 ACL and one stream with non-matching parameters). 2. 3. Company Confidential Page 9 of 25 . Send 10 streams from spirent SP-1 (9 streams matching the different criteria as per M2 ACL and one stream with non-matching parameters). For first 9 stream traffic will be dropped. For first 9 stream traffic will flow. Apply ACL 112 on interface 1. Last stream with non-conforming values will be allowed to flow. Apply ACL M1 on interface 1. Expected Result: 1. Send 10 streams from spirent SP-1 (9 streams matching the different criteria as per ACL 111 and one stream with non-matching parameters).VME L2 Unit Test Plan ITP <<0. Apply ACL M2 on interface 1. Apply ACL 111 on interface 1.

1. Ports 2 and 3 form part of LAG for both nodes. 3. Last stream with non-conforming values will be allowed. 3.4 Link Aggregation Group (LAG) Test ID: TC_FUNC_4 Test Configuration: C4 VME L2 VME L2 SP11 SP2 Spirent port SP1 is connected to node via port-1..1>> 3. Last stream with non-conforming values will be dropped as unacceptable frames. Send traffic from SP1.1. Company Confidential Page 10 of 25 . Test Description: 1. Shutdown the active LAG member ports and resend traffic from SP1.Ports 2 and 3 are connected to the ports 2 and 3 of other node. Traffic should be through to SP2.5 IGMP Snooping Test ID: TC_FUNC_5 Tejas Networks India Ltd. Check LAG status in both nodes. 2. Expected Result: 1. 4.VME L2 Unit Test Plan ITP <<0. 2. 2. For first 9 stream traffic will flow. LAG 1/1 should show ports 2 and 3 as its members and status should be up. For first 9 stream traffic will dropped. 2. Traffic should be through to SP2.

SP1. Company Confidential Page 11 of 25 . SP1 and SP3 form part of VLAN 400. ( using setup C3_A) 3. SP1 and SP2 part of VLAN 300. Query will be received by both hosts SP-2 and SP-3. Send join from SP-2 and SP-3 for different groups.1>> Test Configuration: C5_A SP-1 VME L2 SP-2 SP-3 In above setup SP-1 acts as router side and SP-2 and SP-3 acts as host side. Test Description: 1.( using setup C3_B).2 and 3 respectively. Send query from SP-1 (using setup C3_A) 2. Send traffic from SP-1 for group G1.VME L2 Unit Test Plan ITP <<0. Send leave from SP-3 (using setup C3_A) 4.. Send join from SP-2 and SP-3 for different groups G1 and G2. Tejas Networks India Ltd. SP2 and SP3 are the hosts connected to ports 2 an 3. Configuration :C5_B VME L2 SP21 ROUTER TJ2910 SP-3 In this setup port 1 is connected to the actual router port. SP2 and SP3 are connected to ports 1. 5. Expected Result: 1.

6 Port Protection Test ID: TC_FUNC_6 Test Configuration: C6 SP-1 VME L2 SP-2 SP-3 In above setup SP1. 2. 2. Both joins should be received by router side SP-1. Port 1 is unprotected (default) port. Test Description: 1. 2. Joins should be updated in the routing table of the router TJ2910 also. 2 and 3 forms part of same VLAN. Traffic will be forwarded only to thr hosts from which join for group G1 is received. The igmp snooping table should also be updated. Send traffic from SP-2 Expected Result: 1. Traffic will be forwarded only to SP-1. Send traffic from SP-1. 2 and 3 respectively. Traffic will be forwarded to both SP-2 and SP-3.VME L2 Unit Test Plan ITP <<0. 5. 2. Company Confidential Page 12 of 25 . Ports 1.1>> 2. 3.7 Port mirroring Test ID: TC_FUNC_7 Test Configuration: C7 Tejas Networks India Ltd. Leave should be received by SP-1.1. 4. Ports 2 and 3 are protected ports.1. SP2 and SP3 are connected to ports 1. The IGMP Snooping table entry should be deleted after sometime(no report received in reply to group-specific query sent out).

Port2 is mirrored on to port-3. Test Description: Tejas Networks India Ltd. 2 and 3 respectively. Remove port mirroring and send same streams. Expected Result: 1. 2. Company Confidential Page 13 of 25 .8 Port Security Test ID: TC_FUNC_8 Test Configuration: VME L2 SP-2 SP-1 Add static MAC addresses to be locked.1>> SP-1 VME L2 SP-2 SP-3 In above setup SP1. SP2 and SP3 are connected to ports 1.1. Send vlan 500 tagged frames from SP-1. 2. Test Description: 1. identical frames are captured in SP-2 and SP-3 2.VME L2 Unit Test Plan ITP <<0. Only SP-2 receives the frames. Interface 1 and 2 form part of same vlan 500.

Send traffic with MAC address that of the static locked entry. 2. port 2 of both nodes are connected to each other. Configuration: c9_B TJ2900 SP-1 NODE1 TJ2900 NODE2 SP-2 Tejas Networks India Ltd. Traffic will be forwarded.VME L2 Unit Test Plan ITP <<0.1.1>> 1. Company Confidential Page 14 of 25 . Send traffic with other MAC addresses.9 GVRP TEST Test ID: TC_FUNC_9 Test Configuration: c9_A SP-1 TJ2900 NODE1 TJ2900 NODE2 SP-2 in above set-up SP-1 and SP-2 are connected with port 1 of both TJ2900 nodes. Traffic will be dropped for the locked MAC address. Expected Result: 1. 2. 2. Now set gvrp adminmode on both node.

2) Rx counter should increase on SP-2 and packets should be received with tag 100. Set gvrp adminmode up on all nodes like (TEJOS Routing) #set gvrp adminmode Test Description: 1) Enable gvrp interfacemode on port 2 of both nodes in configuration c9_A like : #(TEJOS Routing) interfacemode (Interface 0/2)#set gvrp and create vlan 100 on NODE1. 2) include port 1 of both node in vlan 100 and enable tagging for vlan 100. port 2 of NODE 2 and port 3 of NODE 1 should be part of vlan 100. 4) Repeat step 2 for configuration c9_B. 3) vlan 100 should be automatically created on NODE1 and NODE2 with vlan type dynamic(GVRP). Tejas Networks India Ltd. Send packet with tag 100 from SP-1.VME L2 Unit Test Plan ITP <<0. Expected Result: 1) vlan 100 should be automatically created on NODE2 with vlan type dynamic(GVRP). 3) Enable gvrp interfacemode on port 2 of all nodes in configuration c9_B and create vlan 100 on NODE 3. port 2 of NODE 2 should be part of vlan 100.1>> TJ2910 NODE3 above set-up is similar to c9_A except port 3 of NODE 1 is connected with port 3 of NODE 3(TJ2910). Company Confidential Page 15 of 25 .

2) Rx counter should increase on SP-2 and packets should be received with tag 100. (TEJOS Routing) (Config)#mvrp 1) Enable mvrp on port 2 of both nodes in configuration c9_A like : #(TEJOS Routing) (Interface 0/2)#mvrp and create vlan 100 on NODE1.10 MVRP TEST Test ID: TC_FUNC_10 Test Configuration: c9_A . Company Confidential Page 16 of 25 . 2. 3) see mvrp statistics on port 2 of both nodes like: (TEJOS Routing) #show mvrp statistics 0/2 Expected Result: 1) vlan 100 should be automatically created on NODE2 with vlan type dynamic(MVRP). 3) MVRP messages transmitted counter should increase on port 2 of NODE 1 and MVRP messages received counter increases on port 2.1. port 2 of NODE 2 should be part of vlan 100.1.11 COS Test Test ID: TC_FUNC_11 Test Configuration: C11 Tejas Networks India Ltd.VME L2 Unit Test Plan ITP <<0. Test Description: enable mvrp on both nodes like.1>> 4) Rx counter should increase on SP-2 and packets should be received with tag 100. 2. Send packet with tag 100 from SP-1. 2) include port 1 of both node in vlan 100 and enable tagging for vlan 100.

VME L2 Unit Test Plan ITP <<0.1>> SP-1 VME L2 SP-2 SP-1 and SP-2 are connected to ports 1 and 2 which forms part of vlan 750. Send 8 streams from spirent SP-1 having equal band-width with different priorities. Company Confidential Page 17 of 25 . A. Again send the 8 streams from spirent end. Expected Result: Tejas Networks India Ltd. 2. #cos-queue min-bandwidth <30> <25> <20> <12> <8> <5> 1. Dot1p CoS test Test Description: Configure following CLI commands #classofservice trust <dot1p> Create the dot1p mapping like #classofservice dot1p-mapping 0 0 #classofservice dot1p-mapping 1 1 #classofservice dot1p-mapping 2 2 #classofservice dot1p-mapping 3 3 #classofservice dot1p-mapping 4 4 #classofservice dot1p-mapping 5 5 #classofservice dot1p-mapping 6 6 #classofservice dot1p-mapping 7 7 Configure bandwidth distribution for the COS queues. Reverse the dot1p mapping map dot1p value 0 to queue 7 and vice versa.

.VME L2 Unit Test Plan ITP <<0. 7>Q7) The bandwidth distribution same as above.1>> 1. IP-Precedence Test #classofservice trust ip-precedence Configure the ip-precedence mapping ( 0->Q0 . At SP-2 the stream with ip-dscp value af11 will have lowest drops whereas stream having dscp value cs7 will have maximum drops. cs7->Q7) The bandwidth distribution same as above. Reverse the ip-dscp mapping map dscp value af11 to queue 7 and cs7 to queue 0.. Send 8 streams from spirent SP-1 having equal band-width with different ip-precedence values. 4.. DSCP test #classofservice trust ip-dscp Configure the ip-dscp mapping (af11->Q0 . 4. At SP-2 the stream with ip-dscp value cs7 will have lowest drops whereas stream having ip-dscp value af11 will have maximum drops. Test Description: 3... C. Again send the 8 streams from spirent end. Tejas Networks India Ltd. Send 8 streams from spirent SP-1 having equal band-width with different dscp values. At SP-2 the stream with dot1p value 7 will have lowest drops whereas stream having dot1p value 0 will have maximum drops. At SP-2 the stream with dot1p value 0 will have lowest drops whereas stream having dot1p value 7 will have maximum drops.. Test Description: 5. 2.. Company Confidential Page 18 of 25 . B. Expected Result: 3..

1. I. Reverse the ip-precedence mapping map precedence value 0 to queue 7 and vice versa.12 Diffserv Test ID: TC_FUNC_12 Test Configuration: C12 SP-1 VME L2 SP-2 SP-1 and SP-2 are connected to ports 1 and 2 which forms part of vlan 750. apply service policy on interface #service-policy in <pm1> Test Description: Tejas Networks India Ltd. create class : #class-map match-all <cm-1> #match vlan 750 II. Again send the 8 streams from spirent end.VME L2 Unit Test Plan ITP <<0. At SP-2 the stream with ip-precedence value 7 will have lowest drops whereas stream having ipprecedence value 0 will have maximum drops. create policy #policy-map pm1 in #class cm1 #mark ip-precedence 7 III. 2. 6. At SP-2 the stream with ip-precedence value 0 will have lowest drops whereas stream having ipprecedence value 7 will have maximum drops. Company Confidential Page 19 of 25 . Expected Result: 5.1>> 6.

13 Diffserv Simple-policer Test ID: TC_FUNC_13 Test Configuration: C12 #class-map match-all proto3 >match protocol ip #policy-map SP2 in >class proto3 >>police simple 128 32 conform-action set-prectransmit 3 violate-action set-prec-transmit 7 Test Description: 1. Send streams with parameters not matching the criteria. drop Expected Result: 1. Send streams below 128 kbps. 3. Send streams with VLAN tagged 750. 3. cos or other actions like redirect. Tejas Networks India Ltd. Company Confidential Page 20 of 25 . Diffserv should work properly as per the policy actions. 2. Receiving packets are modified ip-precedence value is changed to 7. Packets are forwarded without any ip-precedence modification. 4. 2.VME L2 Unit Test Plan ITP <<0. 3. set action as : "police two-rate 128 32 256 64 conform-action transmit exceed-action set-cos-transmit 3 violate-action drop. Same test can be performed for ip-dscp. Send streams with ip-precedence 0 at rate above 128 kbps. set action as : "police simple 128 32 conform-action transmit violate-action drop Send streams at rate above 128 kbps.1>> 1.1. 2. 2.With same configuration send streams at rate below 128 kbps.

With same configuration send above 256 kbps.With same configuration send above 128 kbps but below 256 kbps. Frames received at sp-2 with cos 3 . 2. 2. Expected Result: 1. 4. User can log in to the node using service ip.14 Service port Policy Test ID: TC_FUNC_13 Test Configuration: Not required Test Description: 1. 6.1>> 5. 3. From CLI configure service port details like ip etc. 6.OAM Unit Testing The attached document describes the EFM test cases. Try to access the node using service port ip. No Frames received at SP-2 . 5. Frames received at sp-2 with ip precedence 0 . Frames received at SP-2 with ip precedence 0 . 2. 2. No Frames received.15 802. 2.3ah EFM . Microsoft Office Word Document Tejas Networks India Ltd. Frames received at SP-2 will have frames with ipprecedence 3 and 7 both.VME L2 Unit Test Plan ITP <<0. Show command show the details as configured from CLI. Company Confidential Page 21 of 25 . Execute show service port command.1.1. Expected Result: 1.

send 2 streams one with cos priority 1 and another stream is RTP (Real Time Packet) with utp header from SP1 both with rate 120 Mbps. Company Confidential Page 22 of 25 .Packet drop for Real time packet is less than cos priority 6 traffic 2.Packet drop for Real time packet is less than cos priority 1 traffic.send 2 streams one with cos priority 6 and another stream is RTP (Real Time Packet) with utp header from SP1 both with rate 120 Mbps. Expected Result: 1.17 WRED Test ID: TC_FUNC_15 Test Configuration: C12 Test Description: Change speed at port 2 as 100mbps.Enable auto-voip on switch globally as and set speed of port 2 as 100 mbps #(config)auto-voip 1.1.1>> 2. 2.VME L2 Unit Test Plan ITP <<0. 2. Enable cosqueue mapping and assign user priority 7 to cos-queue Tejas Networks India Ltd.16 Auto – VOIP Test ID: TC_FUNC_14 Test Configuration: C12 Test Description: .1.

queue width should change accordingly as we change the maximum and minimum threshold and drop probability for red packet. 2. Set queue management type WRED for queue 0 and tail-drop for queue 0(as default). Change the maximum and minimum threshold and drop probability for red packet and monitor the difference in queue size at SP2. Change the maximum and minimum threshold and drop probability for green packet and monitor the difference in queue size at SP2 Expected Result: 1. queue width should change accordingly as we change the maximum and minimum threshold and drop probability for green packet Tejas Networks India Ltd. Company Confidential Page 23 of 25 . Now create diffserv policy trtcm and bind it with port 1 where commited-rate is 30 mbps and exceed rate is 80 mbps.VME L2 Unit Test Plan ITP <<0.1>> 7 and user priority 0 to cos-queue 0 . Make scheduling type for cos queue 7 is strict and for cos-queue 0 is WFD. send two streams one with cos queue priority 7 and speed 90 mbps and another with cos queue priority 0 with speed 20 mbps(so that all packets should be green). 2. 1.send two streams one with cos queue priority 7 and speed 90 mbps and another with cos queue priority 0 with speed 90 mbps(so that all packets should be red).

Try to configure and view L3 components.2 and 3.2. 4. Start capture on spirent side. IGMP and PIM protocol packets are captured. Company Confidential Page 24 of 25 .1>> 2. Load L3 FCM image and configure L3 features like OSPF. From CLI L3 components are accessible and configurable. 2. Tejas Networks India Ltd. Capture the frames on spirent side SP-1. L3 protocol packets captured in spirent side.SP-2 and SP-3. 3.1 L3 Image Test ID: TC_REB_1 Test Configuration: SP-1 VME L2 SP-2 SP-3 In above setup SP1. 2 and 3 respectively. 3. SP2 and SP3 are connected to ports 1. Expected Result: 1. Test Description: 1. No L3 protocol packets are captured. 4. OSPF.2 Testing across Downgrade Upgrade and 2. PIM and others on interfaces 1. 2. L3 components should be strictly inaccessible from CLI.VME L2 Unit Test Plan ITP <<0. Load L3 image again and capture. IGMP. Load VME L2 image and reboot.

Company Confidential Page 25 of 25 . Tejas Networks India Ltd.VME L2 Unit Test Plan ITP <<0. Stress testing is not done for VME L2 but this is already done for TJ2910.1>> 3 Appendix A: Open issues 1.