0

I am using OMNET++ INET for Ad hoc networks. I want to broadcast my message to all my neighbors in UDP. I have tried all the possible solutions in UDPBasicApp. It broadcasts a message to one node at a time which it chooses randomly if the destination is not fixed (sink). UDPBasicBurstApp also does not send message to all connected nodes.

James Z
  • 12,209
  • 10
  • 24
  • 44
  • Could you precise "*all my neighbors in UDP*"? UDP works in transport layer. There is no neighbors in that layer. – Jerzy D. May 04 '21 at 05:32

2 Answers2

0

Just as with a real network: to broadcast to all nodes on your local network you must use the local broadcast address as a destination address.

i.e. if I'm on the network 192.168.0.0 and I have an 8 bit subnet then sending to 192.168.0.255 would broadcast the message.

Rudi
  • 6,418
  • 1
  • 16
  • 20
0

sorry in my omnet.ini file I have this configuration:

*.configurator.config = xml("") *.configurator.optimizeRoutes = false .host.ipv4.routingTable.netmaskRoutes = ""

I would like to send the UDP packet to multiple end nodes so that they all receive the same packet and not that the end node is chosen randomly. How should I set the destAddress?

Conny
  • 1