GithubHelp home page GithubHelp logo

cloudwpa-sim's Introduction

======================================================================== README for Intel(R) sim Package

February 2018

Contents

Contains source modules for simulated components which are used for test purposes - WAG-simulator, VNF-delay-simulation

Overview

This application can be used at three way

  1. GRE and Forwarding (WAG simulator). option: --mode gre-and-fwd In this mode all packeges come from first PHY interface (VNF-D) will decapsulated and sent to second PHY interface (to internet for example), all pactes came from second phy interface will encapulated to GRE tunnel and sent to first PHY interface. For work in this mode your must setup MAC address of output interface in the function pkt_for_iperf.

  2. Loopback. option: --mode loopback In this mode all packets will returned to interface after swap MAC and IP addresses

  3. Delay simulator. option: --mode delay In this mode all packets wait some time before send. Work like WAG simulator, but have additional pause.

How to build

For build your must define environment variable RTE_SDK - path to your DPDK run make

How to run

This module can be used in 3 seperate modes as a simulator.

  • WAG simulator to swap MAC addresses and loopback packets.
  • Wag simulator to GRE encap/decap and forward packets.
  • Delay simulator to delay packets for time period based on IP address.

run it by following the usage message. Below are some example commands.

./build/rwpa_test_sim -c 0xe0 -w 05:00.1 -w 05:00.2 --socket-mem 256 --file-prefix fakeapp -- -p 0x3 --mode gre-and-fwd

./build/rwpa_test_sim -c 0xe0 -w 05:00.1 --socket-mem 256 --file-prefix fakeapp -- -p 0x1 --mode loopback

./rwpa_test_sim -c 0xc -w 00:0a.0 -w 00:0b.0 --socket-mem 1024 --file-prefix delayAB -- -p 0x3 --mode delay --delay-a 100000 --delay-b 50000 --ip-b 192.168.1.103 --delay-noneip 192.168.1.121

Legal Disclaimer

THIS SOFTWARE IS PROVIDED BY INTEL"AS IS". NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS ARE GRANTED THROUGH USE. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE, INTEL ASSUMES NO LIABILITY WHATSOEVER AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.

cloudwpa-sim's People

Contributors

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