When a validator becomes a leader, there's a significant drop in TPS as numerous clients attempt to establish connections. This decline stems from Quinn's limited capacity to manage active connections simultaneously, leading to swift evictions of older connections. Moreover, connection retries exacerbate the issue.
Proposed Solution
To enhance packet ingestion throughput, we propose leveraging AF_XDP to retrieve raw packets to userspace and implementing a lightweight, robust UDP stack, along with a QUIC library such as tquic.
AF_XDP circumvents traditional network stack overhead, resulting in reduced latency and improved throughput.
Additionally, to accommodate the increased throughput from userspace packet processing, it may be necessary to introduce multithreading to the sigverify stage, ensuring prompt transaction passage to execution.
Problem
When a validator becomes a leader, there's a significant drop in TPS as numerous clients attempt to establish connections. This decline stems from Quinn's limited capacity to manage active connections simultaneously, leading to swift evictions of older connections. Moreover, connection retries exacerbate the issue.
Proposed Solution
To enhance packet ingestion throughput, we propose leveraging AF_XDP to retrieve raw packets to userspace and implementing a lightweight, robust UDP stack, along with a QUIC library such as tquic.
AF_XDP circumvents traditional network stack overhead, resulting in reduced latency and improved throughput.
Additionally, to accommodate the increased throughput from userspace packet processing, it may be necessary to introduce multithreading to the sigverify stage, ensuring prompt transaction passage to execution.