[go: up one dir, main page]

CN119030967A - A method and system for user data transmission based on distributed network - Google Patents

A method and system for user data transmission based on distributed network Download PDF

Info

Publication number
CN119030967A
CN119030967A CN202411164840.1A CN202411164840A CN119030967A CN 119030967 A CN119030967 A CN 119030967A CN 202411164840 A CN202411164840 A CN 202411164840A CN 119030967 A CN119030967 A CN 119030967A
Authority
CN
China
Prior art keywords
data
formula
dictionary
format
dictionary format
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.)
Pending
Application number
CN202411164840.1A
Other languages
Chinese (zh)
Inventor
刘德建
丁迪锋
林琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Tianqing Online Interactive Technology Co Ltd
Original Assignee
Fujian Tianqing Online Interactive Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujian Tianqing Online Interactive Technology Co Ltd filed Critical Fujian Tianqing Online Interactive Technology Co Ltd
Priority to CN202411164840.1A priority Critical patent/CN119030967A/en
Publication of CN119030967A publication Critical patent/CN119030967A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a system for transmitting user data based on a distributed network, wherein a server receives data sent by a first client for the first time and converts the data into dictionary format data so as to store the common structural characteristics of the data through the dictionary format data and compress and simplify the data. When the second client sends a downloading request for data, dictionary format data is downloaded from the server and restored to the original data format through a formula, so that the second client decompresses the appointed data through the dictionary, and repeated downloading of the repeated part of data is not needed during data transmission; the data with the same structure has a common structure, a dictionary-data storage technology is established for realizing the conversion of data 'slimming' and data dictionary format, and meanwhile, the transmission mode is not required to be changed through the conversion of the data dictionary format instead of data encryption, so that the data transmission efficiency is improved, and the safety of data transmission is ensured.

Description

一种基于分布式网络的用户数据传输的方法及系统A method and system for user data transmission based on distributed network

技术领域Technical Field

本发明涉及数据传输的技术领域,特别涉及一种基于分布式网络的用户数据传输的方法及系统。The present invention relates to the technical field of data transmission, and in particular to a method and system for user data transmission based on a distributed network.

背景技术Background Art

在当前的信息技术领域,随着数据量的爆炸性增长,数据存储与访问效率成为了分布式系统设计的核心挑战之一。分布式文件系统,作为处理大规模数据存储和访问的关键技术,通过将数据分散存储在多个节点上,显著提高了数据的可靠性和访问速度。然而,在高并发数据请求的环境下,传统分布式文件系统在响应速度和数据处理能力上仍面临诸多瓶颈。In the current information technology field, with the explosive growth of data volume, data storage and access efficiency have become one of the core challenges of distributed system design. Distributed file systems, as key technologies for handling large-scale data storage and access, significantly improve data reliability and access speed by distributing data across multiple nodes. However, in an environment with high concurrent data requests, traditional distributed file systems still face many bottlenecks in response speed and data processing capabilities.

数据压缩技术在分布式系统中扮演着至关重要的角色。通过减少数据的存储空间占用,压缩技术不仅能够降低存储成本,还能在一定程度上提升数据传输和访问的效率。在Windows等主流操作系统中,数据压缩技术已得到广泛应用,但大多侧重于单一文件或数据块的压缩,缺乏针对分布式环境优化的整体解决方案。Data compression technology plays a vital role in distributed systems. By reducing the storage space occupied by data, compression technology can not only reduce storage costs, but also improve the efficiency of data transmission and access to a certain extent. In mainstream operating systems such as Windows, data compression technology has been widely used, but most of them focus on the compression of single files or data blocks, and lack an overall solution optimized for distributed environments.

尽管现有技术如Windows数据压缩方案在单节点环境下表现出色,但在分布式文件系统中仍存在明显不足:Although existing technologies such as Windows data compression schemes perform well in single-node environments, they still have obvious shortcomings in distributed file systems:

1.当前技术主要聚焦于数据压缩本身,即通过算法减少数据的物理大小,但往往忽视了对常见文件类型或数据特征的针对性优化。这种“一刀切”的压缩方式无法充分利用不同数据类型的特性,从而限制了压缩效率和效果。1. Current technologies mainly focus on data compression itself, that is, reducing the physical size of data through algorithms, but often ignore the targeted optimization of common file types or data features. This "one-size-fits-all" compression method cannot fully utilize the characteristics of different data types, thus limiting the compression efficiency and effect.

2.现有的分布式文件系统虽然支持数据压缩,但通常仅停留在数据压缩存储的层面,缺乏对压缩文件的有效管理和组织。这意味着在数据访问时,系统需要额外的时间来解压数据,进而影响了整体访问速度。2. Although existing distributed file systems support data compression, they usually only stay at the level of data compression storage and lack effective management and organization of compressed files. This means that when accessing data, the system needs extra time to decompress the data, which in turn affects the overall access speed.

3.随着数据安全的日益重要,数据加密成为了不可或缺的功能。然而,现有技术往往难以在保证数据快速访问的同时,实现有效的数据加密。这种安全性的缺失使得分布式文件系统在敏感数据存储方面存在潜在风险。3. As data security becomes increasingly important, data encryption has become an indispensable function. However, existing technologies often find it difficult to achieve effective data encryption while ensuring fast data access. This lack of security makes distributed file systems a potential risk in storing sensitive data.

4.在高并发数据请求模式下,分布式文件系统需要快速响应大量并发请求,并提供稳定的数据访问服务。然而,现有的数据压缩和访问机制往往难以同时满足这些需求,导致系统性能下降。4. In the high-concurrency data request mode, the distributed file system needs to quickly respond to a large number of concurrent requests and provide stable data access services. However, the existing data compression and access mechanisms often cannot meet these requirements at the same time, resulting in a decrease in system performance.

鉴于上述背景和技术挑战,开发一种能够针对分布式文件系统特点进行优化的数据压缩与管理方案显得尤为重要。In view of the above background and technical challenges, it is particularly important to develop a data compression and management solution that can be optimized for the characteristics of distributed file systems.

发明内容Summary of the invention

本发明所要解决的技术问题是:提供一种基于分布式网络的用户数据传输的方法及系统,能够提高数据传输效率,并保证数据传输的安全性。The technical problem to be solved by the present invention is to provide a method and system for user data transmission based on a distributed network, which can improve the data transmission efficiency and ensure the security of data transmission.

为了解决上述技术问题,本发明采用的技术方案为:In order to solve the above technical problems, the technical solution adopted by the present invention is:

一种基于分布式网络的用户数据传输的方法,包括步骤:A method for transmitting user data based on a distributed network, comprising the steps of:

服务端将接收到的第一客户端的数据转换为字典格式数据,所述字典格式数据包括所述数据的结构属性特征和经公式压缩的数据内容特征,并存储所述字典格式数据;The server converts the received data from the first client into dictionary format data, wherein the dictionary format data includes structural attribute characteristics of the data and data content characteristics compressed by a formula, and stores the dictionary format data;

第二客户端响应于针对所述数据的下载请求,从所述服务端中下载所述字典格式数据,并将所述字典格式数据通过公式还原为原数据格式。The second client downloads the dictionary format data from the server in response to the download request for the data, and restores the dictionary format data to the original data format through a formula.

为了解决上述技术问题,本发明采用的另一种技术方案为:In order to solve the above technical problems, another technical solution adopted by the present invention is:

一种基于分布式网络的用户数据传输的系统,包括第一客户端、服务端和第二客户端:A system for transmitting user data based on a distributed network, comprising a first client, a server, and a second client:

服务端将接收到的第一客户端的数据转换为字典格式数据,所述字典格式数据包括所述数据的结构属性特征和经公式压缩的数据内容特征,并存储所述字典格式数据;The server converts the received data from the first client into dictionary format data, wherein the dictionary format data includes structural attribute characteristics of the data and data content characteristics compressed by a formula, and stores the dictionary format data;

第二客户端响应于针对所述数据的下载请求,从所述服务端中下载所述字典格式数据,并将所述字典格式数据通过公式还原为原数据格式。The second client downloads the dictionary format data from the server in response to the download request for the data, and restores the dictionary format data to the original data format through a formula.

本发明的有益效果在于:服务端接收到第一客户端首次发送的数据后,将其转换为字典格式数据,以通过字典格式数据存储数据的共用结构特征并进行数据压缩和简化。当第二客户端发出针对数据的下载请求时,从服务端中下载字典格式数据,并将字典格式数据通过公式还原为原数据格式,以此方式,第二客户端通过字典对指定数据进行解压,在数据传输时还无需重复下载重复部分的数据;并且相同结构的数据拥有共同结构,为其建立了字典-数据存储技术实现数据“瘦身”以及数据字典格式的转换,同时通过数据字典格式转换而非数据加密,也不需要改变传输模式,能够在提高数据传输效率的同时保证数据传输的安全性。The beneficial effect of the present invention is that after receiving the data sent by the first client for the first time, the server converts it into dictionary format data, so as to store the common structural features of the data through the dictionary format data and perform data compression and simplification. When the second client issues a download request for data, the dictionary format data is downloaded from the server, and the dictionary format data is restored to the original data format through a formula. In this way, the second client decompresses the specified data through the dictionary, and there is no need to repeatedly download the repeated part of the data during data transmission; and the data of the same structure have a common structure, and a dictionary-data storage technology is established for it to realize data "slimming" and data dictionary format conversion. At the same time, through data dictionary format conversion instead of data encryption, there is no need to change the transmission mode, which can improve the data transmission efficiency while ensuring the security of data transmission.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明实施例的一种基于分布式网络的用户数据传输的方法的流程图;FIG1 is a flow chart of a method for user data transmission based on a distributed network according to an embodiment of the present invention;

图2为本发明实施例的一种基于分布式网络的用户数据传输的系统的示意图;FIG2 is a schematic diagram of a system for transmitting user data based on a distributed network according to an embodiment of the present invention;

图3为本发明实施例的一种基于分布式网络的用户数据传输的方法的具体步骤流程图;3 is a flowchart of specific steps of a method for user data transmission based on a distributed network according to an embodiment of the present invention;

图4为本发明实施例的一种基于分布式网络的用户数据传输的方法的字典格式转换的示意图。FIG. 4 is a schematic diagram of dictionary format conversion in a method for transmitting user data based on a distributed network according to an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

为详细说明本发明的技术内容、所实现目的及效果,以下结合实施方式并配合附图予以说明。In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

请参照图1,本发明实施例提供了一种基于分布式网络的用户数据传输的方法,包括步骤:Referring to FIG. 1 , an embodiment of the present invention provides a method for user data transmission based on a distributed network, comprising the steps of:

