I don't understand how the multiplier option works.
While running a profile in ASTF mode, with cps=1, I got these results :
Trying multiplier 30000.0
FAIL - Conn dropped: 135929 CPS: 262142 Established CPS: 28810
Trying multiplier 20000.0
FAIL - Conn dropped: 36113 CPS: 177984 Established CPS: 73825
Trying multiplier 15000.0
FAIL - Conn dropped: 3020 CPS: 69500 Established CPS: 40215
Trying multiplier 12500.0
PASS - Conn dropped: 0 CPS: 7485 Established CPS: 7385
Trying multiplier 13750.0
FAIL - Conn dropped: 316 CPS: 34518 Established CPS: 23003
Trying multiplier 13125.0
PASS - Conn dropped: 0 CPS: 16812 Established CPS: 11751
Trying multiplier 13437.5
FAIL - Conn dropped: 33 CPS: 22563 Established CPS: 15283
Trying multiplier 13281.25
FAIL - Conn dropped: 16 CPS: 20925 Established CPS: 13754
Trying multiplier 13203.125
...
Note that "Conn dropped" comes from "tcps_conndrops", "CPS" from "m_active_flows" and "Established CPS" from "m_est_flows".
According to the documentation :
-m <num>
Rate multiplier. TRex will multiply the CPS rate of each template by num.
So I was expecting that CPS counter will equal to the multiplier, but it is not. Why ? Am I missing something ?
And I couldn't find any relationship between CPS and multiplier :
m = 12500.0, CPS=7485
m = 30000, CPS=262142
This is not the same scale factor.
I tried to run cps=10000 (in profile) and m=1.0 :
Trying multiplier 1.0
PASS - Conn dropped: 0 CPS: 5989 Established CPS: 5964
Only 5989 CPS ... Maybe I do read the wrong counters ?
My template :
from trex_astf_lib.api import *
class Prof1():
def __init__(self):
pass
def get_profile(self):
# ip generator
ip_gen_c = ASTFIPGenDist(ip_range=["16.0.0.1", "16.0.0.255"], distribution="seq")
ip_gen_s = ASTFIPGenDist(ip_range=["48.0.0.1", "48.0.0.255"], distribution="seq")
ip_gen = ASTFIPGen(glob=ASTFIPGenGlobal(ip_offset="1.0.0.0"),
dist_client=ip_gen_c,
dist_server=ip_gen_s)
c_glob_info = ASTFGlobalInfo()
c_glob_info.scheduler.accurate = 1
return ASTFProfile(default_ip_gen=ip_gen,
cap_list=[ASTFCapInfo(file="./http_1k.pcap",
cps=1)])
def register():
return Prof1()
Run it with :
./t-rex-64 -f ./profile.py -c 1 -m 30 -d 20 --astf --nc
Oh, and the pcap is just a simple http 1k body from Spirent.
Thanks for help :)
Nicolas Pamart.
--
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/688be3d4-008c-4177-860e-9e0eebb32d20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If you just want to limit the number of CPS, and you are in ASTF mode, you can do it by adding "limit=target_cps" while calling ASTFTCPClientTemplate constructor in your profile.
See this example, line 86 : https://github.com/cisco-system-traffic-generator/trex-core/blob/master/scripts/astf/http_eflow.py
For the other modes I don't know.
Sorry for the late answer, here are the full loopback counters with cps=1 in profile and multiplier=100000 and 50000. There is a scale of around 1.6 between multiplier and active_flows for both multiplier. Maybe this is because I replicate a pcap file ? Anyway it seems constant between different multiplier and this is a good thing.
And maybe that scale between multiplier and actual cps was not the same for each multiplier because of the DUT limiting/Adding randomness to active_flows ?
Here are the counters : https://gist.github.com/pamartn/08ac28c296e4a81d96b677496bf1348f
--
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/3841c10c-f79b-4db4-9469-47c7214c2b2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/b7bb2ec1-a198-4390-8863-9ed836365516%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.