change interArrivalTime

33 views
Skip to first unread message

piotr.dzierwa

unread,
Feb 3, 2010, 10:02:13 AM2/3/10
to omn...@googlegroups.com
I'm new user of omnet++. I have problem with interArrivalTime in simple fifo simulation. How can I change interArrivalTime parameter during simulation?
thanks for all answers.
Kefa
--

---------------

Z wyrazami szacunku

mgr inďż˝. Piotr Dzierwa

ďż˝

Mohammad Arouri

unread,
Feb 3, 2010, 10:10:19 AM2/3/10
to omn...@googlegroups.com
u have two ways to set a parameter in the omnet, the first is in the ned file, and the second is in the ini file, i recommend u to see the tic toc example in the tutorial, one of its sub enhancements is to use parameters by using both ini and ned files to achieve this.
 

--

---------------

Z wyrazami szacunku

mgr inż. Piotr Dzierwa

 

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



--
Mohammad Arouri

Life on Dorian

unread,
Feb 3, 2010, 4:57:17 PM2/3/10
to omnetpp
I would usually do it in the "ini" file. Use the "search" function in
omnetpp to search through the inet examples with the key word
"interval", you will see some examples.
It really depends on which protocol you are using.

The following is example for TCP using telnet

**.cli[*].tcpApp[0].thinkTime = 2s
**.cli[*].tcpApp[0].idleInterval = 12s


This is an example for UDP
**.srv[0].udpApp[*].waitInterval = 10ms

However, if you are writing your own protocol, you should follow
Mohammad's suggestion, and go through the TicToc tutorial.


On Feb 4, 4:10 am, Mohammad Arouri <mohammadaro...@gmail.com> wrote:
> u have two ways to set a parameter in the omnet, the first is in the ned
> file, and the second is in the ini file, i recommend u to see the tic toc
> example in the tutorial, one of its sub enhancements is to use parameters by
> using both ini and ned files to achieve this.
>

> On Wed, Feb 3, 2010 at 5:02 PM, piotr.dzierwa <piotr.dzie...@gmail.com>wrote:
>
>
>
>
>
> >  I'm new user of omnet++. I have problem with interArrivalTime in simple
> > fifo simulation. How can I change interArrivalTime parameter during
> > simulation?
> > thanks for all answers.
> > Kefa
> > --
>
> > ---------------
>
> > Z wyrazami szacunku
>
> > mgr inż. Piotr Dzierwa
>
> > --
> > 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<omnetpp%2Bunsu...@googlegroups.com >

kefa

unread,
Feb 4, 2010, 2:42:00 AM2/4/10
to omnetpp

Thanks 4 all sugestion. I adjusted the parameter on omnetpp.ini file.
I tested it on SimpleQueueExt.ned example. I wont change this
parameter when for example queue.lenght is over
5. I modified Queue.h nad Queue.cc on queueinglib but I don't know
whether it is a good way an it isn't taking effect.

> > > mgr in¿. Piotr Dzierwa

Reply all
Reply to author
Forward
0 new messages