服务端将接收到的第一客户端的数据转换为字典格式数据,所述字典格式数据包括所述数据的结构属性特征和经公式压缩的数据内容特征,并存储所述字典格式数据;The server converts the received data from the first client into dictionary format data, wherein the dictionary format data includes structural attribute characteristics of the data and data content characteristics compressed by a formula, and stores the dictionary format data;

第二客户端响应于针对所述数据的下载请求,从所述服务端中下载所述字典格式数据,并将所述字典格式数据通过公式还原为原数据格式。The second client downloads the dictionary format data from the server in response to the download request for the data, and restores the dictionary format data to the original data format through a formula.

从上述描述可知,本发明的有益效果在于:服务端接收到第一客户端首次发送的数据后,将其转换为字典格式数据,以通过字典格式数据存储数据的共用结构特征并进行数据压缩和简化。当第二客户端发出针对数据的下载请求时,从服务端中下载字典格式数据,并将字典格式数据通过公式还原为原数据格式,以此方式,第二客户端通过字典对指定数据进行解压,在数据传输时还无需重复下载重复部分的数据;并且相同结构的数据拥有共同结构,为其建立了字典-数据存储技术实现数据“瘦身”以及数据字典格式的转换,同时通过数据字典格式转换而非数据加密,也不需要改变传输模式,能够在提高数据传输效率的同时保证数据传输的安全性。From the above description, it can be seen that the beneficial effect of the present invention is that after the server receives the data sent by the first client for the first time, it converts it into dictionary format data, so as to store the common structural features of the data through the dictionary format data and compress and simplify the data. When the second client issues a download request for the data, the dictionary format data is downloaded from the server, and the dictionary format data is restored to the original data format through a formula. In this way, the second client decompresses the specified data through the dictionary, and there is no need to repeatedly download the repeated part of the data during data transmission; and the data of the same structure have a common structure, and a dictionary-data storage technology is established for it to realize data "slimming" and data dictionary format conversion. At the same time, through data dictionary format conversion instead of data encryption, there is no need to change the transmission mode, which can improve the data transmission efficiency while ensuring the security of data transmission.

进一步地,服务端将接收到的第一客户端的数据转换为字典格式数据,服务端将接收到的第一客户端的数据转换为字典格式数据,所述字典格式数据包括所述数据的结构属性特征和经公式压缩的数据内容特征,包括:Further, the server converts the received data from the first client into dictionary format data. The server converts the received data from the first client into dictionary format data, and the dictionary format data includes structural attribute characteristics of the data and data content characteristics compressed by a formula, including:

服务端获取所述第一客户端的数据,以所述数据的数据格式为结构属性特征,以所述数据除所述结构属性特征之外的数据为数据内容特征;The server obtains the data of the first client, taking the data format of the data as the structural attribute feature, and taking the data other than the structural attribute feature of the data as the data content feature;

若所述数据内容特征可通过公式压缩,则得到公式压缩数据,否则,得到数据存储段,将所述公式压缩数据、所述数据存储段和所述结构属性特征作为字典格式数据。If the data content feature can be compressed by a formula, formula compressed data is obtained; otherwise, a data storage segment is obtained, and the formula compressed data, the data storage segment and the structural attribute feature are used as dictionary format data.

由上述描述可知,对于无法被字典处理的数据内容特征,将其直接生成为数据存储段,对于能够被字典处理的数据内容特征,生成对应的公式压缩数据,因此字典格式数据中既包括了结构属性特征还包括了数据内容特征中的数据存储段和公式压缩数据,能够处理多个数据类型,进一步提高数据传输效率。From the above description, it can be seen that for data content features that cannot be processed by the dictionary, they are directly generated as data storage segments, and for data content features that can be processed by the dictionary, corresponding formula compressed data are generated. Therefore, the dictionary format data includes both structural attribute features and data storage segments and formula compressed data in the data content features, and can process multiple data types, further improving data transmission efficiency.

进一步地,以所述数据的数据格式为结构属性特征,以所述数据除所述结构属性特征之外的数据为数据内容特征,之后还包括:Furthermore, the data format of the data is used as the structural attribute feature, and the data other than the structural attribute feature of the data is used as the data content feature, and then the following is further included:

将所述数据的结构属性特征和数据内容特征以二叉树形式存储在对应的节点中。The structural attribute characteristics and data content characteristics of the data are stored in corresponding nodes in the form of a binary tree.

由上述描述可知,将结构属性特征和数据内容特征存储在二叉树上,以便于后续进行字典格式数据的还原。From the above description, it can be seen that the structural attribute features and the data content features are stored in a binary tree to facilitate the subsequent restoration of the dictionary format data.

进一步地,存储所述字典格式数据,包括:Furthermore, storing the dictionary format data includes:

将所述公式压缩数据进行分段切割,并将切割后的所述公式压缩数据存储到二叉树节点中。The formula compressed data is segmented and the segmented formula compressed data is stored in the binary tree nodes.

由上述描述可知,通过分段的方式,能够建立字典-数据-分段存储技术,以进一步实现数据“瘦身”。From the above description, it can be seen that through segmentation, a dictionary-data-segment storage technology can be established to further achieve data "slimming".

进一步地,将所述字典格式数据通过公式还原为原数据格式,包括:Furthermore, the dictionary format data is restored to the original data format through a formula, including:

根据所述字典格式数据中的结构属性特征,生成对应数据的结构信息;Generating structural information of corresponding data according to structural attribute characteristics in the dictionary format data;

对所述字典格式数据中的公式压缩数据进行还原,将还原后的公式压缩数据和所述数据存储段填充到所述数据的结构信息中。The formula compressed data in the dictionary format data is restored, and the restored formula compressed data and the data storage segment are filled into the structural information of the data.

由上述描述可知,通过字典格式数据中的结构属性特征生成结构信息,通过还原字典格式数据中的数据进行填充,能够有效提高数据传输效率。It can be seen from the above description that generating structural information through structural attribute features in the dictionary format data and filling in the data by restoring the data in the dictionary format data can effectively improve data transmission efficiency.

请参照图2,本发明另一实施例提供了一种基于分布式网络的用户数据传输的系统,包括第一客户端、服务端和第二客户端:Referring to FIG. 2 , another embodiment of the present invention provides a system for user data transmission based on a distributed network, including a first client, a server, and a second client:

服务端将接收到的第一客户端的数据转换为字典格式数据,所述字典格式数据包括所述数据的结构属性特征和经公式压缩的数据内容特征,并存储所述字典格式数据;The server converts the received data from the first client into dictionary format data, wherein the dictionary format data includes structural attribute characteristics of the data and data content characteristics compressed by a formula, and stores the dictionary format data;

第二客户端响应于针对所述数据的下载请求,从所述服务端中下载所述字典格式数据,并将所述字典格式数据通过公式还原为原数据格式。The second client downloads the dictionary format data from the server in response to the download request for the data, and restores the dictionary format data to the original data format through a formula.

从上述描述可知,本发明的有益效果在于:服务端接收到第一客户端首次发送的数据后,将其转换为字典格式数据,以通过字典格式数据存储数据的共用结构特征并进行数据压缩和简化。当第二客户端发出针对数据的下载请求时,从服务端中下载字典格式数据,并将字典格式数据通过公式还原为原数据格式,以此方式,第二客户端通过字典对指定数据进行解压,在数据传输时还无需重复下载重复部分的数据;并且相同结构的数据拥有共同结构,为其建立了字典-数据存储技术实现数据“瘦身”以及数据字典格式的转换,同时通过数据字典格式转换而非数据加密,也不需要改变传输模式,能够在提高数据传输效率的同时保证数据传输的安全性。From the above description, it can be seen that the beneficial effect of the present invention is that after the server receives the data sent by the first client for the first time, it converts it into dictionary format data, so as to store the common structural features of the data through the dictionary format data and compress and simplify the data. When the second client issues a download request for the data, the dictionary format data is downloaded from the server, and the dictionary format data is restored to the original data format through a formula. In this way, the second client decompresses the specified data through the dictionary, and there is no need to repeatedly download the repeated part of the data during data transmission; and the data of the same structure have a common structure, and a dictionary-data storage technology is established for it to realize data "slimming" and data dictionary format conversion. At the same time, through data dictionary format conversion instead of data encryption, there is no need to change the transmission mode, which can improve the data transmission efficiency while ensuring the security of data transmission.

进一步地,服务端将接收到的第一客户端的数据转换为字典格式数据,服务端将接收到的第一客户端的数据转换为字典格式数据,所述字典格式数据包括所述数据的结构属性特征和经公式压缩的数据内容特征,包括:Further, the server converts the received data from the first client into dictionary format data. The server converts the received data from the first client into dictionary format data, and the dictionary format data includes structural attribute characteristics of the data and data content characteristics compressed by a formula, including:

服务端获取所述第一客户端的数据,以所述数据的数据格式为结构属性特征,以所述数据除所述结构属性特征之外的数据为数据内容特征;The server obtains the data of the first client, taking the data format of the data as the structural attribute feature, and taking the data other than the structural attribute feature of the data as the data content feature;

若所述数据内容特征可通过公式压缩,则得到公式压缩数据,否则,得到数据存储段,将所述公式压缩数据、所述数据存储段和所述结构属性特征作为字典格式数据。If the data content feature can be compressed by a formula, formula compressed data is obtained; otherwise, a data storage segment is obtained, and the formula compressed data, the data storage segment and the structural attribute feature are used as dictionary format data.

由上述描述可知,对于无法被字典处理的数据内容特征,将其直接生成为数据存储段,对于能够被字典处理的数据内容特征,生成对应的公式压缩数据,因此字典格式数据中既包括了结构属性特征还包括了数据内容特征中的数据存储段和公式压缩数据,能够处理多个数据类型,进一步提高数据传输效率。From the above description, it can be seen that for data content features that cannot be processed by the dictionary, they are directly generated as data storage segments, and for data content features that can be processed by the dictionary, corresponding formula compressed data are generated. Therefore, the dictionary format data includes both structural attribute features and data storage segments and formula compressed data in the data content features, and can process multiple data types, further improving data transmission efficiency.

进一步地,以所述数据的数据格式为结构属性特征,以所述数据除所述结构属性特征之外的数据为数据内容特征,之后还包括:Furthermore, the data format of the data is used as the structural attribute feature, and the data other than the structural attribute feature of the data is used as the data content feature, and then the following is further included:

