-
Notifications
You must be signed in to change notification settings - Fork 57
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
bwtest NAT support #47
base: master
Are you sure you want to change the base?
Conversation
• whitespace cleanup / harmonisation • const • some ordering without side effects • comments • correct type *_MAX constant
(cherry picked from commit 34ecd11)
still works: 58.1 Transmit rate = 202059kbps, PLR = 0.00%( 0.00%), RTT = 0.000s, Queue delay = 0.000s
some contributors use git implementations that utterly hose symlinks
(and on the wrong end of the connection)
because the latter can write to it
it now takes only the local port# to bind; the first sender “wins” and may use the “connection”
I’ve added This makes it possible to test asymmetric connections that are one-sided behind NAT. |
Check for parameter correctness in sender app.
Hi Ingemar,
1) Have you verified that the code works as intended with all the
proposed fixes ?
yes, I’m easily reaching the same bandwidth as without these
modifications on an 100 Mbit/s link and 200+ on Gbit links.
2) Is it possible to put all white space changes as a separate commit?,
it would make it easier to review the proposed changes.
They are separate commits, but you can also do:
git fetch origin pull/47/head:refs/pr/47 # to fetch the changes
git diff -w master..refs/pr/47 # to view ignoring WS changes
Since this PR is based on top of #46 maybe review+merge that first,
then this PR will be reduced to the necessities.
Thanks,
//mirabilos
--
Infrastrukturexperte • tarent solutions GmbH
Am Dickobskreuz 10, D-53121 Bonn • http://www.tarent.de/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
|
only variables of volatile sig_atomic_t type are signal-safe…
Hi |
On top of the changes in #46 this adds NAT support to the bandwidth tester:
sockaddr_in
is initialised withAF_UNSPEC
to signal it’s not fully initialised yetrecvfrom(2)
/recvmsg(2)
msg_name
and “records” that as outgoing feedback addressThis has been tested with the receiver on a public IPv4 and the sender behind NAT; it should also work with the sender behind multiple NATs as on Campus-IT PoC.
The totally inefficient and not-working NAT punching from the existing code has been removed as well.