Create a manet simulation scenario

397 views
Skip to first unread message

agustinus dimas Fitriyanto

unread,
Mar 7, 2015, 4:19:25 AM3/7/15
to omn...@googlegroups.com
hi , I want to create a manet simulation scenario with routing protocols OLSR and use tcp apps. 
Number of mobile node is 30.
what needs to be imported to OLSR.ned ?

Thank you.

Alfonso Ariza Quintana

unread,
Mar 9, 2015, 4:34:48 AM3/9/15
to omn...@googlegroups.com

In the example aodv you can chose OLSR like routing protocol, you can use the example like start point

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

agustinus dimas Fitriyanto

unread,
Mar 13, 2015, 6:14:08 AM3/13/15
to omn...@googlegroups.com, aari...@hotmail.com
thank you for the help.
which one should I choose between OLSR.ned and OLSROPT.ned to nodes with OLSR routing ?

Alfonso Ariza Quintana

unread,
Mar 13, 2015, 6:20:34 AM3/13/15
to omn...@googlegroups.com

OLSR, OLSROPT is an experimental variant that tries to optimize the computation time

agustinus dimas Fitriyanto

unread,
Mar 13, 2015, 6:59:17 AM3/13/15
to omn...@googlegroups.com, aari...@hotmail.com
what is the difference between OLSR and OLSROPT ?
which one should I use for the standard OLSR routing ? whether OLSR or OLSROPT ?

Alfonso Ariza Quintana

unread,
Mar 13, 2015, 7:07:55 AM3/13/15
to omn...@googlegroups.com

OLSR

agustinus dimas Fitriyanto

unread,
Mar 13, 2015, 7:49:34 AM3/13/15
to omn...@googlegroups.com, aari...@hotmail.com
Okay. thank you very much...

agustinus dimas Fitriyanto

unread,
Mar 16, 2015, 10:57:07 PM3/16/15
to omn...@googlegroups.com, aari...@hotmail.com
I got this error..in my OLSR connection...can you help me..

package inet.nodes.olsr;

import inet.networklayer.manetrouting.OLSR;
import inet.nodes.inet.WirelessHost;

module OLSRRouter extends WirelessHost
{
    parameters:
        @display("i=device/cellphone");
        IPForward = true;
        wlan[*].mgmtType = default("Ieee80211MgmtAdhoc");

    submodules:
        olsr: OLSR {
            @display("p=544,294");
        }
    connections:
        networkLayer.igmpOut --> olsr.from_ip;
        networkLayer.igmpIn --> olsr.to_ip; //this connection is error

Alfonso Ariza Quintana

unread,
Mar 17, 2015, 4:50:33 AM3/17/15
to omn...@googlegroups.com

See the AdhocHost node,

 

It is enough to set in the ini file

**.manetRouting = “OLSR”

agustinus dimas Fitriyanto

unread,
Mar 23, 2015, 11:10:45 PM3/23/15
to omn...@googlegroups.com, aari...@hotmail.com
Okay, i am done with OLSR node and routing protocol. And now, where i can see an example of a file transfer using protocol UDP and TCP ?

Alfonso Ariza Quintana

unread,
Mar 24, 2015, 4:45:37 AM3/24/15
to omn...@googlegroups.com

The basic routing examples use UDP

And the inet examples usually use TCP

Fayruz Rahma

unread,
Mar 25, 2015, 3:43:33 AM3/25/15
to omn...@googlegroups.com


On Tuesday, March 24, 2015 at 10:10:45 AM UTC+7, agustinus dimas Fitriyanto wrote:
Okay, i am done with OLSR node and routing protocol. And now, where i can see an example of a file transfer using protocol UDP and TCP ?

Example of TCP file transfer: /inet/examples/inet/tcpclientserver
Example of UDP file transfer: /inet/examples/inet/udpburst 

agustinus dimas Fitriyanto

unread,
Apr 3, 2015, 9:21:03 AM4/3/15
to omn...@googlegroups.com
Thank you for your help....

agustinus dimas Fitriyanto

unread,
Apr 3, 2015, 9:21:33 AM4/3/15
to omn...@googlegroups.com, aari...@hotmail.com
Thank you for your help..

agustinus dimas Fitriyanto

unread,
Apr 14, 2015, 1:25:01 PM4/14/15
to omn...@googlegroups.com


I have warning in omnetpp.ini and my udpapp is not work...
Can you help me ?

This my omnetpp.ini..

[General]
network = OLSRNetwork
record-eventlog = true
num-rngs = 3
sim-time-limit = 100s
cmdenv-express-mode = true
warnings = true
tkenv-plugin-path = ../../../etc/plugins
seed-0-mt = 5
**.coreDebug = false
#**.host[*].tcpType = "TCP"
**.host[*].routingProtocol = "OLSR"
**.mobility.rng-0 = 1
**.wlan[*].mac.rng-0 = 2
**.drawCoverage=true

# channel physical parameters
*.numHosts = 5
*.channelControl.carrierFrequency = 2.4GHz
*.channelControl.pMax = 2.0mW
*.channelControl.sat = -110dBm
*.channelControl.alpha = 2
*.channelControl.numChannels = 1

# mobility
**.host[*].mobilityType = "MassMobility"
**.mobility.constraintAreaMinZ = 0m
**.mobility.constraintAreaMaxZ = 0m
**.mobility.constraintAreaMinX = 0m
**.mobility.constraintAreaMinY = 0m
**.mobility.constraintAreaMaxX = 600m
**.mobility.constraintAreaMaxY = 600m
**.vector-recording = true
**.mobility.initFromDisplayString = false
**.mobility.changeInterval = truncnormal(2s, 0.5s)
**.mobility.changeAngleBy = normal(0deg, 30deg)
**.mobility.speed = truncnormal(20mps, 8mps)
**.mobility.updateInterval = 100ms
**.host[*].**.channelNumber = 0

#ip settings
**.routingFile = ""
**.ip.procDelay = 0us

#arp configuration
#**.arp.retryTimeout = 1s
#**.arp.retryCount = 3
#**.arp.cacheTimeout = 100s
**.arp.globalARP = true

# ping app (host[0] pinged by others)
#*.host[0].numPingApps = 1
#*.host[0].pingApp[0].startTime = uniform(1s,5s)
#*.host[0].pingApp[0].printPing = true

#tcp apps host 1
#**.host[1].numTcpApps = 1
#**.host[1].tcpApp[*].typename = "TCPSessionApp"
#**.host[1].tcpApp[*].sendBytes = 10MiB
#**.host[1].tcpApp[*].active = true
#**.host[1].tcpApp[*].localPort = 10020
#**.host[1].tcpApp[*].localAddress = "host[1]"
#**.host[1].tcpApp[*].connectAddress = "host[3]"
#**.host[1].tcpApp[*].connectPort = 10021
#**.host[1].tcpApp[*].tOpen = 0.2s
#**.host[1].tcpApp[*].tSend = 0.4s
#**.host[1].tcpApp[*].tClose = 100s
#**.host[1].tcpApp[*].sendScript = ""

#tcp apps host 3
#**.host[3].numTcpApps = 1
#**.host[3].tcpApp[*].typename = "TCPSinkApp"
#**.host[3].tcpApp[*].localAddress = "host[3]"
#**.host[3].tcpApp[*].localPort = 10021

# tcp settings
#**.tcp.advertisedWindow = 65535                      # in bytes, corresponds with the maximal receiver buffer capacity (Note: normally, NIC queues should be at least this size)
#**.tcp.delayedAcksEnabled = false                    # delayed ACK algorithm (RFC 1122) enabled/disabled
#**.tcp.nagleEnabled = true                           # Nagle's algorithm (RFC 896) enabled/disabled
#**.tcp.limitedTransmitEnabled = false                # Limited Transmit algorithm (RFC 3042) enabled/disabled (can be used for TCPReno/TCPTahoe/TCPNewReno/TCPNoCongestionControl)
#**.tcp.increasedIWEnabled = false                    # Increased Initial Window (RFC 3390) enabled/disabled
#**.tcp.sackSupport = true                            # Selective Acknowledgment (RFC 2018, 2883, 3517) support (header option) (SACK will be enabled for a connection if both endpoints support it)
#**.tcp.windowScalingSupport = false                  # Window Scale (RFC 1323) support (header option) (WS will be enabled for a connection if both endpoints support it)
#**.tcp.timestampSupport = false                      # Timestamps (RFC 1323) support (header option) (TS will be enabled for a connection if both endpoints support it)
#**.tcp.mss = 500                                     # Maximum Segment Size (RFC 793) (header option)
#**.tcp.tcpAlgorithmClass = "TCPReno"                 # TCPReno/TCPTahoe/TCPNewReno/TCPNoCongestionControl/DumbTCP
#**.tcp.recordStats = true                            # recording of seqNum etc. into output vectors enabled/disabled

# UDPBasicApp / UDPSink
#**.host[*].numUdpApps = 1
#**.host[*].udpApp[0].typename = "UDPBasicApp"
#**.host[*].udpApp[0].destAddresses = "host[0]"
#**.host[*].udpApp[0].localPort = 9001
#**.host[*].udpApp[0].destPort = 9001
#**.host[*].udpApp[0].messageLength = 1000B
#**.host[*].udpApp[0].startTime = uniform(10s, 30s)
#**.host[*].udpApp[0].sendInterval = uniform(10s, 30s)

**.host[0].numUdpApps = 1
**.host[0].udpApp[*].typename = "UDPVideoStreamSvr"
**.host[0].udpApp[*].localPort = 3000
**.host[0].udpApp[*].videoSize = 1MiB
**.host[0].udpApp[*].sendInterval = 0s
**.host[0].udpApp[*].packetLen = 1000B

**.host[3].numUdpApps = 2
**.host[3].udpApp[*].typename = "UDPVideoStreamCli"
**.host[3].udpApp[0].serverAddress = "host[0]"
**.host[3].udpApp[0].serverPort = 3000
**.host[3].udpApp[0].localPort = 3001
**.host[3].udpApp[0].startTime = 20s

# nic settings
**.wlan[*].mgmtType = "Ieee80211MgmtAdhoc"
**.wlan[*].bitrate = 54Mbps
**.wlan[*].mgmt.frameCapacity = 10
**.wlan[*].mac.address = "auto"
**.wlan[*].mac.maxQueueSize = 14
**.wlan[*].mac.rtsThresholdBytes = 3000B
**.wlan[*].mac.retryLimit = 7
**.wlan[*].mac.cwMinData = 7
**.wlan[*].mac.cwMinMulticast = 31
**.wlan[*].radio.transmitterPower = 2mW
**.wlan[*].radio.thermalNoise = -110dBm
**.wlan[*].radio.sensitivity = -85dBm
**.wlan[*].radio.pathLossAlpha = 2
**.wlan[*].radio.snirThreshold = 4dB
#**.ppp[*].queueType = "DropTailQueue"
#**.ppp[*].queue.frameCapacity = 100

# lifecycle
**.hasStatus = true
**.hasTcp = true
**.hasUdp = true

#olsr
**.manetrouting.Willingness = 3
**.manetrouting.Hello_ival = 2s
**.manetrouting.Tc_ival = 5s
**.manetrouting.Mid_ival = 5s
**.manetrouting.use_mac = 0
**.manetrouting.UseIndex = false
**.manetrouting.reduceFuncionality = false

#**.udpapp.*.vector-recording = true


Here my warning
Capture.JPG
Capture4.JPG

Alfonso Ariza Quintana

unread,
Apr 15, 2015, 3:53:54 AM4/15/15
to omn...@googlegroups.com

You have a network with dynamic creation nodes, at the beginning of the simulation there isn’t nodes. If the nodes are included in the simulation area one by one, there is a high possibility that the server is not in present, and, also the possibility that two nodes could communicate can be very low.

 

 

De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de agustinus dimas Fitriyanto
Enviado el: martes, 14 de abril de 2015 19:25
Para: omn...@googlegroups.com
Asunto: Re: [Omnetpp-l] Create a manet simulation scenario

 

I have warning in omnetpp.ini and my udpapp is not work...



Here my warning




Pada Jumat, 03 April 2015 20.21.03 UTC+7, agustinus dimas Fitriyanto menulis:

Thank you for your help....

Pada Rabu, 25 Maret 2015 14.43.33 UTC+7, Fayruz Rahma menulis:



On Tuesday, March 24, 2015 at 10:10:45 AM UTC+7, agustinus dimas Fitriyanto wrote:

Okay, i am done with OLSR node and routing protocol. And now, where i can see an example of a file transfer using protocol UDP and TCP ?

 

Example of TCP file transfer: /inet/examples/inet/tcpclientserver

Example of UDP file transfer: /inet/examples/inet/udpburst 

--

agustinus dimas Fitriyanto

unread,
Apr 15, 2015, 4:26:27 AM4/15/15
to omn...@googlegroups.com, aari...@hotmail.com
Yes, i know it. I have a network with mobile node. what i must suppose to do with my configuration ? Or, i must to use another udppapp in my configuration.

Alfonso Ariza Quintana

unread,
Apr 15, 2015, 5:32:01 AM4/15/15
to omn...@googlegroups.com

The server must be present always.



Here my warning




Pada Jumat, 03 April 2015 20.21.03 UTC+7, agustinus dimas Fitriyanto menulis:

Thank you for your help....

Pada Rabu, 25 Maret 2015 14.43.33 UTC+7, Fayruz Rahma menulis:



On Tuesday, March 24, 2015 at 10:10:45 AM UTC+7, agustinus dimas Fitriyanto wrote:

Okay, i am done with OLSR node and routing protocol. And now, where i can see an example of a file transfer using protocol UDP and TCP ?

 

Example of TCP file transfer: /inet/examples/inet/tcpclientserver

Example of UDP file transfer: /inet/examples/inet/udpburst 

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

agustinus dimas Fitriyanto

unread,
Apr 25, 2015, 4:07:04 AM4/25/15
to omn...@googlegroups.com, aari...@hotmail.com
Hello, i have problem with my simulation. I use Mobile ad hoc host and TCPApps. And now, my TCPApps not work. And this is my omnetpp.ini

[General]
network = OLSRNetwork
cmdenv-express-mode = true
sim-time-limit = 100s

tkenv-plugin-path = ../../../etc/plugins

**.tcpType ="TCP"
**.numHosts = 20

**.host[*].routingProtocol = "OLSR"
**.channelNumber = 0
**.host[*].mobility.initFromDisplayString = false

# mobility
**.host[*].numRadios = 1
**.host[2..19].numTcpApps = 0
**.host[2..19].mobilityType = "RandomWPMobility"
**.host[2..19].mobility.speed = uniform(20mps,50mps)
**.host[2..19].mobility.waitTime = uniform(3s,8s)
**.constraintAreaMinX = 0m
**.constraintAreaMinY = 0m
**.constraintAreaMinZ = 0m
**.constraintAreaMaxX = 2000m
**.constraintAreaMaxY = 2000m
**.constraintAreaMaxZ = 0m
**.coreDebug = false

# channel physical parameters

*.channelControl.carrierFrequency = 2.4GHz
*.channelControl.pMax = 2.0mW
*.channelControl.sat = -110dBm
*.channelControl.alpha = 2
*.channelControl.numChannels = 1

# wlan nic settings

**.wlan[*].bitrate = 54Mbps
**.wlan[*].mgmtType = "Ieee80211MgmtAdhoc"
**.wlan[*].mgmt.frameCapacity = 10
**.wlan[*].mac.address = "auto"
**.wlan[*].mac.maxQueueSize = 14
**.wlan[*].mac.rtsThresholdBytes = 3000B
**.wlan[*].mac.retryLimit = 4
**.wlan[*].mac.cwMinData = 4

**.wlan[*].radio.transmitterPower = 2mW
**.wlan[*].radio.thermalNoise = -110dBm
**.wlan[*].radio.sensitivity = -85dBm
**.wlan[*].radio.pathLossAlpha = 2
**.wlan[*].radio.snirThreshold = 4dB

# lifecycle
**.hasStatus = true
**.hasTcp = true

#olsr
**.manetrouting.Willingness = 3
**.manetrouting.Hello_ival = 2s
**.manetrouting.Tc_ival = 5s
**.manetrouting.Mid_ival = 5s
**.manetrouting.use_mac = 0
**.manetrouting.UseIndex = false
**.manetrouting.reduceFuncionality = false

#tcp apps host 1
**.host[0].numTcpApps = 1
**.host[0].mobilityType = "StationaryMobility"
**.host[0].mobility.initialX = 1m
**.host[0].mobility.initialY = 1m
**.host[0].tcpApp[*].typename = "TCPSessionApp"
**.host[0].tcpApp[*].sendBytes = 10MiB
**.host[0].tcpApp[*].active = true
**.host[0].tcpApp[*].localPort = 1234
**.host[0].tcpApp[*].connectAddress = "host[1]"
**.host[0].tcpApp[*].connectPort = 1235
**.host[0].tcpApp[*].tOpen = 1s
**.host[0].tcpApp[*].tSend = 1s
**.host[0].tcpApp[*].tClose = 2s
**.host[0].tcpApp[*].sendScript = ""

#tcp apps host 2
**.host[1].numTcpApps = 1
**.host[1].mobilityType = "StationaryMobility"
**.host[1].mobility.initialX = 1999m
**.host[1].mobility.initialY = 1999m
**.host[1].tcpApp[*].typename = "TCPSinkApp"
**.host[1].tcpApp[*].localPort = 1235
**.host[1].tcpApp[*].connectAddress = "host[0]"
**.host[1].tcpApp[*].connectPort = 1234


#ip settings
**.routingFile = ""
**.ip.procDelay = 0us

#arp configuration
**.arp.retryTimeout = 1s
**.arp.retryCount = 3
**.arp.cacheTimeout = 100s

# tcp settings

**.tcp.advertisedWindow = 65535                      # in bytes, corresponds with the maximal receiver buffer capacity (Note: normally, NIC queues should be at least this size)
**.tcp.delayedAcksEnabled = false                    # delayed ACK algorithm (RFC 1122) enabled/disabled
**.tcp.nagleEnabled = true                           # Nagle's algorithm (RFC 896) enabled/disabled
**.tcp.limitedTransmitEnabled = false                # Limited Transmit algorithm (RFC 3042) enabled/disabled (can be used for TCPReno/TCPTahoe/TCPNewReno/TCPNoCongestionControl)
**.tcp.increasedIWEnabled = false                    # Increased Initial Window (RFC 3390) enabled/disabled
**.tcp.sackSupport = true                            # Selective Acknowledgment (RFC 2018, 2883, 3517) support (header option) (SACK will be enabled for a connection if both endpoints support it)
**.tcp.windowScalingSupport = false                  # Window Scale (RFC 1323) support (header option) (WS will be enabled for a connection if both endpoints support it)
**.tcp.timestampSupport = false                      # Timestamps (RFC 1323) support (header option) (TS will be enabled for a connection if both endpoints support it)
**.tcp.mss = 536                                     # Maximum Segment Size (RFC 793) (header option)
**.tcp.tcpAlgorithmClass = "TCPReno"                 # TCPReno/TCPTahoe/TCPNewReno/TCPNoCongestionControl/DumbTCP

**.tcp.recordStats = true                            # recording of seqNum etc. into output vectors enabled/disabled
**.tcpApp[*].dataTransferMode = "bytecount"

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.

Alfonso Ariza Quintana

unread,
Apr 27, 2015, 10:50:50 AM4/27/15
to omn...@googlegroups.com

**.host[2..19].mobilityType = "RandomWPMobility"

**.host[2..19].mobility.speed = uniform(20mps,50mps)

**.host[2..19].mobility.waitTime = uniform(3s,8s)

 

With these parameters I have mi dude that OLSR can work, OLSR doesn’t work well in high mobility conditions

Shaikha Al-Khuder

unread,
May 15, 2015, 4:57:24 PM5/15/15
to omn...@googlegroups.com, aari...@hotmail.com
If I'm trying to modify DSR and AODV. Is there anything else besides these two directories from inet that I should import?

thanks.

adhi rizal

unread,
Sep 19, 2015, 7:48:48 PM9/19/15
to OMNeT++ Users
hi, can you help me ?
i am implement wireless ad hoc with AODV routing.

my question is, can i get number or count HELLO messages that sent by sender and received by receiver ?
in result folder, how can i find them ?

some parameter AODV i used in omnetpp.ini file is like this

**.routingProtocol = "AODVUU"
**.hello_jittering = false
**.optimized_hellos = false #tetap mengirim hello paket walaupun tidak ada active routes
#*.*MN*.manetrouting.broadcastDelay = 1s
*.*MN*.manetrouting.broadcastDelay = 1s
**.manetrouting.EqualDelay = true
**.expanding_ring_search = true
**.local_repair = true
**.rreq_gratuitous = false
**.rt_log_interval = 0
**.unidir_hack = 0
**.internet_gw_mode = 0
**.receive_n_hellos = 10
**.ratelimit = 2
**.llfeedback = false# //1000
**.wait_on_reboot = 0
**.active_timeout = 3000ms
**.internet_gw_address = "0.0.0.0"

douaa raheem

unread,
Mar 9, 2017, 11:43:26 PM3/9/17
to OMNeT++ Users

my project is the same can you help me in it
Reply all
Reply to author
Forward
0 new messages