Sending shaped traffic

38 views
Skip to first unread message

antoine...@gmail.com

unread,
Feb 23, 2017, 8:08:57 AM2/23/17
to TRex Traffic Generator
Hi

I would like to send subrate Gbps traffic at a rate shaped at 200, 300, 500 Mbps for example.Basically slower than the VM interface speed.

I was hoping that playing with the inter packet gap would do. But my experiments show it does not. After going through the docs, I in fact wonder if that is possible.

Thanks

ido barnea

unread,
Feb 23, 2017, 8:14:39 AM2/23/17
to antoine...@gmail.com, TRex Traffic Generator
Is not the -m command line argument exactly what you need?
> --
> You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
> To post to this group, send email to trex...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/eef44d06-02af-4423-b792-a4a4266268b1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

antoine...@gmail.com

unread,
Feb 23, 2017, 8:45:28 AM2/23/17
to TRex Traffic Generator
This option seems to multiply the CPS number. Or maybe my issue is why the IPG is not taken into account?

ido barnea

unread,
Feb 23, 2017, 8:50:40 AM2/23/17
to antoine...@gmail.com, TRex Traffic Generator
So, can you explain the issue better.
You said that you want to send traffic at different rates. This can be achieved by -m.
Relevant parameters here are really IPG and connection per second, but it is enough to change one of them (using -m).


> On 23 Feb 2017, at 3:45 PM, antoine...@gmail.com wrote:
>
> This option seems to multiply the CPS number. Or maybe my issue is why the IPG is not taken into account?
>
> --
> You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
> To post to this group, send email to trex...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/e6ca405d-60a8-4baa-9982-c5e4254b79aa%40googlegroups.com.

antoine...@gmail.com

unread,
Feb 23, 2017, 11:41:14 AM2/23/17
to TRex Traffic Generator, antoine...@gmail.com
Hello,

for example, I would like to send some IMIX traffic at an exact configured rate, because I want to plot CPU usage vs traffic rate.

Now, I have noticed that I need to add the option 'cap_ipg: false' if I want the configured ipg to be taken into account. Then, I could see with the http_simple.yaml example that playing with gap and number of connections changes indeed the traffic rate.

But if I take the IMIX 100k flows example, it does not, because, I guess, the pcap file just include one packet.

I would be grateful if someone has a yaml example with IMIX working at different rates and with a configurable number of sessions.

hanoh haim

unread,
Feb 24, 2017, 2:37:08 AM2/24/17
to TRex Traffic Generator, antoine...@gmail.com
Hi,

For IMIX you should better work with Stateless (it was design for that and works much faster with better automation)

See the Stateless manual



The profile for imix is 

stl/imix.py

You can change the rate and ratio. No *don't* need to change ipg

You could look into the automation example to create a script that would it for you.

See this imix example script



Thanks,
Hanoh
--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages