LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 02-19-2015, 11:58 AM   #31
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

← ref. #29.
Quote:
invalid command name "Resource/Energy"
Please make sure that the 'ns' in /usr/local/bin/ is the "leach ns".
Important :
Delete any PATH entries for 'ns' that you may have in .bashrc .


← #30. http://www.linuxquestions.org/questi...8/#post4300082
... was relevant year 2011.
With the information / the leach files available 4 years ago.
Not relevant 2015.

-
 
Old 02-19-2015, 11:38 PM   #32
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
← ref. #29.

Please make sure that the 'ns' in /usr/local/bin/ is the "leach ns".
Important :
Delete any PATH entries for 'ns' that you may have in .bashrc .


← #30. http://www.linuxquestions.org/questi...8/#post4300082
... was relevant year 2011.
With the information / the leach files available 4 years ago.
Not relevant 2015.

-
i dont have path on .bashrc, then how to check a path of ns in usr/bin is "leach ns"
[student@localhost ~]$ cd /usr/local/bin/
[student@localhost bin]$ ls
ns
[student@localhost bin]$

Last edited by emprit; 02-20-2015 at 05:51 AM.
 
Old 02-20-2015, 07:40 PM   #33
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
← ref. #29.

-
sir i have reinstall NS
Code:
$ tar xvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ tar xvf leach+pegasis-ns234-files-2.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.34/
# make install
then i got error
Code:
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning: no class variable Phy/WirelessPhy::alive_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_
so i check pegasis.err then i edit some file
1) edit all source /home/tomas/ns-allinone-2.34/.... with /home/<myusername>/ns-allinone-2.34/.....
2) edit source localtion on file uAMPS.tcl like on post http://www.linuxquestions.org/questi...ml#post5320029

after all file edited so i do
Code:
[student@localhost ns-2.34]$ ./configure
[student@localhost ns-2.34]$ .make clean
[student@localhost ns-2.34]$ .make
then do test again
[student@localhost ns-2.34]$ ./test

but in my terminal show
Code:
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning: no class variable Phy/WirelessPhy::alive_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_

warning: no class variable Phy/WirelessPhy::EXcvr_

warning: no class variable Phy/WirelessPhy::sleep_
but no error on pegasis.err
mac/chanel.cc: INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!
then i try check pegasis.out show like
Code:
Creating sensor nodes... - uAMPS.tcl
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 (100 == BS) - uAMPS.tcl
*** NOTE: no connection pattern specified. - wireless.tcl
Loading scenario file... - wireless.tcl
Node 0: (67.837825076579037,0.95365322239401429)
Node 1: (5.6106347616811441,59.567387057266842)
Node 2: (12.847064953691822,12.473798362758847)
Node 3: (51.243302110230225,83.015594297561606)
Node 4: (76.816643763713842,16.092541495381173)
Node 5: (88.698179828328165,94.414985316998795)
Node 6: (49.698749394015756,71.163323927281112)
Node 7: (18.752563846648002,37.040607369058115)
Node 8: (66.948251550527402,58.999779009725792)
Node 9: (84.093159662603014,13.760461338684177)
Node 10: (53.398475681151481,34.751569263055721)
Node 11: (35.43723776724061,81.252306830721125)
Node 12: (94.39568416885831,64.282461146024275)
Node 13: (75.900641584722621,81.116376016808843)
Node 14: (94.025061975244924,22.741639904091898)
Node 15: (47.483933645991577,53.024388501897633)
Node 16: (19.265831783072013,19.761381819733131)
Node 17: (52.722785367035677,65.422820470027077)
Node 18: (1.9091479489156733,83.866523198721239)
Node 19: (37.249374872655316,15.680148832351037)
Node 20: (77.114107076597449,63.760125946141841)
Node 21: (33.241755344551876,61.792863887638262)
Node 22: (97.444312226699807,14.058953949277733)
Node 23: (99.23255429567422,62.438737304154188)
Node 24: (85.631965047508459,36.702725774004463)
Node 25: (4.8640806250572579,42.672773703314725)
Node 26: (42.221173849991139,31.77589454305167)
Node 27: (4.485753273817596,67.892633037591636)
Node 28: (43.204884670304544,77.750859585474643)
Node 29: (9.1150774197257469,3.6877163703030522)
Node 30: (57.134931048906843,67.55592863427286)
Node 31: (14.544329705901598,83.157446553538293)
Node 32: (87.932448735429176,27.007935674399107)
Node 33: (93.579592552771601,40.299649182846608)
Node 34: (49.493132368425435,62.155076517795713)
Node 35: (33.177067634266365,60.234874375273883)
Node 36: (11.702478682483768,25.315599201859719)
Node 37: (41.66989817361808,64.4830178769692)
Node 38: (64.4420924430909,75.982896599910646)
Node 39: (98.054823837268543,5.8599493493605168)
Node 40: (0.87498258840059062,47.204520016538218)
Node 41: (24.442630365697031,1.7647778157912093)
Node 42: (51.564891474118866,96.786523888253853)
Node 43: (64.973403497121012,61.775248247094105)
Node 44: (35.148001525154335,94.452731215605851)
Node 45: (60.627286350646656,67.376113202132331)
Node 46: (36.826605739456888,75.573452969814397)
Node 47: (2.6705296722569174,90.449026175983732)
Node 48: (82.141417955114235,26.594036597103827)
Node 49: (33.105320405729735,77.55646648702978)
Node 50: (55.968540839836258,44.326326737332309)
Node 51: (83.906006107063035,30.912847784772911)
Node 52: (74.199836083780895,3.5620960423546357)
Node 53: (83.447930488478363,61.361883562692384)
Node 54: (9.4875276132894335,93.220485510872905)
Node 55: (92.960198034048176,79.275593012233998)
Node 56: (60.493715647837945,1.0870899544503028)
Node 57: (27.881951736231315,74.271631601393054)
Node 58: (99.528413638252957,16.47320809609872)
Node 59: (54.228790409038211,88.438480621407962)
Node 60: (42.668555044880399,43.140447811754626)
Node 61: (1.6388867989363554,41.190108210402592)
Node 62: (97.267456072041512,79.770695641530068)
Node 63: (24.913105892442683,29.831527932468582)
Node 64: (5.782040490667355,50.541613507336756)
Node 65: (21.849933230248247,30.609010872714691)
Node 66: (27.509063960755743,96.780197600266064)
Node 67: (63.979926735153391,64.905256528828886)
Node 68: (43.507665695393307,18.478488977289985)
Node 69: (26.849475981131881,91.774201854958292)
Node 70: (35.349628299171862,69.08252587033553)
Node 71: (88.727382099594635,31.575679793756308)
Node 72: (8.1214742307185546,64.083434391805639)
Node 73: (71.549202907620554,16.707530904890753)
Node 74: (41.656597723093164,14.584700024959027)
Node 75: (33.102920946247373,29.794479082242809)
Node 76: (16.622054072386611,52.084375243673279)
Node 77: (61.164900735563087,41.467304314238632)
Node 78: (58.178306258366582,87.88927643927245)
Node 79: (37.488581211068009,64.161350188851983)
Node 80: (26.884297526853295,26.349708124226755)
Node 81: (46.483757135683554,7.015426087666035)
Node 82: (16.154014885497286,66.522307119575473)
Node 83: (24.824923754122537,30.750853768899507)
Node 84: (95.379973899284366,30.277248020412983)
Node 85: (90.106802429122297,88.691362500512668)
Node 86: (8.7305178440783724,1.6333621934211637)
Node 87: (42.558253343477034,81.803634055798696)
Node 88: (56.511843463644318,87.42124130363635)
Node 89: (91.323620961664062,17.856566476568844)
Node 90: (47.633418509565956,44.742602270442347)
Node 91: (90.056318645391769,21.409901846856762)
Node 92: (86.859871534099739,2.0350294662802617)
Node 93: (34.766157825834192,20.074074538459104)
Node 94: (71.793812826179817,25.01217654208288)
Node 95: (67.471484033144762,33.667520123379077)
Node 96: (53.524006834963345,50.401001447067131)
Node 97: (14.493734955086248,55.259433600706721)
Node 98: (22.725265204312869,74.533321277486777)
Node 99: (98.747841361327033,38.908460754392884)
Max Distance for this Simulation is 138.0
Load complete... - wireless.tcl
Starting Simulation... - wireless.tcl
BS received info: (67.837825076579037 0.95365322239401429 2) from Node 0  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 1 - mit/uAMPS/ns-bsapp.tcl
BS received info: (5.6106347616811441 59.567387057266842 2) from Node 1  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 2 - mit/uAMPS/ns-bsapp.tcl
BS received info: (12.847064953691822 12.473798362758847 2) from Node 2  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 3 - mit/uAMPS/ns-bsapp.tcl
BS received info: (51.243302110230225 83.015594297561606 2) from Node 3  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 4 - mit/uAMPS/ns-bsapp.tcl
BS received info: (76.816643763713842 16.092541495381173 2) from Node 4  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 5 - mit/uAMPS/ns-bsapp.tcl
BS received info: (88.698179828328165 94.414985316998795 2) from Node 5  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 6 - mit/uAMPS/ns-bsapp.tcl
BS received info: (49.698749394015756 71.163323927281112 2) from Node 6  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 7 - mit/uAMPS/ns-bsapp.tcl
BS received info: (18.752563846648002 37.040607369058115 2) from Node 7  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 8 - mit/uAMPS/ns-bsapp.tcl
BS received info: (66.948251550527402 58.999779009725792 2) from Node 8  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 9 - mit/uAMPS/ns-bsapp.tcl
BS received info: (84.093159662603014 13.760461338684177 2) from Node 9  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 10 - mit/uAMPS/ns-bsapp.tcl
BS received info: (53.398475681151481 34.751569263055721 2) from Node 10  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 11 - mit/uAMPS/ns-bsapp.tcl
BS received info: (35.43723776724061 81.252306830721125 2) from Node 11  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 12 - mit/uAMPS/ns-bsapp.tcl
BS received info: (94.39568416885831 64.282461146024275 2) from Node 12  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 13 - mit/uAMPS/ns-bsapp.tcl
BS received info: (75.900641584722621 81.116376016808843 2) from Node 13  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 14 - mit/uAMPS/ns-bsapp.tcl
BS received info: (94.025061975244924 22.741639904091898 2) from Node 14  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 15 - mit/uAMPS/ns-bsapp.tcl
BS received info: (47.483933645991577 53.024388501897633 2) from Node 15  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 16 - mit/uAMPS/ns-bsapp.tcl
BS received info: (19.265831783072013 19.761381819733131 2) from Node 16  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 17 - mit/uAMPS/ns-bsapp.tcl
BS received info: (52.722785367035677 65.422820470027077 2) from Node 17  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 18 - mit/uAMPS/ns-bsapp.tcl
BS received info: (1.9091479489156733 83.866523198721239 2) from Node 18  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 19 - mit/uAMPS/ns-bsapp.tcl
BS received info: (37.249374872655316 15.680148832351037 2) from Node 19  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 20 - mit/uAMPS/ns-bsapp.tcl
BS received info: (77.114107076597449 63.760125946141841 2) from Node 20  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 21 - mit/uAMPS/ns-bsapp.tcl
BS received info: (33.241755344551876 61.792863887638262 2) from Node 21  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 22 - mit/uAMPS/ns-bsapp.tcl
BS received info: (97.444312226699807 14.058953949277733 2) from Node 22  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 23 - mit/uAMPS/ns-bsapp.tcl
BS received info: (99.23255429567422 62.438737304154188 2) from Node 23  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 24 - mit/uAMPS/ns-bsapp.tcl
BS received info: (85.631965047508459 36.702725774004463 2) from Node 24  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 25 - mit/uAMPS/ns-bsapp.tcl
BS received info: (4.8640806250572579 42.672773703314725 2) from Node 25  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 26 - mit/uAMPS/ns-bsapp.tcl
BS received info: (42.221173849991139 31.77589454305167 2) from Node 26  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 27 - mit/uAMPS/ns-bsapp.tcl
BS received info: (4.485753273817596 67.892633037591636 2) from Node 27  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 28 - mit/uAMPS/ns-bsapp.tcl
BS received info: (43.204884670304544 77.750859585474643 2) from Node 28  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 29 - mit/uAMPS/ns-bsapp.tcl
BS received info: (9.1150774197257469 3.6877163703030522 2) from Node 29  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 30 - mit/uAMPS/ns-bsapp.tcl
BS received info: (57.134931048906843 67.55592863427286 2) from Node 30  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 31 - mit/uAMPS/ns-bsapp.tcl
BS received info: (14.544329705901598 83.157446553538293 2) from Node 31  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 32 - mit/uAMPS/ns-bsapp.tcl
BS received info: (87.932448735429176 27.007935674399107 2) from Node 32  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 33 - mit/uAMPS/ns-bsapp.tcl
BS received info: (93.579592552771601 40.299649182846608 2) from Node 33  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 34 - mit/uAMPS/ns-bsapp.tcl
BS received info: (49.493132368425435 62.155076517795713 2) from Node 34  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 35 - mit/uAMPS/ns-bsapp.tcl
BS received info: (33.177067634266365 60.234874375273883 2) from Node 35  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 36 - mit/uAMPS/ns-bsapp.tcl
BS received info: (11.702478682483768 25.315599201859719 2) from Node 36  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 37 - mit/uAMPS/ns-bsapp.tcl
BS received info: (41.66989817361808 64.4830178769692 2) from Node 37  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 38 - mit/uAMPS/ns-bsapp.tcl
BS received info: (64.4420924430909 75.982896599910646 2) from Node 38  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 39 - mit/uAMPS/ns-bsapp.tcl
BS received info: (98.054823837268543 5.8599493493605168 2) from Node 39  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 40 - mit/uAMPS/ns-bsapp.tcl
BS received info: (0.87498258840059062 47.204520016538218 2) from Node 40  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 41 - mit/uAMPS/ns-bsapp.tcl
BS received info: (24.442630365697031 1.7647778157912093 2) from Node 41  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 42 - mit/uAMPS/ns-bsapp.tcl
BS received info: (51.564891474118866 96.786523888253853 2) from Node 42  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 43 - mit/uAMPS/ns-bsapp.tcl
BS received info: (64.973403497121012 61.775248247094105 2) from Node 43  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 44 - mit/uAMPS/ns-bsapp.tcl
BS received info: (35.148001525154335 94.452731215605851 2) from Node 44  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 45 - mit/uAMPS/ns-bsapp.tcl
BS received info: (60.627286350646656 67.376113202132331 2) from Node 45  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 46 - mit/uAMPS/ns-bsapp.tcl
BS received info: (36.826605739456888 75.573452969814397 2) from Node 46  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 47 - mit/uAMPS/ns-bsapp.tcl
BS received info: (2.6705296722569174 90.449026175983732 2) from Node 47  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 48 - mit/uAMPS/ns-bsapp.tcl
BS received info: (82.141417955114235 26.594036597103827 2) from Node 48  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 49 - mit/uAMPS/ns-bsapp.tcl
BS received info: (33.105320405729735 77.55646648702978 2) from Node 49  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 50 - mit/uAMPS/ns-bsapp.tcl
BS received info: (55.968540839836258 44.326326737332309 2) from Node 50  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 51 - mit/uAMPS/ns-bsapp.tcl
BS received info: (83.906006107063035 30.912847784772911 2) from Node 51  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 52 - mit/uAMPS/ns-bsapp.tcl
BS received info: (74.199836083780895 3.5620960423546357 2) from Node 52  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 53 - mit/uAMPS/ns-bsapp.tcl
BS received info: (83.447930488478363 61.361883562692384 2) from Node 53  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 54 - mit/uAMPS/ns-bsapp.tcl
BS received info: (9.4875276132894335 93.220485510872905 2) from Node 54  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 55 - mit/uAMPS/ns-bsapp.tcl
BS received info: (92.960198034048176 79.275593012233998 2) from Node 55  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 56 - mit/uAMPS/ns-bsapp.tcl
BS received info: (60.493715647837945 1.0870899544503028 2) from Node 56  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 57 - mit/uAMPS/ns-bsapp.tcl
BS received info: (27.881951736231315 74.271631601393054 2) from Node 57  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 58 - mit/uAMPS/ns-bsapp.tcl
BS received info: (99.528413638252957 16.47320809609872 2) from Node 58  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 59 - mit/uAMPS/ns-bsapp.tcl
BS received info: (54.228790409038211 88.438480621407962 2) from Node 59  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 60 - mit/uAMPS/ns-bsapp.tcl
BS received info: (42.668555044880399 43.140447811754626 2) from Node 60  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 61 - mit/uAMPS/ns-bsapp.tcl
BS received info: (1.6388867989363554 41.190108210402592 2) from Node 61  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 62 - mit/uAMPS/ns-bsapp.tcl
BS received info: (97.267456072041512 79.770695641530068 2) from Node 62  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 63 - mit/uAMPS/ns-bsapp.tcl
BS received info: (24.913105892442683 29.831527932468582 2) from Node 63  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 64 - mit/uAMPS/ns-bsapp.tcl
BS received info: (5.782040490667355 50.541613507336756 2) from Node 64  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 65 - mit/uAMPS/ns-bsapp.tcl
BS received info: (21.849933230248247 30.609010872714691 2) from Node 65  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 66 - mit/uAMPS/ns-bsapp.tcl
BS received info: (27.509063960755743 96.780197600266064 2) from Node 66  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 67 - mit/uAMPS/ns-bsapp.tcl
BS received info: (63.979926735153391 64.905256528828886 2) from Node 67  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 68 - mit/uAMPS/ns-bsapp.tcl
BS received info: (43.507665695393307 18.478488977289985 2) from Node 68  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 69 - mit/uAMPS/ns-bsapp.tcl
BS received info: (26.849475981131881 91.774201854958292 2) from Node 69  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 70 - mit/uAMPS/ns-bsapp.tcl
BS received info: (35.349628299171862 69.08252587033553 2) from Node 70  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 71 - mit/uAMPS/ns-bsapp.tcl
BS received info: (88.727382099594635 31.575679793756308 2) from Node 71  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 72 - mit/uAMPS/ns-bsapp.tcl
BS received info: (8.1214742307185546 64.083434391805639 2) from Node 72  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 73 - mit/uAMPS/ns-bsapp.tcl
BS received info: (71.549202907620554 16.707530904890753 2) from Node 73  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 74 - mit/uAMPS/ns-bsapp.tcl
BS received info: (41.656597723093164 14.584700024959027 2) from Node 74  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 75 - mit/uAMPS/ns-bsapp.tcl
BS received info: (33.102920946247373 29.794479082242809 2) from Node 75  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 76 - mit/uAMPS/ns-bsapp.tcl
BS received info: (16.622054072386611 52.084375243673279 2) from Node 76  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 77 - mit/uAMPS/ns-bsapp.tcl
BS received info: (61.164900735563087 41.467304314238632 2) from Node 77  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 78 - mit/uAMPS/ns-bsapp.tcl
BS received info: (58.178306258366582 87.88927643927245 2) from Node 78  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 79 - mit/uAMPS/ns-bsapp.tcl
BS received info: (37.488581211068009 64.161350188851983 2) from Node 79  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 80 - mit/uAMPS/ns-bsapp.tcl
BS received info: (26.884297526853295 26.349708124226755 2) from Node 80  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 81 - mit/uAMPS/ns-bsapp.tcl
BS received info: (46.483757135683554 7.015426087666035 2) from Node 81  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 82 - mit/uAMPS/ns-bsapp.tcl
BS received info: (16.154014885497286 66.522307119575473 2) from Node 82  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 83 - mit/uAMPS/ns-bsapp.tcl
BS received info: (24.824923754122537 30.750853768899507 2) from Node 83  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 84 - mit/uAMPS/ns-bsapp.tcl
BS received info: (95.379973899284366 30.277248020412983 2) from Node 84  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 85 - mit/uAMPS/ns-bsapp.tcl
BS received info: (90.106802429122297 88.691362500512668 2) from Node 85  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 86 - mit/uAMPS/ns-bsapp.tcl
BS received info: (8.7305178440783724 1.6333621934211637 2) from Node 86  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 87 - mit/uAMPS/ns-bsapp.tcl
BS received info: (42.558253343477034 81.803634055798696 2) from Node 87  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 88 - mit/uAMPS/ns-bsapp.tcl
BS received info: (56.511843463644318 87.42124130363635 2) from Node 88  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 89 - mit/uAMPS/ns-bsapp.tcl
BS received info: (91.323620961664062 17.856566476568844 2) from Node 89  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 90 - mit/uAMPS/ns-bsapp.tcl
BS received info: (47.633418509565956 44.742602270442347 2) from Node 90  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 91 - mit/uAMPS/ns-bsapp.tcl
BS received info: (90.056318645391769 21.409901846856762 2) from Node 91  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 92 - mit/uAMPS/ns-bsapp.tcl
BS received info: (86.859871534099739 2.0350294662802617 2) from Node 92  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 93 - mit/uAMPS/ns-bsapp.tcl
BS received info: (34.766157825834192 20.074074538459104 2) from Node 93  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 94 - mit/uAMPS/ns-bsapp.tcl
BS received info: (71.793812826179817 25.01217654208288 2) from Node 94  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 95 - mit/uAMPS/ns-bsapp.tcl
BS received info: (67.471484033144762 33.667520123379077 2) from Node 95  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 96 - mit/uAMPS/ns-bsapp.tcl
BS received info: (53.524006834963345 50.401001447067131 2) from Node 96  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 97 - mit/uAMPS/ns-bsapp.tcl
BS received info: (14.493734955086248 55.259433600706721 2) from Node 97  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 98 - mit/uAMPS/ns-bsapp.tcl
BS received info: (22.725265204312869 74.533321277486777 2) from Node 98  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 99 - mit/uAMPS/ns-bsapp.tcl
BS received info: (98.747841361327033 38.908460754392884 2) from Node 99  a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 100 - mit/uAMPS/ns-bsapp.tcl

At 10: - mit/uAMPS/stats.tcl
		Total Energy = 0.0059307213061996289
		Total Data = 0
		Total Alive = 100


At 20: - mit/uAMPS/stats.tcl
		Total Energy = 0.0059307213061996289
		Total Data = 0
		Total Alive = 100


At 30: - mit/uAMPS/stats.tcl
		Total Energy = 0.0059307213061996289
		Total Data = 0
		Total Alive = 100


At 40: - mit/uAMPS/stats.tcl
		Total Energy = 0.0059307213061996289
		Total Data = 0
		Total Alive = 100


At 50: - mit/uAMPS/stats.tcl
		Total Energy = 0.0059307213061996289
		Total Data = 0
		Total Alive = 100

Simulation complete. - mit/uAMPS/stats.tcl

num_nodes is set 101
mac/channel.cc: sendUp - Calc highestAntennaZ_ and distCST_
mac/channel.cc: highestAntennaZ_ = 1.5,  distCST_ = 280.4
sir knudfl please help me maybe i get some wrong.
 
Old 02-20-2015, 11:15 PM   #34
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. #33.

Looks OK.
All 100 nodes, 0 - 99 are visible in pegasis.out .

You can compare with the examples shown in post #4
http://www.linuxquestions.org/questi...-4175531395/#4


-
 
1 members found this post helpful.
Old 02-20-2015, 11:15 PM   #35
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
sir can u help me what this mean
after im type "make"
Code:
make[1]: Entering directory `/home/student/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/student/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/student/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/student/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/student/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/student/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/student/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/student/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/student/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/student/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/ucb'
and this a right result or not? for make install
Code:
[root@localhost ns-2.34]# make install
for d in /usr/local/man/man1; do \
		if [ ! -d $d ]; then \
			mkdir -p $d ;\
		fi;\
	done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
[root@localhost ns-2.34]#

Last edited by emprit; 02-20-2015 at 11:17 PM.
 
Old 02-20-2015, 11:23 PM   #36
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
i have new result, after i change makefile and makefile.in
cc=gcc
ccp=g++

then make clean -> make -> ./test

Code:
[student@localhost ns-2.34]$ ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
mac/chanel.cc: INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
mac/channel.cc: sendUp - Calc highestAntennaZ_ and distCST_
mac/channel.cc: highestAntennaZ_ = 1.5,  distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...
[student@localhost ns-2.34]$
for pegasis.out and pegasis.err result is same with post #33
 
Old 02-20-2015, 11:27 PM   #37
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
← ref. #33.

Looks OK.
All 100 nodes, 0 - 99 are visible in pegasis.out .

You can compare with the examples shown in post #4
http://www.linuxquestions.org/questi...-4175531395/#4


-
ok, so i need change alg=leach right?

after test
i got warning on leach.out but no error on leach.err
Code:
0: Warning!!! No Cluster Head ADVs were heard! - ns-leach.tcl
Data being sent to the Base Station - ns-leach.tcl
Node 0 sending {{0 , 0.00116}} to BS at time 0.005180688596191205 - ns-leach.tcl

i got the solution, this because energy. i have edit on leach_test and done
but sir can u helpme
what mean eq_energy on leach_test

Last edited by emprit; 02-21-2015 at 12:12 AM.
 
Old 02-21-2015, 01:03 AM   #38
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. #35
Quote:
after im type "make"
First : You are not supposed to 'make' anything.
That's already been done by ./install .
And : There's no make in the "HOWTO", see your own post #10 :
»» CentOS 6 - i686 :
1) tar xvf ns-allinone-2.34.tar.gz
2) cd ns-allinone-2.34/ && tar xvf leach+pegasis-ns234-files-2.tar.gz
3) ./install
4) cd ns-2.34/
5) # make install ««

When you do 'make' the second time : ""Nothing to be done for `all'.""
... because "Everything is OK".


