Overview protocol
![](https://private-user-images.githubusercontent.com/80154778/285406434-25799af8-05e9-489e-b4db-e0186c83874d.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0Mjk0MDksIm5iZiI6MTcxOTQyOTEwOSwicGF0aCI6Ii84MDE1NDc3OC8yODU0MDY0MzQtMjU3OTlhZjgtMDVlOS00ODllLWI0ZGItZTAxODZjODM4NzRkLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDE5MTE0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4OWNmMWMzNzUzZmYyYmE4NzFiYWM4YWM4YWU5YmJhYmQ3NWRkOTAzZjU0NmJiY2E3MzVhMTVkMjM3YzQzMDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pyARpY-nIsUMklRhfXQA0azWZzjo4I07JBt0ssHTEq4)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0Mjk0MDksIm5iZiI6MTcxOTQyOTEwOSwicGF0aCI6Ii84MDE1NDc3OC8yODU0MDc3NzktZjUyZjE4NzktYzE3Ny00YmM5LWJkNjMtMzljMzg4NWMxNGRiLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDE5MTE0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBlNGI3MzM2NjRjYzViMDBhMjFhZjNkNDllNzQ4NGJlZTE5ODk4ZjViM2M4YjlmM2IxZjFjZjdjOGUxMGZkYjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mCRaHMURzdR12pJ66Fok0OXw9_10KqZXkmhIshffI6M)
• 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: 20202756@csuft.edu.cn or 1011084743@qq.com
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