Skip to content
forked from Ehco1996/ehco

ehco is a network relay tool and a typo :)

License

Notifications You must be signed in to change notification settings

Monster-Release/ehco

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ehco

ehco is a echo proxy and a typo

主要功能

  • tcp/udp relay
  • 从配置文件启动
  • 从远程启动
  • benchmark

TODO

  • 热重载配置

BenchMark

iperf:

# run iperf server on 5201
iperf3 -s

# run relay server listen 1234 to 9001 (raw)
go run cmd/main.go -l 0.0.0.0:1234 -r 0.0.0.0:5201

# listen 1234 relay over ws to 1236
go run cmd/main.go -l 0.0.0.0:1234  -r ws://0.0.0.0:1236 -tt ws

# listen 1236 through ws relay to 5201
go run cmd/main.go -l 0.0.0.0:1236 -lt ws -r 0.0.0.0:5201

# benchmark tcp
iperf3 -c 0.0.0.0 -p 1234

# benchmark upd
iperf3 -c 0.0.0.0 -p 1234 -u -b 1G --length 1024
iperf raw relay(raw)
tcp 62.6 Gbits/sec 23.9 Gbits/sec
udp 1.38 Gbits/sec 1.0 Gbits/sec

About

ehco is a network relay tool and a typo :)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 68.4%
  • JavaScript 13.4%
  • HTML 12.3%
  • Shell 3.8%
  • TypeScript 1.2%
  • Makefile 0.8%
  • Dockerfile 0.1%