Hacker News new | ask | show | jobs
by tomstokes 4982 days ago
Summary: TCP throughput drops dramatically when packet loss is present. This technique uses forward error correction to compensate for packet loss, resulting in higher effective throughput over lossy links. Many WiFi and cellular connections are lossy, so this would be helpful in those cases.

They haven't improved the underlying link rate at all. In fact, the FEC overhead is going to reduce the effective link rate. However, in some edge-case high packet loss scenarios, the reduced packet loss will more than make up for the reduced effective link rate.

4 comments

Yep. This appears to be nothing more than FEC. Maybe they used LDPC or LDGM, which are superior to traditional Reed-Solomon codes.

I remember doing research on FEC codes back in 2003-2004 for developing a protocol for sending large files over satellite links to multicast recipients when I was working for SmartJog.

> I remember doing research on FEC codes back in 2003-2004 for developing a protocol for sending large files over satellite links to multicast recipients when I was working for SmartJog.

Interestingly, this tool looks like it is useful for the problem you describe:

http://www.udpcast.linux.lu/satellite.html

Yup. I remember looking at udpcast. I did not select it because, amongst other things, it did not support encryption. And I don't think we could use IPsec.
Soon we will see an article about how they turn blocks of file data into algebra to save disk space.
Help me out: Surely FEC over wireless can't be new. Why is this worth writing about?
http://en.wikipedia.org/wiki/Forward_error_correction#Low-de... implies that they are used in 802.11n (i have no idea what is new in this article)
I was thinking the exact same thing. Oh look, someone had discovered forward error correction.

Now if they can compute a series of code blocks over a rolling set of data blocks, that would be new. It would be like singing a round of "Row Row Row your Boat" but in data packets, just waiting and you'll be able to figure out the packets that were dropped. Anyone know if this is what they did?

Wouldn't that be something like fountain codes?
yes and no. So typically low density parity codes (aka fountain codes) break up a 'chunk' into some number of data blocks and some number of code blocks. Depending on the number of code blocks (its a tradeoff between time and number of blocks) you get 'most' of the blocks back and you can reconstruct the data blocks.

Now you could code up a packet, break it up and then add code blocks, that works great for the packet, but if you don't get enough blocks from that set of blocks you have to resend the packet which is something you don't want to do.

So if instead you send say 3 data blocks and 2 code blocks and then start sending two data blocks and 1 code block and set it up (this is the part that would be impressive) so that the previous two code blocks and the current one could reconstruct the two datablocks you just sent. (re-using previously sent code blocks) My brain is wincing trying to imagine the kind of ECC code that would be, sort of like solving the ECC polynomials in two dimensions or something.

Any way, if you could do that, the outcome would be that you could continually send data and dropped packets would always be correctable by later packets received. I drew out a picture of what relationship the code blocks would need and its complicated. Say you did an 8x3 (8 data segments, 3 code segments, you send

    D01 D02 C01 D03 D04 C02 D05 D06 C03 D07 D08 
    C04 D09 D10 C05 D11 D12 C06 D13 D14 C07 D15
And you do the math such that over any 11 pieces of that you can recover the 8 data pieces. Including:

    D05 D06 C03 D07 D08 C04 D09 D10 C05 D11 D12
(see what I did there? Data segments from both parts and code blocks from both parts).

Anyway, that would be some nice math if its doable. And really game changing, it would mean you would get less bandwidth in a situation where there was no packet loss (you're injecting ECC data). But it also makes me wonder if you don't just fix the underlying wireless protocol to do this with the frames sent, why does it have to be at the TCP level?

I wonder what's so proprietary about their algorithm. I'd assume it's just Reed–Solomon coding on a UDP tunnel (or, alternatively, modifying TCP to accept partially mangled-packets if FEC is successful).
This could be demo'd very easily by gluing together:

udpcast (http://www.udpcast.linux.lu/satellite.html) -> Sends/receives files over UDP. Supports FEC.

netcat -> Join file I/O (from udpcast) to local TCP/UDP sockets

openvpn / iptables userspace -> Provide connection routing.

Seems like an evenings work.

Edit: udpcast might not be suitable for this. I am surprised noone has already built a simple UDP FEC tunnel program...

So, "benchmarks very favorable in mostly artificial scenario".
I don't know what the Wi-Fi is like at your home or business, but packet loss is actually really common on my University's wireless network. I wouldn't call this scenario artificial at all.