Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: virtual socket and stream #107

Merged
merged 8 commits into from
Jan 8, 2024
Merged

Conversation

giangndm
Copy link
Contributor

@giangndm giangndm commented Jan 5, 2024

This PR implement virtual socket and stream service, which can be used in tunnel application.
The idea of this PR is we can create a virtual socket (UDP or TCP style) with network overlay.

Copy link

codecov bot commented Jan 5, 2024

Codecov Report

Attention: 40 lines in your changes are missing coverage. Please review.

Comparison is base (120cef3) 87.75% compared to head (2a7a324) 87.78%.

Files Patch % Lines
packages/services/virtual_socket/src/behavior.rs 62.50% 15 Missing ⚠️
...kages/services/virtual_socket/src/vnet/internal.rs 88.04% 11 Missing ⚠️
packages/integration_tests/src/virtual_socket.rs 92.30% 5 Missing ⚠️
packages/services/virtual_socket/src/handler.rs 71.42% 4 Missing ⚠️
...ges/services/virtual_socket/src/vnet/udp_socket.rs 94.44% 3 Missing ⚠️
packages/services/virtual_socket/src/vnet.rs 83.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #107      +/-   ##
==========================================
+ Coverage   87.75%   87.78%   +0.02%     
==========================================
  Files         117      126       +9     
  Lines       12986    13407     +421     
==========================================
+ Hits        11396    11769     +373     
- Misses       1590     1638      +48     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@giangndm
Copy link
Contributor Author

giangndm commented Jan 8, 2024

current version can tunnel tcp connection with good bandwidth:

❯ iperf3 -c 127.0.0.1 -p 18080
Connecting to host 127.0.0.1, port 18080
[  5] local 127.0.0.1 port 50392 connected to 127.0.0.1 port 18080
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  94.5 MBytes   791 Mbits/sec
[  5]   1.00-2.01   sec  90.2 MBytes   753 Mbits/sec
[  5]   2.01-3.01   sec  87.3 MBytes   733 Mbits/sec
[  5]   3.01-4.00   sec  90.0 MBytes   756 Mbits/sec
[  5]   4.00-5.00   sec  89.0 MBytes   749 Mbits/sec
[  5]   5.00-6.00   sec  92.5 MBytes   775 Mbits/sec
[  5]   6.00-7.00   sec  92.3 MBytes   773 Mbits/sec
[  5]   7.00-8.00   sec  90.4 MBytes   760 Mbits/sec
[  5]   8.00-9.00   sec  89.5 MBytes   750 Mbits/sec
[  5]   9.00-10.00  sec  89.8 MBytes   751 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -

may be quinn con be optimize for providing better speed

@giangndm giangndm marked this pull request as ready for review January 8, 2024 06:51
@giangndm giangndm merged commit 3fd17fa into 8xFF:master Jan 8, 2024
6 checks passed
@github-actions github-actions bot mentioned this pull request Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant