blob: b50c715a888f6610c3346ec30e71ab273ffe8f83 [file] [log] [blame]
John DeNiscoc96d6182019-11-06 10:58:28 -08001.. _hoststack:
2
Nathan Skrzypczak9ad39c02021-08-19 11:38:06 +02003==========
4Host Stack
5==========
John DeNiscoc96d6182019-11-06 10:58:28 -08006
7VPPs host stack leverages VPPs graph based forwarding model and vectorized packet
8processing to ensure high throughput and scale transport protocol termination. It
9exposes apis that apart from allowing for efficient user-space app consumption and
Nathan Skrzypczak9ad39c02021-08-19 11:38:06 +020010generation of data, also enables highly efficient local inter-app communication.
11
12At a high level VPPs host stack consists of 3 major components:
John DeNiscoc96d6182019-11-06 10:58:28 -080013
14* A session layer that facilitates interaction between transport protocols and applications
15* Pluggable transport protocols, including TCP, QUIC, TLS, UDP
16* VCL (VPPComs library) a set of libraries meant to ease the consumability of the stack from application perspective
Nathan Skrzypczak9ad39c02021-08-19 11:38:06 +020017
John DeNiscoc96d6182019-11-06 10:58:28 -080018All of these components were custom built to fit within VPPs architecture and to
19leverage its speed. As a result, a significant amount of effort was invested into:
20
Nathan Skrzypczak9ad39c02021-08-19 11:38:06 +020021* building a transport pluggable session layer that abstracts the interaction between applications and transports using a custom-built shared memory infrastructure. Notably, this also allows for transport protocols that are typically implemented in applications, like QUIC and TLS, to be implemented within VPP.
22* a clean slate TCP implementation that supports vectorized packet processing and follows VPPs highly scalable threading model. The implementation is RFC compliant, supports a high number of high-speed TCP protocol features and it was validated using Defensics Codenomicon 1M+ tests suite.
23* VCL, a library that emulates traditional asynchronous communication functions in user-space, all while allowing for new patterns to be developed, if needed.
John DeNiscoc96d6182019-11-06 10:58:28 -080024* implementing a high performance cut-through communication mode that enables applications attached to vpp to transparently exchange data over shared memory without incurring the extra cost of a traditional transport protocol. Testing has shown this to be much more efficient than traditional inter-container networking.
25
26For developer features press next.