将所述数据的结构属性特征和数据内容特征以二叉树形式存储在对应的节点中。The structural attribute characteristics and data content characteristics of the data are stored in corresponding nodes in the form of a binary tree.

由上述描述可知,将结构属性特征和数据内容特征存储在二叉树上,以便于后续进行字典格式数据的还原。From the above description, it can be seen that the structural attribute features and the data content features are stored in a binary tree to facilitate the subsequent restoration of the dictionary format data.

进一步地,存储所述字典格式数据,包括:Furthermore, storing the dictionary format data includes:

将所述公式压缩数据进行分段切割,并将切割后的所述公式压缩数据存储到二叉树节点中。The formula compressed data is segmented and the segmented formula compressed data is stored in the binary tree nodes.

由上述描述可知,通过分段的方式,能够建立字典-数据-分段存储技术,以进一步实现数据“瘦身”。From the above description, it can be seen that through segmentation, a dictionary-data-segment storage technology can be established to further achieve data "slimming".

进一步地,将所述字典格式数据通过公式还原为原数据格式,包括:Furthermore, the dictionary format data is restored to the original data format through a formula, including:

根据所述字典格式数据中的结构属性特征,生成对应数据的结构信息;Generating structural information of corresponding data according to structural attribute characteristics in the dictionary format data;

对所述字典格式数据中的公式压缩数据进行还原,将还原后的公式压缩数据和所述数据存储段填充到所述数据的结构信息中。The formula compressed data in the dictionary format data is restored, and the restored formula compressed data and the data storage segment are filled into the structural information of the data.

由上述描述可知,通过字典格式数据中的结构属性特征生成结构信息,通过还原字典格式数据中的数据进行填充,能够有效提高数据传输效率。It can be seen from the above description that generating structural information through structural attribute features in the dictionary format data and filling in the data by restoring the data in the dictionary format data can effectively improve data transmission efficiency.

本发明上述的一种基于分布式网络的用户数据传输的方法及系统,适用于在提高数据传输效率的同时保证数据传输的安全性,以下通过具体的实施方式进行说明:The above-mentioned method and system for user data transmission based on a distributed network of the present invention are suitable for improving data transmission efficiency while ensuring the security of data transmission, and are described below through specific implementation methods:

实施例一Embodiment 1

请参照图1、图3和图4,一种基于分布式网络的用户数据传输的方法,包括步骤:Referring to FIG. 1 , FIG. 3 and FIG. 4 , a method for user data transmission based on a distributed network includes the following steps:

S1、服务端将接收到的第一客户端的数据转换为字典格式数据,所述字典格式数据包括所述数据的结构属性特征和经公式压缩的数据内容特征,并存储所述字典格式数据。S1. The server converts the data received from the first client into dictionary format data, wherein the dictionary format data includes structural attribute characteristics of the data and data content characteristics compressed by a formula, and stores the dictionary format data.

具体的,第一客户端首次上传数据到服务端后,服务端经过数据处理将其转换为字典格式数据存储,服务端执行的步骤具体为:Specifically, after the first client uploads data to the server for the first time, the server processes the data and converts it into dictionary format data for storage. The server performs the following steps:

S11、服务端获取所述第一客户端的数据,以所述数据的数据格式为结构属性特征,以所述数据除所述结构属性特征之外的数据为数据内容特征,将所述数据的结构属性特征和数据内容特征以二叉树形式存储在对应的节点中。S11. The server obtains the data of the first client, takes the data format of the data as the structural attribute feature, takes the data other than the structural attribute feature as the data content feature, and stores the structural attribute feature and the data content feature of the data in the form of a binary tree in corresponding nodes.

在本实施例中,服务端获取到数据后,将数据根据数据结构进行剥离,即得到数据的结构属性特征和数据内容特征,并将二者都以二叉树的形式存储在对应的节点上。In this embodiment, after the server obtains the data, it strips the data according to the data structure, that is, obtains the structural attribute characteristics and data content characteristics of the data, and stores both in the form of a binary tree on the corresponding nodes.

其中,结构属性特征即是以数据格式作为共同特征,例如每个MP3文件的数据头部均有一个共有数据结构,即将该共有数据结构作为结构属性特征。The structural attribute feature is to use the data format as a common feature. For example, the data header of each MP3 file has a common data structure, and the common data structure is used as the structural attribute feature.

数据内容特征即是除去结构属性特征的其余特征,以字典中成员作为存储的特征标识。Data content features are the remaining features excluding structural attribute features, and the members in the dictionary are used as feature identifiers for storage.

S12、若所述数据内容特征可通过公式压缩,则得到公式压缩数据,否则,得到数据存储段,将所述公式压缩数据、所述数据存储段和所述结构属性特征作为字典格式数据。S12. If the data content feature can be compressed by a formula, formula compressed data is obtained; otherwise, a data storage segment is obtained, and the formula compressed data, the data storage segment and the structural attribute feature are used as dictionary format data.

