[go: up one dir, main page]

HK40091441A - Information transmission method, device, electronic equipment, software program and storage medium - Google Patents

Information transmission method, device, electronic equipment, software program and storage medium Download PDF

Info

Publication number
HK40091441A
HK40091441A HK42023079590.8A HK42023079590A HK40091441A HK 40091441 A HK40091441 A HK 40091441A HK 42023079590 A HK42023079590 A HK 42023079590A HK 40091441 A HK40091441 A HK 40091441A
Authority
HK
Hong Kong
Prior art keywords
server
information
server configuration
client
target
Prior art date
Application number
HK42023079590.8A
Other languages
Chinese (zh)
Inventor
汪福裕
罗成
Original Assignee
腾讯科技(深圳)有限公司
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of HK40091441A publication Critical patent/HK40091441A/en

Links

Description

信息传输方法、装置、电子设备、软件程序及存储介质Information transmission methods, devices, electronic equipment, software programs and storage media

技术领域Technical Field

本发明涉及计算机网络的信息传输技术,尤其涉及信息传输方法、装置、电子设备、软件程序及存储介质。This invention relates to information transmission technology in computer networks, and more particularly to information transmission methods, devices, electronic equipment, software programs, and storage media.

背景技术Background Technology

相关技术中,用户数据报协议(UDP User Datagram Protocol)是一种无连接的传输层协议。快速UDP互联网连接(QUIC Quick UDP Internet Connections)是一种采用UDP进行多路并发传输的协议。在QUIC协议中,客户端和服务器在建立连接之前需要经过多次协议握手的过程,在生成服务端配置信息,相关技术对多集群多机多进程场景的处理造成网络延迟增加以及数据泄露风险增加的缺陷。In related technologies, the User Datagram Protocol (UDP) is a connectionless transport layer protocol. Quick UDP Internet Connections (QUIC) is a protocol that uses UDP for multiple concurrent transmissions. In the QUIC protocol, the client and server need to go through multiple handshake processes before establishing a connection, generating server configuration information. These technologies suffer from drawbacks such as increased network latency and increased risk of data leakage in multi-cluster, multi-machine, and multi-process scenarios.

发明内容Summary of the Invention

有鉴于此,本发明实施例提供一种信息传输方法、装置、电子设备、软件程序及存储介质,既能够降低QUIC场景中对多集群多机多进程场景的数据传输时的往返时延,又能够减少QUIC场景中数据传输泄露的风险。In view of this, embodiments of the present invention provide an information transmission method, apparatus, electronic device, software program, and storage medium, which can reduce the round-trip latency of data transmission in multi-cluster, multi-machine, and multi-process scenarios in QUIC scenarios, and also reduce the risk of data transmission leakage in QUIC scenarios.

本发明实施例的技术方案是这样实现的:The technical solution of this invention is implemented as follows:

本发明实施例提供了一种信息传输方法,包括:This invention provides an information transmission method, including:

服务端接收客户端传输的初步客户端握手数据;The server receives the initial client handshake data transmitted by the client;

所述服务端对所述初步客户端握手数据进行解析,得到源地址令牌和服务端配置标识信息,其中,所述源地址令牌携带有服务端配置生成时使用的时间戳;The server parses the initial client handshake data to obtain the source address token and server configuration identification information, wherein the source address token carries the timestamp used when the server configuration was generated;

基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数,并且基于所述服务端配置参数查找目标服务端配置信息;Based on the source address token and server configuration identification information, server configuration parameters are generated, and the target server configuration information is found based on the server configuration parameters.

当能够查找到所述目标服务端配置信息时,对所述服务端配置标识信息进行校验,得到所述服务端配置标识信息的校验结果;When the target server configuration information can be found, the server configuration identification information is verified to obtain the verification result of the server configuration identification information.

基于所述服务端配置标识信息的校验结果,建立所述服务端与所述客户端的连接,并通过所述连接进行信息传输。Based on the verification result of the server configuration identification information, a connection is established between the server and the client, and information is transmitted through the connection.

本发明实施例还提供了一种信息传输装置,包括:This invention also provides an information transmission device, comprising:

信息传输模块,用于服务端接收客户端传输的初步客户端握手数据;The information transmission module is used by the server to receive the initial client handshake data transmitted by the client.

信息处理模块,用于所述服务端对所述初步客户端握手数据进行解析,得到源地址令牌和服务端配置标识信息,其中,所述源地址令牌携带有服务端配置装置生成时使用的时间戳;The information processing module is used by the server to parse the initial client handshake data to obtain the source address token and server configuration identification information, wherein the source address token carries a timestamp used by the server configuration device when it was generated;

所述信息处理模块,用于基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数,并且基于所述服务端配置参数查找目标服务端配置信息;The information processing module is used to generate server configuration parameters based on the source address token and server configuration identification information, and to search for target server configuration information based on the server configuration parameters.

所述信息处理模块,用于当能够查找到所述目标服务端配置信息时,对所述服务端配置标识信息进行校验,得到所述服务端配置标识信息的校验结果;The information processing module is used to verify the server configuration identification information when the target server configuration information can be found, and to obtain the verification result of the server configuration identification information.

所述信息处理模块,用于基于所述服务端配置标识信息的校验结果,建立所述服务端与所述客户端的连接,并通过所述连接进行信息传输。The information processing module is used to establish a connection between the server and the client based on the verification result of the server configuration identification information, and to transmit information through the connection.

上述方案中,In the above scheme,

所述信息处理模块,用于当不能够查找到所述目标服务端配置信息时,对所述服务端配置装置生成时使用的时间戳进行校验;The information processing module is used to verify the timestamp used when the server configuration device generates the configuration information when the target server configuration information cannot be found.

所述信息处理模块,用于当所述服务端配置装置生成时使用的时间戳合法时,对原始目标服务端配置信息进行恢复,得到原始目标服务端配置信息;The information processing module is used to restore the original target server configuration information when the timestamp used by the server configuration device during generation is valid, and obtain the original target server configuration information.

所述信息处理模块,用于对所述原始目标服务端配置信息进行校验,并且基于所述原始服务端配置信息的校验结果,建立所述服务端与所述客户端的连接。The information processing module is used to verify the original target server configuration information and establish a connection between the server and the client based on the verification result of the original server configuration information.

上述方案中,In the above scheme,

所述信息处理模块,用于为所述源地址令牌配置密钥字符串;The information processing module is used to configure a key string for the source address token;

所述信息处理模块,用于当所述服务端对所述初步客户端握手数据进行解析时,基于所述密钥字符串生成对称密钥,以实现通过所述对称密钥对所述源地址令牌进行加密。The information processing module is used to generate a symmetric key based on the key string when the server parses the initial client handshake data, so as to encrypt the source address token using the symmetric key.

上述方案中,In the above scheme,

所述信息处理模块,用于根据所述服务端和所述客户端的使用场景,对所述服务端配置参数的内容进行配置,其中所述服务端配置参数包括:服务端密钥信息、版本信息、有效期信息、生成算法信息;The information processing module is used to configure the content of the server configuration parameters according to the usage scenarios of the server and the client, wherein the server configuration parameters include: server key information, version information, validity period information, and generation algorithm information;

所述信息处理模块,用于基于所述服务端和所述客户端的使用场景,对所述服务端配置参数的更新周期进行调整。The information processing module is used to adjust the update cycle of the server configuration parameters based on the usage scenarios of the server and the client.

上述方案中,In the above scheme,

所述信息处理模块,用于当所述服务端和所述客户端的使用场景为自适应场景时,将所述服务端配置参数的更新周期配置为24小时,其中,所述服务端配置参数的更新周期的起始时间为每一个自然日的零时。The information processing module is used to configure the update cycle of the server configuration parameters to 24 hours when the usage scenario of the server and the client is an adaptive scenario, wherein the start time of the update cycle of the server configuration parameters is 00:00 of each natural day.

上述方案中,In the above scheme,

所述信息处理模块,用于当所述服务端和所述客户端的使用场景的安全性指数小于等于安全阈值时,为所述服务端配置参数配置服务端配置参数有效时间;The information processing module is used to configure the effective time of the server configuration parameters when the security index of the usage scenario of the server and the client is less than or equal to the security threshold.

所述信息处理模块,用于当所述服务端和所述客户端的使用场景的安全性指数大于安全阈值时,为所述服务端配置参数配置服务端配置参数更新周期。The information processing module is used to configure the server configuration parameter update cycle for the server configuration parameters when the security index of the usage scenario of the server and the client is greater than the security threshold.

上述方案中,In the above scheme,

所述信息处理模块,用于响应于所述服务端与所述客户端的连接请求,基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数;The information processing module is used to respond to the connection request between the server and the client, and generate server configuration parameters based on the source address token and server configuration identification information;

所述信息处理模块,用于当所述服务端的不同进程均需要获取目标服务端配置信息时,通过一个进程基于所述服务端配置参数查找目标服务端配置信息,并且在所述服务端的不同进程之间共享所述目标服务端配置信息。The information processing module is used to, when different processes of the server need to obtain the target server configuration information, use one process to search for the target server configuration information based on the server configuration parameters, and share the target server configuration information among different processes of the server.

上述方案中,In the above scheme,

所述信息处理模块,用于当所述信息的类型为用户数据报协议流量信息时,The information processing module is used when the type of the information is User Datagram Protocol (UDP) traffic information.

所述信息处理模块,用于通过解析对应的用户数据报协议,得到目标域名和端口信息;The information processing module is used to obtain the target domain name and port information by parsing the corresponding User Datagram Protocol.

所述信息处理模块,用于通过向域名系统发送查询信息,获得所述目标域名对应的目标互联网协议地址;将所述目标域名对应的目标互联网协议地址、端口信息以及所述流量信息发送至对应的服务端;The information processing module is used to obtain the target Internet Protocol address corresponding to the target domain name by sending query information to the Domain Name System; and to send the target Internet Protocol address, port information and traffic information corresponding to the target domain name to the corresponding server.

所述服务端对所述目标流量信息进传输处理。The server performs transmission processing on the target traffic information.

上述方案中,In the above scheme,

所述信息处理模块,用于当所述信息类型为云服务器信息时,确定目标用户的标识信息;The information processing module is used to determine the identification information of the target user when the information type is cloud server information;

