Skip to content
Snippets Groups Projects
Commit baff3390 authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

randomize packet size

parent d8963a4d
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ def generate_and_send_traffic_matrix():
if src_ip != dest_ip:
with open(file_path, "w") as file:
dest_port = listen_port_map[dest_ip]
command = f"-T {PROTO} -a {dest_ip} -rp {dest_port} -O {mean_rate} -t {TIME_GENERATE}"
command = f"-T {PROTO} -a {dest_ip} -rp {dest_port} -O {mean_rate} -o 1400 -t {TIME_GENERATE}"
listen_port_map[dest_ip] += 1
file.write(f"{src_ip} {command}\n")
print(command)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment