diff options
author | Vratko Polak <vrpolak@cisco.com> | 2022-07-20 10:18:29 +0200 |
---|---|---|
committer | Vratko Polak <vrpolak@cisco.com> | 2022-07-20 10:18:29 +0200 |
commit | b06a1adb1c26eeb5bf5c86091fef30441f6d06a1 (patch) | |
tree | 74c1139c3fd8412fd39185b75b07b230f2415f79 | |
parent | 371bac71bc789bf9d68fa1b8ba77f21c4876244f (diff) |
fix(astf): avoid issues in pps tput
When more than 1 data packet is sent in the same chunk,
TRex is sometimes not fully deterministic
in its usage of delayed ACKs.
This changes the "application protocol" to sent
5 chunks (1 data packet each), c2s and s2c interleaved,
so each subsequent chunk acts as an ACK.
The overall packet count remains the same,
and even though this interleaved way may be more demanding
on TRex CPU, preliminary results show NAT performance
is still well below ip4base performance.
As a side effect, the interleaved way seems to work
also for 100B data frames, so we are avoiding two issues at once.
Ticket: CSIT-1846
Ticket: CSIT-1830
Change-Id: Ia4dcfa7c89f2c08fc32bd6118e2e009316b33c25
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
6 files changed, 76 insertions, 45 deletions
diff --git a/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-1024h-pps.py b/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-1024h-pps.py index 546e11bb5e..9c3ab873c1 100644 --- a/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-1024h-pps.py +++ b/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-1024h-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, 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, diff --git a/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-262144h-pps.py b/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-262144h-pps.py index 54b38a43a9..46468386b1 100644 --- a/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-262144h-pps.py +++ b/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-262144h-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, diff --git a/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-4096h-pps.py b/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-4096h-pps.py index 0108edbcd5..35e961495d 100644 --- a/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-4096h-pps.py +++ b/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-4096h-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, diff --git a/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-65536h-pps.py b/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-65536h-pps.py index 54de3e500d..5dcfb70cb7 100644 --- a/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-65536h-pps.py +++ b/GPL/traffic_profiles/trex/trex-astf-ethip4tcp-65536h-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, diff --git a/docs/report/introduction/methodology_nat44.rst b/docs/report/introduction/methodology_nat44.rst index fb4cbd0c7e..1b00ef281c 100644 --- a/docs/report/introduction/methodology_nat44.rst +++ b/docs/report/introduction/methodology_nat44.rst @@ -416,6 +416,9 @@ TCP TPUT This profile uses a small transaction of "request-response" type, with some data amount to be transferred both ways. +In CSIT release 22.06, TRex behavior changed, so we needed to edit +the traffic profile. Let us describe the pre-22.06 profile first. + Client connects, sends 5 data packets worth of data, receives 5 data packets worth of data and closes its side of the connection. Server accepts connection, reads 5 data packets worth of data, @@ -449,6 +452,19 @@ and somehow uneven rate of packets sent. This makes it hard to interpret MRR results (frequently MRR is below NDR for this reason), but NDR and PDR results tend to be stable enough. +In 22.06, the "ACK from the receiving side" behavior changed, +the receiving side started sending ACK sometimes +also before receiving the full set of 5 data packets. +If the previous profile is understood as a "single challenge, single response" +where challenge (and also response) is sent as a burst of 5 data packets, +the new profile uses "bursts" of 1 packet instead, but issues +the challenge-response part 5 times sequentially +(waiting for receiving the response before sending next challenge). +This new profile happens to have the same overall packet count +(when no re-transmissions are needed). +Although it is possibly more taxing for TRex CPU, +the results are comparable to the old traffic profile. + Ip4base tests ^^^^^^^^^^^^^ |