Esempio n. 1
0
               server='10.19.87.10',
               client='10.19.87.7',
               proto='UDP',
               offered_load=args.offered_load,
               interval=args.interval,
               flowtime=args.time,
               dst='192.168.1.4',
               tos=args.tos,
               length=args.length)
]
flows.append(
    iperf_flow(name="UDP2",
               user='******',
               server='10.19.87.8',
               client='10.19.87.7',
               proto='UDP',
               offered_load=args.offered_load,
               interval=args.interval,
               flowtime=args.time,
               dst='192.168.1.1',
               tos=args.tos,
               length=args.length))
flows.append(
    iperf_flow(name="UDP3",
               user='******',
               server='10.19.87.9',
               client='10.19.87.7',
               proto='UDP',
               offered_load=args.offered_load,
               interval=args.interval,
               flowtime=args.time,
               dst='192.168.1.2',
Esempio n. 2
0
                   interval=args.interval,
                   flowtime=args.time,
                   dst='192.168.1.4',
                   tos=args.tos,
                   isoch=False,
                   debug=False)
    ]

#optional "stressor flow"
if args.stress_server and args.stress_client and args.stress_dst:
    flows.append(
        iperf_flow(name="STRESS",
                   user='******',
                   server=args.stress_server,
                   client=args.stress_client,
                   dst=args.stress_dst,
                   proto=args.stress_proto,
                   offered_load=args.stress_offered_load,
                   interval=args.interval,
                   flowtime=args.time,
                   tos=args.stress_tos,
                   debug=False))
    print("Running stress {} traffic client={} server={} dest={} with load {}".
          format(args.stress_proto, args.stress_client, args.stress_server,
                 args.stress_dst, args.stress_offered_load, args.time))

for i in range(args.runcount):
    print(
        "Running ({}) isochronous traffic client={} server={} dest=192.168.1.4 with load {} for {} seconds"
        .format(str(i), args.client, args.server, args.offered_load,
                args.time))
    iperf_flow.run(time=args.time, flows='all', preclean=False)