所述信息处理模块,用于基于云服务器网络,确定与所述标识信息相匹配的数据源集群;The information processing module is used to determine the data source cluster that matches the identification information based on the cloud server network;

所述信息处理模块,用于根据所述数据源集群,向云服务器中存储与目标用户相匹配的云服务器历史记录。The information processing module is used to store cloud server historical records that match the target user in the cloud server according to the data source cluster.

本发明实施例还提供了一种电子设备,所述电子设备包括:This invention also provides an electronic device, the electronic device comprising:

存储器,用于存储可执行指令;Memory, used to store executable instructions;

处理器,用于运行所述存储器存储的可执行指令时,实现前序的信息传输方法。A processor, used to implement a preceding information transmission method when executing executable instructions stored in the memory.

本发明实施例还提供了一种计算机可读存储介质,存储有可执行指令,所述可执行指令被处理器执行时实现前序的信息传输方法。This invention also provides a computer-readable storage medium storing executable instructions, which, when executed by a processor, implement a preceding information transmission method.

本发明实施例具有以下有益效果:The embodiments of the present invention have the following beneficial effects:

本发明实施例通过服务端接收客户端传输的初步客户端握手数据;所述服务端对所述初步客户端握手数据进行解析,得到源地址令牌和服务端配置标识信息,其中,所述源地址令牌携带有服务端配置生成时使用的时间戳;基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数,并且基于所述服务端配置参数查找目标服务端配置信息;当能够查找到所述目标服务端配置信息时,对所述服务端配置标识信息进行校验,得到所述服务端配置标识信息的校验结果;基于所述服务端配置标识信息的校验结果,建立所述服务端与所述客户端的连接,并通过所述连接进行信息传输。由此,能够降低QUIC场景中对各种类型的场景中的数据传输时的往返时延,提升信息传输的效率,又能够减少QUIC场景中数据传输泄露的风险,保证数据传输的安全性。This invention embodiment receives preliminary client handshake data transmitted by a client from a server. The server parses the preliminary client handshake data to obtain a source address token and server configuration identification information. The source address token carries a timestamp used when the server configuration was generated. Based on the source address token and server configuration identification information, server configuration parameters are generated, and target server configuration information is searched based on these parameters. When the target server configuration information is found, the server configuration identification information is verified to obtain a verification result. Based on the verification result, a connection is established between the server and the client, and information is transmitted through this connection. This reduces round-trip latency for data transmission in various scenarios within a QUIC environment, improves information transmission efficiency, reduces the risk of data transmission leakage in QUIC environments, and ensures data transmission security.

附图说明Attached Figure Description

图1是本发明实施例提供的信息传输方法的使用环境示意图;Figure 1 is a schematic diagram of the application environment of the information transmission method provided in an embodiment of the present invention;

图2为本发明实施例提供的信息传输装置的组成结构示意图;Figure 2 is a schematic diagram of the composition structure of the information transmission device provided in an embodiment of the present invention;

图3为本发明实施例提供的信息传输方法一个可选的流程示意图;Figure 3 is a schematic diagram of an optional information transmission method provided in an embodiment of the present invention;

图4为本发明实施例中信息传输时SCFG生成一种可选的方式;Figure 4 shows an optional method for generating SCFG during information transmission in an embodiment of the present invention;

图5为本发明实施例中信息传输时SCFG生成一种可选的方式;Figure 5 shows an optional method for generating SCFG during information transmission in an embodiment of the present invention;

图6为本发明实施例中0RTT原理示意图;Figure 6 is a schematic diagram of the 0RTT principle in an embodiment of the present invention;

图7为本发明实施例中服务端配置信息生成示意图;Figure 7 is a schematic diagram of server configuration information generation in an embodiment of the present invention;

图8为本发明实施例中信息传输方法的场景示意图;Figure 8 is a schematic diagram of a scenario of the information transmission method in an embodiment of the present invention;

图9为本发明实施例提供的信息传输方法一个可选的流程示意图。Figure 9 is a schematic diagram of an optional information transmission method provided in an embodiment of the present invention.

具体实施方式Detailed Implementation

为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,所描述的实施例不应视为对本发明的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on the present invention. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

对本发明实施例进行进一步详细说明之前,对本发明实施例中涉及的名词和术语进行说明,本发明实施例中涉及的名词和术语适用于如下的解释。Before providing a further detailed description of the embodiments of the present invention, the nouns and terms involved in the embodiments of the present invention will be explained, and the nouns and terms involved in the embodiments of the present invention shall be interpreted as follows.

1)响应于,用于表示所执行的操作所依赖的条件或者状态,当满足所依赖的条件或状态时,所执行的一个或多个操作可以是实时的,也可以具有设定的延迟;在没有特别说明的情况下,所执行的多个操作不存在执行先后顺序的限制。1) In response to, used to indicate the conditions or states on which the operation performed depends. When the conditions or states on which it depends are met, one or more operations performed may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.

2)基于,用于表示所执行的操作所依赖的条件或者状态,当满足所依赖的条件或状态时,所执行的一个或多个操作可以是实时的,也可以具有设定的延迟;在没有特别说明的情况下,所执行的多个操作不存在执行先后顺序的限制。2) Based on, used to indicate the conditions or states on which the operation is performed depends. When the conditions or states on which it depends are met, one or more operations can be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.

3)云技术(Cloud technology)是指在广域网或局域网内将硬件、软件、网络等系列资源统一起来,实现数据的计算、储存、处理和共享的一种托管技术。基于云计算商业模式应用的网络技术、信息技术、整合技术、管理平台技术、应用技术等的总称,可以组成资源池,按需所用,灵活便利。云计算技术将变成重要支撑。技术网络系统的后台服务需要大量的计算、存储资源,如视频网站、图片类网站和更多的门户网站。伴随着互联网行业的高度发展和应用,将来每个物品都有可能存在自己的识别标志,都需要传输到后台系统进行逻辑处理,不同程度级别的数据将会分开处理,各类行业数据皆需要强大的系统后盾支撑,只能通过云计算来实现。3) Cloud technology refers to a hosting technology that unifies hardware, software, and network resources within a wide area network (WAN) or local area network (LAN) to achieve data computation, storage, processing, and sharing. It encompasses network technologies, information technologies, integration technologies, management platform technologies, and application technologies based on cloud computing business models. These technologies can form resource pools, allowing for flexible and convenient on-demand use. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring data to be transmitted to backend systems for logical processing. Data at different levels will be processed separately, and various industry data will require robust system support, which can only be achieved through cloud computing.

4)云游戏:是指游戏本身运行在云端服务器设备中,将云端设备渲染后的游戏画面编码后,通过网络传输至用户终端,由用户终端对编码文件进行解码后渲染至显示屏进行显示的游戏,从而,用户无需在本地安装游戏,而仅需要建立与云端的通信网络连接便能完成游戏交互过程。4) Cloud gaming: This refers to games that run on cloud server devices. The game screen rendered by the cloud device is encoded and transmitted to the user terminal via the network. The user terminal decodes the encoded file and renders it on the display screen. Thus, users do not need to install the game locally, but only need to establish a communication network connection with the cloud to complete the game interaction process.

5)云安全(Cloud Security)是指基于云计算商业模式应用的安全软件、硬件、用户、机构、安全云平台的总称。云安全融合了并行处理、网格计算、未知病毒行为判断等新兴技术和概念,通过网状的大量客户端对网络中软件行为的异常监测,获取互联网中木马、恶意程序的最新信息,并发送到服务端进行自动分析和处理,再把病毒和木马的解决方案分发到每一个客户端。5) Cloud security refers to the collective term for security software, hardware, users, organizations, and security cloud platforms based on cloud computing business models. Cloud security integrates emerging technologies and concepts such as parallel processing, grid computing, and the identification of unknown virus behavior. Through a large network of clients, it monitors abnormal software behavior on the network, obtains the latest information on Trojans and malware on the internet, sends it to the server for automatic analysis and processing, and then distributes solutions for viruses and Trojans to each client.

6)盐值,SALT值属于随机值。用户注册时,系统用来和用户密码进行组合而生成的随机数值,称作salt值,通称为加盐值。6) Salt value: The salt value is a random value. During user registration, the system uses it to generate a random value by combining it with the user's password. This value is called the salt value, commonly known as the salting value.

7)TGW,是网关产品(GateWay)的一种表现形式,是一套实现多网统一接入、外网网络请求转发、支持自动负载均衡的系统。TGW向开发者免费提供服务,基于HTTP协议的应用可以直接接入,基于其他私有协议的应用只需要进行少量改造即可快速接入。TGW自动进行域名解析,应用接入TGW后,即可使用域名方式对外提供服务,以及网络接入。此外,TGW支持后端带权重的负载均衡,应用无需关注负载均衡,对于不同的业务场景来说,TGW在CLB应用场景中指代四层网关,在CDN业务场景中可以理解为是LVS(Linux virtual server)。7) TGW is a type of gateway product, a system that enables unified access across multiple networks, forwards external network requests, and supports automatic load balancing. TGW provides free services to developers. Applications based on the HTTP protocol can connect directly, while applications based on other proprietary protocols only require minor modifications for quick integration. TGW automatically handles domain name resolution; after connecting to TGW, applications can provide services and access the network using domain names. Furthermore, TGW supports weighted load balancing on the backend, eliminating the need for applications to worry about load balancing. In different business scenarios, TGW refers to a Layer 4 gateway in CLB applications and can be understood as an LVS (Linux Virtual Server) in CDN applications.

图1为本发明实施例提供的信息传输方法的使用场景示意图,参见图1,本发明实施例提供了一种系统包括服务端与客户端,用于通过连接后进行信息传输,其中所述信息传输装置的硬件实施或软件实施的示例与图2相同,将在后面进行详细介绍,服务端可以采用分布式的服务器集群的形式,可以包括:负载调度器(load balancer),作为整个集群对外的前端机,负责将客户的请求发送到一组服务器上执行,而客户认为是来自一个IP地址(VIP)上;服务器池(server pool),是一组真正执行客户请求的服务器;共享存储(sharedstorage),它为服务器池提供一个共享的存储区,这样容易使服务器池提供相同的服务。Figure 1 is a schematic diagram of the application scenario of the information transmission method provided in the embodiment of the present invention. Referring to Figure 1, the embodiment of the present invention provides a system including a server and a client for transmitting information after connection. The hardware or software implementation of the information transmission device is the same as that in Figure 2 and will be described in detail later. The server can be in the form of a distributed server cluster and may include: a load balancer, which acts as the front-end machine of the entire cluster and is responsible for sending client requests to a group of servers for execution, while the client perceives them as coming from a single IP address (VIP); a server pool, which is a group of servers that actually execute client requests; and shared storage, which provides a shared storage area for the server pool, making it easy for the server pool to provide the same service.

结合上述描述,在图1所示的使用场景中,服务器200还可以为与服务器,云服务器(Cloud Virtual Machine,CVM)可以提供安全可靠的弹性计算服务,还可以提供不同的实例类型来满足用户特定的使用场景。终端(包括终端10-1和终端10-2)上设置有能够执行不同功能相应客户端其中,所属客户端为终端(包括终端10-1和终端10-2)通过网络300从相应的云服务器200中获取不同的信息,并可以在云服务器中部署不同的业务。终端通过网络300连接服务器200,网络300可以是广域网或者局域网,又或者是二者的组合,使用无线链路实现数据传输。云服务器所提供的这些实例类型由CPU、内存、存储和网络组成不同的组合,并将用户的业务数据存储在云服务器的硬盘中,云服务器作为服务端首先接收客户端传输的初步客户端握手数据(通过QUIC方式建立连接);服务端对所述初步客户端握手数据进行解析,得到源地址令牌和服务端配置标识信息,其中,所述源地址令牌携带有服务端配置生成时使用的时间戳;基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数,并且基于所述服务端配置参数查找目标服务端配置信息;当能够查找到所述目标服务端配置信息时,对所述服务端配置标识信息进行校验,得到所述服务端配置标识信息的校验结果;基于所述服务端配置标识信息的校验结果,建立所述服务端与所述客户端的连接,并通过所述连接进行信息传输。Based on the above description, in the usage scenario shown in Figure 1, server 200 can also be a cloud server (Cloud Virtual Machine, CVM) that can provide secure and reliable elastic computing services and can also provide different instance types to meet specific user needs. The terminals (including terminals 10-1 and 10-2) are equipped with corresponding clients capable of performing different functions. These clients (including terminals 10-1 and 10-2) obtain different information from the corresponding cloud server 200 via network 300 and can deploy different services on the cloud server. The terminals connect to server 200 via network 300, which can be a wide area network (WAN), a local area network (LAN), or a combination of both, using a wireless link for data transmission. The cloud server instances provide different combinations of CPU, memory, storage, and network, storing user business data on the cloud server's hard drive. The cloud server, acting as the server, first receives initial client handshake data (establishing a connection via QUIC). The server parses this initial handshake data to obtain a source address token and server configuration identification information. The source address token carries a timestamp used when the server configuration was generated. Based on the source address token and server configuration identification information, server configuration parameters are generated, and the target server configuration information is searched based on these parameters. When the target server configuration information is found, the server configuration identification information is verified to obtain a verification result. Based on the verification result, a connection is established between the server and the client, and information is transmitted through this connection.

下面对本发明实施例的信息传输装置的结构做详细说明,信息传输装置可以各种形式来实施,如带有网络管理功能的智能手机、平板电脑和台式机等终端,也可以为带有网络管理功能的服务器。图2为本发明实施例提供的信息传输装置的组成结构示意图,可以理解,图2仅仅示出了信息传输装置的示例性结构而非全部结构,根据需要可以实施图2示出的部分结构或全部结构。The structure of the information transmission device according to an embodiment of the present invention will be described in detail below. The information transmission device can be implemented in various forms, such as terminals with network management functions, such as smartphones, tablets, and desktop computers, or servers with network management functions. Figure 2 is a schematic diagram of the composition structure of the information transmission device provided in an embodiment of the present invention. It should be understood that Figure 2 only shows an exemplary structure of the information transmission device and not the entire structure. Some or all of the structures shown in Figure 2 can be implemented as needed.

本发明实施例提供的信息传输装置包括:至少一个处理器201、存储器202、用户接口203和至少一个网络接口204。信息传输装置20中的各个组件通过总线系统205耦合在一起。可以理解,总线系统205用于实现这些组件之间的连接通信。总线系统205除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图2中将各种总线都标为总线系统205。The information transmission device provided in this embodiment of the invention includes at least one processor 201, a memory 202, a user interface 203, and at least one network interface 204. The various components in the information transmission device 20 are coupled together via a bus system 205. It can be understood that the bus system 205 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 205 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 205 in FIG. 2.

其中,用户接口203可以包括显示器、键盘、鼠标、轨迹球、点击轮、按键、按钮、触感板或者触摸屏等。The user interface 203 may include a monitor, keyboard, mouse, trackball, click wheel, buttons, touchpad, or touch screen.

可以理解,存储器202可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。本发明实施例中的存储器202能够存储数据以支持终端(如终端10-1)的操作。这些数据的示例包括:用于在终端(如终端10-1)上操作的任何计算机程序,如操作系统和应用程序。其中,操作系统包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序可以包含各种应用程序。It is understood that memory 202 can be volatile memory or non-volatile memory, or both. In this embodiment of the invention, memory 202 is capable of storing data to support the operation of a terminal (such as terminal 10-1). Examples of this data include any computer programs used to operate on the terminal (such as terminal 10-1), such as operating systems and applications. The operating system includes various system programs, such as the framework layer, core library layer, driver layer, etc., used to implement various basic services and handle hardware-based tasks. Applications can include various applications.

在一些实施例中,本发明实施例提供的信息传输装置可以采用硬件方式实现,作为示例,本发明实施例提供的信息传输装置可以是采用硬件译码处理器形式的处理器,其被编程以执行本发明实施例提供的信息传输方法。例如,硬件译码处理器形式的处理器可以采用一个或多个应用专用集成电路(ASIC,Application Specific IntegratedCircuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、现场可编程门阵列(FPGA,Field-Programmable Gate Array)或其他电子元件。In some embodiments, the information transmission device provided in this invention can be implemented in hardware. For example, the information transmission device provided in this invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the information transmission method provided in this invention. For instance, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

作为本发明实施例提供的信息传输装置采用软件方式实现,本发明实施例所提供的信息传输装置可以直接体现为由处理器201执行的软件模块组合,软件模块可以位于存储介质中,存储介质位于存储器202,处理器201读取存储器202中软件模块包括的可执行指令,结合必要的硬件(例如,包括处理器201以及连接到总线205的其他组件)完成本发明实施例提供的信息传输方法。The information transmission device provided in this embodiment of the invention is implemented in software. The information transmission device provided in this embodiment of the invention can be directly embodied as a combination of software modules executed by the processor 201. The software modules can be located in a storage medium, which is located in the memory 202. The processor 201 reads the executable instructions included in the software modules in the memory 202 and combines them with necessary hardware (e.g., including the processor 201 and other components connected to the bus 205) to complete the information transmission method provided in this embodiment of the invention.

例如,图2示出了存储在存储器202中的信息传输装置2020,其可以是程序和插件等形式的软件,并包括以下的软件模块:信息传输模块2081、认证模块2082。当信息传输装置2020中的软件模块被处理器201读取到RAM中并执行时,将实现本发明实施例提供的信息传输方法,下面结合图2所示的信息传输装置2020说明各个软件模块的功能。For example, Figure 2 shows an information transmission device 2020 stored in memory 202, which can be software in the form of programs and plug-ins, and includes the following software modules: information transmission module 2081 and authentication module 2082. When the software modules in the information transmission device 2020 are read into RAM and executed by processor 201, the information transmission method provided by the embodiments of the present invention will be implemented. The functions of each software module will be described below with reference to the information transmission device 2020 shown in Figure 2.

信息传输模块2081,用于服务端接收客户端传输的初步客户端握手数据。The information transmission module 2081 is used for the server to receive the initial client handshake data transmitted by the client.

信息处理模块2082,用于所述服务端对所述初步客户端握手数据进行解析,得到源地址令牌和服务端配置标识信息,其中,所述源地址令牌携带有服务端配置装置生成时使用的时间戳。The information processing module 2082 is used by the server to parse the initial client handshake data to obtain the source address token and server configuration identification information, wherein the source address token carries a timestamp used by the server configuration device when it was generated.

所述信息处理模块2082,用于基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数,并且基于所述服务端配置参数查找目标服务端配置信息。The information processing module 2082 is used to generate server configuration parameters based on the source address token and server configuration identification information, and to search for target server configuration information based on the server configuration parameters.

所述信息处理模块2082,用于当能够查找到所述目标服务端配置信息时,对所述服务端配置标识信息进行校验,得到所述服务端配置标识信息的校验结果。The information processing module 2082 is used to verify the server configuration identification information when the target server configuration information can be found, and to obtain the verification result of the server configuration identification information.

所述信息处理模块2082,用于基于所述服务端配置标识信息的校验结果,建立所述服务端与所述客户端的连接,并通过所述连接进行信息传输。The information processing module 2082 is used to establish a connection between the server and the client based on the verification result of the server configuration identification information, and to transmit information through the connection.

根据图2所示的脸部图像调整装置,在本申请的一个方面中,本申请还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述信息传输方法的各种可选实现方式中所提供的不同实施例及实施例的组合。According to the facial image adjustment device shown in Figure 2, in one aspect of this application, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform various alternative implementations of the information transmission method described above, including different embodiments and combinations thereof.

在一些实施例中,计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、闪存、磁表面存储器、光盘、或CD-ROM等存储器;也可以是包括上述存储器之一或任意组合的各种设备。In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.

结合本发明实施例提供的信息传输装置的示例性应用和实施,说明本发明实施例提供的信息传输方法,根据上文可以理解,本发明实施例提供的信息传输方法可以由各种类型的带有信息传输功能设备,例如信息管理服务器或者服务器集群等。The information transmission method provided by the embodiments of the present invention will be described in conjunction with the exemplary application and implementation of the information transmission device provided in the embodiments of the present invention. As can be understood from the above, the information transmission method provided by the embodiments of the present invention can be provided by various types of devices with information transmission functions, such as information management servers or server clusters.

继续结合图1示出的使用环境和图2示出的信息传输装置20说明本发明实施例提供的信息传输方法,在介绍本申请提供的信息传输方法之前,首先对现有技术中的信息传输过程进行介绍,参考图3,图3为本发明实施例中信息传输时SCFG生成一种可选的方式,通过建立中心化的服务为配置(SCFG Server Config)生成系统,一个中心系统周期性更新SCFG,所有集群的机器均通过请其中心系统的方式获取SCFG,这样就可以实现所有机器间的SCFG完全一致,但是这种方式的缺陷在于:需要开发维护额外的模块,服务器集群的架构成本增加;同时引入了单点风险问题,容易造成信息泄露,系统的稳定性低;最后增加了网络延迟,使得用户体验变差。Continuing with the usage environment shown in Figure 1 and the information transmission device 20 shown in Figure 2, the information transmission method provided by the embodiments of the present invention will be described first. Before introducing the information transmission method provided by this application, the information transmission process in the prior art will be introduced. Referring to Figure 3, Figure 3 shows an optional method for generating SCFG during information transmission in the embodiments of the present invention. A centralized service is established as a configuration (SCFG Server Config) generation system. A central system periodically updates the SCFG, and all machines in the cluster obtain the SCFG by requesting its central system. In this way, the SCFG of all machines can be completely consistent. However, the drawbacks of this method are: it requires the development and maintenance of additional modules, which increases the architectural cost of the server cluster; it also introduces a single point of risk, which can easily lead to information leakage and low system stability; and finally, it increases network latency, which worsens the user experience.

参考图4,图4为本发明实施例中信息传输时SCFG生成一种可选的方式,具体包括:1)通过四层TGW网关负载均衡策略,采用IP哈希选路的方式,对同一个客户端(IP标识)的多次请求均转发至同一台七层安全网关机器(STGW Security Tencent GateWay),STGW是负责支持7层网络HTTPS协议实现多网统一接入、外网网络请求转发、支持自动负载均衡的系统,其中,STGW中IP选路机制,不要求机器间的SCFG同步。2)每个STGW机器的SCFG,由主进程(即Master进程)在启动时一次性批量生成多个SCFG,供每一个使用工作进程(即Worker进程)。此机制确保了多进程间的SCFG是同步的,但是这种方式的缺陷在于只能解决单集群多机多进程问题,不适用于多集群多机多进程场景。同时集群中的单机容易成为热点,系统宕机的风险增加。Referring to Figure 4, which illustrates an optional method for generating SCFG during information transmission in this embodiment of the invention, the method includes: 1) Using a Layer 4 TGW gateway load balancing strategy and employing IP hash routing, multiple requests from the same client (IP identifier) are forwarded to the same Layer 7 security gateway machine (STGW Security Tencent Gateway). STGW is responsible for supporting Layer 7 network HTTPS protocol to achieve unified access across multiple networks, forwarding external network requests, and supporting automatic load balancing. The IP routing mechanism in STGW does not require SCFG synchronization between machines. 2) The SCFG of each STGW machine is generated in batches by the master process (Master process) at startup, providing multiple SCFGs for each worker process (Worker process). This mechanism ensures that the SCFGs between multiple processes are synchronized. However, this method only solves the problem of multiple machines and multiple processes in a single cluster and is not suitable for multi-cluster, multi-machine, multi-process scenarios. Furthermore, a single machine in the cluster is prone to becoming a hotspot, increasing the risk of system downtime.

当然,对于一些固定场景的信息传输需求,也可以保持SCFG始终不变,但是一旦密钥流失,将造成信息泄露。Of course, for certain fixed information transmission needs, the SCFG can remain unchanged, but if the key is lost, it will cause information leakage.

为了克服以上缺陷,参见图5,图5为本发明实施例提供的信息传输方法一个可选的流程示意图,可以理解地,图5所示的步骤可以由运行信息传输装置的各种电子设备执行,例如可以是如带有应用进程数据传输功能的服务器或者服务器集群,也可以是云服务器,下面针对图5示出的步骤进行说明。To overcome the above defects, refer to Figure 5, which is an optional flowchart of the information transmission method provided by an embodiment of the present invention. It can be understood that the steps shown in Figure 5 can be performed by various electronic devices running information transmission devices, such as servers or server clusters with application process data transmission functions, or cloud servers. The steps shown in Figure 5 will be described below.

步骤501:服务端接收客户端传输的初步客户端握手数据。Step 501: The server receives the initial client handshake data transmitted by the client.

在本发明的一些实施例中,服务端与客户端进行信息传输之前首先需要建立连接,通过用户数据报协议UDP建立连接时,UDP流量是面向无连接的、不可靠的数据报传输协议。UDP流量仅仅将要发送的数据报传送至网络,并接收从网上传来的数据报,而不与远端的UDP模块建立连接。UDP为用户的网络应用程序提供服务,例如网络文件系统(NFS,Network File System)和简单网络管理协议(SNMP,Simple Network ManagementProtocol)等。UDP保留应用程序所定义的消息边界,它既不会将两个应用程序的消息连接到一起,也不会把一个应用程序的消息分成多个部分。在本发明的一些实施例中,当使用快速UDP互联网连接(QUIC Quick UDP Internet Connections)进行信息传输时,作为一种新兴的传输层协议,QUIC具有建链开销小、无头阻塞、支持连接迁移和/或在用户态实现等多种优点。基于QUIC传输的超文本传输协议(hypertexttransfer protocol,HTTP)3.0正成为下一代互联网协议,随着第三方支付平台涉及的业务种类越多越多,QUIC能够适应各种类型的信息传输环境,例如:支付、保险、基金、股票、小游戏和/或区块链等;对于不同的业务场景对信息传输有不同的要求,比如支付信息需要低时延,不同的网络条件对信息传输也有不同的适应需求,QUIC都能适应。In some embodiments of the present invention, a connection needs to be established before the server and client can transmit information. When establishing a connection via the User Datagram Protocol (UDP), UDP traffic is a connectionless, unreliable datagram transmission protocol. UDP traffic only transmits the datagrams to be sent to the network and receives datagrams from the network, without establishing a connection with the remote UDP module. UDP provides services to user network applications, such as Network File System (NFS) and Simple Network Management Protocol (SNMP). UDP preserves the message boundaries defined by the application; it neither joins messages from two applications together nor splits messages from one application into multiple parts. In some embodiments of the present invention, when using Quick UDP Internet Connections (QUIC) for information transmission, as an emerging transport layer protocol, QUIC has many advantages such as low connection establishment overhead, headless blocking, support for connection migration, and/or implementation in user space. The Hypertext Transfer Protocol (HTTP) 3.0, based on QUIC, is becoming the next-generation Internet protocol. As third-party payment platforms involve more and more types of businesses, QUIC can adapt to various types of information transmission environments, such as payments, insurance, funds, stocks, mini-games, and/or blockchain. Different business scenarios have different requirements for information transmission, such as payment information requiring low latency, and different network conditions also have different adaptation requirements for information transmission, all of which QUIC can adapt to.

其中,客户端设备与服务端设备首次建立连接时,客户端设备发送初步客户端握手消息(inchoate client hello,简称CHLO消息或C_i_hello消息),等待接收接受消息(rejection,简称S_reject消息)的阶段可以称之为C_i_hello阶段。客户端设备发送客户端握手消息(full client hello,简称C_hello消息),等待接收加密的服务端握手消息(server hello,简称SHLO或S_hello消息)的阶段可以称之为C_hello阶段。当客户端设备与服务端设备首次建立连接时,客户端设备与服务端设备建立连接的过程可以称之为1-RTT过程。1-RTT过程包含C_i_hello阶段、C_hello阶段。在当客户端设备与服务端设备非首次建立连接时,客户端设备与服务端设备建立连接的过程可以称之为0-RTT过程(0RTT是指双方通信的第一个数据包就可以携带有效的业务数据),0-RTT过程直接从C_hello阶段开始。客户端设备与服务端设备建立连接之后客户端设备与服务端设备传输的加密包的阶段可以称之为会话阶段。The initial connection establishment between a client device and a server device involves two phases. The first phase involves the client device sending an initial client handshake message (inchoate client hello, or CHLO message, or C_i_hello message) and waiting to receive a rejection message (S_reject message). This phase is called the C_i_hello phase. The second phase involves the client device sending a full client handshake message (full client hello, or C_hello message) and waiting to receive an encrypted server handshake message (SHLO message, or S_hello message). This phase is called the C_hello phase. The connection establishment process between the client and server devices during this initial connection establishment can be called the 1-RTT process. The 1-RTT process includes the C_i_hello phase and the C_hello phase. When the client and server devices are not establishing a connection for the first time, the connection establishment process can be called the 0-RTT process (0RTT means that the first data packet in the communication between the two parties can carry valid business data). The 0-RTT process starts directly from the C_hello phase. The phase in which encrypted packets are transmitted between the client device and the server device after a connection is established can be called the session phase.

在这一处理过程中,往返时延(RTT Round-Trip Time):延是算机网络中它是一个重要的性能指标,表示从发送端发送数据开始,到发送端收到来自接收端的确认(接收端收到数据后可立即发送确认),总共经历的时延。通常,时延由发送时延、传播时延、排队时延、处理时延四个部分组成。In this process, Round-Trip Time (RTT) is an important performance indicator in computer networks. It represents the total time elapsed from the moment the sender begins sending data until the sender receives an acknowledgment from the receiver (the receiver can immediately send an acknowledgment after receiving the data). Typically, the delay consists of four parts: transmission delay, propagation delay, queuing delay, and processing delay.

(1)发送时延:发送时延是结点将数据分组发送到传输媒介所需要的时间,也就是从分组的第一个比特开始发送算起,到最后一个比特发送完毕所需要的时间。显然,发送时延与网络接口/信道的传输速率成反比,与数据分组的长度成正比。(1) Transmission delay: Transmission delay is the time required for a node to send a data packet to the transmission medium, that is, the time required from the start of sending the first bit of the packet to the completion of sending the last bit. Obviously, transmission delay is inversely proportional to the transmission rate of the network interface/channel and directly proportional to the length of the data packet.

(2)传播时延:传播时延是电磁波在信道中传播一定距离所需要花费的时间,传播时延和信道的传输速率无关,而是取决于传输媒介的长度,以及某种物理形式的信号在传输媒介中的传播速度。如电磁波在自由空间的传播速度是光速,即3×105km/s。电磁波在网络传输媒体中的传播速度比在自由空间中的传播速度要略低一些,在铜线中的传播速度约为2.3×105km/s,在光纤中的传播速度约为2.0×105km/s。(2) Propagation Delay: Propagation delay is the time required for an electromagnetic wave to travel a certain distance in a channel. Propagation delay is independent of the channel's transmission rate but depends on the length of the transmission medium and the propagation speed of a signal in that physical form within the medium. For example, the propagation speed of electromagnetic waves in free space is the speed of light, which is 3 × 10⁵ km/s. The propagation speed of electromagnetic waves in network transmission media is slightly lower than their propagation speed in free space; the propagation speed in copper wire is approximately 2.3 × 10⁵ km/s, and in optical fiber it is approximately 2.0 × 10⁵ km/s.

(3)排队时延:排队时延是分组在所经过的网络结点的缓存队列中排队所经历的时延,排队时延的长短主要取决于网络中当时的通信量,当网络的通信流量大时,排队时间就长,极端情况下,当网络发生拥塞导致分组丢失时,该结点的排队时延视为无穷大。此外,在有优先级算法的网络中,排队时延还取决于数据的优先级和结点的队列调度算法。(3) Queuing delay: Queuing delay is the time it takes for a packet to queue in the buffer queue of a network node. The length of queuing delay mainly depends on the current network traffic. When the network traffic is high, the queuing time is long. In extreme cases, when network congestion causes packet loss, the queuing delay of that node can be considered infinite. In addition, in networks with priority algorithms, queuing delay also depends on the data priority and the node's queue scheduling algorithm.

(4)处理时延:处理时延是分组在中间结点的存储转发过程中而进行的一些必要的处理所花费的时间,这些处理包括提取分组的首部,进行差错校验,为分组寻址和选路等。(4) Processing delay: Processing delay is the time spent on necessary processing during the storage and forwarding process of packets at intermediate nodes. These processes include extracting the packet header, performing error checking, addressing packets, and routing.

参考图6,图6为本发明实施例中0RTT原理示意图,其中,客户端首次建链发送InitCHLO给服务端,服务端必然响应REJ,REJ中带有SCFG,客户端会缓存此SCFG。这里,SCFG中包含有一个用来协商0RTT对称公用的非对称公钥。之后客户端发送Full CHLO(可携带请求数据)给服务端,两端完成对称密钥协商开始正常通信。Referring to Figure 6, which is a schematic diagram of the 0RTT principle in an embodiment of the present invention, the client sends an InitCHLO to the server for the initial connection establishment. The server will inevitably respond with a REJ, which contains an SCFG. The client will cache this SCFG. Here, the SCFG contains an asymmetric public key used to negotiate the 0RTT symmetric public key. Afterwards, the client sends a Full CHLO (which may carry request data) to the server, and the two ends complete the symmetric key negotiation and begin normal communication.

之后新建链时,客户端可以省略Init CHLO交换过程,直接发起Full CHLO(可携带请求数据,即early data)给服务端,两端利用各自缓存的SCFG及Full CHLO中的信息计算出对称密钥并进行请求响应处理,但是如图6所示的0RTT原理,0RTT的产生对于服务器集群的使用环境来说,不同QUIC服务器之间必须拥有相同的SCFG是0RTT的产生的必要条件;对于单机服务器的环境来说,不同QUIC进程之间必须拥有相同的SCFG是0RTT的产生的必要条件;而对于单进程的使用环境来说,及时更新SCFG确保每条全握手连接可获得未过期的SCFG是0RTT的产生的必要条件。但是实际使用中,SCFG是进程独自随机产生,同时使用环境中接入架构一般是多集群多机多进程,因此0RTT的比例过低,使得信息传输的时延增加。When establishing a new chain, the client can skip the Initial CHLO exchange process and directly initiate a Full CHLO (which can carry request data, i.e., early data) to the server. Both ends use their respective cached SCFGs and the information in the Full CHLO to calculate the symmetric key and process the request and response. However, as shown in Figure 6, the 0RTT principle requires that, for server cluster environments, different QUIC servers must have the same SCFG; for single-machine server environments, different QUIC processes must have the same SCFG; and for single-process environments, timely updating of the SCFG to ensure that each full handshake connection obtains an unexpired SCFG is necessary for 0RTT. However, in practice, the SCFG is randomly generated by each process, and the access architecture in the environment is generally multi-cluster, multi-machine, and multi-process, resulting in a low 0RTT ratio and increased information transmission latency.

步骤502:服务端对所述初步客户端握手数据进行解析,得到源地址令牌和服务端配置标识信息,其中,所述源地址令牌携带有服务端配置生成时使用的时间戳。Step 502: The server parses the initial client handshake data to obtain the source address token and server configuration identification information, wherein the source address token carries the timestamp used when the server configuration was generated.

在本申请所提供的信息传输方法中,源地址令牌携带有服务端配置生成时使用的时间戳,源地址令牌(Source-address token):是服务器先前提供的源地址令牌,具体表现为表1:In the information transmission method provided in this application, the source address token carries a timestamp used when the server configuration was generated. The source address token is a source address token previously provided by the server, as shown in Table 1.

表1Table 1

scfg gtm(8B)scfg gtm(8B) IP address(16B)IP address (16B) Timestamp(8B)Timestamp (8B) Reserve(24B)Reserve (24B) salt(12B)salt(12B)

其中,如表1所示,scfg gtm表示SCFG生成时使用的时间戳,IP address表示客户端IP地址,Timestamp表示源地址令牌(STK Source-AddressToken)生成时刻的时间戳,Reserve为保留字段,salt表示盐值。As shown in Table 1, scfg gtm represents the timestamp used when SCFG is generated, IP address represents the client IP address, Timestamp represents the timestamp when the source address token (STK Source-AddressToken) is generated, Reserve is a reserved field, and salt represents the salt value.

在本发明的一些实施例中,还可以为所述源地址令牌配置密钥字符串;当所述服务端对所述初步客户端握手数据进行解析时,基于所述密钥字符串生成对称密钥,以实现通过所述对称密钥对所述源地址令牌进行加密,其中,密钥字符串支持多个轮转(最多8个),通过所配置的密钥字符串,基于AES128算法可以生成对称密钥,由此,发送的表1所示的STK时,可以通过对表1所示的字段经过加密后的字节序列进行发送实现,避免信息传输时的数据泄露。In some embodiments of the present invention, a key string can also be configured for the source address token; when the server parses the initial client handshake data, a symmetric key is generated based on the key string to encrypt the source address token using the symmetric key. The key string supports multiple rotations (up to 8). A symmetric key can be generated based on the AES128 algorithm using the configured key string. Thus, when sending the STK shown in Table 1, it can be achieved by sending the encrypted byte sequence of the fields shown in Table 1, avoiding data leakage during information transmission.

同时,在STK进行加密传输时,加密STK,可以采用第一个密钥上下文进行加密。在解密STK可以,按密钥上下文顺序进行尝试解密,只要有一个解密成功就跳出循环,当且仅当所有密钥都解密失败的情况下才认为STK解密失败,由此,可以减少STK进行加密传输时被恶意破解的几率。Meanwhile, when STK is transmitted in encrypted form, the first key context can be used for encryption. When decrypting STK, attempts are made sequentially according to the key context. The loop breaks as soon as one key succeeds. STK is considered decryption failed only if all keys fail to decrypt. This reduces the chance of STK being maliciously cracked during encrypted transmission.

步骤503:服务端基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数,并且基于所述服务端配置参数查找目标服务端配置信息。Step 503: The server generates server configuration parameters based on the source address token and server configuration identification information, and searches for target server configuration information based on the server configuration parameters.

在本发明的一些实施例中,根据所述服务端和所述客户端的使用场景,对所述服务端配置参数的内容进行配置,其中所述服务端配置参数包括:服务端密钥信息、版本信息、有效期信息、生成算法信息;基于所述服务端和所述客户端的使用场景,对所述服务端配置参数的更新周期进行调整。In some embodiments of the present invention, the content of the server configuration parameters is configured according to the usage scenarios of the server and the client, wherein the server configuration parameters include: server key information, version information, validity period information, and generation algorithm information; and the update cycle of the server configuration parameters is adjusted based on the usage scenarios of the server and the client.

在本发明的一些实施例中,服务端配置信息SCFG的参数组成可以参考表2:In some embodiments of the present invention, the parameter composition of the server configuration information SCFG can be referred to Table 2:

表2Table 2

在表2所示的SCFG的参数组成中,PREFIX:固定为”SCFG”;KEXS:表示采用的密钥交换算法,比如C255、P256;AEAD:表示认证加密算法,比如AESG、S20P;PLAIN:表示明文算法类型,这里是内部业务自定义类型;EXPY:表示SCFG过期时间;Versions:表示当前Server支持的QUIC版本集合;GTM:表示生成此SCFG使用的时间戳;SNI:表示此SCFG对应的服务Server域名,可为NULL。In the SCFG parameter composition shown in Table 2, PREFIX is fixed as "SCFG"; KEXS indicates the key exchange algorithm used, such as C255 or P256; AEAD indicates the authentication encryption algorithm, such as AESG or S20P; PLAN indicates the plaintext algorithm type, which is an internal business-defined type; EXPY indicates the SCFG expiration time; Versions indicates the set of QUIC versions supported by the current server; GTM indicates the timestamp used to generate this SCFG; SNI indicates the service server domain name corresponding to this SCFG, which can be NULL.

在本发明的一些实施例中,基于所述服务端和所述客户端的使用场景,对所述服务端配置参数的更新周期进行调整,包括:In some embodiments of the present invention, the update cycle of the server configuration parameters is adjusted based on the usage scenarios of the server and the client, including:

