]> Cypherpunks.ru repositories - nncp.git/blob - doc/usecases/qos.texi
8089888063afed0dbec422d0aa1e074549106c99
[nncp.git] / doc / usecases / qos.texi
1 @node UsecaseQoS
2 @section Slow/expensive link for high-volume data, bad QoS
3
4 Assume that you can give your relatively cheap 2 TiB removable hard
5 drive to someone each day at the morning (and take it back at the
6 evening). This equals to 185 Mbps good quality (without any speed
7 degradation) link in single direction. What about more and bigger hard
8 drives? This type of data exchange is called
9 @url{https://en.wikipedia.org/wiki/Sneakernet, sneakernet}/floppynet.
10
11 NNCP allows traffic @ref{Niceness, prioritizing}: each packet has
12 niceness level, that will guarantee that it will be processed earlier or
13 later than the other ones. Nearly all commands has corresponding option:
14
15 @example
16 $ nncp-file -nice FLASH myfile node:dst
17 $ nncp-xfer -nice PRIORITY /mnt/shared
18 $ nncp-call -nice NORMAL bob
19 [@dots{}]
20 @end example
21
22 Huge files could be split on smaller @ref{Chunked, chunks}, giving
23 possibility to transfer virtually any volumes using small capacity
24 storages.
25
26 You can also use CD-ROM and tape drives:
27
28 @example
29 $ nncp-bundle -tx bob | cdrecord -tao -
30 $ nncp-bundle -tx bob | dd of=/dev/sa0 bs=10240
31 @end example