具体的,获取数据内容特征,为其匹配数据公式,根据数据公式将数据内容特征进行简化处理。在本实施例中,公式模板中拥有多种公式,在匹配数据公式的时候,可以先将数据装载到公式模板中,以得到经公式处理的数据并与原数据进行比较,若比较相似度大于阈值,则表示处理后的数据与原数据还比较相似,数据还能够进一步压缩,即可调整公式中的因子,若比较相似度表示经公式处理的数据与原数据完全一致,则表示经公式处理的数据可以直接被简化掉,直接在二叉树上生成对应的位置、公式就好了。Specifically, the data content features are obtained, and the data formula is matched therefor, and the data content features are simplified according to the data formula. In this embodiment, the formula template has multiple formulas. When matching the data formula, the data can be first loaded into the formula template to obtain the data processed by the formula and compare it with the original data. If the comparison similarity is greater than the threshold, it means that the processed data is still similar to the original data, and the data can be further compressed, that is, the factors in the formula can be adjusted. If the comparison similarity indicates that the data processed by the formula is completely consistent with the original data, it means that the data processed by the formula can be directly simplified, and the corresponding position and formula can be directly generated on the binary tree.

其中还包括:It also includes:

将所述公式压缩数据进行分段切割,并将切割后的所述公式压缩数据存储到二叉树节点中。The formula compressed data is segmented and the segmented formula compressed data is stored in the binary tree nodes.

S2、第二客户端响应于针对所述数据的下载请求,从所述服务端中下载所述字典格式数据,并将所述字典格式数据通过公式还原为原数据格式。S2. The second client downloads the dictionary format data from the server in response to the download request for the data, and restores the dictionary format data to the original data format through a formula.

具体的,根据所述字典格式数据中的结构属性特征,生成对应数据的结构信息;Specifically, according to the structural attribute characteristics in the dictionary format data, the structural information of the corresponding data is generated;

对所述字典格式数据中的公式压缩数据进行还原,将还原后的公式压缩数据和所述数据存储段填充到所述数据的结构信息中。The formula compressed data in the dictionary format data is restored, and the restored formula compressed data and the data storage segment are filled into the structural information of the data.

实施例二Embodiment 2

请参照图2,一种基于分布式网络的用户数据传输的系统,包括第一客户端、服务端和第二客户端,第一客户端实现实施例一的一种基于分布式网络的用户数据传输的方法中以第一客户端为执行主体执行的各个步骤,服务端实现实施例一的一种基于分布式网络的用户数据传输的方法中以服务端为执行主体执行的各个步骤,第二客户端实现实施例一的一种基于分布式网络的用户数据传输的方法中以第二客户端为执行主体执行的各个步骤。Please refer to Figure 2, a system for user data transmission based on a distributed network includes a first client, a server, and a second client. The first client implements each step of a method for user data transmission based on a distributed network in Example 1, which is performed by the first client as the execution subject. The server implements each step of a method for user data transmission based on a distributed network in Example 1, which is performed by the server as the execution subject. The second client implements each step of a method for user data transmission based on a distributed network in Example 1, which is performed by the second client as the execution subject.

综上所述,本发明提供的一种基于分布式网络的用户数据传输的方法及系统,服务端接收到第一客户端首次发送的数据后,将其转换为字典格式数据,以通过字典格式数据存储数据的共用结构特征并进行数据压缩和简化。当第二客户端发出针对数据的下载请求时,从服务端中下载字典格式数据,并将字典格式数据通过公式还原为原数据格式,以此方式,第二客户端通过字典对指定数据进行解压,在数据传输时还无需重复下载重复部分的数据;并且相同结构的数据拥有共同结构,为其建立了字典-数据存储技术实现数据“瘦身”以及数据字典格式的转换,同时通过数据字典格式转换而非数据加密,也不需要改变传输模式,能够在提高数据传输效率的同时保证数据传输的安全性。In summary, the present invention provides a method and system for user data transmission based on a distributed network. After receiving the data sent by the first client for the first time, the server converts it into dictionary format data, so as to store the common structural features of the data through the dictionary format data and perform data compression and simplification. When the second client issues a download request for data, the dictionary format data is downloaded from the server, and the dictionary format data is restored to the original data format through a formula. In this way, the second client decompresses the specified data through the dictionary, and there is no need to repeatedly download the repeated part of the data during data transmission; and the data of the same structure have a common structure, and a dictionary-data storage technology is established for it to achieve data "slimming" and data dictionary format conversion. At the same time, through data dictionary format conversion instead of data encryption, there is no need to change the transmission mode, which can improve the data transmission efficiency while ensuring the security of data transmission.

以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等同变换,或直接或间接运用在相关的技术领域,均同理包括在本发明的专利保护范围内。The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims (10)

1.一种基于分布式网络的用户数据传输的方法,其特征在于,包括步骤:1. A method for transmitting user data based on a distributed network, characterized in that it comprises the steps of: 服务端将接收到的第一客户端的数据转换为字典格式数据,所述字典格式数据包括所述数据的结构属性特征和经公式压缩的数据内容特征,并存储所述字典格式数据;The server converts the received data from the first client into dictionary format data, wherein the dictionary format data includes structural attribute characteristics of the data and data content characteristics compressed by a formula, and stores the dictionary format data; 第二客户端响应于针对所述数据的下载请求,从所述服务端中下载所述字典格式数据,并将所述字典格式数据通过公式还原为原数据格式。The second client downloads the dictionary format data from the server in response to the download request for the data, and restores the dictionary format data to the original data format through a formula. 2.根据权利要求1所述的一种基于分布式网络的用户数据传输的方法,其特征在于,服务端将接收到的第一客户端的数据转换为字典格式数据,服务端将接收到的第一客户端的数据转换为字典格式数据,所述字典格式数据包括所述数据的结构属性特征和经公式压缩的数据内容特征,包括:2. According to claim 1, a method for transmitting user data based on a distributed network is characterized in that the server converts the data received from the first client into dictionary format data, and the server converts the data received from the first client into dictionary format data, wherein the dictionary format data includes structural attribute characteristics of the data and data content characteristics compressed by a formula, including: 服务端获取所述第一客户端的数据,以所述数据的数据格式为结构属性特征,以所述数据除所述结构属性特征之外的数据为数据内容特征;The server obtains the data of the first client, taking the data format of the data as the structural attribute feature, and taking the data other than the structural attribute feature of the data as the data content feature; 若所述数据内容特征可通过公式压缩,则得到公式压缩数据,否则,得到数据存储段,将所述公式压缩数据、所述数据存储段和所述结构属性特征作为字典格式数据。If the data content feature can be compressed by a formula, formula compressed data is obtained; otherwise, a data storage segment is obtained, and the formula compressed data, the data storage segment and the structural attribute feature are used as dictionary format data. 3.根据权利要求2所述的一种基于分布式网络的用户数据传输的方法,其特征在于,以所述数据的数据格式为结构属性特征,以所述数据除所述结构属性特征之外的数据为数据内容特征,之后还包括:3. A method for transmitting user data based on a distributed network according to claim 2, characterized in that the data format of the data is used as a structural attribute feature, and the data other than the structural attribute feature of the data is used as a data content feature, and then further comprising: 将所述数据的结构属性特征和数据内容特征以二叉树形式存储在对应的节点中。The structural attribute characteristics and data content characteristics of the data are stored in corresponding nodes in the form of a binary tree. 4.根据权利要求3所述的一种基于分布式网络的用户数据传输的方法,其特征在于,存储所述字典格式数据,包括:4. The method for transmitting user data based on a distributed network according to claim 3, wherein storing the dictionary format data comprises: 将所述公式压缩数据进行分段切割,并将切割后的所述公式压缩数据存储到二叉树节点中。The formula compressed data is segmented and the segmented formula compressed data is stored in the binary tree nodes. 5.根据权利要求2所述的一种基于分布式网络的用户数据传输的方法,其特征在于,将所述字典格式数据通过公式还原为原数据格式,包括:5. The method for transmitting user data based on a distributed network according to claim 2, characterized in that restoring the dictionary format data to the original data format through a formula comprises: 根据所述字典格式数据中的结构属性特征,生成对应数据的结构信息;Generating structural information of corresponding data according to structural attribute characteristics in the dictionary format data; 对所述字典格式数据中的公式压缩数据进行还原,将还原后的公式压缩数据和所述数据存储段填充到所述数据的结构信息中。The formula compressed data in the dictionary format data is restored, and the restored formula compressed data and the data storage segment are filled into the structural information of the data. 6.一种基于分布式网络的用户数据传输的系统,其特征在于,包括第一客户端、服务端和第二客户端:6. A system for user data transmission based on a distributed network, characterized by comprising a first client, a server, and a second client: 服务端将接收到的第一客户端的数据转换为字典格式数据,所述字典格式数据包括所述数据的结构属性特征和经公式压缩的数据内容特征,并存储所述字典格式数据;The server converts the received data from the first client into dictionary format data, wherein the dictionary format data includes structural attribute characteristics of the data and data content characteristics compressed by a formula, and stores the dictionary format data; 第二客户端响应于针对所述数据的下载请求,从所述服务端中下载所述字典格式数据,并将所述字典格式数据通过公式还原为原数据格式。The second client downloads the dictionary format data from the server in response to the download request for the data, and restores the dictionary format data to the original data format through a formula. 7.根据权利要求6所述的一种基于分布式网络的用户数据传输的系统,其特征在于,服务端将接收到的第一客户端的数据转换为字典格式数据,服务端将接收到的第一客户端的数据转换为字典格式数据,所述字典格式数据包括所述数据的结构属性特征和经公式压缩的数据内容特征,包括:7. A distributed network-based user data transmission system according to claim 6, characterized in that the server converts the received data from the first client into dictionary format data, and the server converts the received data from the first client into dictionary format data, wherein the dictionary format data includes structural attribute characteristics of the data and data content characteristics compressed by a formula, including: 服务端获取所述第一客户端的数据,以所述数据的数据格式为结构属性特征,以所述数据除所述结构属性特征之外的数据为数据内容特征;The server obtains the data of the first client, taking the data format of the data as the structural attribute feature, and taking the data other than the structural attribute feature of the data as the data content feature; 若所述数据内容特征可通过公式压缩,则得到公式压缩数据,否则,得到数据存储段,将所述公式压缩数据、所述数据存储段和所述结构属性特征作为字典格式数据。If the data content feature can be compressed by a formula, formula compressed data is obtained; otherwise, a data storage segment is obtained, and the formula compressed data, the data storage segment and the structural attribute feature are used as dictionary format data. 8.根据权利要求7所述的一种基于分布式网络的用户数据传输的系统,其特征在于,以所述数据的数据格式为结构属性特征,以所述数据除所述结构属性特征之外的数据为数据内容特征,之后还包括:8. A distributed network-based user data transmission system according to claim 7, characterized in that the data format of the data is used as the structural attribute feature, and the data other than the structural attribute feature of the data is used as the data content feature, and then further comprising: 将所述数据的结构属性特征和数据内容特征以二叉树形式存储在对应的节点中。The structural attribute characteristics and data content characteristics of the data are stored in corresponding nodes in the form of a binary tree. 9.根据权利要求8所述的一种基于分布式网络的用户数据传输的系统,其特征在于,存储所述字典格式数据,包括:9. The system for transmitting user data based on a distributed network according to claim 8, wherein storing the dictionary format data comprises: 将所述公式压缩数据进行分段切割,并将切割后的所述公式压缩数据存储到二叉树节点中。The formula compressed data is segmented and the segmented formula compressed data is stored in the binary tree nodes. 10.根据权利要求7所述的一种基于分布式网络的用户数据传输的系统,其特征在于,将所述字典格式数据通过公式还原为原数据格式,包括:10. The user data transmission system based on a distributed network according to claim 7, characterized in that restoring the dictionary format data to the original data format through a formula comprises: 根据所述字典格式数据中的结构属性特征,生成对应数据的结构信息;Generating structural information of corresponding data according to structural attribute characteristics in the dictionary format data; 对所述字典格式数据中的公式压缩数据进行还原,将还原后的公式压缩数据和所述数据存储段填充到所述数据的结构信息中。The formula compressed data in the dictionary format data is restored, and the restored formula compressed data and the data storage segment are filled into the structural information of the data.
CN202411164840.1A 2024-08-23 2024-08-23 A method and system for user data transmission based on distributed network Pending CN119030967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411164840.1A CN119030967A (en) 2024-08-23 2024-08-23 A method and system for user data transmission based on distributed network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411164840.1A CN119030967A (en) 2024-08-23 2024-08-23 A method and system for user data transmission based on distributed network

Publications (1)

Publication Number Publication Date
CN119030967A true CN119030967A (en) 2024-11-26

Family

ID=93536818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411164840.1A Pending CN119030967A (en) 2024-08-23 2024-08-23 A method and system for user data transmission based on distributed network

Country Status (1)

Country Link
CN (1) CN119030967A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108293057A (en) * 2015-12-03 2018-07-17 微软技术许可有限责任公司 Data compression for communication signaling
CN115941808A (en) * 2023-03-02 2023-04-07 深圳依时货拉拉科技有限公司 Json data compression method and device based on self-training dictionary coding
CN116155919A (en) * 2023-02-13 2023-05-23 北京字跳网络技术有限公司 File updating method, device electronic equipment and storage medium
US20230367785A1 (en) * 2022-05-10 2023-11-16 Huawei Technologies Co., Ltd. System, method for improving efficiency of yang data model-based network devices
CN118502709A (en) * 2024-05-29 2024-08-16 北京航空航天大学 Model compression method, terminal deployment method, system and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108293057A (en) * 2015-12-03 2018-07-17 微软技术许可有限责任公司 Data compression for communication signaling
US20230367785A1 (en) * 2022-05-10 2023-11-16 Huawei Technologies Co., Ltd. System, method for improving efficiency of yang data model-based network devices
CN116155919A (en) * 2023-02-13 2023-05-23 北京字跳网络技术有限公司 File updating method, device electronic equipment and storage medium
CN115941808A (en) * 2023-03-02 2023-04-07 深圳依时货拉拉科技有限公司 Json data compression method and device based on self-training dictionary coding
CN118502709A (en) * 2024-05-29 2024-08-16 北京航空航天大学 Model compression method, terminal deployment method, system and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘宏波;鲁杰;王永斌;禹华钢;: "数据字典在转换工具中的应用设计", 计算机工程与设计, no. 24, 28 December 2009 (2009-12-28) *

Similar Documents

Publication Publication Date Title
CN109254733B (en) Method, apparatus and system for storing data
US10102242B2 (en) Bulk initial download of mobile databases
US7447839B2 (en) System for a distributed column chunk data store
US8112463B2 (en) File management method and storage system
CN109710185B (en) Data processing method and device
US20120089579A1 (en) Compression pipeline for storing data in a storage cloud
CN106161633B (en) Transmission method and system for packed files based on cloud computing environment
US20140330795A1 (en) Optimizing restoration of deduplicated data
JP2009070361A (en) Method and apparatus for managing data compression and integrity in a computer storage system
US20050027731A1 (en) Compression dictionaries
US20220100372A1 (en) Method, electronic device, and computer program product for storing and accessing data
CN105404679A (en) Data processing method and apparatus
WO2021139431A1 (en) Data synchronization method and apparatus for microservice, electronic device and storage medium
WO2020151337A1 (en) Distributed file processing method and apparatus, computer device and storage medium
CN112748866A (en) Method and device for processing incremental index data
CN117574428A (en) Hidden query methods, devices, equipment and media for massive distributed storage
US11669402B2 (en) Highly efficient native application data protection for office 365
WO2013123703A1 (en) Data backup method and device, and data recovery method and device of network management system
CN113220981A (en) Method and device for optimizing cache
CN114385617A (en) Plug-in-based data cleaning and encryption method, device, device and medium
CN114327285A (en) Data storage method, device, device and storage medium
CN119030967A (en) A method and system for user data transmission based on distributed network
CN115695521B (en) Distributed session method and device
CN113313540B (en) Contract generation method and device, electronic equipment and readable storage medium
CN115470293A (en) Data processing method, device, device and storage medium

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