Overview protocol
![](https://private-user-images.githubusercontent.com/80154778/285406434-25799af8-05e9-489e-b4db-e0186c83874d.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM0OTc3NDMsIm5iZiI6MTcyMzQ5NzQ0MywicGF0aCI6Ii84MDE1NDc3OC8yODU0MDY0MzQtMjU3OTlhZjgtMDVlOS00ODllLWI0ZGItZTAxODZjODM4NzRkLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEyVDIxMTcyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxNjE5YzAxYzc1MzM5OTU1MGI0NjI5OTY4N2QwNmQyMzdhMTJkZTIwMDExNGI2NDQ5ZGVmOWE2MTJlM2VkNDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.20glPycJdCI_mzZiMq9OEl1AX8F0MXpt9KMijERUvKk)
We propose the APAP to balance the two competing interests in energy-constrained WSNs.
APAP mainly consists of two parts: adaptive packet-reproduction routing and active packet-loss mechanism.
![](https://private-user-images.githubusercontent.com/80154778/285407779-f52f1879-c177-4bc9-bd63-39c3885c14db.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM0OTc3NDMsIm5iZiI6MTcyMzQ5NzQ0MywicGF0aCI6Ii84MDE1NDc3OC8yODU0MDc3NzktZjUyZjE4NzktYzE3Ny00YmM5LWJkNjMtMzljMzg4NWMxNGRiLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEyVDIxMTcyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3NDIxZDgwY2EzMjM2MjE3NDY0YTE0YTJhMzc3ZGZmY2M5YzNmODZhNmE4NGU4NGI1ODYzZDY3NTAxNWJiYzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.p1Z9_hGqmRKmwJqVFLe6Zvv1gf6X7sb60Qts9Ido9Ek)
• Folder APAP implements our new protocol for data collection;PR and GRDR are the comparison protocol in the cited article.
• Energy consumption at MAC is not considered in our sinmulation.
• The main.m in each file is the entry of program .
• The Test1~4.m in APAP file is the test file for the key parameters.
• Folder "Data statistics code(part)" contains the statistical and plotting codes.
• Before running the simulation protocol, please set the workspace to the corresponding file directory.
• If you run the program on a personal computer, in the following files, you may need to change the path to make it process correctly:
topology.m
write_txt.m
plot_node.m
write_2.m
Screenshot of the simulation process:
•Any issues regarding the paper is welcome, please contact us for help.
Authors’ information: Address: Central South University of Forestry and Technology, 498 Shaoshan South Road, Tianxin District, Changsha, Hunan Province, China Name&Email: XingGao email: [email protected] or [email protected]
The doi of our paper will be upload later..
Thanks for reading!
----Edited by XingGao
October 2022
Our work was published in the 《Computer Communications》(COMCOM), the DOI of this paper is https://doi.org/10.1016/j.comcom.2023.08.015.
----Edited by XingGao
September 2023