Simulation of 5G mmwave with flowmonitor

46 views
Skip to first unread message

Juan HM

unread,
Mar 24, 2025, 6:56:59 PM3/24/25
to ns-3-users
Hi everyone,

I am having some trouble while trying to simulate a end to end 5G mmwave scenario.
I am setting 1 UE (McUeDevice), 1 gNodeb (mmwave enbDevice), and 1 eNodeb (mmwave lteEnbDevice). I have added the X2interface between the lteEnbDevice and the mmwave enbDevice, and also installed the SGW/PGW with the epc helper.
The issue I am getting, is that while adding the flowmonitor I am receiving the monitor->getFlowsStats() with 0 size. 

Do you know what could be the reason for this?


BR.

Tommaso Pecorella

unread,
Mar 24, 2025, 7:23:57 PM3/24/25
to ns-3-users
Do you have any TCP or UDP applications ?

FlowMonitor only tracks TCP and UDP flows, so you won't see anything beside these.

Juan HM

unread,
Mar 24, 2025, 9:57:16 PM3/24/25
to ns-3-users
Hi Tommaso, thanks for your message.

Yes, I do have UDP application installing:UDP server helper and UDP trace client helper.
For this, I have also installed a clientapps for remotehost (since I am simulating UL) and server app with UE.

Tommaso Pecorella

unread,
Mar 25, 2025, 5:10:18 AM3/25/25
to ns-3-users
I remember something about LTE model stripping packet tags - which could be the reason to have FlowMonitor not working.

I should investigate, but it would require time. As a workaround, I'd suggest to use the data from SeqTsHeader (search for it in the UdpServer app).

Juan HM

unread,
Mar 25, 2025, 6:38:27 PM3/25/25
to ns-3-...@googlegroups.com
Hi Tommaso, regarding tags, I have commented all lines regarding p->RemovePacketTag(tag) as per another group, but the errors persisted.

Also, do you have any example I can take as guide? I am seeing this in the udp-server.cc but not sure how to implement it in my code.
image.png

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ns-3-users/8845e9a6-1b76-4a12-abd1-544a10c11038n%40googlegroups.com.

Tommaso Pecorella

unread,
Mar 26, 2025, 5:19:40 PM3/26/25
to ns-3-users
Read the tutorial and the manual, the answer is there (look for how to activate the logs).
Reply all
Reply to author
Forward
0 new messages