forked from ConfortiLuca/aioquic-s_m-Triggered
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInfo&cmds.txt
62 lines (32 loc) · 2.6 KB
/
Info&cmds.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
INFO UTILI
Per la libreria CoAPthon3 dopo l'installazione sulla vm dove viene lanciato il server è necessario copiare un file nel seguente modo per evitare errori di Module Not Found:
cp /usr/local/bin/exampleresources.py /usr/local/lib/python3.8/dist-packages/coapthon/
Per il file Migration Information è necessario inserire il path relativo corretto a seconda del punto di esecuzione, tale modifica va fatta:
- riga 757 connection.py --> f = open("/home/Trigger/src/aioquic/quic/MigrationInformation.txt", "r")
- riga 442 http3_server.py --> f = open("/home/Trigger/src/aioquic/quic/MigrationInformation.txt", "a")
Il server CoAP da lanciare è posizionato al seguente path:
Aioquic-Triggered-Git/CoAPthon3/serverCoAP.py
Modificare l'indirizzo ip sul quale voler far partire il server alla riga 67 del file.
*********************************+
COMANDI GENERICI
/home/ubuntu/go/src/github.com/opencontainers/runc/contrib/cmd/recvtty/recvtty /runc/containers/python_bundle/console.sock
runc run -d --console-socket /runc/containers/python_bundle/console.sock python_bundle
cd /home/Trigger_v3
pip3 install -e .
pip3 install aiofiles asgiref dnslib httpbin starlette wsproto paramiko CoAPthon3
exit
runc delete python_bundle
runc list
runc kill python_bundle KILL
*********************************+
COMANDI C & S AIOQUIC
TRIGGERED
"python3" , "/home/Trigger_v4/examples/http3_server.py" , "-c" , "/home/Trigger_v4/tests/ssl_cert.pem" , "-k" , "/home/Trigger_v4/tests/ssl_key.pem","--migration_type","0","--server_addresses","172.16.4.232,172.16.4.4"
python3 examples/http3_server.py -c tests/ssl_cert.pem -k tests/ssl_key.pem --migration_type 0 --server_addresses "172.16.4.232,172.16.4.4"
python3 examples/http3_client.py --ca-certs tests/pycacert.pem --handle_migration_strategy 0 --n_requests 7 --n_request_migration 2 --interval_migration 3 https://172.16.4.4:4433/
python3 examples/http3_client.py --ca-certs tests/pycacert.pem --handle_migration_strategy 0 --n_requests 7 --n_request_migration 2 --interval_migration 3 https://192.168.178.24:4433/
POOL OF ADDRESSES
python3 examples/http3_server.py -c tests/ssl_cert.pem -k tests/ssl_key.pem --migration_type 0
"python3" , "/home/Pool_v2/examples/http3_server.py" , "-c" , "/home/Pool_v2/tests/ssl_cert.pem" , "-k" , "/home/Pool_v2/tests/ssl_key.pem","--migration_type","0"
python3 examples/http3_client.py --ca-certs tests/pycacert.pem --n_requests 7 --n_request_migration 2 --interval_migration 3 https://192.168.178.24:4433/
python3 examples/http3_client.py --ca-certs tests/pycacert.pem --n_requests 7 --n_request_migration 2 --interval_migration 3 https://172.16.4.4:4433/