Git Product home page Git Product logo

donaldh / cndp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudnativedataplane/cndp

0.0 1.0 0.0 2.82 MB

Cloud Native Data Plane (CNDP) is a collection of user space libraries to accelerate packet processing for cloud applications.

License: BSD 3-Clause "New" or "Revised" License

Shell 0.75% C++ 0.13% Python 0.20% C 89.46% Go 5.22% Rust 2.55% Makefile 0.06% Dockerfile 0.07% Meson 1.38% Jinja 0.17%

cndp's Introduction

CNDP - Cloud Native Data Plane

Overview

Cloud Native Data Plane (CNDP) is a collection of userspace libraries for accelerating packet processing for cloud applications. It aims to provide better performance than that of standard network socket interfaces by taking advantage of platform technologies such as Intel(R) AVX-512, Intel(R) DSA, CLDEMOTE, etc. The I/O layer is primarily built on AF_XDP, an interface that delivers packets straight to userspace, bypassing the kernel networking stack. CNDP provides ways to expose metrics and telemetry with examples to deploy network services on Kubernetes.

CNDP Consumers

  • Cloud Network Function (CNF) and Cloud Application developers: Those who create applications based on CNDP. CNDP hides the low-level I/O, allowing the developer to focus on their application.

  • CNF and Cloud Application consumers: Those who consume the applications developed by the CNF developer. CNDP showcases deployment models for their applications using Kubernetes.

CNDP Characteristics

CNDP follows a set of principles:

  • Functionality: Provide a framework for cloud native developers that offers full control of their application.

  • Usability: Simplify cloud native application development to enable the developer to create applications by providing APIs that abstract the complexities of the underlying system while still taking advantage of acceleration features when available.

  • Interoperability: The CNDP framework is built primarily on top of AF_XDP. Other interfaces, such as memif, are also supported, however building on AF_XDP ensures it is possible to move an application across environments wherever AF_XDP is supported.

  • Portability/stability: CNDP provides ABI stability and a common API to access network interfaces.

  • Performance: Take advantage of platform technologies to accelerate packet processing or fall-back to software when acceleration is unavailable.

  • Observability: Provide observability into the performance and operation of the application.

  • Security: Security for deployment in a cloud environment is critical.

CNDP background

CNDP was created to enable cloud native developers to use AF_XDP and other interfaces in a simple way while providing better performance as compared to standard Linux networking interfaces.

CNDP does not replace DPDK (Data Plane Development Kit), which provides the highest performance for packet processing. DPDK implements user space drivers, bypassing the kernel drivers. This approach of rewriting drivers is one reason DPDK achieves the highest performance for packet processing. DPDK also implements a framework to initialize and setup platform resources i.e. scanning PCI bus for devices, allocating memory via hugepages, setting up Primary/Secondary process support, etc.

In contrast to DPDK, CNDP does not have custom drivers. Instead it expects the kernel drivers to implement AF_XDP, preferably in zero-copy mode. Since there are no PCIe drivers, there's no PCI bus scanning, and does not require physically contiguous and pinned memory. This simplifies deployment for cloud native applications while gaining the performance benefits provided by AF_XDP.

CNDP notable directories

The following shows a subset of the directory structure.

.
├── ansible                   # Ansible playbook to install in a system(s)
├── containerization          # Container configuration and setup scripts for Docker/K8s
├── doc                       # Documentation APIs, guides, getting started, ...
├── examples                  # Example applications to understand how to use CNDP features
├── lang                      # Language bindings and examples
│   ├── go                    # Go Language bindings to CNDP and tools (WIP)
│   └── rs                    # Rust Language bindings for CNDP/Wireguard (WIP)
├── lib                       # Set of libraries for building CNDP applications
│   ├── cnet                  # Userspace network stack
│   ├── common                # Libraries used by core and applications libraries
│   ├── core                  # Core libraries for CNDP
│   ├── include               # Common headers for CNDP and applications
│   └── usr                   # User set of libraries that are optional for developer
├── test                      # Unit test framework
│   ├── common                # Common test code
│   ├── fuzz                  # Fuzzing (WIP)
│   └── testcne               # Functional unit testing application
├── tools                     # Tools for building CNDP
│   └── vscode                # Configuration files for vscode
└── usrtools                  # Tools for users
    ├── cnectl                # Remote CLI for CNDP applications
    └── txgen                 # Traffic Generator using AF_XDP and CNDP

cndp's People

Contributors

anatolyburakov avatar elzamath avatar jeffreybshaw avatar keithwiles avatar manojgop avatar maryamtahhan avatar nwaples avatar sushmasi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.