CN118524054B - Method and system for realizing interconnection and interworking based on P2P direct connection and routing strategy - Google Patents
Method and system for realizing interconnection and interworking based on P2P direct connection and routing strategy Download PDFInfo
- Publication number
- CN118524054B CN118524054B CN202410985305.6A CN202410985305A CN118524054B CN 118524054 B CN118524054 B CN 118524054B CN 202410985305 A CN202410985305 A CN 202410985305A CN 118524054 B CN118524054 B CN 118524054B
- Authority
- CN
- China
- Prior art keywords
- node
- network
- connection
- data
- result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 230000005540 biological transmission Effects 0.000 claims abstract description 97
- 230000004044 response Effects 0.000 claims abstract description 40
- 238000012795 verification Methods 0.000 claims abstract description 39
- 230000006854 communication Effects 0.000 claims abstract description 35
- 238000004891 communication Methods 0.000 claims abstract description 34
- 238000003745 diagnosis Methods 0.000 claims abstract description 18
- 238000005516 engineering process Methods 0.000 claims abstract description 13
- 238000012544 monitoring process Methods 0.000 claims abstract description 5
- 230000035945 sensitivity Effects 0.000 claims description 31
- 238000004364 calculation method Methods 0.000 claims description 28
- 238000005457 optimization Methods 0.000 claims description 16
- 230000008569 process Effects 0.000 claims description 13
- 230000007613 environmental effect Effects 0.000 claims description 8
- 238000011156 evaluation Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 6
- 238000012937 correction Methods 0.000 claims description 5
- 238000010606 normalization Methods 0.000 claims description 5
- 230000006641 stabilisation Effects 0.000 claims description 5
- 238000011105 stabilization Methods 0.000 claims description 5
- 238000012360 testing method Methods 0.000 claims description 5
- 230000003321 amplification Effects 0.000 claims description 4
- 238000004458 analytical method Methods 0.000 claims description 4
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 4
- 238000012545 processing Methods 0.000 claims description 4
- 238000012790 confirmation Methods 0.000 claims description 3
- 230000010365 information processing Effects 0.000 claims description 3
- 238000007670 refining Methods 0.000 claims description 3
- 230000001105 regulatory effect Effects 0.000 claims description 3
- 238000013097 stability assessment Methods 0.000 claims description 3
- 238000013461 design Methods 0.000 abstract description 2
- 238000011084 recovery Methods 0.000 abstract description 2
- 230000003068 static effect Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000015556 catabolic process Effects 0.000 description 3
- 238000006731 degradation reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001276 controlling effect Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the technical field of network communication, in particular to a method and a system for realizing interconnection and interworking based on P2P direct connection and routing strategies, wherein the method comprises the following steps: based on the initialization node, the node is associated with the logic ring, the position of the node on the logic ring is determined, the initialization state of the node is generated, the initialization state of the node is added into a request and is sent to the guide node, and a response result of the guide node is generated. In the invention, the node connectivity is more accurately captured by initializing the association between the nodes and the logic ring and updating the routing table in real time, the data exchange efficiency is improved, the node verification and the network diagnosis further ensure the network reliability, the network self-recovery capability is enhanced by monitoring the public network IP and adopting the relay protocol to automatically repair the connection failure, the transmission speed is obviously improved and the delay is reduced by optimizing the transmission path and the data multiplexing technology, and a stable and efficient communication platform is provided for network application through the self-adaptive and self-repairing network structure design.
Description
Technical Field
The invention relates to the technical field of network communication, in particular to a method and a system for realizing interconnection and interworking based on P2P direct connection and routing strategies.
Background
The technical field of network communication mainly focuses on data transmission, exchange and interoperability between networks, and the field covers the development from basic physical connection to complex protocols and algorithms, aiming at improving network efficiency, security and expansibility. Network communication technology enables data exchange between users and devices in different geographic locations, supporting various applications such as web browsing, file transfer, video streaming, and cloud computing services. The technical field is continuously evolving, including improving data transmission speed, reducing delay, optimizing routing algorithm, enhancing data encryption and security measures, and developing communication protocols capable of adapting to different network conditions.
The method for realizing interconnection and interworking based on the P2P direct connection and the routing strategy involves using a point-to-point (P2P) network technology to optimize data exchange and communication processes in a network, and in a P2P model, each node in the network is a client or a server and directly communicates with other nodes, so that the pressure of a traditional client-server architecture is relieved. The main uses of the method include improving the efficiency of large-scale and high-concurrency network communication, and are particularly useful in application scenes with high real-time requirements, such as video conferences, online games and large-scale file sharing. By optimizing the discovery process of the nodes, the maintenance of the network topology and the data transmission speed, the technology can remarkably improve the network performance and solve the bottleneck problem in the traditional network setting.
The existing method for realizing interconnection and interworking based on the P2P direct connection and routing strategy depends on a relatively fixed and centralized network architecture, which is worry about handling large-scale or high-concurrency network communication. In the traditional network, data exchange among nodes needs to pass through a plurality of transit, communication delay is increased, real-time transmission efficiency of data is affected, static network configuration is difficult to adapt to changes of network states, such as node faults or network congestion, and network instability caused by the static network configuration is especially fatal in application scenes with high real-time requirements, such as online games, video conferences and the like. The limitation of the infrastructure becomes a bottleneck which restricts the technical progress in modern network application increasingly, and the lack of effective adaptive network management and real-time route optimization mechanisms causes the prior art to have insufficient network expansibility and flexibility, so that network service interruption and quality degradation are caused, and user experience and application performance are affected.
Disclosure of Invention
The application provides a method and a system for realizing interconnection and interworking based on a P2P direct connection and routing strategy, wherein the existing method for realizing interconnection and interworking based on the P2P direct connection and routing strategy depends on a relatively fixed and centralized network architecture, which is worry about handling large-scale or high-concurrency network communication. In the traditional network, data exchange among nodes needs to pass through a plurality of transit, communication delay is increased, real-time transmission efficiency of data is affected, static network configuration is difficult to adapt to changes of network states, such as node faults or network congestion, and network instability caused by the static network configuration is especially fatal in application scenes with high real-time requirements, such as online games, video conferences and the like. The limitation of the infrastructure becomes a bottleneck which restricts the technical progress in modern network application increasingly, and the problem that the user experience and application performance are affected due to the lack of effective self-adaptive network management and real-time route optimization mechanisms, which are insufficient in terms of network expansibility and flexibility, resulting in interruption and quality degradation of network services in the prior art.
In view of the above problems, the present application provides a method and a system for implementing interconnection and interworking based on a P2P direct connection and routing policy.
The application provides a method for realizing interconnection and interworking based on P2P direct connection and routing strategies, wherein the method comprises the following steps:
S1: based on the initialization node, associating the node with the logic ring, determining the position of the node on the logic ring, generating an initialization state of the node, adding the initialization state of the node into a request and transmitting the request to the guidance node, and generating a response result of the guidance node;
S2: updating the routing table according to the node information before and after returning based on the response result of the guide node, generating an updated and optimized routing table, capturing and verifying the connectivity of the target node by using the updated and optimized routing table through a virtual network card technology, and generating a node verification result;
S3: based on the node verification result, executing public network address detection operation, acquiring and recording own public network IP and port information, generating a network diagnosis connection result, and based on the network diagnosis connection result, if direct connection fails, creating a relay channel through a relay protocol, and performing stable connection between nodes to generate a P2P connection state;
S4: and based on the P2P connection state, enabling a data multiplexing technology to process data transmission, executing data packet redundancy check operation, generating a check data set, analyzing a transmission path and adjusting by combining the check data set and a historical data mode, and generating a transmission path adjustment result.
Preferably, the step of obtaining the response result of the guide node specifically includes:
S111: based on the initialized nodes, the association degree index of each node and the logic ring is calculated by combining the position parameters of the nodes and the logic ring, and the formula is adopted:
Generating a node association index, wherein, For the node association index,Is a correction constant for the node position parameter,Is a small amount added to avoid divide-by-zero errors,Is the firstThe location parameters of the individual nodes are used,Is the radius of the logical ring and,Is the total number of nodes;
s112: calculating the initialization state of each node by using the node association index, and adopting the formula:
an initialization node state is generated, wherein, It is the initialization of the state of the node,Is the node association index (node association index),Is thatIs used for the average value of (a),Is thatIs set in the standard deviation of (2),、Is an adjustment coefficient;
s113: and sending the initialization node state joining request to a guide node, verifying the integrity and correctness of the request by the guide node, and adopting the formula:
Generating a boot node response result, wherein, In order for the bootstrapping node to respond to the result,Is a response sensitivity adjustment coefficient that is responsive to the sensitivity,Is the decision threshold value and,Is to initialize the node state.
Preferably, the step of obtaining the updated and optimized routing table specifically includes:
S211: based on the response result of the guide node, extracting communication state data among nodes, analyzing node information before and after the node information, identifying invalid and inefficient links, calculating a connection index among the nodes through enhanced information processing, and adopting the following formula:
generating a node connection quality index, wherein, Is the quality index of the node connection,Is a nodeTo the nodeIs provided with a communication status of (a),Is a nodeIs used for the weight coefficient of the (c),Is the delay between the nodes and,Is the delay adjustment coefficient and is used to adjust the delay time,Is a stability factor;
s212: and carrying out preliminary update on a routing table according to the node connection quality index, updating the routing priority, adopting dynamic routing optimization calculation, and passing the formula:
a preliminary updated routing table is generated, wherein, In order to update the routing table initially,The degree of steepness of the curve is adjusted,Is the threshold value for the priority adjustment,Is the normalized coefficient of the coefficient,Is the node connection quality index;
s213: and calculating a routing table by using the preliminarily updated routing table and the network flow model, and adopting the formula by combining the real-time demand and flow distribution of the network:
generating an updated optimized routing table, wherein, In order to update the optimized routing table,Represents the route value adjusted based on traffic and topology changes,Is a routing table that is initially updated.
Preferably, the step of obtaining the node verification result specifically includes:
s221: setting target node configuration of the virtual network card based on the updated and optimized routing table, reading node data and configuring network parameters of the virtual network card, generating virtual network card configuration parameters, and adopting the formula:
Wherein, Is a virtual network card configuration parameter,Representing the configuration weight of each node,Is an amplification factor which is used to amplify the signal,Is a parameter of the stabilization of the product,Is node routing information in the routing table;
S222: based on the virtual network card configuration parameters, testing the accessibility of the target node through the virtual network card, calculating the connection quality, evaluating each node by using the network test, and obtaining the configuration parameters by the formula:
a connection quality index is generated, wherein, Is the connection quality index of the connecting piece,Is the sensitivity adjustment coefficient of the sensor,Is the threshold value for the success of the connection,Is a normalization factor that is used to normalize the data,Is a coefficient of standardization that is set to be a standard,Is a virtual network card configuration parameter;
S223: summarizing the connection quality indexes, determining the connection state of each node, and verifying the formula:
generating a node verification result, wherein, Is the result of the authentication of the node,Is the probability weight of each node successfully connected,Is a connection evaluation index which is a connection evaluation index,Is the overall stability factor of the device,Is the connection quality index.
Preferably, the step of obtaining the network diagnostic connection result specifically includes:
S311: based on the node verification result, public network address detection is executed, the public network IP and the port number of the current equipment are collected, and the network state index is calculated by combining the external network flow and the time stamp, wherein the calculation formula is as follows:
initial network state information is obtained, wherein, Indicating an index of the status of the network,Representing the IP address of the public network,Represents the number of the port to be used,Representing the traffic of the external network,Representing a current timestamp;
S312: and evaluating the network performance by utilizing the initial network state information, sending a data packet, receiving a corresponding data packet, and adopting the formula:
Introducing stability weight and attenuation factor to obtain network communication stability score, wherein, Representing a network traffic stability score,Representing the total number of data packets,Representing the transmitted firstThe size of the data packet is set to be the same as the size of the data packet,Representing the received firstThe size of the data packet is set to be the same as the size of the data packet,Representing the weight of the stability and,Represents an attenuation factor;
s313: comparing the network communication stability score with a set threshold value according to the network communication stability score, and adopting a judgment formula:
generating a network diagnostic connection result, wherein, Representing the result of the network diagnostic connection,Representing a network traffic stability score,Representing a network stability threshold.
Preferably, the step of obtaining the P2P connection state specifically includes:
s321: determining whether direct connection fails or not according to the network diagnosis connection result, and generating a network connection state mark The formula is adopted:
if the direct connection fails, the method can ensure that, OtherwiseWherein, the method comprises the steps of, wherein,For the network connection status flag,Is the coefficient of sensitivity and is used to determine the sensitivity,Representing a connection delay time;
S322: if the network connection state mark shows that the direct connection fails, a relay channel is established by adopting a relay protocol, and the state of the relay channel is set and generated By the formula:
if the establishment of the relay channel is successful, OtherwiseWherein, the method comprises the steps of, wherein,Representing the status of the trunk path,For the network connection status flag,Is a parameter for adjusting the relay response frequency;
s323: according to the relay channel state, performing stable connection between nodes, calculating and generating a P2P connection state, and adopting the formula:
Wherein, A P2P connection state is indicated,Is an environmental factor that is used to determine the environmental factor,As a parameter of the volatility of the network,Is the state of the relay channel and,Is a weight coefficient for adjusting the influence of network fluctuation.
Preferably, the step of acquiring the verification data set specifically includes:
s411: based on the P2P connection state, by analyzing the delay and duration connection time of each node, the formula is adopted:
calculating a connection stability index between the nodes, wherein, The connection stability index is indicated as such,Is the node attenuation coefficient and,The duration of the connection is indicated as such,Representing the square of the delay between the nodes,Representing a stability assessment threshold;
S412: optimizing a data transmission process by using the connection stability index between the nodes, processing data by a data multiplexing technology, and adopting the formula:
a multiplexed data packet is generated, wherein, Is a data packet of a multiplex,Is the importance score for each data packet,Is the connection stability index of each node;
s413: and executing data packet redundancy check operation according to the multiplexing data, and using the formula:
A set of verification data is generated, wherein, Is a set of verification data that is to be used to verify,Is a data packet of a multiplex,AndIs a verification parameter.
Preferably, the step of obtaining the transmission path adjustment result specifically includes:
S421: analyzing the transmission efficiency and the error rate of the data packet according to the check data set, and adopting the formula:
a transmission efficiency index is generated, wherein, Is an index of the transmission efficiency and,Is to check the packet record in the data set,It is the transmission efficiency that is to be achieved,AndIs the sensitivity and baseline threshold of the adjustment formula;
S422: according to the transmission efficiency index, combining the historical data mode, refining the transmission path, and adopting the formula as follows:
An optimized transmission path is generated, wherein, Is the transmission path after the optimization,Is to optimize the response sensitivity parameter(s),Is the transmission efficiency index of each node,Is the original transmission path;
s423: based on the optimized transmission path, the optimal transmission path is adjusted and determined by combining real-time network state data, and the optimal transmission path is calculated by the formula:
generating a transmission path adjustment result, wherein, Is the result of the adjustment of the transmission path,Is a parameter of the intensity of the response,Is the transmission path after the optimization,Is the decision threshold.
An interconnection system based on a P2P direct connection and routing policy, where the interconnection system based on the P2P direct connection and routing policy is used to execute the interconnection method based on the P2P direct connection and routing policy, and the system includes:
the node initialization and logic ring positioning module sets basic configuration based on the initialization node, associates a logic ring by adopting a network configuration instruction, packages and sends the node state to the guide node, processes the response of the guide node and determines the node state and the ring position, and obtains a node positioning determination result;
the routing table updating and verifying module recompiles the routing table according to the node information based on the point positioning determining result, checks the validity of the new routing table through a network monitoring tool, verifies the connectivity of the target node through a virtual network card, and generates the routing table and a connectivity verification result;
The P2P connection state confirmation module detects the validity of the direct connection channel based on the routing table and the connectivity verification result, if the direct connection fails, the relay channel is constructed to stably connect, data multiplexing and redundancy check are executed, a data transmission path is regulated, and a network flow is optimized, so that a P2P connection stability result is obtained;
the data security and integrity checking module uses the P2P connection stability result to run a data integrity checking program, performs redundancy check on the transmitted data packet, and generates a data security determination result;
And the network diagnosis and performance adjustment module performs network diagnosis and evaluates connection quality according to the data security determination result, records and analyzes network performance data, adjusts network parameters according to the analysis result, and generates a transmission path adjustment result.
One or more technical schemes provided by the application have at least the following technical effects or advantages:
The method has the advantages that the node and the logic ring are initialized through association, the routing table is updated in real time, the connectivity among the nodes is captured more accurately, therefore, the efficiency and the accuracy of data exchange are improved, the change of network conditions can be adapted more quickly, the communication interruption caused by node or connection failure is reduced, the reliability of a network is further ensured through node verification and network diagnosis, the recovery capability of the network is obviously improved through real-time monitoring of public network IP and port information and automatic restoration of the connection failure problem by adopting a relay protocol, the data transmission speed is improved, the network delay is reduced, the network bottleneck and the unstable connection problem are effectively solved through the network structure design of self-adaption and autonomous restoration, and a more stable and efficient communication platform is provided for various network applications.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
Fig. 1 is a general flow chart of an interconnection method based on a P2P direct connection and routing strategy;
Fig. 2 is a flowchart of a guiding node response result for implementing an interconnection method based on a P2P direct connection and routing policy;
fig. 3 is a flowchart of an updated and optimized routing table for implementing an interconnection method based on a P2P direct connection and routing policy according to the present invention;
Fig. 4 is a flowchart of a node verification result for implementing an interconnection method based on a P2P direct connection and routing policy according to the present invention;
fig. 5 is a flowchart of a network diagnostic connection result for implementing an interconnection method based on a P2P direct connection and routing policy according to the present invention;
fig. 6 is a flowchart of a P2P connection state for implementing an interconnection method based on a P2P direct connection and routing policy according to the present invention;
fig. 7 is a flowchart of a verification data set for implementing an interconnection method based on a P2P direct connection and routing policy according to the present invention;
fig. 8 is a flowchart of a transmission path adjustment result for implementing an interconnection method based on a P2P direct connection and routing policy according to the present invention.
Detailed Description
The application provides a method and a system for realizing interconnection and interworking based on a P2P direct connection and routing strategy.
Summary of the application
The method for realizing interconnection and interworking based on the P2P direct connection and routing strategy in the prior art relies on a relatively fixed and centralized network architecture, which is worry when handling large-scale or high-concurrency network communication. In the traditional network, data exchange among nodes needs to pass through a plurality of transit, communication delay is increased, real-time transmission efficiency of data is affected, static network configuration is difficult to adapt to changes of network states, such as node faults or network congestion, and network instability caused by the static network configuration is especially fatal in application scenes with high real-time requirements, such as online games, video conferences and the like. The limitation of the infrastructure becomes a bottleneck which restricts the technical progress in modern network application increasingly, and the lack of effective adaptive network management and real-time route optimization mechanisms causes the prior art to have insufficient network expansibility and flexibility, so that network service interruption and quality degradation are caused, and user experience and application performance are affected.
Aiming at the technical problems, the technical scheme provided by the application has the following general thought.
Examples
As shown in fig. 1, the application provides a method for realizing interconnection and interworking based on a P2P direct connection and routing strategy, wherein the method comprises the following steps:
S1: based on the initialization node, associating the node with the logic ring, determining the position of the node on the logic ring, generating an initialization state of the node, adding the initialization state of the node into a request and sending the request to the guidance node, and generating a response result of the guidance node;
s2: updating the routing table according to the node information before and after returning based on the response result of the guide node, generating an updated and optimized routing table, capturing and verifying the connectivity of the target node by using the updated and optimized routing table through a virtual network card technology, and generating a node verification result;
S3: based on the node verification result, executing public network address detection operation, acquiring and recording own public network IP and port information, generating a network diagnosis connection result, and based on the network diagnosis connection result, if direct connection fails, creating a relay channel through a relay protocol, and performing stable connection between nodes to generate a P2P connection state;
s4: based on the P2P connection state, the data multiplexing technology is started to process data transmission, the data packet redundancy check operation is executed, a check data set is generated, the transmission path is analyzed and adjusted by combining the check data set and the historical data mode, and a transmission path adjustment result is generated.
The guiding node response result comprises a node sequence and a network position, the node verification result comprises connectivity evaluation and signal quality, the network diagnosis connection result comprises a connection mode and a failure reason, the P2P connection state comprises connection stability and a protocol type, the checking data set comprises a checking code and an error rate, and the transmission path adjustment result comprises an optimized path and delay time.
Specifically, as shown in fig. 2, the step of obtaining the response result of the bootstrap node specifically includes:
S111: based on the initialized nodes, the association degree index of each node and the logic ring is calculated by combining the position parameters of the nodes and the logic ring, and the formula is adopted:
Generating a node association index, wherein, For the node association index,Is a correction constant for the node position parameter,Is a small amount added to avoid divide-by-zero errors,Is the firstThe location parameters of the individual nodes are used,Is the radius of the logical ring and,Is the total number of nodes;
s112: calculating the initialization state of each node by using the node association index, and adopting the formula:
an initialization node state is generated, wherein, It is the initialization of the state of the node,Is the node association index (node association index),Is thatIs used for the average value of (a),Is thatIs set in the standard deviation of (2),、Is an adjustment coefficient;
S113: and (3) adding the initialized node state into the request and sending the request to the guide node, verifying the integrity and correctness of the request by the guide node, and adopting the formula:
Generating a boot node response result, wherein, In order for the bootstrapping node to respond to the result,Is a response sensitivity adjustment coefficient that is responsive to the sensitivity,Is the decision threshold value and,Is to initialize the node state.
The formula of the node association index:
Represent the first Position parameters of the individual nodes;
representing the radius of the logical ring;
representing the total number of nodes;
Is a correction constant for adjusting the node position parameter;
Is a small amount to prevent zero removal errors.
Computing for each nodeWhereinThe product of the position of the node and the ring radius is calculated,Making adjustments, summing the results of all nodes, dividing the final result byTo obtain an average value, after adjustment, includingTo ensure that zero is not divided;
Assume that Node location parametersRadius of logic ringCorrection constant2,;
The calculation process comprises the following steps:
Results Representing the adjusted average relevance index.
Initializing a formula of a node state:
Is a node association index;
Is that Is the average value of (2);
Is that Standard deviation of (2);
And The adjustment coefficients are used for adjusting the calculation of the numerator and the denominator respectively;
Calculation of ObtainingThe difference from its mean value, the square of the difference is summedAdding, dividing the result byThe final result is formulated;
Using Assume that、、、;
The calculation process comprises the following steps:
Results Representing the initialization state index of the node.
The formula of the response result of the leading node:
initializing node states;
is a response sensitivity adjustment coefficient;
Is a decision threshold;
Calculation of For a pair ofSquare of the number of timesAdding one, opening, calculating indexAnd adding the two results to one, and dividing the two results;
Using Assume that、,
The calculation process comprises the following steps:
Results A metric value representing the response of the lead node.
Specifically, as shown in fig. 3, the steps for obtaining the updated and optimized routing table specifically include:
S211: based on the response result of the guide nodes, extracting the communication state data among the nodes, analyzing the node information before and after the node information, identifying invalid and inefficient links, calculating the connection index among the nodes through the enhanced information processing, and adopting the formula:
generating a node connection quality index, wherein, Is the quality index of the node connection,Is a nodeTo the nodeIs provided with a communication status of (a),Is a nodeIs used for the weight coefficient of the (c),Is the delay between the nodes and,Is the delay adjustment coefficient and is used to adjust the delay time,Is a stability factor;
s212: and (3) carrying out preliminary update on a routing table according to the node connection quality index, updating the routing priority, adopting dynamic routing optimization calculation, and passing through the formula:
a preliminary updated routing table is generated, wherein, In order to update the routing table initially,The degree of steepness of the curve is adjusted,Is the threshold value for the priority adjustment,Is the normalized coefficient of the coefficient,Is the node connection quality index;
s213: calculating a routing table by using the preliminarily updated routing table and a network flow model, and adopting the formula by combining the real-time demand and flow distribution of the network:
generating an updated optimized routing table, wherein, In order to update the optimized routing table,Represents the route value adjusted based on traffic and topology changes,Is a routing table that is initially updated.
The formula of the node connection quality index:
: node To the nodeFor example, whether or not it is reachable (1 is reachable, 0 is unreachable);
: node According to the importance of the node or the flow distribution;
: node To the nodeIs used for the delay time of the (a), in milliseconds;
: delay adjustment coefficients, balancing the effect of delay in the calculation;
: the stability factor, which prevents the denominator from becoming zero, usually takes a very small value such as 0.01;
: total number of nodes;
Assuming that there are 3 nodes, the communication state between the nodes Weight ofDelay ofThe following are provided:
,,,,,
Calculating node connection quality index :
Calculated outA value of 1.22, which represents a nodeThe weighted quality status for each connection time is averaged, with higher values indicating better connection status.
The formula of the preliminary updated routing table:
: adjusting the steepness of the curve to determine the sensitivity of the function;
: a priority adjustment threshold value, determining when to update;
: normalized coefficient, balance Is a function of (a) and (b).
Assume that:,,, (from step 1);
Calculating a routing table for preliminary updates :
Calculated outA value of 0.554, which means that the node is according to the current connection stateIs used to update the routing table. The closer the value is to 1, the higher the priority, indicating that the update is more urgent.
Updating the formula of the optimized routing table:
: the route value after being adjusted based on the flow and topology change;
: a routing table which is updated preliminarily;
Assume that: ,;
Calculating, updating and optimizing routing table :
Calculated outA value of 122.3, which represents an adjustment value of the routing efficiency of the overall network after considering traffic and topology changes, highThe values indicate that the network has good routing efficiency and low values require further optimization.
Specifically, as shown in fig. 4, the step of obtaining the node verification result specifically includes:
s221: setting target node configuration of the virtual network card based on the updated and optimized routing table, reading node data and configuring network parameters of the virtual network card, generating virtual network card configuration parameters, and adopting the formula:
Wherein, Is a virtual network card configuration parameter,Representing the configuration weight of each node,Is an amplification factor which is used to amplify the signal,Is a parameter of the stabilization of the product,Is node routing information in the routing table;
s222: based on the virtual network card configuration parameters, the reachability of the target node is tested through the virtual network card, the connection quality is calculated, each node is evaluated by using the network test, and the following formula is adopted:
a connection quality index is generated, wherein, Is the connection quality index of the connecting piece,Is the sensitivity adjustment coefficient of the sensor,Is the threshold value for the success of the connection,Is a normalization factor that is used to normalize the data,Is a coefficient of standardization that is set to be a standard,Is a virtual network card configuration parameter;
s223: summarizing the connection quality indexes, determining the connection state of each node, and passing the verification formula:
generating a node verification result, wherein, Is the result of the authentication of the node,Is the probability weight of each node successfully connected,Is a connection evaluation index which is a connection evaluation index,Is the overall stability factor of the device,Is the connection quality index.
Virtual network card configuration parameter formula:
: node Assuming that all node weights are the same, set to 0.5;
: nodes extracted from routing table Is based on the traffic, each node traffic is divided equally into;
: The amplification factor is set to highlight the node with higher flow;
: Stabilization parameters, set;
: Total number of nodes, assuming 5 nodes;
Calculation of :
ResultsRepresenting the comprehensive configuration parameters of the virtual network card, and considering the flow information and the configuration weight of all nodes.
The connection quality index formula:
: the normalization coefficient, assumed to be 1;
: virtual network card configuration parameters;
: a sensitivity adjustment coefficient, assumed to be 0.1;
: the threshold of successful connection is set to 20;
: a normalization factor, set to 2;
Calculation of And:
This resultRepresenting the connection quality index for each node, indicates that the connection quality between the nodes is low, requiring additional configuration or optimization.
Node verification result formula:
: connection quality index;
: the probability weight of each node successful connection is assumed to be 0.8;
: connection assessment index, assumed to be 1.5;
: the overall stabilization factor, assumed to be 0.05;
: total number of nodes.
Calculation ofAnd:
ResultsThe node connection success rate of the whole is represented, and a low value prompts that the network connection has a problem or needs further optimization.
Specifically, as shown in fig. 5, the steps for obtaining the network diagnostic connection result specifically include:
S311: based on the node verification result, public network address detection is executed, the public network IP and the port number of the current equipment are collected, and the network state index is calculated by combining the external network flow and the time stamp, wherein the calculation formula is as follows:
initial network state information is obtained, wherein, Indicating an index of the status of the network,Representing the IP address of the public network,Represents the number of the port to be used,Representing the traffic of the external network,Representing a current timestamp;
s312: evaluating network performance by using the initial network state information, transmitting a data packet, receiving a corresponding data packet, and adopting the formula:
Introducing stability weight and attenuation factor to obtain network communication stability score, wherein, Representing a network traffic stability score,Representing the total number of data packets,Representing the transmitted firstThe size of the data packet is set to be the same as the size of the data packet,Representing the received firstThe size of the data packet is set to be the same as the size of the data packet,Representing the weight of the stability and,Represents an attenuation factor;
s313: comparing the network communication stability score with a set threshold value, and adopting a judgment formula:
generating a network diagnostic connection result, wherein, Representing the result of the network diagnostic connection,Representing a network traffic stability score,Representing a network stability threshold.
Formula derivation of network status indicators:
: the public network IP address, assumed to be in a numerical form, e.g. 192;
: port numbers, e.g., 8080;
: external network traffic, in MB, e.g., 500MB;
: a timestamp, in seconds, assumed to be 3600 seconds (1 hour);
Calculation of : This reflects in part the combined impact of IP address and port number, e.g;
Calculation of: This part calculates the network traffic per unit time, e.g;
Adding the two parts to obtain 。
ResultsA larger value indicates a network status indicator through a given port at a given time, indicating that network activity is denser.
Network communication stability scoring formula:
: a total number of data packets, e.g., 5 data packets;
、 : first, the The transmission and reception sizes of the individual data packets are assumed to beMB,MB;
: Stability weight, assumed to be 0.5;
: an attenuation factor, assumed to be 10;
Calculation for each data packet And squaring:
,,,, ; adding and multiplying all results :
A communication stability score representing a network, a lower score representing a more stable network.
Network diagnostic connection results:
: scoring network communication stability;
: a threshold value for comparing network stability, the setting of this value being based on network performance requirements, assuming the threshold value is 0.005;
Threshold setting: first, a threshold value is determined This is based on network performance metrics or historical data analysis, in this example, assuming 0.005, which means that any stability score above this value indicates network instability;
Comparison operation: score stability And threshold valueComparing;
And (3) condition judgment: if it is Less thanI.e., 0.004535<0.005, the result shows that the network state is stable ifGreater than or equal toThe result shows instability;
based on the comparison and the set threshold, r=stable is obtained, which means that the network communication performs well with stability under given parameters and conditions, and the preset performance lower limit is not exceeded.
Specifically, as shown in fig. 6, the P2P connection state acquiring step specifically includes:
S321: determining whether direct connection fails or not through a network diagnosis connection result, and generating a network connection state mark The formula is adopted:
if the direct connection fails, the method can ensure that, OtherwiseWherein, the method comprises the steps of, wherein,For the network connection status flag,Is the coefficient of sensitivity and is used to determine the sensitivity,Representing a connection delay time;
S322: if the network connection status flag shows the direct connection failure, a relay protocol is adopted to create a relay channel, and the status of the relay channel is set and generated By the formula:
if the establishment of the relay channel is successful, OtherwiseWherein, the method comprises the steps of, wherein,Representing the status of the trunk path,For the network connection status flag,Is a parameter for adjusting the relay response frequency;
S323: according to the relay channel state, performing stable connection between nodes, calculating and generating a P2P connection state, and adopting the formula:
Wherein, A P2P connection state is indicated,Is an environmental factor that is used to determine the environmental factor,As a parameter of the volatility of the network,Is the state of the relay channel and,Is a weight coefficient for adjusting the influence of network fluctuation.
Network connection status flag formula:
is a sensitivity coefficient, controlling the measure of time sensitivity;
Is the time elapsed from the attempt to connect to the failure of the judgment;
determining parameter values: assume that (Sensitivity coefficient),Seconds (time from attempted connection to failure);
Calculating an index part:
substituting formula calculation:
Here, the The calculated network connection status flag indicates that the direct connection is basically failed because it is close to 0.5 but slightly biased towards 0.
Relay channel state formula:
frequency parameters are used for adjusting the response frequency of the relay protocol;
A network connection status flag;
determining parameter values: assume that ,;
Calculating a sine part:
substituting formula calculation:
Here, the The value of (2) indicates that the relay channel establishment is more successful because its value is close to 1.
The calculation process formula of the P2P connection state comprises the following steps:
is the state of the relay channel and, Is an environmental factor that is used to determine the environmental factor,Is a parameter of the volatility of the network,Is a weight coefficient for adjusting the influence of network volatility;
determining parameter values: assume that ,,,;
Calculating a numerator and a denominator:
Molecules: ;
Denominator: ; substituting formula calculation:
Here, the The value of (2) indicates that the P2P connection state is relatively stable and reliable.
Specifically, as shown in fig. 7, the step of acquiring the check data set specifically includes:
S411: based on the P2P connection state, by analyzing the delay and duration connection time of each node, the formula is adopted:
calculating a connection stability index between the nodes, wherein, The connection stability index is indicated as such,Is the node attenuation coefficient and,The duration of the connection is indicated as such,Representing the square of the delay between the nodes,Representing a stability assessment threshold;
S412: optimizing a data transmission process by using a connection stability index between nodes, processing data by a data multiplexing technology, and adopting the following formula:
a multiplexed data packet is generated, wherein, Is a data packet of a multiplex,Is the importance score for each data packet,Is the connection stability index of each node;
s413: performing a packet redundancy check operation according to the multiplexed data using the formula:
A set of verification data is generated, wherein, Is a set of verification data that is to be used to verify,Is a data packet of a multiplex,AndIs a verification parameter.
The formula for the connection stability index:
: node attenuation coefficient, influence the sensitivity that the stability of connection assessed, value range 0.1 to 1.0 generally;
: representing the delay (in milliseconds) between nodes, the delay being between 10ms and 100ms, assuming good network conditions;
: meaning the duration of the connection (in seconds), typically the time the connection has been for, e.g. 30 seconds to 300 seconds;
: a stability evaluation threshold representing the square of the desired connection stability time, e.g., set to 10000 (i.e., 100 seconds square);
Assume that there are two nodes :
For node 1:,ms,s;
for node 2: ,ms,s;
Calculation of :
The calculation gives a quantitative assessment of the connection stability of each node, whereinLower values of (2) indicate lower connection stability.
The formula for multiplexing data packets:
: a connection stability index for each node;
: the importance score of each data packet is generally assigned according to the priority of the data, assuming a range of 1 to 10;
Assume that ,(High importance);
Assume that ,((Of low importance);
Calculation of :
This value isRepresenting the average processed value of the data packets processed by the multiplexing technique, a lower value indicates that further optimization of the data routing or packet processing strategy is required.
The formula for checking the dataset:
: multiplexing the data packets;
And : Calibration parameters, typically used to adjust the sensitivity of the calibration process, are assumedAnd;
Assume that,,
Calculation of:
This value isIndicating the check integrity of the data, wherein higher values indicate better data transmission quality and integrity.
Specifically, as shown in fig. 8, the transmission path adjustment result obtaining step specifically includes:
s421: according to the transmission efficiency and the error rate of the check data set analysis data packet, adopting the formula:
a transmission efficiency index is generated, wherein, Is an index of the transmission efficiency and,Is to check the packet record in the data set,It is the transmission efficiency that is to be achieved,AndIs the sensitivity and baseline threshold of the adjustment formula;
S422: according to the transmission efficiency index, combining the historical data mode, refining the transmission path, and adopting the formula:
An optimized transmission path is generated, wherein, Is the transmission path after the optimization,Is to optimize the response sensitivity parameter(s),Is the transmission efficiency index of each node,Is the original transmission path;
s423: based on the optimized transmission path, the optimal transmission path is adjusted and determined by combining real-time network state data, and the optimal transmission path is calculated by the formula:
generating a transmission path adjustment result, wherein, Is the result of the adjustment of the transmission path,Is a parameter of the intensity of the response,Is the transmission path after the optimization,Is the decision threshold.
Calculating a transmission efficiency indexThe formula:
: first, the Recording the data packets in a verification data set;
: first, the The transmission efficiency of the individual data packets;
: adjusting the coefficient, influence Is a part of the influence of (1);
: an efficiency baseline threshold, an offset of the exponential function is adjusted.
Assume parameters:
(three data packets),
,,(Packet check record),
,,(Packet transfer efficiency),
,(Adjustment coefficients and efficiency baseline),
For each data packet, calculate:
:;
:;
:;
This value is Indicating an overall transmission efficiency index, wherein higher values indicate better transmission efficiency.
Optimized transmission pathThe formula:
: optimizing response sensitivity parameters;
: first, the A transmission efficiency index of the individual nodes;
: an original transmission path;
assume parameters:
(three nodes),
(Response sensitivity),
,,(The transmission efficiency index obtained from step 1),,,(The value of the original transmission path);
Calculating the sum of denominators:
calculating an optimized path for each node:
:,:,:, This value is Representing the optimized total transmission path, wherein the weight is determined by the transmission efficiency and the path length of the node.
Transmission path adjustment resultThe formula:
: responding to the intensity parameter;
: an optimized transmission path;
: a decision threshold;
assume parameters: (response intensity), (Calculated from step 2),(Decision threshold);
The calculation process comprises the following steps:
This value is The final decision result of the transmission path adjustment is shown, reflecting the higher transmission path efficiency.
An interconnection system based on a P2P direct connection and routing policy, where the interconnection system based on the P2P direct connection and routing policy is used to execute the interconnection method based on the P2P direct connection and routing policy, and the system includes:
the node initialization and logic ring positioning module sets basic configuration based on the initialization node, associates a logic ring by adopting a network configuration instruction, packages and sends the node state to the guide node, processes the response of the guide node and determines the node state and the ring position, and obtains a node positioning determination result;
the routing table updating and verifying module recompiles the routing table according to the node information based on the point positioning determining result, checks the validity of the new routing table through a network monitoring tool, verifies the connectivity of the target node through a virtual network card, and generates the routing table and a connectivity verification result;
The P2P connection state confirmation module detects the validity of the direct connection channel based on the routing table and the connectivity verification result, if the direct connection fails, the relay channel is constructed to stably connect, data multiplexing and redundancy check are executed, a data transmission path is regulated, and a network flow is optimized, so that a P2P connection stability result is obtained;
the data security and integrity checking module uses the P2P connection stability result to run a data integrity checking program, performs redundancy check on the transmitted data packet, and generates a data security determination result;
And the network diagnosis and performance adjustment module performs network diagnosis and evaluates connection quality according to the data security determination result, records and analyzes network performance data, adjusts network parameters according to the analysis result, and generates a transmission path adjustment result.
Although the application has been described in connection with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely exemplary illustrations of the present application as defined in the appended claims and are considered to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the application. It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the scope of the application. Thus, it is intended that the present application cover the modifications and variations of this application provided they come within the scope of the appended claims and their equivalents.
Claims (9)
1. The method for realizing interconnection and interworking based on the P2P direct connection and the routing strategy is characterized by comprising the following steps:
Based on the initialization node, associating the node with the logic ring, determining the position of the node on the logic ring, generating an initialization state of the node, adding the initialization state of the node into a request and transmitting the request to the guidance node, and generating a response result of the guidance node;
Updating the routing table according to the node information before and after returning based on the response result of the guide node, generating an updated and optimized routing table, capturing and verifying the connectivity of the target node by using the updated and optimized routing table through a virtual network card technology, and generating a node verification result;
Based on the node verification result, executing public network address detection operation, acquiring and recording own public network IP and port information, generating a network diagnosis connection result, and based on the network diagnosis connection result, if direct connection fails, creating a relay channel through a relay protocol, and performing stable connection between nodes to generate a P2P connection state;
And based on the P2P connection state, enabling a data multiplexing technology to process data transmission, executing data packet redundancy check operation, generating a check data set, analyzing a transmission path and adjusting by combining the check data set and a historical data mode, and generating a transmission path adjustment result.
2. The method for implementing interconnection and interworking based on P2P direct connection and routing policy according to claim 1, wherein the step of obtaining the response result of the bootstrap node specifically includes:
based on the initialized nodes, the association degree index of each node and the logic ring is calculated by combining the position parameters of the nodes and the logic ring, and the formula is adopted:
Generating a node association index, wherein, For the node association index,Is a correction constant for the node position parameter,Is a small amount added to avoid divide-by-zero errors,Is the firstThe location parameters of the individual nodes are used,Is the radius of the logical ring and,Is the total number of nodes;
Calculating the initialization state of each node by using the node association index, and adopting the formula:
an initialization node state is generated, wherein, It is the initialization of the state of the node,Is the node association index (node association index),Is thatIs used for the average value of (a),Is thatIs set in the standard deviation of (2),、Is an adjustment coefficient;
And sending the initialization node state joining request to a guide node, verifying the integrity and correctness of the request by the guide node, and adopting the formula:
Generating a boot node response result, wherein, In order for the bootstrapping node to respond to the result,Is a response sensitivity adjustment coefficient that is responsive to the sensitivity,Is the decision threshold value and,Is to initialize the node state.
3. The method for implementing interconnection and interworking based on P2P direct connection and routing policy according to claim 2, wherein the step of obtaining the updated and optimized routing table specifically includes:
based on the response result of the guide node, extracting communication state data among nodes, analyzing node information before and after the node information, identifying invalid and inefficient links, calculating a connection index among the nodes through enhanced information processing, and adopting the following formula:
generating a node connection quality index, wherein, Is the quality index of the node connection,Is a nodeTo the nodeIs provided with a communication status of (a),Is a nodeIs used for the weight coefficient of the (c),Is the delay between the nodes and,Is the delay adjustment coefficient and is used to adjust the delay time,Is a stability factor;
And carrying out preliminary update on a routing table according to the node connection quality index, updating the routing priority, adopting dynamic routing optimization calculation, and passing the formula:
a preliminary updated routing table is generated, wherein, In order to update the routing table initially,The degree of steepness of the curve is adjusted,Is the threshold value for the priority adjustment,Is the normalized coefficient of the coefficient,Is the node connection quality index;
and calculating a routing table by using the preliminarily updated routing table and the network flow model, and adopting the formula by combining the real-time demand and flow distribution of the network:
generating an updated optimized routing table, wherein, In order to update the optimized routing table,Represents the route value adjusted based on traffic and topology changes,Is a routing table that is initially updated.
4. The method for implementing interconnection and interworking based on P2P direct connection and routing policy according to claim 3, wherein the step of obtaining the node verification result specifically includes:
Setting target node configuration of the virtual network card based on the updated and optimized routing table, reading node data and configuring network parameters of the virtual network card, generating virtual network card configuration parameters, and adopting the formula:
Wherein, Is a virtual network card configuration parameter,Representing the configuration weight of each node,Is an amplification factor which is used to amplify the signal,Is a parameter of the stabilization of the product,Is node routing information in the routing table;
Based on the virtual network card configuration parameters, testing the accessibility of the target node through the virtual network card, calculating the connection quality, evaluating each node by using the network test, and obtaining the configuration parameters by the formula:
a connection quality index is generated, wherein, Is the connection quality index of the connecting piece,Is the sensitivity adjustment coefficient of the sensor,Is the threshold value for the success of the connection,Is a normalization factor that is used to normalize the data,Is a coefficient of standardization that is set to be a standard,Is a virtual network card configuration parameter;
summarizing the connection quality indexes, determining the connection state of each node, and verifying the formula:
generating a node verification result, wherein, Is the result of the authentication of the node,Is the probability weight of each node successfully connected,Is a connection evaluation index which is a connection evaluation index,Is the overall stability factor of the device,Is the connection quality index.
5. The method for implementing interconnection and interworking based on P2P direct connection and routing policy according to claim 4, wherein the step of obtaining the network diagnostic connection result specifically comprises:
Based on the node verification result, public network address detection is executed, the public network IP and the port number of the current equipment are collected, and the network state index is calculated by combining the external network flow and the time stamp, wherein the calculation formula is as follows:
initial network state information is obtained, wherein, Indicating an index of the status of the network,Representing the IP address of the public network,Represents the number of the port to be used,Representing the traffic of the external network,Representing a current timestamp;
and evaluating the network performance by utilizing the initial network state information, sending a data packet, receiving a corresponding data packet, and adopting the formula:
Introducing stability weight and attenuation factor to obtain network communication stability score, wherein, Representing a network traffic stability score,Representing the total number of data packets,Representing the transmitted firstThe size of the data packet is set to be the same as the size of the data packet,Representing the received firstThe size of the data packet is set to be the same as the size of the data packet,Representing the weight of the stability and,Represents an attenuation factor;
comparing the network communication stability score with a set threshold value according to the network communication stability score, and adopting a judgment formula:
generating a network diagnostic connection result, wherein, Representing the result of the network diagnostic connection,Representing a network traffic stability score,Representing a network stability threshold.
6. The method for implementing interconnection and interworking based on P2P direct connection and routing policy according to claim 5, wherein the step of obtaining the P2P connection state specifically includes:
Determining whether direct connection fails or not according to the network diagnosis connection result, and generating a network connection state mark The formula is adopted:
if the direct connection fails, the method can ensure that, OtherwiseWherein, the method comprises the steps of, wherein,For the network connection status flag,Is the coefficient of sensitivity and is used to determine the sensitivity,Representing a connection delay time;
If the network connection state mark shows that the direct connection fails, a relay channel is established by adopting a relay protocol, and the state of the relay channel is set and generated By the formula:
if the establishment of the relay channel is successful, OtherwiseWherein, the method comprises the steps of, wherein,Representing the status of the trunk path,For the network connection status flag,Is a parameter for adjusting the relay response frequency;
According to the relay channel state, performing stable connection between nodes, calculating and generating a P2P connection state, and adopting the formula:
Wherein, A P2P connection state is indicated,Is an environmental factor that is used to determine the environmental factor,As a parameter of the volatility of the network,Is the state of the relay channel and,Is a weight coefficient for adjusting the influence of network fluctuation.
7. The method for implementing interconnection and interworking based on P2P direct connection and routing policy according to claim 6, wherein the step of obtaining the check data set specifically includes:
based on the P2P connection state, by analyzing the delay and duration connection time of each node, the formula is adopted:
calculating a connection stability index between the nodes, wherein, The connection stability index is indicated as such,Is the node attenuation coefficient and,The duration of the connection is indicated as such,Representing the square of the delay between the nodes,Representing a stability assessment threshold;
optimizing a data transmission process by using the connection stability index between the nodes, processing data by a data multiplexing technology, and adopting the formula:
a multiplexed data packet is generated, wherein, Is a data packet of a multiplex,Is the importance score for each data packet,Is the connection stability index of each node;
And executing data packet redundancy check operation according to the multiplexing data, and using the formula:
A set of verification data is generated, wherein, Is a set of verification data that is to be used to verify,Is a data packet of a multiplex,AndIs a verification parameter.
8. The method for implementing interconnection and interworking based on P2P direct connection and routing policy according to claim 7, wherein the step of obtaining the transmission path adjustment result specifically includes:
Analyzing the transmission efficiency and the error rate of the data packet according to the check data set, and adopting the formula:
a transmission efficiency index is generated, wherein, Is an index of the transmission efficiency and,Is to check the packet record in the data set,It is the transmission efficiency that is to be achieved,AndIs the sensitivity and baseline threshold of the adjustment formula;
According to the transmission efficiency index, combining the historical data mode, refining the transmission path, and adopting the formula as follows:
An optimized transmission path is generated, wherein, Is the transmission path after the optimization,Is to optimize the response sensitivity parameter(s),Is the transmission efficiency index of each node,Is the original transmission path;
Based on the optimized transmission path, the optimal transmission path is adjusted and determined by combining real-time network state data, and the optimal transmission path is calculated by the formula:
generating a transmission path adjustment result, wherein, Is the result of the adjustment of the transmission path,Is a parameter of the intensity of the response,Is the transmission path after the optimization,Is the decision threshold.
9. An interconnection and interworking system based on a P2P direct connection and routing policy, characterized in that the interconnection and interworking method based on a P2P direct connection and routing policy according to any one of claims 1 to 8 is implemented, the system comprising:
the node initialization and logic ring positioning module sets basic configuration based on the initialization node, associates a logic ring by adopting a network configuration instruction, packages and sends the node state to the guide node, processes the response of the guide node and determines the node state and the ring position, and obtains a node positioning determination result;
the routing table updating and verifying module recompiles the routing table according to the node information based on the point positioning determining result, checks the validity of the new routing table through a network monitoring tool, verifies the connectivity of the target node through a virtual network card, and generates the routing table and a connectivity verification result;
The P2P connection state confirmation module detects the validity of the direct connection channel based on the routing table and the connectivity verification result, if the direct connection fails, the relay channel is constructed to stably connect, data multiplexing and redundancy check are executed, a data transmission path is regulated, and a network flow is optimized, so that a P2P connection stability result is obtained;
the data security and integrity checking module uses the P2P connection stability result to run a data integrity checking program, performs redundancy check on the transmitted data packet, and generates a data security determination result;
And the network diagnosis and performance adjustment module performs network diagnosis and evaluates connection quality according to the data security determination result, records and analyzes network performance data, adjusts network parameters according to the analysis result, and generates a transmission path adjustment result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410985305.6A CN118524054B (en) | 2024-07-23 | 2024-07-23 | Method and system for realizing interconnection and interworking based on P2P direct connection and routing strategy |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410985305.6A CN118524054B (en) | 2024-07-23 | 2024-07-23 | Method and system for realizing interconnection and interworking based on P2P direct connection and routing strategy |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118524054A CN118524054A (en) | 2024-08-20 |
CN118524054B true CN118524054B (en) | 2024-09-20 |
Family
ID=92277100
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410985305.6A Active CN118524054B (en) | 2024-07-23 | 2024-07-23 | Method and system for realizing interconnection and interworking based on P2P direct connection and routing strategy |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118524054B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101252490A (en) * | 2007-12-07 | 2008-08-27 | 华中科技大学 | A peer-to-peer network organization method based on delay aggregation in game middleware |
CN102306157A (en) * | 2011-07-12 | 2012-01-04 | 中国人民解放军国防科学技术大学 | Energy-saving-oriented high-reliability data storage method in data center environment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8489701B2 (en) * | 2007-01-30 | 2013-07-16 | Microsoft Corporation | Private virtual LAN spanning a public network for connection of arbitrary hosts |
US8725807B2 (en) * | 2010-08-04 | 2014-05-13 | International Business Machines Corporation | Decentralized data casting in an interest aware peer network |
CN102333116B (en) * | 2011-09-20 | 2013-07-24 | 华中科技大学 | P2P (peer-to-peer) network building method and data positioning method |
CN106604352A (en) * | 2016-12-30 | 2017-04-26 | 成都大学 | Data acquisition method and data acquisition device |
-
2024
- 2024-07-23 CN CN202410985305.6A patent/CN118524054B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101252490A (en) * | 2007-12-07 | 2008-08-27 | 华中科技大学 | A peer-to-peer network organization method based on delay aggregation in game middleware |
CN102306157A (en) * | 2011-07-12 | 2012-01-04 | 中国人民解放军国防科学技术大学 | Energy-saving-oriented high-reliability data storage method in data center environment |
Also Published As
Publication number | Publication date |
---|---|
CN118524054A (en) | 2024-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108616912B (en) | Network quality optimization method and device | |
TW201830929A (en) | Context-based detection of anomalous behavior in network traffic patterns | |
KR101831604B1 (en) | Method for transmitting data, method for authentication, and server for executing the same | |
US10447561B2 (en) | BFD method and apparatus | |
CN119316368A (en) | Dynamic traffic scheduling method and system based on network configuration | |
US11956118B2 (en) | Fault root cause identification method, apparatus, and device | |
CN118612059B (en) | An Internet of Things device management system | |
CN106341270B (en) | A kind of fault handling method and device | |
JP2018148350A (en) | Threshold determination device, threshold determination method and program | |
CN115428397B (en) | Industrial control system security analysis method, device and computer readable medium | |
KR101990022B1 (en) | Method for generating malicious traffic template about device group including malicious device apparatus thereof | |
CN114253799A (en) | Fault processing system, method, server and readable storage medium | |
WO2024199174A1 (en) | Anomaly detection method and related device | |
CN112600952A (en) | Method and system for accelerating distribution of mobile terminal network | |
CN119788742B (en) | Data transmission method and platform based on OpenHarmony | |
CN118524054B (en) | Method and system for realizing interconnection and interworking based on P2P direct connection and routing strategy | |
US20080288432A1 (en) | Device and Method of Fixing Wireless Network Problems | |
KR20220029142A (en) | Sdn controller server and method for analysing sdn based network traffic usage thereof | |
CN114731301A (en) | Determination method, determination system, and program | |
CN112000504A (en) | Fault processing method and device for computing node and electronic equipment | |
CN111565124B (en) | Topology analysis method and device | |
CN117294833B (en) | Camera chip testing method and related equipment | |
CN116723154B (en) | Route distribution method and system based on load balancing | |
CN117579344A (en) | Network structure characteristic abnormality detection system | |
US12244644B2 (en) | Methods and devices for measuring reputation in a communication network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |