实现与TCP/IP的共识

Parshal Chitrakar, P. Ranjan
{"title":"实现与TCP/IP的共识","authors":"Parshal Chitrakar, P. Ranjan","doi":"10.1109/CSNT51715.2021.9509664","DOIUrl":null,"url":null,"abstract":"Distributed systems need to work with multiple processes and hence, the need for consensus among them is paramount. Large number of such technical processes are implemented on TCP/IP communication framework. TCP is used in conjunction with IP to maintain a connection between the sender and receiver to ensure packet order and to exchange data. The interfaces and protocols needed by the users on the application layer leverage the implementation of consensus to help all the nodes communicate and evolve to a common state. In this work, we use Python3.7 socket programming to demonstrate consensus between two programs running on a network. Further, these programs implement their own version of consensus protocols to achieve a single state. We demonstrate this in action for various time integration steps which can be both matched i.e. same integration time steps on both sides and mismatched, i.e. different time integration steps for both peers. Further, since Consensus protocol analysis suffers from unrealistic instantaneous information communication assumption, delayed version of consensus protocol is explored. Role of increased round trip delay or RTT has also been documented by making the programs sleep for some predetermined time interval. Insights into implementation of consensus using TCP-IP have been presented.","PeriodicalId":122176,"journal":{"name":"2021 10th IEEE International Conference on Communication Systems and Network Technologies (CSNT)","volume":"63 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-06-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Implementation of consensus with TCP/IP\",\"authors\":\"Parshal Chitrakar, P. Ranjan\",\"doi\":\"10.1109/CSNT51715.2021.9509664\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Distributed systems need to work with multiple processes and hence, the need for consensus among them is paramount. Large number of such technical processes are implemented on TCP/IP communication framework. TCP is used in conjunction with IP to maintain a connection between the sender and receiver to ensure packet order and to exchange data. The interfaces and protocols needed by the users on the application layer leverage the implementation of consensus to help all the nodes communicate and evolve to a common state. In this work, we use Python3.7 socket programming to demonstrate consensus between two programs running on a network. Further, these programs implement their own version of consensus protocols to achieve a single state. We demonstrate this in action for various time integration steps which can be both matched i.e. same integration time steps on both sides and mismatched, i.e. different time integration steps for both peers. Further, since Consensus protocol analysis suffers from unrealistic instantaneous information communication assumption, delayed version of consensus protocol is explored. Role of increased round trip delay or RTT has also been documented by making the programs sleep for some predetermined time interval. Insights into implementation of consensus using TCP-IP have been presented.\",\"PeriodicalId\":122176,\"journal\":{\"name\":\"2021 10th IEEE International Conference on Communication Systems and Network Technologies (CSNT)\",\"volume\":\"63 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-06-18\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2021 10th IEEE International Conference on Communication Systems and Network Technologies (CSNT)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/CSNT51715.2021.9509664\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 10th IEEE International Conference on Communication Systems and Network Technologies (CSNT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CSNT51715.2021.9509664","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

分布式系统需要与多个进程一起工作,因此,它们之间达成共识的需求是至关重要的。大量此类技术流程都是在TCP/IP通信框架上实现的。TCP与IP一起用于维持发送方和接收方之间的连接,以确保数据包的顺序和交换数据。用户在应用层所需的接口和协议利用共识的实现来帮助所有节点通信并演化到公共状态。在这项工作中,我们使用Python3.7套接字编程来演示在网络上运行的两个程序之间的一致性。此外,这些程序实现了自己版本的共识协议,以实现单一状态。我们在各种时间积分步骤中证明了这一点,这些时间积分步骤既可以匹配,即两边的积分时间步骤相同,也可以不匹配,即两边的时间积分步骤不同。进一步,由于共识协议分析存在不现实的瞬时信息通信假设,本文探讨了共识协议的延迟版本。通过使程序在预定的时间间隔内休眠,也记录了增加往返延迟或RTT的作用。提出了使用TCP-IP实现共识的见解。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Implementation of consensus with TCP/IP
Distributed systems need to work with multiple processes and hence, the need for consensus among them is paramount. Large number of such technical processes are implemented on TCP/IP communication framework. TCP is used in conjunction with IP to maintain a connection between the sender and receiver to ensure packet order and to exchange data. The interfaces and protocols needed by the users on the application layer leverage the implementation of consensus to help all the nodes communicate and evolve to a common state. In this work, we use Python3.7 socket programming to demonstrate consensus between two programs running on a network. Further, these programs implement their own version of consensus protocols to achieve a single state. We demonstrate this in action for various time integration steps which can be both matched i.e. same integration time steps on both sides and mismatched, i.e. different time integration steps for both peers. Further, since Consensus protocol analysis suffers from unrealistic instantaneous information communication assumption, delayed version of consensus protocol is explored. Role of increased round trip delay or RTT has also been documented by making the programs sleep for some predetermined time interval. Insights into implementation of consensus using TCP-IP have been presented.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信