---
site: "zyx.tw"
title: "PerfectSocket"
description: "PerfectSocket: reliable UDP with Reed-Solomon."
url: "https://www.zyx.tw/project/perfectsocket"
---

# PerfectSocket

Reliable UDP with Reed-Solomon.

A socket that keeps UDP's speed and survives its losses. The sender splits the data into k fragments and encodes them into n with Reed-Solomon coding.

Any k of the n fragments rebuild the data, so up to n minus k packets can be lost with no resend. It was the final project of a communication networks course.

## Details

- Code: [https://github.com/zyx1121/network-final-project](https://github.com/zyx1121/network-final-project)
- Built with: Python, zfec, Docker

Back to [Project](https://www.zyx.tw/project.md).
