Hello,
I'm setting up trex in ASTF mode to generate flows based on the following profile:
from trex.astf.api import *
class Prof1():
def __init__(self):
pass
def get_profile(self, **kwargs):
# ip generator
ip_gen_c = ASTFIPGenDist(ip_range=["16.1.0.0", "16.16.255.255"], distribution="seq")
ip_gen_s = ASTFIPGenDist(ip_range=["48.1.0.0", "48.16.255.255"], distribution="seq")
ip_gen = ASTFIPGen(glob=ASTFIPGenGlobal(ip_offset="1.0.0.0"),
dist_client=ip_gen_c,
dist_server=ip_gen_s)
return ASTFProfile(default_ip_gen=ip_gen,
cap_list=[ASTFCapInfo(file="../avl/http_minipc.pcap",
cps=10000.0)])
def register():
return Prof1()
Does trex guarantee that a single flow will look like this for example:
16.1.0.1:PortA -> 48.1.0.1:PortB
...
16.1.0.254:PortA -> 48.1.0.254:PortB
...
Or trex will run through source/destination port values for a pair of fixed src/dst IPs:
...
...
...
??
Thanks.