Package: inet.node.mpls


compound module

An RSVP-TE capable router.

RsvpTe occupies the Transport layer; however, it is not a transport protocol itself. RsvpTe uses transport protocols to route packets. Ted is used to calculate shortest paths.

NodeStatus InterfaceTable Ted LinkStateRouting RsvpTe IIngressClassifier MessageDispatcher Ipv4NetworkLayer MessageDispatcher ILoopbackInterface IPppInterface Mpls LibTable MessageDispatcher

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.


Name Type Default value Description
hasStatus bool false
numLoInterfaces int 1
peers string
routerId string "auto"


Name Value Description
labels node
display i=abstract/router


Name Direction Size Description
pppg [ ] inout

Unassigned submodule parameters

Name Type Default value Description
status.initialStatus string "UP"

TODO @signal, @statistic

interfaceTable.displayAddresses bool false

whether to display IP addresses on links

ted.interfaceTableModule string

The path to the InterfaceTable module

ted.routingTableModule string
linkStateRouting.interfaceTableModule string

The path to the InterfaceTable module

linkStateRouting.routingTableModule string
linkStateRouting.tedModule string
rsvp.interfaceTableModule string

The path to the InterfaceTable module

rsvp.routingTableModule string
rsvp.libTableModule string
rsvp.tedModule string
rsvp.traffic xml xml("")

specifies paths to set up

rsvp.helloInterval double
rsvp.helloTimeout double
ipv4.routingTable.interfaceTableModule string

The path to the InterfaceTable module

ipv4.routingTable.routerId string "auto"

for routers, the router id using IPv4 address dotted notation; specify "auto" to select the highest interface address; should be left empty ("") for hosts

ipv4.routingTable.netmaskRoutes string "*"

maintain netmask routes for interfaces

ipv4.routingTable.forwarding bool true

turns IP forwarding on/off

ipv4.routingTable.multicastForwarding bool false

turns multicast forwarding on/off

ipv4.routingTable.useAdminDist bool false

Use Cisco like administrative distances

ipv4.routingTable.routingFile string ""

routing table file name

ipv4.natTable.networkProtocolModule string "^.ip"
ipv4.natTable.config xml xml("")

XML configuration parameters for network address translation

ipv4.icmp.interfaceTableModule string

The path to the InterfaceTable module

ipv4.icmp.routingTableModule string
ipv4.icmp.crcMode string "declared"
mpls.interfaceTableModule string

The path to the InterfaceTable module

mpls.libTableModule string
libTable.config xml xml("")

table contents to be loaded on startup

Source code

// An RSVP-TE capable router.
// ~RsvpTe occupies the Transport layer; however, it is not a transport protocol
// itself. ~RsvpTe uses transport protocols to route packets. ~Ted is used
// to calculate shortest paths.
module RsvpMplsRouter
        bool hasStatus = default(false);
        int numLoInterfaces = default(1);
        string peers;
        string routerId = default("auto");
        *.forwarding = true;
        *.routingTable.routerId = routerId;
        *.interfaceTableModule = default(absPath(".interfaceTable"));
        *.routingTableModule = default(absPath(".ipv4.routingTable"));
        *.tedModule = default(absPath(".ted"));
        *.rsvpModule = default(absPath(".rsvp"));
        *.libTableModule = default(absPath(".libTable"));
        inout pppg[] @labels(PppFrame-conn);
        status: NodeStatus if hasStatus {
        interfaceTable: InterfaceTable {
        ted: Ted {
        linkStateRouting: LinkStateRouting {
                peers = peers;
        rsvp: RsvpTe {
                peers = peers;
                classifierModule = "^.classifier";
        classifier: <default("RsvpClassifier")> like IIngressClassifier {
        tn: MessageDispatcher {
        ipv4: Ipv4NetworkLayer {
        nm: MessageDispatcher {
        lo[numLoInterfaces]: <default("LoopbackInterface")> like ILoopbackInterface {
        ppp[sizeof(pppg)]: <default("PppInterface")> like IPppInterface {
        mpls: Mpls {
                classifierModule = "^.classifier";
        libTable: LibTable {
        ml: MessageDispatcher {
    connections allowunconnected:
        linkStateRouting.ipOut -->;
        tn.out++ --> linkStateRouting.ipIn;
        ipv4.transportOut -->;
        tn.out++ --> ipv4.transportIn;

        rsvp.ipOut -->;
        rsvp.ipIn <-- tn.out++;

        ipv4.ifOut -->;
        nm.out++ --> ipv4.ifIn;

        for i=0..numLoInterfaces-1 {
            lo[i].upperLayerOut -->;
            nm.out++ --> lo[i].upperLayerIn;

        for i=0..sizeof(pppg)-1 {
            pppg[i] <--> ppp[i].phys;

            ppp[i].upperLayerOut -->;
            ml.out++ --> ppp[i].upperLayerIn;
        mpls.ifOut -->;
        ml.out++ --> mpls.ifIn;
        nm.out++ --> mpls.netwIn;
        mpls.netwOut -->;

File: src/inet/node/mpls/RsvpMplsRouter.ned