You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently QUICNetVConnection inherits UnixNetVConnection for using NetHandler and InactivityCop. But ideally QUICNetVConnection should inherits NetVConnection directly.
It still needs some works if you want put QUICNetVConnection into NetHandler. Because the net_read_io and load_buffer_and_write still not working.
This is one of motivations of removing the inheritance of UnixNetVConnection.
The Network I/O of QUICNetVConnection is very different from UnixNetVConnection.
But the InactivityCop is ready for QUICNetVConnection.
Absolutely. It's already working for inactivity timeout.
The QUICPacketHandler could do something just like a Linux Kernel TCP Stack that include read data then attach QUICPacket to QUICNetVC, get data from attached QUICPacket and write out.
The QUICNetHandler is very similar to NetHandler, it read data from QUICPacket rather than call read().
In my opinion,
you can consider the QUICPacket as sk_buff of tcp stack.
By reading the data flow of quic [https://cwiki.apache.org/confluence/display/TS/QUIC?preview=/70257417/70257424/quic_data_flow.png], in my opinion,
create QUICNetHandler inside the ET_NET thread group and push QUICNetVConnection object into its queue.
Call QUICVConnection::handleEvent() inside the QUICNetHandler::mainNetEvent()
With InactivityCop to achieve QUIC Connection-level timeout control.
QUICNetVConnection is a reference count object. The counter increase once whenever QUICStream created and/or bind to it.
create a QUICSteamHandler inside the ET_NET thread group and push QUICStream object into its queue.
extended the enum ip_protocol_t defined inside the NetVCOptions for QUICStream (USE_QUIC)
Mark the ip_proto to USE_QUIC for QUICStream. (consider the QUIC is another advanced TCP implement over UDP.)
Activity
oknet commentedon Sep 22, 2017
According to the QUIC source code,
QUICNetVConnectionhas multi phases that just likeSSLNetVConnectionIn my opinion, to inherit from
UnixNetVConnection, it is a reasonable design.It still needs some works if you want put
QUICNetVConnectioninto NetHandler. Because thenet_read_ioandload_buffer_and_writestill not working.But the InactivityCop is ready for
QUICNetVConnection.oknet commentedon Sep 22, 2017
I think you should create a
QUICNetHandlerif you make it inherits NetVConnection directly.The
QUICNetHandlerjust like the Linux kernel to implement:accept()is calledclose()is calledThe
QUICNetHandleris very similar toNetHandler.masaori335 commentedon Sep 25, 2017
@oknet Thanks for comments.
This is one of motivations of removing the inheritance of
UnixNetVConnection.The Network I/O of
QUICNetVConnectionis very different fromUnixNetVConnection.Absolutely. It's already working for inactivity timeout.
QUICNetHandlersounds good idea :)oknet commentedon Sep 25, 2017
The
QUICPacketHandlercould do something just like a Linux Kernel TCP Stack that include read data then attachQUICPackettoQUICNetVC, get data from attachedQUICPacketand write out.The
QUICNetHandleris very similar toNetHandler, it read data fromQUICPacketrather than callread().In my opinion,
QUICPacketassk_buffof tcp stack.user space TCP stackoverUDP.oknet commentedon Oct 9, 2017
@masaori335
By reading the data flow of quic [https://cwiki.apache.org/confluence/display/TS/QUIC?preview=/70257417/70257424/quic_data_flow.png], in my opinion,
QUICNetHandlerinside theET_NETthread group and pushQUICNetVConnectionobject into its queue.QUICVConnection::handleEvent()inside theQUICNetHandler::mainNetEvent()InactivityCopto achieve QUIC Connection-level timeout control.QUICNetVConnectionis a reference count object. The counter increase once wheneverQUICStreamcreated and/or bind to it.QUICSteamHandlerinside theET_NETthread group and pushQUICStreamobject into its queue.enum ip_protocol_tdefined inside theNetVCOptionsforQUICStream(USE_QUIC)ip_prototoUSE_QUICfor QUICStream. (consider theQUICis another advancedTCPimplement overUDP.)masaori335 commentedon Jan 19, 2018
At QUIC hackathon in Tokyo, we decided to refactor.
https://cwiki.apache.org/confluence/download/attachments/75958509/IMG_6608.jpg?api=v2