LinkStateRouting

Package: inet.networklayer.ted

LinkStateRouting

simple module

This module implements a very minimalistic link state routing protcol. 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.

Used in compound modules

Name Type Description
LDP_LSR compound module

An LDP-capable router.

RSVP_LSR compound module

An RSVP-TE capable router.

Parameters

Name Type Default value Description
interfaceTableModule string

The path to the InterfaceTable module

routingTableModule string
tedModule string
peers string

Properties

Name Value Description
display i=block/network2

Gates

Name Direction Size Description
ipIn input
ipOut output

Source code

//
// This module implements a very minimalistic link state routing protcol.
// 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
{
    parameters:
        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);
}
File: src/inet/networklayer/ted/LinkStateRouting.ned