iPAS / motelib_flooding

Implementation of flooding routing, based on 'motelib' framework of https://gitlab.com/cjaikaeo/motelib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flood Routing

The simple implementation of routing algorithm in flooding manner. Its purpose is only for learning.

If a source node want to send a packet to a sink, the packet is broadcasted to node neighbors -- intermediate nodes. Expectedly, the packet will be forwarded through intermediates, and, finally meeting the sink.

In case a packet is remembered that it was passed, an intermidiate will discard -- no forwarding it.

Quick Start

  • Change directory into "motelib", then source motelib-vars.sh.
  • Build the project with make.
  • Run the simulator with Python 2.7: python sim-tri2sink-flood.py, to learn the routing mechnism.

Simulation Result

The lastest test is the result of sim-tri2sink-flood.py.

Single Source Testing

Single-source Test

Multiple Sources Testing

Multi-source Test

Multiple Sources + Hybrid Node Testing

Multi-source + Hybrid-node Test

About

Implementation of flooding routing, based on 'motelib' framework of https://gitlab.com/cjaikaeo/motelib

License:GNU General Public License v3.0


Languages

Language:C 51.1%Language:Python 47.8%Language:Makefile 1.0%