QBONE packet reader: fix UDP GRO This was very broken in many ways: - the GRO slicing loop had an off by one error so it would skip the last segment - the slicing loop did not handle a GRO train with last packet smaller than the segment size - the unit test didn't actually test GRO slicing because it never sent coalesced writes - GRO mode did not change the buffer sizes in `ReadPacketResults`, so GRO trains that exceeded an expected single packet size would be truncated cr/465087216 modified `QuicUdpSocketApi::ReadMultiplePackets` to read single packets at a time when GRO was requested, but that should not be necessary as `recvmmsg` can read GRO trains, provided that packet buffers are large enough. This CL removes that special case, so that GRO and non-GRO paths both use `recvmmsg`. Add a streamz distribution, `/gfe/gfe2/qbone/packet_reader_gro_segments`, of the number of packets coalesced into each GRO read. Protected by `--qbone_enable_udp_gro`. PiperOrigin-RevId: 1013877900
QUICHE stands for QUIC, Http, Etc. It is Google‘s production-ready implementation of QUIC, HTTP/2, HTTP/3, and related protocols and tools. It powers Google’s servers, Chromium, Envoy, and other projects. It is actively developed and maintained.
There are two public QUICHE repositories. Either one may be used by embedders, as they are automatically kept in sync:
To embed QUICHE in your project, platform APIs need to be implemented and build files need to be created. Note that it is on the QUICHE team's roadmap to include default implementation for all platform APIs and to open-source build files. In the meanwhile, take a look at open source embedders like Chromium and Envoy to get started:
To contribute to QUICHE, follow instructions at CONTRIBUTING.md.
QUICHE is only supported on little-endian platforms.
QUICHE has binaries that can run on Linux platforms.
Follow the instructions to install Bazel.
sudo apt install libicu-dev clang lld cd <directory that will be the root of your quiche implmentation> git clone https://github.com/google/quiche.git cd quiche CC=clang bazel build -c opt //... ./bazel-bin/quiche/<target_name> <arguments>
There are several targets that can be built and then run. Full usage instructions are available using the --helpfull flag on any binary.
Usage: quic_packet_printer server|client <hex dump of packet>
Usage: crypto_message_printer_bin <hex of message>
Usage: quic_client <URL>
quic_server: listens forever on --port (default 6121) until halted via ctrl-c.
masque_client: tunnels to a URL via an identified proxy (See RFC 9298).
Usage: masque_client [options] <proxy-url> <urls>
Usage: masque_server
web_transport_test_server: a server that clients can connect to via WebTransport.
moqt_relay: a relay for the Media Over QUIC transport for publishers and subscribers can connect to.
Usage: moqt_relay
Most log messages in QUICHE use the QUICHE_DLOG macro. In standalone quiche, these all either go to stderr, or are suppressed, based on the --stderrthreshold flag.
To send INFO level log messages to a file, you would therefore invoke
<binary> <args> > <logfile> 2>&1
Use the --helpfull flag for more.