LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2012, 08:44 PM   #1
fralan123
LQ Newbie
 
Registered: Jul 2012
Distribution: Ubuntu 11.10
Posts: 2

Rep: Reputation: Disabled
NS2 Invalid PSDU/MPDU length error using DSR in 802.15.4


Hi, when i run simulations using DSR in 802.15.4 i got this error:

[wpan/p802_15_4phy.cc::PD_DATA_request][20.615044](node 99) Invalid PSDU/MPDU length: type = DSR, src = 99, dst = -1, uid = 3, mac_uid = 1660, size = 159

I know that it is because the packet max length is 127, but im using 50 so i dont know how to fix the problem.
 
Old 12-17-2020, 12:26 PM   #2
Madarauchiha
LQ Newbie
 
Registered: Dec 2020
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by fralan123 View Post
Hi, when i run simulations using DSR in 802.15.4 i got this error:

[wpan/p802_15_4phy.cc::PD_DATA_request][20.615044](node 99) Invalid PSDU/MPDU length: type = DSR, src = 99, dst = -1, uid = 3, mac_uid = 1660, size = 159

I know that it is because the packet max length is 127, but im using 50 so i dont know how to fix the problem.
Try Setting the energy Parameters. In my case below parameters worked...
set val(energymodel_15) EnergyModel ;
set val(initialenergy_15) 3.0 ;# Initial energy in Joules

set val(idlepower_15) 0.45 ;#LEAP (802.11g)
set val(rxpower_15) 0.9 ;#LEAP (802.11g)
set val(txpower_15) 0.5 ;#LEAP (802.11g)
set val(sleeppower_15) 0.05 ;#LEAP (802.11g)

$ns node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channel [new $val(chan)] \
-topoInstance $topo \
-energyModel $val(energymodel_15) \
-idlePower $val(idlepower_15) \
-rxPower $val(rxpower_15) \
-txPower $val(txpower_15) \
-sleepPower $val(sleeppower_15) \
-initialEnergy $val(initialenergy_15)\
-agentTrace ON \
-routerTrace OFF \
-macTrace ON \
-movementTrace OFF
 
Old 12-17-2020, 12:35 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Good suggestion; except the question was posted EIGHT YEARS AGO.
 
  


Reply

Tags
ns2



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
I've made changes to DSR in NS2 , but when I run the simulation nothing has changed farzane Linux - Wireless Networking 0 06-26-2012 12:50 AM
implementing DSR in NS2 ritoban87 Linux - Networking 3 05-24-2012 05:15 AM
adding fields to DSR in ns2.34 khubalkar Programming 0 05-22-2012 05:40 PM
HP DC7900 error (ACPI: invalid PBLK length (7)) iansane Fedora - Installation 1 07-30-2009 07:10 AM
ERROR: Invalid password length 4222. greigster Linux - Security 6 02-17-2006 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 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