define @ ED and @ GW for lorawan in network-simple-example

114 views
Skip to first unread message

Abdelouahab Nouar

unread,
Oct 27, 2022, 10:50:07 AM10/27/22
to ns-3-users
Hi everyone , in lorawan's network-server-example, I cannot define, configure and interpret the ED address, GW address and NewServ address, if you can help me I will be very grateful
Sans titre 2.png

Dinesh Tamang

unread,
Oct 27, 2022, 10:58:06 AM10/27/22
to ns-3-...@googlegroups.com
I suggest you to try with complete-network-example.cc to understand the work flow. 
It has alll the required components to realize a complete LoRaWAN network.

On Thu, Oct 27, 2022, 16:50 Abdelouahab Nouar <mouaa...@gmail.com> wrote:
Hi everyone , in lorawan's network-server-example, I cannot define, configure and interpret the ED address, GW address and NewServ address, if you can help me I will be very grateful

--
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 on the web visit https://groups.google.com/d/msgid/ns-3-users/8d5aa43a-4c96-4cc0-97f2-0ed173123bb1n%40googlegroups.com.

Abdelouahab Nouar

unread,
Oct 27, 2022, 11:08:03 AM10/27/22
to ns-3-users
I have already tried with simple-network-server , network-server-example, and the complete-network-example , but unfortunately I can't define exactly and interpret the Mac address of Nodes , GW , and NetworkServer , please help me

Dinesh Tamang

unread,
Oct 27, 2022, 11:13:16 AM10/27/22
to ns-3-...@googlegroups.com
May I know why you need MAC address.  As far as I understand,  MAC address are not relevant in the overall performance parameters evaluation. The only concern is the GWid and EDid. 

Abdelouahab Nouar

unread,
Oct 27, 2022, 11:32:51 AM10/27/22
to ns-3-users

very good i want to know the EDid and GWid for ACK diagram design
Scenario22.drawio (1).png

Abdelouahab Nouar

unread,
Oct 27, 2022, 11:48:44 AM10/27/22
to ns-3-users
exactly, in a scenario where there are several ED and GW , I want to know exactly id ED who sent the packet and , Id GW who received the packet and ID NetwkServer, attached file is the execution of complete-network- server.cc
execution complete-network-example.txt

Dinesh Tamang

unread,
Oct 28, 2022, 4:53:14 AM10/28/22
to ns-3-...@googlegroups.com
It depends on how many EDs are sending the packet in CONF mode. To access the deviceId for a particular node, be it ED or GW, you can do in various ways. 

One of the best ways is to get the LoraNetDevice() object from EndDeviceLorawanMac () where you have a pointer to the node and its associated id i.e m_id. In this case, the ED id is 4. See the class hierarchy below:
ex.png

Dinesh 


Abdelouahab Nouar

unread,
Oct 28, 2022, 11:40:48 AM10/28/22
to ns-3-users
thank you very much for your answer, I appreciate your help, if you can tell me how to get this capture

Abdelouahab.N

unread,
Nov 2, 2022, 1:39:00 PM11/2/22
to ns-3-users
this capture is the result of simulation for complete-network-example.cc ???? how te get this Picture please

Dinesh Tamang

unread,
Nov 8, 2022, 5:35:39 AM11/8/22
to ns-3-...@googlegroups.com
You can configure ns3 with any of the available IDE, I  use eclipse, but I am sure there are many possible options.


Abdelouahab.N

unread,
Nov 13, 2022, 12:14:17 PM11/13/22
to ns-3-users

Thank you for your help

Abdelouahab.N

unread,
Nov 13, 2022, 1:16:38 PM11/13/22
to ns-3-users
have you any idea for security lora/lorawan cyberattack , or a source code .cc in ns3 , please my gmail is mouaa...@gmail.com
Reply all
Reply to author
Forward
0 new messages