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: [email protected]
[mailto:[email protected]] On Behalf Of Andy Stevens
Sent: Wednesday, September 05, 2012 9:25 PM
To: [email protected]
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
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to