I am trying to use the BasicBurst UDP app on omnetpp 4.0. for
broadcasting to all neighbours in a wireless adhoc scenario. For this
I set the destAddresses ="Broadcast". I also tried "255.255.255.255"
and "10.0.0.1". Here, the network ip starts from 10.0.0.x.
Also, according to this thread
http://groups.google.com/group/omnetpp/browse_thread/thread/4dc2feef3ce53f85/2435092169557472?q=broadcast&lnk=ol&
I have set the ctrl->setInterfaceId(101); in the function
UDPBasicBurst::sendToUDPDelayed
Despite this I am not able to get the broadcast working. Is there some
other code as well that needs to be modified.
Thank you very much for your help,
Neil.
--------------------------------------------------
From: "neil mehta" <neilb...@gmail.com>
Sent: Monday, April 12, 2010 8:21 PM
To: "omnetpp" <omn...@googlegroups.com>
Subject: [Omnetpp-l] UDP Broadcast
> --
> You received this message because you are subscribed to the Google Groups
> "omnetpp" group.
> To post to this group, send email to omn...@googlegroups.com.
> To unsubscribe from this group, send email to
> omnetpp+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/omnetpp?hl=en.
>
>
On Apr 12, 3:41 pm, "Alfonso Ariza" <aariza...@hotmail.com> wrote:
> Are you working with the inet-framework or with the inetmanet?
> the broadcast UDP is supported in inetmanet only
>
> --------------------------------------------------
> From: "neil mehta" <neilbme...@gmail.com>
> Sent: Monday, April 12, 2010 8:21 PM
> To: "omnetpp" <omn...@googlegroups.com>
> Subject: [Omnetpp-l] UDP Broadcast
>
> > Hello,
>
> > I am trying to use the BasicBurst UDP app on omnetpp 4.0. for
> > broadcasting to all neighbours in a wireless adhoc scenario. For this
> > I set the destAddresses ="Broadcast". I also tried "255.255.255.255"
> > and "10.0.0.1". Here, the network ip starts from 10.0.0.x.
> > Also, according to this thread
> >http://groups.google.com/group/omnetpp/browse_thread/thread/4dc2feef3...
I tried the UDPBasicApp (modifying the code to allow broadcast
as above, i.e. setting interface ID to 101 in AppBase.cc) and found
that the broadcast works at the sender side. However, at the receiver
side there is partial work. The packet is received correctly but
dropped at the UDP layer (the packet is dropped due to wrong port). I
dont understand why this would happen. I set the
destPort=localPort=1234 in the UDPApp in my .ini file.
Thank you,
Neil.
IP UDP Helper. Allowing local delivery
** Event #56 T=1.001027516919 scenario.host[4].udp (UDP, id=82), on
`UDPBasicAppData-0' (UDPPacket, id=103)
Packet UDPBasicAppData-0 received from network, dest port 1234
No socket registered on port 1234
sending ICMP error ICMP-error-#1-type13-code3
** Event #57 T=1.001027516919
scenario.host[4].networkLayer.errorHandling (ErrorHandling, id=90), on
`ICMP-error-#1-type13-code3' (ICMPMessage, id=104)
Error Handler: ICMP message received:
Type: 13 Code: 3 Bytelength: 540 Src: <unspec> Dest: 255.255.255.255
Time: 1.001027516919
Neil.
The application haven't registered the socket
bindToPort(localPort);
--------------------------------------------------
From: "neil mehta" <neilb...@gmail.com>
Sent: Tuesday, April 13, 2010 1:21 AM
To: "omnetpp" <omn...@googlegroups.com>
Subject: [Omnetpp-l] Re: UDP Broadcast
Thanks,
Neil.
On Apr 13, 5:43 am, "Alfonso Ariza" <aariza...@hotmail.com> wrote:
> See the message "No socket registered on port 1234"
>
> The application haven't registered the socket
>
> bindToPort(localPort);
>
> --------------------------------------------------
> From: "neil mehta" <neilbme...@gmail.com>
https://github.com/aarizaq/inetmanet-2.0/tree/inetmanet-2.2/examples/manetrouting/net80211_flood
this example uses flooding and broadcast
--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.