X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=GPL%2Ftraffic_profiles%2Ftrex%2Ftrex-astf-ethip4udp-1024h.py;h=dbe97cc4400111e776c75bf6cf63d1bfb7baf011;hb=de5e719fbd965e2f8e26b7f3a9cd597b572d7ab3;hp=c2a004bc5213bdd02a7ac90fe535932029b4e5d2;hpb=ff1f49d9ba97ddfee3229907e3a344503e072578;p=csit.git diff --git a/GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py b/GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py index c2a004bc52..dbe97cc440 100644 --- a/GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py +++ b/GPL/traffic_profiles/trex/trex-astf-ethip4udp-1024h.py @@ -25,6 +25,10 @@ Traffic profile: on port 1 - Destination IP address range: source IP address from packet received on port 1 + +This is a profile for CPS tests, it only sets up UDP session. +No delays, no data transfer. +Keepalive mechanism cannot be disabled, so it is at least set to long waits. """ from trex.astf.api import * @@ -54,7 +58,7 @@ class TrafficProfile(TrafficProfileBaseClass): self.headers_size = 42 # 14B l2 + 20B ipv4 + 8B udp # Required UDP keepalive value for T-Rex - self.udp_keepalive = 2000 # 2s (2,000 msec) + self.udp_keepalive = 2000*1000*100 # 200000s (200,000,000 msec) def define_profile(self): """Define profile to be used by advanced stateful traffic generator. @@ -70,8 +74,6 @@ class TrafficProfile(TrafficProfileBaseClass): # client commands prog_c = ASTFProgram(stream=False) - # set the keepalive timer for UDP flows to not close udp session - # immediately after packet exchange prog_c.set_keepalive_msg(self.udp_keepalive) # send REQ message prog_c.send_msg(self.udp_req) @@ -80,8 +82,6 @@ class TrafficProfile(TrafficProfileBaseClass): # server commands prog_s = ASTFProgram(stream=False) - # set the keepalive timer for UDP flows to not close udp session - # immediately after packet exchange prog_c.set_keepalive_msg(self.udp_keepalive) # receive REQ message prog_s.recv_msg(1)