Qt-interest Archive, July 2007
Re: Qt-Traffic-Generator
Message 1 in thread
Alexander Carôt wrote:
> Someone said also with regular PCs it should be possible to generate up tp 100 Mbps.
Probably much more than that, depending on the OS, hardware
capabilities, how complex the packets you're generating are and what
method you use to generate/send them.
That's all information you should have supplied in your initial post,
along with things like your Qt version.
> Can anyone tell how to do this. Would I need to use more sockets i.e. ?
Well, how are you generating your packets?
QUdpSocket?
QTcpSocket?
QAbstractSocket etc?
A lower level OS mechanism to hand-craft packets? (if so, which OS and
which one?)
Also, what're you sending them on? I'm assuming by your mention of
100Mb/s that you're probably trying for link-local switched fast
ethernet only, but that's far from a safe assumption. If you're trying
to do something like TCP/IP (especially over more complex networks) then
you have to think about window sizes, network latency etc not just your
machine's raw ability to spit out packets.
How are you scheduling packet sending? With timers or busy-waiting you
need to think about clock and scheduler resolution.
--
[ signature omitted ]