Live data from Hacker News

Ultrafast single TCP packet audio/visual experience

github.com

61–70 of 79 posts

Re: Ultrafast single TCP packet audio/visual experience

#61

Earlier quoted context omitted.

IP header has flexible size, up to 60 bytes: https://networkengineering.stackexchange.com/questions/6855/...

Sure but on the actual internet how often are IP headers larger than 20 bytes because options are turned on? Not very often. The 20 bytes each for TCP and IPv4 is a pretty good assumption. From the paper "IP Options are not an option" which is good quick read: "We have studied the dependability of IP options-enabled network packets in the Internet. We found that overall, approximately half of Internet paths drop pack…

Thanks, that's good to know. I've wondered if these options are used in the past.

Re: Ultrafast single TCP packet audio/visual experience

#68
post #7

http://packet.city/ summary: A demo scene page that is smaller than a single IP frame and uses some flags to avoid other round trips. view-source: http://packet.city/ The page itself and view-source only work on some browsers. Use wireshark etc to see what it actually does.

Wiresharked the thing. Here's the packet sequence it reported: -> DNS query A -> DNS query AAAA TCP SYN TCP ACK -> HTTP GET TCP ACK TCP FIN,ACK So, the full traffic is 14 packet, all small (DNS, TCP handshaking) except the one HTTP reply packet containing the full website.

It's still pretty sad that so many roundtrips are necessary...

One could imagine a merged DNS and TCP syn packet, which goes to a DNS server who converts it to a TCP packet, and gets forwarded to the origin server.

Re: Ultrafast single TCP packet audio/visual experience

#70
post #22

Earlier quoted context omitted.

Hm. I what the distribution of latency vs bandwidth is like, whether 14kB or 2 round trips takes longer for most people?

Probably the two round trips. A semi-nearby server might be 50ms per round trip, and in that case any connection beating 1mbps can transfer 14KB in less than two round trips. A server could easily be 150-250ms away and make those round trips far worse.

It also depends on the buffer size.

Some routers might only buffer 1 millisecond of line-rate data or less. If that's the case, that initial congestion window of 10 could overflow the buffer, causing loss and a much more costly double-round-trip to resend.

Post reply on HN