GithubHelp home page GithubHelp logo

gfreewind / pppoeperf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ikuainetworks/pppoeperf

0.0 2.0 0.0 68 KB

It is performance test tool for PPPoE server

License: GNU General Public License v3.0

CMake 1.31% C++ 98.69%

pppoeperf's Introduction

pppoe_perf

PPPoEPerf is a pppoe server performance test tool.

Building

mkdir -p build
cd build
cmake ..
make
sudo make install

Usage

pppoe_perf -h

Allow options:  
  -h [ --help ]              print help messages  
  -c [ --config ] arg        config file  
  --resend-timeout arg (=20) Specify the resend timeout  
  --discovery                Only discover the PPPoE servers  
  --ppp-stage                Use ppp-stage  
  --terminate                Terminate the session directly  
  --summary                  Show the summary stats  
  • --resend-timeout
    the wait time out value after sending request packet to pppoe server
  • --discover
    only to send padi packet to pppoe server to get server info, not enter the session stage
  • --ppp-stage
    if you want test ppp session stage, you should use it
  • --terminate
    if you use this option, your test will not enter lcp, auth stage, after received a valid session id,
    send padt actively
  • --summary
    with this option you will see the performance result in a file named 'pppoe_perf.txt'

configure file

after you install pppoe_perf, you will find the configure file at the direcory /etc/pppoe_perf/conf.json

  {  
  		"interface"  : "eth0",  
  		"duration"   : 1000,  
        "padi-cnt"   : 1000,  
        "period"     : 60,  
        "log"        : "error",  
        "login-rate" : 100,  
  
        "account":{  
                "fgao_test"  :  "fgao123",  
                "zhang_test" :  "zhang_test"  
        }  
  }  
  • interface
    which interface to bind
  • duration
    how long the test will run
  • padi-cnt
    the pppoe users you are going to simulate
  • period
    user online period, after one user get an valid ip, it will keep sending udp packet to the internet, after the period seconds gone,
    the user will offline, and after double period time gone, the user will online again
  • login-rate
    how many simuate users send padi request every second
  • account
    the pppoe account and password

Author: Xiaopei Feng
Contact me: [email protected]
Copyright(C) 2016 ikuai8.com
PPPoEPerf software is distributed under GPL3 license and includes contributions from numberous individuals and organizations. Please see the COPYING and CONTRIBUTORS files for details.

pppoeperf's People

Contributors

gfreewind avatar xiaopeifeng avatar

Watchers

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