Request for Assistance in Tracking Packets in NS2 Queue for Vehicular Networks

31 views
Skip to first unread message

nani...@gmail.com

unread,
Dec 6, 2024, 8:14:20 AM12/6/24
to Network Simulator 2 (NS2)

I hope this message finds you well. I am currently working on a vehicular network simulation using Network Simulator 2 (NS2). During this process, I encountered the need to track all packets entering and leaving the queue, as well as identifying the packet types and discarded packets.

Problem Context:
  1. Objective: To closely monitor the packet flow within the queue (incoming and outgoing).
  2. Required Information:
    • Types of packets in the queue (e.g., AGT, RTR, etc.).
    • Discarded packets, including the reasons for the discard (e.g., queue full, timeout).
    • Temporal flow or aggregated statistics for performance analysis.
  3. Current Setup:
    • Simulation in vehicular networks using AOMDV
    • Traffic type: CBR, 802.11p messages
    • Queue parameters: DropTail
Request:

I would greatly appreciate your guidance on effectively tracking packets in the NS2 queue, whether through specific scripts, configuration adjustments, or additional trace analysis tools. If there are any examples or relevant documentation, I would be grateful if you could share them.

Please let me know if you require further details about the simulation setup or any adjustments that could facilitate the process.

Thank you in advance for your attention and support.

DIÓGENES ANTÔNIO MARQUES JOSÉ

unread,
Dec 6, 2024, 1:48:39 PM12/6/24
to ns-u...@googlegroups.com
Best regards my friend.
I have developed scripts to extract network performance metrics for wireless networks on NS-2. These scripts can be used or easily adapted to your problem. In addition, I have published a book about NS-2 that may be of great help to you.
NOTE: You can use my scripts and do not need to buy the book, it is not necessary.
Link to performance metrics extraction scripts: https://github.com/dioxfile/Performance-Network-Metrics-NS-2
The link to the book, if you are interested, is https://www.amazon.com/dp/B0DC49FBSF.

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ns-users/383197e9-8266-4dbb-a245-2105f3d032aan%40googlegroups.com.

Dan Assis

unread,
Dec 9, 2024, 9:30:53 AM12/9/24
to ns-u...@googlegroups.com

What I need is to capture the node IDs in the drop-tail.cc queue. I want to know what is in the queue for each node. What you responded does not solve the problem.


Diógenes José

unread,
Dec 9, 2024, 10:59:02 AM12/9/24
to ns-u...@googlegroups.com

Diógenes José

unread,
Dec 9, 2024, 11:02:50 AM12/9/24
to ns-u...@googlegroups.com

You need put node id in trace file ir print node id somehow. After that extract It.

Dan Assis

unread,
Dec 10, 2024, 6:27:22 AM12/10/24
to ns-u...@googlegroups.com

I think you didn't understand: I need to print the packets from the droptail.cc queue. I don't have this information in the new NS2 trace. What I need is to know the types of packets in the queue at certain periods, the node ID corresponding to this queue, the time the packet arrived, and the time it left the queue. Example:

Time   ID   Packet_Type   Entered/Left
1s     3    PT_AOMDV      In
2s     3    CBR           Out

DIÓGENES ANTÔNIO MARQUES JOSÉ

unread,
Dec 10, 2024, 1:04:32 PM12/10/24
to ns-u...@googlegroups.com
I understand, usually Manet routing protocols have a printing function. For example, OLSR has it. I believe AOMDV has it too. What you need is to find it and make it print in the trace.

Reply all
Reply to author
Forward
0 new messages