Python Forum

Full Version: Programming a routing protocol
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I want to make a simple routing protocol similar to OSPF (or at least modify an existed one) in python. I found many protocols written in other languages, but I only know Python.

Also, I want to make some evaluations while increasing the number of nodes in the network in order to assess my protocol, such as: throughput, transmission time, delay, number of packets sent, etc. There are many Open-source simulators to do that efficiently such as NS3, but they don't use Python.

I made a research on the Internet, and I found the following packages/tools, but I don't know if they can help me and how to use them:
  • Scapy (Packet crafting for Python2 and Python3),
  • Pymote (A high-level Python library for simulation of distributed algorithms).

I need your helps in this regard, any suggestion is welcomed.

Thank you
scapy can be installed from command line with: pip install scapy
It seems to be well maintained, latest update April 19 of this year
I don't know anything about it, however there are a lot of related packages: https://pypi.org/search/?q=scapy

Pymote seems to only have versions for python 2 released, and hasn't been worked on since 2018 (at least on GitHub)
information here: https://pypi.org/search/?q=pymote
Thank you Larz60+

---

I hope find some answers to my post