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.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/cab6c4de-0f27-4650-98cd-165bcdd1b198%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/cb741462-1074-4c7a-801e-f0da188c18d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/41a44fda-fed7-4e31-a62c-996d924228e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/e30bb000-b0dd-4dc3-8b38-f51db22fb330%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
- 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
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/737b4dac-3c11-44bd-9e65-c74f8cbc5995%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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
--
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/236ec9d5-8272-4184-af83-27dba7628b1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.