received packet count

66 views
Skip to first unread message

Allan

unread,
May 19, 2021, 9:55:43 PM5/19/21
to ns-3-users
Hi.
I'm making a new application and I have a question.
How can I count packets received?
I use the packet sequence number. 
So I want to count the sequence number of the received packet.

For example, if the sequence number from 1 to 10 is well received, you want to post a message saying that it has been received.

Thank you in advance for your help


Message has been deleted

Sampath

unread,
May 20, 2021, 12:45:34 AM5/20/21
to ns-3-users
Hi Allan,

It is bit hard to recommend something without knowing what you meant by a new application. 
But depending on what you want to do, TraceSources, PacketTags or Header fields should be able to solve it. 
Good luck!

Message has been deleted

Allan

unread,
May 20, 2021, 2:53:23 AM5/20/21
to ns-3-users
Hi, Sampath

I wrote the words a little weird. Sorry.
I was thinking, and I want to use a buffer in the receiver.
I think that can store the received packets in a buffer.
So, I think I can solve my problem by using the sequence number of the stored packet.
But I don't know how to set the buffer..

Could you ever ask for help?
(How to set buffer in receiver)

Thank you

2021년 5월 20일 목요일 오후 1시 45분 34초 UTC+9에 Sampath님이 작성:

Sampath

unread,
May 20, 2021, 3:29:33 AM5/20/21
to ns-3-users
Hi Allan,

Well, if you want to put the receiving packets to a buffer, you could use a Queue. 

It has functions to to peek inside the packets and read headers. 

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages