Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Feb 9, 2024
1 parent 912c3e6 commit 30700aa
Show file tree
Hide file tree
Showing 209 changed files with 9,021 additions and 11,333 deletions.
4 changes: 1 addition & 3 deletions internal/experiment/webconnectivitylte/cleartextflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package webconnectivitylte

import (
"context"
"fmt"
"io"
"net"
"net/http"
Expand Down Expand Up @@ -102,8 +101,7 @@ func (t *CleartextFlow) Run(parentCtx context.Context, index int64) error {
}

// create trace
trace := measurexlite.NewTrace(index, t.ZeroTime, fmt.Sprintf("depth=%d", t.Depth),
fmt.Sprintf("fetch_body=%v", t.PrioSelector != nil))
trace := measurexlite.NewTrace(index, t.ZeroTime, generateTagsForEndpoints(t.Depth, t.PrioSelector != nil)...)

// start measuring throttling
sampler := throttling.NewSampler(trace)
Expand Down
4 changes: 1 addition & 3 deletions internal/experiment/webconnectivitylte/secureflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package webconnectivitylte
import (
"context"
"crypto/tls"
"fmt"
"io"
"net"
"net/http"
Expand Down Expand Up @@ -109,8 +108,7 @@ func (t *SecureFlow) Run(parentCtx context.Context, index int64) error {
}

// create trace
trace := measurexlite.NewTrace(index, t.ZeroTime, fmt.Sprintf("depth=%d", t.Depth),
fmt.Sprintf("fetch_body=%v", t.PrioSelector != nil))
trace := measurexlite.NewTrace(index, t.ZeroTime, generateTagsForEndpoints(t.Depth, t.PrioSelector != nil)...)

// start measuring throttling
sampler := throttling.NewSampler(trace)
Expand Down
13 changes: 13 additions & 0 deletions internal/experiment/webconnectivitylte/tags.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package webconnectivitylte

import "fmt"

// generateTagsForEndpoints generates the tags for the endpoints.
func generateTagsForEndpoints(depth int64, fetchBody bool) (output []string) {
output = append(output, fmt.Sprintf("fetch_body=%v", fetchBody))
output = append(output, fmt.Sprintf("depth=%d", depth))
if depth < 1 {
output = append(output, "tcptls_experiment")
}
return output
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"Failure": "ssl_invalid_certificate",
"TransactionID": 3,
"TagFetchBody": true,
"DNSTransactionID": 2,
"DNSTransactionID": 1,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"Failure": "ssl_invalid_certificate",
"TransactionID": 3,
"TagFetchBody": true,
"DNSTransactionID": 2,
"DNSTransactionID": 1,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"tunnel": 0
},
"input": "https://expired.badssl.com/",
"measurement_start_time": "2024-01-23 16:07:26",
"measurement_start_time": "2024-02-09 10:05:52",
"probe_asn": "AS137",
"probe_cc": "IT",
"probe_ip": "127.0.0.1",
Expand Down Expand Up @@ -37,33 +37,43 @@
"failure": null,
"operation": "connect",
"proto": "tcp",
"t0": 0.011584,
"t": 0.017182,
"t0": 0.006282,
"t": 0.011606,
"transaction_id": 3,
"tags": [
"fetch_body=true",
"depth=0",
"fetch_body=true"
"tcptls_experiment"
]
},
{
"address": "104.154.89.105:443",
"failure": null,
"num_bytes": 2262,
"num_bytes": 2263,
"operation": "bytes_received_cumulative",
"proto": "tcp",
"t0": 0.02732,
"t": 0.02732,
"t0": 0.022826,
"t": 0.022826,
"transaction_id": 3,
"tags": [
"fetch_body=true",
"depth=0",
"fetch_body=true"
"tcptls_experiment"
]
}
],
"x_dns_whoami": {
"system_v4": null,
"system_v4": [
{
"address": "130.192.91.211"
}
],
"udp_v4": {
"8.8.4.4:53": null
"208.67.222.222:53": [
{
"address": "130.192.91.211"
}
]
}
},
"x_doh": {
Expand All @@ -78,60 +88,60 @@
{
"failure": null,
"operation": "resolve_start",
"t0": 0.000066,
"t": 0.000066,
"t0": 0.000068,
"t": 0.000068,
"transaction_id": 1,
"tags": [
"depth=0"
]
},
{
"address": "8.8.4.4:53",
"address": "208.67.222.222:53",
"failure": null,
"num_bytes": 36,
"operation": "write",
"proto": "udp",
"t0": 0.000103,
"t": 0.000123,
"t0": 0.000117,
"t": 0.000143,
"transaction_id": 1,
"tags": [
"depth=0"
]
},
{
"address": "8.8.4.4:53",
"address": "208.67.222.222:53",
"failure": null,
"num_bytes": 36,
"operation": "write",
"proto": "udp",
"t0": 0.000127,
"t": 0.000131,
"t0": 0.000155,
"t": 0.00016,
"transaction_id": 1,
"tags": [
"depth=0"
]
},
{
"address": "8.8.4.4:53",
"address": "208.67.222.222:53",
"failure": null,
"num_bytes": 36,
"num_bytes": 70,
"operation": "read",
"proto": "udp",
"t0": 0.000128,
"t": 0.005533,
"t0": 0.000165,
"t": 0.005241,
"transaction_id": 1,
"tags": [
"depth=0"
]
},
{
"address": "8.8.4.4:53",
"address": "208.67.222.222:53",
"failure": null,
"num_bytes": 70,
"num_bytes": 36,
"operation": "read",
"proto": "udp",
"t0": 0.000139,
"t": 0.005879,
"t0": 0.000159,
"t": 0.005815,
"transaction_id": 1,
"tags": [
"depth=0"
Expand All @@ -140,8 +150,8 @@
{
"failure": null,
"operation": "resolve_done",
"t0": 0.005913,
"t": 0.005913,
"t0": 0.005851,
"t": 0.005851,
"transaction_id": 1,
"tags": [
"depth=0"
Expand All @@ -162,32 +172,33 @@
"ttl": null
}
],
"engine": "getaddrinfo",
"engine": "udp",
"failure": null,
"hostname": "expired.badssl.com",
"query_type": "ANY",
"query_type": "A",
"raw_response": "4sKBAAABAAEAAAAAB2V4cGlyZWQGYmFkc3NsA2NvbQAAAQABB2V4cGlyZWQGYmFkc3NsA2NvbQAAAQABAAAOEAAEaJpZaQ==",
"resolver_hostname": null,
"resolver_port": null,
"resolver_address": "",
"t0": 0.00008,
"t": 0.005767,
"resolver_address": "208.67.222.222:53",
"t0": 0.000088,
"t": 0.005248,
"tags": [
"depth=0"
],
"transaction_id": 2
"transaction_id": 1
},
{
"answers": null,
"engine": "udp",
"failure": "dns_no_answer",
"hostname": "expired.badssl.com",
"query_type": "AAAA",
"raw_response": "Qn+BAAABAAAAAAAAB2V4cGlyZWQGYmFkc3NsA2NvbQAAHAAB",
"raw_response": "truBAAABAAAAAAAAB2V4cGlyZWQGYmFkc3NsA2NvbQAAHAAB",
"resolver_hostname": null,
"resolver_port": null,
"resolver_address": "8.8.4.4:53",
"t0": 0.000076,
"t": 0.005538,
"resolver_address": "208.67.222.222:53",
"t0": 0.000082,
"t": 0.005829,
"tags": [
"depth=0"
],
Expand All @@ -203,20 +214,19 @@
"ttl": null
}
],
"engine": "udp",
"engine": "getaddrinfo",
"failure": null,
"hostname": "expired.badssl.com",
"query_type": "A",
"raw_response": "AWmBAAABAAEAAAAAB2V4cGlyZWQGYmFkc3NsA2NvbQAAAQABB2V4cGlyZWQGYmFkc3NsA2NvbQAAAQABAAAOEAAEaJpZaQ==",
"query_type": "ANY",
"resolver_hostname": null,
"resolver_port": null,
"resolver_address": "8.8.4.4:53",
"t0": 0.00011,
"t": 0.005884,
"resolver_address": "",
"t0": 0.000082,
"t": 0.006185,
"tags": [
"depth=0"
],
"transaction_id": 1
"transaction_id": 2
}
],
"requests": [],
Expand All @@ -228,11 +238,12 @@
"failure": null,
"success": true
},
"t0": 0.011584,
"t": 0.017182,
"t0": 0.006282,
"t": 0.011606,
"tags": [
"fetch_body=true",
"depth=0",
"fetch_body=true"
"tcptls_experiment"
],
"transaction_id": 3
}
Expand All @@ -247,16 +258,17 @@
"no_tls_verify": false,
"peer_certificates": [
{
"data": "MIIDeDCCAmCgAwIBAgIUDFii3o/E+8RXCvfb8zpfNhlAqkEwDQYJKoZIhvcNAQELBQAwHzENMAsGA1UEChMET09OSTEOMAwGA1UEAxMFamFmYXIwHhcNMTcwNzE2MjMwMDAwWhcNMTcwNzE3MDEwMDAwWjA1MRYwFAYDVQQKEw1PT05JIE5ldGVtIENBMRswGQYDVQQ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eLBRPs8oGTF6BHmmR2skFt3JZYUxnZe5GO6AFWP++dnp3yWV4KMZKk3ZhaZFZCo=",
"format": "base64"
}
],
"server_name": "expired.badssl.com",
"t0": 0.017197,
"t": 0.027298,
"t0": 0.011628,
"t": 0.02279,
"tags": [
"fetch_body=true",
"depth=0",
"fetch_body=true"
"tcptls_experiment"
],
"tls_version": "",
"transaction_id": 3
Expand Down Expand Up @@ -321,7 +333,7 @@
"x_conn_priority_log": [
{
"msg": "create with [{Addr:104.154.89.105 Flags:3}]",
"t": 0.011551
"t": 0.006238
}
],
"control_failure": null,
Expand All @@ -340,7 +352,7 @@
"accessible": false
},
"test_name": "web_connectivity",
"test_runtime": 0.506011,
"test_start_time": "2024-01-23 16:07:26",
"test_runtime": 0.506336,
"test_start_time": "2024-02-09 10:05:52",
"test_version": "0.5.28"
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@
"TagDepth": 0,
"Type": 0,
"Failure": "",
"TransactionID": 2,
"TransactionID": 1,
"TagFetchBody": null,
"DNSTransactionID": 2,
"DNSTransactionID": 1,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": "ANY",
"DNSEngine": "getaddrinfo",
"DNSQueryType": "A",
"DNSEngine": "udp",
"DNSResolvedAddrs": [
"104.154.89.105"
],
Expand Down Expand Up @@ -98,13 +98,13 @@
"TagDepth": 0,
"Type": 0,
"Failure": "",
"TransactionID": 1,
"TransactionID": 2,
"TagFetchBody": null,
"DNSTransactionID": 1,
"DNSTransactionID": 2,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": "A",
"DNSEngine": "udp",
"DNSQueryType": "ANY",
"DNSEngine": "getaddrinfo",
"DNSResolvedAddrs": [
"104.154.89.105"
],
Expand Down Expand Up @@ -149,7 +149,7 @@
"Failure": "ssl_invalid_certificate",
"TransactionID": 3,
"TagFetchBody": true,
"DNSTransactionID": 2,
"DNSTransactionID": 1,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": null,
Expand Down
Loading

0 comments on commit 30700aa

Please sign in to comment.