INET Framework ; Multiple NICS/host

157 views
Skip to first unread message

Mark

unread,
Mar 24, 2010, 1:45:23 PM3/24/10
to omnetpp
Hello All ,

I am relatively new to the INET framework and omnetpp.

I am trying to implement the following scenario. I am trying to
create a Wireless Host with two NICs (both 802.11). (I have seen some
old postings on this issue , but am unable to apply it to my current
situation).

To that end I have added the following lines to WirelessHost.ned
(under nodes/wireless/WirelessHost).

wlan2: Ieee80211NicSTA {
parameters:
@display("p=331,356;q=queue");
}

I have adjusted the network layer gates also , accordingly.

networkLayer: NetworkLayer {
parameters:
proxyARP = false;
@display("p=248,247;q=queue");
gates:
ifIn[(sizeof(pppg)+sizeof(ethg))+2];
ifOut[(sizeof(pppg)+sizeof(ethg))+2];

}

radioIn2 --> wlan2.radioIn;
wlan2.uppergateOut --> networkLayer.ifIn[sizeof(pppg)
+sizeof(ethg)+1];
wlan2.uppergateIn <-- networkLayer.ifOut[sizeof(pppg)
+sizeof(ethg)+1];

I want to include this host in the Ieee802.11 Handover scenario that
comes packaged with INET. (under examples/wireless/handover).

If two APs are in range of the host , I want both the NICs to
associate themselves and transfer data.

To this end I have modified the ini file like so :

# channel physical parameters
*.channelcontrol.carrierFrequency = 2.4GHz
*.channelcontrol.pMax = 25.0mW
*.channelcontrol.sat = -110dBm
*.channelcontrol.alpha = 2
*.channelcontrol.numChannels = 10

**.ap1.wlan.mgmt.ssid = "AP1"
**.ap2.wlan.mgmt.ssid = "AP2"
**.ap3.wlan.mgmt.ssid = "AP3"
**.ap*.wlan.mgmt.beaconInterval = 100ms
**.wlan.mgmt.numAuthSteps = 4

*.ap1.wlan.radio.transmitterPower = 2.0mW
*.ap2.wlan.radio.transmitterPower = 2.0mW
*.ap3.wlan.radio.transmitterPower = 15.0mW

**.ap1.wlan.radio.channelNumber = 2
**.ap2.wlan.radio.channelNumber = 4
**.ap3.wlan.radio.channelNumber = 3
**.host.wlan.radio.channelNumber = 0 # just initially -- it'll scan
**.host.wlan2.radio.channelNumber = 1 # just initially -- it'll scan

# wireless configuration
**.wlan.agent.activeScan = true
**.wlan.agent.channelsToScan = "2 4 6 8 " # "" means all
**.wlan.agent.probeDelay = 0.1s
**.wlan.agent.minChannelTime = 0.15s
**.wlan.agent.maxChannelTime = 0.3s
**.wlan.agent.authenticationTimeout = 5s
**.wlan.agent.associationTimeout = 5s

**.wlan2.agent.activeScan = true
**.wlan2.agent.channelsToScan = "1 3 5 7 9 " # "" means all
**.wlan2.agent.probeDelay = 0.2s
**.wlan2.agent.minChannelTime = 0.3s
**.wlan2.agent.maxChannelTime = 0.5s
**.wlan2.agent.authenticationTimeout = 10s
**.wlan2.agent.associationTimeout = 10s

However , once the host is out of range , both the nics try to scan
the channel at the same time and I get an error "processScanCommand:
scanning is already in progress".

Please suggest where I should start looking into the code to get it to
behave as I would want it.

Thank You

Alberto Cortés

unread,
Mar 25, 2010, 5:30:26 AM3/25/10
to omn...@googlegroups.com
Hello Mark.

Please, see INETMANET's WirelessHostMultiRadio [1]. It's a wireless
host with multiple wireless NICs

[1] http://github.com/inetmanet/inetmanet/blob/master/src/nodes/wireless/WirelessHostMultiRadio.ned

> --
> 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.
>
>

--
Alberto Cortés
Telematic Engineering Dept. at UC3M

Storage Dump

unread,
Mar 25, 2010, 10:19:29 AM3/25/10
to omn...@googlegroups.com
Hello Alberto , 

Thank you for your response. I did try something like this. (I used another radio input for my second NIC).

Could you please tell me how to ensure that both NICS associate themselves with an AP? (Currently only one NIC associates with an AP)?

Also , will this require link layer modifications? 

Thank You

Alberto Cortés

unread,
Mar 25, 2010, 11:01:27 AM3/25/10
to omn...@googlegroups.com
To associate multiple wireless NIC with the same AP, just follow the
same steps you would do to associate with several AP, that is, just
configure the mgmt.ssid parameter of each NIC with the SSID of the AP.

As far as I know you don't need to do anything special to use several
NICs, just do the same that with one NIC but several times :)

Storage Dump

unread,
Mar 26, 2010, 10:38:09 PM3/26/10
to omn...@googlegroups.com
Hello Alberto, 

Thank you for your suggestion. (To the best of my understanding , I have tried what you have told me , but unfortunately I am not getting it to work). 

However , I think I may not have listed my situation clearly enough.

I have a host:StandardHost which has 2 NICS called wlan and wlan2. There are three APs , ap1(ssid AP1) , ap2(ssid AP2) , ap3(ssid AP3) .

When I try to access the parameter you have suggested (that is)

*.host.wlan.mgmt.ssid <-- there exists no parameter called ssid.

The drop down after *.host.wlan.mgmt. consists of various other options (partition id etc) . 

Would it help if I attached my files ? (1 ini and 1 ned file)

Thank You
Praveen

Alberto Cortés

unread,
Mar 29, 2010, 8:48:35 AM3/29/10
to omn...@googlegroups.com
Sorry, I can not help you with INET's StandardHost, as I told you, I
use INETMANET's WirelessHostMultiRadio.
Reply all
Reply to author
Forward
0 new messages