LEACH Protocol in ns2 - NS2 Tutorial # 15

Поділитися
Вставка

КОМЕНТАРІ • 63

  • @ChiranjibPatra
    @ChiranjibPatra 8 років тому +1

    how did the file leach.save1 and leach.save2 obtained as shown in 25:45 ?
    because these files contains the results like energy consumption , nodes alive , etc etc updated statistics.

  • @koudiabouchra5504
    @koudiabouchra5504 5 років тому +1

    plz can u show us how we simulate 2 sensor and cluster head and base station (sink)

  • @hoangtrannhat2655
    @hoangtrannhat2655 7 років тому

    How can I fix bugs at 25:51? thank you!

  • @reemaltahatrwa9719
    @reemaltahatrwa9719 7 років тому +1

    hi
    from where can I get the LEACH-setup file?
    also the ns-leach* folder?

  • @sadiqyusuf2761
    @sadiqyusuf2761 6 років тому +1

    thank you ver much sir. but how can i visualise the leach protocol with nam simulator

  • @BlazeMann
    @BlazeMann 8 років тому

    Hello Sir, thank you've for uploading this tutorial. I have completed the installation but when I run the leach test, I get no results on the leach.out when it should be similar as shown on 25:47. Please help me.

    • @uditagrawal6603
      @uditagrawal6603 8 років тому +1

      +Blaze Mann please check your leach.err file that might contain some error related to path which you can correct in tcl/ex/wireless.tcl . So make changes in path and then try

    • @BlazeMann
      @BlazeMann 8 років тому

      +udit agrawal Hi Sir, thank you for the help. How can I generate nam file ou xgraph?

    • @shanupriya9604
      @shanupriya9604 7 років тому

      udit agrawal sir, still path change krne ke bad bhi whi error aa rha

  • @hassanechoukairi6848
    @hassanechoukairi6848 9 років тому +1

    thank you Mr Pradeep.

  • @SatheeshKumar-bk4vv
    @SatheeshKumar-bk4vv 3 роки тому +2

    Sir, how to plot xgraph for leach

    • @saidouhmi7478
      @saidouhmi7478 3 роки тому

      hello , please do you have a leach protocol code please ? i need it to execute it .

  • @taufikrahman2847
    @taufikrahman2847 2 роки тому +1

    Hi sir, can you simulate the spin protocol with ns2, because spin and leach have a litle different

    • @tspradeepkumar
      @tspradeepkumar  2 роки тому

      Let me search and try, in case if you know a source code, please let me know, i will compile it for you...

  • @deweiyi1767
    @deweiyi1767 9 років тому +2

    I am working on LEACH, too. I have already successfully run LEACH. But when I try to change LEACH protocol, I cannot find c file.
    Could you help me?
    Thank you very much

    • @zewdituguangulie3299
      @zewdituguangulie3299 4 роки тому

      hi sir where i get full leach code please share to me.
      thanks

    • @saidouhmi7478
      @saidouhmi7478 3 роки тому

      hello , please can you share with me the code file C++ ?

  • @ankitaghosh4058
    @ankitaghosh4058 4 роки тому +2

    Sir can I give me source code for ns2 using leach protocol

  • @manaligupta4670
    @manaligupta4670 6 років тому

    Sir why leach.out file has total data =0? I thought the leach.out file will give same output as leach.save1 or leach.save2 files

  • @sameenamusthafa1081
    @sameenamusthafa1081 4 роки тому

    Sir I am doing leach simulation in ns3. While simulation the error shown as the directory terminated with signal SIGIOT. How to resolve this sir, please help me

  • @omerbashir7532
    @omerbashir7532 6 років тому

    I have changed the scenario file from "scen-670x670-50-600-20-2" to "scen-670x670-50-600-20-0" its doent show any error but when i add the nam file in wireless.tcl it shows the error i want to open nam file where can i add the name procedure to see the output. ?

  • @wondemantube6209
    @wondemantube6209 3 роки тому

    hi sir i got error like the following when i install i
    wonde@wonde:~$ sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.4 g++4.4
    [sudo] password for wonde:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'libjpgalleg4.4' for regex 'g++4.4'
    Note, selecting 'libloadpng4.4' for regex 'g++4.4'
    Note, selecting 'liblogg4.4' for regex 'g++4.4'
    Package gcc-4.4 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package 'gcc-4.4' has no installation candidate

  • @tallamdeepakkumar9170
    @tallamdeepakkumar9170 2 роки тому +1

    Sir is this same for Ubuntu 20.04 also

  • @srikanthpochana5649
    @srikanthpochana5649 4 роки тому +1

    can it be installed in ubutu 16.04

    • @tspradeepkumar
      @tspradeepkumar  4 роки тому

      srikanth pochana yes we can, but there could be bugs since the leach protocol was written for very old c compiler

  • @reemaltahatrwa9719
    @reemaltahatrwa9719 7 років тому

    how can I install leach protocol?

  • @umairbashir9329
    @umairbashir9329 6 років тому

    facing error while installing LEACH. need help
    make: gcc-4.4: Command not found
    Makefile:98: recipe for target 'tcp/linux/tcp_naivereno.o' failed
    make: *** [tcp/linux/tcp_naivereno.o] Error 127
    Ns make failed!

  • @ayanbhuyan9922
    @ayanbhuyan9922 4 роки тому

    I am getting error "ns make failed" while installing.

  • @SanjogSuhana
    @SanjogSuhana 8 років тому

    Sir can u just help me out regarding the path set on tcl folder "leach.tcl, leach-c.tcl, mte.tcl, stats-clus.tcl".

  • @abdelrahmansamy8074
    @abdelrahmansamy8074 4 роки тому

    Hello Dear Respected Professor
    I successfully installed LEACH protocol as the steps on the video but when I run the command ./leach_test and go to see leach.out, I did not find any data on this file. So what is the problem?
    Thank you

    • @tspradeepkumar
      @tspradeepkumar  4 роки тому +1

      The problem is due to the miscompatibility of the GCC compiler.

    • @abdelrahmansamy8074
      @abdelrahmansamy8074 4 роки тому

      @@tspradeepkumar Thanks for your reply. I'm already installed gcc-4.4 and g++-4.4
      but it gives me this error in the leach.err file
      invalid command name "Resource/Energy"
      while executing
      "Resource/Energy instproc setParams {args} {
      $self instvar energyLevel_ alarmLevel_
      set energyLevel_ [lindex $args 0]
      set alarmLevel_ [lind..."
      (file "/home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.tcl" line 12)
      invoked from within
      "source.orig /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.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 /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.tcl"
      (file "mit/uAMPS/sims/uamps.tcl" line 18)
      invoked from within
      "source.orig mit/uAMPS/sims/uamps.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 mit/uAMPS/sims/uamps.tcl"
      (file "/home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/tcl/mobility/leach.tcl" line 18)
      invoked from within
      "source.orig /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/tcl/mobility/leach.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 /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/tcl/mobility/$opt(rp).tcl"
      (file "tcl/ex/wireless.tcl" line 187)
      how can I solve this error?
      Thanks in advance

    • @awaliapaujiah8344
      @awaliapaujiah8344 2 роки тому

      @@tspradeepkumar Hello sir. can i get the leach.tar.gz ? i realy need it

  • @vaishalirajeshirke2148
    @vaishalirajeshirke2148 8 років тому

    sir i am getting error as
    make: g++-4.3: Command not found
    make: *** [tools/random.o] Error 127
    Ns make failed!
    please guide me. as i have tried all yours steps for installing leach protocol but still i am getting this error. please help me out sir

  • @soumyas5637
    @soumyas5637 4 роки тому

    Sir would you please tell... How to implement leach protocol in NS3. Please provide a video tutorial.

    • @tspradeepkumar
      @tspradeepkumar  4 роки тому

      Why can't you Contiki NG OS for sensor networks... As there is limited facility for sensor networks in ns3.. In case if you wanna try ns2, you can try mannasim simulation for LEACH Protocol, In my channel that video is also there.

  • @geekshub.network
    @geekshub.network 7 років тому

    hello, if you see leach.out / leach-c.out file you will not see any cluster head adv message, all sensors nodes are directly communicating to BS, no clustered are formed. kindly check and confirm

  • @ashubansal8
    @ashubansal8 7 років тому

    How to get trace file(.tr) through leach protocol

  • @huynhan1
    @huynhan1 7 років тому

    I'm pacth zrp on ns2 but not yet. I hope you help. thank you very much

    • @huynhan1
      @huynhan1 7 років тому

      I install the steps below to patch ZRP Agent in NS2.
      1. First put following files into NS-2 home's parent directory.
      - ns-allinone-2.33_ZRP.tar.gz (This contains my code)
      - PatchZRP.patch
      - patchmyZRP.sh (THIS SHELL-SCRIPT FILE - This script file should be run from NS-2 home' parent directory)
      2. Run patchZRP.sh from shell.
      But error, i hope him help.
      Thanks

  • @vedprakash834
    @vedprakash834 4 роки тому

    good evening sir path is /home/Desktop/Leach_Protocol. i put leach-setup.sh and ns-leach-2.35.tar.gz both in same file

  • @dr.devendraraobv2002
    @dr.devendraraobv2002 9 років тому

    Sir, I tried to install LEACH in ns-2.35 on ubuntu 14.04. Got error when I run ./leach_test command saying invalid command "Resource/Energy"
    set energyLevel_ [lindex $args 0]
    set alarmLevel_ [lind..."
    home/devendra/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.tcl" line 11)
    Please help me to correct it. Thank you Pradeep Sir.

    • @esmaeilbaharloo7810
      @esmaeilbaharloo7810 9 років тому +1

      in dir ns-35
      type::
      ./configure
      make clean
      make

    • @gunasekhar1102
      @gunasekhar1102 8 років тому

      i too got same problem . if u got any solution plz reply me
      or email me guna.hk444@gmail.com

  • @mailmestar2009
    @mailmestar2009 7 років тому

    sir i am getting this error when installing it on ubuntu 16.04
    make: *** No rule to make target 'mit/rca/rcagent.c', needed by 'mit/rca/rcagent.o'. Stop.
    Ns make failed!
    See www.isi.edu/nsnam/ns/ns-problems.html for problems

  • @ayanbhuyan9922
    @ayanbhuyan9922 4 роки тому

    Gcc 4.4 has no installation candidate

    • @iqrasami676
      @iqrasami676 4 роки тому

      How to resolve this issue?

  • @SSingh-wb9di
    @SSingh-wb9di 9 років тому

    Sir,
    I get the following error on running leach_test in leach.err
    INITIALIZE THE LIST xListHead
    Error!!
    str2addr:Address 2147483647 outside the range of address field length 1073741824
    Kindly help.

    • @esmaeilbaharloo7810
      @esmaeilbaharloo7810 9 років тому

      +S. Singh hi
      I have the same problem
      Did you find an answer to it?
      INITIALIZE THE LIST xListHeadError!!
      str2addr:Address 2147483647 outside the range of address field length 1073741824

    • @elkamelrabiaa6893
      @elkamelrabiaa6893 9 років тому

      +Esmaeil Baharloo INITIALIZE THE LIST xListHead
      SORTING LISTS ...DONE! i have same problem please if you have a solution can you answer thanks
      elkamelrabiaa@gmail.com

    • @elkamelrabiaa6893
      @elkamelrabiaa6893 9 років тому

      i have same problem can you help me if you have a solution thanks

    • @elkamelrabiaa6893
      @elkamelrabiaa6893 9 років тому

      +S. Singh please i have same proble can you help me

    • @SSingh-wb9di
      @SSingh-wb9di 9 років тому

      no, no solution found yet

  • @vedprakash834
    @vedprakash834 4 роки тому

    cp: cannot stat 'test': No such file or directory
    cp: cannot stat 'Makefile' : No such file or directory

    • @tspradeepkumar
      @tspradeepkumar  4 роки тому +1

      Check the folder where you gave the command.