NED File src/simu5g/apps/burst/BurstReceiver.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
Models an application that receives bursts of packets from a BurstSender application module. It binds to a specified UDP local port, logs the received packets, and records statistics such as packet delay. |
Source code¶
//
// Simu5G
//
// Copyright (C) 2012-2021 Giovanni Nardini, Giovanni Stea, Antonio Virdis et al. (University of Pisa)
// Copyright (C) 2022-2026 Giovanni Nardini, Giovanni Stea et al. (University of Pisa)
//
// This file is part of a software released under the license included in file
// "license.pdf". Please read LICENSE and README files before using it.
// The above files and the present reference are part of the software itself,
// and cannot be removed from it.
//
package simu5g.apps.burst;
import inet.applications.contract.IApp;
//
// Models an application that receives bursts of packets from
// a ~BurstSender application module. It binds to a specified UDP local port,
// logs the received packets, and records statistics such as packet delay.
//
simple BurstReceiver like IApp
{
parameters:
int localPort = default(3000); // The local UDP port to bind to
@signal[burstRcvdPkt];
@statistic[burstRcvdPkt](title="Received packet ID"; unit=""; source="burstRcvdPkt"; record=vector);
@signal[burstPktDelay];
@statistic[burstPktDelay](title="Delay of received packets"; unit="s"; source="burstPktDelay"; record=mean,vector);
@display("i=block/source");
gates:
output socketOut;
input socketIn;
}