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

refactor: introduce reliable transport layer #50

Merged
merged 63 commits into from
Jan 15, 2024

Conversation

ainghazal
Copy link
Collaborator

This is the third commit in the series of incremental refactoring of the current minivpn tree.

In this commit, we introduce the reliabletransport package, which is the layer between packetmuxer and control channel.

Reliable transport adds a reliability layer on top of UDP (but it's also used in TCP mode).

This first implementation of the reliability layer implements only a naive strategy to get the TLS handshake working on an optimal environment (i.e., no packet loss). We ACK any incoming packet, and we assume all packets arrive in order.

After merging all the components in the new architecture, we will revisit the reliability layer to follow the OpenVPN design more closely.

Reference issue: #47

ainghazal and others added 30 commits May 8, 2023 15:46
I've tried to achieve te minimal incremental change that adds resilience
in the face of network noise.

To achieve that, the simple thing to do was to make session an object
owned by an implementation of reliableTransport. I've reused the
reliableUDP implementation in govpn, and I like the simplicity of that
implementation a lot. A lot of our current logic (ackqueue/retries)
needed to move from the tlsTransport minivpn implementation into
reliableTransport.

Although the DoS documented in the MIV-01 report is not done, we add the
e2e testing script to facilitate further development.

- Related: ooni#32

more tests
In particular, make sure it's ~easy to connect them all.
@ainghazal ainghazal self-assigned this Jan 15, 2024
@ainghazal ainghazal requested a review from bassosimone January 15, 2024 13:53
Copy link
Contributor

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐳

@ainghazal ainghazal merged commit d525579 into ooni:main Jan 15, 2024
@ainghazal ainghazal deleted the refactor-reliable branch January 22, 2024 11:47
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