https://github.com/chizhg/rawsockets
A simplified TCP/IP stack implemented with raw socket
https://github.com/chizhg/rawsockets
raw-sockets tcp-ip
Last synced: over 1 year ago
JSON representation
A simplified TCP/IP stack implemented with raw socket
- Host: GitHub
- URL: https://github.com/chizhg/rawsockets
- Owner: chizhg
- Created: 2017-05-02T00:38:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-02T00:53:44.000Z (about 9 years ago)
- Last Synced: 2025-03-20T14:21:40.307Z (over 1 year ago)
- Topics: raw-sockets, tcp-ip
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Summary
The goal of this project is to take a URL on the command line and downloads the associated file.
The implementation includes protocols from Data-link Layer to Application Layer with the basic raw socket.
The main work is about building the Ethernet, IP and TCP headers in each packet.
---
### Implementation of Each Layer
|Ethernet Header | IP Header | TCP Header | HTTP Data | Padding |
| ---------|------ |------ |------ |------ |
| 14 byte | 20 byte | 20 byte or more | |add to 64|