Skip to content
ultrafast single TCP packet audio/visual experience
C HTML Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client Save 2bytes on the image (#16) Nov 21, 2017
server/c
utils add test server May 14, 2017
.gitignore Add script for pre-deflating html content, basic c server May 14, 2017
.travis.yml add travis May 16, 2017
LICENSE add license May 14, 2017
Makefile Update makefile May 14, 2017
README.md add thank you to our sponsor Dec 13, 2018

README.md

Build Status

what is this?

the greatest website to ever fit in a single TCP packet

optimizations

  • HTTP compression: choose DEFLATE over GZIP because most browsers accept raw DEFLATE output without a header or checksum so it's shorter/faster. #yolo
  • send response immediately after TCP session init: avoids 1 round trip (not to spec, seems to confuse Chrome results in Wireshark).
  • SO_BUSY_POLL: asks the kernel to poll for packets for a given amount of time.
  • TCP_NODELAY: disable Nagle's algorithm.
  • echo 1 > /proc/sys/net/ipv4/tcp_low_latency: TCP stack makes decisions that prefer lower latency as opposed to higher throughput.
  • favicon: reduced gif to 1/2 original frame count, applied lossy LZW compression.
  • HTML mangling: closing tags are for losers.
  • bespoke webserver written in C
  • remove GIF comment extension block, saving 36 bytes (thanks Samy Kamkar)

who made this?

eV (admin@packet.city), yan (webmaster@packet.city)

Get in touch today to hear about our 120-byte ad sponsorship opportunities!

credits

You can’t perform that action at this time.