X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=GPL%2Ftraffic_profiles%2Ftrex%2Ftrex-astf-ethip4udp-1024h.py;h=ebcf17e59ea6a40d7d816f01d4fec20a8ab35678;hb=d818ea2fcc9f644a1a3483007a4648266c16b7dc;hp=a010fe1613c5075f606be34904294090000497f6;hpb=38ba3408ef77161b61cd4be702d0c6e8fc36f8e5;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 a010fe1613..ebcf17e59e 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 * @@ -53,6 +57,8 @@ class TrafficProfile(TrafficProfileBaseClass): # Headers length self.headers_size = 42 # 14B l2 + 20B ipv4 + 8B udp + # No need to set keepalive, both programs end just after start&send. + def define_profile(self): """Define profile to be used by advanced stateful traffic generator. @@ -67,13 +73,18 @@ class TrafficProfile(TrafficProfileBaseClass): # client commands prog_c = ASTFProgram(stream=False) - prog_c.send_msg(self.udp_req) # size and fill not supported in v2.73 - prog_c.recv_msg(1) + # send REQ message + prog_c.send_msg(self.udp_req) + # No need to process the response, seeing L2 counter is enough. + # Client program can end here. # server commands prog_s = ASTFProgram(stream=False) - prog_s.recv_msg(1) + # When server instance is created means REQ is visible in L2 counter. + # No need to receive explicitly? + # send RES message prog_s.send_msg(self.udp_res) + # Server program can end here. # ip generators ip_gen_c = ASTFIPGenDist(