From: "Justin Todd" Date: Mon, 28 Nov 2005 19:23:58 +0000 Subject: [LARTC] Wireless links + Realtime video >= Headache! (long queue Message-Id: <00c301c5f451$47f89950$c901a8c0@jtwin> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1579249276==" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. --===============1579249276== Content-Type: multipart/alternative; boundary="----=_NextPart_000_00C0_01C5F40E.398A6DA0" This is a multi-part message in MIME format. ------=_NextPart_000_00C0_01C5F40E.398A6DA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello LARTC gurus. I'm new to this list and have a mind boggling problem = that I cannot resolve. Let me describe my problem: We have a custom built wireless camera comprised of an IP encoder and a = BitsyX running Linux. It communicates to an antenna unit (Bitsyx) which = plugs into a Windows machine with a digitial video recorder: [IP Video Encoder] -> [Linux Box 1] - 2Mbit Wireless Link -> [Linux Box = 2] -> [Digital Video Recorder running on XP] Realtime H.263 Video (UDP) flows from the encoder to the DVR at = 500kbit/sec peak. (avg is about 275-300). There is also a bit of = sporatic 2-way TCP communication. Both linux boxes do SNAT and DNAT using iptables. Under normal = conditions this scenario works reasonably well (despite the fact that = its a bit slow.) ***Problem: When bit errors on the wireless link occur, video will get = jerky and get behind (sometimes as much as 20 seconds!) and then = suddenly the video will appear to go in fast foward and catch up again! = This is clearly unacceptable for realtime video! We would rather lose = the occassional packet then have it get behind. QUESTIONS: 1) will doing SNAT twice on a UDP video stream cause considerable or = negligable delay? 2) Is there a way to tell the kernel to drop a packet if its not = delievered within an acceptable period of time? 3) How can you optimize your TCP stack for realtime video? ------=_NextPart_000_00C0_01C5F40E.398A6DA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello LARTC gurus. I'm new to this list = and have a=20 mind boggling problem that I cannot resolve.  Let me describe my=20 problem:
 
We have a custom built wireless=20 camera comprised of an IP encoder and a BitsyX running Linux. = It=20 communicates to an antenna unit (Bitsyx) which plugs into a Windows = machine=20 with a digitial video recorder:
 
[IP Video Encoder] -> [Linux Box 1] = - 2Mbit=20 Wireless Link -> [Linux Box 2] -> [Digital Video Recorder running = on=20 XP]
 
Realtime H.263 Video (UDP) flows from = the encoder=20 to the DVR at 500kbit/sec peak. (avg is about 275-300). There is also a = bit of=20 sporatic 2-way TCP communication.
 
Both linux boxes do SNAT and DNAT using = iptables.  Under normal conditions this scenario works reasonably = well=20 (despite the fact that its a bit slow.)
 
***Problem: When bit errors on the = wireless link=20 occur, video will get jerky and get behind (sometimes as much as 20 = seconds!)=20 and then suddenly the video will appear to go in fast foward and catch = up again!=20 This is clearly unacceptable for realtime video! We would rather lose = the=20 occassional packet then have it get behind.
 
QUESTIONS:
 
1) will doing SNAT twice on a UDP = video stream=20 cause considerable or negligable delay?
2) Is there a way to tell the kernel to = drop a=20 packet if its not delievered within an acceptable period of = time?
3) How can you optimize your TCP stack = for realtime=20 video?
 
 
------=_NextPart_000_00C0_01C5F40E.398A6DA0-- --===============1579249276== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1579249276==--