LengthBasedAggregatorPolicy¶
Package: inet.protocolelement.aggregation.policy
simple module LengthBasedAggregatorPolicy
A policy for aggregating subpackets based on their length
Usage diagram¶
Inheritance diagram¶
Used in compound modules¶
Name |
Type |
Description |
|---|---|---|
compound module |
Base module for packet aggregation. Collects multiple packets and combines them into a single aggregated packet based on a configurable aggregation policy. Aggregation improves network efficiency by reducing header overhead when transmitting multiple small packets. The module delegates the aggregation decision to a policy class or module that determines if a packet can be aggregated with the current set. |
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
Base module for all INET simple modules. |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
displayStringTextFormat |
string |
“” |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
minNumSubpackets |
int |
0 |
|
maxNumSubpackets |
int |
||
minAggregatedLength |
int |
0b |
|
maxAggregatedLength |
int |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
LengthBasedAggregatorPolicy |
|
display |
i=block/star |
Source code¶
//
// A policy for aggregating subpackets based on their length
//
simple LengthBasedAggregatorPolicy extends SimpleModule like IAggregatorPolicy
{
parameters:
@class(LengthBasedAggregatorPolicy);
int minNumSubpackets = default(0);
int maxNumSubpackets;
int minAggregatedLength @unit(b) = default(0b);
int maxAggregatedLength @unit(b);
@display("i=block/star");
@class(LengthBasedAggregatorPolicy);
}
File: src/inet/protocolelement/aggregation/policy/LengthBasedAggregatorPolicy.ned