Thursday, October 10, 2013

IxNetwork IGMP configuration

*****Configuration steps

1.       Select the ports
Add 2 ports in  the configuration and rename them as IGMP Host and Querier

2.        Enable IGMP protocol on the ports
Click on Protocols  on Protocol tree and then switching to Multicast tab

3.       Configure the IP addresses on the ports
IGMP Querier  IP=1.1.1.1
IGMP Host IP=1.1.1.100
You need to  Add Interfaces and Add IPv4 addresses on the ports
Enable the interfaces, the port link should be green without exclamation mark


4.       IGMP Querier configuration
Go to IGMP  on Protocol tree and switch to Ports tab. Set number of queriers to 1 Number of host to  0

On the Querier tab add the Connected Interface to the   Querier and enable it

Set the querier to use IGMPv3


        5.  Configure IGMP host:
Go to IGMP  on Protocol tree and switch to Ports tab. Set number of queriers to 0 Number of host to  1

On the Hosts tab add the Connected Interface and enable it

 Set host type to IGMPV3



On the Host tab set No of Group Ranges to 1







Switch to Group Ranges tab and set the multicast group for which the IGMP host is member


6.       Start IGMP




















*****Tools for troubleshooting
1.       Capture packets
 Go to Captures button and  enable control capture on ports. Click  on Start Capture from Main ribbon

























2.       Use  Port Trace  Window:
On  Protocol Tree right-click on a port and chose Open Trace Window. Select the level of debugging.  























    


      In the Trace Window you see packets received and sent by the port









Thursday, September 5, 2013

Test example: QoS remarking


Setup  information:
Consider the following  setup : 

(Ixia)port1--------------Gi1/1(Router)Gi1/2-------------port2 (Ixia)
IP1=11.1.1.100/24                                                            IP2=11.1.2.100/24
GW=11.1.1.1                                                                     GW=11.1.2.1

We are going to send traffic from IP1 to IP2 using AF11
When he receives traffic on Interface Gi1/1 the DUT will remark DSCP value to AF21



af11     Match packets with AF11 dscp (001010)2=(10)10
af21     Match packets with AF21 dscp (010010)2=(18)10


IxNetwork Configuration

Step 1. Create protocol interfaces


Step2. Create L2-3 Traffic Item

2.1 Add a L2-3 traffic item 

2.2 Select the connected interface as  source/destination endpoints 

2.3 On the Paket/ QOS page set IP priority as DiffServ, AF11 

2.4 On Flow Goup  page select to create Flow groups based on Source/Destination Endpoint 

2.5 On Flow Tracking page select to track IP-AF PBH values

2.6 On Flow Tracking page  don’t forget to enable Egress tracking for DSCP 



**** All the other settings are default. Click Finish  on Advance Traffic Wizard and you are good to go.


Step3. Verify results
3.1 Start traffic
3.2 On Statistics window go to Traffic Item Statistics tab. Right-click on Traffic Item and choose Drill down per IPv4: Assured Forwarding PBH
3.3  After performing previous step  you are  automatically switched to  User Defined Statistics tab
Right-Click on the item and choose to see Egress values of DSCP


****Right now on statistics window you will have the intial and also the  new marked values of DSCP




DUT Configuration
1 Steps taken to configure the DUT and configuration  explain
In order to set a new DSCP value on an interesting traffic you will need to perform the following steps:
1.       Identify the interesting traffic with an ACL
2.        Create a Class Map for matching the Network Traffic using the ACL
3.       Create a Policy Map for Applying a QoS Feature to Network Traffic classified  by  the class map 
4.        Attaching the Policy Map to an Interface


! Configure IP address on the interfaces
7606-S(config)#int gi1/1
7606-S(config-if)#ip add 11.1.1.1 255.255.255.0
7606-S(config-if)#exit
7606-S(config)#int gi 1/2
7606-S(config-if)#ip add 11.1.2.1 255.255.255.0
7606-S(config-if)#exit

7606-S(config)#do show ip int brief
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet1/1     11.1.1.1        YES manual up                    up
GigabitEthernet1/2     11.1.2.1        YES manual up                    up

!  Identify the  interesting traffic (11.1.1.100 -----> 11.1.2.100) with an  ACL
7606-S(config)#access-list 101 permit ip host 11.1.1.100 host 11.1.2.100

7606-S(config)#do show access-list 101
Extended IP access list 101
10     ermit ip host 11.1.1.100 host 11.1.2.100
! Create a Class Map for matching the Network Traffic using the ACL
7606-S(config)#class-map cmap-acl-101
7606-S(config-cmap)#match  access-group 101

! Create a Policy Map for QoS  remarking of the Network Traffic classified  by  the class map 
7606-S(config)#policy-map pmap-acl-101
7606-S(config-pmap)#class cmap-acl-101
7606-S(config-pmap-c)#set dscp af21

7606-S(config)#do show policy-map pmap-acl-101
  Policy Map pmap-acl-101
    Class cmap-acl-101
      set dscp af21

