WO2015158064A1 - 一种通信协议转换方法及装置、存储介质 - Google Patents

一种通信协议转换方法及装置、存储介质 Download PDF

Info

Publication number
WO2015158064A1
WO2015158064A1 PCT/CN2014/083473 CN2014083473W WO2015158064A1 WO 2015158064 A1 WO2015158064 A1 WO 2015158064A1 CN 2014083473 W CN2014083473 W CN 2014083473W WO 2015158064 A1 WO2015158064 A1 WO 2015158064A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication protocol
configuration file
file information
server
message data
Prior art date
Application number
PCT/CN2014/083473
Other languages
English (en)
French (fr)
Inventor
李忠良
屠趁锋
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015158064A1 publication Critical patent/WO2015158064A1/zh

Links

Classifications

    • 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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a communication protocol conversion method and apparatus, and a storage medium. Background technique
  • Nginx is a lightweight web server, also an IMAP (Internet Mail Access Protocol) / P0P3 (Post Office Protocol- Version 3) / SMTP (Simple Mail Transfer Protocol, Simple Mail Transfer Protocol) Proxy Server, developed by Russian programmer Igor Sysoev, a performance-oriented HTTP (Hyper Text Transfer Protocol) server with memory usage compared to Apache and lighttpd Less, high stability and other advantages.
  • IMAP Internet Mail Access Protocol
  • P0P3 Post Office Protocol- Version 3
  • SMTP Simple Mail Transfer Protocol, Simple Mail Transfer Protocol
  • Proxy Server developed by Russian programmer Igor Sysoev, a performance-oriented HTTP (Hyper Text Transfer Protocol) server with memory usage compared to Apache and lighttpd Less, high stability and other advantages.
  • the Nginx is mainly used as a proxy server to forward a small number of protocols, such as the HTTP mail protocol, which is limited to the application scenarios of the same protocol type on the front and rear ends, and cannot implement applications with different types of front and rear end protocols;
  • a small number of protocols such as the HTTP mail protocol
  • the embodiments of the present invention provide a communication protocol conversion method and apparatus, and a storage medium, which can solve the problem that the Nginx server has limitations on applications of different protocol types at the front and rear ends.
  • an embodiment of the present invention provides a communication protocol conversion method, where the method includes: acquiring configuration file information of a server, and opening and configuring information according to the configuration file information. a communication protocol processing flow corresponding to the recorded communication protocol information;
  • the corresponding message data is received through one or more communication protocol processing flows, and the message data is protocol converted according to the configuration file information.
  • receiving, by one or more communication protocol processing flows, message data corresponding thereto, and performing protocol conversion on the message data according to the configuration file information includes:
  • Parsing the link request converting the parsed link request into a communication protocol used by the server, and transmitting it to the server through the communication link; listening to the data sent by the server through the communication link, and inversely converting the data to the client
  • the communication protocol is sent to the client.
  • the method further includes: if receiving a plurality of sub-packets that belong to the same message data sent by the client, buffering the received plurality of sub-packets to the local, and receiving the data belonging to the same message After all the sub-packets, the message data is protocol-converted according to the configuration file information, and sent to the server at one time.
  • the communication protocol processing flow corresponding to the communication protocol information recorded in the configuration file information is started according to the configuration file information, including:
  • the communication protocol processing flow corresponding to the communication protocol information recorded in the configuration file information is simultaneously performed by one or more processes opened according to the configuration file information;
  • the method further comprises: determining a communication protocol processing flow for processing the message data according to the configuration file information.
  • the method further includes: when there is a process that is overloaded or stops working in one or more processes that are started according to the profile information, start a process of replacing the overloaded or stopped work according to the configuration file information.
  • an embodiment of the present invention further provides a protocol conversion apparatus, where the apparatus includes a protocol opening module and a protocol conversion module, where:
  • the protocol opening module is configured to obtain configuration file information of the server, and start a communication protocol processing process corresponding to the communication protocol information recorded in the configuration file information according to the configuration file information;
  • the protocol conversion module is configured to receive the message data corresponding thereto through one or more communication protocol processing flows, and perform protocol conversion on the message data according to the configuration file information.
  • the protocol conversion module comprises a determining unit, a first protocol converting unit and a second protocol converting unit, wherein:
  • the determining unit is configured to receive a link request of the client through a corresponding communication protocol processing flow, determine a communication protocol used by the server corresponding to the link request according to the configuration file information, and establish a communication link with the server;
  • the first protocol conversion unit is configured to parse the link request, convert the parsed link request into a communication protocol used by the server, and send the message to the server through the communication link;
  • the second protocol conversion unit configured In order to listen to the data sent by the server through the communication link, the data is inversely converted into a communication protocol used by the client, and sent to the client.
  • the device further includes a cache module configured to cache the received plurality of sub-packets to the local device when receiving the plurality of sub-packets that belong to the same message data sent by the client, and receive the same After all the sub-packets of the message data, the message data is protocol-converted according to the configuration file information, and sent to the server at one time.
  • a cache module configured to cache the received plurality of sub-packets to the local device when receiving the plurality of sub-packets that belong to the same message data sent by the client, and receive the same After all the sub-packets of the message data, the message data is protocol-converted according to the configuration file information, and sent to the server at one time.
  • the protocol opening module is further configured to perform, by one or more processes opened according to the configuration file information, a communication protocol processing flow corresponding to the communication protocol information recorded in the configuration file information, respectively;
  • the apparatus further includes a determining module configured to: before the protocol conversion module receives the corresponding message data through one or more of the communication protocol processing flows, according to The profile information determines the communication protocol processing flow for processing the message data.
  • the device further includes a replacement unit configured to: when there is a process that is overloaded or stops working in one or more processes that are started according to the profile information, initiate replacement overload or stop working according to the configuration file information. process.
  • a replacement unit configured to: when there is a process that is overloaded or stops working in one or more processes that are started according to the profile information, initiate replacement overload or stop working according to the configuration file information. process.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing communication protocol conversion method.
  • the communication protocol processing flow corresponding to the communication protocol information recorded in the configuration file information is started according to the configuration file information, and one or more communication protocols are adopted.
  • the processing flow receives the corresponding message data, and performs protocol conversion on the message data according to the configuration file information; thus, the application of the Nginx server with different protocol types of the front-end server and the proxy of the Nginx server to any protocol are improved, The versatility of the Nginx server.
  • 1-1 is a flowchart of a communication protocol conversion method according to an embodiment of the present invention.
  • FIG 1-2 is a flowchart of the implementation of step 102 in Figure 1;
  • FIG. 2 is a schematic diagram of a system for implementing a communication protocol conversion method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another system for implementing a communication protocol conversion method according to an embodiment of the present invention
  • 5-1 is a structural block diagram of a communication protocol conversion apparatus according to an embodiment of the present invention.
  • Figure 5-2 is a structural block diagram of the protocol conversion module 52 in Figure 5-1;
  • FIG. 6 is a schematic structural diagram of internal communication protocol conversion processing of each working process in an Nginx server according to an embodiment of the present invention. detailed description
  • FIG. 1-1 is a flowchart of a communication protocol conversion method according to an embodiment of the present invention. As shown in FIG. 1-1, the method includes the following specific steps:
  • Step 101 Obtain configuration file information of the Nginx server, and start a communication protocol processing flow corresponding to the communication protocol information recorded in the configuration file information according to the configuration file information;
  • Step 102 Receive, by one or more communication protocol processing flows, message data corresponding thereto, and perform protocol conversion on the message data according to the configuration file information.
  • step 102 may specifically include the following steps:
  • Step 121 Receive a link request of the client by using a corresponding communication protocol processing flow, determine a communication protocol used by the server corresponding to the link request according to the configuration file information, and establish a communication link with the server;
  • Step 122 Parse the link request, convert the parsed link request into a communication protocol used by the server, and send the communication protocol to the server through the communication link;
  • Step 123 Listening to the data sent by the server through the communication link, inversely converting the data into a communication protocol used by the client, and sending the data to the client.
  • the foregoing communication protocol conversion method may be divided into two processes: a server power-on initialization phase and a server normal operation.
  • the foregoing step 101 is a step performed by the power-on initialization segment, and the purpose of the power-on initialization phase is mainly By reading the server configuration file information, it is determined which communication protocol processing flow in the server is started according to the protocol conversion configuration information in the configuration file information to start one or more protocol processing flows, and one or more processes opened according to the configuration file. The one or more protocol processing flows are performed simultaneously.
  • FIG. 2 is a schematic diagram of a system for implementing the communication protocol conversion method.
  • nignx monitors multiple processes of the server to obtain configuration file information. If the configuration file information includes the protocol B, the protocol B processing flow is started, and in the subsequent process, the protocol B performs data analysis and data link management.
  • the configuration file may also include the A protocol C protocol and the like shown in FIG. 2, so that when the message data is received subsequently, the communication protocol processing flow for processing the message data is determined according to the configuration file information, specifically , according to the port information in the specific profile information in the configuration information, and
  • IP Internet Protocol
  • Nginx can also be used to monitor the progress of each process. If a work process is found to be overloaded or other causes cause the process to stop, the new work process will be started according to the configuration file information to replace the original work process.
  • the number of Nginx worker processes can be set to be configurable and can be configured in the server's configuration file.
  • the content of the configuration file of the server may specifically include the following information:
  • websocket means that the front end is based on TCP (Transmission Control Protocol, “Transmission Control Protocol”request;”Socket_read_timeout” means front-end read timeout; “websocket_send_timeout” means front-end write timeout; “websocket-buffer” means read buffer buffer size; “udp -resend_timeout” indicates the retransmission timeout interval of the backend; "upstream” indicates that the backend server information is configured; “server” indicates that the Nginx service information is configured; “listen” indicates the listening port; “udp_pass backend” indicates that the backend protocol is UDP (User Datagram Protocol), and sent to the backend server named backend.
  • TCP Transmission Control Protocol, "Transmission Control Protocol”request;
  • Socket_read_timeout means front-end read timeout;
  • websocket_send_timeout means front-end write timeout;
  • websocket-buffer means
  • Step 102 is a process in which the server works normally.
  • FIG. 3 shows a process of implementing protocol conversion based on the communication protocol conversion system.
  • the configuration file information is obtained, and the related protocol processing flow switch is opened according to the configuration file information. , enter the normal working stage.
  • a variety of communication protocols can be stored in the server, such as the A protocol, the B protocol, the C protocol, and the D protocol.
  • the server receives the X protocol-based link request from the client, the server performs corresponding link management according to the configuration file information, and searches for the information of the server according to the configuration file information, and determines the communication protocol corresponding to the server according to the found information.
  • the server establishes a corresponding link with the server of the server, receives the client data, and performs data processing, including protocol format conversion of the message content, specifically, parsing the received client message data, and parsing the
  • the message data is converted into a communication protocol format corresponding to the server. As shown in FIG. 3, the message data of the X protocol is converted into the Y protocol, and the converted data is sent to the server through the link of the server.
  • the data to be sent is reversely transformed by the protocol, the message data to be sent is parsed, and the parsed message data is converted into a message sent by the client.
  • the protocol format is sent to the client through the client's link.
  • the buffer shown in Figure 3 is used when the amount of data received from the client message is too large. For example, if multiple sub-packets that are sent from the client and belong to the same message data are received, the received multiple sub-packets are cached locally, and after receiving all the sub-packets that belong to the same message data, The message data is protocol-converted according to the configuration file information, and sent to the server at one time.
  • FIG. 4 is a flowchart of converting a websocket protocol into a UDP protocol according to an embodiment of the present invention. As shown in FIG. 4, the process includes:
  • Step 401 a handshake request
  • the client browser chrome sends a websocket handshake request to the server Nginx;
  • Step 402 handshake response
  • the server Nginx replies with a handshake response to the client, and the two establish a mutually trusted websocket channel;
  • Step 403 the browser chrome sends the message content of the websocket protocol format "I'm the client and I'm listening" to the server of the month Nginx;
  • Step 404 the server Nginx parses the data into the websocket protocol format, and the server sends the data to the backend UDP server (sever) according to the UDP protocol format;
  • Step 405 the UDP server of the back end sends the content of the UDP protocol format "Welcome to my server" to the server of the month Nginx;
  • Step 406 The server Nginx encapsulates the data into a websocket protocol format, and the server sends the encapsulated data to the browser client.
  • FIG. 5-1 is a structural block diagram of a communication protocol conversion apparatus according to an embodiment of the present invention.
  • the communication protocol conversion apparatus 50 includes the following components:
  • the protocol opening module 51 is configured to obtain configuration file information of the Nginx server, and start a communication protocol corresponding to the communication protocol information recorded in the configuration file information according to the configuration file information. Processing flow
  • the protocol conversion module 52 is configured to receive the message data corresponding thereto through one or more communication protocol processing flows, and perform protocol conversion on the message data according to the configuration file information.
  • the foregoing protocol conversion module 52 may include a determining unit 521, a first protocol converting unit 522, and a second protocol converting unit 523, where:
  • the determining unit 521 is configured to receive a link request of the client through a corresponding communication protocol processing flow, determine a communication protocol used by the server corresponding to the link request according to the configuration file information, and establish a communication link with the server;
  • the first protocol conversion unit 522 is configured to parse the link request, convert the parsed link request into a communication protocol used by the server, and send the message to the server through the communication link;
  • the second protocol conversion unit 523 It is configured to listen to the data sent by the server through the communication link, inversely convert the data into a communication protocol used by the client, and send the data to the client.
  • the foregoing protocol opening module 51 is further configured to perform the one or more protocol processing flows by one or more processes that are started according to the configuration file information.
  • the device 50 may further include a determining module configured to be in the protocol. Before the conversion module receives the corresponding message data through the corresponding communication protocol processing flow, the communication protocol processing flow for processing the message data is determined according to the configuration file information.
  • the device 50 may further include a cache module, configured to cache the received plurality of sub-packets locally, if received, from the plurality of sub-packets that belong to the same message data sent by the client, and receive the same After all the sub-packets of the message data, the message data is protocol-converted according to the configuration file information, and sent to the server at one time.
  • a cache module configured to cache the received plurality of sub-packets locally, if received, from the plurality of sub-packets that belong to the same message data sent by the client, and receive the same After all the sub-packets of the message data, the message data is protocol-converted according to the configuration file information, and sent to the server at one time.
  • the foregoing apparatus 50 may further include a replacement module, and configured to start the replacement load to be too heavy or stop according to the configuration file information when there is a process that is overloaded or stops working in one or more processes that are started according to the profile information. The process of work.
  • the protocol conversion apparatus can also use the specific structure shown in FIG. 6.
  • the apparatus includes a front end link management module 61, a back end link management module 62, a data transceiver module 63, a data cache module 64, and a protocol conversion module 65.
  • Figure 6 shows the internal processing structure of each worker process in the Nginx server, where:
  • the front-end link management module 61 is responsible for listening to the port when the server is powered on, and including the request in the link management queue when there is a link request;
  • the data transceiver module 63 is responsible for receiving the data on the link, and parsing the data according to the corresponding communication protocol format, specifically, parsing the received message data of the client, and converting the parsed message data into a server-side corresponding
  • the communication protocol format as shown in FIG. 6, is to convert the message data of the X protocol into the Y protocol, and send the converted data to the server through the link of the server.
  • the Nginx server will also cache the message data to the local data cache module 64 first, and then once the message content is sent,
  • the end link management module 61 sends the server to the back end;
  • the back end link management module 62 is responsible for establishing a communication link with the server of the back end, while listening to the message data on the message data link between the server and the server, and incorporating the link The link management queue for the back end.
  • the embodiment of the present invention utilizes the high concurrency of the Nginx server, occupies less server resources, and has high processing performance, which makes the server configuration flexible and supports various delimiters.
  • the format of the message data in this embodiment can use regular rules. Expression configuration, which can flexibly extract key information.
  • the solution of this embodiment can use multi-process technology, which is very beneficial to expand performance.
  • the applications of the Nginx server having different types of front-end and end-end protocols are not limited, and the Nginx server is implemented arbitrarily.
  • the proxy of the protocol improves the versatility of the Nginx server.
  • the protocol conversion unit can be implemented by a server such as a processor in Nginx; of course, it can also be implemented by a specific logic circuit; in the process of a specific embodiment, the processor can be a central processing unit (CPU), a microprocessor ( MPU), digital signal processor (DSP) or field programmable gate array (FPGA).
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the above communication protocol conversion method is implemented in the form of a software function module and sold or used as a stand-alone product, it may also be stored in a computer readable storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product.
  • the computer software product is stored in a storage medium and includes a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is implemented to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read only memory (Read Only Memory), a magnetic disk or an optical disk, and the like, which can store program codes.
  • a U disk a removable hard disk
  • a read only memory Read Only Memory
  • a magnetic disk or an optical disk and the like, which can store program codes.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions for executing the communication protocol conversion method provided in the embodiments of the present invention.
  • obtaining configuration file information of a server and according to configuration file information Transmitting a communication protocol processing flow corresponding to the communication protocol information recorded in the configuration file information, receiving the corresponding message data through one or more communication protocol processing flows, and performing protocol conversion on the message data according to the configuration file information;
  • the technical solution of the embodiment of the invention realizes the application of the Nginx server with different front-end protocol types and the proxy of the Nginx server to any protocol, and improves the versatility of the Nginx server.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

本发明公开了一种通信协议转换方法及装置、存储介质,该方法包括:获取服务器的配置文件信息,并根据配置文件信息开启与配置文件信息中记录的通信协议信息对应的通信协议处理流程,通过一个或多个通信协议处理流程接收与其相对应的消息数据,并根据配置文件信息对消息数据进行协议转换。

Description

一种通信协议转换方法及装置、 存储介质 技术领域
本发明涉及通信技术领域, 具体而言, 尤其涉及一种通信协议转换方 法及装置、 存储介质。 背景技术
Nginx是一款轻量级的 Web服务器, 也是一个 IMAP ( Internet Mail Access Protocol, 交互式邮件存取协议) /P0P3 ( Post Office Protocol- Version 3, 邮局协议版本 3 ) /SMTP ( Simple Mail Transfer Protocol, 简单邮件传输 协议)代理服务器, 由俄罗斯的程序设计师 Igor Sysoev所开发, Nginx是 一款面向性能设计的 HTTP ( Hyper Text Transfer Protocol,超文本传输协议 ) 服务器, 相较于 Apache、 lighttpd具有占有内存少, 稳定性高等优势。
在相关技术中, Nginx 主要用于作为代理服务器, 对少量的协议例如 HTTP邮件协议进行转发, 其仅限于其前后端协议类型相同的应用场景, 不 能实现对于前后端协议类型不同的应用; 因此, 有必要提供一种可以突破 Nginx服务器应用局限性的措施。 发明内容
有鉴于此, 本发明实施例提供一种通信协议转换方法及装置、 存储介 质, 能够解决 Nginx服务器对于其前后端协议类型不同的应用具有局限性 的问题。
本发明实施例的技术方案是这样实现的:
第一方面, 本发明实施例提供了一种通信协议转换方法, 该方法包括: 获取服务器的配置文件信息, 并根据配置文件信息开启与配置文件信息中 记录的通信协议信息对应的通信协议处理流程;
通过一个或多个通信协议处理流程接收与其相对应的消息数据, 并根 据配置文件信息对消息数据进行协议转换。
优选地, 通过一个或多个通信协议处理流程接收与其相对应的消息数 据, 并根据配置文件信息对消息数据进行协议转换包括:
通过相应的通信协议处理流程接收客户端的链接请求, 根据配置文件 信息确定与链接请求对应的服务端所使用的通信协议, 并建立与服务端的 通信链路;
对链接请求进行解析, 将解析后的链接请求转换为服务端使用的通信 协议, 并通过通信链路发送到服务端; 监听服务端通过通信链路发送的数 据, 将数据逆转换为客户端使用的通信协议, 并发送给客户端。
优选地, 所述方法还包括: 如果接收到来自客户端发送的同属于一个 消息数据的多个子数据包时, 将接收到的多个子数据包緩存到本地, 在接 收到同属于该消息数据的所有子数据包后, 根据配置文件信息对该消息数 据进行协议转换, 并一次性发送至服务端。
优选地, 根据配置文件信息开启与所述配置文件信息中记录的通信协 议信息对应的通信协议处理流程, 包括:
由一个或多个根据配置文件信息开启的进程分别同时执行与配置文件 信息中记录的通信协议信息对应的通信协议处理流程;
对应地, 在所述通过一个或多个通信协议处理流程接收与其相对应的 消息数据之前, 所述方法还包括: 根据配置文件信息确定用于处理消息数 据的通信协议处理流程。
优选地, 所述方法还包括: 在根据配置文件信息开启的一个或多个进 程中存在负载过重或停止工作的进程时, 根据配置文件信息启动替换负载 过重或停止工作的进程。 第二方面, 本发明实施例还提供了一种协议转换装置, 所述装置包括 协议开启模块和协议转换模块, 其中:
所述协议开启模块, 配置为获取服务器的配置文件信息, 并根据配置 文件信息开启与配置文件信息中记录的通信协议信息对应的通信协议处理 流程;
所述协议转换模块, 配置为通过一个或多个通信协议处理流程接收与 其相对应的消息数据, 并根据配置文件信息对消息数据进行协议转换。
优选地, 协议转换模块包括确定单元、 第一协议转换单元和第二协议 转换单元, 其中:
所述确定单元, 配置为通过相应的通信协议处理流程接收客户端的链 接请求, 根据配置文件信息确定与链接请求对应的服务端所使用的通信协 议, 并建立与服务端的通信链路;
所述第一协议转换单元, 配置为对链接请求进行解析, 将解析后的链 接请求转换为服务端使用的通信协议, 并通过通信链路发送到服务端; 所述第二协议转换单元, 配置为监听服务端通过通信链路发送的数据, 将数据逆转换为客户端使用的通信协议, 并发送给客户端。
优选地, 所述装置还包括緩存模块, 配置为如果接收到来自客户端发 送的同属于一个消息数据的多个子数据包时, 将接收到的多个子数据包緩 存到本地, 在接收到同属于该消息数据的所有子数据包后, 根据配置文件 信息对该消息数据进行协议转换, 并一次性发送至服务端。
其中, 所述协议开启模块, 还配置为由一个或多个根据所述配置文件 信息开启的进程分别同时执行与所述配置文件信息中记录的通信协议信息 对应的通信协议处理流程;
对应地, 所述装置还包括确定模块, 配置为在所述协议转换模块通过 一个或多个所述通信协议处理流程接收与其相对应的消息数据之前, 根据 配置文件信息确定用于处理消息数据的通信协议处理流程。
优选地, 所述装置还包括替换单元, 配置为在根据配置文件信息开启 的一个或多个进程中存在负载过重或停止工作的进程时, 根据配置文件信 息启动替换负载过重或停止工作的进程。
第三方面, 本发明实施例再提供一种计算机存储介质, 所述计算机存 储介质中存储有计算机可执行指令, 该计算机可执行指令用于执行上述的 通信协议转换方法。
釆用上述本发明实施例提供的技术方案, 根据获取服务器的配置文件 信息, 并根据配置文件信息开启与配置文件信息中记录的通信协议信息对 应的通信协议处理流程, 通过一个或多个通信协议处理流程接收与其相对 应的消息数据, 并根据配置文件信息对消息数据进行协议转换; 如此, 实 现了前后端服务器的协议类型不同的 Nginx服务器的应用, 以及 Nginx服 务器对任意协议的代理, 提高了 Nginx服务器的通用性。 附图说明
图 1-1为本发明实施例的通信协议转换方法流程图;
图 1-2为图 1中步骤 102的实现流程图;
图 2为本发明实施例的实施通信协议转换方法所釆用***的示意图; 图 3 为本发明实施例的另一个实施通信协议转换方法所釆用***的示 意图;
图 4为本发明实施例的将 websocket协议的消息数据转化为 UDP协议 消息数据的流程图;
图 5-1为本发明实施例的通信协议转换装置的结构框图;
图 5-2为图 5-1中协议转换模块 52的结构框图;
图 6为本发明实施例的 Nginx服务器中每个工作进程内部通信协议转 换处理结构示意图。 具体实施方式
下结合附图及较佳实施例, 对本发明进行详细说明如后。
本发明实施例提供了一种通信协议转换方法,图 1-1为本发明实施例的 通信协议转换方法流程图, 如图 1-1所示, 该包括以下具体步骤:
步骤 101 : 获取 Nginx服务器的配置文件信息, 并根据配置文件信息开 启与配置文件信息中记录的通信协议信息对应的通信协议处理流程;
步骤 102:通过一个或多个通信协议处理流程接收与其相对应的消息数 据, 并根据配置文件信息对消息数据进行协议转换。
如图 1-2所示, 上述步骤 102具体可以包括以下步骤:
步骤 121, 通过相应的通信协议处理流程接收客户端的链接请求,根据 配置文件信息确定与链接请求对应的服务端所使用的通信协议, 并建立与 服务端的通信链路;
步骤 122,对链接请求进行解析, 将解析后的链接请求转换为服务端使 用的通信协议, 并通过通信链路发送到服务端;
步骤 123,监听服务端通过通信链路发送的数据, 将数据逆转换为客户 端使用的通信协议, 并发送给客户端。
需要说明的是, 上述通信协议转换方法可以分为服务器上电初始化阶 段以及服务器正常工作两个过程来进行, 上述步骤 101 为上电阶初始化段 执行的步骤, 该上电初始化阶段的目的主要是通过读取服务器配置文件信 息, 来决定开启服务器内的哪些通信协议处理流程根据配置文件信息中的 协议转换配置信息开启一个或多个协议处理流程, 并由根据配置文件开启 的一个或多个进程分别同时执行所述一个或多个协议处理流程。
图 2示出了用于具体实施本通信协议转换方法所釆用的***的示意图, 如图 2所示, 在该阶段 nignx监控服务器的多个进程, 获取配置文件信息, 如果配置文件信息中包含有协议 B, 则开启协议 B处理流程, 进而后续过 程中则由协议 B来进行数据的解析以及数据链路的管理。 当然, 配置文件 也可以同时包含图 2中所示的 A协议 C协议等, 这样后续接收到消息数据 时, 根据所述配置文件信息确定用于处理所述消息数据的通信协议处理流 程, 具体地, 可以根据配置信息中的具体配置文件信息中的端口信息以及
IP ( Internet Protocol, 网络之间互联协议 )信息来确定对消息数据进行处理 的具体通信协议处理流程。 在该过程中还可以包括 Nginx的对各个进程进 行监控操作, 如果发现某工作进程负载过重或其他原因导致该进程停止后 会立刻根据配置文件信息启动新的工作进程来代替原工作进程工作, 同时, Nginx的工作进程数量可以设置为可配置的,可以在服务器的配置文件中进 行配置。
其中, 上述服务器的配置文件内容具体可以包含如下信息:
websocket {
websocket— read— timeout Id;
websocket— send— timeout Id;
websocket— buffer 102400;
udp—resend— timeout lh;
upstream backend{
server 10.46.173.158:8022;
}
server {
#default block if there is no host
listen 8033;
udp_pass backend;
}
}
其中, "websocket"表示前端是基于 TCP ( Transmission Control Protocol, 传输控制协议) 的请求; " socket— read— timeout " 表示前端读超时时间; "websocket— send— timeout"表示前端写超时时间; "websocket— buffer"表示读 数据的 buffer緩冲区大小; "udp—resend— timeout"表示后端的重发超时时间 间隔; "upstream"表示配置后端 server信息; "server"表示配置 Nginx服务信 息; "listen"表示侦听端口; "udp_pass backend"表示后端协议为 UDP ( User Datagram Protocol, 用户数据 协议 ), 并且发送给后端的名字为 backend 的服务器。 根据该通信协议的具体内容可以了解到客户端以及服务端的通 信协议格式, 基于此, 即使服务器前后协议不同, 通过协议的转换, 使得 Nginx可以代理各种不同的通信协议。
步骤 102为服务器正常工作的过程, 图 3示出了基于通信协议转换系 统实现协议转换的过程, 如图 3 所示, 服务器上电后获取配置文件信息, 根据配置文件信息打开相关协议处理流程开关, 进入正常工作阶段。 该服 务器内可以保存有多种通信协议, 如图中 A协议、 B协议、 C协议以及 D 协议。 当服务器接收到来自客户端的基于 X协议的链接请求时, 服务器按 照配置文件信息进行相应的链路管理, 并按照配置文件信息去查找服务端 的信息,根据查找到的信息确定服务端对应的通信协议, 可以为 A协议、 B 协议、 C协议以及 D协议中的一种。 按照配置文件信息与服务端的 server 建立相应的链路, 接收客户端数据, 并进行数据处理, 包括消息内容的协 议格式转换, 具体地, 对接收到的客户端的消息数据进行解析, 将解析后 的消息数据转换为服务端对应的通信协议格式, 如图 3所示, 为将 X协议 的消息数据转换为 Y协议, 并将转换后的数据通过服务端的链路发送给服 务端。 同时侦听服务端链路上的数据, 一旦发现待发送数据, 将待发送的 数据进行协议的逆转化, 即将待发送消息数据进行解析, 将解析后的消息 数据转换为客户端发送消息数据的协议格式, 通过客户端的链路发送给客 户端。 图 3 中所示的緩存区用于当接收到来自客户端消息数据量过大时, 例如, 如果接收到的来自客户端发送的同属于一个消息数据的多个子数据 包时, 将接收到的多个子数据包緩存到本地, 在接收到同属于该消息数据 的所有子数据包后, 根据配置文件信息对该消息数据进行协议转换, 并一 次性发送至服务端。
图 4为本发明实施例将 websocket协议转化为 UDP协议的流程图, 如 图 4所示, 该流程包括:
步骤 401, 握手请求;
具体地, 客户端浏览器 chrome发送 websocket握手请求给本服务器 Nginx;
步骤 402, 握手响应;
具体地, 本服务器 Nginx回复 101握手响应给客户端, 二者建立了互 相信任的 websocket通道;
步骤 403,浏览器 chrome发送 websocket协议格式的消息内容 "I'm the client and I'm listening" 给本月良务器 Nginx;
步骤 404, 本服务器 Nginx将 websocket协议格式解析出棵数据, 本服 务器将棵数据按照 UDP协议格式发送给后端的 UDP服务器( sever );
步骤 405,后端的 UDP服务器发送 UDP协议格式内容 "Welcome to my server" 给本月良务器 Nginx;
步骤 406, 本服务器 Nginx将该数据封装成 websocket协议格式, 本服 务器将封装后的数据发送给浏览器客户端。
本发明实施例还提供了一种通信协议转换装置,图 5-1为本发明实施例 的通信协议转换装置的结构框图, 如图 5-1所示, 通信协议转换装置 50包 括以下组成部分:
协议开启模块 51, 配置为获取 Nginx服务器的配置文件信息, 并根据 配置文件信息开启与配置文件信息中记录的通信协议信息对应的通信协议 处理流程;
协议转换模块 52, 配置为通过一个或多个通信协议处理流程接收与其 相对应的消息数据, 并根据配置文件信息对消息数据进行协议转换。
其中, 如图 5-2所示, 上述协议转换模块 52可以包括确定单元 521、 第一协议转换单元 522和第二协议转换单元 523, 其中:
所述确定单元 521,配置为通过相应的通信协议处理流程接收客户端的 链接请求, 根据配置文件信息确定与链接请求对应的服务端所使用的通信 协议, 并建立与服务端的通信链路;
所述第一协议转换单元 522, 配置为对链接请求进行解析, 将解析后的 链接请求转换为服务端使用的通信协议, 并通过通信链路发送到服务端; 所述第二协议转换单元 523,配置为监听服务端通过通信链路发送的数 据, 将数据逆转换为客户端使用的通信协议, 并发送给客户端。
上述协议开启模块 51, 还配置为由一个或多个根据配置文件信息开启 的进程分别同时执行所述一个或多个协议处理流程; 基于此, 上述装置 50 还可以包括确定模块, 配置为在协议转换模块通过相应的通信协议处理流 程接收相应消息数据之前, 根据配置文件信息确定用于处理消息数据的通 信协议处理流程。
上述装置 50还可以包括緩存模块, 还配置为如果接收到的来自客户端 发送的同属于一个消息数据的多个子数据包时, 将接收到的多个子数据包 緩存到本地, 在接收到同属于该消息数据的所有子数据包后, 根据配置文 件信息对该消息数据进行协议转换, 并一次性发送至服务端。
进一步地, 上述装置 50还可以包括替换模块, 还配置为在根据配置文 件信息开启的一个或多个进程中存在负载过重或停止工作的进程时, 根据 配置文件信息启动替换负载过重或停止工作的进程。
本发明实施例提供的协议转换装置还可以釆用如图 6所示的具体结构 来实现, 如图 6所示, 该装置包括前端链路管理模块 61、 后端链路管理模 块 62、 数据收发模块 63、 数据緩存模块 64以及协议转换模块 65。 图 6所 示为 Nginx服务器中每个工作进程内部的处理结构, 其中:
前端链路管理模块 61负责在服务器上电时侦听端口, 并且在有链路请 求时将该请求纳入链路管理队列;
数据收发模块 63负责将链路上的数据接收, 并且按照相应的通信协议 格式对数据进行解析, 具体地, 对接收到的客户端的消息数据进行解析, 将解析后的消息数据转换为服务端对应的通信协议格式, 如图 6所示, 为 将 X协议的消息数据转换为 Y协议, 并将转换后的数据通过服务端的链路 发送给服务端。
或者, 用于进行与上述协议转换的逆转换, 将来自服务端的消息数据 进行解析, 将解析后的消息数据转换为客户端使用的通信协议格式, 然后 将转换后的消息数据发送至客户端。
如果在接收数据过程中, 接收的数据量过大, 或分多个数据包发送过 来, Nginx服务器还会将消息数据先緩存到本地的数据緩存模块 64, 当消 息内容发送完毕再一次性由后端链路管理模块 61发送给后端的服务器; 后 端链路管理模块 62负责与后端的服务器建立通信链路, 同时侦听服务器与 服务端的消息数据链路上的消息数据, 并将该链接纳入后端的链路管理队 列。
本发明实施例利用了 Nginx服务器的高并发性, 占用服务器资源少, 处理性能高的优势, 使得服务器配置十分灵活, 并支持各种分隔符, 本实 施例中的消息数据的格式可以釆用正则表达式配置, 这样可以灵活提取关 键信息, 同时本实施例方案可以釆用多进程技术, 十分利于扩展性能。 在 此基础上, 结合上述实施例中各优选方案, 可以使得前后端协议类型不同 的应 Nginx服务器的应用具不在有局限性, 使得 Nginx服务器实现了任意 协议的代理, 提高了 Nginx服务器的通用性。
本发明实施例提供的通信协议转换装置中的协议开启模块、 协议转换 模块、 緩存模块、 协议开启模块、 确定模块和替换模块, 以及协议转换模 块中的确定单元、 第一协议转换单元和第二协议转换单元, 都可以通过服 务器如 Nginx 中的处理器来实现; 当然也可通过具体的逻辑电路实现; 在 具体实施例的过程中,处理器可以为中央处理器( CPU )、微处理器( MPU )、 数字信号处理器 (DSP )或现场可编程门阵列 (FPGA )等。
本发明实施例中, 如果以软件功能模块的形式实现上述的通信协议转 换方法, 并作为独立的产品销售或使用时, 也可以存储在一个计算机可读 取存储介质中。 基于这样的理解, 本发明实施例的技术方案本质上或者说 对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软 件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可 以是个人计算机、 服务器、 或者网络设备等)执行本发明各个实施例所述 方法的全部或部分。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储 H ( ROM, Read Only Memory ),磁碟或者光盘等各种可以存储程序代码的 介质。 这样, 本发明实施例不限制于任何特定的硬件和软件结合。
相应地, 本发明实施例再提供一种计算机存储介质, 所述计算机存储 介质中存储有计算机可执行指令, 该计算机可执行指令用于执行本发明各 实施例中提供的通信协议转换方法。
以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利保护 范围, 凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运用在其他相关的技术领域, 均同理包括在本发明的专利保 护范围。 工业实用性 本发明实施例中, 获取服务器的配置文件信息, 并根据配置文件信息 开启与配置文件信息中记录的通信协议信息对应的通信协议处理流程, 通 过一个或多个通信协议处理流程接收与其相对应的消息数据, 并根据配置 文件信息对消息数据进行协议转换; 釆用本发明实施例的技术方案, 实现 了对于前后端协议类型不同的 Nginx服务器的应用, 以及 Nginx服务器对 任意协议的代理, 提高了 Nginx服务器的通用性。

Claims

权利要求书
1、 一种通信协议转换方法, 所述方法包括:
获取 Nginx服务器的配置文件信息, 并根据所述配置文件信息开启与 所述配置文件信息中记录的通信协议信息对应的通信协议处理流程;
通过一个或多个所述通信协议处理流程接收与其相对应的消息数据, 并根据所述配置文件信息对所述消息数据进行协议转换。
2、 根据权利要求 1所述的方法, 其中, 通过一个或多个所述通信协议 处理流程接收与其相对应的消息数据, 并根据所述配置文件信息对所述消 息数据进行协议转换包括:
通过相应的通信协议处理流程接收客户端的链接请求, 根据所述配置 文件信息确定与所述链接请求对应的服务端所使用的通信协议, 并建立与 所述服务端的通信链路;
对所述链接请求进行解析, 将解析后的所述链接请求转换为所述服务 端使用的所述通信协议, 并通过所述通信链路发送到所述服务端;
监听所述服务端通过所述通信链路发送的数据, 将所述数据逆转换为 所述客户端使用的通信协议, 并发送给所述客户端。
3、 根据权利要求 1所述的方法, 其中, 所述方法还包括:
如果接收到来自所述客户端发送的同属于一个消息数据的多个子数据 包时, 将接收到的所述多个子数据包緩存到本地, 在接收到同属于该消息 数据的所有子数据包后, 根据所述配置文件信息对该消息数据进行协议转 换, 并一次性发送至所述服务端。
4、 根据权利要求 1所述的方法, 其中, 根据所述配置文件信息开启与 所述配置文件信息中记录的通信协议信息对应的通信协议处理流程, 包括: 由一个或多个根据所述配置文件信息开启的进程分别同时执行与所述 配置文件信息中记录的通信协议信息对应的通信协议处理流程; 对应地, 通过一个或多个所述通信协议处理流程接收与其相对应的消 息数据之前, 所述方法还包括:
根据所述配置文件信息确定用于处理所述消息数据的通信协议处理流 程。
5、根据权利要求 1至 4任意一项所述的方法, 其中, 所述方法还包括: 在所述根据所述配置文件信息开启的一个或多个进程中存在负载过重 或停止工作的进程时, 根据所述配置文件信息启动替换所述负载过重或停 止工作的进程。
6、 一种通信协议转换装置, 所述装置包括协议开启模块和协议转换模 块, 其中:
所述协议开启模块, 配置为获取 Nginx服务器的配置文件信息, 并根 据所述配置文件信息开启与所述配置文件信息中记录的通信协议信息对应 的通信协议处理流程;
所述协议转换模块, 配置为通过一个或多个所述通信协议处理流程接 收与其相对应的消息数据, 并根据所述配置文件信息对所述消息数据进行 协议转换。
7、 根据权利要求 6所述的装置, 其中, 所述协议转换模块包括确定单 元、 第一协议转换单元和第二协议转换单元, 其中:
所述确定单元, 配置为通过相应的通信协议处理流程接收客户端的链 接请求, 根据所述配置文件信息确定与所述链接请求对应的服务端所使用 的通信协议, 并建立与所述服务端的通信链路;
所述第一协议转换单元, 配置为对所述链接请求进行解析, 将解析后 的所述链接请求转换为所述服务端使用的所述通信协议, 并通过所述通信 链路发送到所述服务端; 所述第二协议转换单元, 配置为监听所述服务端通过所述通信链路发 送的数据, 将所述数据逆转换为所述客户端使用的通信协议, 并发送给所 述客户端。
8、 根据权利要求 6所述的装置, 其中, 所述装置还包括緩存模块, 配 置为如果接收到来自所述客户端发送的同属于一个消息数据的多个子数据 包时, 将接收到的所述多个子数据包緩存到本地, 在接收到同属于该消息 数据的所有子数据包后, 根据所述配置文件信息对该消息数据进行协议转 换, 并一次性发送至所述服务端。
9、 根据权利要求 7所述的装置, 其中, 所述协议开启模块, 还配置为 由一个或多个根据所述配置文件信息开启的进程分别同时执行与所述配置 文件信息中记录的通信协议信息对应的通信协议处理流程;
对应地, 所述装置还包括确定模块, 配置为在所述协议转换模块通过 一个或多个所述通信协议处理流程接收与其相对应的消息数据之前, 根据 所述配置文件信息确定用于处理所述消息数据的通信协议处理流程。
10、 根据权利要求 6至 9任意一项所述的装置, 其中, 所述装置还包 括替换模块, 配置为在所述根据所述配置文件信息开启的一个或多个进程 中存在负载过重或停止工作的进程时, 根据所述配置文件信息启动替换所 述负载过重或停止工作的进程。
11、 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执 行指令, 该计算机可执行指令用于执行权利要求 1至 5任一项所述的通信 协议转换方法。
PCT/CN2014/083473 2014-04-18 2014-07-31 一种通信协议转换方法及装置、存储介质 WO2015158064A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410156469.4A CN105024971A (zh) 2014-04-18 2014-04-18 一种通信协议转换方法及装置
CN201410156469.4 2014-04-18

Publications (1)

Publication Number Publication Date
WO2015158064A1 true WO2015158064A1 (zh) 2015-10-22

Family

ID=54323440

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/083473 WO2015158064A1 (zh) 2014-04-18 2014-07-31 一种通信协议转换方法及装置、存储介质

Country Status (2)

Country Link
CN (1) CN105024971A (zh)
WO (1) WO2015158064A1 (zh)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405029A (zh) * 2020-03-12 2020-07-10 北京字节跳动网络技术有限公司 一种请求处理方法及装置
CN111934840A (zh) * 2020-06-29 2020-11-13 北京百度网讯科技有限公司 客户端和服务端的通信方法、网关、电子设备及存储介质
CN112286073A (zh) * 2020-08-04 2021-01-29 中国电力科学研究院有限公司 一种用于电力***闭环仿真的通信接口装置及方法
CN113347135A (zh) * 2020-02-18 2021-09-03 北京沃东天骏信息技术有限公司 电子数据交换的方法和***
CN114095586A (zh) * 2021-11-16 2022-02-25 上海许继电气有限公司 一种变电站门禁***数据采集***及方法
CN114449061A (zh) * 2021-12-23 2022-05-06 深圳市长龙铁路电子工程有限公司 一种可配置式的协议解析方法、装置、设备及存储介质
CN114499930A (zh) * 2021-12-13 2022-05-13 奇安信科技集团股份有限公司 一种多协议单点登录请求的处理方法及装置
CN114531500A (zh) * 2021-12-27 2022-05-24 新纳传感***有限公司 可扩展的设备数据采集终端、方法和***
CN114765633A (zh) * 2021-01-04 2022-07-19 株洲中车时代电气股份有限公司 基于列车实时以太网协议的网络报文解析方法及装置
CN117896446A (zh) * 2024-03-15 2024-04-16 中国人民解放军63921部队 一种数据传输方法及介质

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040016A1 (zh) * 2016-08-31 2018-03-08 深圳配天智能技术研究院有限公司 一种协议转换器及协议转换方法
CN106656998B (zh) * 2016-11-09 2019-12-17 腾讯科技(深圳)有限公司 服务器通信方法及装置
CN108616549A (zh) * 2016-12-12 2018-10-02 北京视联动力国际信息技术有限公司 一种文件上传方法及文件服务器
CN109150788A (zh) * 2017-06-13 2019-01-04 中兴通讯股份有限公司 控制网络数据传输的方法、装置、网关及存储介质
CN107566403A (zh) * 2017-10-16 2018-01-09 郑州云海信息技术有限公司 一种实现通用的多协议互连方法、***及控制芯片
CN107493136B (zh) * 2017-10-16 2019-06-21 中国核动力研究设计院 一种通信协议转换装置及转换方法
CN108111344B (zh) * 2017-12-19 2020-08-04 电信科学技术第五研究所有限公司 一种可链接式流式数据解析动态流程构建模型实现方法
CN108769017B (zh) * 2018-05-29 2022-01-11 杭州字符串科技有限公司 一种数据通信方法及装置
CN112134800B (zh) * 2019-06-25 2022-04-22 北京新能源汽车股份有限公司 一种数据的路由方法、网关、网络路由***及车辆
CN110519367A (zh) * 2019-08-27 2019-11-29 ***股份有限公司 一种应用管理方法及装置
CN111343236A (zh) * 2020-02-07 2020-06-26 广州极晟网络技术有限公司 服务端与客户端进行通讯的方法、装置、通讯***
CN111510476B (zh) * 2020-04-03 2023-06-20 金蝶软件(中国)有限公司 通信方法、装置、计算机设备和计算机可读存储介质
CN114598689A (zh) * 2022-03-08 2022-06-07 深圳市火火兔智慧科技有限公司 Iot设备的交互方法、装置、计算机设备及存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1864160A (zh) * 2003-08-07 2006-11-15 蒂蒙***公司 包括使用多种操作协议的协议接口设备的通信***及相关方法
CN103078827A (zh) * 2011-10-25 2013-05-01 腾讯数码(天津)有限公司 第三方应用调用的开放平台***和实现方法

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1864160A (zh) * 2003-08-07 2006-11-15 蒂蒙***公司 包括使用多种操作协议的协议接口设备的通信***及相关方法
CN103078827A (zh) * 2011-10-25 2013-05-01 腾讯数码(天津)有限公司 第三方应用调用的开放平台***和实现方法

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347135A (zh) * 2020-02-18 2021-09-03 北京沃东天骏信息技术有限公司 电子数据交换的方法和***
CN113347135B (zh) * 2020-02-18 2024-02-06 北京沃东天骏信息技术有限公司 电子数据交换的方法和***
CN111405029B (zh) * 2020-03-12 2023-06-02 北京字节跳动网络技术有限公司 一种请求处理方法及装置
CN111405029A (zh) * 2020-03-12 2020-07-10 北京字节跳动网络技术有限公司 一种请求处理方法及装置
CN111934840A (zh) * 2020-06-29 2020-11-13 北京百度网讯科技有限公司 客户端和服务端的通信方法、网关、电子设备及存储介质
CN112286073A (zh) * 2020-08-04 2021-01-29 中国电力科学研究院有限公司 一种用于电力***闭环仿真的通信接口装置及方法
CN114765633A (zh) * 2021-01-04 2022-07-19 株洲中车时代电气股份有限公司 基于列车实时以太网协议的网络报文解析方法及装置
CN114095586A (zh) * 2021-11-16 2022-02-25 上海许继电气有限公司 一种变电站门禁***数据采集***及方法
CN114499930A (zh) * 2021-12-13 2022-05-13 奇安信科技集团股份有限公司 一种多协议单点登录请求的处理方法及装置
CN114449061A (zh) * 2021-12-23 2022-05-06 深圳市长龙铁路电子工程有限公司 一种可配置式的协议解析方法、装置、设备及存储介质
CN114531500A (zh) * 2021-12-27 2022-05-24 新纳传感***有限公司 可扩展的设备数据采集终端、方法和***
CN114531500B (zh) * 2021-12-27 2023-11-21 新纳传感***有限公司 可扩展的设备数据采集终端、方法和***
CN117896446A (zh) * 2024-03-15 2024-04-16 中国人民解放军63921部队 一种数据传输方法及介质
CN117896446B (zh) * 2024-03-15 2024-06-04 中国人民解放军63921部队 一种数据传输方法及介质

Also Published As

Publication number Publication date
CN105024971A (zh) 2015-11-04

Similar Documents

Publication Publication Date Title
WO2015158064A1 (zh) 一种通信协议转换方法及装置、存储介质
Loreto et al. Known issues and best practices for the use of long polling and streaming in bidirectional http
US9100291B2 (en) Systems and methods for extracting structured application data from a communications link
US9628571B2 (en) Systems and methods for HTTP callouts for policies
US9258349B2 (en) Method and apparatus of performing remote computer file exchange
WO2016106592A1 (zh) 一种特征信息分析方法及装置
US9794354B1 (en) System and method for communication between networked applications
WO2018098820A1 (zh) 数据发送、接收的方法、装置、服务器及计算机程序产品
WO2016086755A1 (zh) 一种报文处理的方法和透明代理服务器
US10951742B1 (en) Methods, systems, and computer program products for sharing information for detecting at least one time period for a connection
CA2844851A1 (en) Method for flow control and for reliable communication in a collaborative environment
JP5940216B2 (ja) ベアラ非依存プロトコルを伴うソケット管理の方法
Naik et al. Native web communication protocols and their effects on the performance of web services and systems
WO2024060408A1 (zh) 网络攻击检测方法和装置、设备及存储介质
US9819730B2 (en) System and method for network access based on application layer data
US11956300B2 (en) Message switching
JP2017517221A (ja) Httpストリーミングを使用するdashストリーミングのための方法及び装置
JP6576099B2 (ja) 通信装置、通信装置の制御方法、プログラム、および、通信システム
US11444882B2 (en) Methods for dynamically controlling transmission control protocol push functionality and devices thereof
US20180063009A1 (en) Systems and methods to early detect link status of multiple paths through an explicit congestion notification based proxy
Lindquister et al. Proxy pair optimizations for increased service reliability in DIL networks
WO2016176942A1 (zh) 一种基于负载均衡器的链路复用方法及***
CN116016396A (zh) 一种重发报文的处理方法、处理装置、处理设备及介质
Salsano et al. Internet Engineering Task Force (IETF) S. Loreto Request for Comments: 6202 Ericsson Category: Informational P. Saint-Andre
Vier A TOOL FOR STATEFUL REPLAY

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14889445

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14889445

Country of ref document: EP

Kind code of ref document: A1