Font Size: a A A

Cross-edge Collaborative Subsystem Of Container Orchestration Platform Based On NAT Traversal

Posted on:2024-01-22Degree:MasterType:Thesis
Country:ChinaCandidate:M Z ZhaoFull Text:PDF
GTID:2558307079976419Subject:Electronic information
Abstract/Summary:PDF Full Text Request
With the rapid development of the Internet in recent years,all IPv4 addresses have been exhausted,and a large number of devices cannot obtain IPv4 public addresses and can only communicate with the Internet using Network Address Translation(NAT).Generally,when network devices in different LANs want to communicate peer-to-peer(P2P),they need a node with a public IP address to help them achieve NAT traversal.Existing virtual LAN solutions,such as N2N,can create LANs and allow multiple nodes within the LAN to communicate P2P.However,if the central node within the LAN crashes,the LAN will also collapse.To address the dependence of N2N on a single central node,this thesis designs and implements a virtual LAN platform that can automatically control the switching of central nodes.The work done in this thesis includes the following:(1)The distributed virtual local area network platform designed in this thesis involves multiple users,and each user can create or join multiple virtual private LANs.All LAN information is stored using distributed storage in the same P2P network.Each LAN uses an independent and exclusive key pair to ensure information security.(2)To meet the needs of this platform,this thesis makes certain modifications to the Raft consensus algorithm.This thesis adds tasks for Raft leaders,which not only include maintaining information consistency,but also auditing the addition of new nodes,determining whether nodes have disconnected and removing them from the LAN,and being responsible for the switching of central nodes within the LAN.In addition,this thesis also modifies the log replication module of the Raft election algorithm,no longer using a replicated state machine.The log only retains the latest information in the LAN and its corresponding index.(3)This thesis also designs a central node selection algorithm.The algorithm considers three factors:the position,load,and availability of central nodes,in order to select the most suitable central nodes for the current LAN and perform central node switching at the appropriate time.This thesis designs and implements a distributed LAN platform,and designs multiple functional and performance tests on this platform.The test results show that the designed distributed LAN platform in this thesis can not only ensure basic functions such as creating and joining a LAN,but also accurately find the optimal central node and achieve rapid switching when the central node crashes.
Keywords/Search Tags:P2P, Raft algorithm, virtual local area network, scheduling
PDF Full Text Request
Related items