Comments (5)
Would be great to have this! I think the cool version of this in 0.9 would be to try to implement quinn::AsyncUdpSocket
on top of io_ring, but just basic quinn-proto would be nice to. I guess it should be doable? Would be interesting to find out where you hit any snags.
I'd particularly love an implementation on top of tokio-uring.
from quinn.
If you do go with quinn-proto, the discussion on using it in #1441 may be helpful. The async interface is a lot more ergonomic, but may be harder to demonstrate interesting performance results with.
from quinn.
QUIC needs a bunch of advanced socket functionality to get optimal behavior out of UDP. In the conventional API, this is only possible using the sendmsg
family of functions. See quinn-udp/src/unix.rs for examples. I'm not familiar with the specifics of the operations supported by io_uring, but I'd guess there's a similar distinction there.
from quinn.
@djc At some point we will for sure have an implementation in tokio uring, but before that we need to analyze all the io_uring options and decide which opcodes needs to be implemented in tokio. E.g.: Zero copy? It reduces memory bandwidth usage but also increases latency on big packets. Sqpoll? again it reduces CPU usage but increases latency. And many other options to test.
My goal for now is to do a very simple implementation, like this one, that will allow us to have a clearer picture on what are the best practices.
I gave a quick look to quinn::AsyncUdpSocket
but still I can't visualize how would I plug it in io_uring. With uring I can read/recv packets, how would I pass them to quinn::AsyncUdpSocket
?
@Ralith , thank you for the link that's what I needed, I will try to follow it and then I will make more questions :) Maybe I could build a plain UDP server with all the configuration options, and then ask again for your help. If I understood correctly, I should use quinn_proto::Endpoint::handle
with the data I receive from the socket, and then the library will do its magic somehow :D (more investigation needed)
Some more questions:
- is there a difference for QUIC if I use read/write or send/recv?
from quinn.
Something like this seems feasible. We can actually also send headers to the syscall. It'd however require tokio-uring
to open up it's API, so we can send headers.
Then, there's also the problem of tokio-uring
giving an opaque future, while we expect poll methods. I guess we'll have to make a generic struct which stores the active future?
from quinn.
Related Issues (20)
- Rotation of Connection IDs HOT 5
- How to run insecure connection example? HOT 1
- Weird issue when transferring large file HOT 3
- `ACKs are delivered in order` panic when packets are reordered
- Allow a client to specify Initial Connection ID HOT 2
- Bundle flow control and ACK frames opportunistically
- RTT calculation of connection is pretty unreliable when _just_ using the library as is HOT 8
- `SendStream::stopped` suffers excessive delay in terminating with `ZeroRttRejected`
- Dropping `Endpoint` can cause unnecessary "Incoming dropped without passing to..." warnings
- Allow certificate access on Connecting HOT 5
- `SendStream::finish()` no longer errors when connection is closed HOT 2
- Allow disabling backtraces in panics HOT 3
- Consider adding an expect message to unwrap in packet_builder.rs HOT 6
- quinn is failing `zerortt` interop HOT 1
- Panic with tokio 1.39 HOT 8
- `handshakecorruption` crash HOT 5
- `recvmmsg` is disallowed by seccomp on Android x86 HOT 4
- how to use quinn to create an echo server and client? HOT 7
- Add echo server & client for examples HOT 1
- How to use empty cert connect my quic server using quinn? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quinn.