AODV works with thee nodes but not with 2 nodes

47 views
Skip to first unread message

Eric Gamess

unread,
Jun 24, 2011, 2:08:42 PM6/24/11
to omnetpp
Hi all,

I am doing a small network to get familiar with AODV. The network
has three static wireless nodes (host1, host2, and host3). Since I can
have issue
with the distance, the distance between nodes are 20 meters. I am just
sending
some UDP packets from host1 to host2. The experiment functions well
when
host3 is present (i.e., I have the 3 hosts: host1, host2, and host3).
When I
comment the line for host3 in the NED file (i.e. I have only two
hosts: host1 and host2),
host2 does not receive the UDP packets!!! I can see the AODV RREQ send
by
host1, but host2 never answer with a AODV RREP. It is not question of
distance.

Thank you for your help. Here is a small topology and the NED and INI
files.


host1 host2 host3
(150,300) (170,300) (190,300)



------------------------ NED
FILE----------------------------------------------------------
package inet.examples.eric24;

import inet.world.ChannelControlExtended;
import inet.nodes.adhoc.MobileManetRoutingHost;
import inet.networklayer.autorouting.FlatNetworkConfigurator;


module MyWirelessHost extends MobileManetRoutingHost
{
parameters:
manetrouting.manetmanager.routingProtocol = "AODV";

mobilityType = "inet.mobility.NullMobility";

wlan.mgmt.frameCapacity = 10;

wlan.mac.maxQueueSize = 14;
wlan.mac.bitrate = 54.0 Mbps;
wlan.mac.basicBitrate = 6.0 Mbps;
wlan.mac.rtsThresholdBytes = 2346 B;
wlan.mac.retryLimit = 7;
wlan.mac.cwMinData = 7;
wlan.mac.cwMinBroadcast = 31;

wlan.radio.transmitterPower = 2.0 mW;
wlan.radio.bitrate = 54.0 Mbps;

wlan.radio.sensitivity = -90.00 dBm;
wlan.radio.berTableFile="per_table_80211g_Trivellato.dat";

@display("r=,,#707070");
@display("i=device/pocketpc_s");
}


network MobileAdHocNetwork
{
parameters:
double playgroundSizeX = 700;
double playgroundSizeY = 400;

submodules:
host1: MyWirelessHost;
host2: MyWirelessHost;
host3: MyWirelessHost; // THIS IS THE LINE TO COMMENTS SO IT DOES
NOT WORK

channelcontrol: ChannelControlExtended
{
parameters:
playgroundSizeX = playgroundSizeX;
playgroundSizeY = playgroundSizeY;

pMax = 2.0 mW;

@display("p=200,50");
}

configurator: FlatNetworkConfigurator
{
parameters:
networkAddress = "190.169.74.0";
netmask = "255.255.255.0";
@display("p=500,50");
}

connections allowunconnected:
}
---------------------------------------------------------------------------------------------------------


-----------------------------OMNETPP.INI
FILE--------------------------------------
[General]
network = MobileAdHocNetwork
tkenv-plugin-path = ../../../etc/plugins
**.debug = true
**.coreDebug = false

**.host1.mobility.x = 150
**.host1.mobility.y = 300
**.host1.numUdpApps = 1
**.host1.udpAppType = "UDPBasicApp"
**.host1.udpApp[0].localPort = 3000
**.host1.udpApp[0].destPort = 3000
**.host1.udpApp[0].messageLength = 1000 B
**.host1.udpApp[0].messageFreq = 10.0 s
**.host1.udpApp[0].destAddresses = "host2"

**.host2.mobility.x = 170
**.host2.mobility.y = 300
**.host2.numUdpApps = 1
**.host2.udpAppType = "UDPSink"
**.host2.udpApp[0].localPort = 3000

**.host3.mobility.x = 190
**.host3.mobility.y = 300
**.host3.numUdpApps = 1
**.host3.udpAppType = "UDPSink"
**.host3.udpApp[0].localPort = 3000

Alfonso Ariza Quintana

unread,
Jun 26, 2011, 2:32:05 PM6/26/11
to omn...@googlegroups.com
the packets are received, the problem is that the wait_on_reboot is set to true and the first 15 second the aodv module won't send RREP, after this time the module will send RREP

