Simple Module SRPEtherEncap

Package: core4inet.linklayer.ethernet.avb
File: src/core4inet/linklayer/ethernet/avb/SRPEtherEncap.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: ~BGEtherEncap, ~SRProtocol

Author: Kai-Uwe von Deylen

SRPEtherEncap

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
BGEtherEncap simple module

This module forwards frames (~EtherFrame) to the bg buffers

Used in compound modules:

Name Type Description
TTEAVB8021QEtherNic compound module

Module for a TTE AVB BE Ethernet NIC Contains handler for TT, AVB, RC and BE Messages using IEEE 802.1Q.

TTEAVBEtherHost compound module

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

TTEAVBEtherNic compound module

Module for a TTE AVB BE Ethernet NIC Contains handler for TT, AVB, RC and BE Messages.

Parameters:

Name Type Default value Description
useSNAP bool false

create EtherFrameWithSNAP frames instead of EthernetIIFrame

Properties:

Name Value Description
display i=block/fork
class SRPEtherEncap

Gates:

Name Direction Size Description
upperLayerIn input

higher layer

upperLayerOut output

higher layer

lowerLayerIn input

to Ethernet MAC

lowerLayerOut output

to Ethernet MAC

bgIn input

background in

bgOut output

background out

srpIn input

SRP message in from SRP protocol module

srpOut output

SRP message out to SRP protocol module

Signals:

Name Type Unit
pauseSent long
decapPk cPacket
encapPk cPacket

Statistics:

Name Title Source Record Unit Interpolation Mode
pauseSent pause sent count, sum, vector
decapPk packets decapsulated decapPk count, sum(packetBytes), vector(packetBytes) none
encapPk packets encapsulated encapPk count, sum(packetBytes), vector(packetBytes) none

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 ~BGEtherEncap, ~SRProtocol
// 
// @author Kai-Uwe von Deylen
//
simple SRPEtherEncap extends BGEtherEncap
{
    parameters:
        @class(SRPEtherEncap);
        @display("i=block/fork");

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