- Creazione dell'immagine docker dal Dockerfile:
docker build -t quic-peer .
-
installazione dei tool:
cd proto-quic export PROTO_QUIC_ROOT=`pwd`/src export PATH=$PATH:`pwd`/depot_tools ./proto_quic_tools/sync.sh ./src/build/install-build-deps.sh
-
Build Client e Server:
cd src gn gen out/Default && ninja -C out/Default epoll_quic_client epoll_quic_server
Copiare nella cartella
/tmp/quic-data/www.example.org
il file .txt presente nella cartella TextFile-
Esecuzione:
- Client:
./out/Default/epoll_quic_client --host=10.4.0.4 --port=6121 https://www.example.org --quiet --disable-certificate-verification -v=1
- Server:
./out/Default/epoll_quic_server --quic_response_cache_dir=/tmp/quic-data/www.example.org --certificate_file=net/tools/quic/certs/out/leaf_cert.pem --key_file=net/tools/quic/certs/out/leaf_cert.pkcs8 -v=1
- Client:
Scenario Simulazione
-
Creazione client, server e router:
docker run -td --name quic-client-mp --network none --privileged quic-mp bash docker run -td --name quic-server-mp --network none --privileged quic-mp bash docker run -td --name router-mp --network none --privileged router bash docker run -td --name router1-mp --network none --privileged router1 bash docker run -td --name router2-mp --network none --privileged router2 bash docker run -td --name router3-mp --network none --privileged router3 bash
Eseguire lo script "create_ifaces.sh"