Python Forum
Programming a routing protocol - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Programming a routing protocol (/thread-34254.html)



Programming a routing protocol - leemao - Jul-11-2021

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


RE: Programming a routing protocol - Larz60+ - Jul-12-2021

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


RE: Programming a routing protocol - leemao - Jul-13-2021

Thank you Larz60+

---

I hope find some answers to my post