GithubHelp home page GithubHelp logo

connlan / udpcopy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wangbin579/udpcopy

0.0 2.0 0.0 380 KB

It can copy udp requests for real testing

License: Other

Shell 0.03% C 97.02% C++ 2.95%

udpcopy's Introduction

Name:
    udpcopy
    It is an online UDP duplication tool and can be used for testing


Description:
    It can help you find bugs without deploying your server software on your production servers.It can also be used to do smoke testing against your products.


Scenarios:
    1) Distributed stress testing
       Use udpcopy to copy real-world data to stress test your server software. Bugs that only can be produced in high-stress situations can be found.

    2) Hot backup

    3) Online testing
       Prove the new system is stable and find bugs that only occur in the real world.

    4) Benchmark


Usage:
    1) Install
       a) download the source code from github:
          git clone http://github.com/wangbin579/udpcopy
       b) sh autogen.sh
       c) ./configure
       d) make
       e) make install

    2) Run:
       a) on the source host (root privilege is required):
          ./udpcopy -x local_port-remote_ip:remote_port 
 
       b) on the target host 
          iptables -I OUTPUT -p udp --sport port -j QUEUE # if not set

Note:
    1) It is tested on Linux only (kernal 2.6 or above).
    2) Udpcopy may lose packets hence lose requests.
    3) Udpcopy is single-threaded now.
    4) Root privilege is required.
    5) Check error.log if you encounter some problems and feel free to report it to us([email protected]).

udpcopy's People

Contributors

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