Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(server): drop short header packet for unknown connection #1952

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

mxinden
Copy link
Collaborator

@mxinden mxinden commented Jul 2, 2024

This commit adds a basic test, passing a short header packet to a fresh server, expecting the server to drop the packet for the unknown connection.

More specifically, it tests this code path:

if packet.packet_type() == PacketType::Short {
// TODO send a stateless reset here.
qtrace!([self], "Short header packet for an unknown connection");
return None;
}

This commit adds a basic test, passing a short header packet to a fresh server,
expecting the server to drop the packet for the unknown connection.
Copy link

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.82%. Comparing base (c9ff46e) to head (a5e5f87).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1952   +/-   ##
=======================================
  Coverage   94.81%   94.82%           
=======================================
  Files         110      110           
  Lines       35773    35773           
=======================================
+ Hits        33918    33920    +2     
+ Misses       1855     1853    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@larseggert larseggert enabled auto-merge July 2, 2024 08:33
@larseggert larseggert added this pull request to the merge queue Jul 2, 2024
Copy link

github-actions bot commented Jul 2, 2024

Failed Interop Tests

QUIC Interop Runner, client vs. server

All results

Succeeded Interop Tests

QUIC Interop Runner, client vs. server

Unsupported Interop Tests

QUIC Interop Runner, client vs. server

Merged via the queue into mozilla:main with commit e2c37a9 Jul 2, 2024
55 checks passed
Copy link

github-actions bot commented Jul 2, 2024

Firefox builds for this PR

The following builds are available for testing. Crossed-out builds did not succeed.

Copy link

github-actions bot commented Jul 2, 2024

Benchmark results

Performance differences relative to ea54273.

coalesce_acked_from_zero 1+1 entries: 💔 Performance has regressed.
       time:   [196.19 ns 196.64 ns 197.11 ns]
       change: [+2.3392% +2.6876% +3.0404%] (p = 0.00 < 0.05)
Found 16 outliers among 100 measurements (16.00%)
  9 (9.00%) high mild
  7 (7.00%) high severe
coalesce_acked_from_zero 3+1 entries: 💔 Performance has regressed.
       time:   [237.38 ns 238.10 ns 238.92 ns]
       change: [+1.8970% +2.3222% +2.7914%] (p = 0.00 < 0.05)
Found 15 outliers among 100 measurements (15.00%)
  1 (1.00%) low mild
  2 (2.00%) high mild
  12 (12.00%) high severe
coalesce_acked_from_zero 10+1 entries: 💔 Performance has regressed.
       time:   [237.25 ns 237.96 ns 238.83 ns]
       change: [+1.3296% +1.9798% +2.6207%] (p = 0.00 < 0.05)
Found 7 outliers among 100 measurements (7.00%)
  7 (7.00%) high severe
coalesce_acked_from_zero 1000+1 entries: Change within noise threshold.
       time:   [217.94 ns 218.06 ns 218.20 ns]
       change: [+0.0717% +0.8652% +1.5373%] (p = 0.01 < 0.05)
Found 16 outliers among 100 measurements (16.00%)
  1 (1.00%) low severe
  1 (1.00%) low mild
  4 (4.00%) high mild
  10 (10.00%) high severe
RxStreamOrderer::inbound_frame(): 💔 Performance has regressed.
       time:   [119.34 ms 119.42 ms 119.49 ms]
       change: [+1.0346% +1.1415% +1.2446%] (p = 0.00 < 0.05)
Found 6 outliers among 100 measurements (6.00%)
  5 (5.00%) high mild
  1 (1.00%) high severe
transfer/Run multiple transfers with varying seeds: Change within noise threshold.
       time:   [121.52 ms 121.82 ms 122.12 ms]
       thrpt:  [32.754 MiB/s 32.834 MiB/s 32.916 MiB/s]
change:
       time:   [+1.2983% +1.6315% +1.9530%] (p = 0.00 < 0.05)
       thrpt:  [-1.9156% -1.6053% -1.2816%]

transfer/Run multiple transfers with the same seed
time: [122.29 ms 122.45 ms 122.61 ms]
thrpt: [32.625 MiB/s 32.667 MiB/s 32.709 MiB/s]
change:
time: [+1.7017% +1.9084% +2.1177%] (p = 0.00 < 0.05)
thrpt: [-2.0738% -1.8726% -1.6732%]
Change within noise threshold.

1-conn/1-100mb-resp (aka. Download)/client: No change in performance detected.
       time:   [1.0540 s 1.0778 s 1.1055 s]
       thrpt:  [90.460 MiB/s 92.785 MiB/s 94.873 MiB/s]
change:
       time:   [-4.2557% -0.9666% +2.5049%] (p = 0.60 > 0.05)
       thrpt:  [-2.4437% +0.9760% +4.4448%]

1-conn/10_000-parallel-1b-resp (aka. RPS)/client
time: [392.47 ms 395.71 ms 398.99 ms]
thrpt: [25.063 Kelem/s 25.271 Kelem/s 25.480 Kelem/s]
change:
time: [-0.3078% +0.7886% +1.8898%] (p = 0.17 > 0.05)
thrpt: [-1.8548% -0.7824% +0.3088%]
No change in performance detected.

1-conn/1-1b-resp (aka. HPS)/client: No change in performance detected.
       time:   [42.255 ms 42.394 ms 42.553 ms]
       thrpt:  [23.500  elem/s 23.588  elem/s 23.666  elem/s]
change:
       time:   [-0.6844% -0.1633% +0.3718%] (p = 0.55 > 0.05)
       thrpt:  [-0.3704% +0.1636% +0.6891%]
Found 5 outliers among 100 measurements (5.00%)
  5 (5.00%) high severe

Client/server transfer results

Transfer of 33554432 bytes over loopback.

Client Server CC Pacing Mean [ms] Min [ms] Max [ms] Relative
msquic msquic 150.3 ± 30.4 102.8 206.9 1.00
neqo msquic reno on 268.0 ± 11.5 250.3 287.9 1.00
neqo msquic reno 292.0 ± 36.3 259.7 379.5 1.00
neqo msquic cubic on 264.8 ± 8.0 258.0 287.3 1.00
neqo msquic cubic 270.5 ± 13.3 247.9 288.8 1.00
msquic neqo reno on 928.0 ± 15.9 904.4 954.0 1.00
msquic neqo reno 915.1 ± 10.0 899.5 930.8 1.00
msquic neqo cubic on 898.8 ± 29.4 876.5 979.1 1.00
msquic neqo cubic 886.5 ± 10.7 875.7 904.0 1.00
neqo neqo reno on 917.9 ± 10.7 902.8 934.9 1.00
neqo neqo reno 925.1 ± 13.3 898.2 948.7 1.00
neqo neqo cubic on 880.8 ± 9.9 868.0 904.6 1.00
neqo neqo cubic 865.5 ± 12.9 852.0 893.8 1.00

⬇️ Download logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants