DuplicateRemoval

Package: inet.protocolelement.ordering

simple module DuplicateRemoval

Filters out duplicate packets based on sequence numbers. Keeps track of the last processed sequence number and discards packets with the same sequence number to prevent duplicate packet processing. Note that in order for this strategy to work, packets must arrive in the correct order.

inet.protocolelement.ordering.DuplicateRemovalDuplicateRemovalsimple

Inheritance diagram

Extends

Name

Type

Description

PacketPusherBase

simple module

Base module for various packet pusher modules.

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“processed {numProcessedPackets} pk ({processedTotalLength})”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

Properties

Name

Value

Description

class

DuplicateRemoval

display

i=block/rx

Gates

Name

Direction

Size

Description

in

input

out

output

Source code

//
// Filters out duplicate packets based on sequence numbers. Keeps track of the
// last processed sequence number and discards packets with the same sequence
// number to prevent duplicate packet processing. Note that in order for this
// strategy to work, packets must arrive in the correct order.
//
simple DuplicateRemoval extends PacketPusherBase
{
    parameters:
        @class(DuplicateRemoval);
        @display("i=block/rx");
}

File: src/inet/protocolelement/ordering/DuplicateRemoval.ned