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
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
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.
No comments:
Post a Comment