LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2014, 01:57 AM   #1
nad_y
LQ Newbie
 
Registered: Sep 2014
Posts: 8

Rep: Reputation: Disabled
Unhappy problem ns2 wireless moving nodes


I have create a wireless simulation with 20 moving nodes and I have given a CBR connection between some nodes.But when I check trace file I can only find CBR traffic being sent from source but haven't received in destination node.
I use ns2.34 patch with ke liu's gpsr code. when I simulate CBR with static nodes it work as expected. Here I have attached tcl files and trace files of my simulation. Please I need to solve this problem immediately


https://dl.dropboxusercontent.com/u/...nction_20n.zip
 
Old 11-09-2014, 06:19 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,502

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Don't know.

But please compare with the other examples in GPSR-KeLiu-examples_0614.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
 
Old 11-09-2014, 07:15 AM   #3
nad_y
LQ Newbie
 
Registered: Sep 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Smile Solved

I found the Issue, it the default implementation of the ke-liu code. In there the radio range is set to 40m and hello packet interval to 5.0s by changing these parameters I was able to establish a connection.

wireless-gpsr.tcl from line 103 to 113

Code:
# The transimssion radio range 
#Phy/WirelessPhy set Pt_ 6.9872e-4    ;# ?m
#Phy/WirelessPhy set Pt_ 8.5872e-4    ;# 40m  **comment it
#Phy/WirelessPhy set Pt_ 1.33826e-3   ;# 50m
#Phy/WirelessPhy set Pt_ 7.214e-3     ;# 100m
Phy/WirelessPhy set Pt_ 0.2818       ;# 250m   **uncomment this line to change radio range to 250m
# ======================================================================

# Agent/GPSR setting
Agent/GPSR set planar_type_  1   ;#1=GG planarize, 0=RNG planarize
Agent/GPSR set hello_period_   1.0 ;#Hello message period **reduce the time tinterval to 1.0s
 
1 members found this post helpful.
  


Reply

Tags
gpsr-keliu, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set the transmitting power of wireless nodes in ns2 pon Linux - Newbie 0 08-14-2014 02:44 PM
Heterogeneous nodes in NS2 ws19561986 Linux - Newbie 0 04-23-2014 02:44 PM
Limitation on the number of nodes in ns2 mohn.ssn Linux - Software 1 11-10-2013 04:04 PM
To set anchor nodes in NS2 arthidurai Linux - Newbie 2 10-30-2010 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration