GithubHelp home page GithubHelp logo

tofino-pint's Introduction

Running PINT on the Tofino ASIC

This repository contains code to run PINT in the Tofino ASIC.

The repository only includes the data plane part of PINT for Tofino, and does not explain how to process the generated telemetry data at the controller.

Table of contents

Requirements

This project requires an installed and set up Tofino switch.

During development, a Stordis BF2556X-1T was used with SDE version 8.9.2.

A single switch is used to emulate multiple switching running PINT.
This is achieved through external loopback, requiring cabling according to the link configuration section

Running PINT

  1. Compile the PINT code
  2. Start the PINT program on the Tofino
  3. Configure the Tofino ports, which in our case are these rules
  4. Start the switch CPU component using start_switch_cpu.sh
  5. Inject packets from the switch CPU using pktgen.py

The injected packets will be processed by PINT, and the controller should print the raw generated output

Link configuration

During development, our Tofino had links connected according to the following image:

Tofino link configuration

Topology

This is the topology used during development of PINT on the Tofino:

Tofino current topology

Traffic is sent by pktgen.py from h0(10.0.0.101) towards h1(10.0.0.102), with each switch running the pint.p4 pipeline.

The last hop, i.e. the PINT sink, will send the telemetry data down to the switch CPU

tofino-pint's People

Contributors

jonlanglet 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.