Download LEACH protocol source code for Wireless Sensor Networks

Welcome to download section of LEACH Protocol in Wireless Sensor Network. In this page, you can find information on downloading LEACH protocol source code for your favorite simulator software application like NS-2, Matlab, C++ and OMNeT++ for your Thesis & Research Works.

What is LEACH Protocol?

LEACH, Low-Energy Adaptive Clustering Hierarchy, is an application-specific protocol architecture for Wireless Sensor Network (WSN) widely adopted for various Sensor Network variations. It has become one of the most used bases for developing new architecture protocols or modifying the existing one in WSN. Learn more about LEACH protocol in our Sensor Network section at Understanding LEACH Protocol in Wireless Sensor Network

Download LEACH Protocol Source Code

Leach protocol was devised by Heinzelman and et. al in their work “An Application-Specific Protocol Architecture for Wireless Microsensor Networks.” The original authors have published and granted the right to use LEACH source code for academic and non-commercial research projects, Network Simulator NS-2 version of source code original link (now broken) http://www-mtl.mit.edu/research/icsystems/uamps/cadtools/.

From the page of original publishers:

LEACH: A Low-Energy Protocol Simulator for Wireless Networks. This simulator is an extension of the ns-2 simulator. It was originally developed by Wendi B. Heinzelman and is no longer being updated. The LEACH code is only compatible with ns-2.1b5.

W. Heinzelman, A. Chandrakasan, and H. Balakrishnan, “An Application-Specific Protocol Architecture for Wireless Microsensor Networks,” IEEE Transactions on Wireless Communications, Vol. 1, No. 4, October 2002, pp. 660-670.

Please, note that the source codes are available as-is without any warranty or liability of any kind thereafter. Use the LEACH Source Code at your own risk, ACADEMIC RESEARCH USE ONLY.

[sociallocker id=”5569″]

LEACH Protocol Source Code for NS2

LEACH Protocol Source Code for Matlab

LEACH Protocol Source Code for C++ and OMNeT++

Download the entire Network Simulator directory with the MIT uAMPS extensions

Download the originally published paper on An Application-Specific Protocol Architecture for Wireless Microsensor Networks

[/sociallocker]

LEACH Source Code in Matlab ie LEACH.m is hosted in a local server of this website, and can be provided upon request for your personal research use only. Password, provided, is required to open the files leach.m and parameters.m.

Leach source code NS2, Matlab, C++ and OMNeT++ are basically functioning on the same principal. So LEACH algorithm source code downloaded in a format or for one simulator above shall produce the same result with the others. The external download links might be broken as the project code are not being updated from the original authors, to request a local copy contact me.

Leave A Reply

Your email address will not be published.

170 Comments
  1. abhishek srivastava says

    i need matlab prog. on leach for my m tech minor project……m pursuing my m tech in communication from nit kurukshetra…….plz provide me d same and help me……………

  2. minki says

    i need this coding for my project

  3. minki says

    i need this coding for my project .

    1. zahra says

      hi, please send me the leach code in ns2. thank you so much
      [email protected]

  4. Rinku says

    hey hi…
    can you please send me the Leach code in MATLAB at [email protected]:disqus .com
     

    1. ahmed says

      hey can you please send me the Leach code in ns2
      [email protected]

  5. bina says

    hi, i need d matlab code, could you plz help me?! i need a dv-hop localization in sensor network too, plz plz and plz help me

  6. Ranjith V says

     can u please send me leach matlab code for [email protected]:disqus i need it for my pg progect.com

  7. hiren thakkar says

    hello sir,
               i am doing my PG research work. for that i need to analyze leach protocol for WSN. would you please send me LEACH code in MATLAB at my email : [email protected]

  8. Raj Sharma says

    please send me the leach code [email protected]

  9. Arthi says

    can u plz send the leach code in matlab to [email protected]

  10. azi jamshidi says

    Hi

    Can u please send me Leach source code in C++ or matlab at ed.jr81 .com
    Thx a lot

  11. Simuli23 says

    please my research area is routing in WSN and I also need the Leach protocol in MATLAB kindly send to [email protected], Thanks

  12. Masi says

    hii
    could you plz send me matlab code for leach? I need it for my project & I would be appriciate if you send it fast, plzz. I dont have enough time 🙁

  13. Vinitamathur12 says

    hi plz can i get the matlab code for LEACH at [email protected]

  14. Mostafa Kamal says

    I need the matlab code please [email protected]

  15. deep says

    i need matlab code for leach
    please mail me
    [email protected]

  16. hlayinmin says

    hi i need matlab code and NS2 code for LEACH.Please send to [email protected].

  17. hlayinmin says

    i need manual file of NS2 code for Leach protocol.please send to [email protected]

  18. shuana says

    Hello, I need matlab code and NS2 code for LEACH.Please send to [email protected] please.

  19. yarmamat says

    can you please send me the LEACH code in matlab , [email protected]

  20. Murad says

    can you please send to me LEACH code in Matlab, [email protected]

  21. priya says

    i need matlab coding for leach protocol
    plz send

  22. Angela María says

    Hi. I want to try LEACH protocol. Can you please send it to me?
    [email protected]

  23. Nagaraju Arigela says

    i want leach protocol in matlab…pls send it to [email protected]

  24. parul bakaraniya says

    plz send me Leach protocol in matlab for my research work. send me at [email protected]

  25. Hariprakash. Devaraj says

    i’m doing my PG project in Omnetpp for that i need the source for leach protocol in both matlab and ns2, so please kindly reply as soon as possible…

  26. jeevi says

    i’m in need of leach protocol implementation in matlab, for my UG project plz send to [email protected]

  27. mydev says

    please send LEACH protocol for NS-2. I am studying power saving protocols for WSN . My email : [email protected]. Thank you!

  28. imen hamdi says

    i want leach protocol in matlab…pls send it to [email protected]

  29. ahmed alhilal says

    please send me leach in matlab and ns2 and omnet++, I’m doing a research about energy efficacy in wsn . email: [email protected]

    1. gasmi sondes says

      salam ahmed I’m looking for leach code ns2 too.please if you got it,can you help me and give me a code in ns2 because i need it in my reserch ([email protected])and thank you friend.

    2. Mahsa says

      Hi sir,
      İ need leach code in omnet++,please send me

  30. Praveen says

    Please send me the Leach code in matlab.. [email protected]

  31. Hari says

    i want leach matlab code.. pls send it to [email protected]

  32. Ahmed Galal says

    I’m
    a Teaching assistance in Ain Shams Universty – Egypt and my master is in Deploying
    a Wireless Sensor. I’m badly in need Matlab and NS2 for LEACH protocol Source Code.
    my e-mails : [email protected] ; [email protected]
    Thanks In Advance

  33. rosie says

    I need code of LEACH protocol in MATLAB…in WSN…. pls mail me at [email protected]….

  34. shreyashi says

    i want the leach protocol in matlab …pls send it to [email protected]

  35. Ashani says

    I am a Research Assistant in University of Moratuwa..Can u plz send me the leach protocol in matlab to [email protected]

  36. Ranjit Panigrahi says

    Thanx for your suggestion. I also developed the same Leach protocol in .NET but to extend my research work I need the matlab code of the same protocol. Kindly mail me LEACH.m at [email protected]

  37. sanya says

    Hey the source code you have uploaded here is not available. Please send me the code for Leach protocol in NS2 and MATLAB. I require it for my project.
    Thank You
    And do you have any knowledge of where can I find the source code in NS2 for Minisec protocol in wireless sensor networks.
    Mail me the source code at [email protected] asap.
    Thanks

  38. Shikha Swaroop says

    plz send me leach protocol code in matlab. my id is [email protected]

  39. Sridhar Natarajan says

    hello Sir .. I want the leach protocol both in matlab and ns2.. If can send both or whichever is possible : [email protected]

  40. Naren says

    i want leach protocol in matlab…pls send it to [email protected]

  41. hemant says

    plz send me the leach protocol in matlab @…[email protected]

  42. FAGBOHUNMI, Griffin Siji says

    I need the Matlab source code for LEACH protocol in Wireless sensor networks. Please send it to: [email protected]

  43. Reza says

    Hi, i need Leach source code in omnet++. would you Please send it to me? my mail address: [email protected]

  44. Anusooya Jayakandan says

    Hi I need LEACH ns2 code kindly send me to [email protected]

  45. ahamd says

    Please send me the Leach code in matlab and ns2..

    [email protected]

    best regards

  46. Hamdi Nawel says

    Please i want the code source of these protocols in wsn: CODA,PCCP,FACC,HCCC,FUSION

  47. disqus_OdLW1dy9D9 says

    Kindly send me the leach for ns2 code to mail id [email protected]

  48. Eman says

    please I want Leach source code in matlab

  49. Swasthika says

    Plz Send me the leach matlab code to [email protected]

  50. madhav kumar says

    hi can u give me the code for Multihop Overlapping
    Clustering Algorithm (MOCA) please, my mail id is [email protected]

  51. Aditya Shukla says

    Plz. Sir provide me the leach protocol source code in ns2 and matlab for thesis work

    to [email protected] . As source code you have uploaded here is not available

  52. Baishakhi Bose says

    i want leach code in ns2 plz send [email protected]

  53. jehangir ali says

    i am working on LEACH protocol .Please send me LEACH A LEACH (NS2 CODE) personal thesis in (m.tech).
    [email protected]
    I will be thankful to you sir

  54. imen souid says

    did u get leach or heed code please if u did could u send it to me

  55. Chaitali Kadam says

    hey i need leach protocol code for my wmc seminar in matlab as well as in ns2
    plzzz frwd it 2 my email id: [email protected]

  56. Aman Singhal says

    Hi, I want LEACH protocol code in matlab for my research work. It is a part of my thesis work. Please send it to [email protected]

  57. Somu says

    Hey please can you send me the matlab code for LEACH? The email id is [email protected]. thank you! 🙂

  58. Sunbeam says

    please mail me the matlab code for LEACH protocol in [email protected]

  59. Priyanka says

    Could you please mail me the leach matlab code
    my email id- [email protected]
    Thank you!

  60. Khelifi Fekher says

    [email protected]
    svp m’envoyer le code source de LEACH en MATLAB

  61. ganesh says

    sir i m working on k-means clustering in wsn ,plz help me how to make clusters in centralized pattern and distributed pattern

  62. Phuongloan says

    please mail me LEACH Protocol Source Code for C++ and OMNeT++ in [email protected].
    Thank you!

  63. Muhammad Aamir says

    pls someone send me leach code in matlab on my email [email protected]

    1. hao says

      can you please send me the Leach code in NS2 at [email protected]
      thank you!

    2. Dzung says

      Anyone pls send me LEACH code in NS2 and/or OmNET++ .
      Thanks a lot

  64. Gouthami says

    Could you please mail me the leach matlab code
    my email id- [email protected]
    Thank you!

  65. Dzung says

    Anyone pls send me LEACH code in NS2 and/or OmNET++ . Send to [email protected]
    Thanks a lot

  66. Preetom Mozumder says

    Could You Please send the project or the source code of LEACH protocol for OMNET++

  67. Muhammad Iqbal says

    Hi, I want LEACH protocol code in C++ and NS-3 for my research work. It is a part of my thesis work. Please send it to [email protected]

  68. Bader says
  69. Kajal Fegade says

    I am working of clustering in WSN for efficient routing. I want implementation of LEACH in C++. Can any one please help me for this?

  70. bsr says

    i want code for LEACH protocol in network security for WSN in web applications,can u please help me?

  71. saroj says

    plz send the leach and MG-LEACH in matlab plz send it to my email [email protected]

  72. nayef says

    Could You Please send the project or the source code of LEACH protocol for OMNET++ [email protected]

  73. Mushahar says

    I am a research associate at LUMS. Can you please give me C/C++ code for leach/teen/riser/tiser protocols? I need it for my upcoming research paper.

  74. Aru says

    I am doing M.Tech. for my project i need the LEACH protocol source code in c++ and OMnet++. Please provide the code.

  75. Junaith says

    Hi friends I'm doing M.E, and for my thesis works i need leach protocol source code, pls send me as soon as possible.

  76. S D SHARMA says

    Hi friends I'm doing M.E, and for my thesis works i need leach protocol source code, pls send me as soon as possible.

  77. gbadeshola says

    hi pls I am doing mobile sensor networks for my thesis work I need the leach protocol source code, please can kindly send it to me as soon as possible

  78. Nguyen Toai says

    Hi friend. i am doing wrireless sensor network for my thesis work i need the nech protocol source code.Please send me as soon as possible email [email protected]

  79. Wai says

    Hi friend. i am doing wrireless sensor network for my thesis work i need the LEACH protocol source code(OMNet++).Please send me as soon as possible email
    [email protected],Thx

  80. vijay says

    this site is totally fake and making us fool …..{word_not_permitted} you admin

    1. Ekendra Lamsal says

      Vijay, what's your issue here. Were you not able to download file? Everybody else downloading, and it's clearly mentioned here the source code is for educational testing purpose; not necessarily fully functional.

  81. Shreesha Bhat says

    I need J-sim code for LEACH in your site.

  82. Amanda says

    Hi,

    I need NS2 and TinyOS code for LEACH for my research purpose.. Please help me..

  83. rajagopal says

    Hi friend. i am doing wrireless sensor network for my thesis work i need the LEACH protocol source code(ns2.Please send me as soon as possible email
    [email protected]

  84. Md. Symun IStehad says

    Hi i am doing wrireless sensor network for my thesis work i need the LEACH protocol source code in ns2.Please send me as soon as possible email

  85. kottana says

    I am doing M.Tech. for my project i need the LEACH protocol source code in c++,please provide the code

  86. sree says

    i need leach code on ns2 for my research purpose.

  87. mayank says

    please i need leach protocol source code in matlab or ns2. please provide the code

  88. LEACH sourcode says

    i need leach code on C++ and OMNeT++ for my research purpose.
    Please send me as soon as possible email
    [email protected]
    thx

  89. izhar ahmed says

    I am looking for leach protocol source code on C++ for OMNET++ for my university research project. I would really appreciate if you could send me as soon as possible.

    My email is: [email protected]

  90. narayan says

    plz send me dijkastra implementation code in matlab for WIRELESS SENSOR NETWORK to my mail id [email protected]

    thax thaxx

  91. omarakove says

    please i need leach protocol source code in ns2 for my research purpose.. Please help me..

    My email : [email protected]

  92. khushboo manohar says

    I need LEACH protocol source code in MATLAB for my M.TECH dissertation purpose.. Please help me, and send me at [email protected].

  93. jarugumalli Ashok Kumar says

    i want tcl code of LEACH protocol. please send me the required source code to email: [email protected]

  94. Tu Oanh Tran says

    Thank you for sharing your code but when i run source code in matlab, there is a error in line 12 : " 1:1:N"
    Please Help me!! My email is : [email protected]

    1. Ekendra Lamsal says

      Since this is a custom code, I'm not sure the code works perfect for you as well. It implies with HWSN. Read the instructions and meaning of variables explained in the attachment. Thanks

      1. Tu Oanh Tran says

        Oh. Thanks so much!

  95. iampremkmr1311 says

    hi sir, i am working on leach protocol for my project and i need this code for my project and i plan to do in NS2 can you please send this code to that helps me a lot sir and thank you in advance

  96. Reen says

    i need leach code in ns2 with animation and graph. please provide me ASAP
    i have to submit my project

  97. Reen says

    My email id is [email protected]

  98. Nurul Alam Masud says

    Hello,I am Masud from Bangladesh.I need source code for LEACH protocol in C++.Plz send me the code.email id:[email protected]

  99. Anindo Shubro Chakroborty says

    Hi,I am Anindo Shubro Chakroborty from Bangladesh.I need source code for LEACH protocol in Omnet++.Plz send me the source code as early as possible.Thanks………My Email:[email protected]

  100. Monia Bajaj says

    i need LEACH code in mtlab…as soon as possible ….at [email protected]

  101. neha says

    hello sir ,i m neha from lko .i need source code for LEACH protocol in OMNETPP .plz sir provide me the source code on my email [email protected]

  102. Mahmoud says

    plesae , I need LEACH code in matlab at my mail [email protected]

  103. Rashmi says

    I need LEACH CODE for my project work. Please send me the code on my email.

  104. Prashanth Gurram says

    Sir, currently i'm working on the project "SECURE CLUSTERING IN WSN" so I need source code of LEACH PROTOCOL in OMNET++ to start my dissertation work. Would you send me the code asap. Thank u.

    1. Binni says

      Dear Sir, I need LEACH protocol in OMNet++ code for my research work. Could you please send me. Thank you very much.

  105. Renuka sagar says

    can you provide source code in matlab for LEACH protocol in WSN

  106. TanPhan says

    can you please send me the LEACH code in omnet++ [email protected]

  107. Marsilas Aisha says

    Hello there, I kindly request LEACH source code in omnet++. I need it for my Wireless Networks course project. Thanks a lot. My email address: [email protected]

  108. vatsal says

    Hey,i need manual file of NS2 code for Leach and Leach C protocol.please send to [email protected]

  109. sushila batan says

    hello sir,
    i need LEACH code in mtlab…as soon as possible ….at my mail address- sushil[email protected]
    thanx

  110. Madhanraj says

    Hello sir,
    I need LEACH routing protocol source code in OMNET++, for Cluster-based Wireless Sensor Networks.
    My E-mail address: [email protected]
    Thank you very much me…

  111. Madhanraj says

    Hello sir,
    I need LEACH routing protocol source code in OMNET++, for Cluster-based Wireless Sensor Networks.
    My E-mail address: [email protected]
    ThanKs.

  112. arwasahdi says

    can somebody send my the leach c++ code please
    my email is: [email protected]

  113. flowing_river says

    Hello, can u please send me code of Leach in ns2…
    I am doing a project and it would be very helpfull..
    send me on the id [email protected]

  114. amita says

    I need code of LEACH ERE protocol in MATLAB…in WSN Please send me code on my email id "[email protected]" pleaseeeeeee

  115. PRASHANT KATOCH says

    Hello, i need leach omnet++ code for implementation. Please provide me the code for it. Email : [email protected]

  116. asiah says

    Hello sir, kindly send me the coding for MATLAB. Really need it. Thanks for you help.

  117. Hari bala says

    Sir, i need LEACH protocol code for my project implementation please send the code for LEACH in NS2…it would be helpfull for me…thanks in advance

  118. Hari bala says

    Sir please send me the LEACH protocol code in ns2…i need it for my project implementation

  119. ramandeep kaur says

    SIR, plz send me the code of new leach routing protocol in matlab my email id [email protected]

  120. JuHyun Lee says

    Sir please send me the LEACH protocol code in ns2…i need it for my project implementation.
    My email id is [email protected]
    Thanks

  121. Revathy venugopal says

    sir please send me leach source code in ns2. I want to refer it for my project. My email id is [email protected]

  122. nazanin says

    Dear , I need LEACH protocol code in NS2 for my research. Could you please send me this code . Thank you so much.
    [email protected]

  123. guna shanthi says

    Hello sir, i need LEACH protocol code in C++ for OMNET++. Please send this code to my mail. Thank you
    [email protected]

  124. Santigie Bangura says

    please send me leach protocol code in matlab and omnet++, I’m doing a research in wsn . email: [email protected]

  125. JemiPriya says

    Hi sir,
    Im unable to download leach protocol from the link mentioned.Can you please send me the code to my mail id. I need it to complete my M.E., project. My mail id: [email protected]

  126. JemiPriya says

    Need the leach code for omnet++

  127. nalakath says

    I need the code for my studies

  128. sandelimed says

    hello sir,
    i am doing my PG research work. for that i need to analyze leach protocol for WSN. would you please send me LEACH code in NS2 at my email : [email protected]

  129. Karthik says

    Hi Sir,
    I would like to have the LEACH Protocol source code for OMNET++. The link for OMNET++ is redirecting to the same page. I am at the edge of my M.E. project, Please help.
    Email ID: [email protected]

  130. Apurva says

    Hello Sir,
    I need the Leach protocol source code in ns2 for my project. I am on the verge of my review . Please help soon.
    Email id : [email protected]

  131. fadhil says

    please i need improvement leach protocol code for wireless body area network in ns2 or omnet++

  132. Su says

    Could you please send LEACH protocol in omnet++ to my email. Many thanks.

  133. toàn trần says

    Could you please send LEACH-C protocol in matlab to my email : [email protected] . Many thanks.

  134. mais says

    could you please send LEACH protocol source code in C++ and OMNET++ to my email. Many thanks

  135. Priyankakayastha says

    could you please send the LEACH protocol in omnetpp to my email address

  136. kamal says

    could you please send the LEACH protocol in omnetpp to my email address

  137. shoaib says

    i need LEACH-C MATLAB code for my research work plz plz email me the code

  138. George says

    Hi,
    Please send me LEACH protocol code in C++ and OMNeT++. I need to figure out how to create clusters in Castalia/Omnet++ for a protocol that I wish to test

  139. Sulkhan says

    could you please send LEACH protocol source code in NS2, MATLAB and OMNET++ to my email. Many thanks

  140. homazd says

    hi please send me the parent LEACH protocol , I mean the old version in MATLAB. please help soon.
    [email protected]

  141. Tran An says

    Hi! Can you please send me Leach source code in C++. Many thanks

  142. MingYong says

    hello sir, i am doing research work.
    for that i need to analyze leach protocol for WSN.
    would you please send me LEACH code in OMNeT++ at my email : [email protected]
    Thank you very much.

  143. Mahsa says

    Hi,i need leach code in omnet++,please send me,please
    [email protected]

  144. Eyman says

    Hi, can you please send me the LEACH code in MATLAB at [email protected]

  145. niayesh says

    hey can you please send me the Leach code in ns2
    [email protected]

  146. Mahdouch says

    Hello sir, could you send me please LEACH code in omnet++ i need it for my research.
    Thank you very much

  147. hoang says

    hi, i am a student, i am doing research leach protocol. Would you please send me LEACH code in OMNET++ version 5 at my email: [email protected]?
    Thank you very much!

  148. Sminos says

    hello sir, i am working on a project for LEACH protocol. Would please send it to me source code in C++ or Java at my email: [email protected]
    Thank you very much.

  149. alizadeh says

    hello sir, i am doing research work.
    for that i need to analyze leach protocol for WSN.
    would you please send me LEACH code in OMNeT++ at my email :

    [email protected]

    Thank you very much.

  150. Fafi says

    Salam
    I’m a PhD student please can you send me Leach code in ns2
    Thank you

  151. alaa says

    hi
    i need LEACH Centralized matlab code Pleas

  152. surbhi says

    i need LEACH matlab code for major project.

  153. ahmad omari says

    Hi. I want the code of the LEACH protocol. Can you please send it to me?
    [email protected]

  154. radhika says

    could you please send LEACH protocol source code in C++ and OMNET++ to my email [email protected]

    1. radhika says

      your reply is awaited.

  155. Morched says

    i was wondering if u could send the Omnet++ source code.
    i need it for my project
    this is my email
    [email protected]
    thnx in advance

  156. Rama Mohamed says

    please send LEACH protocol source code in C++ and OMNET++ to my email [email protected]

  157. david says

    i need Leach for matlab
    please send me , i very need
    Thank you
    email: [email protected]

  158. Dana Bani Melhem says

    Hello , I need leach protocol code in c++, to embedded it to QualNet , can you send to me please I realy need it !!

  159. Bandana says

    Hi. I need leach protocol code in matlab for my project. PLzz send at [email protected]

Font Resize
Contrast