""then make clean -> make"" : Is just a remake, nothing new, not to be done.
( Unless you really change something by following your own ideas.)


← #36.
Quote:
i have new result, after i change makefile and makefile.in
CC = gcc
CPP = g++
That's not a change, and still, you are not supposed to change Makefile, Makefile.in.


Quote:
ok, so i need change alg=leach right ?
What do you mean ? ?
alg=leach : Is for a LEACH simulation.
alg=leach-c : Leach_C simulation.
alg=stat-clus : Stat-clus.
alg=pegasis : Is for a Pegasis simulation.
.... Choose what you want, any time. Will create named output files.


Warning“s are not errors.
A "warning" is an informational text.


-
 
Old 02-21-2015, 03:31 AM   #39
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
← ref. #35

← #36.

That's not a change, and still, you are not supposed to change Makefile, Makefile.in.

-
first is in makefile.in
CC = @CC@
CPP = @CXX@

i try cek gcc version = gcc-4.4.7 same version with g++
then i try on change makefile with gcc-4.4 / gcc-4.4.7 and the result is fail to make.

Quote:
What do you mean ? ?
alg=leach : Is for a LEACH simulation.
alg=leach-c : Leach_C simulation.
alg=stat-clus : Stat-clus.
alg=pegasis : Is for a Pegasis simulation.
.... Choose what you want, any time. Will create named output files.