当所述服务端和所述客户端的使用场景为自适应场景时,将所述服务端配置参数的更新周期配置为24小时,其中,所述服务端配置参数的更新周期的起始时间为每一个自然日的零时。由此,对于普通应用场景,0RTT比例可以从相关技术的不到10%,提升至85%+(以CLB应用场景为例)。When the usage scenario of the server and the client is an adaptive scenario, the update cycle of the server configuration parameters is configured to 24 hours, wherein the start time of the update cycle of the server configuration parameters is 0:00 of each natural day. Therefore, for ordinary application scenarios, the 0RTT ratio can be increased from less than 10% in related technologies to 85%+ (taking the CLB application scenario as an example).

在本发明的一些实施例中,基于所述服务端和所述客户端的使用场景,对所述服务端配置参数的更新周期进行调整,包括:In some embodiments of the present invention, the update cycle of the server configuration parameters is adjusted based on the usage scenarios of the server and the client, including:

当所述服务端和所述客户端的使用场景的安全性指数小于等于安全阈值时,为所述服务端配置参数配置服务端配置参数有效时间;当所述服务端和所述客户端的使用场景的安全性指数大于安全阈值时,为所述服务端配置参数配置服务端配置参数更新周期。由此,对安全不敏感的应用场景(安全性指数小于等于安全阈值的使用场景),0RTT比例可以提升至100%。需要说明的是,在本申请一些可选的实施例中,当安全性指数小于等于安全阈值时,说明服务端和客户端的使用场景处于低安全需求中,因此,可以同时配置长时间的SCFG有效期(例如3*24小时),以及配置长时间的SCFG更新周期(例如3*24小时);当安全性指数大于安全阈值时,说明服务端和客户端的使用场景处于高安全需求中,因此,可以同时配置短时间的SCFG有效期(例如1*24小时),以及配置短时间的SCFG更新周期(例如1*24小时),所使用的安全阈值可以根据使用场景进行固定,也可以固定时间间隔在安全阈值列表中进行轮询更新,对此,本申请实施例不做具体限定。When the security index of the usage scenario for both the server and the client is less than or equal to the security threshold, the server configuration parameters are configured with an effective duration; when the security index of the usage scenario for both the server and the client is greater than the security threshold, the server configuration parameters are configured with an update cycle. Therefore, for security-insensitive application scenarios (use scenarios where the security index is less than or equal to the security threshold), the 0RTT ratio can be increased to 100%. It should be noted that in some optional embodiments of this application, when the security index is less than or equal to the security threshold, it indicates that the usage scenario of the server and client is in a low security requirement. Therefore, a long SCFG validity period (e.g., 3*24 hours) and a long SCFG update cycle (e.g., 3*24 hours) can be configured simultaneously. When the security index is greater than the security threshold, it indicates that the usage scenario of the server and client is in a high security requirement. Therefore, a short SCFG validity period (e.g., 1*24 hours) and a short SCFG update cycle (e.g., 1*24 hours) can be configured simultaneously. The security threshold used can be fixed according to the usage scenario, or it can be updated in the security threshold list at fixed time intervals. This application does not specifically limit this.

在本发明的一些实施例中,基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数,并且基于所述服务端配置参数查找目标服务端配置信息,可以通过以下方式实现:In some embodiments of the present invention, server configuration parameters are generated based on the source address token and server configuration identification information, and target server configuration information is searched based on the server configuration parameters. This can be achieved in the following ways:

响应于所述服务端与所述客户端的连接请求,基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数;当所述服务端的不同进程均需要获取目标服务端配置信息时,通过一个进程基于所述服务端配置参数查找目标服务端配置信息,并且在所述服务端的不同进程之间共享所述目标服务端配置信息。其中,参考图7,图7为本发明实施例中服务端配置信息生成示意图,如图7所示,可以基于SCFG参数,及配置的SCFG密钥,采用HMAC算法,生成128的摘要信息,随后截取摘要信息中的不同区域用于生成SCFG的子TAG信息,这一过程中,仅需要SCFG在服务端与客户端的连接请求到来时,响应于连接请求生成。同时SCFG进程间共享,每个SCFG仅由一个进程负责生成,可以有效提升SCFG的共享效率,避免多进程间都要生成SCFG占用CPU和内存,避免热点服务器的形成,减少系统负载的同时减少服务器、云服务器(或者服务器集群)宕机的几率,保证系统的顺利运行。In response to the connection request between the server and the client, server configuration parameters are generated based on the source address token and server configuration identification information. When different processes of the server need to obtain the target server configuration information, one process searches for the target server configuration information based on the server configuration parameters, and the target server configuration information is shared among different processes of the server. Referring to Figure 7, which is a schematic diagram of server configuration information generation in this embodiment, as shown in Figure 7, a 128-bit digest information can be generated using the HMAC algorithm based on the SCFG parameters and the configured SCFG key. Different regions of the digest information are then extracted to generate sub-TAG information for the SCFG. In this process, the SCFG only needs to be generated in response to the connection request between the server and the client. Simultaneously, SCFG is shared between processes, with each SCFG generated by only one process, effectively improving the sharing efficiency of SCFG, avoiding the need for multiple processes to generate SCFGs, thus avoiding the formation of hot servers, reducing system load, and decreasing the probability of server/cloud server (or server cluster) downtime, ensuring smooth system operation.

步骤504:服务端当能够查找到所述目标服务端配置信息时,对所述服务端配置标识信息进行校验,得到所述服务端配置标识信息的校验结果。Step 504: When the server can find the target server configuration information, it verifies the server configuration identifier information and obtains the verification result of the server configuration identifier information.

步骤505:服务端基于所述服务端配置标识信息的校验结果,建立所述服务端与所述客户端的连接,并通过所述连接进行信息传输。Step 505: Based on the verification result of the server configuration identification information, the server establishes a connection between the server and the client, and transmits information through the connection.

在本发明的一些实施例中,当不能够查找到所述目标服务端配置信息时,对所述服务端配置装置生成时使用的时间戳进行校验;当所述服务端配置装置生成时使用的时间戳合法时,对原始目标服务端配置信息进行恢复,得到原始目标服务端配置信息;对所述原始目标服务端配置信息进行校验,并且基于所述原始服务端配置信息的校验结果,建立所述服务端与所述客户端的连接。In some embodiments of the present invention, when the target server configuration information cannot be found, the timestamp used when the server configuration device generates the configuration is verified; when the timestamp used when the server configuration device generates the configuration is valid, the original target server configuration information is restored to obtain the original target server configuration information; the original target server configuration information is verified, and based on the verification result of the original server configuration information, a connection between the server and the client is established.

在本发明的一些实施例中,基于所述服务端配置标识信息的校验结果,建立所述服务端与所述客户端的连接,并通过所述连接进行信息传输,可以通过以下方式实现:In some embodiments of the present invention, a connection is established between the server and the client based on the verification result of the server-side configuration identification information, and information is transmitted through the connection. This can be achieved in the following ways:

当所述信息的类型为用户数据报协议流量信息时,通过解析对应的用户数据报协议,得到目标域名和端口信息;通过向域名系统发送查询信息,获得所述目标域名对应的目标互联网协议地址;将所述目标域名对应的目标互联网协议地址、端口信息以及所述流量信息发送至对应的服务端;所述服务端对所述目标流量信息进传输处理。这一过程中,客户端设备在接收到S_reject消息之后,客户端设备可以验证S_reject消息中SCFG是否正确和SCFG的有效期,如果验证通过,客户端设备可以生成客户端的私钥和客户端的公钥,以保证加密用户数据报协议流量信息的准确传输。When the information type is User Datagram Protocol (UDP) traffic information, the target domain name and port information are obtained by parsing the corresponding UDP; the target Internet Protocol (IP) address corresponding to the target domain name is obtained by sending a query to the Domain Name System (DNS); the target IP address, port information, and traffic information are sent to the corresponding server; the server processes the target traffic information. During this process, after receiving the S_reject message, the client device can verify the correctness and validity period of the SCFG in the S_reject message. If the verification is successful, the client device can generate its private key and public key to ensure the accurate transmission of encrypted UDP traffic information.

在本发明的一些实施例中,还可以根据用户数据报协议流量对应的流量辅助信息,确定用户数据报协议流量对应的源端口信息、源互联网协议地址、目标互联网协议地址以及目标端口信息。通过用户数据报协议,将源端口信息、源互联网协议地址、目标互联网协议地址以及目标端口信息发送至对应的代理服务器;代理服务器对经过终端所传输的信息进行加速处理,以节省信息的传输时通过代理服务器的时间。In some embodiments of the present invention, the source port information, source Internet Protocol address, destination Internet Protocol address, and destination port information corresponding to the User Datagram Protocol (UDP) traffic can also be determined based on the traffic auxiliary information corresponding to the UDP traffic. The source port information, source Internet Protocol address, destination Internet Protocol address, and destination port information are then sent to the corresponding proxy server via UDP. The proxy server accelerates the processing of information transmitted through the terminal to save time spent transmitting information through the proxy server.

在本发明的一些实施例中,当所述信息类型为云服务器信息时,确定目标用户的标识信息;基于云服务器网络,确定与所述标识信息相匹配的数据源集群;根据所述数据源集群,向云服务器中存储与目标用户相匹配的云服务器历史记录。由此,可以对云服务器网络中的信息传输进行处理,在云服务器的使用环境中,云服务器集群、客户端以及进程中的SCFG信息是一致的,不会因为多集群多机器多进程部署而出现合法SCFG找不到的情况,可以极大提升QUIC服务0RTT比例,减少1RTT握手协商过程中签名机制对CPU的消耗,降低云服务器的运营成本。In some embodiments of the present invention, when the information type is cloud server information, the identification information of the target user is determined; based on the cloud server network, a data source cluster matching the identification information is determined; and according to the data source cluster, the cloud server historical records matching the target user are stored in the cloud server. Thus, information transmission in the cloud server network can be processed. In the cloud server usage environment, the SCFG information in the cloud server cluster, client, and process is consistent, preventing situations where a valid SCFG cannot be found due to multi-cluster, multi-machine, and multi-process deployment. This can greatly improve the 0RTT ratio of QUIC service, reduce the CPU consumption of the signature mechanism during the 1RTT handshake negotiation process, and lower the operating cost of the cloud server.

为了更好地说明本申请所提供的信息传输方法的使用过程,参考图8,以多服务器集群中的信息传输为例对本申请通过提供的信息传输方法进行说明,图8为本发明实施例中信息传输方法的场景示意图,其中,QUIC服务常见架构如图8所示,包括:多服务器集群的信息传输、多终端的信息传输以及多进程的信息传输。其中,多服务器集群的信息传输为例,QUIC服务架构可以同时支持商务云服务器、即时通讯软件服务器、金融交易服务器、视频播放软件服务器以及短视频广告投放服务器以及在线办公服务器集群以及电商服务器集群的信息处理,对于不同的业务场景对信息传输有不同的要求,比如支付信息需要低时延,不同的网络条件对信息传输也有不同的适应需求,图8所示的QUIC服务架构都能适应,具体来说,图8所示的QUIC服务架构需要负载均衡(Cloud Load Balancer,CLB)提供安全快捷的流量分发服务,访问流量经由CLB可以自动分配到云中的多台云服务器上,扩展系统的服务能力并消除单点故障。负载均衡支持亿级连接和千万级并发,可轻松应对大流量访问,满足业务需求CLB单集群(非单个CLB实例)的最大并发连接数超过1.2亿,可处理最大40Gbps的流量带宽,每秒处理600万包数据量,可以应用于日访问量超过千万的电商网站、社交平台和游戏业务图8所示的一组CLB集群由4台物理服务器组成,CLB可用性高达99.95%。在单台CLB实例可用的极端情况下,仍可支撑3000万以上的并发连接数,参考图9,图9为本发明实施例提供的信息传输方法一个可选的流程示意图,在进行数据传输时,首先建立连接包括以下步骤:To better illustrate the usage process of the information transmission method provided in this application, referring to Figure 8, the information transmission method provided in this application will be described using information transmission in a multi-server cluster as an example. Figure 8 is a schematic diagram of the information transmission method in an embodiment of the present invention, where the common architecture of the QUIC service is shown in Figure 8, including: information transmission in a multi-server cluster, information transmission in a multi-terminal cluster, and information transmission in a multi-process cluster. Taking information transmission in a multi-server cluster as an example, the QUIC service architecture can simultaneously support information processing of business cloud servers, instant messaging software servers, financial transaction servers, video playback software servers, short video advertising servers, online office server clusters, and e-commerce server clusters. Different business scenarios have different requirements for information transmission. For example, payment information requires low latency, and different network conditions also have different adaptation requirements for information transmission. The QUIC service architecture shown in Figure 8 can adapt to all of these. Specifically, the QUIC service architecture shown in Figure 8 requires a Cloud Load Balancer (CLB) to provide secure and fast traffic distribution services. Access traffic can be automatically distributed to multiple cloud servers in the cloud via the CLB, expanding the system's service capacity and eliminating single points of failure. The load balancer supports hundreds of millions of connections and tens of millions of concurrent connections, easily handling high-traffic access and meeting business needs. A single CLB cluster (not a single CLB instance) can handle over 120 million concurrent connections, processing up to 40Gbps of bandwidth and 6 million data packets per second. It can be applied to e-commerce websites, social platforms, and gaming businesses with daily visits exceeding tens of millions. Figure 8 shows a CLB cluster consisting of 4 physical servers, with a CLB availability of up to 99.95%. Even in extreme cases where a single CLB instance is available, it can still support over 30 million concurrent connections. Referring to Figure 9, which is an optional flowchart of the information transmission method provided in this embodiment, establishing a connection during data transmission includes the following steps:

步骤901:服务器收到CHLO包。Step 901: The server receives the CHLO packet.

步骤902:服务器解析CHLO中TAG提取SCID、STK。Step 902: The server parses the TAG in CHLO to extract SCID and STK.

步骤903:服务器判断解析是否成功,如果是执行步骤904,否则执行步骤905。Step 903: The server determines whether the parsing was successful. If it was, proceed to step 904; otherwise, proceed to step 905.

步骤904:服务器触发STK校验。Step 904: The server triggers STK verification.

步骤905:服务器HS_ERROR,进入异常处理逻辑。Step 905: Server HS_ERROR, enter exception handling logic.

步骤906:服务器判断会话中是否已有sstk,如果是执行步骤907,否则执行步骤908。Step 906: The server determines whether sstk already exists in the session. If it does, proceed to step 907; otherwise, proceed to step 908.

步骤907:服务器直接二进制比较。Step 907: Server-side direct binary comparison.

步骤908:服务器进行解密,提取STK携带的字段SCFG gtm、addr、timestamp,并做合法性校验。Step 908: The server decrypts the STK, extracts the fields SCFG gtm, addr, and timestamp, and performs a validity check.

步骤909:服务器判断STK校验成功,如果是执行步骤910,否则执行步骤911。Step 909: The server determines that the STK verification is successful. If so, proceed to step 910; otherwise, proceed to step 911.

步骤910:服务器根据配置及STK中提取的gtm并获取SCFG。Step 910: The server obtains the SCFG based on the configuration and the gtm extracted from STK.

步骤911:服务器记录stk校验结果。Step 911: The server records the stk verification result.

步骤912:服务器获取CHLO校验及结果SCID/SNO/XLCT。Step 912: The server obtains the CHLO verification and the results SCID/SNO/XLCT.

步骤913:服务器判断是否为0RTT,如果是执行步骤910,否则执行步骤911Step 913: The server checks if the RTT is 0. If it is, proceed to step 910; otherwise, proceed to step 911.

步骤914:服务器记录并生成RREJ,进入1RTT握手流程。Step 914: The server records and generates RREJ, and enters the 1RTT handshake process.

步骤915:服务器生成SHLO,完成0RTT握手,并且进行正常请求通信。Step 915: The server generates a SHLO, completes the 0RTT handshake, and initiates normal request communication.

综上所述,本发明实施例具有以下技术效果:In summary, the embodiments of the present invention have the following technical effects:

本发明实施例通过服务端接收客户端传输的初步客户端握手数据;所述服务端对所述初步客户端握手数据进行解析,得到源地址令牌和服务端配置标识信息,其中,所述源地址令牌携带有服务端配置生成时使用的时间戳;基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数,并且基于所述服务端配置参数查找目标服务端配置信息;当能够查找到所述目标服务端配置信息时,对所述服务端配置标识信息进行校验,得到所述服务端配置标识信息的校验结果;基于所述服务端配置标识信息的校验结果,建立所述服务端与所述客户端的连接,并通过所述连接进行信息传输。由此,能够降低QUIC场景中对各种类型的场景中的数据传输时的往返时延,提升信息传输的效率,又能够减少QUIC场景中数据传输泄露的风险,保证数据传输的安全性。This invention embodiment receives preliminary client handshake data transmitted by a client from a server. The server parses the preliminary client handshake data to obtain a source address token and server configuration identification information. The source address token carries a timestamp used when the server configuration was generated. Based on the source address token and server configuration identification information, server configuration parameters are generated, and target server configuration information is searched based on these parameters. When the target server configuration information is found, the server configuration identification information is verified to obtain a verification result. Based on the verification result, a connection is established between the server and the client, and information is transmitted through this connection. This reduces round-trip latency for data transmission in various scenarios within a QUIC environment, improves information transmission efficiency, reduces the risk of data transmission leakage in QUIC environments, and ensures data transmission security.

以上所述,仅为本发明的实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above description is merely an embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims (15)

1.一种信息传输方法,其特征在于,所述方法包括:1. An information transmission method, characterized in that the method comprises: 服务端接收客户端传输的初步客户端握手数据;The server receives the initial client handshake data transmitted by the client; 所述服务端对所述初步客户端握手数据进行解析,得到源地址令牌和服务端配置标识信息,其中,所述源地址令牌携带有服务端配置生成时使用的时间戳;The server parses the initial client handshake data to obtain the source address token and server configuration identification information, wherein the source address token carries the timestamp used when the server configuration was generated; 基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数,并且基于所述服务端配置参数查找目标服务端配置信息;Based on the source address token and server configuration identification information, server configuration parameters are generated, and the target server configuration information is found based on the server configuration parameters. 当能够查找到所述目标服务端配置信息时,对所述服务端配置标识信息进行校验,得到所述服务端配置标识信息的校验结果;When the target server configuration information can be found, the server configuration identification information is verified to obtain the verification result of the server configuration identification information. 基于所述服务端配置标识信息的校验结果,建立所述服务端与所述客户端的连接,并通过所述连接进行信息传输。Based on the verification result of the server configuration identification information, a connection is established between the server and the client, and information is transmitted through the connection. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 当不能够查找到所述目标服务端配置信息时,对所述服务端配置装置生成时使用的时间戳进行校验;When the target server configuration information cannot be found, the timestamp used when the server configuration device was generated is verified. 当所述服务端配置装置生成时使用的时间戳合法时,对原始目标服务端配置信息进行恢复,得到原始目标服务端配置信息;When the timestamp used by the server configuration device during generation is valid, the original target server configuration information is restored to obtain the original target server configuration information. 对所述原始目标服务端配置信息进行校验,并且基于所述原始服务端配置信息的校验结果,建立所述服务端与所述客户端的连接。The original target server configuration information is verified, and based on the verification result of the original server configuration information, a connection is established between the server and the client. 3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, characterized in that the method further comprises: 为所述源地址令牌配置密钥字符串;Configure a key string for the source address token; 当所述服务端对所述初步客户端握手数据进行解析时,基于所述密钥字符串生成对称密钥,以实现通过所述对称密钥对所述源地址令牌进行加密。When the server parses the initial client handshake data, it generates a symmetric key based on the key string to encrypt the source address token using the symmetric key. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, characterized in that the method further comprises: 根据所述服务端和所述客户端的使用场景,对所述服务端配置参数的内容进行配置,其中所述服务端配置参数包括:服务端密钥信息、版本信息、有效期信息、生成算法信息;Based on the usage scenarios of the server and the client, the content of the server configuration parameters is configured, wherein the server configuration parameters include: server key information, version information, validity period information, and generation algorithm information; 基于所述服务端和所述客户端的使用场景,对所述服务端配置参数的更新周期进行调整。Based on the usage scenarios of the server and the client, the update cycle of the server configuration parameters is adjusted. 5.根据权利要求4所述的方法,其特征在于,所述基于所述服务端和所述客户端的使用场景,对所述服务端配置参数的更新周期进行调整,包括:5. The method according to claim 4, characterized in that, adjusting the update cycle of the server configuration parameters based on the usage scenarios of the server and the client includes: 当所述服务端和所述客户端的使用场景为自适应场景时,将所述服务端配置参数的更新周期配置为24小时,其中,所述服务端配置参数的更新周期的起始时间为每一个自然日的零时。When the usage scenario of the server and the client is an adaptive scenario, the update cycle of the server configuration parameters is configured to be 24 hours, wherein the start time of the update cycle of the server configuration parameters is 00:00 of each natural day. 6.根据权利要求4所述的方法,其特征在于,所述基于所述服务端和所述客户端的使用场景,对所述服务端配置参数的更新周期进行调整,包括:6. The method according to claim 4, characterized in that, adjusting the update cycle of the server configuration parameters based on the usage scenarios of the server and the client includes: 当所述服务端和所述客户端的使用场景的安全性指数小于等于安全阈值时,为所述服务端配置参数配置服务端配置参数有效时间;When the security index of the usage scenario of the server and the client is less than or equal to the security threshold, configure the server configuration parameters for an effective time. 当所述服务端和所述客户端的使用场景的安全性指数大于安全阈值时,为所述服务端配置参数配置服务端配置参数更新周期。When the security index of the usage scenario of the server and the client is greater than the security threshold, configure the server configuration parameter update cycle. 7.根据权利要求1所述的方法,其特征在于,所述基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数,并且基于所述服务端配置参数查找目标服务端配置信息,包括:7. The method according to claim 1, characterized in that, generating server configuration parameters based on the source address token and server configuration identification information, and searching for target server configuration information based on the server configuration parameters, includes: 响应于所述服务端与所述客户端的连接请求,基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数;In response to the connection request between the server and the client, server configuration parameters are generated based on the source address token and server configuration identification information; 当所述服务端的不同进程均需要获取目标服务端配置信息时,通过一个进程基于所述服务端配置参数查找目标服务端配置信息,并且在所述服务端的不同进程之间共享所述目标服务端配置信息。When different processes of the server need to obtain the target server configuration information, one process searches for the target server configuration information based on the server configuration parameters, and the target server configuration information is shared among different processes of the server. 8.根据权利要求1所述的方法,其特征在于,所述基于所述服务端配置标识信息的校验结果,建立所述服务端与所述客户端的连接,并通过所述连接进行信息传输,包括:8. The method according to claim 1, characterized in that, establishing a connection between the server and the client based on the verification result of the server-side configuration identifier information, and transmitting information through the connection, includes: 当所述信息的类型为用户数据报协议流量信息时,When the type of the information is User Datagram Protocol (UDP) traffic information 通过解析对应的用户数据报协议,得到目标域名和端口信息;By parsing the corresponding User Datagram Protocol (UDP), the target domain name and port information can be obtained; 通过向域名系统发送查询信息,获得所述目标域名对应的目标互联网协议地址;将所述目标域名对应的目标互联网协议地址、端口信息以及所述流量信息发送至对应的服务端;By sending a query to the Domain Name System, the target Internet Protocol address corresponding to the target domain name is obtained; the target Internet Protocol address, port information, and traffic information corresponding to the target domain name are then sent to the corresponding server. 所述服务端对所述目标流量信息进传输处理。The server performs transmission processing on the target traffic information. 9.根据权利要求8所述的方法,其特征在于,所述方法还包括:9. The method according to claim 8, characterized in that the method further comprises: 当所述信息类型为云服务器信息时,确定目标用户的标识信息;When the information type is cloud server information, the target user's identification information is determined; 基于云服务器网络,确定与所述标识信息相匹配的数据源集群;Based on the cloud server network, determine the data source cluster that matches the identification information; 根据所述数据源集群,向云服务器中存储与目标用户相匹配的云服务器历史记录。Based on the data source cluster, store the cloud server historical records that match the target user in the cloud server. 10.一种信息传输装置,其特征在于,所述装置包括:10. An information transmission device, characterized in that the device comprises: 信息传输模块,用于服务端接收客户端传输的初步客户端握手数据;The information transmission module is used by the server to receive the initial client handshake data transmitted by the client. 信息处理模块,用于所述服务端对所述初步客户端握手数据进行解析,得到源地址令牌和服务端配置标识信息,其中,所述源地址令牌携带有服务端配置装置生成时使用的时间戳;The information processing module is used by the server to parse the initial client handshake data to obtain the source address token and server configuration identification information, wherein the source address token carries a timestamp used by the server configuration device when it was generated; 所述信息处理模块,用于基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数,并且基于所述服务端配置参数查找目标服务端配置信息;The information processing module is used to generate server configuration parameters based on the source address token and server configuration identification information, and to search for target server configuration information based on the server configuration parameters. 所述信息处理模块,用于当能够查找到所述目标服务端配置信息时,对所述服务端配置标识信息进行校验,得到所述服务端配置标识信息的校验结果;The information processing module is used to verify the server configuration identification information when the target server configuration information can be found, and to obtain the verification result of the server configuration identification information. 所述信息处理模块,用于基于所述服务端配置标识信息的校验结果,建立所述服务端与所述客户端的连接,并通过所述连接进行信息传输。The information processing module is used to establish a connection between the server and the client based on the verification result of the server configuration identification information, and to transmit information through the connection. 11.根据权利要求10所述的装置,其特征在于,11. The apparatus according to claim 10, characterized in that, 所述信息处理模块,用于当不能够查找到所述目标服务端配置信息时,对所述服务端配置装置生成时使用的时间戳进行校验;The information processing module is used to verify the timestamp used when the server configuration device generates the configuration information when the target server configuration information cannot be found. 所述信息处理模块,用于当所述服务端配置装置生成时使用的时间戳合法时,对原始目标服务端配置信息进行恢复,得到原始目标服务端配置信息;The information processing module is used to restore the original target server configuration information when the timestamp used by the server configuration device during generation is valid, and obtain the original target server configuration information. 所述信息处理模块,用于对所述原始目标服务端配置信息进行校验,并且基于所述原始服务端配置信息的校验结果,建立所述服务端与所述客户端的连接。The information processing module is used to verify the original target server configuration information and establish a connection between the server and the client based on the verification result of the original server configuration information. 12.根据权利要求10所述的装置,其特征在于,12. The apparatus according to claim 10, characterized in that, 所述信息处理模块,用于响应于所述服务端与所述客户端的连接请求,基于所述源地址令牌和服务端配置标识信息,生成服务端配置参数;The information processing module is used to respond to the connection request between the server and the client, and generate server configuration parameters based on the source address token and server configuration identification information; 所述信息处理模块,用于当所述服务端的不同进程均需要获取目标服务端配置信息时,通过一个进程基于所述服务端配置参数查找目标服务端配置信息,并且在所述服务端的不同进程之间共享所述目标服务端配置信息。The information processing module is used to, when different processes of the server need to obtain the target server configuration information, use one process to search for the target server configuration information based on the server configuration parameters, and share the target server configuration information among different processes of the server. 13.一种软件程序,其特征在于,所述软件程序包括:13. A software program, characterized in that the software program comprises: 存储器,用于存储可执行指令;Memory, used to store executable instructions; 处理器,用于运行所述存储器存储的可执行指令时,实现权利要求1至9任一项所述的信息传输方法。A processor, when executing executable instructions stored in the memory, implements the information transmission method according to any one of claims 1 to 9. 14.一种电子设备,其特征在于,所述电子设备包括:14. An electronic device, characterized in that the electronic device comprises: 存储器,用于存储可执行指令;Memory, used to store executable instructions; 处理器,用于运行所述存储器存储的可执行指令时,实现权利要求1至9任一项所述的信息传输方法。A processor, when executing executable instructions stored in the memory, implements the information transmission method according to any one of claims 1 to 9. 15.一种计算机可读存储介质,存储有可执行指令,其特征在于,所述可执行指令被处理器执行时实现权利要求1至9任一项所述的信息传输方法。15. A computer-readable storage medium storing executable instructions, characterized in that, when the executable instructions are executed by a processor, they implement the information transmission method according to any one of claims 1 to 9.
HK42023079590.8A 2023-09-22 Information transmission method, device, electronic equipment, software program and storage medium HK40091441A (en)

Publications (1)

Publication Number Publication Date
HK40091441A true HK40091441A (en) 2023-12-08

Family

ID=

Similar Documents

Publication Publication Date Title
US10581907B2 (en) Systems and methods for network access control
US10567348B2 (en) Method for SSL optimization for an SSL proxy
US12028378B2 (en) Secure communication session resumption in a service function chain preliminary class
US8533453B2 (en) Method and system for configuring a server and dynamically loading SSL information
US11303431B2 (en) Method and system for performing SSL handshake
US12363162B2 (en) End-to-end TCP monitoring during application migration
US11979457B2 (en) Managing network services using multipath protocols
US11968238B2 (en) Policy management system to provide authorization information via distributed data store
US12407714B2 (en) Application migration vulnerability and device performance monitoring
US11323529B2 (en) TCP fast open hardware support in proxy devices
US8887280B1 (en) Distributed denial-of-service defense mechanism
US11606193B2 (en) Distributed session resumption
EP4531345A1 (en) Methods for generating client-executable actions through tls parameters and devices thereof
CN106797384B (en) Routing requests to the same endpoint in a cluster in different protocols
CN108718268B (en) Method for improving concurrent processing performance of VPN (virtual private network) server
CN114979237B (en) Long connection verification method, device, equipment and readable storage medium
CN116248268A (en) Processing method, device and readable storage medium of national secret handshake request
EP4531346A1 (en) Methods for generating an action based on tls parameters and devices thereof
US12360911B2 (en) Cache purging in a distributed networked system
HK40091441A (en) Information transmission method, device, electronic equipment, software program and storage medium
WO2024109262A1 (en) Information processing method and apparatus, and storage medium
US11330074B2 (en) TCP (transmission control protocol) fast open for classification acceleration of cache misses in a network processor
CN116418661A (en) Information transmission method, apparatus, electronic device, software program, and storage medium
US11647072B2 (en) Methods and apparatus for efficient failure recovery and scaling of a communications system
US20070147376A1 (en) Router-assisted DDoS protection by tunneling replicas