Data sharing system based on P2P technology

By monitoring user data clicks through the client module, evaluating client performance through the device scoring unit, and analyzing data volume and time through the shared analysis unit, a shared management table is generated to optimize the allocation of shared resources for the client. This solves the problem of inaccurate client selection in existing technologies and reduces server load and resource waste.

CN119544727BActive Publication Date: 2026-02-03ZHONGSHUI SANLI DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411365709.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2026-02-03
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

Existing technologies neglect the frequency and size of each client's data sharing when selecting auxiliary data sharing clients, resulting in inaccurate selection, wasted resources, and excessive server load.

Method used

The client module monitors user data clicks, generates shared data, and transmits it to the relay server. The device scoring unit evaluates client performance, the shared analysis unit analyzes data volume and time, and the shared management unit generates a shared management table to optimize the allocation of shared resources on the client.

Benefits of technology

It enables more precise client selection, reduces server load, makes rational use of client resources, and avoids resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544727B_ABST
    Figure CN119544727B_ABST
Patent Text Reader

Abstract

The application discloses a data sharing system based on P2P technology and relates to the technical field of data sharing.The client module acquires the data pre-shared by a user and shares the data into the rest trusted client modules.The device scoring unit scores the trusted client modules.The sharing analysis unit periodically analyzes the data capacity and click time of all the shared data and calculates the sharing capacity evaluation quantity in combination with the device score.The sharing management unit intercepts a plurality of trusted client modules according to the size of the sharing capacity evaluation quantity, obtains a sharing management table, and then selects the sharing client modules from the sharing management table when a certain client module pre-shares data, so that the sharing client modules replace the relay service unit to perform the sharing operation of the data.Through the method, the load pressure of the server on the shared data can be greatly reduced, and the sharing resources of the trusted client modules can be reasonably utilized as much as possible.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data sharing, and particularly relates to a data sharing system based on P2P technology. BACKGROUND

[0002] In the process of data sharing of multiple clients, a server is usually needed as an intermediary, and multiple clients upload data to be shared to the server, and then the server transmits the data to other clients, so as to realize data sharing. However, when the amount of shared data is large and frequent, the traditional centralized mode often brings great pressure to the server, and the server is in an overload state for a long time, which is not conducive to the stable operation of the server.

[0003] In order to solve this problem, the prior art introduces P2P (peer-to-peer) technology, and distributes the data to be shared on selected client nodes in a distributed manner, so as to greatly relieve the sharing pressure of the server. However, the prior art mainly selects the client nodes based on the hardware device performance of the client, and ignores the key factors such as the frequency and data capacity of each client itself for sharing data. This way of selecting the client is not accurate enough, and it also wastes the sharing transmission resources of the remaining clients.

[0004] In order to solve the above problems, the present application provides a solution. SUMMARY

[0005] The present application aims to provide a data sharing system based on P2P technology, in order to solve the problem that the prior art ignores the key factors such as the frequency and data capacity of each client itself for sharing data when selecting the client nodes for sharing data, resulting in the selected client not being accurate enough.

[0006] The purpose of the present application can be achieved by the following technical solutions:

[0007] The data sharing system based on P2P technology comprises:

[0008] A plurality of client terminals are used for trusted clients to share data, and the plurality of client terminals comprise a plurality of client modules, one client module corresponding to one trusted client.

[0009] When the client module monitors that the user clicks the submit button, the client module acquires the data to be shared selected by the user and the click time, and generates the shared data of the user according to the click time.

[0010] Then the client module looks up whether the sharing management table is stored in it, if not, the sharing data of the user's current click is transmitted to the relay server, otherwise, a trusted client is selected from the sharing management table as a sharing client, and the sharing data of the user's current click is transmitted to the sharing client, and the sharing client transmits the sharing data of the user's current click to the remaining trusted clients;

[0011] The relay server is used for data sharing between trusted clients, and the relay server includes a relay service unit, a sharing analysis unit, a device scoring unit and a sharing management unit;

[0012] The device scoring unit scores each trusted client according to a plurality of scoring characteristics of a plurality of parameter items of each trusted client to obtain device scores of all trusted clients, and the parameter items include a processor, a memory, a storage, a graphics card, a network card and a system version.

[0013] The sharing analysis unit periodically analyzes the data capacity and click time of all sharing data received by the relay server, and calculates sharing capacity evaluation quantities of all trusted clients in combination with the device scores of the trusted clients.

[0014] The sharing management unit intercepts sharing capacity evaluation quantities of a plurality of trusted clients from all received sharing capacity evaluation quantities of the trusted clients, and then matches corresponding sharing data quantities for all intercepted trusted clients based on a plurality of ability evaluation intervals and corresponding sharing data quantities preset by a management personnel to obtain a sharing management table, wherein the sharing management table includes a plurality of trusted clients and corresponding sharing capacity evaluation quantities and sharing data quantities.

