Giter VIP home page Giter VIP logo

dpi_library's Introduction

DPI: The Data Processing Interface for Modern Networks

Abstract

As data processing evolves towards large scale, distributed platforms, the network will necessarily play a substantial role in achieving efficiency and performance. Increasingly, switches, network cards, and protocols are becoming more flexible while programmability at all levels (aka, software defined networks) opens up many possibilities to tailor the network to data processing applications and to push processing down to the network elements.
In this paper, we propose DPI, an interface providing a set of simple yet powerful abstractions flexible enough to exploit features of modern networks (e.g., RDMA or in-network processing) suitable for data processing. Mirroring the concept behind the Message Passing Interface (MPI) used extensively in high-performance computing, DPI is an interface definition rather than an implementation so as to be able to bridge different networking technologies and to evolve with them. In the paper we motivate and discuss key primitives of the interface and present a number of use cases that show the potential of DPI for data-intensive applications, such as analytic engines and distributed database systems.

Examples

Examples can be found in the src/test/examples/ folder.

Simple example of appending to a buffer:

  string buffer_name = "buffer";
  char data1[] = "Hello ";
  char data2[] = "World!";
  int rcv_node_id = 1; //ID is mapped to a concrete node in cluster spec
  DPI_Context context;
  DPI_Init(context); 
  DPI_Create_buffer(buffer_name, rcv_node_id, context);
  DPI_Append(buffer_name, (void*)data1, sizeof(data1), context);
  DPI_Append(buffer_name, (void*)data2, sizeof(data2), context);
  DPI_Close_buffer(buffer_name, context);

  size_t buffer_size;
  void* buffer_ptr;
  DPI_Get_buffer(buffer_name, buffer_size, buffer_ptr, context);

  for(size_t i = 0; i < buffer_size; i++)
  {
    cout << ((char*)buffer_ptr)[i];
  }
  DPI_Finalize(context);

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.