CN113238982A - Data communication method, device, computer equipment and storage medium - Google Patents

Data communication method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113238982A
CN113238982A CN202110448363.1A CN202110448363A CN113238982A CN 113238982 A CN113238982 A CN 113238982A CN 202110448363 A CN202110448363 A CN 202110448363A CN 113238982 A CN113238982 A CN 113238982A
Authority
CN
China
Prior art keywords
data
pdn
response
path
protocol message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110448363.1A
Other languages
Chinese (zh)
Inventor
陈璟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202110448363.1A priority Critical patent/CN113238982A/en
Publication of CN113238982A publication Critical patent/CN113238982A/en
Priority to PCT/CN2021/129718 priority patent/WO2022227484A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a data communication method, a data communication device, computer equipment and a storage medium. The method comprises the following steps: through a control channel divided from a bus interface, carrying out control information interaction with a host computer, and establishing a multi-channel PDN data channel; receiving a data packet transmitted by the host multiplexing the data transmission path through a data transmission path divided from the bus interface; analyzing a multiplexing protocol message header in the data packet to obtain a path identifier; and sending the PDN data in the data packet through a PDN data path corresponding to the path identifier in the multiple PDN data paths. By adopting the method, the data communication efficiency can be improved.

Description

Data communication method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data communication method, an apparatus, a computer device, and a storage medium.
Background
With the development of communication technology, public Data network pdn (public Data network) is also widely used. The PDN is a wide area network established by a telecommunications carrier, and is capable of providing services and technologies for accessing the wide area network, and providing high-quality data transmission services for users. High-speed transmission of communication data can be achieved through the PDN. For example, high-speed data transmission between the communication module and a terminal connected thereto may be realized, or high-speed data transmission between the host and the terminal, or the like may be realized with the communication module as an intermediate transmission medium.
However, the conventional data communication method has a problem of low data communication efficiency.
Disclosure of Invention
In view of the above, it is necessary to provide a data communication method, an apparatus, a computer device, and a storage medium capable of improving data communication efficiency.
A method of data communication, the method comprising: through a control channel divided from a bus interface, carrying out control information interaction with a host computer, and establishing a multi-channel PDN data channel; receiving a data packet transmitted by the host multiplexing the data transmission path through a data transmission path divided from the bus interface; analyzing a multiplexing protocol message header in the data packet to obtain a path identifier; and sending the PDN data in the data packet through a PDN data path corresponding to the path identifier in the multiple PDN data paths.
In one embodiment, the parsing the mux-header in the data packet to obtain the path identifier includes: analyzing a data type zone bit of a multiplexing protocol message header in the data packet according to a preset multiplexing protocol message header format; and when the data type flag bit represents a preset value carrying PDN data, extracting a path identifier from a path identifier filling part of the multiplexing protocol message header according to the multiplexing protocol message header format.
In one embodiment, the method further comprises: reading the data capacity filled by the data capacity filling part of the multiplexing protocol message header according to the multiplexing protocol message header format; the data capacity is dynamically determined by the host based on network quality parameters; checking PDN data in the data packet according to the data capacity; and when the verification is passed, executing the PDN data path corresponding to the path identifier in the multiple PDN data paths, and sending the PDN data in the data packet.
In one embodiment, the method further comprises: receiving PDN response data through the multiple PDN data paths; acquiring a path identifier of the PDN data path through which the PDN response data passes; constructing a message header of a response multiplexing protocol according to a preset format of the message header of the multiplexing protocol; the data type mark position of the response multiplexing protocol message head is a preset value which represents that PDN data is carried, and the access identifier filling part of the response multiplexing protocol message head is filled with the acquired access identifier; generating a response data packet according to the PDN response data and the response multiplexing protocol message header; and sending the response data packet through the data transmission path.
In one embodiment, the data capacity filling part of the response multiplexing protocol message header is filled with the response data capacity determined by the communication module according to the current network quality parameter; the generating a response data packet according to the PDN response data and the response mux-protocol header includes: based on the PDN response data, re-determining the data of the packet to be sent according to the response data capacity; and assembling the response multiplexing protocol message header and the packet data to be sent to obtain a response data packet.
A data communication apparatus, the apparatus comprising: the multi-channel PDN data path establishing module is used for carrying out control information interaction with the host through a control path divided from the bus interface and establishing multi-channel PDN data paths; a data packet receiving module, configured to receive, through a data transmission path divided from the bus interface, a data packet transmitted by the host multiplexing the data transmission path; a path identifier obtaining module, configured to analyze a multiplexing protocol message header in the data packet to obtain a path identifier; and the PDN data sending module is used for sending the PDN data in the data packet through a PDN data channel corresponding to the channel identifier in the multiple PDN data channels.
In one embodiment, the path identifier obtaining module includes: the data type zone bit analyzing unit is used for analyzing the data type zone bit of the multiplexing protocol message header in the data packet according to a preset multiplexing protocol message header format; and the access identifier extraction unit is used for extracting the access identifier from the access identifier filling part of the multiplexing protocol message header according to the multiplexing protocol message header format when the data type flag bit indicates a preset value carrying PDN data.
In one embodiment, the apparatus comprises: a data capacity reading unit configured to read a data capacity filled in a data capacity filling unit of the mux header according to the mux header format; the data capacity is dynamically determined by the host based on network quality parameters; a PDN data verification unit, configured to verify PDN data in the data packet according to the data capacity; and the PDN data sending module is used for executing the PDN data channel corresponding to the channel identifier in the multiple PDN data channels and sending the PDN data in the data packet when the verification is passed.
In one embodiment, the apparatus comprises: a PDN response data receiving unit, configured to receive PDN response data through the multiple PDN data paths; a path identifier obtaining unit, configured to obtain a path identifier of a PDN data path through which the PDN response data passes; a response multiplexing protocol message header constructing unit, configured to construct a response multiplexing protocol message header according to a preset multiplexing protocol message header format; the data type mark position of the response multiplexing protocol message head is a preset value which represents that PDN data is carried, and the access identifier filling part of the response multiplexing protocol message head is filled with the acquired access identifier; a response data packet generating unit, configured to generate a response data packet according to the PDN response data and the response mux-pdu header; and the response data packet sending module is used for sending the response data packet through the data transmission path.
In one embodiment, the response data packet generating unit is configured to re-determine the data of the packet to be sent according to the response data capacity based on the PDN response data; and assembling the response multiplexing protocol message header and the packet data to be sent to obtain a response data packet.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program: through a control channel divided from a bus interface, carrying out control information interaction with a host computer, and establishing a multi-channel PDN data channel; receiving a data packet transmitted by the host multiplexing the data transmission path through a data transmission path divided from the bus interface; analyzing a multiplexing protocol message header in the data packet to obtain a path identifier; and sending the PDN data in the data packet through a PDN data path corresponding to the path identifier in the multiple PDN data paths.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of: through a control channel divided from a bus interface, carrying out control information interaction with a host computer, and establishing a multi-channel PDN data channel; receiving a data packet transmitted by the host multiplexing the data transmission path through a data transmission path divided from the bus interface; analyzing a multiplexing protocol message header in the data packet to obtain a path identifier; and sending the PDN data in the data packet through a PDN data path corresponding to the path identifier in the multiple PDN data paths.
The data communication method, the device, the computer equipment and the storage medium carry out the interaction of control information with the host through a control channel divided from a bus interface, and establish a multi-channel PDN data channel; receiving a data packet transmitted by the host multiplexing data transmission path through a data transmission path divided from the bus interface; analyzing a multiplexing protocol message header in the data packet to obtain a path identifier; and sending the PDN data in the data packet through a PDN data path corresponding to the path identifier in the multiple PDN data paths. The control channel and the data transmission channel can be respectively divided from the bus interface, so that the control information and the data transmission are separated and do not influence each other, and the transmission efficiency of the data transmission process is ensured. Meanwhile, the corresponding PDN data path can be identified through the path identifier, the PDN data in the data packet is sent, and the data channel to be sent can be quickly determined, so that the data communication efficiency is improved.
Drawings
FIG. 1 is a diagram of an application environment of a data communication method according to an embodiment;
FIG. 2 is a flow diagram illustrating a method of data communication in one embodiment;
FIG. 3 is a flowchart illustrating the step of parsing the header of the MUX protocol message in the packet to obtain the tunnel ID in one embodiment;
FIG. 4 is a flow chart illustrating a data communication method according to another embodiment;
FIG. 5 is a flow chart illustrating a data communication method according to another embodiment;
FIG. 6 is a flow chart illustrating a data communication method according to another embodiment;
FIG. 7 is a diagram illustrating a header of a mux-protocol message during data communication in one embodiment;
FIG. 8 is a diagram illustrating data packets during data communication in one embodiment;
FIG. 9 is a block diagram of a data communication device according to an embodiment;
FIG. 10 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data communication method provided by the application can be applied to the application environment shown in fig. 1, and is particularly applied to a data communication system. The data communication system includes a host 102 and a communication module 104, wherein the host 102 communicates with the communication module 104 through a bus. The communication module 104 executes a data communication method, and specifically, the communication module 104 performs control information interaction with the host 102 through a control path divided from a bus interface to establish multiple PDN data paths; receiving a data packet transmitted by the host 102 multiplexing the data transmission path through the data transmission path divided from the bus interface; the communication module 104 analyzes the multiplexing protocol message header in the data packet to obtain a path identifier; and sending the PDN data in the data packet through a PDN data path corresponding to the path identifier in the multiple PDN data paths. The host 102 may be, but is not limited to, various computer systems, personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices; the communication module 104 may be a module for data communication that is independent of the terminal; or may be a module for data communication integrated in the terminal. A server or a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a data communication method is provided, which is described by taking the method as an example applied to the communication module in fig. 1, and includes the following steps:
step 202, performing control information interaction with the host through a control path divided from the bus interface, and establishing a multi-path PDN data path.
The bus interface is an interface capable of providing connection for accessing a bus. For example, a pcie (peripheral component interconnect express) interface, an I2C (I-squared-C) interface, or a usb (universal Serial bus) interface in the communication module. The control path is a path through which the host sends control information to the communication module. The control information is information which is sent by the host computer to the communication module and is used for controlling the communication module to execute certain operation. The PDN data path refers to a path capable of transmitting PDN data.
Specifically, before the host transmits the multiple PDN data via the communication module, the host needs to transmit the control information of the host to the communication module, so that the communication module can transmit the multiple PDN data via the control information. The communication module can utilize a preset virtual interface connected with the host computer by the communication module bus interface to divide a control channel.
In one embodiment, a control path is divided by software by using a PCIe bus connected to a PCIe interface of the communication module, the control path is configured by using a relevant configuration item under the host side/dev/mhi _ ctrl interface, and the interaction of the control information is realized through the control path divided by the bus interface.
And step 204, receiving the data packet transmitted by the host multiplexing data transmission path through the data transmission path divided from the bus interface.
The data transmission path is a path for transmitting data. Multiplexing refers to the transmission of data packets by repeatedly using the transmission path. A data packet is data that is transmitted each time data is transmitted.
Specifically, the host transmits data to be transmitted to the terminal through the communication module, and a data transmission path divided by a bus interface connecting the host and the communication module can be used. Accordingly, the communication module may receive the data packet sent by the host through the data transmission path. The communication module can utilize the bus interface of the communication module and a preset virtual interface of the host to divide a data transmission channel. And receiving the data packet sent by the host through a data receiving unit at the local end of the communication module.
In one embodiment, the communication module uses a PCIe bus connected to a PCIe interface of the local terminal, the software divides a control path, performs configuration using a relevant configuration item under the host side/PCIe _ mhio interface, divides the bus interface into a data transmission path, and receives a data packet sent by the host through the data transmission path.
In one embodiment, the communication module adjusts the Transmission parameters, such as baud rate, frequency, or mtu (maximum Transmission unit), of the host and the communication module through a data Transmission path divided from the bus interface. And receiving the data packet transmitted by the host through the data transmission path in a synchronous time division multiplexing or asynchronous very multiplexing mode.
Step 206, the multiplexing protocol message header in the data packet is analyzed to obtain the path identifier.
The mux-header refers to header information of a packet, which can determine information such as the type or size of the packet. The path identifier is indicative information that can uniquely identify a path. For example, the way identification is the ID (identity document) of the way.
Specifically, the communication module may find a padding value in the preset field by analyzing a preset field position in a header of the multiplexing protocol message in the data packet, and obtain the path identifier through the padding value. For example, the lane identification is obtained using the padding value at the second field of the mux protocol header.
In one embodiment, the communication module analyzes a mux-pdu header of a received packet by a packet analysis tool to obtain a path identifier. For example, the second field of the mux-header of the received data packet may be parsed by the packet capture tool, and the parsed value is the obtained path identifier.
And step 208, sending the PDN data in the data packet through the PDN data path corresponding to the path identifier in the multiple PDN data paths.
Specifically, each PDN data path has a corresponding path identifier, and after the communication module obtains a packet and obtains the path identifier by parsing the packet, the PDN data in the packet is sent based on a sending operation triggered by the sending operation.
In one embodiment, after the message header is resolved on the communication module, the data packet with the protocol header removed is sent to the PDN data path corresponding to the path identifier, that is, when the communication module sends the data packet, only the original data in the data packet is sent, so that the upper layer application program receiving the data packet sent by the communication module uses the received data packet accurately and efficiently.
In the data communication method, control information interaction is carried out with a host through a control channel divided from a bus interface, and a plurality of PDN data channels are established; receiving a data packet transmitted by the host multiplexing data transmission path through a data transmission path divided from the bus interface; analyzing a multiplexing protocol message header in the data packet to obtain a path identifier; and sending the PDN data in the data packet through a PDN data path corresponding to the path identifier in the multiple PDN data paths. The control channel and the data transmission channel can be respectively divided from the bus interface, so that the control information and the data transmission are separated and do not influence each other, and the transmission efficiency of the data transmission process is ensured. Meanwhile, the corresponding PDN data path can be identified through the path identifier, the PDN data in the data packet is sent, and the data channel to be sent can be quickly determined, so that the data communication efficiency is improved.
In one embodiment, as shown in fig. 3, parsing the mux-header in the data packet to obtain the path identifier includes:
step 302, according to a preset format of the multiplexing protocol message header, the data type flag bit of the multiplexing protocol message header in the data packet is analyzed.
The format of the message header of the multiplexing protocol refers to the field composition format of the message header of the multiplexing protocol. The data type flag bit refers to a field position capable of indicating the data type of the data packet. Where a field refers to a byte bit or a range of byte bits in a protocol message header, a field includes eight byte bits. For example, the first byte bit or the byte bit range of the first byte bit to the eighth byte bit in the protocol message header.
Specifically, a preset multiplexing protocol message header format exists in a multiplexing protocol message header in a transmitted data packet, and a corresponding data type flag bit can be analyzed through the multiplexing protocol message header format.
In one embodiment, when the host sends a data packet, a first byte bit of a multiplexing protocol message header in the data packet is preset as a data type flag bit of the multiplexing protocol message header; when the communication module receives the data packet, the first byte bit of the multiplexing protocol message header in the data packet is analyzed to obtain the data type flag bit corresponding to the data packet.
And step 304, when the data type flag bit indicates a preset value carrying PDN data, extracting a path identifier from a path identifier filling part of a multiplexing protocol message header according to a multiplexing protocol message header format.
The path identifier padding unit is a byte bit or a byte bit range that can pad the path identifier in the mux header.
Specifically, after the communication module analyzes the data type flag bit of the multiplexing protocol message header in the data packet according to the preset multiplexing protocol message header format, the type of the data packet is determined first according to the preset values of different PDN data carried by the data type flag bit, and when the type of the data packet is the control transmission type, the access identifier in the multiplexing protocol message header is extracted according to the multiplexing protocol message header format.
In an embodiment, when the flag bit of the data type representing the data carrying the PDN is a preset value 0, the data packet received by the communication module is a control-class data packet, and the path identifier is extracted in the path identifier filling portion of the mux protocol message header according to the mux protocol message header format.
In an embodiment, when a flag bit of a data type representing data carrying PDN is a preset value 1, the data type indicating that a data packet received by a communication module is a data-type data packet, and when the data packet is received, an operation of receiving control information in the communication module may be triggered, based on the operation, a data packet forwarding instruction sent by a receiving host to the communication module is received, and based on the forwarding instruction, a path identifier is extracted at a path identifier filling portion of a mux protocol message header according to a mux protocol message header format.
In this embodiment, the data type flag bit of the mux protocol header in the data packet is analyzed through the preset mux protocol header format, and when the data type flag bit indicates a preset value carrying PDN data, the path identifier is extracted from the path identifier filling portion of the mux protocol header according to the mux protocol header format, so that the path identifier for sending the data packet can be accurately determined, and when the communication module receives the data packet, redundancy on the same channel of multiple paths of PDN data is avoided, thereby improving the efficiency of data communication.
In one embodiment, as shown in fig. 4, the data communication method further includes:
step 402, according to the format of the message header of the multiplexing protocol, reading the data capacity filled by the data capacity filling part of the message header of the multiplexing protocol; the data capacity is dynamically determined by the host based on network quality parameters.
The data capacity refers to the size of each transmitted data packet. For example, each time a packet is transmitted with a size of 128Bytes, the data capacity of the mux-header is filled with 128 Bytes. The network quality parameter refers to a parameter capable of reflecting the capability of transmitting data packets in the data communication process. Such as the network throughput of the bus or the data transfer rate of the bus, etc.
Specifically, the data capacity filled in the data capacity filling part of the mux header may be read according to the mux header format, and the data capacity may be dynamically determined according to the network quality parameter. For example, padding values in the third and fourth byte sections of the multiplexing protocol message header may be used as the data capacity.
In one embodiment, the field corresponding to the data capacity filling part of the mux-header may be analyzed by the mux-header analyzing plug-in, so as to obtain the data capacity filled by the data capacity filling part. For example, the corresponding PAYLOAD _ LEN _ WITH _ PADDING field in the header of the mux protocol is parsed to obtain the value filled in the field, which is the data capacity. For example, the padding value in this field is represented in binary form, and assuming that the padding value is 0000000000001111, the data capacity of the padding is 15 bytes (Byte).
And step 404, checking the PDN data in the data packet according to the data capacity.
Specifically, after reading the data capacity filled in the data capacity filling section of the mux header, the PDN data in the packet may be checked by a data checking method in units of the data capacity.
In one embodiment, when a host sends a data packet, a hash value is generated for each sent data packet by taking data capacity as a unit, when a communication module receives the data packet, another hash value is generated for the same data packet at the communication module side, when the hash value generated at the sending end of the host is the same as the hash value generated at the receiving end of the communication module, a PDN data verification result in the data packet can be obtained, that is, PDN data in the data packet is complete and accurate, and the data packet does not have abnormal appearance in the sending process.
And step 406, when the verification is passed, executing a PDN data path corresponding to the path identifier in the multiple PDN data paths, and sending PDN data in the data packet.
Specifically, when the PDN data in the verification data packet is complete and accurate, a PDN data path corresponding to the path identifier is determined in the multiple PDN data paths, and the PDN data path is used as a path for sending PDN data in the data packet that passes the verification.
In one embodiment, when the check is passed, a data transmission instruction in the communication module is triggered, and the data transmission instruction transmits the PDN data in the data packet to the PDN data path corresponding to the path identifier by extracting the path identifier from the path identifier padding portion of the mux-header.
In the embodiment, the data capacity filled in the data capacity filling part of the multiplexing protocol message header is read according to the multiplexing protocol message header format, and the PDN data in the data packet is verified according to the data capacity; the accuracy of data communication is ensured; when the verification is passed, the PDN data in the data packet is sent through the PDN data path corresponding to the path identifier in the multiple PDN data paths, so that the condition that multiple PDN data are sent to the same PDN data path can be avoided, or one PDN data is sent to multiple PDN data paths, the data redundancy is reduced, and the data communication efficiency is improved.
In one embodiment, as shown in fig. 5, the data communication method further includes:
step 502, receiving PDN response data via multiple PDN data paths.
The PDN response data is PDN data sent by the terminal connected to the communication module.
Specifically, the communication module may receive PDN response data sent by a terminal connected to the communication module through a data receiving unit of the local terminal.
And step 504, acquiring a path identifier of the PDN data path through which the PDN response data passes.
Specifically, the communication module receives PDN response data via multiple PDN data paths, where the path identifiers of the PDN data paths are different, and the path identifier of the PDN data path through which the PDN response data passes may be determined by using the obtained PDN response data.
In an embodiment, the path identifier of the PDN data path through which the PDN response data passes may be obtained according to a correspondence between the identifier of the terminal and the path identifier corresponding to the PDN response data. And after receiving the PDN response data, determining the identifier of the terminal through the PDN response data, and determining the access identifier of the PDN data access corresponding to the identifier of the terminal through the identifier of the terminal, thereby obtaining the access identifier of the PDN data access through which the PDN response data passes.
Step 506, constructing a message header of a response multiplexing protocol according to a preset format of the message header of the multiplexing protocol; and the data type mark position of the response multiplexing protocol message header is a preset value which represents that PDN data is carried, and the access identifier filling part of the response multiplexing protocol message header is filled with the acquired access identifier.
Wherein, the response multiplexing protocol message header refers to the multiplexing protocol message header of the PDN response data.
Specifically, after acquiring the path identifier of the PDN data path, the communication module may construct a response mux protocol message header based on the path identifier and a preset value of a data type flag position of the response mux protocol message header.
In one embodiment, the predetermined mux-header format is octet (the internet standard uses octets), where octets are divided into four groups, the first group is padded with data type flag locations and eight bits for empty locations; filling the second group as a path identifier, and filling the third group and the fourth group as data packet capacity respectively; and the multiplexing protocol message header completed based on the padding is used as a constructed response multiplexing protocol message header.
And step 508, generating a response data packet according to the PDN response data and the response multiplexing protocol message header.
Specifically, the communication module obtains the PDN response data and the response multiplexing protocol message header, and encapsulates the PDN response data and the response multiplexing protocol message header to generate a response data packet.
In one embodiment, the response multiplexing protocol message header octet is added with PDN response data after the fourth group, and the response multiplexing protocol message header and the PDN response data are encapsulated by the data packet encapsulation tool to generate a response data packet.
Step 510, sending a response packet through the data transmission path.
Specifically, after the local terminal of the communication module generates the response packet, the local terminal sends the response packet to the host through a bus interface of the local terminal, such as a PCIe interface, so that the host can send the response packet to the corresponding PDN channel after receiving the response packet.
In this embodiment, PDN response data is received through a multiple PDN data path, a path identifier of the PDN data path through which the PDN response data passes is obtained, a response multiplexing protocol message header is constructed according to a preset multiplexing protocol message header format, a response data packet is generated according to the PDN response data and the response multiplexing protocol message header, and the response data packet is sent through a data transmission path. The purpose of transmitting the response data packet to the host by using the communication module can be achieved.
In one embodiment, as shown in fig. 6, the data capacity filling part of the response mux-pdu header is filled with the response data capacity determined by the communication module according to the current network quality parameter; generating a response data packet according to the PDN response data and a response multiplexing protocol message header, wherein the response data packet comprises:
and step 602, re-determining the data of the packet to be sent according to the response data capacity based on the PDN response data.
The data of the packet to be transmitted refers to PDN response data to be transmitted, which is divided into data packets with a certain capacity.
Specifically, before the PDN response data is sent, the PDN response data may be divided into data packets according to the current network quality parameter, and the data packets may ensure a range that the current network can bear in the transmission process.
In one embodiment, the communication module may divide the PDN response data into packets with set response data capacities based on a setting operation for packet sizes, and determine the packets as the pending packet data.
And step 604, assembling the response multiplexing protocol message header and the data of the packet to be sent to obtain a response data packet.
Specifically, the communication module may generate the response packet by adding a response mux-header to the packet data to be sent. After the data of the packet to be sent in the communication module is sent to the host, the host can analyze the PDN data in the data packet and send the analyzed PDN data to the corresponding PDN channel.
In the embodiment, the data to be sent is re-determined by processing the PDN response data according to the response data capacity, and the response multiplexing protocol message header and the data to be sent are assembled to obtain the response data packet, so that the purpose of determining the sending size of the response data packet according to the response data capacity can be achieved, the problem of low sending accuracy caused by mismatching between the network quality parameter and the response data capacity can be prevented, and the accuracy of data communication is improved.
In one embodiment, data communication between the 5G communication module and the Host is taken as an example. The 5G communication module and the Host can be independent modules or integrated modules respectively. Specifically, a control path can be set for establishing and maintaining multiple PDN connections based on a PCIe interface of the 5G module; the software interface of the control channel on the Host side is a serial port/dev/mhi _ ctrl. Setting a path of data transmission path for multiplexing transmission of multiple paths of PDN data; the software interface of the data transmission path on the Host side is a network port pcie _ mhi 0. With a data multiplexing protocol, multiple PDN communication data may be multiplexed for transmission over a physical data path based on the data multiplexing protocol. Specifically, the control path is used for transmitting control information between the Host and the 5G communication module, and PDN data communication is established by using the control path; the data transmission path is used for transmitting PDN communication data, and the multiplex PND communication data are multiplexed and transmitted on the data transmission path.
In one embodiment, Host performs multi-path PDN dialing based on a control path through a multi-path dialing tool at the home terminal, where the dialing parameter is a PDN path identifier corresponding to PDN data to be transmitted. When the Host dial-up network access is successful, acquiring an allocated IP (Internet Protocol address) address; the IP address may be used as a parameter in the data packet during the transmission of the communication data. Meanwhile, the Host can add a data multiplexing protocol message header to the communication data to be transmitted by the home terminal and transmit the communication data to the 5G communication module through the data transmission channel. And after receiving the communication data which is transmitted by the Host and added with the data multiplexing protocol message header, the 5G communication module analyzes the data multiplexing protocol message header to obtain a PDN access identifier, and transmits the communication data without the data multiplexing protocol message header to a PDN access corresponding to the PDN access identifier.
In one embodiment, the 5G communication module adds a data multiplexing protocol message header to PDN data received from an air interface, sends the PDN data to which the data multiplexing protocol message header is added to the Host through a data transmission path on a PCIe bus, and after the Host receives data from the data transmission path, parses different PDN path identifiers according to the data multiplexing protocol message header, and transmits the PDN data from which the data multiplexing protocol message header is removed to an upper application program corresponding to the PDN path identifier.
In one embodiment, as shown in fig. 7, the specific field of the header of the data multiplexing protocol is expressed as Octet, that is, the internet standard uses Octet, and the header of the data multiplexing protocol is divided into four groups of fields, where the first group of fields includes the data type of the communication data, the second group of fields includes the path identifier of the communication data to be transmitted, and the third group of fields includes the size of the data packet to be transmitted each time during the transmission of the communication data. Through the data multiplexing protocol message header formed by the fields, the transmission state, the transmission path and the size of the data packet of the communication data can be determined. When the first byte bit C/D in the first group of fields is 0, the 5G communication module may parse the path identifier MUX _ ID when receiving the data packet, and send the data packet to the corresponding PDN path in real time according to the path identifier MUX _ ID. And determining a bit for the reserved data type through a second byte bit R in the first group of fields, wherein R can be set according to an actual application scene. When transmitting the data packet, in order to improve the transmission accuracy of the data packet, the third field and the fourth field in the header of the data multiplexing protocol carry a PADDING value of the data packet capacity, the set field of the third field and the fourth field is represented as PAYLOAD _ LEN _ WITH _ PADDING, and the size of the IP data packet sent each time can be limited by the PADDING value in the field, so that the sent data packet is matched WITH the network quality parameter.
In one embodiment, as shown in fig. 8, MAP _ HDR is used as a data multiplexing protocol message header, and the Host or 5G communication module adds the data multiplexing protocol message header to a corresponding IP Packet (IP Packet) each time data is transmitted, and transmits the encapsulated data Packet after data encapsulation.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 9, there is provided a data communication apparatus 900 comprising: a multiple PDN data path establishing module 902, a packet receiving module 904, a path identifier obtaining module 906, and a PDN data transmitting module 908, where: a multiple PDN data path establishing module 902, configured to perform control information interaction with the host through a control path partitioned from the bus interface, and establish multiple PDN data paths; a packet receiving module 904, configured to receive a packet transmitted by the host multiplexing data transmission path through the data transmission path partitioned from the bus interface; a path identifier obtaining module 906, configured to parse a multiplexing protocol message header in the data packet to obtain a path identifier; a PDN data sending module 908, configured to send PDN data in the data packet through a PDN data path corresponding to the path identifier in the multiple PDN data paths.
In one embodiment, the pathway identification obtaining module 906 includes: the data type zone bit analyzing unit is used for analyzing the data type zone bit of the multiplexing protocol message header in the data packet according to a preset multiplexing protocol message header format; and the access identifier extraction unit is used for extracting the access identifier from the access identifier filling part of the multiplexing protocol message header according to the multiplexing protocol message header format when the data type flag bit indicates the preset value carrying the PDN data.
In one embodiment, an apparatus comprises: a data capacity reading unit for reading the data capacity filled in the data capacity filling part of the multiplexing protocol message header according to the multiplexing protocol message header format; the data capacity is dynamically determined by the host based on network quality parameters; a PDN data checking unit, configured to check PDN data in the data packet according to the data capacity; and the PDN data sending module is used for executing the PDN data channel corresponding to the channel identifier in the multiple PDN data channels and sending the PDN data in the data packet when the verification is passed.
In one embodiment, an apparatus comprises: a PDN response data receiving unit, configured to receive PDN response data through multiple PDN data paths; a path identifier obtaining unit, configured to obtain a path identifier of a PDN data path through which the PDN response data passes; a response multiplexing protocol message header constructing unit, configured to construct a response multiplexing protocol message header according to a preset multiplexing protocol message header format; responding to the preset value of PDN data carried by the data type mark position of the multiplexing protocol message header, and filling the acquired path mark in a path mark filling part of the multiplexing protocol message header; a response data packet generating unit, configured to generate a response data packet according to the PDN response data and the response mux protocol header; and the response data packet sending module is used for sending the response data packet through the data transmission path.
In one embodiment, the response packet generation unit is configured to re-determine the pending packet data by the response data capacity based on the PDN response data; and assembling the response multiplexing protocol message header and the data of the packet to be sent to obtain a response data packet.
For specific limitations of the data communication apparatus, reference may be made to the above limitations of the data communication method, which are not described herein again. The respective modules in the data communication apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a data communication method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A data communication method performed in a communication module connected to a host through a bus interface, the method comprising:
through a control channel divided from a bus interface, carrying out control information interaction with a host computer, and establishing a multi-channel PDN data channel;
receiving a data packet transmitted by the host multiplexing the data transmission path through a data transmission path divided from the bus interface;
analyzing a multiplexing protocol message header in the data packet to obtain a path identifier;
and sending the PDN data in the data packet through a PDN data path corresponding to the path identifier in the multiple PDN data paths.
2. The method of claim 1, wherein parsing the mux-header in the data packet to obtain the path id comprises:
analyzing a data type zone bit of a multiplexing protocol message header in the data packet according to a preset multiplexing protocol message header format;
and when the data type flag bit represents a preset value carrying PDN data, extracting a path identifier from a path identifier filling part of the multiplexing protocol message header according to the multiplexing protocol message header format.
3. The method of claim 2, further comprising:
reading the data capacity filled by the data capacity filling part of the multiplexing protocol message header according to the multiplexing protocol message header format; the data capacity is dynamically determined by the host based on network quality parameters;
checking PDN data in the data packet according to the data capacity;
and when the verification is passed, executing the PDN data path corresponding to the path identifier in the multiple PDN data paths, and sending the PDN data in the data packet.
4. The method of claim 1, further comprising:
receiving PDN response data through the multiple PDN data paths;
acquiring a path identifier of the PDN data path through which the PDN response data passes;
constructing a message header of a response multiplexing protocol according to a preset format of the message header of the multiplexing protocol; the data type mark position of the response multiplexing protocol message head is a preset value which represents that PDN data is carried, and the access identifier filling part of the response multiplexing protocol message head is filled with the acquired access identifier;
generating a response data packet according to the PDN response data and the response multiplexing protocol message header;
and sending the response data packet through the data transmission path.
5. The method of claim 4, wherein the data capacity padding portion of the response mux-pdu header is padded with the response data capacity determined by the communication module according to the current network quality parameter;
the generating a response data packet according to the PDN response data and the response mux-protocol header includes:
based on the PDN response data, re-determining the data of the packet to be sent according to the response data capacity;
and assembling the response multiplexing protocol message header and the packet data to be sent to obtain a response data packet.
6. A data communication apparatus, characterized in that the apparatus comprises:
the multi-channel PDN data path establishing module is used for carrying out control information interaction with the host through a control path divided from the bus interface and establishing multi-channel PDN data paths;
a data packet receiving module, configured to receive, through a data transmission path divided from the bus interface, a data packet transmitted by the host multiplexing the data transmission path;
a path identifier obtaining module, configured to analyze a multiplexing protocol message header in the data packet to obtain a path identifier;
and the PDN data sending module is used for sending the PDN data in the data packet through a PDN data channel corresponding to the channel identifier in the multiple PDN data channels.
7. The apparatus of claim 6, wherein the way identity obtaining module comprises:
the data type zone bit analyzing unit is used for analyzing the data type zone bit of the multiplexing protocol message header in the data packet according to a preset multiplexing protocol message header format;
and the access identifier extraction unit is used for extracting the access identifier from the access identifier filling part of the multiplexing protocol message header according to the multiplexing protocol message header format when the data type flag bit indicates a preset value carrying PDN data.
8. The apparatus of claim 7, wherein the apparatus comprises:
a data capacity reading unit configured to read a data capacity filled in a data capacity filling unit of the mux header according to the mux header format; the data capacity is dynamically determined by the host based on network quality parameters;
a PDN data verification unit, configured to verify PDN data in the data packet according to the data capacity;
and the PDN data sending module is used for executing the PDN data channel corresponding to the channel identifier in the multiple PDN data channels and sending the PDN data in the data packet when the verification is passed.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202110448363.1A 2021-04-25 2021-04-25 Data communication method, device, computer equipment and storage medium Pending CN113238982A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110448363.1A CN113238982A (en) 2021-04-25 2021-04-25 Data communication method, device, computer equipment and storage medium
PCT/CN2021/129718 WO2022227484A1 (en) 2021-04-25 2021-11-10 Data communication method and apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110448363.1A CN113238982A (en) 2021-04-25 2021-04-25 Data communication method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113238982A true CN113238982A (en) 2021-08-10

