ISpanningTree

Package: inet.linklayer.contract

module interface ISpanningTree

Module interface for Spanning Tree protocols

Usage diagram

Inheritance diagram

Implemented by

Name

Type

Description

Rstp

simple module

Implements the Rapid Spanning Tree Protocol (IEEE 802.D-2004) for IEC 48-bit MAC addresses. It is a complete implementation except it doesn’t fall back to STP when peers don’t support RSTP.

Stp

simple module

The Spanning Tree Protocol (STP) is a network protocol that ensures a loop-free topology for any bridged Ethernet local area network. The basic function of STP is to prevent bridge loops and the broadcast radiation that results from them. Spanning tree also allows a network design to include spare (redundant) links to provide automatic backup paths if an active link fails, without the danger of bridge loops or the need for manually enabling/disabling these backup links.

Used in compound modules

Name

Type

Description

EthernetSwitch

compound module

EthernetSwitch models a Layer 2 Ethernet switch with support for various IEEE 802.1 protocols and features. It provides frame forwarding based on MAC addresses and implements multiple switching technologies.

Parameters

Name

Type

Default value

Description

helloTime

double

forwardDelay

double

maxAge

double

bridgePriority

int

visualize

bool

Properties

Name

Value

Description

display

i=block/network2

Source code

//
// Module interface for Spanning Tree protocols
//
moduleinterface ISpanningTree
{
    parameters:
        @display("i=block/network2");
        double helloTime @unit(s);
        double forwardDelay @unit(s);
        double maxAge @unit(s);
        int bridgePriority;
        bool visualize;
    gates:
        input relayIn;
        output relayOut;
}

File: src/inet/linklayer/contract/ISpanningTree.ned