[0015] Further, the sharing management unit intercepts sharing capacity evaluation quantities of a plurality of trusted clients from all received sharing capacity evaluation quantities of the trusted clients in descending order of the sharing capacity evaluation quantities.

[0016] Further, when the sharing client monitors that the data capacity of the sharing data transmitted to all remaining trusted clients is greater than or equal to the corresponding sharing data quantity in the sharing management table, a stop sharing instruction is generated and transmitted to all remaining trusted clients.

[0017] After all remaining trusted clients receive the transmitted stop sharing instruction, the sharing data is stopped from being transmitted to the sharing client.

[0018] And the next client corresponding to the sharing capacity evaluation quantity in descending order of the sharing capacity evaluation quantities in the sharing management table is selected as the sharing client.

[0019] Further, when all the shared clients in the sharing management table generate a stop sharing instruction, the client module destroys the sharing management table.

[0020] Advantages of the present application:

[0021] (1) The present application acquires the data pre-shared by the user through the client module and shares it to the remaining trusted clients, at the same time, the data sharing between the trusted clients is realized through the establishment of the relay service unit, in addition, the device score unit is configured to score according to multiple parameters of each trusted client to evaluate the device performance, in order to further optimize the sharing process, the sharing analysis unit is additionally provided, which periodically analyzes the data capacity and click time of all the shared data received by the relay service end, and combines the device score of the trusted client to calculate the sharing capacity evaluation of all the trusted clients, this comprehensive evaluation method makes the selection of the trusted client for assisting the sharing of data more accurate, avoiding the inaccurate situation caused by selecting the client only from the device itself;

[0022] (2) The present application intercepts a number of trusted clients according to the sharing capacity evaluation of all the trusted clients through the sharing management unit, and matches the corresponding shared data amount for all the intercepted trusted clients based on the ability evaluation interval and the corresponding shared data amount pre-set by the management personnel, to obtain a sharing management table, then when a client module pre-shares data, the sharing client is preferentially selected based on the sharing management table to replace the relay service unit to perform the sharing operation of the data, in this way, not only can the load pressure of the server on the shared data be greatly reduced, but also the sharing resources of the trusted client can be reasonably utilized as much as possible, avoiding the occurrence of resource waste in the idle state. BRIEF DESCRIPTION OF DRAWINGS

[0023] The present application will be further described below in conjunction with the drawings.

[0024] Figure 1 is a system block diagram of the present application;

[0025] Figure 2 is a method flowchart of the present application. DETAILED DESCRIPTION

[0026] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present application.

[0027] As Figure 1 , 2 indicated, the data sharing system based on P2P technology includes a plurality of client terminals and a relay server;

[0028] The plurality of client terminals are used for data sharing by trusted clients, and the plurality of client terminals include a plurality of client modules, one of which corresponds to one trusted client. In this embodiment, the trusted client refers to a computer that is authorized and allowed to share data.

[0029] The client module provides a submit button for the corresponding user to click to select pre-shared data for data sharing.

[0030] When the user clicks the submit button, the corresponding client module acquires the pre-shared data selected by the user this time and the time when the submit button is clicked this time, and generates the shared data of the user this time according to the pre-shared data acquired this time and the time when the submit button is clicked this time.

[0031] Then the client module searches for whether the shared management table is stored in it, and if not, the shared data of the user this time is transmitted to the relay server.

[0032] The relay server is used for relaying shared data between a plurality of trusted clients, and includes a relay service unit, a shared analysis unit, a device scoring unit and a shared management unit.

[0033] After the relay server receives the shared data of the user this time transmitted, it is transmitted to the relay service unit and the shared analysis unit, respectively. After the relay service unit receives the shared data of the user this time transmitted, it is first stored, and then the shared data of the user this time is transmitted to all the remaining client modules except the client module corresponding to the user.

[0034] After the client module receives the shared data of the user this time transmitted, it is stored for the corresponding user of the client module to view.

[0035] After the shared analysis unit receives the shared data of the user this time transmitted, it is stored.

[0036] The device scoring unit scores all trusted clients, and the device scoring unit obtains a plurality of scoring features of a plurality of parameter items of all trusted clients, the parameter items including a processor, a memory, a storage, a graphics card, a network card, and a system version, wherein the scoring features of the processor include a processor brand, a model, a core number, a thread, and a main frequency, the scoring features of the memory include a memory capacity, a type, and a frequency, the scoring features of the storage include a hard disk capacity, a hard disk type, and a read-write speed of the storage, the scoring features of the graphics card include a graphics card brand, a model, a graphics memory capacity, and a GPU core frequency, the scoring features of the network card include a network card model and supported network protocols, and the scoring features of the system version include an operating system version and a system architecture (32-bit or 64-bit);

[0037] The device scoring unit pre-stores scoring rules set by an administrator for scoring a plurality of scoring features of a plurality of parameter items of a client, the scoring rules including a plurality of scoring indicators of a plurality of parameter items, each scoring indicator being set with a corresponding score, the scoring indicator being used to determine whether the corresponding scoring feature of the corresponding parameter item meets the scoring indicator, if so, the score corresponding to the scoring indicator is obtained, and the score is assigned to the scoring feature, indicating that the device scoring unit gives the scoring feature the score;

[0038] After the device scoring unit scores a plurality of scoring features of a plurality of parameter items of each trusted client according to the scoring rules, the scores of the plurality of scoring features of the plurality of parameter items of each trusted client are added to obtain a device score of each trusted client, and the device score is stored;

[0039] The sharing analysis unit analyzes all user multiple-click sharing data stored periodically;

[0040] The current sharing analysis period, the sharing analysis unit analyzes all user multiple-click sharing data stored in the current sharing monitoring period, and the analysis steps are as follows:

[0041] S11: First, a trusted client is selected as a client to be analyzed, and all times of clicking sharing data generated by the client to be analyzed in the sharing analysis period are sequentially marked as A1, A2,..., Aa according to the chronological order of the clicking time, a≥1;

[0042] S12: The data capacity of pre-shared data contained in the sharing data A1, A2,..., Aa is sequentially obtained, and is marked as B1, B2,..., Ba;

[0043] S13: The formula Calculate the dispersion C1 of the data capacity sizes B1, B2,..., Ba, compare C1 with C, where B is the average of the data capacity sizes B1, B2,..., Ba, and C is the preset standard dispersion of the data capacity size;

[0044] If C1≥C, delete the corresponding Bb in the order of |Bb-B| from large to small, and calculate the dispersion C1 of the remaining Bb, and compare C1 with C again until C1

[0045] S14: Obtain the time when the client clicks the submit button in the shared data A1, A2,..., Aa in turn, and mark it as E1, E2,..., Ea;

[0046] S15: Calculate the absolute value of the difference between the times E1 and E2, E2 and E3,..., Ea-1 and Ea, respectively, and mark it as F1, F2,..., Ff, f = 1, 2,..., a-1;

[0047] S16: Use the formula Calculate the dispersion G1 of the times F1, F2,..., Ff, and compare G1 with G, where F is the average of Ff, and G is the preset standard dispersion of the shared time;

[0048] If G1≥G, delete the corresponding time Fg in the order of |Fg-F| from large to small, and calculate the dispersion G1 of the remaining Fg, and compare G1 with G again until G1

[0049] S14: Obtain the device score H1 of the client to be analyzed stored in the device analysis unit;

[0050] S15: Use the formula Calculate the shared ability evaluation J1 of the client to be analyzed, where α1 is a preset dimension adjustment factor used to adjust the shared data standard quantity and the shared time standard quantity to the same operation dimension for operation, I1 is a preset dimension adjustment constant used to adjust the operation results of the shared data standard quantity and the shared time standard quantity to the same operation dimension for operation, β1 and β2 are the first and second adjustment proportion factors, respectively;

[0051] S16: Select all trusted clients as clients to be analyzed, calculate and obtain the shared capability assessment of all trusted clients in turn, and update the storage based on the shared capability assessment of all trusted clients stored in the shared analysis unit.

[0052] At the same time, the shared analysis unit will update and transmit the shared capability assessment values ​​of all trusted clients stored in the shared management unit;

[0053] The shared management unit pre-stores auxiliary shared tables set by administrators. The auxiliary shared tables store several capability assessment intervals, and each capability assessment interval corresponds to a preset amount of shared data.

[0054] After the shared management unit receives the shared capability assessment values ​​of all trusted clients, it first sorts all trusted clients in descending order of their shared capability assessment values, and then extracts the trusted clients whose shared capability assessment values ​​are greater than or equal to P1.

[0055] Then, referring to the auxiliary sharing table, match the corresponding capability assessment interval for each extracted shared capability assessment quantity, and obtain the shared data quantity corresponding to the successfully matched capability assessment interval;

[0056] Finally, a shared management table is generated based on the shared capability assessment of each trusted client, its corresponding client, and the shared data volume corresponding to its matching capability assessment range.

[0057] The shared management unit transmits the shared management table to all trusted clients, and the corresponding clients store the shared management table.

[0058] If the client module finds a shared management table stored therein, it will select the client with the largest shared capability assessment value in the shared management table in descending order as the shared client for this click, and prioritize transmitting the shared data clicked by the user to the shared client.

[0059] After receiving the shared data of the user's current click, the sharing client transmits it to all other trusted clients. It should be noted that the transmission to all other trusted clients does not include the client that generated the shared data of the user's current click.