! Attach the Policy Map to an Interface
7606-S(config)#interface gi 1/1
7606-S(config-if)#service-policy input pmap-acl-101

7606-S(config-if)#do show policy-map int gi1/1
 GigabitEthernet1/1
  Service-policy input: pmap-acl-101
    class-map: cmap-acl-101 (match-all)
      Match: access-group 101
      set dscp 18:
      Earl in slot 5 :
        30121000 bytes
        5 minute offered rate 785080 bps
        aggregate-forwarded 30121000 bytes
    Class-map: class-default (match-any)
      0 packets, 0 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: any
        0 packets, 0 bytes
        5 minute rate 0 bps


2. Actual DUT configuration
ena
conf ter
int gi1/1
ip add 11.1.1.1 255.255.255.0
exit
int gi 1/2
ip add 11.1.2.1 255.255.255.0
exit

access-list 101 permit ip host 11.1.1.100 host 11.1.2.100

class-map cmap-acl-101
match access-group 101
exit
policy-map pmap-acl-101
class cmap-acl-101
set dscp af21
exit

interface gi 1/1
service-policy input pmap-acl-101
exit




Friday, August 16, 2013

IxNetwork Traffic: How to measure Latency and jitter


Setup information :
2 ports connected back to back
Port1 IP=1.1.1.1
Port2 IP=1.1.1.2
Send traffic from Port1 to Port2 and check latency/jitter.

Step1.  Enable Latency and Jitter measurements for the test
In order to measure jitter you will need to enable  Latency and Delay Variation statistics measurements from traffic options.

Go to Test Options (main ribbon) -Traffic Options and enable Latency and Delay Variation

There are some restrictions regarding which set of statistics can work together, please check the bellow compatibility table



Step2. Configure the ports 


Step3. Create a Traffic Item
On flow tracking page make sure that you enable Latency  Bin measurements and flow tracking.
Since the latency variation is a perFlow statistics enable some sort of  flow tracking.
I’ve chosen Flow tracking based on Traffic Item



Step4. Apply and start the traffic

Step5. Verifying the results
On main ribbon on View tab  verify that Statistics button is  pressed








On main ribbon on Data tab verify that Traffic Statistics button is pressed

On the  bottom part of the screen  on Traffic Item Statistics you should see by default all the statistics 




If you want to see only the latency related one choose the predefined Latency tab

Wednesday, July 17, 2013

IxNetwork Traffic : How to Configure Incremental Raw Traffic


In  case you need to send IP traffic from a  bunch  of source addresses  to   other bunch of destination address you have to options.
Option 1: configure IP Interfaces and use them to create  IPv4 Traffic Item
 This is useful when you   need to   add different other protocol on those IP addresses: let’s say that when you need  to send traffic from 1.1.0.1 and in the same time 1.1.0.1 should be a simulated OSPF Router
 Option 2: create directly Raw Traffic Item   between 2 ports and add IPv4 on payload .
This is useful if your purpose is just to send traffic. Take in consideration that you should  know the value of the 1st Hop MAC Address  ( if  the traffic will pass through a router).

Bellow I am going to explain how to create traffic using the 2nd option

Setup:
Create 1 traffic item with 10 flows tracked after the Source IP as bellow:
Flow 1   VLAN 101 Source IP=1.1.0.1 Destination IP=2.1.0.1
Flow2    VLAN 102 Source IP=1.2.0.1 Destination IP=2.2.0.1
………
Flow10  VLAN 110 Source IP=1.10.0.1 Destination IP=2.10.0.1


Configuration Steps:

     On Main Window go to Traffic Item and select to add a L2-3 Traffic item

    The Advance Traffic Wizard will open

    On Endpoint Page chose type of traffic Raw and send  from port 1 to 2


                            
      On Packet /QoS page perform the following settings:
Set the MAC destination address as : 00:00:02:00:00:1 
Clickon the small arrow  next to MAC value and chose to change the  value type Incremental  count 10
Perform similar setting on the MAC Source address
Mac Source=00:00:01:00:00:01 incremental count 10

Click on the Payload and then on Add Protocol button. On the popup window select to add VLAN


Make the VLAN incremental
















Similarly Add IPv4 protocol to payload and make the Source/ Destination IP address incremental
    On the Flow Goup Setup page check that you want to create flows based on IPv4 Source Address

    On Frame setup change the Frame size to 1000B
    On the Rate Setup page change the rate to 1000pkts/seconds
    On Flow tracking page  chose to track  flows based on Ipv4 source address as we set on the flows 









Now you will see the newly created  Traffic Item  on the Traffic Item Window

In order for traffic to work you will need to apply it to the ports using the following button















As soon as traffic is applied you will see the green arrow next to it and you can start it.





Note:
If you want you can start just one  flow at a time by going on L2-3 flow groups window


After traffic is started you can see  the traffic  item statistics in the Main Statistics window

If yo would like to see statistics per flow chose to Drill down the statistics per IPv4 Source Address