ccie18643 / PyTCP

PyTCP is a fully functional TCP/IP stack written in Python. It supports TCP stream-based transport with reliable packet delivery based on a sliding window mechanism and basic congestion control. It also supports IPv6/ICMPv6 protocols with SLAAC address configuration. It operates as a user space program attached to the Linux TAP interface.
GNU General Public License v3.0
345 stars 35 forks source link

Add some basic exmaples or docs~ #4

Closed pedrogao closed 3 years ago

pedrogao commented 3 years ago

I'm so happy to have this project to study, but all parts are coupled under one app. I can't run ICMP or IP alone, all source code file is not easy to read and refactor, cound you consider adding some examples to run one protocol individually.

ccie18643 commented 3 years ago

I am happy someone actually finds this project useful :) However, in TCP/IP stack you can't run protocols individually. They all depend on each other. You could technically decouple TCP and write emulator for running it without using any lower layer protocols but that really calls for separate project that would be purely oriented for simulating TCP mechanism in various network conditions (delay, packet loss, etc). I may actually consider working on it once i have some free time next year.