Deprecated: Function libxml_disable_entity_loader() is deprecated since 8.0, as external entity loading is disabled by default in /application/src/init.php on line 167

Deprecated: Return type of Qrequest::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 22

Deprecated: Return type of & Qrequest::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 25

Deprecated: Return type of Qrequest::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 31

Deprecated: Return type of Qrequest::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 35

Deprecated: Return type of Qrequest::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 38

Deprecated: Return type of Qrequest::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 88

Deprecated: Return type of Qrequest::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 91

Deprecated: Creation of dynamic property Qrequest::$cap is deprecated in /application/lib/qrequest.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /application/src/init.php:167) in /application/src/initweb.php on line 45

Warning: session_name(): Session name cannot be changed after headers have already been sent in /application/lib/redirect.php on line 46

Warning: session_cache_limiter(): Session cache limiter cannot be changed after headers have already been sent in /application/lib/redirect.php on line 47

Warning: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent in /application/lib/redirect.php on line 60

Warning: session_start(): Session cannot be started after headers have already been sent in /application/lib/redirect.php on line 75

Deprecated: Creation of dynamic property Qrequest::$p is deprecated in /application/lib/qrequest.php on line 42

Deprecated: Creation of dynamic property Qrequest::$paperId is deprecated in /application/lib/qrequest.php on line 42

Deprecated: Return type of PaperInfoSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/src/paperinfo.php on line 225

Deprecated: Creation of dynamic property PaperInfo::$timeFinalSubmitted is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$timeModified is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$sha1 is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$blind is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$leadContactId is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$shepherdContactId is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$capVersion is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$size is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$mimetype is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$timestamp is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$pdfFormatStatus is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$withdrawReason is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$conflictType is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$myReviewPermissions is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$topicIds is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$optionIds is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$paperTags is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$leadContactId is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$conflictType is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$paperTags is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$myReviewPermissions is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property CommentInfo::$reviewFirstName is deprecated in /application/src/commentinfo.php on line 59

Deprecated: Creation of dynamic property CommentInfo::$reviewLastName is deprecated in /application/src/commentinfo.php on line 59

Deprecated: Creation of dynamic property CommentInfo::$reviewEmail is deprecated in /application/src/commentinfo.php on line 59
#23 - Netdev 0x18

Deprecated: Return type of TagAnno::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/tagger.php on line 130

Deprecated: Return type of TagMap::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/tagger.php on line 299
More

PC conflicts

None

Submitted

Wireguard is one of the most common tunneling technologies used in Linux, thanks to its simplicity and excellent integration in the Linux kernel. Despite its widespread adoption, it proves to be unable to provide high-speed connectivity between two sites when adopting a standard single-tunnel configuration. This represents a significant limitation when a secure, high-speed interconnection is required e.g., between two remote clusters in the cloud. In fact, the capability to scale wireguard performance with the number of available CPU cores is somehow limited, even in presence of a software architecture that is intrinsically parallel.

In this talk we investigate the multi-core scalability properties of WireGuard, identifying current limitations and proposing an improved architecture which facilitates effective scaling, reaching a nearly linear throughput increase depending on the number of involved CPU cores. We first analyze the architecture of a single tunnel setup, underlining how, despite its capability to parallelize encryption and decryption stages, the presence of serial per-tunnel stages still imposes a limit on the use of additional resources. Hence, we attempt to spread flows over multiple tunnels, in order to also scale per-tunnel stages over multiple cores. Our analysis reveals how simply leveraging multiple tunnels can end up not scaling at all, due to a subtle NAPI poll functions “black hole” condition related to the use of the standard softirq-based NAPI. We overcome this limitation by enabling the threaded NAPI on WireGuard interfaces, however, despite being able to leverage all the resources of our nodes, the approach still shows far from linear performance improvement when increasing the number of allocated cores. To push things further we propose a modified architecture which, for each flow, handles all WireGuard stages inline, in a signal processing context on a single core, eliminating the costs of tasks and cache synchronization. This improved architecture, tailored for multi-tunnel support, shows an almost 2x performance improvement over a multi-tunnel deployment based on the vanilla WireGuard implementation, as well as being able to support 18x times the throughput of a single tunnel setup on our machines.

Our approach is not a one-size-fits-all solution, its main limitation currently being the inability to parallelize the en/decryption stages for a single flow, which might end up penalizing elephant flows. However, it provides an interesting starting point for further discussion and represents a first step towards a more scalable WireGuard architecture. For example, a mechanism could be designed that uses traffic patterns to dynamically determine the number of distinct tunnels needed. This would aim to use the fewest tunnels possible and adjust their allocation to associate each tunnel with a specific core, thereby also minimizing the number of cores used. Additionally, a hybrid solution could be considered. This would involve switching between the existing version of WireGuard and our modified module, thereby leveraging the strengths of both implementations.

M. Barone, F. Parola, F. Risso, D. Miola [details]

Mirco Barone (Politecnico di Torino) <mirco.barone.3@gmail.com>

Federico Parola (Politecnico di Torino) <federico.parola@polito.it>

Fulvio Risso (Politecnico di Torino) <fulvio.risso@polito.it>

Davide Miola (Politecnico di Torino) <davide.miola@polito.it>


Deprecated: Return type of DocumentInfo::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/src/documentinfo.php on line 951

Deprecated: Return type of ReviewField::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/src/review.php on line 161

Deprecated: Return type of ReviewForm::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/src/review.php on line 512

To edit this submission, sign in using your email and password.