Skip to content

Instantly share code, notes, and snippets.

s2n-quic のecho exampleからpcap2qlogで生成したqlogファイル

{
    "qlog_version": "draft-02-wip",
    "description": "",
    "traces": [
        {
            "title": "Connection 1",
            "vantage_point": {
@neko-suki
neko-suki / description.md
Last active February 19, 2020 13:18
generate simple trace files for mahimahi link-shell

1 line = 1msec

1000 line = 1500 byte * 1000 * 8bit = 12Mbit/sec

1.2, 2.4, 4, 6 is multiple of 12Mbps. They can be easily computed.

with open ("1.2M.trace", "w") as f:
    for i in range(10, 1001, 10):
 f.write(str(i))
set terminal png
set key left top
# show progress
set output "1_progress.png"
plot "1core_1process.txt" using 2:3 title "data1"
set output "2_progress.png"
plot "1core_2process.txt" using 2:($1 == 0 ? $3 : 1/0) title "data1",\
"1core_2process.txt" using 2:($1 == 1 ? $3 : 1/0) title "data2"