NED File src/inet/routing/gpsr/Gpsr.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
Provides Greedy Perimeter Stateless Routing for Wireless Networks. The implementation supports both GG and RNG planarization algorithms. |
Source code¶
//
// Copyright (C) 2013 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
package inet.routing.gpsr;
import inet.common.SimpleModule;
import inet.routing.contract.IManetRouting;
//
// Provides Greedy Perimeter Stateless Routing for Wireless Networks.
// The implementation supports both GG and RNG planarization algorithms.
//
// For more information on the routing algorithm, see the GPSR paper
// http://www.eecs.harvard.edu/~~htk/publication/2000-mobi-karp-kung.pdf
//
simple Gpsr extends SimpleModule like IManetRouting
{
parameters:
@class(Gpsr);
// properties
@display("i=block/routing");
// context parameters
string interfaceTableModule; // The path to the InterfaceTable module
string routingTableModule = default("^.ipv4.routingTable");
string networkProtocolModule = default("^.ipv4.ip");
// GPSR parameters
string planarizationMode @enum("", "GG", "RNG") = default("GG");
string interfaces = default("*");
double beaconInterval @unit(s) = default(10s);
double maxJitter @unit(s) = default(0.5 * beaconInterval);
double neighborValidityInterval @unit(s) = default(4.5 * beaconInterval);
int positionByteLength @unit(B) = default(2 * 4B);
// visualization parameters
bool displayBubbles = default(false); // Display bubble messages about changes in routing state for packets
gates:
input ipIn;
output ipOut;
}