NED File src/inet/networklayer/ted/LinkStateRouting.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
Implements a very minimalistic link state routing protocol. Apart from the basic topology information, the current link usage is distributed to all participants in the network (by means of flooding). |
Source code¶
//
// Copyright (C) 2005 Vojtech Janota, Andras Varga
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
package inet.networklayer.ted;
import inet.common.SimpleModule;
//
// Implements a very minimalistic link state routing protocol.
// Apart from the basic topology information, the current link usage
// is distributed to all participants in the network (by means of flooding).
//
// Collaborations
//
// The link state database is kept in the ~Ted module.
//
simple LinkStateRouting extends SimpleModule
{
parameters:
@class(LinkStateRouting);
string interfaceTableModule; // The path to the InterfaceTable module
string routingTableModule;
string tedModule;
string peers;
@display("i=block/network2");
gates:
input ipIn @labels(Ipv4ControlInfo/up);
output ipOut @labels(Ipv4ControlInfo/down);
}