aboutsummaryrefslogtreecommitdiffstats
path: root/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-16384h-pps.py
diff options
context:
space:
mode:
Diffstat (limited to 'GPL/traffic_profiles/trex/trex-astf-ethip4tcp-16384h-pps.py')
-rw-r--r--GPL/traffic_profiles/trex/trex-astf-ethip4tcp-16384h-pps.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-16384h-pps.py b/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-16384h-pps.py
index 565ccac3d5..ae5879a98f 100644
--- a/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-16384h-pps.py
+++ b/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-16384h-pps.py
@@ -73,14 +73,20 @@ class TrafficProfile(TrafficProfileBaseClass):
# client commands
prog_c = ASTFProgram()
prog_c.connect()
- prog_c.send(u"1" * data_size)
- prog_c.recv(data_size)
+ prog_c.set_var(u"var1", self.n_data_frames)
+ prog_c.set_label(u"a1:")
+ prog_c.send(u"1" * real_mss)
+ prog_c.recv(real_mss)
+ prog_c.jmp_nz(u"var1", u"a1:")
# server commands
prog_s = ASTFProgram()
prog_s.accept()
- prog_s.recv(data_size)
- prog_s.send(u"1" * data_size)
+ prog_s.set_var(u"var2", self.n_data_frames)
+ prog_s.set_label(u"a2:")
+ prog_s.recv(real_mss)
+ prog_s.send(u"1" * real_mss)
+ prog_s.jmp_nz(u"var2", u"a2:")
# ip generators
ip_gen_c = ASTFIPGenDist(
@@ -113,11 +119,8 @@ class TrafficProfile(TrafficProfileBaseClass):
globinfo = ASTFGlobalInfo()
# Ensure correct data frame size.
globinfo.tcp.mss = trex_mss
- # Ensure the whole transaction is a single burst (per direction).
- globinfo.tcp.initwnd = self.n_data_frames
- # Ensure buffers are large enough so starting window works.
- globinfo.tcp.txbufsize = data_size
- globinfo.tcp.rxbufsize = data_size
+ globinfo.tcp.txbufsize = trex_mss
+ globinfo.tcp.rxbufsize = trex_mss
kwargs = dict(
default_c_glob_info=globinfo,
default_s_glob_info=globinfo,