./setup.sh
----------------------
| host network |
| |
| veth11 |
| (192.168.62.5) |
-----------|----------
|
|
-----------|----------
| (192.168.62.6) |
| veth12 |
| |
| net1 network |
----------------------
cd tls
./certgen.sh
make
# /etc/hosts
192.168.62.6 quicbench
thy@thy-Z370-HD3:~/hack/linux/linuxyz/quic-bench/tls$ sudo ip netns exec net1 ./tls.out s
thy@thy-Z370-HD3:~/hack/linux/linuxyz/quic-bench/tls$ ./tls.out c
# tls server
client connected
receiving...
sec: 14 ms: 265
server recvd total: 4294967296
# tls client
verify_callback (depth=1)(preverify=1)
Issuer (cn): quicroot
Subject (cn): quicroot
verify_callback (depth=0)(preverify=1)
Issuer (cn): quicroot
Subject (cn): quichbench
Subject (san): quicbench
connected, sending...
client sent total: 4294967296
cd quic
./setup.sh
./certgen.sh
make
thy@thy-Z370-HD3:~/hack/linux/linuxyz/quic-bench/quic$ sudo ip netns exec net1 ./quic.out s
thy@thy-Z370-HD3:~/hack/linux/linuxyz/quic-bench/quic$ ./quic.out c
# quic server
client connected
client stream started
sec: 0 ms: 58
server recvd total: 8388608
client shut down
successfully shut down on idle
stream done
connection done
all data is valid
client: quic event connected
connected
resumption ticket received: 2486 bytes
client sending...
client send done
client sent total: 8388608
successfully shut down on idle
stream done
connection done
// quic.h
//#define DATA_VALIDITY_CHECK 1
#define DATA_VALIDITY_CHECK 0
#define ACK_CHECK 1
make clean
make
# quic server
client connected
client stream started
sec: 9 ms: 375
server recvd total: 4294967296
client shut down
successfully shut down on idle
stream done
connection done
# quic client
client: quic event connected
connected
resumption ticket received: 2486 bytes
client sending...
client send done
client sent total: 4294967296
successfully shut down on idle
stream done
connection done
// quic.h
#define DATA_VALIDITY_CHECK 1
//#define DATA_VALIDITY_CHECK 0
//#define ACK_CHECK 1
#define ACK_CHECK 0
make clean
make
# quic server
client connected
client stream started
successfully shut down on idle
stream done
connection done
invalid data at: 158720: �(a)
invalid data at: 158721: (a)
invalid data at: 158722: �(a)
invalid data at: 158723: �(a)
invalid data at: 158724: (a)
invalid data at: 158725: (a
....
# quic client
client: quic event connected
connected
resumption ticket received: 2486 bytes
client sending...
client send done
client sent total: 8388608
Segmentation fault