Code Monkey home page Code Monkey logo

nanopu-sim's Introduction

Overview

This repository contains a SimPy behavioral model of the nanoPU P4 L-NIC architecture.

Running the Simulation

$ ./main.py --config config.json

Configuration

The simulation parameters are in config.json. Here is an example:

{
  "out_dir": "out",
  "transport_protocol": "ndp",
  "num_messages": 1,
  "message_size": "fixed",
  "message_size_value": 10,
  "rtt_pkts": 10,
  "data_pkt_trim_prob": [0],
  "max_pkt_len": 100,
  "min_message_size": 10,
  "max_message_size": 10000,
  "rx_link_rate": 100,
  "tx_link_rate": 100,
  "reassemble_max_messages": 100,
  "packetize_max_messages": 100,
  "sample_period": 500,
  "timeout_ns": 10000,
  "max_num_timeouts": 5,
  "cpu_tx_rate": 100,
  "ctrl_pkt_delay": "fixed",
  "ctrl_pkt_delay_value": 1000,
  "data_pkt_delay": "fixed",
  "data_pkt_delay_value": 1000
}

At least one parameter value must be a list. Using the above configuration file will result in 3 simulation runs. Each run will use a different value for the "data_pkt_trim_prob" parameter. run-0, run-1, and run-2 will use "data_pkt_trim_prob" = 0, 0.2, and 0.4, respectively. Any simulation logs will be written to directory out/.

NanoPU P4 L-NIC Architecture Implementation

The architecture implementation is in ./nanoPU_sim.py.

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.