Simple Module SRPRelay

Package: core4inet.linklayer.beHandling.avb.relay
File: src/core4inet/linklayer/beHandling/avb/relay/SRPRelay.ned

C++ definition

This module forwards frames (~EtherFrame) based on their destination MAC addresses to appropriate ports.

It can handle: AVBs SRP frames. Incoming SRP frames are forwarded as SRP messages through srpOut to the SRProtocol module. Outgoing SRP messages coming through srpIn gate are forwarded according to the controlInfo as EtherFrame

See also: ~Ieee8021dRelay, ~SRProtocol

Author: Till Steinbach

SRPRelay

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Extends:

Name Type Description
Ieee8021dRelay simple module

This modul forwards frames (~EtherFrame) based on their destination MAC addresses to appropriate ports.

Used in compound modules:

Name Type Description
TTEAVBEtherSwitch compound module

Module for a TTEAVBEthernet Switch. Contains handler for TT, AVB, RC and BE Messages.

Parameters:

Name Type Default value Description
interfaceTablePath string "^.interfaceTable"

The path to the InterfaceTable module

macTablePath string "^.macTable"

The path to the MACAddressTable module

Properties:

Name Value Description
display i=block/broadcast;bgb=425,114
class SRPRelay

Gates:

Name Direction Size Description
ifIn [ ] input
ifOut [ ] output
stpIn input
stpOut output
srpIn input

SRP message in from SRP protocol module

srpOut output

SRP message out to SRP protocol module

Source code:

//
// This module forwards frames (~EtherFrame) based on their destination MAC addresses to appropriate ports.
//
// It can handle: AVBs SRP frames.
// Incoming SRP frames are forwarded as SRP messages through srpOut to the SRProtocol module.
// Outgoing SRP messages coming through srpIn gate are forwarded according to the controlInfo as EtherFrame
//
// @see ~Ieee8021dRelay, ~SRProtocol
// 
// @author Till Steinbach
//
simple SRPRelay extends Ieee8021dRelay
{
    parameters:
        @class(SRPRelay);
        @display("i=block/broadcast;bgb=425,114");

    gates:
        //SRP message in from SRP protocol module
        input srpIn @loose;
        //SRP message out to SRP protocol module
        output srpOut @loose;
}