custom
This commit is contained in:
parent
951cbd51e8
commit
41aa5144b0
@ -1,5 +1,5 @@
|
||||
clients:5
|
||||
clients:1
|
||||
leftSubnet:10.0.
|
||||
rightSubnet:10.1.
|
||||
path_c2r_0:10,10,4,10
|
||||
path_c2r_0:10,10,4,0
|
||||
topoType:IoTMultiClient
|
@ -27,10 +27,10 @@ class BASICQUIC(RandomFileExperiment):
|
||||
BASICQUIC.SERVER_LOG)
|
||||
|
||||
def getHTTPSServerCmd(self):
|
||||
# s = "{}/../utils/server".format(
|
||||
# os.path.dirname(os.path.abspath(__file__)))
|
||||
s = "/home/mininet/pugit/sample/minitopo/utils/server & > {}".format(
|
||||
BASICQUIC.SERVER_LOG)
|
||||
s = "{}/../utils/basicquic-server & > {}".format(
|
||||
os.path.dirname(os.path.abspath(__file__)), BASICQUIC.SERVER_LOG)
|
||||
# s = "/home/mininet/pugit/sample/minitopo/utils/server & > {}".format(
|
||||
# BASICQUIC.SERVER_LOG)
|
||||
|
||||
print(s)
|
||||
return s
|
||||
@ -39,15 +39,14 @@ class BASICQUIC(RandomFileExperiment):
|
||||
# s = "ping -c 3 -I {} {} > ping-result".format(
|
||||
# "10.0.0.", self.topo_config.get_client_ip(1))
|
||||
|
||||
# s = "{}/../utils/echo-client {} > {}".format(os.path.dirname(os.path.abspath(__file__)),
|
||||
# self.topo.get_server_ip(
|
||||
# 0),
|
||||
# os.path.dirname(os.path.abspath(__file__)), BASICQUIC.CLIENT_LOG)
|
||||
s = "{}/../utils/basicquic-client -keylog router.log -insecure https://{}:6121/demo/tiles".format(
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
self.topo_config.get_server_ip(0))
|
||||
|
||||
s = "/home/mininet/pugit/sample/minitopo/utils/echo-client {} & > {}".format(
|
||||
self.topo_config.get_server_ip(0),
|
||||
BASICQUIC.CLIENT_LOG,
|
||||
)
|
||||
# s = "/home/mininet/pugit/sample/minitopo/utils/echo-client {} & > {}".format(
|
||||
# self.topo_config.get_server_ip(0),
|
||||
# BASICQUIC.CLIENT_LOG,
|
||||
# )
|
||||
|
||||
print(s)
|
||||
return s
|
||||
@ -75,14 +74,22 @@ class BASICQUIC(RandomFileExperiment):
|
||||
cmd = self.getHTTPSClientCmd()
|
||||
# for c in self.topo_config.clients:
|
||||
# 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)
|
||||
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.command_to(self.topo_config.client, "sleep 20")
|
||||
|
||||
self.topo.command_to(self.topo_config.server,
|
||||
"netstat -sn > netstat_server_after")
|
||||
self.topo.command_to(self.topo_config.router,
|
||||
"netstat -sn > netstat_router_after")
|
||||
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")
|
||||
|
BIN
utils/basicquic-client
Executable file
BIN
utils/basicquic-client
Executable file
Binary file not shown.
BIN
utils/basicquic-server
Executable file
BIN
utils/basicquic-server
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user