This commit is contained in:
None 2022-02-16 23:40:28 -08:00
parent 951cbd51e8
commit 41aa5144b0
4 changed files with 23 additions and 16 deletions

View File

@ -1,5 +1,5 @@
clients:5 clients:1
leftSubnet:10.0. leftSubnet:10.0.
rightSubnet:10.1. rightSubnet:10.1.
path_c2r_0:10,10,4,10 path_c2r_0:10,10,4,0
topoType:IoTMultiClient topoType:IoTMultiClient

View File

@ -27,10 +27,10 @@ class BASICQUIC(RandomFileExperiment):
BASICQUIC.SERVER_LOG) BASICQUIC.SERVER_LOG)
def getHTTPSServerCmd(self): def getHTTPSServerCmd(self):
# s = "{}/../utils/server".format( s = "{}/../utils/basicquic-server & > {}".format(
# os.path.dirname(os.path.abspath(__file__))) os.path.dirname(os.path.abspath(__file__)), BASICQUIC.SERVER_LOG)
s = "/home/mininet/pugit/sample/minitopo/utils/server & > {}".format( # s = "/home/mininet/pugit/sample/minitopo/utils/server & > {}".format(
BASICQUIC.SERVER_LOG) # BASICQUIC.SERVER_LOG)
print(s) print(s)
return s return s
@ -39,15 +39,14 @@ class BASICQUIC(RandomFileExperiment):
# s = "ping -c 3 -I {} {} > ping-result".format( # s = "ping -c 3 -I {} {} > ping-result".format(
# "10.0.0.", self.topo_config.get_client_ip(1)) # "10.0.0.", self.topo_config.get_client_ip(1))
# s = "{}/../utils/echo-client {} > {}".format(os.path.dirname(os.path.abspath(__file__)), s = "{}/../utils/basicquic-client -keylog router.log -insecure https://{}:6121/demo/tiles".format(
# self.topo.get_server_ip( os.path.dirname(os.path.abspath(__file__)),
# 0), self.topo_config.get_server_ip(0))
# os.path.dirname(os.path.abspath(__file__)), BASICQUIC.CLIENT_LOG)
s = "/home/mininet/pugit/sample/minitopo/utils/echo-client {} & > {}".format( # s = "/home/mininet/pugit/sample/minitopo/utils/echo-client {} & > {}".format(
self.topo_config.get_server_ip(0), # self.topo_config.get_server_ip(0),
BASICQUIC.CLIENT_LOG, # BASICQUIC.CLIENT_LOG,
) # )
print(s) print(s)
return s return s
@ -75,14 +74,22 @@ class BASICQUIC(RandomFileExperiment):
cmd = self.getHTTPSClientCmd() cmd = self.getHTTPSClientCmd()
# for c in self.topo_config.clients: # for c in self.topo_config.clients:
# self.topo.command_to(c, cmd) # self.topo.command_to(c, cmd)
for i in range(1, self.topo.client_count()):
def runner(i):
self.topo.command_to(self.topo_config.clients[i], cmd) self.topo.command_to(self.topo_config.clients[i], cmd)
print('client {} start'.format(i))
for i in range(1, self.topo.client_count()):
t = threading.Thread(target=runner, args=(i,))
t.start()
# self.topo_config.configure_client(i) # self.topo_config.configure_client(i)
self.topo.command_to(self.topo_config.client, "sleep 20")
self.topo.command_to(self.topo_config.server, self.topo.command_to(self.topo_config.server,
"netstat -sn > netstat_server_after") "netstat -sn > netstat_server_after")
self.topo.command_to(self.topo_config.router, self.topo.command_to(self.topo_config.router,
"netstat -sn > netstat_router_after") "netstat -sn > netstat_router_after")
self.topo.command_to(self.topo_config.server, self.topo.command_to(self.topo_config.server,
"pkill -f server") "pkill -f basicquic-server")
self.topo.command_to(self.topo_config.client, "sleep 2") self.topo.command_to(self.topo_config.client, "sleep 2")

BIN
utils/basicquic-client Executable file

Binary file not shown.

BIN
utils/basicquic-server Executable file

Binary file not shown.