question

ezy avatar image
ezy asked ezy posted

Waiting time after sending traffic out

I copy traffic from ixia and then copy it into configure command on iTest and use stream send command to send traffic.

After that I need to verify this traffic. I use sleep command with some random numbers  for waiting until traffic sent out completely before verify this traffic. 

I would like to know whether any command to make sure that traffic is sent out completely or any command to wait until traffic sent out completely.

iTesttraffic generationIxia
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
VidyaH avatar image
VidyaH answered VidyaH posted

Currently, we have no command for waiting untill traffic is sent out completely .  "sleep" action is used inbetween traffic start and traffic stop .
To make sure traffic is generated properly in Ixia, we have show commands on stats/streams/packet/rates which will give details on traffic generated.

 

Are you generating thistraffic scenario in IxExplorer by setting the "transmit duration" for certain amount of time and want to automate using iTest?

 

4 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

KumarS avatar image KumarS commented ·

One quick solution is to simply use a while loop to determine the stoppage of transmission.

 

You can do:

 

set prev 0

while 1

   show stats

         analysis rule->store current frames in variable "curr"

  sleep 5

  if curr != prev

  then

       continue

  else

       break

  set prev  $curr

 

 

We are thinking of building this logic inside a command in all the iTest traffic generator integrations. We can add a command called: waitForTrafficGenerationToStop.

 

 

 

0 Likes 0 ·
HosoonK avatar image HosoonK commented ·

Ixia's IxExplorer has all corresponding GUI action in TclAPI.

You can use the TclAPI call in iTest.

 

To set the transmit time you can use the TclAPI "ixSetScheduledTransmitTime portList duration"

where duration is, in seconds, of the transmit time and portList is the list of ports in one of the following formats;

pl { {1 1 1} {1 1 2} {1 1 3} {1 1 4}} -or
pl {1,1,1 1,1,2 1,1,3 1,1,4}

 

Within iTest test case, before you "transmit start" add this step

 

==> eval ixSetScheduledTransmitTime { {1 1 1}} 20 

 

Assuming your card 1 port 1 has a Tx stream for your transmit and you want transmit for 20 seconds.

 

Thanks,

 

0 Likes 0 ·
KumarS avatar image KumarS HosoonK commented ·

Hosoon

 

I think the user is asking for how not wait for random amount of time after transmitting so that he does not add a lot of random sleeps in his testcase. Random sleeps in the testcase are ugly because they slow down the testcase as well as can cause unpredictable results if they are very tight.

 

 

0 Likes 0 ·
HosoonK avatar image HosoonK KumarS commented ·

From his question, "....whether any command to make sure that traffic is sent out completely", depends on how the user configured his stream (most likely continus packet ? though there are optioins you can configure the packet to stop immediately after the iframe) there could different ways to find out.

 

I thought he could use the "set the Transmit Duration" ption to set the Transmit Duration as VidyaH was mentioning.

 

Using "Set Transmit Duration" seems a better way to ensure all the traffic is sent out completely without having any sleep steps in the test.

Ixia TclAPI already provide this.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.