4 ms·
In college I only had one group project, which scandalized me but apparently lots of others found this normal. We had to fire UDP packets over the network and f
by hinkley 7y ago
In college I only had one group project, which scandalized me but apparently lots of others found this normal. We had to fire UDP packets over the network and feed them to an MJPeG card. You got more points based on the quality of the video stream.
My very industrious teammate did 75% of the work (4 man team, I did 20%, if you are generous with the value of debugging). One of the things we/he tried was to just drop packets that arrived out of order rather than reorder them. Turned out the reordering logic was reducing framerates. So he ran some trials and looked at OOO traffic, and across the three or so routers between source and sink he never observed a single packet arriving out of order. So we just dropped them instead and got ourselves a few more frames per second.
- pantalaimon 7y agoTbh that's what most real time video/audio applications will do. Reordering adds latency and that is worse than the occasional dropped frame.
- MrLeap 7y agoI can drop a frame, I can't casually drop misordered packets. It takes many packets to build a frame. I have to reorder interframe packets (actually I just insert-in-order). If I drop packets, I get data scrolling like a busted CRT raster. I'm using a KoalaBarrel. Koalas receive envelopes full of eucalyptus leaves. Koalas have to eat their envelopes in order. First koala to get his full subscription becomes fat enough to crush all the koalas beneath him. Keep adding koalas. Disregard letters addressed to dead koalas.
- shawnz 7y agoNot saying this is the ideal solution, but you could just drop any frame that contains any out of order packets. If an out of order packet arrives, just drop the current frame and start ignoring packets until you find the start of another frame.
- madddiagnosis 7y agoThis is very dependent on the frame in question, iframes are much more valuable than p/b frames. If you get unlucky with dropped frames you can end up showing a lot of distorted nonsense to the end user.