Data communication method, apparatus and device, and storage medium
Through static decoding and dynamic decoding, the object data to be reported and reported to the target location, solving the problem of low development efficiency in multi-protocol abuse scenarios, and realizing a general data communication method that adapts to different network protocols.
Patent Information
- Application Number
- PCT/CN2023/115030
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-08-25
- Publication Date
- 2025-03-06
AI Technical Summary
In the development scenario of multi-protocol abuse, in order to adapt to the usage requirements of different regions, it is necessary to develop methods and components of different protocols, resulting in low development efficiency.
The infrastructure information of the data to be reported is obtained through static decoding, and dynamically decodes it based on the information, obtains the object data, and finally reports the object data to the target location for processing.
This method can effectively obtain the object data to be reported for different network protocols, avoid the need to develop protocol codes separately for different network protocols, and improve the code development efficiency of data communication scenarios with mixed use of multiple protocols.
Smart Images

Figure CN2023115030_06032025_PF_FP_ABST
Abstract
Description
Data communication method, device, equipment and storage medium Technical Field
[0001] The present application relates to the field of communications, and in particular to data communication methods, devices, equipment, and storage media. Background Art
[0002] A network infrastructure protocol is a communication language used between computers on a network. Currently, there are many common network infrastructure protocols, including HTTP (Hypertext Transfer Protocol), TCP (Transmission Control Protocol), and FTP (File Transfer Protocol). Based on these protocols, companies, organizations, and individuals have developed a variety of application-layer protocols, including POP3 (Post Office Protocol-Version 3), DNS (Domain Name System), TELNET (Telnet), SMTP (Simple Mail Transfer Protocol), SNMP (Simple Network Management Protocol), and TFTP (Trivial File Transfer Protocol), to support business service communications.
[0003] Due to business needs, these protocols often need to be mixed and used together. For example, region A may require protocol A, while region B may require protocol B. In development scenarios where multiple protocols are abused, adapting to the requirements of different regions requires developing methods and components for multiple different protocols, which is detrimental to improving development efficiency. Technical issues
[0004] In view of this, the embodiments of the present application provide a data communication method, apparatus, device and storage medium to solve the problem in the prior art that in development scenarios where multiple protocols are abused, in order to adapt to the usage requirements of different regions, it is necessary to develop methods and components for multiple different protocols, which is not conducive to improving development efficiency. Technical Solutions
[0005] A first aspect of an embodiment of the present application provides a data communication method, the method comprising:
[0006] Get the data to be reported;
[0007] Obtaining the infrastructure information of the data to be reported through static decoding;
[0008] Dynamically decoding the data to be reported according to the infrastructure information to obtain object data included in the data to be reported;
[0009] The object data is reported to a target location for processing.
[0010] In conjunction with the first aspect, in a first possible implementation manner of the first aspect, dynamically decoding the data to be reported according to the infrastructure information to obtain object data included in the data to be reported includes:
[0011] Acquire a mapping key in the data to be reported according to the infrastructure information;
[0012] The object data in the data to be reported is determined according to the mapping key.
[0013] In combination with the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, when the infrastructure structure information is structure information based on the HTTP protocol, obtaining the mapping key in the data to be reported according to the infrastructure structure information includes:
[0014] Obtaining a uniform resource locator according to the first row of the data to be reported, and determining the uniform resource locator as the mapping key;
[0015] Determining object data in the data to be reported according to the mapping key includes:
[0016] The message body of the data to be reported is determined according to the infrastructure information, and the object data in the message body is determined according to the uniform resource locator.
[0017] In combination with the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, after obtaining the mapping key in the data to be reported according to the infrastructure information, the method further includes:
[0018] The session identifier in the data to be reported is determined according to the infrastructure information, and the data processing request corresponding to the processing result is determined according to the session identifier.
[0019] In combination with the first aspect, in a fourth possible implementation manner of the first aspect, obtaining the infrastructure information of the data to be reported through static decoding includes:
[0020] The infrastructure information of the data to be reported is determined according to the TCP port number in the context information of the data to be reported.
[0021] In combination with the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, determining the infrastructure information of the data to be reported according to the TCP port number in the context information of the data to be reported includes:
[0022] Determine the network protocol used by the data to be reported based on the predetermined correspondence between the TCP port number and the network protocol;
[0023] Determine the infrastructure information of the data to be reported according to the network protocol used by the data to be reported.
[0024] In combination with the first aspect, in a sixth possible implementation manner of the first aspect, the method further includes:
[0025] Get the message of the object to be sent;
[0026] Encoding the object message to be sent according to predetermined infrastructure information corresponding to the object message to be sent to obtain original data;
[0027] The original data is sent to the target location.
[0028] A second aspect of an embodiment of the present application provides a data communication device, the device comprising:
[0029] A data acquisition unit for acquiring data to be reported, used for acquiring data to be reported;
[0030] A static decoding unit, configured to obtain the infrastructure information of the data to be reported through static decoding;
[0031] a dynamic decoding unit, configured to dynamically decode the data to be reported according to the infrastructure information, and obtain object data included in the data to be reported;
[0032] The reporting unit is used to report the object data to a target location for processing.
[0033] A third aspect of an embodiment of the present application provides a data communication device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in any one of the first aspects are implemented.
[0034] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of the first aspects are implemented. Beneficial effects
[0035] Compared with the prior art, the embodiments of the present application have the following advantages: the embodiments of the present application statically decode the data to be reported, determine the infrastructure information of the data to be reported, dynamically decode the data to be reported based on the infrastructure information, obtain the object data included in the data to be reported, and send the object data to the target location for processing. Through static decoding and dynamic decoding, the object data of the data to be reported for different network protocols can be effectively obtained. There is no need to develop corresponding protocol code for different network protocols. Only the corresponding static decoding and dynamic decoding need to be implemented, thereby effectively improving the code development efficiency of data communication scenarios with mixed multi-protocols. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0037] FIG1 is a schematic diagram of an implementation flow of a data communication method provided in an embodiment of the present application;
[0038] FIG2 is a schematic diagram of an implementation flow of a method for determining infrastructure information provided in an embodiment of the present application;
[0039] FIG3 is a schematic diagram of an implementation flow of a method for determining object data provided in an embodiment of the present application;
[0040] FIG4 is a schematic diagram of an implementation flow of a method for sending an object message according to an embodiment of the present application;
[0041] FIG5 is a schematic diagram of a data communication device provided in an embodiment of the present application;
[0042] FIG6 is a schematic diagram of a data communication device provided in an embodiment of the present application. Modes for Carrying Out the Invention
[0043] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0044] In order to illustrate the technical solution described in this application, specific embodiments are provided below.
[0045] The basic network protocol is the language used for communication between different devices on a network. Based on this basic network protocol, different vendors have developed a variety of different application-layer protocols. Because the protocols used in different regions may differ, for example, region A requires protocol A, while region B requires protocol B. When developing applications or other software, the need to independently develop code for each region's protocol is detrimental to improving development efficiency.
[0046] Based on this, an embodiment of the present application proposes a data communication method, as shown in FIG1 , which includes:
[0047] In S101, data to be reported is obtained.
[0048] The data to be reported in the embodiments of the present application may include data obtained using different network infrastructure protocols. For example, the data to be reported may be received via a TCP (Transmission Control Protocol) data source, or may be received via a message component, such as Kafka, or may be received via a file.
[0049] The acquired data to be reported may be original binary data, or text data converted from the binary data. When the data to be reported is original binary data, the original data may be converted into text data before being decoded.
[0050] For example, the original data obtained may be: 0x3132333478539928....... When the original data is converted into text data, it may correspond to an HTTP request. For example, the converted text data may include:
[0051] class HttpReq{
[0052] string url;
[0053] list <header>headers;
[0054] string body;
[0055] }
[0056] The device that obtains the data to be reported can be a device that is adapted to multiple network protocols. For example, the device can include devices in different regions that have the same application installed. Because the data communication protocols required by different regions vary, the application needs to adapt to the communication requirements of different communication protocols.
[0057] Data to be reported can be understood as data transmitted between two communicating devices. For example, if device A and device B are communicating, device A needs to send data to device B, which then processes the data. The data to be processed by device B is then referred to as data to be reported. Device B can parse the data to be reported, obtain the object data to be processed, and then, after processing the object data using its built-in algorithms or processes, return the processing results or a message to device A. The result or message returned by device B to device A can be considered the object message to be sent.
[0058] In S102, the infrastructure information of the data to be reported is obtained through static decoding.
[0059] Static decoding in the embodiments of the present application can be understood as performing string parsing on the text data in the to-be-reported data according to a fixed format to obtain the basic structural information of the to-be-reported data. The basic structural information is used to determine the structural information of the text data in the to-be-reported data, such as the dynamic key, session identifier (which may include, for example, a session ID), object message, etc., included in the text data in the to-be-reported data.
[0060] When the infrastructure information of the data to be reported is obtained through static decoding, the infrastructure information of the data to be reported can be determined according to the context information of the data to be reported and a preset correspondence between the context information and the infrastructure information.
[0061] For example, the context information may include the TCP (Transmission Control Protocol) port number of the data to be reported. Based on the pre-set correspondence between the TCP port number and the network protocol, the infrastructure information of the data to be reported is determined, as shown in Figure 2, including:
[0062] In S201, the network protocol used by the data to be reported is determined according to a preset correspondence between a TCP port number and a network protocol.
[0063] A correspondence between TCP port numbers and network protocols can be pre-set. Upon receiving data to be reported, context information including the TCP port number used to transmit the data to be reported is obtained. Based on the pre-set correspondence between TCP port numbers and network protocols, the network protocol corresponding to the network port number corresponding to the data to be reported is determined. The TCP port number may be the TCP port number of the device receiving the data to be reported.
[0064] For example, in the preset correspondence, when the TCP port number is 80, the corresponding network protocol is Hypertext Transfer Protocol, and when the TCP port number is 115, the corresponding network protocol is Simple File Transfer Protocol.
[0065] In S202, the infrastructure information of the data to be reported is determined according to the network protocol used by the data to be reported.
[0066] After the network protocol corresponding to the data to be reported is determined, the infrastructure information corresponding to the data to be reported can be determined based on the correspondence between the network protocol and the pre-set infrastructure information.
[0067] The infrastructure information is used to identify the data content within the text-based data to be reported. For example, if the data to be reported is an HTTP request, after identifying the request using the TCP port number, the pre-defined infrastructure information is used to determine the first line of the HTTP request, the header line (i.e., the request header), and the message body.
[0068] The infrastructure information determined based on the HTTP network protocol may include information such as a method, a uniform resource locator, and a version in the first line of the HTTP request. The information such as the method, the uniform resource locator, and the version may be separated by spaces.
[0069] For example, in an HTTP-based protocol, the requester sends an HTTP request to fire an employee. The URL included in the request is: http: / / xx / fire. The URL can be obtained from the first line of the HTTP request.
[0070] The method in the first line can be used to determine the semantics of the HTTP request. For example, methods can include GET (get resources), POST (transfer entity body), PUT (transfer file), etc.
[0071] In the basic structure information determined based on the http network protocol, the message body may include object data in the data to be reported.
[0072] In S103, the data to be reported is dynamically decoded according to the infrastructure information to obtain object data included in the data to be reported.
[0073] After the infrastructure information of the data to be reported is determined through static coding, the message body included in the data to be reported and the mapping key included in the data to be reported can be determined based on the infrastructure information.
[0074] The mapping key is used to map the position of the object data in the data to be reported, or to map the position of the data to be reported in the message body. According to the position mapped by the mapping key, the object data in the data to be reported is determined, as shown in FIG3, including:
[0075] In S301, a mapping key in the data to be reported is obtained according to the infrastructure information.
[0076] The mapping key is used to map relevant information of the object data included in the data to be reported, including the content of the object data.
[0077] For example, for HTTP requests, the mapping key for the reported data can be located in the Uniform Resource Locator (URL) in the first line of the HTTP request message. For example, if a requester sends an HTTP request to fire an employee, the URL included in the request is: http: / / xx / fire. The mapping key is the URL.
[0078] In S302, the object data in the data to be reported is determined according to the mapping key.
[0079] According to the mapping information of the mapping key, the corresponding mapping data is determined in the data to be reported. Different uniform resource locators will map different data contents. For example, the mapping key for the http request is the uniform resource locator in the first line of the message. When the uniform resource locator URL is: http: / / xx / fire, the structure of the mapped data object in the message body can be "{"id":123}", that is, the mapped content is the employee number of the dismissed employee. The content of the data mapped by the mapping key or the position in the message body can be determined based on the keyword information in the message body.
[0080] In S104, the object data is reported to a target location for processing.
[0081] In an embodiment of the present application, object data is determined based on a mapping key, and the object is reported to a target location for processing. For example, when the object data is reported to a process processing business code for processing, there may be a situation where the processing fails. In order to be able to effectively distinguish the processing results of different data objects, the reported data may also include a session identifier (message ID). By extracting the session identifier, it can be used to identify different data reporting sessions. For example, in multiple requests reported to the same business code, multiple data objects and session identifiers (message IDs) corresponding to the multiple requests are included. After the data object processing is completed, the processing result can be transmitted downlink to the requesting party, such as to a network device, based on the session identifier (message ID) in the request.
[0082] In a possible implementation, the service code transmits the processed object data, i.e., the object message, to the network device. As shown in FIG4 , the process may include:
[0083] In S401, the object message to be sent is obtained.
[0084] The object message to be sent in the embodiment of the present application can be the object data determined by the data to be reported, and the processing result or data obtained after being processed by the processing flow corresponding to the business code.
[0085] In S402, the object message to be sent is encoded according to predetermined infrastructure information corresponding to the object message to be sent, to obtain original data.
[0086] The object message to be sent can be encoded based on the basic structure information when the object data is determined to obtain text data corresponding to the network protocol of the reporting device. The text data can be converted into binary data to obtain the encoded original data of the object message to be sent.
[0087] When determining the original data corresponding to the object message based on the infrastructure information, the original data may also include a conversation identifier (session ID). The conversation identifier (session ID) is used to determine the target location for transmission, as well as the session in which processing failed and the session in which processing failed. This allows the unsuccessful request to be regenerated and reprocessed based on the session identifier (session ID).
[0088] In S403, the original data is sent to the target location.
[0089] The generated raw data can be sent to a data reporting device, including a network device that reports data through different network protocols.
[0090] The embodiments of the present application can adapt to the decoding requirements of data objects to be reported by different network protocols through static decoding and dynamic decoding. Therefore, when developing business code using multiple different network protocols, a common underlying data link can be used. The method is suitable for the communication requirements of different network protocols, eliminating the need to develop corresponding business code for different network protocols, thereby effectively improving the development efficiency of business code.
[0091] That is, according to the communication method in the embodiment of the present application, for a new protocol, it is only necessary to implement the static decoding and dynamic decoding corresponding to the new protocol, and there is no need to develop the entire protocol, thereby effectively improving the development efficiency of the new protocol communication.
[0092] In a possible implementation, the embodiment of the present application can integrate the relevant codes of dynamic decoding and static decoding in the data communication process into a data processing module. Through the integrated data processing module, the input data is processed into an output format. For example, the original data to be reported can be input and output as a data object. Or the object message to be sent can be input and the original data can be output. In each data processing module, two pipelines can be included, namely an upstream pipeline and a downstream pipeline, which process upstream data and downstream data respectively. Through the data processing module, JAVA object messages can be directly connected and received without having to worry about the protocol processing process.
[0093] In a possible implementation, different static decoding and dynamic decoding data processing modules can be set up, and different data processing modules can be connected in series in a specified order. The data output by the previous processing module is input into the next data processing module, thereby realizing specific protocol conversion work.
[0094] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0095] FIG5 is a schematic diagram of a data communication device provided in an embodiment of the present application, the device comprising:
[0096] The data acquisition unit 501 is used to acquire the data to be reported;
[0097] A static decoding unit 502, configured to obtain the infrastructure information of the data to be reported through static decoding;
[0098] A dynamic decoding unit 503, configured to dynamically decode the data to be reported according to the infrastructure information to obtain object data included in the data to be reported;
[0099] The reporting unit 504 is configured to report the object data to a target location for processing.
[0100] The data communication device shown in FIG5 corresponds to the data communication method shown in FIG1.
[0101] Figure 6 is a schematic diagram of a data communication device provided in one embodiment of the present application. As shown in Figure 6 , the data communication device 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62, such as a data communication program, stored in the memory 61 and executable on the processor 60. When the processor 60 executes the computer program 62, it implements the steps of the aforementioned data communication method embodiments. Alternatively, when the processor 60 executes the computer program 62, it implements the functions of the modules / units in the aforementioned apparatus embodiments.
[0102] Exemplarily, the computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to implement the present application. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program 62 in the data communication device 6.
[0103] The data communication device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that FIG6 is merely an example of the data communication device 6 and does not limit the data communication device 6. The data communication device 6 may include more or fewer components than shown in the figure, or may combine certain components or different components. For example, the data communication device may also include input and output devices, network access devices, buses, etc.
[0104] The processor 60 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0105] The memory 61 can be an internal storage unit of the data communication device 6, such as a hard drive or memory of the data communication device 6. The memory 61 can also be an external storage device of the data communication device 6, such as a plug-in hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. Furthermore, the memory 61 can include both an internal storage unit of the data communication device 6 and an external storage device. The memory 61 is used to store the computer program and other programs and data required by the data communication device. The memory 61 can also be used to temporarily store data that has been output or is about to be output.
[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0107] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0108] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0109] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0110] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0111] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0112] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the process steps in the above-mentioned method embodiments through hardware related to computer program instructions. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium. It should be noted that the content of the computer-readable medium can be appropriately increased or decreased based on the requirements of legislation and patent practice in a jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media does not include electric carrier signals and telecommunication signals.
[0113] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.< / header>
Claims
1. A data communication method, characterized in that: The method comprises: Get the data to be reported; Obtaining the infrastructure information of the data to be reported through static decoding; Dynamically decoding the data to be reported according to the infrastructure information to obtain object data included in the data to be reported; The object data is reported to a target location for processing.
2. The method according to claim 1, characterized in that Dynamically decoding the data to be reported according to the infrastructure information to obtain object data included in the data to be reported includes: Acquire a mapping key in the data to be reported according to the infrastructure information; The object data in the data to be reported is determined according to the mapping key.
3. The method according to claim 2, characterized in that In the case where the infrastructure information is structure information based on the http protocol, obtaining a mapping key in the data to be reported according to the infrastructure information includes: Acquire a uniform resource locator according to the first line of the data to be reported, and determine the uniform resource locator as the mapping key; Determining object data in the data to be reported according to the mapping key includes: The message body of the data to be reported is determined according to the infrastructure information, and the object data in the message body is determined according to the uniform resource locator.
4. The method according to claim 2, characterized in that After obtaining the mapping key in the data to be reported according to the infrastructure information, the method further includes: The session identifier in the data to be reported is determined according to the infrastructure information, and the data processing request corresponding to the processing result is determined according to the session identifier.
5. The method according to claim 1, characterized in that Obtain the infrastructure information of the data to be reported through static decoding, including: The infrastructure information of the data to be reported is determined according to the TCP port number in the context information of the data to be reported.
6. The method according to claim 5, characterized in that Determining the infrastructure information of the data to be reported according to the TCP port number in the context information of the data to be reported includes: Determine the network protocol used by the data to be reported according to the correspondence between the preset TCP port number and the network protocol; According to the network protocol adopted by the data to be reported, the infrastructure information of the data to be reported is determined.
7. The method according to claim 1, characterized in that The method further comprises: Get the message of the object to be sent; According to the predetermined infrastructure information corresponding to the object message to be sent, encoding the object message to be sent to obtain original data; The original data is sent to a target location.
8. A data communication device, characterized in that: The device comprises: A unit for acquiring data to be reported, used for acquiring data to be reported; A static decoding unit, used for acquiring the infrastructure information of the data to be reported through static decoding; A dynamic decoding unit, configured to dynamically decode the data to be reported according to the infrastructure information, and obtain object data included in the data to be reported; A reporting unit is used to report the object data to a target location for processing.
9. A data communication device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Data transmission method and apparatus
CN110495149A
Business management method and device and storage medium
CN116193299A
Encoding program, creating program, encoding method, creating method, encoding device, and decoding device
EP3506126A1
Systems and methods for multi-protocol, multi-format universal searching
US20170193084A1
Cited By
Protocol decoding and displaying method and system for waveform data
CN121098964A