RTS/CTS not working with ideal Radio Medium

259 views
Skip to first unread message

Ibk Akinyemi

unread,
Sep 20, 2016, 3:10:07 PM9/20/16
to OMNeT++ Users
Hello

I am trying to simulate the IEEE 802.11e network with RTS/CTS mode of transmission in Ideal physical Medium.  The RTS/CTS did not work.  I get the error - Simulation terminated with exit code: 139

When I change to Basic mode, it works well.  Please I need urgent help.


The NED and INI files are as follows:

NED file


import inet.node.wireless.AccessPoint;
import inet.node.inet.INetworkNode;
import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
import inet.physicallayer.idealradio.IdealRadioMedium;
import inet.visualizer.integrated.IntegratedCanvasVisualizer;
import inet.physicallayer.ieee80211.packetlevel.Ieee80211RadioMedium;

@license(LGPL);
//
// TODO documentation
//
network Network
{
    parameters:     
        string nodeType = default("edcaWirelessHost");
        @display("bgb=605,300");

    submodules:
        node0: <nodeType> like INetworkNode {
            @display("p=416,45");
        }
        node1: <nodeType> like INetworkNode { 
            @display("p=194,36");
        }
        node2:  <nodeType> like INetworkNode { 
            @display("p=516,122");
        }     
        host: <nodeType> like INetworkNode { 
            @display("p=315,265");
        }
        ap: AccessPoint {
            @display("p=307,123;r=350");
        }
        ipv4networkconfigurator: IPv4NetworkConfigurator {
            parameters:
                @display("p=100,169");
                config = xml("<config><interface node='*' address='145.236.x.x' netmask='255.255.0.0'/></config>");
        }
        radioMedium: Ieee80211RadioMedium {
            parameters:
                @display("p=184,239");
        }
        visualizer: IntegratedCanvasVisualizer {
            parameters:
                @display("p=100,50");
        }
}


INI file

[General]

network = ac_one.simulations.Network
record-eventlog = true
tkenv-plugin-path = ../../../etc/plugins
cmdenv-express-mode = false
debug-on-errors = true
sim-time-limit = 6s


**.networkLayer.configurator.networkConfiguratorModule = "ipv4networkconfigurator"
**.channel.throughput.result-recording-modes = all
**.networkLayer.arpType = "GlobalARP"
**.networkLayerType = "IPv4NetworkLayer"

#**.constraintAreaMinX = 0m
#**.constraintAreaMinY = 0m
#**.constraintAreaMinZ = 0m
#**.constraintAreaMaxX = 600m
#**.constraintAreaMaxY = 400m
#**.constraintAreaMaxZ = 0m

**.mac.rtsThresholdBytes = 30B
*.radioMedium.analogModelType ="IdealAnalogModel"
**.wlan[*].radioType = "Ieee80211IdealRadio"


# AP
**.ap.wlan[*].radio.transmitter.communicationRange = 500m
**.ap.wlan[*].mac.address = "10:00:00:00:00:00"
**.ap.wlan[*].macType = "Ieee80211CompatibleMac"
*.ap.relayUnitType = "MACRelayUnit"
*.ap.macTableType ="MACAddressTable"

# host node/Sink
**.host.numUdpApps = 2
**.host.udpApp[*].typename = "UDPSink"
**.host.udpType = "UDP"
**.host.udpApp[0].localPort = 21
**.host.udpApp[1].localPort = 4000
**.host.udpApp[*].startTime = 0s
**.host.udpApp[*].stopTime = 5.9s
**.host.wlan[*].mac.address = "20:00:00:00:00:00"

# node
**.node*.udpApp[*].typename = "UDPBasicApp"
**.node*.udpApp[*].destAddresses = "host"
**.udpApp[*].messageLength = 1000B
**.udpApp[*].sendInterval = 0.00005s
**.udpApp[*].stopTime = 5.5s


#Nic
**.wlan[*].mac.controlBitrate = 6Mbps
**.wlan[*].bitrate = 54Mbps
**.wlan[*].opMode = "a"
**.wlan[*].mac.slotTime = 0.000009s
**.wlan[*].mac.upperMac.sifsTime = 0.000016s
**.wlan[*].mac.upperMac.cwMin0 = 31 #5
**.wlan[*].mac.upperMac.cwMin1 = 31 #5
**.wlan[*].mac.upperMac.cwMin2 = 15 #100
**.wlan[*].mac.upperMac.cwMin3 = 7 #60
**.wlan[*].mac.upperMac.cwMax0 = 1023 #5
**.wlan[*].mac.upperMac.cwMax1 = 1023 #5
**.wlan[*].mac.upperMac.cwMax2 = 31 #100
**.wlan[*].mac.upperMac.cwMax3 = 15 #60
**.wlan[*].mac.upperMac.useFullAckTimeout = true
**.wlan[*].classifierType = "ExampleQoSClassifier"

**.wlan[*].mgmt.accessPointAddress = "10:00:00:00:00:00"
**.wlan[*].radio.bandName = "5 GHz"
**.wlan[*].radio.transmitter.communicationRange = 500m
**.wlan[*].radio.displayCommunicationRange = true
**.wlan[*].radio.receiver.ignoreInterference = true
**.wlan[*].radio.transmitter.headerBitLength = 120b

**.mac.maxQueueSize = 14
**.mac.retryLimit = 7

**.node0.numUdpApps = 2
**.node0.udpApp[0].startTime = 0.598s
**.node0.udpApp[0].destPort = 21
**.node0.udpApp[0].packetName = "Node0 FTP"

**.node0.udpApp[1].startTime = 0.605s
**.node0.udpApp[1].destPort = 4000
**.node0.udpApp[1].packetName = "Node0 Video"
**.node0.wlan[0].mac.address = "30:00:00:00:00:00"

**.node1.numUdpApps = 2
**.node1.udpApp[0].startTime = 0.5985s
**.node1.udpApp[0].destPort = 21
**.node1.udpApp[0].packetName = "Node1 FTP"

**.node1.udpApp[1].startTime = 0.6005s
**.node1.udpApp[1].destPort = 4000
**.node1.udpApp[1].packetName = "Node1 Video"
**.node1.wlan[0].mac.address = "40:00:00:00:00:00"

**.node2.numUdpApps = 2
**.node2.udpApp[0].startTime = 0.601s
**.node2.udpApp[0].destPort = 21
**.node2.udpApp[0].packetName = "Node2 FTP"

**.node2.udpApp[1].startTime = 0.6006s
**.node2.udpApp[1].destPort = 4000
**.node2.udpApp[1].packetName = "Node2 Video"
**.node2.wlan[0].mac.address = "50:00:00:00:00:00"

*.visualizer.mediumVisualizer.displaySignals = true
**.visualizer.physicalLinkVisualizer.packetNameFilter = "Video Packet"
**.visualizer.networkRouteVisualizer.packetNameFilter = "Video Packet"

*.radioMedium.recordCommunicationLog = true
**.wlan[*].radio.transmitter.interferenceRange = 0m



Please I really need help urgently
Thank you



Alfonso Ariza Quintana

unread,
Sep 21, 2016, 11:10:39 AM9/21/16
to omn...@googlegroups.com

It was an error in the CTS/RTS mechanism, depending of the version it is possible that you don’t have the patch installed

 

Check this, it has information about the patch

https://github.com/inet-framework/inet/commit/2c051a8c7c96afd8932e97a4727902930e1b3698

--
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 https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

Ibk Akinyemi

unread,
Sep 21, 2016, 11:28:20 AM9/21/16
to OMNeT++ Users
I think the problem is the RTS frame goes to the AP and not the destination node directly.  Please, how can I get this to work properly.
Help is really needed and appreciated

Ibk Akinyemi

unread,
Sep 21, 2016, 11:35:35 AM9/21/16
to OMNeT++ Users, aari...@hotmail.com
Thank you so much for the response. 
Please, how do I install this patch?

Alfonso Ariza Quintana

unread,
Sep 21, 2016, 11:37:01 AM9/21/16
to omn...@googlegroups.com

