Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Client networking access method and device in P2P system

A technology of client and client identity, applied in the Internet field, can solve the problems of high complexity, reducing the saving ratio of P2P system, and wasting resources.

Active Publication Date: 2021-08-13
NANJING SUNING SOFTWARE TECH CO LTD
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Among them, the defect of method 1 is obvious. The amount of message forwarding between nodes is large. Due to the repeated sending of messages, the efficiency is low. The more nodes in the cluster, the greater the overhead, wasting resources, especially bandwidth resources, which is not conducive to the horizontal expansion of services; method Second, the information of subscribers needs to be synchronized between nodes. The synchronization time interval will affect the forwarding efficiency. Data synchronization also increases the process complexity of coupling between nodes and message queues. In a P2P system, due to the large number of subscription topics, subscribers change quickly , frequent synchronization will lead to high synchronization overhead in cross-regional computer rooms, and if the synchronization gap is large, it will cause the clients to fail to communicate with each other in time, increase the access delay of the P2P system and reduce the connectivity rate of the P2P system, thereby reducing the P2P System Savings Ratio
It can be seen that the message queues currently on the market are difficult to meet the high-availability, high-performance, and low-latency requirements of P2P system business requirements.
At present, all kinds of message queue software have the above two problems, and the construction scale is large and the complexity is high.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Client networking access method and device in P2P system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] see figure 1 , the present embodiment provides a method for client network access in a P2P system, including:

[0050] Deploy message queue service and discovery service on each node in the P2P system, and each client completes registration in the message queue server and discovery server of the nearby node respectively; receive the subscription topic of the client through the message queue server of the nearby node , and report the subscription topic to the discovery service through the discovery server. The subscription topic includes the message queue node information to which the client belongs and the client identity information; the peer client obtains the subscription topic through the discovery service, and at the same time, the peer client The topic is sent to the client through the corresponding message queue; the client and the peer client respectively establish a networking channel based on each other's subscription topics.

[0051] In the method for client...

Embodiment 2

[0078] This embodiment provides a device for client network access in a P2P system, including:

[0079] The registration unit is used to deploy the message queue service and the discovery service on each node in the P2P system, and each client completes the registration in the message queue server and the discovery server of the nearby node respectively;

[0080] The reporting unit is configured to receive the subscription topic of the client through the message queue server of the nearby node, and report the subscription topic to the discovery service through the discovery server, and the subscription topic includes the information of the message queue node to which the client belongs and the client's terminal identity information;

[0081] The feedback unit is used for the peer client to obtain the subscription topic through the discovery service, and at the same time send the subscription topic of the peer client to the client through the corresponding message queue;

[0082...

Embodiment 3

[0092] This embodiment provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, the steps of the above method for client network access in the P2P system are executed.

[0093] Compared with the prior art, the beneficial effect of the computer-readable storage medium provided by this embodiment is the same as the beneficial effect of the method for client network access in the P2P system provided by the above technical solution, and will not be repeated here.

[0094] Those of ordinary skill in the art can understand that all or part of the steps in the above-mentioned inventive method can be completed by instructing related hardware through a program. The above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, it includes: For each step of the method in the above embodiments, the storage medium may be: ROM / RAM, magnetic d...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a client networking access method and device in a P2P system, relates to the technical field of Internet, and can meet the service performance requirements of high availability, high performance and low delay of the P2P system. The method comprises the following steps that a message queue service and a discovery service are deployed in each node in a P2P system, and each client completes registration in a message queue server and a discovery server of a nearby node; a subscription theme of each client is received through the message queue server of the nearby node, the subscription theme is reported to the discovery service through the discovery server, and the subscription theme comprises information of a message queue node to which each client belongs and identity information of the client; an opposite-end client obtains the subscription theme through the discovery service, and sends the subscription theme of the opposite-end client to the client through a corresponding message queue; and the client and the opposite-end client respectively establish a networking channel based on the subscription theme of the opposite side. The method provided by the scheme is applied to the device.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method and device for network access of a client in a P2P system. Background technique [0002] On the Internet, most of the clients of the P2P system are located behind NAT devices, and the mutual communication between clients needs to perform NAT traversal first. Before NAT traversal, the clients need to exchange information, because the exchange information is dynamic Therefore, it has high requirements for timeliness, which requires a third-party service deployed on the public network to support the business, and the message queue can better realize this business model. [0003] In the P2P system, since a large number of clients need to try to connect with each other, initiate message interaction, and subscribe topics and subscribers (clients) frequently change, there are high requirements for the number of channels for subscribing topics in the message queue. There a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08
CPCH04L67/104H04L67/51
Inventor 林健祖兆研陈兴洲苏进进
Owner NANJING SUNING SOFTWARE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products