Solution
   wait a time bigger that 15 seconds
   set wait_on_reboot to false


> Date: Fri, 24 Jun 2011 11:08:42 -0700
> Subject: [Omnetpp-l] AODV works with thee nodes but not with 2 nodes
> From: ega...@gmail.com
> To: omn...@googlegroups.com
> --
> 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.
>

Eric Gamess

unread,
Jun 26, 2011, 11:16:06 PM6/26/11
to omnetpp
Thank you very much Alfonso, that was the problem.
Best.

Eric.

claudio savaglio

unread,
Nov 21, 2015, 7:27:53 AM11/21/15
to OMNeT++ Users, aari...@hotmail.com
Hi, I have the same problem if I try to add a WirelessHost in the wiredAndWirelessHostWithAP...in detail, there is always a wirelessHost which not receive any packets, even if they are sent, by other wirelessHost...if the same wirelessHost is connected with a wiredHost, evertyhing is ok....attached there is my omnet..any help??

"[General]
network = WiredAndWirelessHostsWithAP
sim-time-limit = 400s
tkenv-plugin-path = ../../../etc/plugins

**.addDefaultRoutes = false

**.*Host*.numUdpApps = 1

**.wirelessHost1.udpApp[0].typename = "UDPBasicApp"
**.wirelessHost2.udpApp[0].typename = "UDPBasicApp"
**.wirelessHost3.udpApp[0].typename = "UDPBasicApp"
**.wiredHost1.udpApp[0].typename = "UDPBasicApp"

**.wirelessHost1.udpApp[0].localPort = 1000
**.wirelessHost2.udpApp[0].localPort = 1000
**.wirelessHost3.udpApp[0].localPort = 1000
**.wiredHost1.udpApp[0].localPort = 1000

**.wiredHost1.udpApp[0].destAddresses = "wirelessHost3"
**.wirelessHost1.udpApp[0].destAddresses = "wiredHost1"
**.wirelessHost2.udpApp[0].destAddresses = "wirelessHost1"
**.wirelessHost3.udpApp[0].destAddresses = "wirelessHost2"
#**.wirelessHost1.udpApp[1].destAddresses = "wiredHost1"

**.*Host*.udpApp[0..].destPort = 1000
**.*Host*.udpApp[0..].messageLength = 100B
**.*Host*.udpApp[0..].sendInterval = 1s
**.*Host*.udpApp[0..].stopTime = 300s"

NED

"//
// This program is property of its copyright holder. All rights reserved.
//

package inet.examples.wireless.wiredandwirelesshostswithap;

import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
import inet.node.ethernet.Eth100M;
import inet.node.inet.Router;
import inet.node.inet.StandardHost;
import inet.node.inet.WirelessHost;
import inet.node.wireless.AccessPoint;
import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;


network WiredAndWirelessHostsWithAP
{
   
    @display("bgb=503,221");
    submodules:
        wirelessHost1: WirelessHost {
            @display("p=26,90");
        }

        wirelessHost2: WirelessHost {
            @display("p=244,148");
        }
        wirelessHost3: WirelessHost {
            @display("p=313,18");
        }

        wiredHost1: StandardHost {
            @display("p=450,134");
        }
        router: Router {
            @display("p=296,69");
        }
        accessPoint: AccessPoint {
            @display("p=205,69");
        }
        accessPoint2: AccessPoint {
            @display("p=391,69");
        }
        configurator: IPv4NetworkConfigurator {
            parameters:
                assignDisjunctSubnetAddresses = false;
                @display("p=367,165");
        }
        radioMedium: Ieee80211ScalarRadioMedium {
            @display("p=115,165");
        }
    connections:
        accessPoint.ethg++ <--> Eth100M <--> router.ethg++;
        accessPoint2.ethg++ <--> Eth100M <--> router.ethg++;
        accessPoint2.ethg++ <--> Eth100M <--> wiredHost1.ethg++;

Alfonso Ariza Quintana

unread,
Nov 24, 2015, 3:24:41 AM11/24/15
to omn...@googlegroups.com

You are blended nodes that Work in mode ad-hoc with nodes that work in infrastructure mode, this can’t work.

Or the nodes are in infrastructure mode or the nodes are in ad-hoc mode.

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages