Remove rpxy
This commit is contained in:
parent
b9a57aa2e8
commit
5d4d3e8672
3 changed files with 380 additions and 457 deletions
12
README.md
12
README.md
|
|
@ -204,7 +204,9 @@ sudo make install
|
|||
|
||||
### Record
|
||||
|
||||
Authorize rpxy and netreplay to bind to ports 80 and 443:
|
||||
#### Installation
|
||||
|
||||
Authorize netreplay to bind to ports 80 and 443:
|
||||
```bash
|
||||
sudo setcap CAP_NET_BIND_SERVICE=+eip netreplay
|
||||
```
|
||||
|
|
@ -217,11 +219,7 @@ firefox -P tlsbench
|
|||
|
||||
In settings, disable DNS security.
|
||||
|
||||
In `about:config`, set:
|
||||
* `devtools.chrome.enabled` to `true`
|
||||
* `network.dns.forceResolve` to `127.0.0.1`
|
||||
|
||||
In the `about:config` tab, open the console, execute this script to override DNS for the selected names, and redirect them to localhost:
|
||||
In `about:config`, set `network.dns.forceResolve` to `127.0.0.1`.
|
||||
|
||||
Run the shell commands:
|
||||
|
||||
|
|
@ -232,6 +230,8 @@ python exp.py update-certs debug
|
|||
|
||||
In Firefox, go to security settings, Certificates, import `/dev/shm/exp/certs/prime256v1/ca.crt` and trust it for identifying websites.
|
||||
|
||||
#### After installation
|
||||
|
||||
Stop anything running on ports 80 or 443.
|
||||
|
||||
Start the record proxy:
|
||||
|
|
|
|||
22
plots.py
22
plots.py
|
|
@ -161,14 +161,14 @@ def make_log_plot(logs, exp, criterion, side, obj, record, machine=None, version
|
|||
idle_val = float(log[COL[obj]]) / float(log["time"])
|
||||
if log["exp"] != exp or log["record"] != record:
|
||||
continue
|
||||
if log["setup"] == "none":
|
||||
if log["side"] == side and log["tls"] == "0":
|
||||
plain_line = "plain {}".format(float(log[COL[obj]]) - idle_val * float(log["time"]))
|
||||
|
||||
if plain_line == None:
|
||||
return
|
||||
|
||||
for log in logs:
|
||||
if log["exp"] == exp and log["record"] == record and log["setup"] == side:
|
||||
if log["exp"] == exp and log["record"] == record and log["side"] == side:
|
||||
#ver = VER_LABEL[log["cipher"]]
|
||||
#if log[COL[criterion]]+"/"+ver not in ciphers:
|
||||
# ciphers[log[COL[criterion]]+"/"+ver] = {}
|
||||
|
|
@ -397,15 +397,15 @@ if __name__ == "__main__":
|
|||
if cmd == "log":
|
||||
for side in ["client", "server"]:
|
||||
for record in records:
|
||||
make_log_plot(logs, "impl-cipher-ver", "cipher", side, "cpu", record, machine=machine, version="1.3", maketitle=maketitle)
|
||||
make_log_plot(logs, "impl-cipher-ver", "cipher", side, "energy", record, machine=machine, version="1.3", maketitle=maketitle)
|
||||
make_log_plot(logs, "impl-cert-ver", "cert", side, "cpu", record, machine=machine, version="1.3", maketitle=maketitle)
|
||||
make_log_plot(logs, "impl-cert-ver", "cert", side, "energy", record, machine=machine, version="1.3", maketitle=maketitle)
|
||||
make_log_plot(logs, "impl-kex-ver", "kex", side, "cpu", record, machine=machine, version="1.3", maketitle=maketitle)
|
||||
make_log_plot(logs, "impl-kex-ver", "kex", side, "energy", record, machine=machine, version="1.3", maketitle=maketitle)
|
||||
make_log_plot(logs, "zrtt", "ed", side, "cpu", record, machine=machine, version="1.3", maketitle=maketitle)
|
||||
make_log_plot(logs, "zrtt", "ed", side, "energy", record, machine=machine, version="1.3", maketitle=maketitle)
|
||||
cmp_versions(logs, ["impl-cipher-ver", "impl-cert-ver", "impl-kex-ver"], ["side", "cipher", "cert", "kex", "record"], ["cpu", "energy"])
|
||||
make_log_plot(logs, "impl-cipher-ver", "cipher", side, "cpu", record, machine=machine, maketitle=maketitle, version="1.3")
|
||||
make_log_plot(logs, "impl-cipher-ver", "cipher", side, "energy", record, machine=machine, maketitle=maketitle, version="1.3")
|
||||
make_log_plot(logs, "impl-cert-ver", "cert", side, "cpu", record, machine=machine, maketitle=maketitle, version="1.3")
|
||||
make_log_plot(logs, "impl-cert-ver", "cert", side, "energy", record, machine=machine, maketitle=maketitle, version="1.3")
|
||||
make_log_plot(logs, "impl-kex-ver", "kex", side, "cpu", record, machine=machine, maketitle=maketitle, version="1.3")
|
||||
make_log_plot(logs, "impl-kex-ver", "kex", side, "energy", record, machine=machine, maketitle=maketitle, version="1.3")
|
||||
make_log_plot(logs, "zrtt", "ed", side, "cpu", record, machine=machine, maketitle=maketitle, version="1.3")
|
||||
make_log_plot(logs, "zrtt", "ed", side, "energy", record, machine=machine, maketitle=maketitle, version="1.3")
|
||||
#cmp_versions(logs, ["impl-cipher-ver", "impl-cert-ver", "impl-kex-ver"], ["side", "cipher", "cert", "kex", "record"], ["cpu", "energy"])
|
||||
elif cmd == "prof":
|
||||
for side in ["client-local", "server-local"]:
|
||||
for record in records:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue