[ns] Different Packets Priority

2014-08-04 Thread Osama Rehman

Hi,

I have two types of packets. A periodic beacons Hello Packets and an
Event-driven Application Packets. Both these packets are to be
broadcasted by the same nodes in the network.

However, at the time of Application Packets broadcast, i would like to
assign it Higher Transmission Priority as compared to Hello Packets. How
is this possible to implement in ns-2.

Thank you,
Osama Rehman


[ns] Nakagami-m fading Parameters for VANETs

2014-07-26 Thread Osama Rehman

Hello,

I am trying to evaluate the performance of a vehicular ad hoc network
(VANET) based protocol over Nakagami-m fading channel using ns-2 simulator.
I came across various recommended parameters, specially when it comes to
setting the m value for defining fading severity. Following are my
resources:

*1) An empirical model for probability of packet reception in vehicular ad
hoc networks, 2009, recommends a Nakagami-m = 3.*

*2) Broadcast reception rates and effects of priority access in
802.11-based vehicular ad-hoc networks, 2004, recommends the following:*

* Nakagami-m=3, if distance between vehicles are less than 50m.*

* Nakagami-m=1, if distance between vehicles are more than 150m.*

*Nakagami-m=1.5, if distance between vehicles are in between 50m  150m.*

*3) IEEE 802.11-based one-hop broadcast communications: understanding
transmission success and failure under different radio propagation
environments, 2006, recommends Nakagami-m = 1, 3 and 5, while emphasizing
on m = 3.*

*4) A comparative analysis of DSRC and 802.11 over Vehicular Ad hoc
Networks, recommends two scenarios i.e. urban (m=1) and freeway (m=1.5).*

I would like to hear opinion of the research community on which *Nakagami-m*
parameter is the most suitable for evaluating VANETs protocols over *freeway
(highway) scenarios*. I am also in search for the suitable corresponding
Nakagami-m fading parameters while using ns-2 simulation platform.

Thanks,
Osama Rehman


[ns] Executing TCL Commands in Time Sequence

2013-12-01 Thread Osama Rehman

Hello everyone,

I am trying to create a simulation scenario in which I want the TCL command
executed at time T to be dependent on the output of time T - 1. e.g.

$ns_ at 27 src_node;# This calls *src_node *procedure that computes the
SRC variable.
$ns_ at 28 $app($SRC) start_transmit;   # This calls *start_transmit
*procedure
in *app *agent while using the SRC value computed from src_node procedure.

The problem is that the first line is getting executed but returning the
value after the execution of the second line.

In my original program, I need to keep the time difference between the
execution of both lines very small, such 0.1 second.

I hope anyone has a suggestion to overcome this issue, with thanks.

Regards,
Osama Rehman


[ns] Different Transmission Range (changing channel.cc)

2013-09-08 Thread Osama Rehman

Hello Everyone.

I m trying to assign different Transmission Range to different nodes, e.g.
100 nodes with different transmission range, while being configured in same
OTcl script.

I came across few solutions on the internet, but they are not working
properly. By doing some search on the internet, i came to know that it is
possible to have different Tx range by applying some changes in NS2 core
libraries, maybe in channel.cc.

In case anyone has any idea, i would be glad for sharing this experience.

Regards,
Osama Rehman


[ns] RXThreshold issue in broadcast scenario

2013-08-17 Thread Osama Rehman

Hello everyone,

Using the *TwoRayGround* reflection model and while keeping the
transmission power (Pt) fixed, (in my case 0.281838 W), i have the
following question:

When changing the receiver sensitivity by setting (RXThreshold), we can
control the transmission distance. I have built a *fifty nodes* *broadcast
scenario* in the form of two straight lines, each having a fixed *inter-nodes
distance*.

1) While setting the transmission distance to *301m* (i.e. Pt = 0.281838 W,
RXThreshold = 1.7382e-10) and *inter-nodes distance *to *300m*, broadcast
packets are received.

2) But, while setting the transmission distance to *51m* (i.e. Pt =
0.281838 W, RXThreshold = 7.39247e-08) and *inter-nodes distance *to *50m*,
broadcast packets are *NOT* received. To create a successful communication
in this scenario, i need to set-up a transmission distance of around *110m*,
through nodes exist at the distance of *50m*!

This issue keeps on repeating for all scenarios involving *small
transmission distances* and while nodes very much exists within the
transmission range.

I m very much clueless on this issue, any suggestions would be appreciated.

Regards,
Osama Rehman


[ns] VanetMobiSim and NS-2

2013-07-14 Thread Osama Rehman

Hello everyone,

I m working on Vehicular Ad Hoc Networks and planning to use VanetMobiSim
2.0 (GUI based) for generating the necessary mobility models for my
developed protocols using NS-2.

I wasn't able to find any manual for using VanetMobiSim 2.0 (GUI based),
and integrating the results with NS-2.

Could anyone suggest any source for the manual or suggest any better
mobility generator compared to VanetMobiSim 2.0, with thanks.

Regards,
Osama Rehman


[ns] Tx Distance Query in IEEE 802.11p

2013-06-16 Thread Osama Rehman

Hello everyone,

I went across so many materials for finding out how to put the right
transmission power in Phy/WirelessPhyExt set Pt_, but unfortunately
couldn't get it right, so far!

The new module 802.11Ext has a number of parameters added up to make things
more accurate. Initially in the older module of 802.11, things where
controlled with  RXTresh_, but this is not the case with 802.11Ext.

I want to make a transmission to a distance (d) = 300 m, where i ll be
using different propagation models, such as FreeSpace, TwoRayGround and
Nakagami.

I ll be using the parameters, given below (URL below), but can't really
figure out how to adjust Pt_ for any desired distance that i want, e.g.
d=300.
https://sites.google.com/site/nahoons2/english-con/ns2-simulation-with-802-11p

Any help would be really appreciated...Thanks in advance.

Regards,
Osama Rehman

Phy/WirelessPhyExt set CSThresh_
3.9810717055349694e-13  ;# -94 dBm wireless interface sensitivity
Phy/WirelessPhyExt set Pt_  
Phy/WirelessPhyExt set freq_5.9e+9
Phy/WirelessPhyExt set noise_floor_ 1.26e-13;# -99
dBm for 10MHz bandwidth
Phy/WirelessPhyExt set L_   1.0 ;#
default radio circuit gain/loss
Phy/WirelessPhyExt set PowerMonitorThresh_  3.981071705534985e-18
 ;# -174 dBm power monitor sensitivity (=level of gaussian noise)
Phy/WirelessPhyExt set HeaderDuration_  0.40;# 40 us
Phy/WirelessPhyExt set BasicModulationScheme_   0
Phy/WirelessPhyExt set PreambleCaptureSwitch_   1
Phy/WirelessPhyExt set DataCaptureSwitch_   1
Phy/WirelessPhyExt set SINR_PreambleCapture_3.1623; ;# 5 dB
Phy/WirelessPhyExt set SINR_DataCapture_10.0;   ;# 10 dB
Phy/WirelessPhyExt set trace_dist_  1e6 ;# PHY
trace until distance of 1 Mio. km (infinity)
Phy/WirelessPhyExt set PHY_DBG_ 0


Re: [ns] Utilizing multiple cores resources

2013-04-07 Thread Osama Rehman

Hello everyone,


 I have a Corei7 laptop with an 8 GM RAM, and running NS-2.35 on Fedora 16.

 I am carrying a number of heavy and time consuming simulations but
 unfortunately the resources of the multiple cores microprocessors are not
 utilized fully.

 Only a single core is utilized 100% while the rest are almost idle.

 Can anyone suggest any settings, configurations that may allow NS-2.35
 simulator to utilize multi-core processors, with thanks?

 Regards,
 Osama Rehman



Re: [ns] Query: NS-2 latest updates in mobile radio channels

2012-12-08 Thread Osama Rehman

Further to my previous question...is there any way to use MATLAB radio
channel models, such as Rayleigh, Rician and Nakagami Fading channels, by
incorporating them into NS-2?

If i m not wrong, i heard that its possible while using NS-3, but i wonder
if that is possible in NS-2.

Regards,
Osama Rehman

On Fri, Dec 7, 2012 at 1:14 AM, Osama Rehman osama.mhuss...@gmail.comwrote:

 Hello everyone, i wonder if anyone has news on latest updates in NS-2
 related to mobile radio channels, such as Rayleigh and Rician Fading
 channels. I wonder if someone has built an NS-2 module representing these
 two mobile radio models, with thanks.

 Regards,
 Osama Rehman



[ns] Query: NS-2 latest updates in mobile radio channels

2012-12-06 Thread Osama Rehman

Hello everyone, i wonder if anyone has news on latest updates in NS-2
related to mobile radio channels, such as Rayleigh and Rician Fading
channels. I wonder if someone has built an NS-2 module representing these
two mobile radio models, with thanks.

Regards,
Osama Rehman


[ns] Call for Papers: Free and Open Source Software Conference (FOSSC-Oman 2013)

2012-12-05 Thread Osama Rehman



Please accept our apologies if you receive multiple copies of this
Call for Papers



** **

Thanks to consider contributing and forwarding to interested
associates the attached FOSS Conference Call for Papers

** **

*Free and Open Source Software Conference *

*(FOSSC-Oman 2013**)** *

*February 18-19, 2013***

*MUSCAT, OMAN
*
 http://www.fossc-oman.net/ http://www.fossc-oman.net/ 

** **

A Number of distinguished experts in Free and Open Source Software
will attend the event and present addresses on the main topics of the
conference.

** **

*Submission deadline: December 28, 2012 (Extended)*

 


 ** **

The *FOSSC-Oman**’**2013 *Conference will be jointly organized by the
Communication and Information Research Center at Sultan Qaboos University
(SQU), and the Information Technology Authority (ITA), on Free and Open
Source Software (FOSS) to support the National Initiative on this theme. It
will be for two days and aims to promoting awareness and disseminating the
use and development of free and open source software for professionals,
staff, students,  and the community in Oman. The FOSSC-Oman’2013 event is
the first edition of this conference which will be held every two years in
Oman to offer ICT managers, professionals, developers, users and interested
persons of FOSS a good opportunity to discover, discuss and exchange ideas
on FOSS in Oman and beyond. The event will also provide the opportunity to
network different groups of FOSS users, benefit from insightful lectures
delivered at the conference, and share mutual experiences and discuss
potential implementations of FOSS. The goal of this is to bring free and
open software to Oman.  The organizing committee is inviting managers, and
individuals who have passion, students, educators and experts from
companies, public and private organizations to share their successes in the
vast array of free and open source software that is transforming
information and communication technology across the globe.

The range of targeted topics is very broad, but priority is given to
subjects on real world applications in home, education, research and
business. Based on this, the program committee is inviting proposals for
paper presentations, demonstrations and poster contributions on any topic
relevant to FOSS. These include but not limited to the following:

*Software Engineering and tools:*

·   Architecture, configuration and tools.

·   Scalability, usability and maintainability.

·   Testing, analysis and quality assurance.

·   Projects documentation. 

  ·   Operation systems
*Innovation, Development and legalisms:*

· Innovations. 

· Social Media.

· Licensing.

· Legal issues.

· Migrating to FOSS

*
Mobile Applications:*

Applications for mobile systems using open platforms, such us:

· Android.

· Meego.

· WebOS

*
Desktop FOSS Applications:*

· FOSS on Windows desktops.

· E-learning and Knowledge management.

· Open systems in public  private sectors.

· Home, government, health, education and business.

*
Security:*

· Risk management. 

· Information flow control.

· Encryption and cryptography.

· Security and privacy standards.

· Runtime verification and monitoring.

· Tools in managing security and privacy.


*Important Dates:*

· Early registration: *Nov. 29, 2012*.

· Submission deadline: * Dec. 28, 2012.*

· Notification of acceptance: * Jan. 26, 2013.*

** **

Kindly submit your paper through the online system @ submission
systemhttp://www.fossc-oman.net/openconf/openconf.php


Any inquiries should be sent to *c...@squ.edu.om* c...@squ.edu.om**

** **

** **

*With best regards *

*/The organizing committee/ *


[ns] NAM 1.15 issue on Fedora 16

2012-12-03 Thread Osama Rehman

Apologies if multiple copies if this question was received!!!

Hello, I m facing an issue with NAM 1.15, that was installed as a package
within the ns-allinone-2.35. Installation and configuration were done
right. NS is working fine, where simulations are going smooth. I can add
new agents, generate trace and nam trace file, and do all kind of
simulations.

My problem is that i m getting the error below, when executing nam. The
current OS i m using in Fedora 16. Any suggestions would be highly
appreciated.


###

[root@osamarehman ~]# nam

nam: Can't find a usable tk.tcl in the following directories:
/root/ns-allinone-2.35/tcl8.5.10/library/tk8.5
/root/ns-allinone-2.35/tcl8.5.10/tk8.5 ./lib/tk8.5
/root/ns-allinone-2.35/lib/tk8.5 ./library

/root/ns-allinone-2.35/lib/tk8.5/tk.tcl: wrong # args: should be ::source
fileName
wrong # args: should be ::source fileName
while executing
::source -encoding utf-8 /root/ns-allinone-2.35/lib/tk8.5/msgs/en.msg
(uplevel body line 1)
invoked from within
uplevel 1 [list ::source -encoding utf-8 $langfile]
(procedure ::msgcat::mcload line 10)
invoked from within
::msgcat::mcload [file join $::tk_library msgs]
(in namespace eval ::tk::msgcat script line 23)
invoked from within
namespace eval msgcat {
namespace export mc mcmax
if {[interp issafe] || [catch {package require msgcat}]} {
# The msgcat package...
(in namespace eval ::tk script line 3)
invoked from within
namespace eval ::tk {
# Set up the msgcat commands
namespace eval msgcat {
namespace export mc mcmax
if {[interp issafe] || [catch {p...
(file /root/ns-allinone-2.35/lib/tk8.5/tk.tcl line 21)
invoked from within
source.orig /root/ns-allinone-2.35/lib/tk8.5/tk.tcl
(uplevel body line 1)
invoked from within
uplevel source.orig [list $fileName]
invoked from within
if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
...
(procedure source line 8)
invoked from within
source /root/ns-allinone-2.35/lib/tk8.5/tk.tcl
(uplevel body line 1)
invoked from within
uplevel #0 [list source $file]


This probably means that tk wasn't installed properly.


###

Regards,
Osama Rehman