https://github.com/xhacker/rdt-over-udp
RDT over UDP.
https://github.com/xhacker/rdt-over-udp
Last synced: about 1 year ago
JSON representation
RDT over UDP.
- Host: GitHub
- URL: https://github.com/xhacker/rdt-over-udp
- Owner: xhacker
- Created: 2014-04-13T07:04:39.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-13T09:22:20.000Z (about 12 years ago)
- Last Synced: 2025-03-26T21:37:29.655Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 605 KB
- Stars: 23
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RDT Over UDP
A simple implementation of RDT (Reliable Data Transfer) 3.0.
You need to run in correct order: interceptor, receiver, then sender.

## Interceptor
25% of packets will be dropped. Another 25% of packets will be corrupted by randomly changing one byte. You can change the percentage by editing **intercepter.py**.
```bash
Usage: python interceptor.py FromSenderPort ToReceiverPort FromReceiverPort ToSenderPort
python interceptor.py 1600 1601 1602 1603
```
## Receiver
```bash
python receiver.py 127.0.0.1 1602 127.0.0.1 1601
```
## Sender
```bash
python sender.py 127.0.0.1 1600 127.0.0.1 1603 file.txt
```