Re: looking for ideas about how to create a constant data stream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 30/05/2020 12:32, hw@xxxxxxxx wrote:

Hi hw,

I'm looking for a good way to create a constant data stream that will occupy a
bandwidth of about 2--5Mbit/sec between two remote hosts over the internet.  I
have full access to the hosts involved.

My first attempt to use scp to copy data from /dev/null on host A to /dev/null
on host B, but scp says '/dev/null: not a regular file'.  If something like
that would work, I would be able to limit the bandwidth of this transfer in
the router(s) involved so that it won't occupy all the bandwidth.

You can't read from /dev/null. You get nothing from it. You're better off using /dev/random, for example. That will give you a continuous stream of random bytes.

However, that's not the focus of this. You want a sustain a stream of packets between two hosts. You're better off using UDP for this. And a good tool for generating such packets would be "iperf". It can measure bandwidth between two nodes more accurately.

Regards,
Anand
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux