Coder Social home page Coder Social logo

ypcd / forwarder-go Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 60 KB

A high-performance network forwarder developed in go language

License: GNU General Public License v3.0

Go 98.24% Batchfile 0.62% Shell 1.15%
forwarder go golang high-performance network

forwarder-go's Introduction

forwarder-go

A high-performance network forwarder developed in go language.

forwarder-go is a high-performance network forwarder developed in go language.

Support tcp protocol.

Adopt the csp concurrency model, the net library in the go language standard library.

The coroutine pool technology is adopted to greatly reduce the number of coroutines and memory usage.

Supported operating systems: windows, linux, macos

Performance:

qps: more than 40000/s

(10 million connections, single connection data volume 4Kbytes)

Throughput: more than 1000Mbytes/s

(Single connection data volume 1Gbytes)

illustrate:

To further improve the network performance of forwarder-go, it is necessary to use lower-level network technologies such as zero copy or DPDK.

In the short term, forwarder-go will not adopt such underlying network technology.

If you want to adopt the above-mentioned underlying network technology, you will use c/c++ or rust as the development language.

test environment:

ubuntu 22.04.2

Intel i5 1135g7 2.4GHz

4 cores 4 threads without hyperthreading

New features that will be added:

support udp protocol

Support load balancing

access control (ip)

network speed limit

forwarder-go's People

Contributors

ypcd avatar

Watchers

 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.