[Live-devel] simulate RTP packet loss
Nikolai Vorontsov
nikolai.vorontsov at quadrox.be
Fri Sep 7 00:22:44 PDT 2012
Hello Andy,
You better use the tool specifically designed for it: WanEm
http://wanem.sourceforge.net/
There you can simulate packet loss, reordering, duplication, etc...
Nikolai
-----Original Message-----
From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Andy Stevens
Sent: Wednesday, September 05, 2012 9:25 PM
To: live-devel at ns.live555.com
Subject: [Live-devel] simulate RTP packet loss
Hi all,
I would like to simulate packet loss of RTP packets on the network, and
I would like to use Live555 to do this. In fact, there already is some
code in MultiFramedRTPSink (in the
MultiFramedRTPSink::sendPacketIfNecessary() function) which is contained
in a "TEST_LOSS" macro, and is hardcoded to simulate 10% loss:
#ifdef TEST_LOSS
if ((our_random()%10) != 0) // simulate 10% packet loss #####
#endif
I would like to do some more sophisticated testing (e.g. change the
packet loss to 5% or 25%). What is the "right" way to do this? Ideally
I would subclass MultiFramedRTPSink and then override the
sendPacketIfNecessary() function. But sendPacketIfNecessary() is
declared as "private" and so I cannot override.
How best to simulate the packet loss without modifying the Live555 code
directly?
Regards,
--Andy Stevens
New York, USA
_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
More information about the live-devel
mailing list