Warning“s are not errors.
A "warning" is an informational text.

-
i mean if i need equate output with your fix ns2.34 installed. hahahha

Last edited by emprit; 02-21-2015 at 03:37 AM.
 
Old 02-21-2015, 03:43 AM   #40
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Code:
#!/bin/bash
cd /home/student/ns-allinone-2.34/ns-2.34/tcl/ex/
ns wireless-demo-csci694.tcl
sleep 2

cd /home/student/ns-allinone-2.34/ns-2.34/
./leach_test
i think
cd /home/student/ns-allinone-2.34/ns-2.34/tcl/ex/
ns wireless-demo-csci694.tcl

is no use, because ./leach_test will call ns tcl/ex/wireless.tcl

and what command sleep 2 for?
 
Old 02-21-2015, 04:07 AM   #41
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. #40.
Quote:
what command sleep 2 for ?
"sleep 2" will make sure that the first sequence
'ns wireless-demo-csci694.tcl' has finished before continuing.
"sleep 2" is making bash wait 2 seconds before './leach_test'


Note : ns wireless-demo-csci694.tcl is the reason for the ./test reply :
" num_nodes is set 3 " , see your post #20.

Please read ns wireless-demo-csci694.tcl : set opt(nn) 3


-
 
Old 02-21-2015, 07:04 AM   #42
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
← ref. #40.

"sleep 2" will make sure that the first sequence
'ns wireless-demo-csci694.tcl' has finished before continuing.
"sleep 2" is making bash wait 2 seconds before './leach_test'


Note : ns wireless-demo-csci694.tcl is the reason for the ./test reply :
" num_nodes is set 3 " , see your post #20.

Please read ns wireless-demo-csci694.tcl : set opt(nn) 3


-
like u said sir, i cant use nam if node is mobility. so we can use nam if node not moving right?

what mean eq_energy on leach_test

Last edited by emprit; 02-21-2015 at 07:10 AM.
 
Old 02-21-2015, 08:12 AM   #43
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. #42.

If it's about LEACH : Leach does not support nam.
Not unusual :
Other "no nam ns2 protocols" examples are mannasim and sat / satellite.
https://www.google.com/webhp?hl=all&...l#hl=en&q=ns2+

`eq_energy“ https://www.google.com/webhp?hl=all&...=ns2+eq_energy
And https://www.google.com/webhp?hl=all&...+documentation
. http://www-mtl.mit.edu/researchgroup.../leach_doc.pdf
. http://www-mtl.mit.edu/researchgroups/icsystems/uamps/

. http://www.developermemo.com/3245037/
-
Attached Files
File Type: txt leach.awk.txt (450 Bytes, 23 views)
 
Old 02-22-2015, 02:40 PM   #44
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
sir maybe u know about this, this output make no data has been transfered and total energy growing over

Code:
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
CAPTURE!!!!
...............
t 50: - mit/uAMPS/stats.tcl
		Total Energy = 1383.7735031286363
		Total Data = 0
		Total Alive = 100
in leach_test
num_clusters=1
# energy values. How much energy does each node have initially
eq_energy=1
init_energy=100

i have read thread how to integrate the "Resource/Energy" leach class into NS-2.34? some people got this too on post 724 and 733 but no one aswer him

Last edited by emprit; 02-22-2015 at 02:42 PM.
 
Old 02-22-2015, 02:52 PM   #45
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. #44.

My knowledge is pretty much limited to ...
{ Finding information, building and running ns2,
building binary packages and patches.}

? Have you compared with the leach output examples in post #4
http://www.linuxquestions.org/questi...-4175531395/#4

? No hints in the leach documentation ?
http://www-mtl.mit.edu/researchgroup.../leach_doc.pdf


-
 
  


Reply

Tags
leach, leach-ex#4, 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
problem with running leach protocol in ns2.34 leach.er Mohamed69 Linux - Software 14 04-16-2018 07:10 AM
leach.out total energy increase leach ns2.34 linuxUser123linux Linux - Software 1 07-13-2013 04:54 AM
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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