Re: [trex-tgn] (QoS and) DSCP value examples and "No module named stl path"

544 views
Skip to first unread message
Message has been deleted

hanoh haim

unread,
Jun 5, 2018, 9:07:25 AM6/5/18
to Jeremy Rensen, TRex Traffic Generator
Hi, 
You don't need to use HTL for changing the Qos values. Scapy  could do the same with more flexibility and this is the right way to go. 
HLT was done for backward comparability.  

thanks
Hanoh

On Tue, Jun 5, 2018 at 3:42 PM, <jeremy...@gmail.com> wrote:
Hi,

I was trying to run "hlt_udp_simple.py" example.


Why?
I want to create a (simple) config/script where I can set up the DSCP value for different types of traffic. Now I saw "ip_dscp" in the TRex_Stateless manual, under "traffic_config", which is stated in "hlt_udp_simple.py".


..but I get the following error:
No module named stl_path

Yes, in the manual it says: When configuring, provide the path to your stl_trex library. Can you give me an example of how it would look.. because it won't run via the console right now.


Simply what I want to do is, as stated in earlier mail(s):
1. Create a test, where I have different types of traffic (DNS, HTTP, Citrix, exchange etc.)
2. I would like to set the amount of traffic (in Mbps) per traffic type.
3. I would like to set the DSCP value for that particular traffic.

    Stream 1: x Mbps unicast traffic with DSCP value x (EF)
    Stream 2: x Mbps unicast traffic with DSCP value x (Best Effort)
    Stream 3: x Mbps unicast traffic with DSCP value x (AF31)
    Stream 4: x Mbps unicast traffic with DSCP value x (CS4)


-> I don't fully understand how I can choose the amount of Mbps of traffic and DSCP values <-


Couldn't find examples about (QoS and or) DSCP values.


I hope you can help.


Kind regards,
Jeremy

--
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+unsubscribe@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/d3ed80f6-1656-42a0-a484-08e8078aa23b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Hanoh
Sent from my iPhone
Message has been deleted

hanoh haim

unread,
Jun 5, 2018, 10:51:45 AM6/5/18
to jeremy...@gmail.com, TRex Traffic Generator

On Tue, 5 Jun 2018 at 17:49 <jeremy...@gmail.com> wrote:
Thanks for your reaction!

Do you have a (basic) example that I can use as starting point?

Regards,

Jeremy

--
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.
Message has been deleted

hanoh haim

unread,
Jun 19, 2018, 10:15:13 AM6/19/18
to Jeremy Rensen, TRex Traffic Generator
Hi  Jeremy,

1. ASTF: extract from the pcap file only the L7 information and build from it a L7 program on top of TCP. The IP/TCP information (e.g. TOS) is built from template user input (tunables).  ip.tos tunable exits but it is not yet fully implemented 
2. STF: the pcap file ip layer is taken. 
3. STL: you can build any type of template packet, so ip.tos can be changed using scapy.

What is the mode that you are interested to work with ?

thanks,
Hanoh

On Fri, Jun 15, 2018 at 5:40 PM, <jeremy...@gmail.com> wrote:
Hi,

So I created pcap files with different TOS / DSCP values. With scapy (TRex Stateless Gui), but also with this much faster and easier option:
tcprewrite --infile=input.pcap --outfile=output.pcap --tos=184

I verified it using wireshark and:
tcpdump -r output.pcap -v

1.
When I use ASTF mode (client and server seperated VMs) the DSCP value keeps giving me the default value 0x00 (cs0). This is weird.. I checked it with wireshark and netflow analyzer (manage engine). Is this a known problem?

When I use STL mode (only one vm with a router) the DSCP values are as I configured..

2.
But with STL you can't use two seperate VMs (client and server) am I right?

3.
And how can I specify multiple .pcap files with STL? Is that possible?

Kind regards,
Jeremy

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to trex...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Message has been deleted

hanoh haim

unread,
Jun 20, 2018, 9:32:43 AM6/20/18
to Jeremy Rensen, TRex Traffic Generator
Hi, 
STL can be used in this model. For ASTF need a small wiring 

thanks
Hanoh

On Wed, Jun 20, 2018 at 11:25 AM, <jeremy...@gmail.com> wrote:
I would like to use Server-Client mode with two seperate Virtual Machines (like ASTF). Server in datacenter, client in campus. (In a lab environment).

Kind regards,
Jeremy Rensen


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Message has been deleted

hanoh haim

unread,
Jun 21, 2018, 9:27:36 AM6/21/18
to Jeremy Rensen, TRex Traffic Generator
For STL, just change the Scapy IP.TOS value 

On Thu, Jun 21, 2018 at 10:59 AM, <jeremy...@gmail.com> wrote:
So, I need to create a .yaml file with multiple 'cap_info' -> .pcap files?,
and use dummy ports voor the client and server vm, like it is done with ASTF mode?

Regards,

Jeremy Rensen

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

offic...@gmail.com

unread,
Jun 26, 2018, 8:46:26 AM6/26/18
to TRex Traffic Generator
But with STL it wasn't possible to use TRex on two seperate locations, like ASTF right?

- For STL, just change the Scapy IP.TOS value
I did that with tcprewrite command .. but how can I use it with client-server mode?

I was looking at STL examples like stl_bi_dir_flows and others, but when I tried to run one VM as server and another VM as client, but run as server AND the client. This is how STL mode works right?

But still you said use STL. How can I use it for my setup like I described earlier?

- - - - - - - - - - - - - - - - - -
Datacenter : TRex Server
|
Multiple Switches/Routers (for testing on my laptop I only use a CSR1000v)
|
Campus : TRex Client
- - - - - - - - - - - - - - - - - -


What I tested:
ASTF:
Sending data with ASTF was working, but QoS value gave always 0 (default/CS0).

STL:
Sending data with different TOS values for QoS working. Tested AF31, EF, CS4 etc.

TRex VM working as server and client (same VM)
|
CSR1000v


Is there a way to get the same results with seperated VMs?

Regards,
Jeremy

hanoh haim

unread,
Jun 27, 2018, 4:54:44 AM6/27/18
to offic...@gmail.com, TRex Traffic Generator
Hi Jeremy ,
STL should work with 2 different VM. I don't see why it shouldn't;t work except latency measurement (which does not work for ASTF too)

Could you say:
1. Did you manage to change the TOS with STL?
2. What was the problem with 2 VMs with STL?

thanks,
Hanoh

Message has been deleted
Message has been deleted

hanoh haim

unread,
Jun 27, 2018, 5:41:20 PM6/27/18
to jeremy...@gmail.com, TRex Traffic Generator
The first STL example you gave is actually  STF and *not* STL.
Have a look into Stateless doc for how to do this.

Thanks,
Hanoh

On Wed, 27 Jun 2018 at 16:05 <jeremy...@gmail.com> wrote:
Also used 'delay_10_dns_0.pcap' for EF (tos 184 / 0xb8 -> dscp 46). This was working like the others.

But with this setup using that .yaml file.. is there a way to specify multiple IP ranges maybe for the different pcap files like I did with ASTF mode?

Regards,
Jeremy

--
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.

offic...@gmail.com

unread,
Jun 28, 2018, 3:54:16 PM6/28/18
to TRex Traffic Generator
STF mode
Oh yes, you meant the pcap files that I used? From the AVL (STF) folder.. I know. I was just trying some .pcap files and those worked.

Different ranges worked to with the following .yaml file config:

- duration : 1.0
generator :
distribution : "seq"
clients_start : "16.0.0.1"
clients_end : "16.0.0.10"
servers_start : "48.0.0.1"
servers_end : "48.0.0.10"
clients_per_gb : 201
min_clients : 101
dual_port_mask : "1.0.0.0"
tcp_aging : 1
udp_aging : 1
generator_clients :
- name : "c1"
distribution : "seq"
ip_start : "10.0.0.1"
ip_end : "10.0.0.10"
clients_per_gb : 201
min_clients : 101
dual_port_mask : "1.0.0.0"
tcp_aging : 0
udp_aging : 0
generator_servers :
- name : "s1"
distribution : "seq"
ip_start : "20.0.0.1"
ip_end : "20.0.0.10"
dual_port_mask : "1.0.0.0"
cap_ipg : true
cap_info :
# - name: sharedfolder/delay_10_https_0_tos26.pcap
# cps : 10.0
# ipg : 10000
# rtt : 10000
# w : 1
- name: sharedfolder/delay_10_exchange_0_tos32.pcap
client_pool : "c1"
server_pool : "s1"
cps : 1.0
ipg : 10000
rtt : 10000
w : 1
- name: sharedfolder/delay_10_dns_0_tos46.pcap
cps : 1.0
ipg : 10000
rtt : 10000
w : 1

1. But am I doing it the right way for STF?

2. STL should work the same way? When I use STL .pcap files?

Regards,
Jeremy

hanoh haim

unread,
Jun 29, 2018, 2:00:35 AM6/29/18
to offic...@gmail.com, TRex Traffic Generator
STF does not support separation of client/server mode.
STL does. 
STL does not require pcap files. You would do it using Scapy 

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.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages