Data transmission method and related device
By automatically identifying the server's data reporting mode on the client side, determining the target data transmission link, and decrypting and sending the data, the problem of high server workload is solved, and the server's operational stability is improved.
Patent Information
- Application Number
- CN202411573344.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-12-26
- Estimated Expiration
- 2044-11-06
AI Technical Summary
In existing technologies, during data transmission, the server needs to identify and adapt the data transmission links of the target terminals for sending important data to different users, resulting in a large workload for the server and poor operational stability.
By automatically identifying the server's data reporting mode on the client side, determining the target data transmission link, and decrypting and sending the data, the server's data transmission link adaptation work is reduced, thus lowering the server's workload.
It improved the operational stability of the server and reduced the server's workload.
Smart Images

Figure CN119484507B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of data processing, and particularly relates to a data transmission method and related equipment. BACKGROUND
[0002] Important data generated when a user logs in on a server and performs business processing needs to be sent to a target terminal for storage.
[0003] In the example technology, the server determines a target terminal to which important data is to be sent. However, because important data of different users is generated on the server, the server needs to send different important data to corresponding target terminals, and different target terminals are located in different areas. The server adapts a corresponding data transmission link for different important data, so that the data can be sent to the corresponding target terminal based on the adapted data transmission link.
[0004] However, the server needs to provide different services for users, and the working pressure of the server is relatively large. The server adapts a data transmission link for data, which increases the working load of the server and causes poor running stability of the server. SUMMARY
[0005] Embodiments of the application provide a data transmission method and related equipment, which are used to solve the problem of poor running stability of the server.
[0006] In a first aspect, an embodiment of the application provides a data transmission method applied to a client, and the data transmission method comprises the following steps.
[0007] Receiving encrypted data and a first descriptor parameter sent by a server, wherein the first descriptor parameter is used to describe a data reporting mode of the server.
[0008] Determining a distance between the first descriptor parameter and each stored second descriptor parameter, and taking a data reporting mode associated with a second descriptor parameter corresponding to the smallest distance as a current data reporting mode of the server.
[0009] Determining a target data transmission link and a target terminal corresponding to the current data reporting mode, and decrypting the encrypted data to obtain decrypted data.
[0010] Sending the decrypted data to the target terminal according to the target data transmission link.
[0011] In an embodiment, before the step of determining the distance between the first descriptor parameter and each stored second descriptor parameter, the method further comprises the following steps.
[0012] Obtaining characteristic parameters corresponding to each data reporting mode of the server, and constructing each feature point of the data reporting mode at different scales according to the characteristic parameters of the data reporting mode;
[0013] According to a preset matrix, determining a key point among each feature point of the data reporting mode;
[0014] Configuring at least one main direction for the key point, and determining a descriptor parameter of the corresponding data reporting mode according to the at least one main direction as a second descriptor parameter associated with the data reporting mode;
[0015] Storing the data reporting mode and the corresponding second descriptor parameter in association.
[0016] In another embodiment, the step of decrypting the encrypted data to obtain decrypted data comprises:
[0017] Obtaining a first decryption key corresponding to the current data reporting mode;
[0018] Decrypting the encrypted data according to the first decryption key to obtain decrypted data.
[0019] In another embodiment, the step of obtaining the first decryption key corresponding to the current data reporting mode comprises:
[0020] Determining a first identifier corresponding to the current data reporting mode, and obtaining each different first decryption key associated with the first identifier;
[0021] The step of decrypting the encrypted data according to the first decryption key to obtain decrypted data comprises:
[0022] Decrypting the encrypted data in sequence according to the decryption order of each first decryption key to obtain the decrypted data.
[0023] In another embodiment, the step of decrypting the encrypted data to obtain decrypted data comprises:
[0024] Obtaining a second identifier of the client, and determining the number of the group where the second identifier is located;
[0025] Obtaining a decryption key associated with the number as a second decryption key, and decrypting the encrypted data according to the second decryption key to obtain decrypted data.
[0026] In a second aspect, the embodiments of the present application provide a data transmission method applied to a server, the data transmission method comprising:
[0027] determining a client corresponding to the to-be-sent data, and obtaining a characteristic parameter of a current data reporting mode of the server;
[0028] determining a first descriptor parameter corresponding to the characteristic parameter, and encrypting the to-be-sent data to obtain encrypted data;
[0029] sending the first descriptor parameter and the encrypted data to the client, so that the client determines a data sending link of the to-be-sent data based on a stored second descriptor parameter and the first descriptor parameter.
[0030] In an embodiment, the step of determining the first descriptor parameter corresponding to the characteristic parameter comprises:
[0031] constructing each feature point of the current data reporting mode at different scales according to the characteristic parameter;
[0032] determining a key point from each feature point of the current data reporting mode according to a preset matrix;
[0033] configuring at least one main direction for the key point, and determining the first descriptor parameter of the current data reporting mode according to the at least one main direction.
[0034] In another embodiment, the step of encrypting the to-be-sent data to obtain encrypted data comprises:
[0035] obtaining a first encryption key corresponding to the current data reporting mode;
[0036] encrypting the to-be-sent data according to the first encryption key to obtain encrypted data.
[0037] In another embodiment, the step of obtaining the first encryption key corresponding to the current data reporting mode comprises:
[0038] determining a first identifier corresponding to the current data reporting mode, and obtaining each different first encryption key associated with the first identifier;
[0039] The step of encrypting the to-be-sent data according to the first encryption key to obtain encrypted data comprises:
[0040] encrypting the to-be-sent data in sequence according to an encryption order of each first encryption key to obtain the encrypted data.
[0041] In another embodiment, the step of encrypting the to-be-sent data to obtain encrypted data comprises:
[0042] obtaining a second identifier of the client, and determining a number of a group in which the second identifier is located;
[0043] obtain the encryption key corresponding to the number as a second encryption key, and encrypt the data to be sent according to the second encryption key to obtain encrypted data.
[0044] In a third aspect, an embodiment of the present application provides a client, comprising:
[0045] a receiving module, configured to receive encrypted data and a first descriptor parameter sent by a server, the first descriptor parameter being used to describe a data reporting mode of the server;
[0046] a first determining module, configured to determine distances between the first descriptor parameter and each stored second descriptor parameter, and determine a data reporting mode corresponding to a second descriptor parameter with a minimum distance as a current data reporting mode of the server;
[0047] a second determining module, configured to determine a target data sending link and a target terminal corresponding to the current data reporting mode, and decrypt the encrypted data to obtain decrypted data;
[0048] a first sending module, configured to send the decrypted data to the target terminal according to the target data sending link.
[0049] In a fourth aspect, an embodiment of the present application provides a server, comprising:
[0050] a third determining module, configured to determine a client corresponding to data to be sent, and obtain a feature parameter of a current data reporting mode of the server;
[0051] a fourth determining module, configured to determine a first descriptor parameter corresponding to the feature parameter, and encrypt the data to be sent to obtain encrypted data;
[0052] a second sending module, configured to send the first descriptor parameter and the encrypted data to the client, so that the client determines a data sending link of the data to be sent based on each stored second descriptor parameter and the first descriptor parameter.
[0053] In a fifth aspect, an embodiment of the present application provides a data transmission device, comprising a processor and a memory storing computer program instructions; the processor implements the data transmission method as described above when executing the computer program instructions.
[0054] In a sixth aspect, an embodiment of the present application provides a computer readable storage medium, characterized in that the computer readable storage medium stores computer program instructions, and the computer program instructions are executed by a processor to implement the data transmission method as described above.
[0055] In a seventh aspect, an embodiment of the present application provides a computer program product, instructions in the computer program product are executed by a processor of an electronic device, so that the electronic device can perform the data transmission method as described above.
[0056] The data transmission method and related device of the embodiments of the present application receive encrypted data and a first descriptor parameter representing a data reporting mode of a server, determine a distance between the first descriptor parameter and each stored second descriptor parameter, determine the data reporting mode associated with the second descriptor parameter corresponding to the smallest distance as the current data reporting mode of the server, determine a target data sending link and a target terminal corresponding to the current data reporting mode, and decrypt the encrypted data to obtain decrypted data, so as to send the decrypted data to the target terminal according to the target data sending link. In the present application, the current data reporting mode of the server is automatically identified by the client, so that the client automatically identifies the data sending link to which the decrypted data to be sent is adapted based on the data reporting mode, without the server identifying and adapting the data sending link, thereby reducing the work load of the server and improving the operation stability of the server. BRIEF DESCRIPTION OF DRAWINGS
[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly introduced. For those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0058] Figure 1 is a schematic diagram of a scene related to the data transmission method of the present application;
[0059] Figure 2 is a flowchart of the first embodiment of the data transmission method of the present application;
[0060] Figure 3 is a flowchart of the second embodiment of the data transmission method of the present application;
[0061] Figure 4 is a flowchart of the third embodiment of the data transmission method of the present application;
[0062] Figure 5 is a flowchart of the fourth embodiment of the data transmission method of the present application;
[0063] Figure 6 is a flowchart of the fifth embodiment of the data transmission method of the present application;
[0064] Figure 7 is a functional module diagram of the client of the present application;
[0065] Figure 8 is a functional module schematic diagram of the server of the present application;
[0066] Figure 9 is a structural schematic diagram of the data transmission device of the present application. DETAILED DESCRIPTION
[0067] The features and exemplary embodiments of various aspects of the present application will be described in detail below with reference to the drawings. For the purpose of clarity, technical terms in the description of the present application are to be interpreted as commonly understood by one of ordinary skill in the art to which the present application pertains. It will be apparent to those skilled in the art that various modifications and variations can be made to the specific embodiments without departing from the spirit or scope of the application. Thus, it is intended that the present application cover modifications and variations of this application provided they come within the scope of the appended claims and their equivalents.
[0068] It should be noted that, in this document, relational terms such as first and second, and the like can be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without more limitations, an element preceded by "comprises... a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the stated elements.
[0069] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application comply with the relevant provisions of national laws and regulations.
[0070] It should be noted that in the embodiments of the present application, some software, components, models and other industry existing solutions may be mentioned, which should be considered as exemplary, and the purpose is only to illustrate the feasibility of the implementation of the technical solutions of the present application, but does not mean that the applicant has or will necessarily use the solution.
[0071] Important data generated by the user after logging in to the server to handle business needs to be sent to the target terminal for storage.
[0072] In an example technology, the server determines a target terminal to which important data is to be sent. However, the server needs to send different important data to different target terminals, and the different target terminals are located in different areas. The server needs to adapt a corresponding data sending link for different important data, so that the data can be sent to the corresponding target terminal based on the adapted data sending link.
[0073] The inventors of the present application find that the server needs to provide different services for users, and the working pressure of the server is relatively large. The server adapts a data sending link for data, which increases the working load of the server and causes poor running stability of the server.
[0074] The inventors of the present application therefore think that the current data reporting mode of the server is automatically recognized by the client, so that the client automatically recognizes the data sending link to which the decrypted data to be sent is adapted based on the data reporting mode. The server does not need to adapt and recognize the data sending link, which reduces the working load of the server and improves the running stability of the server.
[0075] Reference is made to Figure 1 , Figure 1 which is a scene schematic diagram of the data transmission method of the present application. Reference is made to Figure 1 , the server 100 can be a virtual server corresponding to a cloud or a private cloud. The server 100 is provided with a virtual client 110 and a data distribution device 120. The virtual client 100 stores data of a user. The data distribution device 120 is used for distributed distribution of data, i.e., distribution of data of different users to corresponding local clients 300. The user logs in the server 100, and can generate data in the server 100. The data needs to be reported to a target terminal 200 corresponding to a location of the user. The server 100 connects a plurality of clients 200, and the client 200 is a local client. The client 200 corresponds to a user, which can be a personal user or a user in a group. The server 100 encrypts the data to be sent to obtain encrypted data, generates a first descriptor parameter describing a data reporting mode based on the data reporting mode of the server 100, and sends the first descriptor parameter and the encrypted data to the client 100 corresponding to the user. The client 100 determines the current data reporting mode of the server 100 based on the first descriptor parameter, decrypts the encrypted data to obtain decrypted data, determines a target data sending link and a target terminal based on the current data reporting mode, and sends the decrypted data to the target terminal 300 according to the target data sending link.
[0076] The data transmission method of the present application is described in detail below. Figure 1
[0077] Reference is made toFigure 2 , Figure 2 The flowchart shown is a first embodiment of the data transmission method of the present application, applied to a client. The data transmission method comprises:
[0078] Step S201, receiving encrypted data and a first descriptor parameter sent by the server. The first descriptor parameter is used to describe the data reporting mode of the server.
[0079] In this embodiment, the execution subject is a client, which is a local client configured by the server for a user. The local client can be a computer, a network device, a switch, etc.
[0080] After the user logs in the account and generates data on the server, the data needs to be sent to a target terminal for auditing or storage. The data can be different types of report data such as financial institution accounts, fund settlement data, replacement resource quotas, and repayment of replacement resources. The server configures corresponding clients for different users, and the data distribution device in the server distributes the data generated by different users to the corresponding clients of the users in a distributed manner, so that the clients send the data to the target terminal according to the adaptive data transmission link. The following describes in detail the embodiment by taking a client sending data to a target terminal.
[0081] After the user logs in the server for business processing, the server generates to-be-sent data, which includes account, balance, transaction details, etc. The server encrypts the to-be-sent data to obtain encrypted data. The server sets different data reporting modes, and the corresponding data transmission links are different for different data reporting modes. For example, if the data reporting mode is A mode, the client needs to send data to the target terminal based on a private line. If the data reporting mode is B mode, the client can send data to the target terminal based on the Internet. If the data reporting mode is C mode, the client needs to send data to the target terminal through a specified external network. The server obtains the current data reporting mode, generates a descriptor parameter based on the characteristic parameters of the current data reporting mode, and defines the descriptor parameter as the first descriptor parameter. For example, the current data reporting mode can be determined by the account of the user logged in the server, the attributes of the data table of the to-be-sent data, the parameters of the reporting network specified by the account, and the IP address of the client corresponding to the user. The account, the attributes of the data table, the parameters of the reporting network, and the IP address are used as the characteristic parameters of the current data reporting network, a feature vector is constructed based on each characteristic parameter, and the feature vector is the first descriptor parameter. It can be understood that the first descriptor parameter is used for the data reporting mode of the server.
[0082] The server obtains the first descriptor parameter corresponding to the current data sending mode, and sends the first descriptor parameter and the encrypted data to the corresponding client, that is, the client receives the encrypted data and the first descriptor parameter sent by the server.
[0083] In step S202, the distances between the first descriptor parameter and each of the stored second descriptor parameters are determined, and the data sending mode associated with the second descriptor parameter corresponding to the smallest distance is determined as the current data sending mode of the server.
[0084] The client stores the characteristic parameters of multiple data sending modes of the server, can determine the second descriptor parameter of each data sending mode based on the characteristic parameters, and stores each second descriptor parameter in association with the corresponding data sending mode. The generation process of the second descriptor parameter is consistent with that of the first descriptor parameter, and details are described above and will not be repeated here.
[0085] After the client obtains the first descriptor parameter, the distances between the first descriptor parameter and each of the second descriptor parameters are determined. For example, the first descriptor parameter and the second descriptor parameter are both vector features, and the Euclidean distance between the first descriptor parameter and the second descriptor parameter is calculated.
[0086] After the client calculates the distances between the first descriptor parameter and each of the second descriptor parameters, the smallest distance is determined among the distances, and the first descriptor parameter and the second descriptor parameter corresponding to the smallest distance are the most matched. The device can determine the data sending mode associated with the second descriptor parameter corresponding to the smallest distance as the current data sending mode of the server.
[0087] In step S203, the target data sending link and the target terminal corresponding to the current data sending mode are determined, and the encrypted data is decrypted to obtain decrypted data.
[0088] The client stores the association relationship between the data sending mode, the data sending link and the target terminal sent by the server. After the device determines the current data sending mode of the server, the association relationship corresponding to the current data sending mode is obtained, and the data sending link and the target terminal corresponding to the current data sending mode are determined based on the association relationship. The data sending link is defined as the target data sending link.
[0089] After the client obtains the encrypted data, the encrypted data is decrypted. For example, the server stores an encryption key and a decryption key, and the server sends the decryption key to the client. The client decrypts the encrypted data based on the decryption key to obtain the decrypted data.
[0090] In step S204, the decrypted data is sent to the target terminal according to the target data sending link.
[0091] The client determines the target data sending link and the target terminal, and sends the decrypted data to the target terminal according to the target data sending link.
[0092] In this embodiment, the client receives the encrypted data and the first descriptor parameter representing the feature parameter of the data sending mode of the server, determines the distance between the first descriptor parameter and each stored second descriptor parameter, determines the data sending mode associated with the second descriptor parameter corresponding to the minimum distance as the current data sending mode of the server, determines the target data sending link and the target terminal corresponding to the current data sending mode, and decrypts the encrypted data to obtain decrypted data, so as to send the decrypted data to the target terminal according to the target data sending link. In this embodiment, the client automatically identifies the current data sending mode of the server, so that the client automatically identifies the data sending link to which the decrypted data to be sent is adapted based on the data sending mode, without the server identifying and adapting the data sending link, thereby reducing the work load of the server and improving the operation stability of the server.
[0093] Referring to Figure 3 , Figure 3 This is a flowchart of a second embodiment of the data transmission method of the application. Based on the first embodiment, before step S201, the following steps are further included.
[0094] In step S301, the feature parameters corresponding to each data sending mode of the server are obtained, and each feature point of the data sending mode under different scales is constructed according to the feature parameters of the data sending mode.
[0095] In this embodiment, the client obtains the feature parameters of the data sending mode from the server, and constructs multiple feature points of the data sending mode under different scales in the size space. The scale control refers to a space formed by convolving a two-dimensional Gaussian function with a variable scale with an original image (Gaussian blur). For example, the client constructs a Gaussian difference pyramid, or uses a box filter and an integral image to achieve this. The box filter is used for the second-order partial derivative of Gaussian to accelerate the construction of the scale space. The image is smoothed by a Gaussian kernel of different scales to obtain an image of different scales, thereby constructing a pyramid of the scale space. For example, the integral image is constructed based on the feature parameters, the scale space is constructed by the integral image, and the feature points of the feature parameters under different scales are obtained by using the scale space.
[0096] In step S302, the key points are determined in each feature point of the data sending mode according to a preset matrix.
[0097] After obtaining each feature point, the key points are determined in each feature point based on the preset matrix.
[0098] For example, the preset matrix is a Hessian matrix, and the determinant of the Hessian matrix is used to detect extreme values in the neighborhood of the feature point, and the feature point that is an extreme value is a key point.
[0099] In step S303, at least one main direction is configured for the key point, and a descriptor parameter of a corresponding data reporting mode is determined according to the at least one main direction as a second descriptor parameter associated with the data reporting mode.
[0100] After the key point is determined, the client configures at least one main direction for the key point. For example, the client calculates a wavelet response parameter in a surrounding area of a position of the key point in the integral image. The wavelet response parameter can reflect gradient information of the local area, and can help to determine the main direction of the key point. The client determines a reference direction of the key point in the neighborhood based on the wavelet response parameter, constructs a direction histogram of the key point through the reference direction, and a peak value of the direction histogram represents the main direction of the gradient in the neighborhood of the key point.
[0101] After the at least one main direction is determined, a descriptor parameter of a data reporting mode is determined based on the at least one main direction as a second descriptor parameter associated with the data reporting mode. The second descriptor parameter is a high-dimensional vector, and includes gradient information of a surrounding area of the key point, a wavelet response parameter, and the like. In addition, the integral image can be used to accelerate the calculation of the second descriptor parameter, that is, through normalization processing, the high-dimensional vector can be ensured to have a unit length, thereby enhancing the robustness of the descriptor parameter.
[0102] It should be noted that the generation process of the first descriptor parameter of the server and the generation process of the second descriptor parameter are consistent, and will not be described here.
[0103] In step S304, the data reporting mode is stored in association with the corresponding second descriptor parameter.
[0104] After the second descriptor parameter associated with the data reporting mode is determined, the device stores each data reporting mode in association with the corresponding second descriptor parameter.
[0105] In this embodiment, the client obtains the feature parameters corresponding to each data reporting mode of the server, and constructs each feature point of the data reporting mode at different scales based on the feature parameters of the data reporting mode, determines a key point in each feature point based on a preset matrix, and then configures at least one main direction for the key point, so as to accurately determine the second descriptor parameter associated with the data reporting mode based on the at least one main direction.
[0106] Reference Figure 4 , Figure 4For the flowchart of the third embodiment of the data transmission method of the present application, based on the first or second embodiment, step S203 comprises:
[0107] Step S401, obtaining a first decryption key corresponding to the current data reporting mode.
[0108] Step S402, decrypting the encrypted data according to the first decryption key to obtain decrypted data.
[0109] In the present embodiment, the data reporting mode of the server is different, and the encryption mode of the data to be sent is different, so as to enhance the security of the data.
[0110] In an example, the server sends the identification of the data reporting mode and the decryption key to the client. After determining the current data reporting mode of the server, the client determines the identification of the current data reporting mode as the first identification, the device obtains the decryption key associated with the first identification, and thus decrypts the encrypted data based on the first decryption key to obtain decrypted data.
[0111] In another example, the data sending mode of the server is different in the number of encryption times for the data to be sent, that is, the server performs multiple rounds of encryption on the data to be sent. Each data sending mode has a different number of encryption rounds for the data, and the encryption keys of the data sending mode are different, and the encryption order of the encryption keys is also different. For example, the server stores five encryption keys a, b, c, d, and e. When the data sending mode is mode A, the encryption keys a, b, and c are used to encrypt the data, and the data is first encrypted by a, then encrypted again by c, and finally encrypted by b to obtain the encrypted data. When the data sending mode is mode B, the encryption keys d, b, and c are used to encrypt the data, and the data is first encrypted by d, then encrypted again by c, and finally encrypted by b to obtain the encrypted data. The encryption keys can also be used as decryption keys for data decryption, but the encryption order of the encryption keys is opposite to the decryption order of the decryption keys. For example, the encryption key a is first used to encrypt the data, but a is used for decryption, and a is used for the last data decryption. The server sends the identification of the data sending mode, the encryption keys, and the encryption order of the encryption keys to the client. After determining the current data sending mode of the server, the client obtains the first identification of the current data sending mode, obtains the different encryption keys associated with the first identification as the first decryption keys, and obtains the encryption order. The decryption order of the first decryption keys is determined by the encryption order, so that the encrypted data is decrypted in sequence according to the decryption order of the first decryption keys to obtain the decrypted data. For example, the current data mode is mode A, the encryption keys are a, b, and c, and the encryption order is a, c, and b. The first decryption keys are a, b, and c, and the decryption order is b, c, and a. The encrypted data is first decrypted by b, then decrypted again by c, and finally decrypted by a to obtain the decrypted data.
[0112] In this embodiment, the client obtains the first decryption key corresponding to the current data sending mode, and decrypts the encrypted data based on the first decryption key to obtain accurate decrypted data.
[0113] Referring to Figure 5 , Figure 5 is a flowchart of the fourth embodiment of the data transmission method of the present application. Based on the first or second embodiment, step S203 includes:
[0114] In step S501, the second identification of the client is obtained, and the number of the group in which the second identification is located is determined.
[0115] In this embodiment, the server encrypts based on the grouping of the clients. For example, the device groups the clients, each group of clients is assigned an encryption key, and the data generated by the server for the user corresponding to the client is encrypted using the encryption key of the group to which the client belongs. The server groups the identifiers of the clients, and the server sends the number of the group and the identifier of the client to the client for associated storage. The client obtains the second identifier of the client and determines the number of the group to which the second identifier belongs.
[0116] In step S502, the decryption key associated with the number is obtained as the second decryption key, and the encrypted data is decrypted according to the second decryption key to obtain decrypted data.
[0117] After the client obtains the number, the decryption key associated with the number can be obtained as the second decryption key, so that the encrypted data can be decrypted based on the second decryption key to obtain the decrypted data.
[0118] In this embodiment, the client obtains the decryption key associated with the number of the group to which the second identifier of the client belongs, and decrypts the encrypted data to obtain the decrypted data.
[0119] Referring to Figure 6 , Figure 6 FIG. 5 is a flowchart of a data transmission method according to a fifth embodiment of the present application, which is applied to a server. The data transmission method comprises the following steps.
[0120] In step S601, the client corresponding to the to-be-sent data is determined, and the characteristic parameter of the current data reporting mode of the server is obtained.
[0121] In step S602, the first descriptor parameter corresponding to the characteristic parameter is determined, and the to-be-sent data is encrypted to obtain encrypted data.
[0122] In this embodiment, the execution subject is the server. After a user logs in an account and the server generates data, the data needs to be sent to a target terminal for auditing or storage. The data can be different types of report data such as financial institution accounts, fund settlement data, replacement resource quotas, and repayment of replacement resources. The server configures corresponding clients for different users, and a data distribution device in the server distributes the data generated by different users to the corresponding clients of the users in a distributed manner, so that the clients send the data to the target terminal according to the adaptive data transmission link. The following describes this embodiment in detail by taking a client sending data to a target terminal.
[0123] After the user logs in the server, the server generates to-be-sent data including account, balance, transaction details and the like for business processing. The server encrypts the to-be-sent data to obtain encrypted data. The server sets different data reporting modes, and different data reporting modes correspond to different data sending links. For example, if the data reporting mode is mode A, the client needs to send data to the target terminal based on a dedicated line, if the data reporting mode is mode B, the client can send data to the target terminal based on the Internet, and if the data reporting mode is mode C, the client needs to send data to the target terminal based on a specified external network. The server obtains the current data reporting mode, generates a descriptor parameter based on the characteristic parameters of the current data reporting mode, and the descriptor parameter is defined as a first descriptor parameter. For example, the current data reporting mode can be determined by the account of the user logging in the server, the attributes of the data table of the to-be-sent data, the parameters of the reporting network specified by the account, and the IP address of the client corresponding to the user. The account, the attributes of the data table, the parameters of the reporting network, and the IP address are used as the characteristic parameters of the current data reporting network, a feature vector is constructed based on the characteristic parameters, and the feature vector is the first descriptor parameter. It can be understood that the first descriptor parameter is used for the data reporting mode of the server.
[0124] In step S603, the first descriptor parameter and the encrypted data are sent to the client, so that the client determines the data sending link of the to-be-sent data based on the stored second descriptor parameters and the first descriptor parameter.
[0125] The server obtains the first descriptor parameter corresponding to the current data reporting mode, and sends the first descriptor parameter and the encrypted data to the corresponding client, that is, the client receives the encrypted data and the first descriptor parameter sent by the server.
[0126] The client stores the characteristic parameters of multiple data reporting modes of the server, can determine the second descriptor parameter of each data reporting mode based on the characteristic parameters, and stores each second descriptor parameter in association with the corresponding data reporting mode. The generation process of the second descriptor parameter is consistent with that of the first descriptor parameter, and specific reference is made to the generation process of the first descriptor parameter described above, which will not be described here.
[0127] After the client obtains the first descriptor parameter, the distance between the first descriptor parameter and each second descriptor parameter is determined. For example, the first descriptor parameter and the second descriptor parameter are both vector features, and the Euclidean distance between the first descriptor parameter and the second descriptor parameter is calculated.
[0128] The client calculates the distance between the first descriptor parameter and each second descriptor parameter, determines the minimum distance among the distances, and the first descriptor parameter and the second descriptor parameter corresponding to the minimum distance are the most matched. The device can send the data reporting mode associated with the second descriptor parameter corresponding to the minimum distance as the current data reporting mode of the server.
[0129] The client stores the data reporting mode, the data sending link, and the association relationship between the target terminal sent by the server. After determining the current data reporting mode of the server, the device obtains the association relationship corresponding to the current data reporting mode, and determines the data sending link and the target terminal corresponding to the current data reporting mode based on the association relationship. The data sending link is defined as a target data sending link.
[0130] The client obtains the encrypted data and decrypts the encrypted data. For example, the server stores an encryption key and a decryption key. The server sends the decryption key to the client. The client decrypts the encrypted data based on the decryption key to obtain decrypted data.
[0131] After determining the target data sending link and the target terminal, the client sends the decrypted data to the target terminal according to the target data sending link.
[0132] In this embodiment, the server encrypts the data to be sent to obtain encrypted data, generates a first descriptor parameter based on the characteristic parameter of the current data reporting mode, and sends the first descriptor parameter and the encrypted data to the server. The client determines the current data reporting mode of the server based on the first descriptor parameter and the stored second descriptor parameter, so that the client adapts to the data sending link, and the server does not need to identify and adapt the data sending link, thereby reducing the workload of the server and improving the running stability of the server.
[0133] In an embodiment, the step of determining the first descriptor parameter corresponding to the characteristic parameter comprises:
[0134] According to the characteristic parameter, each feature point of the current data reporting mode under different scales is constructed;
[0135] According to the preset matrix, a key point is determined among the feature points of the current data reporting mode.
[0136] At least one main direction is configured for the key point, and the first descriptor parameter of the current data reporting mode is determined according to the at least one main direction.
[0137] In the embodiment, the server determines the first description parameter of the current data reporting mode based on the characteristic parameter of the current data reporting mode, which is consistent with the generation process of the second description parameter in the second embodiment. For details, refer to the second embodiment, which will not be repeated here.
[0138] In an embodiment, the step of encrypting the to-be-sent data to obtain the encrypted data comprises:
[0139] obtaining the first encryption key corresponding to the current data reporting mode;
[0140] encrypting the to-be-sent data according to the first encryption key to obtain the encrypted data.
[0141] Further, the step of obtaining the first encryption key corresponding to the current data reporting mode comprises:
[0142] determining the first identifier corresponding to the current data reporting mode, and obtaining each different first encryption key associated with the first identifier;
[0143] The step of encrypting the to-be-sent data according to the first encryption key to obtain the encrypted data comprises:
[0144] According to the encryption order of each first encryption key, the to-be-sent data is sequentially encrypted to obtain the encrypted data.
[0145] In the embodiment, the server obtains the encryption key based on the current data reporting mode, and encrypts the data. For details, refer to the related description of the decryption of the client based on the decryption key of the current data reporting mode in the third embodiment, which will not be repeated here.
[0146] In an embodiment, the step of encrypting the to-be-sent data to obtain the encrypted data comprises:
[0147] obtaining the second identifier of the client, and determining the number of the group where the second identifier is located;
[0148] obtaining the encryption key associated with the number as a second encryption key, and encrypting the to-be-sent data according to the second encryption key to obtain the encrypted data.
[0149] In the embodiment, the server groups the client, and the number where the group is located determines the encryption password to encrypt the to-be-sent data. For details, refer to the related description of the decryption of the client based on the number of the group in the fourth embodiment, which will not be repeated here.
[0150] Referring to Figure 7 The client 700 provided by the embodiment of the application comprises:
[0151] The receiving module 710 is configured to receive encrypted data and a first descriptor parameter sent by the server, and the first descriptor parameter is used to describe a data reporting mode of the server.
[0152] The first determining module 720 is configured to determine distances between the first descriptor parameter and each stored second descriptor parameter, and determine a data reporting mode corresponding to a second descriptor parameter with a minimum distance as a current data reporting mode of the server.
[0153] The second determining module 730 is configured to determine a target data sending link and a target terminal corresponding to the current data reporting mode, and decrypt the encrypted data to obtain decrypted data.
[0154] The first sending module 740 is configured to send the decrypted data to the target terminal according to the target data sending link.
[0155] In an embodiment, the client 700 is specifically configured to:
[0156] Obtain characteristic parameters corresponding to each data reporting mode of the server, and construct each feature point of the data reporting mode at different scales according to the characteristic parameters of the data reporting mode.
[0157] Determine a key point from each feature point of the data reporting mode according to a preset matrix.
[0158] Configure at least one main direction for the key point, and determine a descriptor parameter of the corresponding data reporting mode as a second descriptor parameter associated with the data reporting mode according to the at least one main direction.
[0159] Associate and store the data reporting mode with the corresponding second descriptor parameter.
[0160] In an embodiment, the client 700 is specifically configured to:
[0161] Obtain a first decryption key corresponding to the current data reporting mode.
[0162] Decrypt the encrypted data according to the first decryption key to obtain decrypted data.
[0163] In an embodiment, the client 700 is specifically configured to:
[0164] Determine a first identifier corresponding to the current data reporting mode, and obtain each different first decryption key associated with the first identifier.
[0165] The step of decrypting the encrypted data according to the first decryption key to obtain decrypted data includes:
[0166] Decrypt the encrypted data according to a decryption order of each first decryption key to obtain the decrypted data.
[0167] In an embodiment, the client 700 is specifically configured to:
[0168] obtain a second identity of the client, and determine a number of a group in which the second identity is located;
[0169] obtain a decryption key associated with the number as a second decryption key, and decrypt the encrypted data according to the second decryption key to obtain decrypted data.
[0170] The various modules of the client provided by the embodiments of the present application can realize Figures 2 to 5 The functions of the various steps of the data transmission method provided by any of the embodiments and the corresponding technical effects can be achieved, and for brevity, will not be described here.
[0171] Referring to Figure 8 , the server 800 provided by the embodiments of the present application, the server 800 comprises:
[0172] The third determination module 810 is configured to determine a client corresponding to the to-be-sent data, and obtain a characteristic parameter of a current data reporting mode of the server;
[0173] The fourth determination module 820 is configured to determine a first descriptor parameter corresponding to the characteristic parameter, and encrypt the to-be-sent data to obtain encrypted data;
[0174] The second sending module 830 is configured to send the first descriptor parameter and the encrypted data to the client, so that the client determines a data transmission link of the to-be-sent data based on the stored various second descriptor parameters and the first descriptor parameter.
[0175] In an embodiment, the server 800 is specifically configured to:
[0176] construct various feature points of the current data reporting mode under different scales according to the characteristic parameter;
[0177] determine a key point in the various feature points of the current data reporting mode according to a preset matrix;
[0178] configure at least one main direction for the key point, and determine the first descriptor parameter of the current data reporting mode according to the at least one main direction.
[0179] In an embodiment, the server 800 is specifically configured to:
[0180] obtain a first encryption key corresponding to the current data reporting mode;
[0181] encrypt the to-be-sent data according to the first encryption key to obtain encrypted data.
[0182] In an embodiment, the server 800 is specifically configured to:
[0183] determining a first identity corresponding to the current data reporting mode, and obtaining each different first encryption key associated with the first identity;
[0184] The step of encrypting the to-be-sent data according to the first encryption key to obtain encrypted data comprises:
[0185] The to-be-sent data is sequentially encrypted according to the encryption order of each first encryption key to obtain encrypted data.
[0186] In an embodiment, the server 800 is specifically configured to:
[0187] obtain a second identity of the client, and determine a number of a group in which the second identity is located;
[0188] obtain an encryption key associated with the number as a second encryption key, and encrypt the to-be-sent data according to the second encryption key to obtain encrypted data.
[0189] Figure 9 A hardware structure schematic diagram of a data transmission device provided by an embodiment of the present application is shown.
[0190] The data transmission device can include a processor 901 and a memory 902 having stored computer program instructions.
[0191] Specifically, the processor 901 can include a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or can be configured to implement one or more integrated circuits of the embodiments of the present application.
[0192] The memory 902 can include a mass storage for data or instructions. By way of example and not limitation, the memory 902 can include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 902 can include removable or non-removable (or fixed) media. Where appropriate, the memory 902 can be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, the memory 902 is a non-volatile solid-state memory.
[0193] In particular embodiments, the memory 902 can include read-only memory (ROM), random-access memory (RAM), magnetic disk storage mediums, optical storage mediums, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software that, when executed (by one or more processors), is operable to perform operations described with reference to the methods according to an aspect of the present disclosure.
[0194] The processor 901 implements the authentication method of any of the above embodiments by reading and executing computer program instructions stored in the memory 902.
[0195] In one example, the data transmission device can further include a communication interface 903 and a bus 910. As shown, the processor 901, the memory 902, and the communication interface 903 are connected through the bus 910 and complete communication with each other. Figure 9
[0196] The communication interface 903 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the present application. The bus 910 includes hardware, software or both to couple the components of the online data traffic billing device to each other. By way of example and not limitation, the bus can include an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard architecture (EISA) bus, a front side bus (FSB), a hypertransport (HT) interconnect, an industry standard architecture (ISA) bus, an infiniband interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or combination of two or more of these. The bus 910 can include one or more buses, as appropriate. Although particular buses are described and shown in the embodiments of the present application, the present application contemplates any suitable bus or interconnect.
[0197] The method of data transmission in the above embodiments can be implemented by a computer storage medium provided by the embodiments of the present application. The computer storage medium stores computer program instructions; the computer program instructions are executed by a processor to implement any of the above data transmission methods.
[0198] The embodiments of the present application also provide a computer program product, including a computer program, and the computer program is executed by a processor to implement any of the above data transmission methods.
[0199] It should also be noted that the example embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in an order different from the embodiments, or several steps can be performed simultaneously.
[0200] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other processing device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other processing device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0201] The above is merely specific implementation of the present application, and those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, module and unit can refer to the corresponding process in the foregoing method embodiments, which will not be described herein. It should be understood that the protection scope of the present application is not limited to this, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed in the present application, and these modifications or replacements shall be covered within the protection scope of the present application.
Claims
1. A data transmission method, characterized by, The data transmission method applied to a client comprises: receiving encrypted data and a first descriptor parameter sent by a server, the first descriptor parameter being used to describe a data sending mode of the server; determining a distance between the first descriptor parameter and each stored second descriptor parameter, and taking a data sending mode associated with a second descriptor parameter corresponding to a minimum distance as a current data sending mode of the server; determining a target data sending link and a target terminal corresponding to the current data sending mode, and decrypting the encrypted data to obtain decrypted data; sending the decrypted data to the target terminal according to the target data sending link.
2. The data transmission method of claim 1, wherein, Before the step of determining the distance between the first descriptor parameter and each stored second descriptor parameter, the method further comprises: obtaining characteristic parameters corresponding to each data sending mode of the server, and constructing each feature point of the data sending mode at different scales according to the characteristic parameters of the data sending mode; determining a key point in each feature point of the data sending mode according to a preset matrix; configuring at least one main direction for the key point, and determining a descriptor parameter corresponding to the data sending mode according to the at least one main direction as a second descriptor parameter associated with the data sending mode; storing the data sending mode and the corresponding second descriptor parameter in association.
3. The data transmission method of claim 1, wherein, The step of decrypting the encrypted data to obtain decrypted data comprises: obtaining a first decryption key corresponding to the current data sending mode; decrypting the encrypted data according to the first decryption key to obtain the decrypted data.
4. The data transmission method of claim 3, wherein, The step of obtaining the first decryption key corresponding to the current data sending mode comprises: determining a first identifier corresponding to the current data sending mode, and obtaining each different first decryption key associated with the first identifier; The step of decrypting the encrypted data according to the first decryption key to obtain the decrypted data comprises: decrypting the encrypted data in sequence according to a decryption order of each first decryption key to obtain the decrypted data.
5. The data transmission method of claim 1, wherein, The step of decrypting the encrypted data to obtain decrypted data comprises: obtaining a second identifier of the client, and determining a number of a group in which the second identifier is located; obtaining a decryption key associated with the number as a second decryption key, and decrypting the encrypted data according to the second decryption key to obtain the decrypted data.
6. A data transmission method, characterized by, The data transmission method applied to a server comprises: determining a client corresponding to to-be-sent data, and obtaining a characteristic parameter of a current data sending mode of the server; determining a first descriptor parameter corresponding to the characteristic parameter, and encrypting the to-be-sent data to obtain encrypted data; sending the first descriptor parameter and the encrypted data to the client, so that the client determines a data sending link of the to-be-sent data based on each stored second descriptor parameter and the first descriptor parameter.
7. The data transmission method of claim 6, wherein, The step of determining the first descriptor parameter corresponding to the characteristic parameter comprises: According to the feature parameter, a feature point of the current data reporting mode at different scales is constructed; According to a preset matrix, a key point is determined from the feature points of the current data reporting mode; At least one main direction is configured for the key point, and a first descriptor parameter of the current data reporting mode is determined according to the at least one main direction.
8. The data transmission method of claim 6, wherein, The step of encrypting the to-be-sent data to obtain encrypted data comprises: obtaining a first encryption key corresponding to the current data reporting mode; encrypting the to-be-sent data according to the first encryption key to obtain encrypted data.
9. The data transmission method of claim 8, wherein, The step of obtaining the first encryption key corresponding to the current data reporting mode comprises: determining a first identifier corresponding to the current data reporting mode, and obtaining different first encryption keys associated with the first identifier; The step of encrypting the to-be-sent data according to the first encryption key to obtain encrypted data comprises: encrypting the to-be-sent data in sequence according to the encryption order of the first encryption keys to obtain the encrypted data.
10. The data transmission method of claim 6, wherein, The step of encrypting the to-be-sent data to obtain encrypted data comprises: obtaining a second identifier of the client and determining the number of the group where the second identifier is located; obtaining an encryption key associated with the number as a second encryption key, and encrypting the to-be-sent data according to the second encryption key to obtain encrypted data.
11. A client, characterized in that, Comprise: a receiving module configured to receive encrypted data and a first descriptor parameter sent by a server, the first descriptor parameter being used to describe a data reporting mode of the server; a first determining module configured to determine the distance between the first descriptor parameter and each stored second descriptor parameter, and determine the data reporting mode associated with the second descriptor parameter corresponding to the smallest distance as the current data reporting mode of the server; a second determining module configured to determine a target data sending link and a target terminal corresponding to the current data reporting mode, and decrypt the encrypted data to obtain decrypted data; a first sending module configured to send the decrypted data to the target terminal according to the target data sending link.
12. A server, characterized by Comprise: a third determining module configured to determine a client corresponding to to-be-sent data, and obtain feature parameters of a current data reporting mode of the server; a fourth determining module configured to determine a first descriptor parameter corresponding to the feature parameters, and encrypt the to-be-sent data to obtain encrypted data; a second sending module configured to send the first descriptor parameter and the encrypted data to the client, so that the client determines a data sending link of the to-be-sent data based on each stored second descriptor parameter and the first descriptor parameter.
13. A data transmission device, characterized by The device comprises a processor and a memory storing computer program instructions; the processor executes the computer program instructions to implement the data transmission method of any one of claims 1-10.
14. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer program instructions, and the computer program instructions are executed by a processor to implement the data transmission method in any one of claims 1-10.
15. A computer program product, characterised in that, The instructions in the computer program product are executed by a processor of an electronic device, so that the electronic device can execute the data transmission method in any one of claims 1-10.
Citation Information
Patent Citations
Supervision file submission method, device thereof and equipment and readable medium
CN111988406A
Data transmission method and device, storage medium and electronic equipment
CN112291366A