Family

ID=77129107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110448363.1A Pending CN113238982A (en) 2021-04-25 2021-04-25 Data communication method, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113238982A (en)
WO (1) WO2022227484A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022227484A1 (en) * 2021-04-25 2022-11-03 深圳市广和通无线股份有限公司 Data communication method and apparatus, computer device, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1981485A (en) * 2004-07-08 2007-06-13 松下电器产业株式会社 Communication system, radio lan base station control device, and radio lan base station device
CN102647267A (en) * 2012-03-29 2012-08-22 苏州佳世达电通有限公司 Multi-channel signal transmission device and multi-channel signal transmission method
CN102893547A (en) * 2010-05-21 2013-01-23 苹果公司 Method to control multiple radio access bearers in a wireless device
US20170149675A1 (en) * 2015-11-25 2017-05-25 Huawei Technologies Co., Ltd. Packet retransmission method and apparatus
CN107623646A (en) * 2017-09-06 2018-01-23 华为技术有限公司 Data flow transmission method, send equipment and receiving device
CN109361600A (en) * 2018-04-20 2019-02-19 中国移动通信有限公司研究院 A kind of method and apparatus of to acquisite approachs mark
CN111475454A (en) * 2020-03-27 2020-07-31 西安广和通无线软件有限公司 PCIe interface-based communication method and device, computer equipment and computer-readable storage medium
CN111885652A (en) * 2015-12-28 2020-11-03 华为技术有限公司 Path processing method and device and terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5983272A (en) * 1997-08-29 1999-11-09 Cisco Technology, Inc. Option request protocol
GB2346301B (en) * 1999-01-27 2001-03-14 Motorola Inc Multiplexed serial input/output and method therefor
CN107040674B (en) * 2016-02-04 2021-04-20 华为技术有限公司 Charging method, device and system
CN108966217B (en) * 2018-08-29 2022-05-17 焦作市数据安全工程研究中心 Secret communication method, mobile terminal and secret gateway
CN113238982A (en) * 2021-04-25 2021-08-10 深圳市广和通无线股份有限公司 Data communication method, device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1981485A (en) * 2004-07-08 2007-06-13 松下电器产业株式会社 Communication system, radio lan base station control device, and radio lan base station device
CN102893547A (en) * 2010-05-21 2013-01-23 苹果公司 Method to control multiple radio access bearers in a wireless device
CN102647267A (en) * 2012-03-29 2012-08-22 苏州佳世达电通有限公司 Multi-channel signal transmission device and multi-channel signal transmission method
US20170149675A1 (en) * 2015-11-25 2017-05-25 Huawei Technologies Co., Ltd. Packet retransmission method and apparatus
CN111885652A (en) * 2015-12-28 2020-11-03 华为技术有限公司 Path processing method and device and terminal
CN107623646A (en) * 2017-09-06 2018-01-23 华为技术有限公司 Data flow transmission method, send equipment and receiving device
CN109361600A (en) * 2018-04-20 2019-02-19 中国移动通信有限公司研究院 A kind of method and apparatus of to acquisite approachs mark
CN111475454A (en) * 2020-03-27 2020-07-31 西安广和通无线软件有限公司 PCIe interface-based communication method and device, computer equipment and computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022227484A1 (en) * 2021-04-25 2022-11-03 深圳市广和通无线股份有限公司 Data communication method and apparatus, computer device, and storage medium

Also Published As

Publication number Publication date
WO2022227484A1 (en) 2022-11-03

Similar Documents

Publication Publication Date Title
KR102388195B1 (en) BRAS system-based message packaging method and device
CN111628967B (en) Log data transmission method and device, computer equipment and storage medium
CN105939239B (en) Data transmission method and device of virtual network card
US11563832B2 (en) Data sending method and device, data receiving method and device, and system
CN106878199B (en) Configuration method and device of access information
CN114189905A (en) Message processing method and related equipment
CN109561395A (en) A kind of blue-tooth transmission method and device
CN106506515B (en) Authentication method and device
CN111683066A (en) Heterogeneous system integration method and device, computer equipment and storage medium
CN112929419B (en) Data packet transmission method and device, electronic equipment and readable storage medium
CN114828140B (en) Service flow message forwarding method and device, storage medium and electronic equipment
CN110620762A (en) RDMA (remote direct memory Access) -based data transmission method, network card, server and medium
CN112468407A (en) Data subpackage transmission method and device, computer equipment and storage medium
CN110740481A (en) Data processing method, apparatus and computer storage medium based on quality of service
CN113014510B (en) Data caching method and device in distributed test of inertial navigation system
CN109634908B (en) Data association method, data processing device and storage medium
CN113238982A (en) Data communication method, device, computer equipment and storage medium
CN113179229A (en) Verification method, verification device, storage medium and electronic equipment
CN111245702B (en) Data transmission method and device based on 5GS, forwarding equipment and UPF communication equipment
CN114079675B (en) Message processing method, device, terminal equipment and mobile broadband internet surfing equipment
CN110581792A (en) Message transmission method and device
CN107800758B (en) Wind control data processing method, device and system
CN112019358A (en) Network configuration method, device, equipment and system
CN110636114B (en) Customer service access method, access system, service system and cloud platform
CN114390495A (en) Mobile terminal network communication substitution system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination