Giter VIP home page Giter VIP logo

p4simulator's Introduction

Welcome to the P4Simulator wiki!

P4Simulator is a P4-driven network simulator aiming at combining P4, the state-of-the-art programmable data plane language and ns-3, one of the most popular network simulators. P4Simulator is now being developed by students at NetArch Lab at Tsinghua University. P4Simulator is an open-source project under Apache License 2.0

For a new beginner to get started, one should follow the instructions.

  1. P4Simulator Overview
  2. Build and Install P4Simulator
  3. A Hands-on Example

We are longing for contributions. See How to Contribute for details.

p4simulator's People

Contributors

dpatrickx avatar kphf1995cm avatar tsinghua-yuhs15 avatar zx3xyy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

p4simulator's Issues

Parse ActionData ERROR

Hi, I have run the NS4 with no error in original example "p4simulator-large-scale". However, after I added a new table and action, I cannot install the new table sqy_table successfully. So, I inserted "NS_LOG_ERROR" to your source code in the file "p4-switch-interface.cc" as below:

if (m_p4Model->mt_add_entry(0, parms[1], matchKey, parms[2], actionData, &handle, priority) != bm::MatchErrorCode::SUCCESS)
     {
             NS_LOG_ERROR("Parse ActionData ERROR");
             throw P4Exception(NO_SUCCESS);
      }

And I found the function "mt_add_entry" cannot be executed successfully. Some information in my /tmp/p4.log are shown below:

TABLE_SET_DEFAULT:table_set_default sqy_table _drop
TABLE_ADD:table_add sqy_table set_port 0x00000000 => 0x1
Parse ActionData from index:5
Parse ActionData ERROR
Calling target program-options parser
NO_SUCCESS
exception entry: table_add sqy_table set_port 0x00000000 => 0x1
TABLE_ADD:table_add sqy_table set_port 0x00000001 => 0x0
Parse ActionData from index:5
Parse ActionData ERROR
NO_SUCCESS

I do not know how to solve this problem.
Looking forward to your reply, sincerely.

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.