NETSEND(1)
π NAME π
netsend β a speedy filetransfer and network diagnostic program π
(also, hi bestie, this is the NETSEND(1) manual page, ok let's go β¨)
π SYNOPSIS π
netsend [OPTIONS] PROTOCOL MODE { COMMAND | HELP }
π¦ DESCRIPTION π¦
π§ PROTOCOL
Protocol is one of
tcp, udp, udplite, dccp, sctp or tipc.
When you're using tipc, you also have to specify a socket type, like:
netsend tipc MODE -t SOCK_STREAM
periodt. no socket type, no vibes π«Ά
π§ MODE
Mode is either receive or transmit. that's it. that's the whole mood.
β¨ OPTIONS β¨
-r Nn,Nd,Nm,Nfβ round trip probes options, the whole little family π:Nnβ number of iterations of round trip probes. Default is to perform10attempts. Don't set to less then5because measurement results will not very predicating. (their words, not mine π)Ndβ size of rtt payload. This is the number of bytes piggybacking (plus the netsend rtt header). Default is500byte, maybe your mtu minus netsend header minus protocol header (tcp,udp) will better fit for your needs.Nmβ for the round trip time probes netsend calculates a deviation. With this flag you can adjust the filter. Default is4. Lower values drain more probes out, so be carefully with this option.
For example: if you have measured rtt probes of 4, 5, 5, 6 and 15 ms. The average is 7. Covariance is 16.4 and deviation is 4.04. If you select 2 here as the multiplier, then you filter all rtt probes with higher values then 8.08 (for this example you filer 15ms out).
This will help to discard some nonesense probes who are evoked through cold code paths (cache misses, page faults, ...) or network anomalies. Use this option carefully! π₯
-fβ forces to don't perform rtt probes but takeNmilliseconds as average value. With this option you can figure out the behaviour of satelite links (e.g you say-D500f)
-bβ followed by a number: sets read/write buffer size to use. Default is8192for read/write andsize_of_file_to_sendfor mmap/sendfile.-mβ followed by amemadvise(2)option:normal,sequential,random,willneed,dontneed,noreuse.-pβ followed by a number: set TCP/UDP/DCCP/SCTP port to use. Default is6666. π (yes really)-Pβ followed by scheduling policy:sched_rr,sched_fifo,sched_batchorsched_other-sβ followed by asetsockopt(2)optname and optval. netsend maps setsockopt levels and optlen internally. runningnetsend -s listwill print a list of all setsockopt optnames currently recognized by netsend.-Tβ followed by eitherhumanormachine: sets output format-uβ followed by the transmit function to use. One ofsendfile,mmap,spliceorrw. When not specified,rw(read/write) is used.
Note that not all protocols support all transfer methods, e.g. TIPCs connectionless sockets (SOCK_RDM and SOCK_DGRAM) do not support the sendfile system call. Also, the amount of data that can be sent in a single operation may be limited by the network protocol used.
πΈ EXAMPLES πΈ
Listen for incoming SCTP connections, incoming data goes to stdout:
./netsend -T human -v stressful sctp receive
Send file largefile via TCP with output in machine parseable format:
./netsend -T machine tcp transmit largefile host.example.org
Receive data via TCP with MD5SIG from peer 10.0.0.1:
./netsend tcp transmit -C largefile ffff::10.0.0.1 ./netsend tcp
receive -C ffff::10.0.0.1
π EXIT STATUS π
netsend returns a zero exist status if it succeeds. Non zero is returned in case of failure. Following failure codes are implemented:
0 - succeed
1 - failure in memory handling
2 - command line option error
3 - failure which fit in any categories
4 - network error
5 - failure in netsend header (maybe corrupted hardware)
6 - netsend internal error (should never happen[tm])
ok so0= slay, anything else = we're crying π and6should literally never happen (the[tm]is doing a lot of heavy lifting there ngl)
π AUTHOR π
Hagen Paul Pfeifer Florian Westphal
π¦ SEE ALSO π¦
and that's the whole page bestie π«Ά this was netsend (yeah, NETSEND(1), same thing) as rendered by perl v5.36.0 β go forth and transfer files speedily β¨π
π¦ where this page comes from
- debian bookworm: netsend 0.0~svnr250-1.5
- debian trixie: netsend 0.0~svnr250-1.5
- ubuntu noble: netsend 0.0~svnr250-1.5
- ubuntu questing: netsend 0.0~svnr250-1.5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms