Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For those you are wondering, this is a webserver that serves an HTML page in a single TCP packet. I guess ≤ 1500 bytes to avoid fragmentation - shows as 1.1KB in Chrome's network view. The HTML contains embedded JavaScript that runs a simple demo with animated ASCII and playing a LOUD changing audio tone.

You can visit the demonstration website here: http://packet.city/

You can see a screenshot of the demo here: http://www.p01.org/128b_raytraced_checkboard/



The limit is 1460 - the IP and TCP headers occupy 40 bytes.

Out of those another 63 are consumed by the HTTP headers.

The full TCP payload is only 1226 bytes though, and the full HTTP payload 1163 bytes. The decoded HTML document is 1546 bytes.


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 packets with options"[1]

[1] https://www2.eecs.berkeley.edu/Pubs/TechRpts/2005/EECS-2005-...


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


>"Out of those another 63 are consumed by the HTTP headers"

I am curious how you ended up at 63 for that, can you elaborate?


Viewed the http headers and counted?

Which you can do with curl, Chrome/Safari/FF dev tools, and lots of other tools besides.


Sure I know how to view them. I guess the commenter meant the HTTP headers for just this site were 63 bytes. I thought they were speaking on average like they were for 40 bytes for TCP/IP headers.


Caution: loud


Opened this on my phone with headphones. I had an heartattack.


Counts as experience :)


Branded with bleeding ears. Dolby.


This would be really great without the audio. Due to the sound of the audio my initial reaction is to be fascinated, followed immediately by discomfort.


Over the last 5 years I've learnt to set the default sound level on my computer to "mute"


You can also set your browser windows to automatically mute on chrome. I think in high sierra macOS will do it by default.


one settings I'd like to have is "unmute for the next 15 minutes" to be able to hear a funny vid without forgetting to reset it back to muted


That audio demo is CRAZY loud. I had my headphones on my desk since I'm on the phone and thought it was playing music through my laptop speakers.


So they're using p01's effect and they want to put ADs around it?


Here's hoping it's a joke. ;- )


Wow how'd it autoplay audio on my mobile chrome




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: