[go: up one dir, main page]

CN118573722A - Data transmission processing method and device, intelligent household appliance and computer storage medium - Google Patents

Data transmission processing method and device, intelligent household appliance and computer storage medium Download PDF

Info

Publication number
CN118573722A
CN118573722A CN202311061971.2A CN202311061971A CN118573722A CN 118573722 A CN118573722 A CN 118573722A CN 202311061971 A CN202311061971 A CN 202311061971A CN 118573722 A CN118573722 A CN 118573722A
Authority
CN
China
Prior art keywords
data
data transmission
transmission
quality
server
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
CN202311061971.2A
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.)
Karos Iot Technology Co ltd
Kaos Digital Technology Qingdao Co ltd
Original Assignee
Karos Iot Technology Co ltd
Kaos Digital Technology Qingdao 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 Karos Iot Technology Co ltd, Kaos Digital Technology Qingdao Co ltd filed Critical Karos Iot Technology Co ltd
Priority to CN202311061971.2A priority Critical patent/CN118573722A/en
Publication of CN118573722A publication Critical patent/CN118573722A/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/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • 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
    • 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/08Protocols for interworking; Protocol conversion
    • 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/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Communication Control (AREA)

Abstract

本申请属于数据处理技术领域,具体涉及一种数据传输处理方法、装置、智能家电和计算机存储介质。在获取到第一服务端的第一配置信息后,将生成与该第一配置信息对应的第二配置信息,并将第二配置信息对应的数据传输请求发送至第一服务端。该方法解决了在微服务模式下,多种数据类型可按配置规则自动选择数据传输协议与请求失败重试次数,还提高了数据的传输效率和性能,进而确保了数据的准确性以及完整性,从而提高了微服务模式的执行效率,本申请可以应用于工业互联网领域下,各业务微服务之间的数据传输过程中。

The present application belongs to the field of data processing technology, and specifically relates to a data transmission processing method, device, smart home appliance and computer storage medium. After obtaining the first configuration information of the first server, the second configuration information corresponding to the first configuration information will be generated, and the data transmission request corresponding to the second configuration information will be sent to the first server. This method solves the problem that in the microservice mode, multiple data types can automatically select the data transmission protocol and the number of retries of failed requests according to the configuration rules, and also improves the data transmission efficiency and performance, thereby ensuring the accuracy and integrity of the data, thereby improving the execution efficiency of the microservice mode. This application can be applied to the data transmission process between various business microservices in the field of industrial Internet.

Description

数据传输处理方法、装置、智能家电和计算机存储介质Data transmission processing method, device, smart home appliance and computer storage medium

技术领域Technical Field

本申请属于数据处理技术领域,具体涉及一种数据传输处理方法、装置、智能家电和计算机存储介质。The present application belongs to the field of data processing technology, and specifically relates to a data transmission processing method, device, smart home appliance and computer storage medium.

背景技术Background Art

随着信息时代的高速发展,微服务模式已经成为软件工程领域的主流潮流。这种模式的主要目的是解耦复杂的业务系统之间的繁琐关系,使每个微服务只需关注自身数据处理和业务流程。With the rapid development of the information age, the microservice model has become the mainstream trend in the field of software engineering. The main purpose of this model is to decouple the cumbersome relationships between complex business systems so that each microservice only needs to focus on its own data processing and business processes.

然而,现有的微服务模式通常只能支持一种网络传输协议,且在面对不同的数据的传输要求时,微服务模式无法动态切换不同的传输协议,以及现有市面上的微服务框架,大部分选择的都是TCP、UDP网络传输协议或基于TCP协议与UDP协议共同封装的各种协议的其中一种,所以,现有的微服务模式已经无法满足不同微服务对数据传输的类型、质量和等级的需求。However, the existing microservice model can usually only support one network transmission protocol, and when faced with different data transmission requirements, the microservice model cannot dynamically switch between different transmission protocols. Most of the existing microservice frameworks on the market choose TCP, UDP network transmission protocols or one of the various protocols encapsulated based on TCP and UDP protocols. Therefore, the existing microservice model can no longer meet the requirements of different microservices for the type, quality and level of data transmission.

因此,当前亟待解决的问题是如何在微服务模式下,多种数据类型可按配置规则自动选择数据传输协议与请求失败重试次数,以提高数据的传输效率和性能以及数据在传输过程中的安全性和完整性,进而确保数据的准确性以及完整性,从而提高微服务模式的执行效率。Therefore, the current urgent problem to be solved is how, in the microservice mode, multiple data types can automatically select data transmission protocols and request failure retry times according to configuration rules to improve data transmission efficiency and performance as well as the security and integrity of data during transmission, thereby ensuring the accuracy and integrity of the data, thereby improving the execution efficiency of the microservice mode.

发明内容Summary of the invention

本申请提供了一种数据传输处理方法、装置、智能家电和计算机存储介质,用于解决在微服务模式下,多种数据类型可按配置规则自动选择数据传输协议与请求失败重试次数的问题。The present application provides a data transmission processing method, device, smart home appliance and computer storage medium, which are used to solve the problem that multiple data types can automatically select data transmission protocols and request failure retry times according to configuration rules in a microservice mode.

第一方面,本申请提供一种数据传输处理方法,包括:In a first aspect, the present application provides a data transmission processing method, comprising:

获取第一服务端的第一配置信息,并根据所述第一配置信息,确定与所述第一服务端之间的数据传输质量;Acquire first configuration information of a first server, and determine the quality of data transmission between the server and the first server according to the first configuration information;

根据所述数据传输质量,确定数据传输的第二配置信息,所述第二配置信息用于指示所述第一服务端和第二服务端之间的数据传输规则;Determining second configuration information for data transmission according to the data transmission quality, where the second configuration information is used to indicate a data transmission rule between the first server and the second server;

根据所述第二配置信息生成数据传输请求,并将所述数据传输请求发送至所述第一服务端。Generate a data transmission request according to the second configuration information, and send the data transmission request to the first server.

可选的,所述根据所述第一配置信息,确定与所述第一服务端之间的数据传输质量,包括:Optionally, determining, according to the first configuration information, the data transmission quality between the server and the first server includes:

获取传输数据质量表,所述传输数据质量表用于指示传输质量与传输网络之间的第一关联关系;Acquire a transmission data quality table, where the transmission data quality table is used to indicate a first association relationship between transmission quality and a transmission network;

根据所述第一配置信息和所述传输数据质量表,确定与所述第一服务端之间的所述数据传输质量。The data transmission quality between the first server and the first service end is determined according to the first configuration information and the transmission data quality table.

可选的,所述根据所述数据传输质量,确定数据传输的第二配置信息,包括:Optionally, determining second configuration information for data transmission according to the data transmission quality includes:

获取数据类型配置表、传输协议对照表、数据传输要求配置表以及加密压缩算法对照表;Obtain the data type configuration table, transmission protocol comparison table, data transmission requirement configuration table, and encryption compression algorithm comparison table;

根据所述数据类型配置表,确定所述数据传输的目标数据类型;Determining the target data type of the data transmission according to the data type configuration table;

根据所述数据传输质量和所述传输协议对照表,确定所述数据传输的目标使用传输协议;Determining a target use transmission protocol for the data transmission according to the data transmission quality and the transmission protocol comparison table;

根据所述数据传输质量、所述目标数据类型、所述数据传输要求配置表和所述加密压缩算法对照表,确定所述数据传输的目标使用加密压缩算法;Determine the encryption compression algorithm used for the data transmission target according to the data transmission quality, the target data type, the data transmission requirement configuration table and the encryption compression algorithm comparison table;

根据所述目标使用传输协议和所述目标使用加密压缩算法,确定所述数据传输的所述第二配置信息。The second configuration information of the data transmission is determined according to the target use transmission protocol and the target use encryption compression algorithm.

可选的,所述数据传输质量包括:高传输质量、中传输质量以及低传输质量,所述根据所述数据传输质量和所述传输协议对照表,确定所述数据传输的目标使用传输协议,包括:Optionally, the data transmission quality includes: high transmission quality, medium transmission quality and low transmission quality, and determining the target use transmission protocol for the data transmission according to the data transmission quality and the transmission protocol comparison table includes:

若所述数据传输质量为高传输质量,则根据所述传输协议对照表,将第一使用传输协议作为所述目标使用传输协议;If the data transmission quality is high transmission quality, according to the transmission protocol comparison table, the first transmission protocol is used as the target transmission protocol;

若所述数据传输质量为中传输质量,则根据所述传输协议对照表,将第二使用传输协议作为所述目标使用传输协议;If the data transmission quality is medium transmission quality, according to the transmission protocol comparison table, the second transmission protocol is used as the target transmission protocol;

若所述数据传输质量为低传输质量,则根据所述传输协议对照表,将第三使用传输协议作为所述目标使用传输协议。If the data transmission quality is low, the third transmission protocol is used as the target transmission protocol according to the transmission protocol comparison table.

可选的,所述根据所述数据传输质量、所述目标数据类型、所述数据传输要求配置表和所述加密压缩算法对照表,确定所述数据传输的目标使用加密压缩算法,包括:Optionally, determining the target encryption compression algorithm to be used for the data transmission according to the data transmission quality, the target data type, the data transmission requirement configuration table, and the encryption compression algorithm comparison table includes:

根据所述数据传输质量、所述目标数据类型以及所述数据传输要求配置表,确定所述数据传输的目标数据传输等级;Determining a target data transmission level of the data transmission according to the data transmission quality, the target data type and the data transmission requirement configuration table;

根据所述目标数据传输等级和所述加密压缩压缩算法对照表,确定所述数据传输的目标使用加密压缩算法。The target encryption compression algorithm used for the data transmission is determined according to the target data transmission level and the encryption compression algorithm comparison table.

可选的,所述方法还包括:Optionally, the method further includes:

根据所述数据传输质量,确定所述数据传输的总传输失败次数;Determining a total number of transmission failures of the data transmission according to the data transmission quality;

在将所述数据传输请求发送至所述第一服务端之后,判断是否接收到所述第一服务端返回的数据传输响应;After sending the data transmission request to the first server, determining whether a data transmission response returned by the first server is received;

若否,则获取所述数据传输的当前传输失败次数,并启动重试次数计数器;If not, obtaining the current number of transmission failures of the data transmission and starting a retry count counter;

根据当前传输失败次数和所述重试次数计数器,重新确定新的当前传输失败次数;Re-determine a new current number of transmission failures according to the current number of transmission failures and the retry count counter;

判断所述新的当前传输失败次数是否满足所述总传输失败次数;Determine whether the new current number of transmission failures meets the total number of transmission failures;

若否,则将所述数据传输请求重新发送至所述第一服务端。If not, the data transmission request is resent to the first server.

可选的,所述根据所述数据传输质量,确定与所述数据传输对应的总传输失败次数,包括:Optionally, determining, according to the data transmission quality, a total number of transmission failures corresponding to the data transmission includes:

获取请求失败重试次数对照表;Get the comparison table of request failure retry times;

根据所述数据传输质量和所述请求失败重试次数对照表,确定与所述数据传输对应的总传输失败次数。The total number of transmission failures corresponding to the data transmission is determined according to the data transmission quality and the request failure retry number comparison table.

第二方面,本申请提供一种数据传输处理装置,包括:In a second aspect, the present application provides a data transmission processing device, including:

获取模块,用于获取第一服务端的第一配置信息;An acquisition module, used to acquire first configuration information of a first server;

确定模块,用于根据所述第一配置信息,确定与所述第一服务端之间的数据传输质量;A determination module, configured to determine the quality of data transmission between the server and the first server according to the first configuration information;

所述确定模块,还用于根据所述数据传输质量,确定数据传输的第二配置信息,所述第二配置信息用于指示所述第一服务端和第二服务端之间的数据传输规则;The determination module is further used to determine second configuration information for data transmission according to the data transmission quality, where the second configuration information is used to indicate a data transmission rule between the first server and the second server;

处理模块,用于根据所述第二配置信息生成数据传输请求;A processing module, configured to generate a data transmission request according to the second configuration information;

发送模块,用于将所述数据传输请求发送至所述第一服务端。A sending module is used to send the data transmission request to the first server.

可选的,所述获取模块,还用于获取传输数据质量表,所述传输数据质量表用于指示传输质量与传输网络之间的第一关联关系;Optionally, the acquisition module is further used to acquire a transmission data quality table, where the transmission data quality table is used to indicate a first association relationship between transmission quality and a transmission network;

所述确定模块,还用于根据所述第一配置信息和所述传输数据质量表,确定与所述第一服务端之间的所述数据传输质量。The determination module is further used to determine the data transmission quality between the first server and the first service end according to the first configuration information and the transmission data quality table.

可选的,所述获取模块,还用于获取数据类型配置表、传输协议对照表、数据传输要求配置表以及加密压缩算法对照表;Optionally, the acquisition module is further used to acquire a data type configuration table, a transmission protocol comparison table, a data transmission requirement configuration table, and an encryption compression algorithm comparison table;

所述确定模块,还用于根据所述数据类型配置表,确定所述数据传输的目标数据类型;The determining module is further used to determine the target data type of the data transmission according to the data type configuration table;

所述确定模块,还用于根据所述数据传输质量和所述传输协议对照表,确定所述数据传输的目标使用传输协议;The determination module is further used to determine the target use transmission protocol for the data transmission according to the data transmission quality and the transmission protocol comparison table;

所述确定模块,还用于根据所述数据传输质量、所述目标数据类型、所述数据传输要求配置表和所述加密压缩算法对照表,确定所述数据传输的目标使用加密压缩算法;The determination module is further used to determine the target encryption compression algorithm to be used for the data transmission according to the data transmission quality, the target data type, the data transmission requirement configuration table and the encryption compression algorithm comparison table;

所述确定模块,具体用于根据所述目标使用传输协议和所述目标使用加密压缩算法,确定所述数据传输的所述第二配置信息。The determination module is specifically configured to determine the second configuration information of the data transmission according to the target transmission protocol and the target encryption compression algorithm.

可选的,所述确定模块,具体用于当所述数据传输质量为高传输质量时,根据所述传输协议对照表,将第一使用传输协议作为所述目标使用传输协议;Optionally, the determination module is specifically configured to, when the data transmission quality is high transmission quality, use the first transmission protocol as the target transmission protocol according to the transmission protocol comparison table;

所述确定模块,具体用于当所述数据传输质量为中传输质量时,根据所述传输协议对照表,将第二使用传输协议作为所述目标使用传输协议;The determination module is specifically configured to, when the data transmission quality is medium transmission quality, use the second transmission protocol as the target transmission protocol according to the transmission protocol comparison table;

所述确定模块,具体用于当所述数据传输质量为低传输质量时,根据所述传输协议对照表,将第三使用传输协议作为所述目标使用传输协议。The determination module is specifically configured to use, when the data transmission quality is low, a third transmission protocol as the target transmission protocol according to the transmission protocol comparison table.

可选的,所述确定模块,还用于根据所述数据传输质量、所述目标数据类型以及所述数据传输要求配置表,确定所述数据传输的目标数据传输等级;Optionally, the determination module is further used to determine a target data transmission level of the data transmission according to the data transmission quality, the target data type and the data transmission requirement configuration table;

所述确定模块,具体用于根据所述目标数据传输等级和所述加密压缩压缩算法对照表,确定所述数据传输的目标使用加密压缩算法。The determination module is specifically used to determine the encryption compression algorithm used by the target data transmission according to the target data transmission level and the encryption compression algorithm comparison table.

可选的,所述确定模块,还用于根据所述数据传输质量,确定所述数据传输的总传输失败次数;Optionally, the determination module is further used to determine the total number of transmission failures of the data transmission according to the data transmission quality;

所述装置还包括:判断模块;The device further comprises: a judgment module;

所述判断模块,用于在将所述数据传输请求发送至所述第一服务端之后,判断是否接收到所述第一服务端返回的数据传输响应;The determination module is used to determine whether a data transmission response returned by the first server is received after sending the data transmission request to the first server;

所述获取模块,还用于未接收到所述第一服务端返回的数据传输响应时,获取所述数据传输的当前传输失败次数,并启动重试次数计数器;The acquisition module is further configured to acquire the current number of transmission failures of the data transmission and start a retry count counter when the data transmission response returned by the first server is not received;

所述确定模块,还用于根据当前传输失败次数和所述重试次数计数器,重新确定新的当前传输失败次数;The determination module is further used to re-determine a new current number of transmission failures based on the current number of transmission failures and the retry count counter;

所述判断模块,还用于判断所述新的当前传输失败次数是否满足所述总传输失败次数;The judging module is further configured to judge whether the new current number of transmission failures satisfies the total number of transmission failures;

所述发送模块,还用于在所述新的当前传输失败次数不满足所述总传输失败次数时,将所述数据传输请求重新发送至所述第一服务端。The sending module is further configured to resend the data transmission request to the first server when the new current number of transmission failures does not satisfy the total number of transmission failures.

可选的,所述获取模块,还用于获取请求失败重试次数对照表;Optionally, the acquisition module is further used to obtain a comparison table of request failure retry times;

所述确定模块,具体用于根据所述数据传输质量和所述请求失败重试次数对照表,确定与所述数据传输对应的总传输失败次数。The determination module is specifically used to determine the total number of transmission failures corresponding to the data transmission according to the data transmission quality and the request failure retry number comparison table.

第三方面,本申请提供一种数据传输处理设备,包括:In a third aspect, the present application provides a data transmission processing device, including:

存储器;处理器;其中,所述存储器存储计算机执行指令;A memory; a processor; wherein the memory stores computer-executable instructions;

所述处理器执行所述存储器存储的计算机执行指令,以实现如上述第一方面及第一方面各种可能的实现方式所述的数据传输处理方法。The processor executes the computer-executable instructions stored in the memory to implement the data transmission processing method as described in the first aspect and various possible implementation methods of the first aspect.

第四方面,本申请提供一种计算机存储介质,其上存储有计算机执行指令,所述计算机执行指令被处理器执行以实现如上述第一方面及第一方面各种可能的实现方式所述的数据传输处理方法。In a fourth aspect, the present application provides a computer storage medium having computer execution instructions stored thereon, wherein the computer execution instructions are executed by a processor to implement the data transmission processing method as described in the first aspect and various possible implementations of the first aspect.

本申请提供的数据传输处理方法,在获取到第一服务端的第一配置信息后,将生成与该第一配置信息对应的第二配置信息,并将第二配置信息对应的数据传输请求发送至第一服务端。该方法解决了在微服务模式下,多种数据类型可按配置规则自动选择数据传输协议与请求失败重试次数,还提高了数据的传输效率和性能,进而确保了数据的准确性以及完整性,从而提高了微服务模式的执行效率。The data transmission processing method provided by the present application generates second configuration information corresponding to the first configuration information after obtaining the first configuration information of the first server, and sends the data transmission request corresponding to the second configuration information to the first server. This method solves the problem that in the microservice mode, multiple data types can automatically select the data transmission protocol and the number of retries of failed requests according to the configuration rules, and also improves the data transmission efficiency and performance, thereby ensuring the accuracy and integrity of the data, thereby improving the execution efficiency of the microservice mode.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

图1是本申请提供的数据传输处理方法的流程图一;FIG1 is a flowchart of a data transmission processing method provided by the present application;

图2是本申请提供的数据传输处理方法的流程图二;FIG2 is a second flowchart of the data transmission processing method provided by the present application;

图3是本申请提供的数据传输处理方法的流程图三;FIG3 is a flowchart of the data transmission processing method provided by the present application;

图4是本申请提供的数据传输处理装置的结构示意图;FIG4 is a schematic diagram of the structure of a data transmission processing device provided by the present application;

图5是本申请提供的数据传输处理设备的结构示意图。FIG5 is a schematic diagram of the structure of the data transmission processing device provided in the present application.

通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments.

具体实施方式DETAILED DESCRIPTION

为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.

本申请实施例中,“示例性的”或者“例如”等词用于表示例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

随着科技的不断进步,微服务模式已经成为软件工程的主流趋势。由于传统的单体应用通常包含大量的业务逻辑和功能,各个部分之间高度耦合,一旦其中一个功能出现问题,可能会影响整个系统的运行。而微服务模式可以将复杂的业务系统拆分成多个小的服务模块,使得每个模块只关注自身的数据处理和业务流程,通过明确的接口进行通信。因此微服务模式不仅使得各个服务模块可以独立开发、测试、部署和扩展,还使得每个微服务只需关注自身数据处理和业务流程,从而提高系统的可维护性、可扩展性和灵活性。With the continuous advancement of science and technology, the microservice model has become the mainstream trend of software engineering. Since traditional monolithic applications usually contain a large amount of business logic and functions, and the various parts are highly coupled, once a problem occurs in one of the functions, it may affect the operation of the entire system. The microservice model can split a complex business system into multiple small service modules, so that each module only focuses on its own data processing and business processes, and communicates through clear interfaces. Therefore, the microservice model not only allows each service module to be independently developed, tested, deployed and expanded, but also allows each microservice to only focus on its own data processing and business processes, thereby improving the maintainability, scalability and flexibility of the system.

现有的微服务模式中的各个业务服务或模块在数据传输的质量和等级要求各不相同,例如:Each business service or module in the existing microservice model has different requirements for the quality and level of data transmission, for example:

1、微服务模式中业务模块A对数据的强一致性有要求,要求发送与接收的数据是强一致性的,如遇到网络等问题必须有重试机制,如金额、订单数据等;1. In the microservice model, business module A has requirements for strong consistency of data. The data sent and received must be strongly consistent. If network problems occur, there must be a retry mechanism, such as amount, order data, etc.;

2、微服务模式中业务模块B对数据有可用性有要求,要求数据传输速率高,不能出现延迟,能接收部分数据丢失的情况,如音视频、游戏数据等。2. In the microservice model, business module B has requirements for data availability, requiring a high data transmission rate, no delays, and the ability to accept partial data loss, such as audio and video, game data, etc.

3、微服务模式中业务模块C对数据的强一致性有要求,要求发送与接收的数据是强一致性的,如遇到网络问题等问题可稍微等待,完成最终一致性。如报表、消息数据等。3. In the microservice model, business module C has requirements for strong consistency of data, requiring that the data sent and received must be strongly consistent. If network problems occur, you can wait for a while to complete the final consistency. Such as reports, message data, etc.

然而,现有的微服务模式通常只能支持一种网络传输协议,且在面对不同的数据的传输要求时,微服务模式无法动态切换不同的传输协议,以及现有市面上的微服务框架,大部分选择的都是TCP、UDP网络传输协议或基于TCP协议与UDP协议共同封装的各种协议的其中一种,所以,现有的微服务模式已经无法满足不同微服务对数据传输的类型、质量和等级的需求。However, the existing microservice model can usually only support one network transmission protocol, and when faced with different data transmission requirements, the microservice model cannot dynamically switch between different transmission protocols. Most of the existing microservice frameworks on the market choose TCP, UDP network transmission protocols or one of the various protocols encapsulated based on TCP and UDP protocols. Therefore, the existing microservice model can no longer meet the requirements of different microservices for the type, quality and level of data transmission.

因此,如何在微服务模式下,针对不同的数据类型,对数据的传输质量和传输等级选择适合的数据传输协议,进而提高数据的传输效率和性能,确保数据的准确性以及完整性,从而提高微服务模式的执行效率,是目前所要解决的问题。Therefore, how to select appropriate data transmission protocols for different data types, data transmission quality and transmission level in the microservice model, thereby improving data transmission efficiency and performance, ensuring data accuracy and integrity, and thus improving the execution efficiency of the microservice model, is the current problem to be solved.

本申请提供的数据传输处理方法,在获取到第一服务端的第一配置信息后,将生成与该第一配置信息对应的第二配置信息,并将第二配置信息对应的数据传输请求发送至第一服务端。该方法解决了在微服务模式下,多种数据类型可按配置规则自动选择数据传输协议与请求失败重试次数,还提高了数据的传输效率和性能,进而确保了数据的准确性以及完整性,从而提高了微服务模式的执行效率。The data transmission processing method provided by the present application generates second configuration information corresponding to the first configuration information after obtaining the first configuration information of the first server, and sends the data transmission request corresponding to the second configuration information to the first server. This method solves the problem that in the microservice mode, multiple data types can automatically select the data transmission protocol and the number of retries of failed requests according to the configuration rules, and also improves the data transmission efficiency and performance, thereby ensuring the accuracy and integrity of the data, thereby improving the execution efficiency of the microservice mode.

下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

图1是本申请提供的数据传输处理方法的流程图一。本实施例的执行主体例如可以为第二服务端。如图1所示,本实施例提供的数据传输处理方法,包括:FIG1 is a flowchart of a data transmission processing method provided by the present application. The execution subject of this embodiment may be, for example, a second server. As shown in FIG1 , the data transmission processing method provided by this embodiment includes:

S101:获取第一服务端的第一配置信息,并根据所述第一配置信息,确定与所述第一服务端之间的数据传输质量。S101: Acquire first configuration information of a first server, and determine data transmission quality with the first server according to the first configuration information.

其中,第一服务端是指带有数据接口的服务端。第一配置信息用于指示第一服务端中数据接口对应的数据信息。The first server refers to a server with a data interface. The first configuration information is used to indicate data information corresponding to the data interface in the first server.

数据传输质量指的是,在网络传输过程中,发送方发送的数据传输到接收方时,两者之间的数据匹配程度。其中,数据匹配程度可以反映在传输过程中是否出现丢包、错误、延迟等问题。Data transmission quality refers to the degree of data matching between the sender and the receiver during network transmission. The degree of data matching can reflect whether there are packet loss, errors, delays, etc. during the transmission process.

通过获取第一服务端的第一配置信息,则可以得到第一服务端中数据接口对应的数据信息。By acquiring the first configuration information of the first server, data information corresponding to the data interface in the first server can be obtained.

由于第一服务端提供的数据信息通常以数据接口的方式呈现,并且第一服务端提供的数据接口可能有多个,而每个数据接口对应着不同的数据信息,因此,通过获取第一配置信息,则可以得到每个接口对应的配置信息。Since the data information provided by the first server is usually presented in the form of a data interface, and the first server may provide multiple data interfaces, and each data interface corresponds to different data information, by acquiring the first configuration information, the configuration information corresponding to each interface can be obtained.

获取第一服务端的第一配置信息的方式例如可以是通过调用中心数据平台提供的API接口获取到的,也可以是由中心数据平台将第一服务端的第一配置信息主动发送后获取到的。本申请对此不做限制。The first configuration information of the first server can be obtained by, for example, calling an API interface provided by the central data platform, or by the central data platform actively sending the first configuration information of the first server. This application does not limit this.

在该步骤中,根据第一配置信息,确定与第一服务端之间的数据传输质量的目的是评估数据在网络传输过程中的完整性和稳定性。In this step, the purpose of determining the data transmission quality between the first server and the first server according to the first configuration information is to evaluate the integrity and stability of the data during the network transmission process.

可以理解的,数据的完整性是指数据在网络传输过程中没有丢失或者损坏,通过检测丢包率等指标,可以判断在网络传输过程中是否存在数据包丢失的情况,进而可以确定数据的完整性情况;数据的稳定性是指数据在网络传输过程中的延迟时长和抖动次数,当确定了延迟时间过长或者抖动次数较多时,可以得到数据在网络传输中数据的波动情况,进而可以确定数据的稳定性。It can be understood that data integrity means that the data is not lost or damaged during network transmission. By detecting indicators such as packet loss rate, it can be determined whether there is data packet loss during network transmission, and then the data integrity can be determined; data stability refers to the delay duration and jitter number of data during network transmission. When it is determined that the delay time is too long or the jitter number is large, the fluctuation of data in network transmission can be obtained, and then the stability of the data can be determined.

由于已经获取到第一服务端的第一配置信息,因此可以使第二服务端根据该第一配置信息,确定出与第一配置信息对应的配置信息,从而根据该配置信息,确定出与第一服务端之间的数据传输质量。Since the first configuration information of the first server has been obtained, the second server can determine configuration information corresponding to the first configuration information based on the first configuration information, thereby determining the data transmission quality between the second server and the first server based on the configuration information.

在该步骤中,例如可以先获取第一服务端的第一配置信息,进而根据该第一配置信息,确定出与第一服务端之间的数据传输质量,以使确定出来的数据结果更加准确。In this step, for example, first configuration information of the first server may be obtained first, and then the data transmission quality with the first server may be determined based on the first configuration information, so that the determined data result is more accurate.

例如,当第二服务端为订单服务端,且在用户下单时,则订单服务端会通过中心数据平台查询第一服务端的商品库存信息,如果查询到商品库存信息与订单服务端中的订单数据信息(例如商品名称、商品编号等)存在对应关系时,则可以根据该订单数据信息,整理订单服务端中订单数据对应的信息,进而通过确定好的订单数据对应的信息,订单服务端可以确定出与第一服务端之间的传输质量。For example, when the second server is an order server and when a user places an order, the order server will query the product inventory information of the first server through the central data platform. If the queried product inventory information corresponds to the order data information in the order server (such as product name, product number, etc.), the order server can organize the information corresponding to the order data in the order server based on the order data information. Then, by determining the information corresponding to the order data, the order server can determine the transmission quality between the first server and the server.

S102:根据所述数据传输质量,确定数据传输的第二配置信息,所述第二配置信息用于指示所述第一服务端和第二服务端之间的数据传输规则。S102: Determine second configuration information for data transmission according to the data transmission quality, where the second configuration information is used to indicate a data transmission rule between the first server and the second server.

其中,第二配置信息例如可以包括:数据传输的使用传输协议、数据传输的使用加密压缩算法。The second configuration information may include, for example: a transmission protocol used for data transmission and an encryption compression algorithm used for data transmission.

在该步骤中,可以在确定了数据传输质量后,根据该数据传输质量,确定出与数据传输质量相关联的第二配置信息,以便确定的配置信息与数据传输时的数据匹配度最高。In this step, after the data transmission quality is determined, second configuration information associated with the data transmission quality may be determined according to the data transmission quality, so that the determined configuration information has the highest matching degree with the data during data transmission.

可以理解的,若当前传输数据的数据传输质量为高传输质量,那么可以确定当前数据传输的数据类型为FileData,使用传输协议为TCP协议以及使用加密压缩算法为AES算法/Huffman编码,进而从已经确定的数据类型、使用传输协议和使用加密压缩算法中,确定出数据传输的第二配置信息,也即可以将TCP协议和AES算法/Huffman编码确定为传输数据的第二配置信息。It can be understood that if the data transmission quality of the currently transmitted data is high transmission quality, then the data type of the currently transmitted data can be determined as FileData, the transmission protocol used is the TCP protocol, and the encryption compression algorithm used is the AES algorithm/Huffman encoding, and then from the determined data type, the transmission protocol used, and the encryption compression algorithm used, the second configuration information of the data transmission is determined, that is, the TCP protocol and AES algorithm/Huffman encoding can be determined as the second configuration information of the transmitted data.

S103:根据所述第二配置信息生成数据传输请求,并将所述数据传输请求发送至所述第一服务端。S103: Generate a data transmission request according to the second configuration information, and send the data transmission request to the first server.

根据第二配置信息生成数据传输请求的目的是为了向第一服务端发送特定的数据,以便进行数据传输。The purpose of generating the data transmission request according to the second configuration information is to send specific data to the first server to facilitate data transmission.

根据第二配置信息生成数据传输请求的方式例如可以是采用现有的开源库或框架,自动生成数据传输请求,也可以是由编程人员编写对应的配置文件来生成数据传输请求,还可以是采用集成开发环境,自动生成数据传输请求的代码。本申请对此不做限制。The method of generating the data transmission request according to the second configuration information may be, for example, using an existing open source library or framework to automatically generate the data transmission request, or a programmer may write a corresponding configuration file to generate the data transmission request, or an integrated development environment may be used to automatically generate the code for the data transmission request. This application does not limit this.

将数据传输请求发送至第一服务端的方式例如可以是采用TCP/IP套接字将数据传输请求直接发送至第一服务端,也可以是使用消息队列系统将数据传输请求发送给第一服务端,还可以是使用WebSocket协议将数据传输请求发送至第一服务端。本申请对此不做限制。The method of sending the data transmission request to the first server end may be, for example, using a TCP/IP socket to directly send the data transmission request to the first server end, or using a message queue system to send the data transmission request to the first server end, or using a WebSocket protocol to send the data transmission request to the first server end. This application does not impose any restrictions on this.

可以理解的,通过生成数据传输请求,可以确保数据按照特定的配置信息,传输到第一服务端,从而实现数据传输的目的。It can be understood that by generating a data transmission request, it can be ensured that the data is transmitted to the first server according to specific configuration information, thereby achieving the purpose of data transmission.

在该步骤中,可以先根据第二配置信息,生成数据传输请求,进而将数据传输请求发送至第一服务端。In this step, a data transmission request may be generated according to the second configuration information, and then the data transmission request may be sent to the first server.

本实施例提供的数据传输处理方法,在获取到带有数据接口的服务端的第一配置信息之后,根据第一配置信息,确定出与第一服务端之间的数据传输质量,并根据数据传输质量,确定出数据传输的第二配置信息,进而生成与第二配置信息相同的数据传输请求,从而将数据传输请求发送至第一服务端。该方法针对不同的数据类型,对传输质量和传输等级选择适合的数据传输协议,不仅提高了数据的传输效率和性能,还确保了数据的准确性以及完整性,进而保障了数据在传输过程中的安全性,从而提高了微服务模式的执行效率。The data transmission processing method provided in this embodiment, after obtaining the first configuration information of the server with a data interface, determines the data transmission quality between the server and the first server according to the first configuration information, and determines the second configuration information of the data transmission according to the data transmission quality, and then generates a data transmission request identical to the second configuration information, thereby sending the data transmission request to the first server. This method selects a suitable data transmission protocol for transmission quality and transmission level for different data types, which not only improves the data transmission efficiency and performance, but also ensures the accuracy and integrity of the data, thereby ensuring the security of the data during transmission, thereby improving the execution efficiency of the microservice model.

图2为本申请实施例提供的数据传输处理方法的流程图二。本实施例的执行主体例如可以为第二服务端。如图2所示,本实施例在图1实施例的基础上,对数据传输处理方法进行详细说明,本实施例示出的数据传输处理方法,包括:FIG. 2 is a flowchart of a second data transmission processing method provided in an embodiment of the present application. The execution subject of this embodiment may be, for example, a second server. As shown in FIG. 2 , this embodiment describes the data transmission processing method in detail based on the embodiment of FIG. 1 . The data transmission processing method shown in this embodiment includes:

S201:获取第一服务端的第一配置信息。S201: Acquire first configuration information of a first server.

步骤S201与上述步骤S101类似,在此不再赘述。Step S201 is similar to the above step S101 and will not be described again.

S202:获取传输数据质量表。S202: Obtain a transmission data quality table.

其中,传输数据质量表用于指示传输质量与传输网络之间的第一关联关系。The transmission data quality table is used to indicate a first association relationship between the transmission quality and the transmission network.

传输数据质量表例如可以包括:多种不同类型的数据在使用网络进行网络传输时,每种数据的传输质量对应的主键信息、每种数据的传输质量对应的数据质量等级以及每种数据的传输质量对应的质量解释说明。其中,通过采用主键的方式来标识每种数据的质量信息,可以提高数据在进行网络传输时得到的数据质量的准确度。The transmission data quality table may include, for example, primary key information corresponding to the transmission quality of each type of data when multiple different types of data are transmitted over the network, data quality levels corresponding to the transmission quality of each type of data, and quality explanations corresponding to the transmission quality of each type of data. By using the primary key to identify the quality information of each type of data, the accuracy of the data quality obtained when the data is transmitted over the network can be improved.

表1为本实施例示出的传输数据质量表中的第一关联关系的示意表。Table 1 is a schematic table of the first association relationship in the transmission data quality table shown in this embodiment.

主键Primary Key 数据质量等级Data quality level 质量解释说明Quality Explanation 11 Q1Q1 高传输质量High transmission quality 22 Q2Q2 中传输质量Medium transmission quality 33 Q3Q3 低传输质量Low transmission quality

表1Table 1

如表1所示,当待传输数据A1通过网络进行传输时,得到的数据质量信息与传输数据质量表中主键为1的数据质量信息匹配度最高,那么可以得到待传输数据A1在完成网络传输时的数据质量等级为Q1,也即数据质量为高传输质量;当待传输数据B1通过网络进行传输时,得到的数据质量信息与传输数据质量表中主键为2的数据质量信息匹配度最高,那么可以得到待传输数据B1在完成网络传输时的数据质量等级为Q2,也即数据质量为中传输质量;当待传输数据C1通过网络进行传输时,得到的数据质量与传输数据质量表中主键为3的数据质量信息匹配度最高,那么可以得到待传输数据C1在完成网络传输时的数据质量等级为Q3,也即数据质量为低传输质量。As shown in Table 1, when the data A1 to be transmitted is transmitted through the network, the obtained data quality information matches the data quality information with the primary key 1 in the transmission data quality table most closely, so the data quality level of the data A1 to be transmitted when completing the network transmission is Q1, that is, the data quality is high transmission quality; when the data B1 to be transmitted is transmitted through the network, the obtained data quality information matches the data quality information with the primary key 2 in the transmission data quality table most closely, so the data quality level of the data B1 to be transmitted when completing the network transmission is Q2, that is, the data quality is medium transmission quality; when the data C1 to be transmitted is transmitted through the network, the obtained data quality matches the data quality information with the primary key 3 in the transmission data quality table most closely, so the data quality level of the data C1 to be transmitted when completing the network transmission is Q3, that is, the data quality is low transmission quality.

可以理解的,高传输质量指的是发送方发送的数据与接收方接收地数据100%一致,并且能够确定待传输数据在向第一服务端发送请求时,使用的协议为TCP协议,以及能够向第一服务端发送请求的总次数为3次;中传输质量指的是发送方发送的数据与接收方接收地数据100%一致,并且能够确定待传输数据在向第一服务端发送请求时,使用的协议为TCP协议,以及能够向第一服务端发送请求的总次数为2次或者向第一服务端发送请求时能够等待的时长为5S;低传输质量指的是发送方发送的数据与接收方接收的数据95%一致,并且能够确定待传输数据在向第一服务端发送请求时,使用的协议为UDP协议,以及向第一服务端发送请求时能够等待的时长为2S。It can be understood that high transmission quality means that the data sent by the sender is 100% consistent with the data received by the receiver, and it can be determined that the protocol used when the data to be transmitted sends a request to the first server is the TCP protocol, and the total number of requests that can be sent to the first server is 3 times; medium transmission quality means that the data sent by the sender is 100% consistent with the data received by the receiver, and it can be determined that the protocol used when the data to be transmitted sends a request to the first server is the TCP protocol, and the total number of requests that can be sent to the first server is 2 times or the waiting time when sending a request to the first server is 5S; low transmission quality means that the data sent by the sender is 95% consistent with the data received by the receiver, and it can be determined that the protocol used when the data to be transmitted sends a request to the first server is the UDP protocol, and the waiting time when sending a request to the first server is 2S.

该步骤获取传输数据质量表的目的是:为了能够快速地从传输数据质量表中匹配出与数据传输在进行网络传输时的传输质量,从而提高确定的效率。The purpose of obtaining the transmission data quality table in this step is to quickly match the transmission quality of the data transmission during network transmission from the transmission data quality table, thereby improving the determination efficiency.

由于传输数据质量表是根据数据传输的传输质量和传输网络共同确定的,因此,当数据传输的数据质量越高,那么传输网络越稳定,当数据传输的数据质量越低,那么传输网络越不稳定。Since the transmission data quality table is determined based on the transmission quality of the data transmission and the transmission network, the higher the data quality of the data transmission, the more stable the transmission network is, and the lower the data quality of the data transmission, the more unstable the transmission network is.

S203:根据所述第一配置信息和所述传输数据质量表,确定与所述第一服务端之间的所述数据传输质量。S203: Determine the data transmission quality between the first server and the first server according to the first configuration information and the transmission data quality table.

在该步骤中,例如可以在确定了第一配置信息之后,获取传输数据质量表,进而根据第一配置信息和传输数据质量表,共同确定出与第一服务端之间的数据传输质量。In this step, for example, after the first configuration information is determined, a transmission data quality table may be obtained, and then the data transmission quality with the first server may be determined together according to the first configuration information and the transmission data quality table.

由于第一配置信息为第一服务端中数据接口对应的数据信息,那么当第二服务端根据第一配置信息,确定了第二服务端的待传输数据后,可以将待传输数据以网络的方式进行传输,并在确定了第一服务端和第二服务端完成网络交互时,可以通过传输数据质量表确定第二服务端中传输数据的传输数据质量。Since the first configuration information is the data information corresponding to the data interface in the first server end, when the second server end determines the data to be transmitted of the second server end based on the first configuration information, the data to be transmitted can be transmitted in a network manner. When it is determined that the first server end and the second server end have completed the network interaction, the transmission data quality of the transmission data in the second server end can be determined through the transmission data quality table.

可选的,根据第一配置信息和传输数据质量表,确定出与第一服务端之间的数据传输质量的实现过程例如可以为:判断数据传输是否传输完成;若是,则根据传输数据质量表,确定与数据传输对应的数据质量等级;若否,则控制数据继续进行传输。Optionally, the implementation process of determining the data transmission quality between the first server and the first server based on the first configuration information and the transmission data quality table may be, for example: determining whether the data transmission is completed; if so, determining the data quality level corresponding to the data transmission based on the transmission data quality table; if not, controlling the data to continue transmission.

判断数据传输完成的目的是为了确定发送方的发送数据和接收方的接收数据是否可靠稳定性传输,以避免数据不可用,而判断数据传输的质量是否满足多种条件的传输质量的目的是否为了提高数据在进行网络传输时,数据传输对应的质量的准确度。The purpose of judging whether data transmission is completed is to determine whether the sender's sent data and the receiver's received data are transmitted reliably and stably to avoid data unavailability, and the purpose of judging whether the quality of data transmission meets multiple conditions is to improve the accuracy of the quality corresponding to data transmission when data is transmitted over the network.

当确定了数据完成传输时,则可以通过数据传输质量表,确定出待传输数据的数据传输质量,以便确定出与数据传输质量相匹配的第二配置信息。When it is determined that the data transmission is completed, the data transmission quality of the data to be transmitted can be determined through the data transmission quality table, so as to determine the second configuration information matching the data transmission quality.

S204:根据所述数据传输质量,确定数据传输的第二配置信息。S204: Determine second configuration information for data transmission according to the data transmission quality.

步骤S204与上述步骤S102类似,在此不再赘述。Step S204 is similar to the above step S102 and will not be described again.

S205:根据所述数据传输质量,确定所述数据传输的总传输失败次数。S205: Determine a total number of transmission failures of the data transmission according to the data transmission quality.

其中,总失败传输次数指的是第二服务端向第一服务端发送数据请求,且第二服务端未能成功发送数据请求时,第二服务端能够重新发送的请求次数。总传输失败次数例如可以为2次、1次,具体是实际情况确定。The total number of failed transmissions refers to the number of times the second server can resend a request when the second server fails to successfully send a data request when the second server sends a data request to the first server. The total number of failed transmissions can be, for example, 2 or 1, depending on the actual situation.

由于第二服务端向第一服务端发送数据请求时,第二服务端在网络不稳定的情况下,第二服务端会出现首次发送数据请求失败的情况,那么此时需要使第二服务端再次发送数据请求,以实现数据的交互功能,然而,为了提高服务端的执行效率,需要控制第二服务端的发送请求次数,也即需要确定数据传输的总传输失败次数。When the second server sends a data request to the first server, the second server may fail to send the data request for the first time when the network is unstable. In this case, the second server needs to send the data request again to realize the data interaction function. However, in order to improve the execution efficiency of the server, it is necessary to control the number of sending requests of the second server, that is, it is necessary to determine the total number of transmission failures of data transmission.

步骤S205的执行时机例如可以和步骤S204的执行时机相同,也可以在步骤S204的执行时机之前,还可以在步骤S204的执行时机之后。本申请对此不做限制。The execution timing of step S205 may be the same as the execution timing of step S204, or may be before the execution timing of step S204, or may be after the execution timing of step S204. This application does not impose any limitation on this.

具体的,所述根据所述数据传输质量,确定与所述数据传输对应的总传输失败次数的具体实现过程为:获取请求失败重试次数对照表;根据所述数据传输质量和所述请求失败重试次数对照表,确定与所述数据传输对应的总传输失败次数。Specifically, the specific implementation process of determining the total number of transmission failures corresponding to the data transmission based on the data transmission quality is: obtaining a request failure retry number comparison table; determining the total number of transmission failures corresponding to the data transmission based on the data transmission quality and the request failure retry number comparison table.

请求失败重试次数对照表用于指示传输质量等级与请求失败重试次数之间的第二关联关系。The request failure retry times comparison table is used to indicate the second association relationship between the transmission quality level and the request failure retry times.

请求失败重试次数对照表例如可以包括:多种不同类型的数据在使用网络进行网络传输时,每种数据的传输质量对应的主键信息、每种数据的传输质量对应的数据质量等级以及每种数据传输对应的请求失败重试次数。其中,通过采用主键的方式来标识每种数据的质量信息,可以提高数据在进行网络传输时得到的数据质量的准确度。The request failure retry times comparison table may include, for example, the primary key information corresponding to the transmission quality of each type of data, the data quality level corresponding to the transmission quality of each type of data, and the request failure retry times corresponding to each type of data transmission when multiple different types of data are transmitted over the network. Among them, by using the primary key method to identify the quality information of each type of data, the accuracy of the data quality obtained when the data is transmitted over the network can be improved.

表2为本实施例示出的请求失败重试次数对照表中第二关联关系的示意表。Table 2 is a schematic table of the second association relationship in the request failure retry times comparison table shown in this embodiment.

主键Primary Key 数据质量等级Data quality level 请求失败重试次数Number of retries after a failed request 11 Q1Q1 22 22 Q2Q2 11 33 Q3Q3 00

表2Table 2

如表1所示,当待传输数据A1通过网络进行传输时,得到的数据质量信息与请求失败重试次数对照表中主键为1的数据质量信息的匹配度最高,那么可以得到待传输数据A1在完成网络传输时的数据质量等级为Q1,以及通过Q1可以得到待传输数据A1的请求失败重试次数为2次;当待传输数据B1通过网络进行传输时,得到的数据质量信息与请求失败重试次数对照表中主键为2的数据质量信息的匹配度最高,那么可以得到待传输数据B1在完成网络传输时的数据质量等级为Q2,以及通过Q2可以得到待传输数据B1的请求失败重试次数为2次;当待传输数据C1通过网络进行传输时,得到的数据质量信息与请求失败重试次数对照表中主键为3的数据质量信息的匹配度最高,那么可以得到待传输数据C1在完成网络传输时的数据质量等级为Q3,以及通过Q3可以得到待传输数据C1的请求失败重试次数为0次。As shown in Table 1, when the data A1 to be transmitted is transmitted through the network, the obtained data quality information has the highest matching degree with the data quality information with the primary key 1 in the request failure retry number comparison table, so it can be obtained that the data quality level of the data A1 to be transmitted when the network transmission is completed is Q1, and through Q1, the request failure retry number of the data A1 to be transmitted can be obtained as 2 times; when the data B1 to be transmitted is transmitted through the network, the obtained data quality information has the highest matching degree with the data quality information with the primary key 2 in the request failure retry number comparison table, so it can be obtained that the data quality level of the data B1 to be transmitted when the network transmission is completed is Q2, and through Q2, the request failure retry number of the data B1 to be transmitted can be obtained as 2 times; when the data C1 to be transmitted is transmitted through the network, the obtained data quality information has the highest matching degree with the data quality information with the primary key 3 in the request failure retry number comparison table, so it can be obtained that the data quality level of the data C1 to be transmitted when the network transmission is completed is Q3, and through Q3, the request failure retry number of the data C1 to be transmitted can be obtained as 0 times.

可以理解的,请求失败重试次数与数量质量等级存在对应关系,可以在确定了数据传输的数据质量等级后,根据该数据质量等级和请求失败重试次数对照表,共同确定出请求失败重试次数,以便更好地确定数据传输在首次失败时,能够重新发送的请求次数。It can be understood that there is a corresponding relationship between the number of request failure retries and the quantity quality level. After determining the data quality level of data transmission, the number of request failure retries can be determined based on the data quality level and the comparison table of the number of request failure retries, so as to better determine the number of requests that can be resent when data transmission fails for the first time.

该步骤获取请求失败重试次数对照表的目的是:为了能够快速地从请求失败重试次数对照表中匹配出与第二服务端能够向第一服务端发送请求的次数,从而提高确定的效率。The purpose of obtaining the request failure retry count comparison table in this step is to quickly match the number of times the second server can send requests to the first server from the request failure retry count comparison table, thereby improving the determination efficiency.

由于请求失败重试次数对照表是根据数据传输的传输质量等级和请求失败重试次数共同确定的,因此,当数据传输的数据质量等级越高时,请求失败重试次数的数值越大,当数据传输的数据质量等级越低时,请求失败重试次数的数值越小。Since the request failure retry count comparison table is determined based on the transmission quality level of data transmission and the request failure retry count, the higher the data quality level of data transmission, the larger the value of the request failure retry count, and the lower the data quality level of data transmission, the smaller the value of the request failure retry count.

S206:根据所述第二配置信息生成数据传输请求。S206: Generate a data transmission request according to the second configuration information.

步骤S206的解释说明与上述步骤S103的部分内容相似,在此不再赘述。The explanation of step S206 is similar to part of the content of the above step S103, and will not be repeated here.

S207:将所述数据传输请求发送至所述第一服务端。S207: Send the data transmission request to the first server.

步骤S207的解释说明与上述步骤S103的部分内容相似,在此不再赘述。The explanation of step S207 is similar to part of the content of the above step S103, and will not be repeated here.

S208:判断是否接收到所述第一服务端返回的数据传输响应,若是,则执行步骤S209,若否,则执行步骤S212。S208: Determine whether a data transmission response returned by the first server is received, if so, execute step S209, if not, execute step S212.

其中,数据传输响应指的是第一服务端在接收到第二服务端发送的数据传输请求后,经过一系列处理,最终向第二服务端返回与数据传输请求相关的数据信息。The data transmission response refers to the first server receiving the data transmission request sent by the second server, undergoing a series of processing, and finally returning the data information related to the data transmission request to the second server.

判断是否接收到第一服务端返回的数据传输响应的目的是为了确定第一服务端与第二服务端是否建立了连接关系。The purpose of judging whether the data transmission response returned by the first server is received is to determine whether a connection relationship is established between the first server and the second server.

若接收到第一服务端返回的数据传输响应,则表明第一服务端与第二服务端建立了连接关系,此时,可以确定数据传输请求处于请求结束状态。If a data transmission response returned by the first server is received, it indicates that a connection relationship has been established between the first server and the second server. At this time, it can be determined that the data transmission request is in a request end state.

若未接受到第一服务端返回的数据传输响应,则表明第一服务端未与第二服务端建立连接关系,此时,需要获取数据传输的当前传输失败次数,并启动重试次数计数器。If the data transmission response returned by the first server is not received, it indicates that the first server has not established a connection relationship with the second server. At this time, it is necessary to obtain the current number of transmission failures of the data transmission and start a retry counter.

可以理解的,如果第一服务端与第二服务端建立了连接关系,那么就可以确定第一服务端和第二服务端之间建立一种通信通道,而通信渠道能使第二服务端能够向第一服务端发送数据请求并获取处理结果。如果没有建立连接关系,那么第二服务端就无法与第一服务端进行有效的通信,进而第二服务端无法获取处理的结果。It is understandable that if the first server establishes a connection relationship with the second server, then it can be determined that a communication channel is established between the first server and the second server, and the communication channel enables the second server to send a data request to the first server and obtain the processing result. If the connection relationship is not established, the second server cannot effectively communicate with the first server, and then the second server cannot obtain the processing result.

S209:获取所述数据传输的当前传输失败次数,并启动重试次数计数器。S209: Obtain the current number of transmission failures of the data transmission, and start a retry count counter.

其中,当前传输失次数用于指示第二服务端向第一服务端发送数据传输请求,数据传输请求失败时对应的次数。The current number of transmission failures is used to indicate the number of times when the second server sends a data transmission request to the first server and the data transmission request fails.

重试次数计数器用于记录第二服务端向第一服务端发送数据传输请求的次数。The retry count counter is used to record the number of times the second server sends a data transmission request to the first server.

通过获取数据请求失败时的传输失败次数,则可以确定数据传输请求是否能够正常发送和处理。可以理解的,当第二服务端向第一服务端发送数据传输请求时,可能会因为网络问题或者请求超时问题,使得第一服务端和第二服务端之间无法建立正常的通信通道,也即使得第一服务端无法响应数据传输请求,因此,为了确定数据传输请求是否能够正常发送和处理,需要获取数据请求失败时的传输失败次数。By obtaining the number of transmission failures when the data request fails, it can be determined whether the data transmission request can be sent and processed normally. It is understandable that when the second server sends a data transmission request to the first server, it may be impossible to establish a normal communication channel between the first server and the second server due to network problems or request timeout problems, which means that the first server cannot respond to the data transmission request. Therefore, in order to determine whether the data transmission request can be sent and processed normally, it is necessary to obtain the number of transmission failures when the data request fails.

当确定了第二服务端未接受到第一服务端返回的数据传输响应时,需要启动重试次数计数器,以便查询第二服务端是否能够向第一服务端重新发送数据传输请求。When it is determined that the second server has not received the data transmission response returned by the first server, it is necessary to start a retry counter to query whether the second server can resend the data transmission request to the first server.

S210:根据所述当前传输失败次数和所述重试次数计数器,重新确定新的当前传输失败次数。S210: Re-determine a new current number of transmission failures according to the current number of transmission failures and the retry count counter.

由于重试次数计数器的作用是记录第二服务端向第一服务端发送数据传输请求的次数,因此当确定了当前的传输请求失败时,需要通过重试次数计数器,将当前的传输请求失败的次数存储到重试次数计数器内,以便能够及时准确的更新重新次数计数器内的数值信息。Since the function of the retry counter is to record the number of times the second server sends data transmission requests to the first server, when it is determined that the current transmission request has failed, it is necessary to use the retry counter to store the number of times the current transmission request has failed in the retry counter so that the numerical information in the retry counter can be updated in a timely and accurate manner.

在该步骤中,例如可以在确定了当前数据传输请求失败时对应的次数后,将当前传输失败的次数重新记录到重试次数计数器内,以便第二服务端能够及时准确的得到新的当前传输失败次数。In this step, for example, after determining the number of times corresponding to the current data transmission request failure, the current number of transmission failures can be re-recorded in the retry count counter so that the second server can obtain the new current number of transmission failures in a timely and accurate manner.

例如,若重试次数计数器中记录了数据A1的数据请求失败次数为0次,数据A2的数据请求失败次数为2次,那么当第二服务端将数据A1重新发送至第一服务端时,第二服务端仍未收到第一服务端的数据传输响应,因此,为了能够得到数据A1的新的数据请求失败次数,需要将重试次数计数器内A1的数据请求失败次数进行更新。For example, if the retry counter records that the number of data request failures for data A1 is 0 and the number of data request failures for data A2 is 2, then when the second server resends the data A1 to the first server, the second server still has not received a data transmission response from the first server. Therefore, in order to obtain a new number of data request failures for data A1, the number of data request failures for A1 in the retry counter needs to be updated.

S211:判断所述新的当前传输失败次数是否满足所述总传输失败次数,若是,则执行步骤S212,若否,则执行步骤S207。S211: Determine whether the new current number of transmission failures meets the total number of transmission failures. If so, execute step S212; if not, execute step S207.

判断新的当前传输失败次数是否满足总传输失败次数的目的是为了确定第二服务端向第一服务端发送数据请求失败后,能否继续向第一服务端发送数据传输请求。The purpose of judging whether the new current number of transmission failures satisfies the total number of transmission failures is to determine whether the second server can continue to send data transmission requests to the first server after failing to send a data request to the first server.

若新的当前传输失败次数满足总传输失败次数,则表明第二服务端向第一服务端发送数据请求失败后,不能够继续向第一服务端发送数据传输请求,也即确定了当前的数据传输请求处于请求结束状态,因此,不需要将数据传输请求发送至第一服务端。If the new current number of transmission failures meets the total number of transmission failures, it means that after the second server fails to send a data request to the first server, it cannot continue to send a data transmission request to the first server, which means that the current data transmission request is determined to be in the request end state. Therefore, there is no need to send the data transmission request to the first server.

若新的当前传输失败次数不满足总传输失败次数,则表明第二服务端向第一服务端发送数据请求失败后,能够继续向第一服务端发送数据传输请求,也即确定了当前的传输传输请求处于请求许可状态,因此,需要将数据传输请求重新发送至第一服务端。If the new current number of transmission failures does not meet the total number of transmission failures, it means that after the second server fails to send a data request to the first server, it can continue to send a data transmission request to the first server, which means that the current transmission request is in the request permission state. Therefore, the data transmission request needs to be resent to the first server.

S212:确定所述数据传输请求处于请求结束状态。S212: Determine that the data transmission request is in a request end state.

可以理解的,数据传输请求的状态可以有数据许可状态以及数据结束状态。数据许可状态指的是第二服务端向第一服务端发送数据请求失败后,第二服务端能够继续向第一服务端发送数据传输请求,而数据结束状态指的是第二服务端向第一服务端发送数据传输请求后,得到了第一服务端的数据传输响应,或者第二服务端向第一服务端发送数据请求后,未得到第一服务端的数据响应,且不能够继续向第一服务端发送数据传输请求。It is understandable that the status of a data transmission request may include a data permission status and a data end status. The data permission status means that after the second server fails to send a data request to the first server, the second server can continue to send a data transmission request to the first server, and the data end status means that after the second server sends a data transmission request to the first server, it receives a data transmission response from the first server, or after the second server sends a data request to the first server, it does not receive a data response from the first server and cannot continue to send a data transmission request to the first server.

本实施例提供的数据传输处理方法,在确定了数据传输的第二配置信息后,将生成与该第二配置信息相匹配的数据传输请求,进而将该数据传输请求发送第一服务端,并在确定了第二服务端未接收到第一服务端返回的数据传输响应时,获取数据传输的当前失败次数,进而根据该当前失败次数更新重试次数计数器的数值,从而确定是否可以继续向第一服务端发送数据传输请求。该方法实现了在微服务模式下可以根据配置规则自动选择适当的请求失败重试次数,并提高了数据传输效率,进而保障了数据在传输过程中的安全性,从而有助于提高微服务模式的执行效率。The data transmission processing method provided in this embodiment, after determining the second configuration information of data transmission, will generate a data transmission request matching the second configuration information, and then send the data transmission request to the first server, and when it is determined that the second server has not received the data transmission response returned by the first server, obtain the current number of failures of data transmission, and then update the value of the retry counter according to the current number of failures, so as to determine whether the data transmission request can continue to be sent to the first server. This method realizes that the appropriate number of request failure retries can be automatically selected according to the configuration rules in the microservice mode, and improves the data transmission efficiency, thereby ensuring the security of data during transmission, which helps to improve the execution efficiency of the microservice mode.

图3为本申请实施例提供的数据传输处理方法的流程图三。如图3所示,本实施例是在图2实施例的基础上,对根据所述数据传输质量,确定数据传输的第二配置信息进行详细说明,本实施例提供的数据传输处理方法,包括:FIG3 is a flowchart of a data transmission processing method provided in an embodiment of the present application. As shown in FIG3, this embodiment is based on the embodiment of FIG2, and describes in detail the second configuration information for determining data transmission according to the data transmission quality. The data transmission processing method provided in this embodiment includes:

S301:获取数据类型配置表、传输协议对照表、数据传输要求配置表以及加密压缩算法对照表。S301: Obtain a data type configuration table, a transmission protocol comparison table, a data transmission requirement configuration table, and an encryption compression algorithm comparison table.

其中,数据类型配置表用于指示待传输数据与数据类型之间的第三关联关系,传输协议对照表用于指示传输质量与传输协议之间的第四关联关系,数据传输要求配置表用于指示数据类型和传输质量与传输等级之间的第五关联关系,加密压缩算法对照表用于指示传输等级与加密压缩算法之间的第六关联关系。Among them, the data type configuration table is used to indicate the third association relationship between the data to be transmitted and the data type, the transmission protocol comparison table is used to indicate the fourth association relationship between the transmission quality and the transmission protocol, the data transmission requirement configuration table is used to indicate the fifth association relationship between the data type and the transmission quality and the transmission level, and the encryption compression algorithm comparison table is used to indicate the sixth association relationship between the transmission level and the encryption compression algorithm.

由于待传输数据在传输时的数据质量、类型以及等级各不相同,因此,为了确保数据在传输过程中的完整性和安全性,需要获取不同类型的数据表。Since the data quality, type and level of the data to be transmitted are different during transmission, different types of data tables need to be obtained in order to ensure the integrity and security of the data during transmission.

S302:根据所述数据类型配置表,确定所述数据传输的目标数据类型。S302: Determine the target data type of the data transmission according to the data type configuration table.

其中,数据类型配置表例如可以包括:多种不同类型的数据在使用网络进行网络传输时,每种数据的传输质量对应的主键信息、每种数据对应的数据类型以及每种数据对应的数据类型说明。The data type configuration table may include, for example: when multiple different types of data are transmitted over a network, primary key information corresponding to the transmission quality of each type of data, a data type corresponding to each type of data, and a data type description corresponding to each type of data.

其中,通过采用主键的方式来标识每种数据的数据类型,可以提高数据在进行网络传输时得到的数据类型的准确度。Among them, by using the primary key method to identify the data type of each data, the accuracy of the data type obtained when the data is transmitted over the network can be improved.

表3为本实施例示出的数据类型配置表中的第三关联关系的示意表。Table 3 is a schematic table of the third association relationship in the data type configuration table shown in this embodiment.

主键Primary Key 数据类型Data Types 数据类型说明Data Type Description 11 TextDataTextData 文本数据Text Data 22 DBDataDBData 数据库数据Database data 33 MailDataMailData 邮件数据Mail data 44 FileDataFileData 文件数据File data 55 AudioDataAudioData 音频数据Audio Data 66 VideoDataVideoData 视频数据Video Data 77 GameDataGameData 游戏数据Game Data 88 IOTDataIOTData 物联数据IoT Data ...... ...... ......

表3Table 3

如表3所示,例如当确定了待传输数据A1对应的主键信息为1时,那么可以确定待传输数据的数据类型为TextData,也即可以确定待传输数据为文本数据;当确定了待传输数据B1的主键信息为2时,那么可以确定待传输数据的数据类型为DBdata,也即可以确定待传输数据为数据库数据;当确定了待传输数据C1的主键信息为3时,那么可以确定待传输数据的数据类型为MailData,也即可以确定待传输数据为邮件数据。As shown in Table 3, for example, when it is determined that the primary key information corresponding to the data A1 to be transmitted is 1, then the data type of the data to be transmitted can be determined to be TextData, that is, the data to be transmitted can be determined to be text data; when it is determined that the primary key information of the data B1 to be transmitted is 2, then the data type of the data to be transmitted can be determined to be DBdata, that is, the data to be transmitted can be determined to be database data; when it is determined that the primary key information of the data C1 to be transmitted is 3, then the data type of the data to be transmitted can be determined to be MailData, that is, the data to be transmitted can be determined to be email data.

由于不同的数据对应不同的数据类型,因此当数据需要进行传输时,需要获取该数据所对应的数据类型,以便提高数据处理的准确度。Since different data correspond to different data types, when data needs to be transmitted, it is necessary to obtain the data type corresponding to the data in order to improve the accuracy of data processing.

该步骤在获取到数据类型配置表后,可以根据数据类型配置表,确定出与数据对应的目标数据类型。After obtaining the data type configuration table, this step can determine the target data type corresponding to the data according to the data type configuration table.

S303:根据所述数据传输质量和所述传输协议对照表,确定所述数据传输的目标使用传输协议。S303: Determine a target use transmission protocol for the data transmission according to the data transmission quality and the transmission protocol comparison table.

其中,传输协议对照表例如可以包括:多种不同类型的数据在使用网络进行网络传输时,每种数据的传输质量对应的主键信息、每种数据的传输质量对应的数据质量等级以及每种数据对应的使用传输协议。其中,通过采用主键的方式来标识每种数据的质量信息,可以提高数据在进行网络传输时得到的数据质量的准确度。The transmission protocol comparison table may include, for example, the primary key information corresponding to the transmission quality of each type of data, the data quality level corresponding to the transmission quality of each type of data, and the transmission protocol used by each type of data when multiple different types of data are transmitted over the network. By using the primary key to identify the quality information of each type of data, the accuracy of the data quality obtained when the data is transmitted over the network can be improved.

表4为本实施例示出的传输协议对照表中的第四关联关系的示意表。Table 4 is a schematic table of the fourth association relationship in the transmission protocol comparison table shown in this embodiment.

主键Primary Key 数据质量等级Data quality level 使用传输协议Use transport protocol 11 Q1Q1 TCPTCP 22 Q2Q2 QUICQUIC 33 Q3Q3 UDPUDP ...... ...... ......

表4Table 4

如表4所示,例如当确定了待传输数据A1对应的主键信息为1时,并在确定了待传输数据A1在完成网络传输时的数据质量等级为Q1时,则可以得到待传输数据A1的使用传输协议为TCP;当确定了待传输数据B1对应的主键信息为2时,并在确定了待传输数据B1在完成网络传输时的数据质量等级为Q2时,则可以得到待传输数据B1的使用传输协议为QUIC;当确定了待传输数据C1对应的主键信息为3时,并在确定了待传输数据C1在完成网络传输时的数据质量等级为Q3时,则可以得到待传输数据C1的使用传输协议为UDP。As shown in Table 4, for example, when the primary key information corresponding to the data A1 to be transmitted is determined to be 1, and when the data quality level of the data A1 to be transmitted when the network transmission is completed is determined to be Q1, then it can be obtained that the transmission protocol used by the data A1 to be transmitted is TCP; when the primary key information corresponding to the data B1 to be transmitted is determined to be 2, and when the data quality level of the data B1 to be transmitted when the network transmission is completed is determined to be Q2, then it can be obtained that the transmission protocol used by the data B1 to be transmitted is QUIC; when the primary key information corresponding to the data C1 to be transmitted is determined to be 3, and when the data quality level of the data C1 to be transmitted when the network transmission is completed is Q3, then it can be obtained that the transmission protocol used by the data C1 to be transmitted is UDP.

具体的,若所述数据传输质量包括:高传输质量、中传输质量以及低传输质量,所护根据所述数据传输质量和所述传输协议对照表,确定所述数据传输的目标使用传输协议的具体实现过程为:若所述数据传输质量为高传输质量,则根据所述传输协议对照表,将第一使用传输协议作为所述目标使用传输协议;若所述数据传输质量为中传输质量,则根据所述传输协议对照表,将第二使用传输协议作为所述目标使用传输协议;若所述数据传输质量为低传输质量,则根据所述传输协议对照表,将第三使用传输协议作为所述目标使用传输协议。Specifically, if the data transmission quality includes: high transmission quality, medium transmission quality and low transmission quality, the specific implementation process of determining the target transmission protocol for the data transmission based on the data transmission quality and the transmission protocol comparison table is: if the data transmission quality is high transmission quality, then according to the transmission protocol comparison table, the first transmission protocol is used as the target transmission protocol; if the data transmission quality is medium transmission quality, then according to the transmission protocol comparison table, the second transmission protocol is used as the target transmission protocol; if the data transmission quality is low transmission quality, then according to the transmission protocol comparison table, the third transmission protocol is used as the target transmission protocol.

其中,第一使用传输协议例如可以为TCP,第二使用传输协议例如可以为QUIC,第三使用传输协议例如可以为UDP。Among them, the first transmission protocol used may be, for example, TCP, the second transmission protocol used may be, for example, QUIC, and the third transmission protocol used may be, for example, UDP.

在该步骤中,可以在确定了数据传输的数据质量等级后,根据传输协议对照表和数据质量等级,共同确定出与数据传输对应的目标使用传输协议。In this step, after the data quality level of the data transmission is determined, the target use transmission protocol corresponding to the data transmission can be determined according to the transmission protocol comparison table and the data quality level.

S304:根据所述数据传输质量、所述目标数据类型、所述数据传输要求配置表和所述加密压缩算法对照表,确定所述数据传输的目标使用加密压缩算法。S304: Determine the encryption compression algorithm used for the data transmission target according to the data transmission quality, the target data type, the data transmission requirement configuration table and the encryption compression algorithm comparison table.

通过考虑数据传输质量、目标数据类型、数据传输要求配置表以及加密压缩算法对照表,可以确定最合适的加密压缩算法,提高准确度,确保数据传输的安全性、准确性和完整性,从而提高微服务模式的执行效率。By considering the data transmission quality, target data type, data transmission requirement configuration table, and encryption compression algorithm comparison table, the most appropriate encryption compression algorithm can be determined to improve accuracy, ensure the security, accuracy, and integrity of data transmission, and thus improve the execution efficiency of the microservice model.

由于不同类型的数据可能具有不同的特征和需求,因此需要使用不同的加密压缩算法来确保数据准确性和完整性。而根据目标数据类型的特点,选择合适的加密压缩算法可以提高准确度和效率。Since different types of data may have different characteristics and requirements, different encryption and compression algorithms are needed to ensure data accuracy and integrity. According to the characteristics of the target data type, choosing the appropriate encryption and compression algorithm can improve accuracy and efficiency.

具体的,所述根据所述数据传输质量、所述目标数据类型、所述数据传输要求配置表和所述加密压缩算法对照表,确定所述数据传输的目标使用加密压缩算法的具体实现过程为:根据所述数据传输质量、所述目标数据类型以及所述数据传输要求配置表,确定所述数据传输的目标数据传输等级;根据所述目标数据传输等级和所述加密压缩压缩算法对照表,确定所述数据传输的目标使用加密压缩算法。Specifically, the specific implementation process of determining the target encryption compression algorithm to be used for the data transmission based on the data transmission quality, the target data type, the data transmission requirement configuration table and the encryption compression algorithm comparison table is: determining the target data transmission level of the data transmission based on the data transmission quality, the target data type and the data transmission requirement configuration table; determining the target encryption compression algorithm to be used for the data transmission based on the target data transmission level and the encryption compression algorithm comparison table.

其中,数据传输要求配置表例如可以包括:多种不同类型的数据在使用网络进行网络传输时,每种数据的传输质量对应的主键信息、每种数据对应的数据类型、每种数据的传输质量对应的数据质量等级以及每种数据对应的传输等级。Among them, the data transmission requirement configuration table may include, for example: when multiple different types of data are transmitted over the network, the primary key information corresponding to the transmission quality of each type of data, the data type corresponding to each type of data, the data quality level corresponding to the transmission quality of each type of data, and the transmission level corresponding to each type of data.

表5为本实施例示出的数据传输要求配置表中的第五关联关系的示意表。Table 5 is a schematic table of the fifth association relationship in the data transmission requirement configuration table shown in this embodiment.

主键Primary Key 数据类型Data Types 数据质量等级Data quality level 数据传输等级Data transfer level 11 FileDataFileData Q1Q1 S1S1 22 TextDataTextData Q1Q1 S2S2 33 AudioDataAudioData Q2Q2 S3S3 44 MessageDataMessageData Q3Q3 S4S4 ...... ...... ......

表5Table 5

如表5所示,例如当确定了待传输数据A1对应的主键信息为1时,并在确定了待传输数据A1在完成网络传输时的数据质量等级为Q1与确定待传输数据的数据类型为TextData时,则可以得到待传输数据A1的数据传输等级为S1;当确定了待传输数据B1对应的主键信息为2时,并在确定了待传输数据B1在完成网络传输时的数据质量等级为Q2与确定待传输数据的数据类型为AudioData时,则可以得到待传输数据B1的数据传输等级为S3。As shown in Table 5, for example, when the primary key information corresponding to the data A1 to be transmitted is determined to be 1, and when the data quality level of the data A1 to be transmitted when completing the network transmission is determined to be Q1 and the data type of the data to be transmitted is determined to be TextData, then the data transmission level of the data A1 to be transmitted can be obtained as S1; when the primary key information corresponding to the data B1 to be transmitted is determined to be 2, and when the data quality level of the data B1 to be transmitted when completing the network transmission is determined to be Q2 and the data type of the data to be transmitted is determined to be AudioData, then the data transmission level of the data B1 to be transmitted can be obtained as S3.

加密压缩算法对照表例如可以包括:多种不同类型的数据在使用网络进行网络传输时,每种数据的传输质量对应的主键信息、每种数据对应的传输等级以及每种数据对应的加密压缩算法。The encryption compression algorithm comparison table may include, for example, primary key information corresponding to the transmission quality of each type of data, the transmission level corresponding to each type of data, and the encryption compression algorithm corresponding to each type of data when multiple different types of data are transmitted over the network.

表6为本实施例示出的加密压缩算法对照表中的第六关联关系的示意表。Table 6 is a schematic table of the sixth association relationship in the encryption compression algorithm comparison table shown in this embodiment.

主键Primary Key 数据传输等级Data transfer level 使用加密压缩算法Use encryption compression algorithm 11 S1S1 AES算法/Huffman编码AES algorithm/Huffman coding 22 S2S2 AES算法AES Algorithm 33 S3S3 Huffman编码Huffman Coding 44 S4S4 //

表6Table 6

如表6所示,如果确定了当前的待传输数据A1对应的主键信息为1时,并在确定了当前待传输数据的数据传输等级为S1时,那么可以确定当前待传输数据A1能够使用的加密压缩算法为AES/Huffman编码。As shown in Table 6, if the primary key information corresponding to the current data to be transmitted A1 is determined to be 1, and the data transmission level of the current data to be transmitted is determined to be S1, then it can be determined that the encryption compression algorithm that can be used for the current data to be transmitted A1 is AES/Huffman encoding.

可以理解的,由于数据的传输等级与加密压缩算法存在对应关系,当确定了数据的传输等级后,就能够为该数据匹配对应的加密压缩算法进行数据处理。It can be understood that, since there is a corresponding relationship between the data transmission level and the encryption compression algorithm, once the data transmission level is determined, the corresponding encryption compression algorithm can be matched to the data for data processing.

S305:根据所述目标使用传输协议和所述目标使用加密压缩算法,确定所述数据传输的所述第二配置信息。S305: Determine the second configuration information of the data transmission according to the target transmission protocol and the target encryption compression algorithm.

在该步骤中,可以在确定了目标传输协议和目标使用加密压缩算法后,根据目标传输协议和目标使用加密压缩算法,共同确定出与待传输数据相关联的第二配置信息,以便确定的配置信息与数据传输时的数据匹配度最高。In this step, after determining the target transmission protocol and the target encryption compression algorithm, the second configuration information associated with the data to be transmitted can be jointly determined based on the target transmission protocol and the target encryption compression algorithm, so that the determined configuration information has the highest matching degree with the data during data transmission.

例如,若当前的待传输数据的数据传输质量为Q1以及FileData时,则可以确定与Q1和FileData匹配度最高的目标使用传输协议为TCP以及目标使用加密压缩算法为AES算法/Huffman编码,进而可以将TCP和AES算法/Huffman编码作为第二配置信息的内容信息。For example, if the current data transmission quality of the data to be transmitted is Q1 and FileData, it can be determined that the target transmission protocol with the highest match with Q1 and FileData is TCP and the target encryption compression algorithm is AES algorithm/Huffman encoding, and then TCP and AES algorithm/Huffman encoding can be used as content information of the second configuration information.

可选的,表7为本实施例示出的数据传输质量要求配置表。Optionally, Table 7 is a data transmission quality requirement configuration table shown in this embodiment.

表7Table 7

如表7所示,首先将数据类型与数据质量等级进行关联,然后将数据质量等级、请求失败重试次数以及使用传输协议进行关联,从而构成数据传输质量要求配置表。As shown in Table 7, the data type is first associated with the data quality level, and then the data quality level, the number of request failure retries, and the used transmission protocol are associated to form a data transmission quality requirement configuration table.

由表7可以获知,本实例提供的多种类型的数据表既可以分开单独使用,也可以将多种类型的数据表构成一个整体,灵活使用。本申请对多种类型的数据表的使用方式不限限制,具体视实际情况确定。It can be seen from Table 7 that the various types of data tables provided in this example can be used separately or as a whole for flexible use. This application has no restrictions on the use of various types of data tables, which is determined according to actual conditions.

本实施例提供的数据传输处理方法,通过获取多种类型的数据表,并根据多种类型的数据表确定出与待传输数据匹配最高的数据类型、数据质量等级、数据传输等级、传输协议以及加密压缩算法算法,进而根据加密压缩算法以及传输协议,确定出与待传输数据匹配度最高的第二配置信息。该方法实现了在微服务模式下可以根据配置规则自动选择适当的数据传输协议,进而确保了数据的准确性以及完整性,从而提高了微服务模式的执行效率。The data transmission processing method provided in this embodiment obtains multiple types of data tables, and determines the data type, data quality level, data transmission level, transmission protocol and encryption compression algorithm that best matches the data to be transmitted based on the multiple types of data tables, and then determines the second configuration information that best matches the data to be transmitted based on the encryption compression algorithm and the transmission protocol. This method enables the automatic selection of an appropriate data transmission protocol based on configuration rules in the microservice mode, thereby ensuring the accuracy and integrity of the data, thereby improving the execution efficiency of the microservice mode.

图4为本申请提供的数据传输处理装置的结构示意图。如图4所示,本申请提供一种数据传输处理装置,该数据传输处理装置400包括:FIG4 is a schematic diagram of the structure of a data transmission processing device provided by the present application. As shown in FIG4 , the present application provides a data transmission processing device, and the data transmission processing device 400 includes:

获取模块401,用于获取第一服务端的第一配置信息;确定模块402,用于根据所述第一配置信息,确定与所述第一服务端之间的数据传输质量;确定模块402,还用于根据所述数据传输质量,确定数据传输的第二配置信息,所述第二配置信息用于指示所述第一服务端和第二服务端之间的数据传输规则;处理模块403,用于根据所述第二配置信息生成数据传输请求;The acquisition module 401 is used to acquire first configuration information of the first server; the determination module 402 is used to determine the data transmission quality between the first server and the first server according to the first configuration information; the determination module 402 is also used to determine second configuration information of data transmission according to the data transmission quality, wherein the second configuration information is used to indicate the data transmission rule between the first server and the second server; the processing module 403 is used to generate a data transmission request according to the second configuration information;

发送模块404,用于将所述数据传输请求发送至所述第一服务端。The sending module 404 is used to send the data transmission request to the first server.

可选的,所述获取模块401,还用于获取传输数据质量表,所述传输数据质量表用于指示传输质量与传输网络之间的第一关联关系;Optionally, the acquisition module 401 is further used to acquire a transmission data quality table, where the transmission data quality table is used to indicate a first association relationship between transmission quality and a transmission network;

所述确定模块402,还用于根据所述第一配置信息和所述传输数据质量表,确定与所述第一服务端之间的所述数据传输质量。The determination module 402 is further configured to determine the data transmission quality between the first server and the first server according to the first configuration information and the transmission data quality table.

可选的,所述获取模块401,还用于获取数据类型配置表、传输协议对照表、数据传输要求配置表以及加密压缩算法对照表;Optionally, the acquisition module 401 is further used to acquire a data type configuration table, a transmission protocol comparison table, a data transmission requirement configuration table, and an encryption compression algorithm comparison table;

所述确定模块402,还用于根据所述数据类型配置表,确定所述数据传输的目标数据类型;The determination module 402 is further configured to determine the target data type of the data transmission according to the data type configuration table;

所述确定模块402,还用于根据所述数据传输质量和所述传输协议对照表,确定所述数据传输的目标使用传输协议;The determination module 402 is further configured to determine the target use transmission protocol for the data transmission according to the data transmission quality and the transmission protocol comparison table;

所述确定模块402,还用于根据所述数据传输质量、所述目标数据类型、所述数据传输要求配置表和所述加密压缩算法对照表,确定所述数据传输的目标使用加密压缩算法;The determination module 402 is further used to determine the target encryption compression algorithm to be used for the data transmission according to the data transmission quality, the target data type, the data transmission requirement configuration table and the encryption compression algorithm comparison table;

所述确定模块402,具体用于根据所述目标使用传输协议和所述目标使用加密压缩算法,确定所述数据传输的所述第二配置信息。The determination module 402 is specifically configured to determine the second configuration information of the data transmission according to the target transmission protocol and the target encryption compression algorithm.

可选的,所述确定模块402,具体用于当所述数据传输质量为高传输质量时,根据所述传输协议对照表,将第一使用传输协议作为所述目标使用传输协议;Optionally, the determination module 402 is specifically configured to, when the data transmission quality is high transmission quality, use the first transmission protocol as the target transmission protocol according to the transmission protocol comparison table;

所述确定模块402,具体用于当所述数据传输质量为中传输质量时,根据所述传输协议对照表,将第二使用传输协议作为所述目标使用传输协议;The determination module 402 is specifically configured to, when the data transmission quality is medium transmission quality, use the second transmission protocol as the target transmission protocol according to the transmission protocol comparison table;

所述确定模块402,具体用于当所述数据传输质量为低传输质量时,根据所述传输协议对照表,将第三使用传输协议作为所述目标使用传输协议。The determination module 402 is specifically configured to use the third transmission protocol as the target transmission protocol according to the transmission protocol comparison table when the data transmission quality is low transmission quality.

可选的,所述确定模块402,还用于根据所述数据传输质量、所述目标数据类型以及所述数据传输要求配置表,确定所述数据传输的目标数据传输等级;Optionally, the determination module 402 is further configured to determine a target data transmission level of the data transmission according to the data transmission quality, the target data type and the data transmission requirement configuration table;

所述确定模块402,具体用于根据所述目标数据传输等级和所述加密压缩压缩算法对照表,确定所述数据传输的目标使用加密压缩算法。The determination module 402 is specifically configured to determine the target encryption compression algorithm to be used for the data transmission according to the target data transmission level and the encryption compression algorithm comparison table.

可选的,所述确定模块402,还用于根据所述数据传输质量,确定所述数据传输的总传输失败次数;Optionally, the determination module 402 is further configured to determine a total number of transmission failures of the data transmission according to the data transmission quality;

所述装置还包括:判断模块405;所述判断模块405,用于在将所述数据传输请求发送至所述第一服务端之后,判断是否接收到所述第一服务端返回的数据传输响应;The device further includes: a judgment module 405; the judgment module 405 is used to judge whether a data transmission response returned by the first server is received after sending the data transmission request to the first server;

所述获取模块401,还用于未接收到所述第一服务端返回的数据传输响应时,获取所述数据传输的当前传输失败次数,并启动重试次数计数器;The acquisition module 401 is further configured to acquire the current number of transmission failures of the data transmission and start a retry count counter when no data transmission response is received from the first server.

所述确定模块402,还用于根据当前传输失败次数和所述重试次数计数器,重新确定新的当前传输失败次数;The determination module 402 is further configured to re-determine a new current number of transmission failures based on the current number of transmission failures and the retry count counter;

所述判断模块405,还用于判断所述新的当前传输失败次数是否满足所述总传输失败次数;The judging module 405 is further configured to judge whether the new current number of transmission failures satisfies the total number of transmission failures;

所述发送模块404,还用于在所述新的当前传输失败次数不满足所述总传输失败次数时,将所述数据传输请求重新发送至所述第一服务端。The sending module 404 is further configured to resend the data transmission request to the first server when the new current number of transmission failures does not satisfy the total number of transmission failures.

可选的,所述获取模块401,还用于获取请求失败重试次数对照表;所述确定模块402,具体用于根据所述数据传输质量和所述请求失败重试次数对照表,确定与所述数据传输对应的总传输失败次数。Optionally, the acquisition module 401 is further used to obtain a request failure retry count comparison table; the determination module 402 is specifically used to determine the total number of transmission failures corresponding to the data transmission based on the data transmission quality and the request failure retry count comparison table.

图5为本申请提供的数据传输处理设备的结构示意图。如图5所示,本申请提供一种数据传输处理设备,该数据传输处理设备500包括:接收器501、发送器502、处理器503以及存储器504。FIG5 is a schematic diagram of the structure of a data transmission processing device provided by the present application. As shown in FIG5 , the present application provides a data transmission processing device, and the data transmission processing device 500 includes: a receiver 501 , a transmitter 502 , a processor 503 and a memory 504 .

接收器501,用于接收指令和数据;发送器502,用于发送指令和数据;存储器504,用于存储计算机执行指令;处理器503,用于执行存储器504存储的计算机执行指令,以实现上述实施例中数据传输处理方法所执行的各个步骤。具体可以参见前述数据传输处理方法实施例中的相关描述。The receiver 501 is used to receive instructions and data; the transmitter 502 is used to send instructions and data; the memory 504 is used to store computer-executable instructions; the processor 503 is used to execute the computer-executable instructions stored in the memory 504 to implement the various steps performed by the data transmission processing method in the above embodiment. For details, please refer to the relevant description in the above data transmission processing method embodiment.

可选的,上述存储器504既可以是独立的,也可以跟处理器503集成在一起。Optionally, the memory 504 may be independent or integrated with the processor 503 .

当存储器504独立设置时,该电子设备还包括总线,用于连接存储器504和处理器503。When the memory 504 is independently provided, the electronic device further includes a bus for connecting the memory 504 and the processor 503 .

本申请还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当处理器执行计算机执行指令时,实现如上述数据传输处理设备所执行的数据传输处理方法。The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the data transmission processing method executed by the above-mentioned data transmission processing device is implemented.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules/units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

至此,已经结合附图所示的优选实施方式描述了本申请的技术方案,但是,本领域技术人员容易理解的是,本申请的保护范围显然不局限于这些具体实施方式,以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A data transmission processing method, characterized by comprising:
acquiring first configuration information of a first service end, and determining the data transmission quality between the first service end and the first service end according to the first configuration information;
determining second configuration information of data transmission according to the data transmission quality, wherein the second configuration information is used for indicating a data transmission rule between the first service end and the second service end;
And generating a data transmission request according to the second configuration information, and sending the data transmission request to the first server.
2. The method according to claim 1, wherein determining the quality of data transmission with the first service according to the first configuration information comprises:
acquiring a transmission data quality table, wherein the transmission data quality table is used for indicating a first association relation between transmission quality and a transmission network;
And determining the data transmission quality between the first service end and the first service end according to the first configuration information and the transmission data quality table.
3. The method of claim 1, wherein determining the second configuration information for the data transmission based on the data transmission quality comprises:
acquiring a data type configuration table, a transmission protocol comparison table, a data transmission requirement configuration table and an encryption compression algorithm comparison table;
Determining a target data type of the data transmission according to the data type configuration table;
determining a target use transmission protocol of the data transmission according to the data transmission quality and the transmission protocol comparison table;
Determining that a target of the data transmission uses an encryption compression algorithm according to the data transmission quality, the target data type, the data transmission requirement configuration table and the encryption compression algorithm comparison table;
and determining the second configuration information of the data transmission according to the transmission protocol used by the target and the encryption compression algorithm used by the target.
4. A method according to claim 3, characterized in that the data transmission quality comprises: high transmission quality, medium transmission quality and low transmission quality, said determining, according to said data transmission quality and said transmission protocol comparison table, a target usage transmission protocol for said data transmission, comprising:
if the data transmission quality is high, according to the transmission protocol comparison table, using a first used transmission protocol as the target used transmission protocol;
if the data transmission quality is the medium transmission quality, using a second used transmission protocol as the target used transmission protocol according to the transmission protocol comparison table;
and if the data transmission quality is low, using a third used transmission protocol as the target used transmission protocol according to the transmission protocol comparison table.
5. A method according to claim 3, wherein said determining that said data transmission is targeted using an encryption compression algorithm based on said data transmission quality, said target data type, said data transmission requirements configuration table, and said encryption compression algorithm comparison table comprises:
determining a target data transmission grade of the data transmission according to the data transmission quality, the target data type and the data transmission requirement configuration table;
And determining that the target of the data transmission uses an encryption compression algorithm according to the target data transmission grade and the encryption compression algorithm comparison table.
6. The method of claim 1, wherein the method further comprises:
determining the total transmission failure times of the data transmission according to the data transmission quality;
after the data transmission request is sent to the first server, judging whether a data transmission response returned by the first server is received or not;
if not, acquiring the current transmission failure times of the data transmission, and starting a retry time counter;
determining new current transmission failure times again according to the current transmission failure times and the retry times counter;
Judging whether the new current transmission failure times meet the total transmission failure times or not;
if not, the data transmission request is resent to the first server.
7. The method of claim 6, wherein said determining the total number of transmission failures for said data transmission based on said data transmission quality comprises:
acquiring a request failure retry number comparison table;
And determining the total transmission failure times corresponding to the data transmission according to the data transmission quality and the request failure retry times comparison table.
8. A data transmission processing apparatus, comprising:
The acquisition module is used for acquiring first configuration information of a first service end and determining the data transmission quality between the first service end and the first service end according to the first configuration information;
the determining module is used for determining second configuration information of data transmission according to the data transmission quality, wherein the second configuration information is used for indicating a data transmission rule between the first service end and the second service end;
the processing module is used for generating a data transmission request according to the second configuration information;
And the sending module is used for sending the data transmission request to the first server.
9. A data transmission processing apparatus, characterized by comprising:
a memory;
A processor;
wherein the memory stores computer-executable instructions;
The processor executes computer-executable instructions stored in the memory to implement the data transmission processing method as claimed in any one of claims 1 to 7.
10. A computer storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the data transmission processing method according to any one of claims 1 to 7.
CN202311061971.2A 2023-08-22 2023-08-22 Data transmission processing method and device, intelligent household appliance and computer storage medium Pending CN118573722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311061971.2A CN118573722A (en) 2023-08-22 2023-08-22 Data transmission processing method and device, intelligent household appliance and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311061971.2A CN118573722A (en) 2023-08-22 2023-08-22 Data transmission processing method and device, intelligent household appliance and computer storage medium

Publications (1)

Publication Number Publication Date
CN118573722A true CN118573722A (en) 2024-08-30

Family

ID=92462325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311061971.2A Pending CN118573722A (en) 2023-08-22 2023-08-22 Data transmission processing method and device, intelligent household appliance and computer storage medium

Country Status (1)

Country Link
CN (1) CN118573722A (en)

Similar Documents

Publication Publication Date Title
CN114338650B (en) File transmission method, device, electronic equipment and readable storage medium
WO2017088572A1 (en) Data processing method, device, and system
WO2022033586A1 (en) Message sending method and device
CN111416823A (en) Data transmission method and device
TWI716822B (en) Method and device for correcting transaction causality, and electronic equipment
US9459807B2 (en) Methods and systems for providing resources for cloud storage
WO2021068605A1 (en) Data persistence storage method and apparatus, computer device and storage medium
WO2023116701A1 (en) Data information pushing method and apparatus based on internet of things platform, and device and medium
CN106126349A (en) A kind of remote invocation method, message-oriented middleware cluster and system
CN112148206B (en) Data reading and writing method, device, electronic equipment and medium
CN114217759B (en) Screen projection method and device, storage medium and electronic equipment
CN110417876A (en) Session method, node server and master control device in distributed system
WO2020037607A1 (en) Data transmission method and apparatus
CN111355765A (en) Network request processing and sending method and device
CN118573722A (en) Data transmission processing method and device, intelligent household appliance and computer storage medium
US9647966B2 (en) Device, method and non-transitory computer readable storage medium for performing instant message communication
CN118193238A (en) Service information processing method, device, equipment and storage medium
CN116880870A (en) An SDK update method, device and electronic equipment
CN108111431B (en) Service data sending method, apparatus, computing device, and computer-readable storage medium
CN114124275B (en) Time synchronization method, device, equipment and storage medium
CN112492019B (en) Message pushing method and device, electronic equipment and storage medium
CN111400327B (en) Data synchronization method and device, electronic equipment and storage medium
CN116804908A (en) Data reading and writing methods, equipment, storage nodes and storage media
CN115220993A (en) Process monitoring method, device, vehicle and storage medium
CN110162415B (en) Method, server, device and storage medium for processing data request

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