Skip to content

Commit 5f8ede1

Browse files
committed
udp,quic: Add outgoingDataRate statistics based on packetSent
1 parent 83e33b7 commit 5f8ede1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/inet/transportlayer/quic/Quic.ned

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ simple Quic extends SimpleModule like IQuic
240240
@statistic[packetReceived](title="packets received"; source=packetReceived; record=count,sum(packetBytes),vector(packetBytes); interpolationmode=none);
241241
@signal[packetSent](type=cPacket); // should be per connection
242242
@statistic[packetSent](title="packets sent"; source=packetSent; record=count,sum(packetBytes),vector(packetBytes); interpolationmode=none);
243+
@statistic[outgoingDataRate](title="outgoing datarate"; source=throughput(packetSent); record=vector; unit=bps; interpolationmode=linear);
243244
@signal[packetNumberReceived*];
244245
@statisticTemplate[packetNumberReceived](title="packet number received"; record=vector; interpolationmode=none);
245246
@signal[packetNumberSent*];

src/inet/transportlayer/udp/Udp.ned

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ simple Udp extends SimpleModule like IUdp
7474
@signal[packetSent](type=cPacket);
7575
@signal[packetReceived](type=cPacket);
7676
@statistic[packetSent](title="packets sent"; source=packetSent; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none);
77+
@statistic[outgoingDataRate](title="outgoing datarate"; source=throughput(packetSent); record=vector; unit=bps; interpolationmode=linear);
7778
@statistic[packetReceived](title="packets received"; source=packetReceived; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none);
7879
@statistic[passedUpPk](title="packets passed up"; source=packetSentToUpper; record=count,"vector(count)"; interpolationmode=none);
7980
@statistic[droppedPkWrongPort](title="packets dropped (wrong port)"; source=packetDropReasonIsNoPortFound(packetDropped); record=count,"vector(count)"; interpolationmode=none);

0 commit comments

Comments
 (0)