Sorry but I don’t understand, you are working in infrastructure mode but you want that the nodes could communicate directly. With 802.11 it is impossible, if you are working in infrastructure mode the nodes must communicate via AP.

 

If the Node1 wants communicate with node2 The sequence with RTS/CTS is

 

Node1 sends Rts to AP

AP sends CTS to Node1

Node1 sends data to Ap

Ap sends RTS to Node2

Node2 sends CTS to AP

Ap sends data to Node2

 

 

 

De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de Ibk Akinyemi


Enviado el: miércoles, 21 de septiembre de 2016 17:28
Para: OMNeT++ Users <omn...@googlegroups.com>

--

Ibk Akinyemi

unread,
Sep 21, 2016, 12:04:26 PM9/21/16
to OMNeT++ Users, aari...@hotmail.com
HI
Thanks for your response.
I understand the sequence.  The AP was not sending the CTS so I thought maybe it was because receiver was AP MAC address and destination IP was for destination node. 
Problem now is how do i install the Patch? Do i just install the latest INET 3.4.0?

Ibk Akinyemi

unread,
Sep 22, 2016, 1:43:49 AM9/22/16
to OMNeT++ Users
Hello Alfonso
I have the INET 3.4.0 and Omnet - 5.0 installed which i believe are the latest versions, still the access point is not sending the CTS message.  Please, how can I get this to work. This is really urgent for me

Ibk Akinyemi

unread,
Sep 22, 2016, 2:30:12 AM9/22/16
to OMNeT++ Users

The CTS works radio and radio medium is set to ScalarAnalogModel but not  IdealAnalogModel.

Ibk Akinyemi

unread,
Sep 22, 2016, 4:10:24 AM9/22/16
to OMNeT++ Users


The CTS works when radio and radio medium are both set to ScalarAnalogModel. 
 
I need to do my simulation with an Ideal wireless medium so I set wlan radio to Ieee80211IdealRadio and radio medium to use  IdealAnalogModel, with this, CTS is not sent.
please what am I doing wrong?

Alfonso Ariza Quintana

unread,
Sep 22, 2016, 5:53:09 AM9/22/16
to omn...@googlegroups.com

CTS/RTS is independent of the radio medium, is a characteristic of the Mac layer, you can enable/disable with independent of the medium.

 

 

De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de Ibk Akinyemi
Enviado el: jueves, 22 de septiembre de 2016 10:10
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] Re: RTS/CTS not working with ideal Radio Medium

 

The CTS works when radio and radio medium are both set to ScalarAnalogModel. 

 

I need to do my simulation with an Ideal wireless medium so I set wlan radio to Ieee80211IdealRadio and radio medium to use  IdealAnalogModel, with this, CTS is not sent.

please what am I doing wrong?

--

Alfonso Ariza Quintana

unread,
Sep 22, 2016, 5:54:14 AM9/22/16
to omn...@googlegroups.com

You can download the latest version directly from gihub

 

 

De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de Ibk Akinyemi
Enviado el: jueves, 22 de septiembre de 2016 7:44
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] Re: RTS/CTS not working with ideal Radio Medium

 

Hello Alfonso


I have the INET 3.4.0 and Omnet - 5.0 installed which i believe are the latest versions, still the access point is not sending the CTS message.  Please, how can I get this to work. This is really urgent for me

--

Ibk Akinyemi

unread,
Sep 22, 2016, 6:03:14 AM9/22/16
to OMNeT++ Users, aari...@hotmail.com
Yes.  You are right

I looked more closely and realised i have the problem when the AP radioType is set to IEEE80211IdealRadio.  When AP radioType is just IdealRadio, CTS works but not sure if using AP with just IdealRadio is correct since i am simulating IEEE802.11 network

Ibk Akinyemi

unread,
Sep 22, 2016, 6:09:46 AM9/22/16
to OMNeT++ Users, aari...@hotmail.com
What i have done is change settings one at a time and i realised the CTS is not sent when AP radioType is set to Ieee80211IdealRadio
Reply all
Reply to author
Forward
0 new messages