[0060] When the sharing client detects that the size of the shared data transmitted to all other trusted clients is greater than or equal to the corresponding amount of shared data in the sharing management table, it generates a stop sharing command and transmits it to all other trusted clients.

[0061] Once all other trusted clients receive the stop sharing instruction, they will stop transmitting shared data to that sharing client.

[0062] When a client module generates new shared data that needs to be shared, the next client with the next shared capability assessment value is selected as the sharing client, according to the order of the shared capability assessment value in the shared management table from largest to smallest.

[0063] Once all sharing clients in the shared management table generate a stop sharing command, the client module will destroy the shared management table.

[0064] In the description of this specification, the references to terms such as "an embodiment," "example," "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0065] The above description is merely an example and illustration of the present invention. Those skilled in the art can make various modifications or additions to the specific embodiments described, or use similar methods to replace them, as long as they do not deviate from the invention or exceed the scope defined in the claims, all of which should fall within the protection scope of the present invention.

[0066] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.

Claims

1. A data sharing system based on P2P technology, characterized in that, include: Multiple client terminals are used for trusted clients to share data. A multiple client terminal includes several client modules, and one client module corresponds to one trusted client. When the client module detects that the user clicks the submit button, it obtains the data to be pre-shared by the user and the click time, and generates the shared data of the user's click based on it; Then the client module checks if a shared management table is stored within it. If it does not exist, the shared data clicked by the user is transmitted to the relay server. Otherwise, a trusted client is selected from the shared management table as the shared client, and the shared data clicked by the user is transmitted to the shared client. The shared client then transmits the shared data clicked by the user to the other trusted clients. The relay server is used for data sharing between trusted clients. The relay server includes a relay service unit, a sharing analysis unit, a device scoring unit, and a sharing management unit. The device scoring unit scores each trusted client based on several parameters and scoring characteristics to obtain the device score for all trusted clients. The parameters include processor, memory, storage, graphics card, network card, and system version. The shared analysis unit periodically analyzes the data volume and click time of all shared data received by the relay server, and calculates the sharing capability assessment of all trusted clients in combination with the device scores of trusted clients. The shared management unit extracts the shared capability assessment values ​​of several trusted clients from the received shared capability assessment values ​​of all trusted clients. Then, based on several capability assessment intervals preset by the administrator and their corresponding shared data volumes, it matches the corresponding shared data volumes of all extracted trusted clients to obtain a shared management table. The shared management table includes several trusted clients and their corresponding shared capability assessment values ​​and shared data volumes. When the sharing client detects that the size of the shared data transmitted to all other trusted clients is greater than or equal to the corresponding amount of shared data in the sharing management table, it generates a stop sharing command and transmits it to all other trusted clients. Once all other trusted clients receive the stop sharing instruction, they will stop transmitting shared data to that sharing client. And select the client corresponding to the next shared capability assessment value as the shared client according to the order of the shared capability assessment value from largest to smallest in the shared management table.

2. The data sharing system based on P2P technology according to claim 1, characterized in that, The client module provides a submit button for the corresponding user, allowing them to click and select the data to be shared.

3. The data sharing system based on P2P technology according to claim 1, characterized in that, The scoring characteristics of a processor include processor brand, model, number of cores, threads, and clock speed; the scoring characteristics of memory include memory capacity, type, and frequency; the scoring characteristics of storage include hard drive capacity, hard drive type, and read / write speed; the scoring characteristics of a graphics card include graphics card brand, model, video memory capacity, and GPU core frequency; the scoring characteristics of a network card include network card model and supported network protocols; and the scoring characteristics of a system version include operating system version and system architecture.

4. The data sharing system based on P2P technology according to claim 1, characterized in that, The shared management unit extracts a number of trusted clients' shared capability assessment values ​​from all received trusted clients' shared capability assessment values ​​in descending order of shared capability assessment values.

5. The data sharing system based on P2P technology according to claim 1, characterized in that, The device scoring unit pre-stores scoring rules set by administrators for scoring several parameters and several scoring characteristics of clients. The scoring rules include several scoring indicators for several parameters, and each scoring indicator is assigned a corresponding score. The scoring indicators are used to assess whether the corresponding scoring characteristics of the corresponding parameter meet the scoring indicator.

6. The data sharing system based on P2P technology according to claim 1, characterized in that, Once all shared clients in the shared management table generate a stop sharing command, the client module destroys the shared management table.

7. The data sharing system based on P2P technology according to claim 1, characterized in that, The relay server also includes a relay service unit. After the shared data of the user's current click is transmitted to the relay server, the relay server transmits the shared data of the user's current click to the relay service unit, which then transmits it to all other trusted clients.

Citation Information

Patent Citations

  • Data sharing system based on micro-service architecture

    CN116827961A

  • Cross-chain data security sharing mechanism construction method based on oracle machine

    CN117579693A