aboutsummaryrefslogtreecommitdiffstats
path: root/GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2020-08-04 23:48:36 +0200
committerJan Gelety <jgelety@cisco.com>2020-08-19 10:46:12 +0000
commitb3f5b759d051e8f12ee72a70d8b170a8d94a29d3 (patch)
tree27b88eebcbec2f54ae8c8d979ec5300540b33c17 /GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py
parentff1f49d9ba97ddfee3229907e3a344503e072578 (diff)
Perf: NAT44 endpoint-dependent mode - tcp, part I
Jira: CSIT-1736 - tcp synthetic profiles w/o data packets - tcp cps perf tests, phase I (no special "search cps" KW) Change-Id: I52be34b0fdd51d7a33c8c5de9b46d7064c48f7fa Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py')
-rw-r--r--GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py b/GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py
index c2a004bc52..6bf0d53d1f 100644
--- a/GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py
+++ b/GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py
@@ -78,6 +78,8 @@ class TrafficProfile(TrafficProfileBaseClass):
# receive RES message
prog_c.recv_msg(1)
+ prog_c.delay(self.udp_keepalive * 1000) # delay is defined in usec
+
# server commands
prog_s = ASTFProgram(stream=False)
# set the keepalive timer for UDP flows to not close udp session
@@ -88,6 +90,8 @@ class TrafficProfile(TrafficProfileBaseClass):
# send RES message
prog_s.send_msg(self.udp_res)
+ prog_s.delay(self.udp_keepalive * 1000) # delay is defined in usec
+
# ip generators
ip_gen_c = ASTFIPGenDist(
ip_range=[self.p1_src_start_ip, self.p1_src_end_ip],