Monday, June 24, 2013

IxN2X Traffic: How to see packet loss on Realtime Results

        

          In order to see traffic loss on  the traffic you will need to  perform the following steps:
1.    Make sure that Rx Packet loss statistics is added to  Results table
2.    Add the stream for which you want to see the loss to  Results table.

Let’s consider the following test:
You have 2 ports back to back and you send traffic from the  port 102/1 to port 102/2.

Step1. Add Rx Packet Loss  statistics to  Results  table
Open the Results Realtime window by clicking on Setup panel on Result Realtime button
The Result – Realtime window will open
 

On Result-Realtime window click on Setup button.
On the Measurements tab search for Rx Packet Loss entry and  check the box corresponding to table entry :
























In this moment the Rx Packet Loss statistics are added to the table but by starting traffic you will see N/A displayed next to it.
This behavior is caused by the fact that the Rx Packet Loss statistics is just a per stream statistics and you do not have any streams added to the  results table yet.
By default only per port statistics are added to Results table. 

****You can check the type of statistics from Results-Realtime Setup Measurements tab.
      For example Tx Test packets are per port and per stream statistics:
 





Step2. Add a stream to Results table
For adding a stream to results table perform the following:
Make sure you have a stream created and traffic is stopped
On Result-Realtime window click on Setup and go to Streams tab















Right-click on the stream and chose to add it to the measurements table:














A new entry will appear on the Result window reflecting the newly added stream:











Start traffic and observe that Rx Packet loss show a numeric value for the particular  stream:



IxN2X Traffic: How to create a stream from a Wireshark packet




   Converting a Wireshark packet in a stream is very useful in the case you  need a particular pdu format which is no already available on our predefined pdu options or when you would like to emulate in  a stateless fashion some type of protocol packet , mostly for  negative testing.
   I will present bellow a way to create an E-LMI packet  but the same technique can be applied to any  pdu types.

Step1.  Convert the Wireshark capture in an N2X format.
Open Applications and go to QuickTests->Tools->Analysis-> ConvertCaptureFile double-click on it and the configuration window will open
















On the ConvertCaptureFile script configuration  window choose Advanced and click Finish: the Ixia File Translator will open

















On Ixia File Translator window set the source file as the Wireshark capture file and the destination as it suits you   and set the file format as N2X (Agilent)  and click on Convert button

















Step2. Open the capture on IxN2X  and save the pdu
 Go to Setup-Capture right-click on the port and select Open








Double click on it to see the content:

Right-click on a packet and select Export selected PDU as XML


Step3.   Load the pdu in a stream
       In some situation when the packet is smaller than 64B (minimum Ethernet frame size) you will need to make sure that padding is not enabled on the port (it is by default).
Go to Setup-Link, right-click on your port, choose Properties:









Verify that Enable padding is unchecked on the port where you build your stream:
 

Go to Setup-Traffic, create a stream , make sure that test payload is disabled on your stream.
All the checkboxes should be unchecked on the General tab.

















On the created stream, go to Packet Template Tab.
Right-Click on Ethernet and choose Open.
Select the pdu that you already created in previous step open the pdu and then click Apply  on the stream.