Data transmission method, communication apparatus, and storage medium
By introducing protocol headers for indicating transmission paths in audio and video systems, the problem of RTN data transmission technology having a single data type is solved, and support for multiple data types and transmission efficiency is improved.
Patent Information
- Application Number
- PCT/CN2024/082542
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-29
- Filing Date
- 2024-03-19
- Publication Date
- 2024-12-05
AI Technical Summary
The existing real-time audio and video network (RTN) data transmission technology has a single type and is mainly suitable for audio and video data. It is difficult to support the transmission of private protocols or non-audio and video data, resulting in adaptation problems when transmitting multiple data types.
By introducing a protocol header for indicating the transmission path in the data packet, the intermediate node can obtain path information based on the protocol header, without decapsulating the data packet, and support various data types of transmission. The method includes determining the transmission path, generating a data packet with a protocol header, and forwarding the data packets between intermediate nodes until reaching the destination node.
It realizes that when the service data is transmitted, intermediate nodes can obtain path information without decapsulating the data packet, and supports transmission of multiple data types, which reduces the pressure of the control layer and improves the flexibility and efficiency of data transmission.
Smart Images

Figure CN2024082542_05122024_PF_FP_ABST
Abstract
Description
Data transmission method, communication device and storage medium
[0001] This disclosure claims priority to Chinese patent application No. 202310622275.8, filed on May 29, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present disclosure relates to the field of audio and video communication technology, and in particular to a data transmission method, a communication device, and a storage medium. Background Art
[0003] With the widespread adoption of mobile internet and the commercialization of fifth-generation mobile communication technology (5G), user demand for low-latency, highly reliable audio and video applications is growing. Currently, Real-Time Communication (RTC), leveraging its long-standing expertise in the video business, rapidly provides the industry with high-concurrency, low-latency, high-definition, smooth, secure, and reliable full-scenario, fully interactive, and real-time audio and video services. These services are suitable for a variety of application scenarios, including online education, cloud conferencing, and social entertainment.
[0004] Summary of the Invention
[0005] In one aspect, an embodiment of the present disclosure provides a data transmission method, applied to a first node. The data transmission method includes:
[0006] Determine a first transmission path between a first node and a second node, where the first node is a source node of a first data packet and the second node is a destination node of the first data packet;
[0007] Generate a second data packet according to the first data packet and the first transmission path, where the second data packet includes the first data packet and a protocol header for indicating the first transmission path;
[0008] Send the second data packet.
[0009] On the other hand, an embodiment of the present disclosure provides a data transmission method, applied to a third node. The data transmission method includes:
[0010] receiving a second data packet, the second data packet including the first data packet and a protocol header for indicating a first transmission path, the first transmission path being a path between a first node and a second node, the first node being a source node of the first data packet, and the second node being a destination node of the first data packet;
[0011] Parsing the second data packet to obtain a protocol header indicating the first transmission path;
[0012] Based on the protocol header indicating the first transmission path, the second service data packet is sent to a next node located after the third node in the first transmission path.
[0013] In another aspect, an embodiment of the present disclosure provides a communication device, applied to a first node, comprising: a processing module and a sending module.
[0014] a processing module, configured to determine a first transmission path between a first node and a second node, wherein the first node is a source node of a first data packet and the second node is a destination node of the first data packet;
[0015] The processing module is further configured to generate a second data packet according to the first data packet and the first transmission path, where the second data packet includes the first data packet and a protocol header indicating the first transmission path;
[0016] The sending module is used to send a second data packet.
[0017] In another aspect, an embodiment of the present disclosure provides a communication device, applied to a third node, comprising: a transceiver module and a processing module.
[0018] a receiving module, configured to receive a second data packet, the second data packet including the first data packet and a protocol header for indicating a first transmission path, the first transmission path being a path between a first node and a second node, the first node being a source node of the first data packet, and the second node being a destination node of the first data packet;
[0019] a processing module, configured to parse the second data packet to obtain a protocol header indicating the first transmission path;
[0020] The sending module is configured to send the second service data packet to a next node located after the third node in the first transmission path based on the protocol header indicating the first transmission path.
[0021] In yet another aspect, an embodiment of the present disclosure provides a communication device. The communication device includes: a processor and a memory; the memory stores instructions executable by the processor; and when the processor is configured to execute the instructions, the communication device implements any of the methods provided in the first or second aspects above.
[0022] In another aspect, an embodiment of the present disclosure provides a computer-readable storage medium. When the computer-readable storage medium stores computer instructions, when the computer instructions are executed on a computer, the computer executes any one of the methods provided in the first or second aspect.
[0023] In another aspect, an embodiment of the present disclosure provides a computer program product comprising computer instructions. When the computer instructions are executed on a computer, the computer is caused to perform any one of the methods provided in the first or second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings are used to provide a further understanding of the technical solution of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the technical solution of the present disclosure and do not constitute a limitation to the technical solution of the present disclosure.
[0025] FIG1 is a schematic diagram of an audio and video system architecture according to some embodiments.
[0026] FIG2 is a flowchart of a data transmission method according to some embodiments.
[0027] FIG3 is a flowchart of path information transmission according to some embodiments.
[0028] FIG4 is a schematic diagram of a protocol header structure according to some embodiments.
[0029] FIG5 is a flowchart of another data transmission method according to some embodiments.
[0030] FIG6 is a flowchart of path switching according to some embodiments.
[0031] FIG7 is a flowchart of yet another data transmission method according to some embodiments.
[0032] FIG8 is a schematic diagram of a data transmission process according to some embodiments.
[0033] FIG9 is a schematic diagram showing the composition of a data transmission device according to some embodiments.
[0034] FIG10 is a schematic diagram showing the composition of another data transmission device according to some embodiments.
[0035] FIG11 is a schematic structural diagram of a data transmission device according to some embodiments. DETAILED DESCRIPTION
[0036] The following will be combined with the accompanying drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present disclosure.
[0037] In the description of the present disclosure, unless otherwise specified, " / " means "or". For example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: only A, only B, and A and B. In addition, "at least one" means one or more, and "a plurality" means two or more. Expressions such as "first" and "second" do not limit the quantity and execution order, and expressions such as "first" and "second" do not necessarily limit them to be different.
[0038] It should be noted that, in this disclosure, expressions such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described in this disclosure as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a detailed manner.
[0039] Real-time network (RTN) systems can be divided into a control layer and a forwarding layer based on their architectural hierarchy. Key RTN technologies are concentrated in these two layers. Data transmission, as the core technology of the RTN forwarding layer, ensures high-speed, high-quality forwarding of service data along the optimal path planned by the RTN system. However, some technical challenges exist with RTN data transmission. RTN systems only transmit a limited number of data types, and data transmission is only suitable for audio and video data. It is not suitable for proprietary protocols or non-audio and video data.
[0040] In view of this, an embodiment of the present disclosure provides a data transmission method, which is applied to a first node. The method includes: first determining a first transmission path between the first node and the second node, where the first node is the source node of the first data packet and the second node is the destination node of the first data packet; then generating a second data packet based on the first data packet and the first transmission path, where the second data packet includes the first data packet and a protocol header for indicating the first transmission path; and sending the second data packet.
[0041] Therefore, during service data transmission, the disclosed embodiments allow intermediate nodes to obtain path information based on the protocol header indicating the first transmission path, without having to decapsulate the entire first data packet. Furthermore, intermediate nodes can support data transmission of various data types without having to adapt to different data types.
[0042] Figure 1 shows an audio and video system architecture provided by an embodiment of the present disclosure. As shown in Figure 1 , the audio and video system may include a control node 110 and an edge node 120 , where the edge node 120 is used to support access and forwarding of audio and video data.
[0043] In some embodiments, the audio and video system may include an audio and video cloud network, which can be used to implement distributed deployment of edge computing infrastructure resources and to centrally manage these resources. A deployment point with more resources and a concentrated location is called a central cloud, and a deployment point with fewer resources and a wide distribution is called an edge cloud (also called an edge cloud node). Since the edge cloud is more widely distributed, it is closer to the terminal device used by the user. That is, the edge cloud can be understood as a cloud computing platform close to the terminal device, and the central cloud can be understood as a cloud platform that uniformly manages multiple edge clouds.
[0044] The control node 110 is deployed in the aforementioned central cloud and is responsible for controlling and managing media nodes. It can receive and process node information and link quality information reported by media nodes. In some embodiments, the control node 110 may include a network perception module and an access scheduling module. The network perception module can collect edge data and configure network topology, while the access scheduling module can maintain the access quantized network topology corresponding to each service and preferentially schedule the corresponding edge nodes. In addition, the control center 110 can also be used to calculate routing and forwarding paths, plan optimal routing and forwarding paths, intelligently forward data, and manage classified data.
[0045] Edge nodes 120 are deployed in the aforementioned edge cloud. The data transmission path can consist of multiple edge nodes 120 and the links between them. Edge nodes 120 can be composed of multiple small nodes, distributed over a wide area, and can be used to manage edge path tables, encapsulate and parse path protocols, and send and receive data. Edge nodes 120 are used to implement path proxy functions, path management functions, data transmission functions, and data reception functions. Therefore, edge nodes 120 can also include a path proxy module, a path management module, a data transmission module, and a data reception module.
[0046] In some embodiments, the audio and video system may further include a client connected to the edge node 120. The client may be any physical device or software application (e.g., mobile phone application (Application, App), software development kit (Software Development Kit, SDK)) that supports the generation, transmission, and display of audio and video data, or a terminal device (e.g., mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device, etc.).
[0047] It is understandable that the system architecture shown in FIG1 does not constitute a limitation on the embodiments of the present disclosure, and it may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0048] The method provided by the present disclosure is described in detail below with reference to the accompanying drawings.
[0049] As shown in FIG2 , an embodiment of the present disclosure provides a data transmission method, which is applied to a first node and includes the following steps.
[0050] S101. Determine a first transmission path between a first node and a second node, where the first node is a source node of a first data packet and the second node is a destination node of the first data packet.
[0051] The first transmission path is a path for transmitting the first data packet, with the first node as the source node and the second node as the destination node. For example, the first node and the second node can be two edge nodes in the audio and video system shown in FIG1 .
[0052] In some embodiments, the first node may determine the first transmission path by searching a pre-stored path table, wherein the path table is used to record paths in the audio and video system with the first node as the source node.
[0053] In some embodiments, the path table can be stored using a hash table data structure, where the key of the hash table stores the identifier of the destination node, such as an ID, which is an integer, and the value of the hash table stores the path information from the edge node (first node) to the target node, which is a string. Thus, the first node can quickly retrieve the corresponding path information based on the path table. Exemplarily, the information stored in the path table can be <2, "1-2" >, <3, "1-3" >, <4, "1-3-4" >, <5, "1-2-5" >, <6, "1-3-6" >, to represent path 1-2, path 1-3, path 1-3-4, path 1-2-5 and path 1-3-6. 1, 2, 3, 4, 5, 6 are the identifiers of edge node 1, edge node 2, edge node 3, edge node 4, edge node 5, and edge node 6, respectively.
[0054] In some embodiments, the first node may include a path proxy module and a path management module, and the path table may be stored in the path proxy module. Thus, the path management module may query the path table in the path proxy module based on the destination node of the first data packet (i.e., the second node) to obtain the first transmission path.
[0055] For example, if the source node of the first data packet is edge node 1 and the destination node is edge node 5, the path management module of edge node 1 can query the path proxy module, and the path proxy module can retrieve "value=1-2-5" according to "key=5". Then the path information at this time is "1-2-5", that is, the path composed of path 1-2-5.
[0056] In some embodiments, the control node of the audio and video system can calculate the optimal path between any nodes of the audio and video system in real time at a preset frequency, and synchronously send the calculated path information to each edge node.
[0057] It should be noted that the time granularity at which the control node synchronously sends the path table can be consistent with the time granularity at which edge data is collected. For example, if the control node collects data from the edge node every 5 seconds (i.e., the above-mentioned preset frequency), then after collecting data and calculating the path, the control node can send the path table information. Therefore, the frequency of synchronous sending can also be once every 5 seconds.
[0058] In one example, the control node can group path information based on the source nodes of the paths, assigning paths with the same source node to the same group. Furthermore, each group of path information can be sent to its source node. For example, as shown in Figure 3, if the source nodes of all paths included in a group of path information are edge node 1, the control node can send this group of path information to edge node 1. The path proxy module of edge node 1 can then receive and store this group of path information.
[0059] Exemplarily, if the path information determined by the control node includes path 1-3-2, path 1-3, path 1-3-4, path 1-3-5, path 1-3-4-6, path 2-3-1, path 2-3, path 2-4, path 2-3-5, and path 2-4-6. 1, 2, 3, 4, 5, and 6 are the identifiers of edge node 1, edge node 2, edge node 3, edge node 4, edge node 5, and edge node 6, respectively.
[0060] The control node can synchronously send path information of paths 1-2, 1-3, 1-3-4, 1-2-5, and 1-3-6 to edge node 1. Furthermore, the control node can synchronously send path information of paths 2-3-1, 2-3, 2-4, 2-3-5, and 2-4-6 to edge node 2.
[0061] In some embodiments, before searching the pre-stored path table, the first node may further receive first path information sent by the control node, and generate a path table according to the first path information.
[0062] The first path information is used to instruct the control node to determine a path with the first node as the source node based on the collected edge node data. Exemplarily, the first node may use a hash table data structure to store the path information.
[0063] It should be noted that when services transmit data through the RTN system, they typically first need to obtain paths from the control node. Control nodes receive pressure from various service flows from various edge nodes, which causes significant pressure. In the disclosed embodiments, edge nodes can obtain path information calculated and issued by the central node in real time and generate a path table. Therefore, when transmitting data, edge nodes do not need to obtain path information from the control center; they can obtain path information directly from the edge node's path table, which can reduce pressure on the control layer.
[0064] S102: Generate a second data packet according to the first data packet and the first transmission path, where the second data packet includes the first data packet and a protocol header indicating the first transmission path.
[0065] In some embodiments, the protocol header for indicating the first transmission path is located in an outer layer of the header of the second data packet.
[0066] It should be noted that the protocol header is encapsulated in the outer layer of the data packet header. Therefore, when transmitting the data packet, the intermediate node does not need to decapsulate the entire data packet (that is, the path information can be obtained in the outer layer of the data packet header). In addition, the intermediate node does not need to consider the adaptation of other data types (that is, it can support data transmission of various data types).
[0067] In some embodiments, the protocol header for indicating the first transmission path includes a source port field, a destination port field, and a path information field, and the path information field is used to indicate nodes included in the first transmission path.
[0068] In some embodiments, the protocol header for indicating the first transmission path further includes at least one of the following: a length field of the protocol header, a length field of the node identifier, a number field of the node identifier, a service type field, and a version number field.
[0069] Exemplarily, as shown in FIG4 , the protocol header for indicating the first transmission path may also be referred to as a path header, and the structure of the path header may include the following contents.
[0070] (1) Source port field (16 bits): used to describe the source port information of the first transmission path.
[0071] (2) Destination port field (16 bits): used to describe the information of the destination port of the first transmission path.
[0072] (3) Length field (8 bits): used to describe the length of the protocol header indicating the first transmission path.
[0073] (4) Service type field (2 bits): used to describe the service type of the service corresponding to the first data packet.
[0074] (5) Version number field (2 bits): used to describe the version number information.
[0075] (6) Reserved bits (6 bits).
[0076] (7) Node ID length field (2 bits): used to describe the length of the node ID of the node constituting the first transmission path.
[0077] (8) Node ID number field (4 bits): used to describe the length of the number of nodes constituting the first transmission path.
[0078] (9) Path Information Field: This field is used to describe the node IDs of the nodes that make up the first transmission path. The length of the Path Information Field is determined by multiplying the length of the node IDs of the nodes that make up the first transmission path by the number of node IDs.
[0079] In some embodiments, the length of the protocol header is greater than or equal to 7 bytes.
[0080] In some embodiments, as shown in FIG4 , the second data packet may further include an IP header, a UDP header, a Real-time Transport Protocol (RTP) / Real-time Transport Control Protocol (RTCP) header, and a payload portion. If the IP protocol version number used is IPv4, the IP header is typically 20 bytes; if the IP protocol version number used is IPv6, the IP header is typically 40 bytes. The UDP header is typically 8 bytes long.
[0081] It should be understood that the number of bits occupied by the fields shown in FIG. 4 is not fixed and can be adjusted according to actual needs.
[0082] S103: Send a second data packet.
[0083] In some embodiments, the first node may send the second data packet to the next node indicated by the first transmission path, so that the second data packet can be transmitted to the second node (ie, the destination node of the second data packet) based on the first transmission path.
[0084] Illustratively, the path management module of the first node may parse the IP address and fixed port of the next node based on the second data packet, and then forward the second data packet to the next node through the data sending module.
[0085] In some embodiments, upon receiving the second data packet, the next node of the first node may also parse the second data packet to determine the IP address and fixed port of the next node, and then forward the second data packet to the next node via the data transmission module. Furthermore, the second data packet may be forwarded sequentially by each node forming the first transmission path until it reaches the second node (i.e., the destination node).
[0086] In the disclosed embodiments, a protocol header is provided for indicating a first transmission path. Based on this protocol header, during service data transmission, intermediate nodes can obtain path information without decapsulating the entire data packet. This eliminates the need for decapsulating the entire data packet, making it applicable to the transmission of a wider range of data types.
[0087] In some embodiments, as shown in FIG5 , the data transmission method provided by the embodiment of the present disclosure may further include the following steps.
[0088] S104: Obtain second path information through path sensing.
[0089] The second path information is used to indicate a path with the first node as the source node.
[0090] In some embodiments, as described in S101 above, the control node can calculate the optimal path between any nodes in the audio and video system in real time at a preset frequency. The calculated path information is then synchronously distributed to each edge node. Furthermore, the path proxy module of the edge node can receive and store the acquired path information. In some embodiments, this path information can be stored in the form of a path table.
[0091] Thus, the first node can obtain the stored path information through the path perception mechanism and query the stored path information for the second path information whose source node is the second node. Exemplarily, the path management module of the first node can obtain the stored path information in the path proxy module.
[0092] In some embodiments, the path management module of the first node may also query the path agent module for stored network topology information at regular intervals. Thus, the real-time and reliability of the path information can be ensured through the message subscription mechanism and the timing mechanism.
[0093] S105: When the second transmission path between the first node and the second node indicated by the second path information is different from the first transmission path, modify the protocol header in the second data packet that indicates the first transmission path to a protocol header that indicates the second transmission path.
[0094] In some embodiments, if the second transmission path between the first and second nodes indicated by the second path information is different from the first transmission path, the first node can update the second path information into the header of the service data packet based on the aforementioned protocol header encapsulation method. This allows for user-unaware path switching, improving user experience.
[0095] For example, as shown in Figure 6, if the second transmission path between the first and second nodes indicated by the second path information is different from the first transmission path, the path agent module of the first node can notify the path management module in real time through a message subscription mechanism to change the path. Furthermore, the path management module of the first node can update the second path information into the header of the service data packet.
[0096] In some embodiments, when the second transmission path indicated by the second path information is different from the first transmission path, the first node may further update the path table to record the path with the second node as the target node as the second transmission path.
[0097] Based on the above embodiment, the source node can use the path awareness mechanism to detect whether the current path information is consistent with the updated path information, that is, whether a path switch is required. When a path switch is required, the second path information can be directly updated in the header of the service data packet, eliminating the need for link detection and querying the control node. This reduces the complexity of the path switch process and further shortens the path switch time.
[0098] In some embodiments, as shown in FIG7 , embodiments of the present disclosure also provide another data transmission method, which is applied to a third node, which is a node following the first node in the first transmission path. For example, the third node may be an edge node in the audio and video system shown in FIG1 . The method includes the following steps.
[0099] S201: Receive a second data packet, where the second data packet includes a first data packet and a protocol header indicating a first transmission path.
[0100] The first transmission path is a path between a first node and a second node, the first node is a source node of the first data packet, and the second node is a destination node of the first data packet.
[0101] In some embodiments, the protocol header for indicating the first transmission path is located in an outer layer of the header of the second data packet.
[0102] It should be noted that the protocol header indicating the first transmission path is encapsulated in the outer layer of the data packet header. Therefore, when transmitting the data packet, the intermediate node does not need to decapsulate the entire data packet (that is, the path information can be obtained in the outer layer of the data packet header). Furthermore, the intermediate node does not need to consider the adaptation of other data types (that is, it can support data transmission of various data types).
[0103] In some embodiments, the protocol header for indicating the first transmission path includes a source port field, a destination port field, and a path information field, and the path information field is used to indicate nodes included in the first transmission path.
[0104] In some embodiments, the protocol header for indicating the first transmission path further includes at least one of the following: a length field of the protocol header, a length field of the node identifier, a number field of the node identifier, a service type field, and a version number field.
[0105] For example, if the third node is the next node of the first node, as shown in Figure 8, the path management module of the first node (i.e., the source node) can obtain path information of the first transmission path from the path proxy module and encapsulate the protocol header indicating the first transmission path and the first data packet to obtain a second data packet. Furthermore, the data sending module of the first node can transmit data to the third node. Correspondingly, the data receiving module of the third node can receive the second data packet.
[0106] S202: Parse the second data packet to obtain a protocol header indicating the first transmission path.
[0107] In some embodiments, the third node may decapsulate the data packet to obtain a protocol header indicating the first transmission path, and then may obtain the ID information of the next hop node based on the protocol header.
[0108] For example, as shown in Figure 8, the data receiving module of the third node receives the second data packet transmitted by the first node and forwards it to the path management module. The path management module can decapsulate the data packet and, based on the path protocol format, obtain the ID information of the next hop node to the third node. It can convert the node ID into a node IP address and forward it to the data sending module.
[0109] S203 : Send the second service data packet to the next node after the third node in the first transmission path based on the protocol header indicating the first transmission path.
[0110] Exemplarily, as shown in FIG8 , the data sending module of the third node may forward the data packet to the next hop node according to the next hop node IP address and the fixed next hop port.
[0111] In some embodiments, if there are multiple intermediate nodes between the first node and the second node in the first transmission path, each intermediate node can first parse the protocol header to obtain the next node information based on the data transmission method shown in S201 to S203, and then forward it until the data is transmitted to the last intermediate node.
[0112] In some embodiments, after receiving the second data packet, the second node may parse the path protocol. If no next node is found, the second node may be determined to be the destination node. The second node may remove the protocol header to obtain the original service data, namely the first data packet.
[0113] For example, as shown in Figure 8 , the data receiving module of the second node can receive the second data packet and perform internal data forwarding, forwarding the second data packet to the path management module. The path management module of the second node then parses the path protocol and removes the protocol header to obtain the original service data, i.e., the first data packet.
[0114] Based on the above embodiments and the protocol header for indicating the first transmission path provided by the embodiments of the present disclosure, when transmitting service data, intermediate nodes can obtain path information without having to decapsulate the entire data packet. This eliminates the need for decapsulating the entire data packet, making it applicable to the transmission of a wider range of data types.
[0115] The above mainly introduces the solution provided by the present disclosure from the perspective of the interaction between each node. It is understandable that each node (such as a device or equipment in order to realize the above functions) includes a hardware structure and / or software module corresponding to the execution of each function. It should be easy for those skilled in the art to appreciate that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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 to be beyond the scope of the present invention.
[0116] FIG9 is a schematic diagram of a data transmission device according to some embodiments, which is applied to a first node. As shown in FIG9 , the data transmission device 90 includes a processing module 901 and a sending module 902. In some embodiments, the data transmission device 90 further includes a receiving module 903.
[0117] In some embodiments, processing module 901 is configured to determine a first transmission path between a first node and a second node, where the first node is the source node of a first data packet and the second node is the destination node of the first data packet. Processing module 901 is further configured to generate a second data packet based on the first data packet and the first transmission path, where the second data packet includes the first data packet and a protocol header indicating the first transmission path. Sending module 902 is configured to send the second data packet.
[0118] In some embodiments, the protocol header for indicating the first transmission path is located in an outer layer of the header of the second data packet.
[0119] In some embodiments, the protocol header for indicating the first transmission path includes a source port field, a destination port field, and a path information field, and the path information field is used to indicate nodes included in the first transmission path.
[0120] In some embodiments, the protocol header for indicating the first transmission path further includes at least one of the following: a length field of the protocol header, a length field of the node identifier, a number field of the node identifier, a service type field, and a version number field.
[0121] In some embodiments, the processing module 901 is further configured to search a pre-stored path table to determine the first transmission path; the path table is configured to record a path in the audio and video system with the first node as the source node.
[0122] In some embodiments, a receiving module 903 is configured to receive first path information sent by a control node, where the first path information indicates a path determined by the control node based on collected edge node data and having the first node as a source node. A processing module 901 is configured to generate a path table based on the first path information.
[0123] In some embodiments, processing module 901 is configured to obtain second path information through path sensing, where the second path information indicates a path with the first node as the source node. If a second transmission path between the first node and the second node indicated by the second path information is different from the first transmission path, modify a protocol header in the second data packet that indicates the first transmission path to a protocol header that indicates the second transmission path.
[0124] In some embodiments, the processing module 901 is configured to update the path table when the second transmission path indicated by the second path information is different from the first transmission path; and the updated path table records the path with the second node as the target node as the second transmission path.
[0125] It should be noted that the modules in Figure 9 may also be referred to as units, for example, the sending module may be referred to as a sending unit. In addition, in the embodiment shown in Figure 9, the names of the modules may not be those shown in the figure, for example, the sending module may also be referred to as a communication module.
[0126] FIG10 is a schematic diagram showing the composition of another data transmission device according to some embodiments, which is applied to a third node. As shown in FIG10 , the data transmission device 100 includes a receiving module 1001 , a processing module 1002 , and a sending module 1003 .
[0127] In some embodiments, a receiving module 1001 is configured to receive a second data packet, the second data packet including a first data packet and a protocol header indicating a first transmission path, where the first transmission path is a path between a first node and a second node, the first node being the source node of the first data packet, and the second node being the destination node of the first data packet. A processing module 1002 is configured to parse the second data packet to obtain a protocol header indicating the first transmission path. A sending module 1003 is configured to send the second service data packet to the next node located after the third node in the first transmission path based on the protocol header indicating the first transmission path.
[0128] In some embodiments, the protocol header for indicating the first transmission path is located in an outer layer of the header of the second data packet.
[0129] In some embodiments, the protocol header for indicating the first transmission path includes a source port field, a destination port field, and a path information field, and the path information field is used to indicate nodes included in the first transmission path.
[0130] In some embodiments, the protocol header for indicating the first transmission path further includes at least one of the following: a length field of the protocol header, a length field of the node identifier, a number field of the node identifier, a service type field, and a version number field.
[0131] If the various units in Figure 9 or Figure 10 are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present disclosure. The storage medium for storing computer software products includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0132] In the case of implementing the functions of the above-mentioned integrated modules in hardware, an embodiment of the present disclosure provides a schematic structural diagram of a data transmission device, which may be the above-mentioned data transmission device 90 or data transmission device 100. As shown in Figure 11, data transmission device 110 includes: a processor 1102, a communication interface 1103, and a bus 1104. In some embodiments, data transmission device 110 may also include a memory 1101.
[0133] Processor 1102 may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. Processor 1102 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Processor 1102 may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. Processor 1102 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0134] The communication interface 1103 is used to connect to other devices via a communication network, such as Ethernet, wireless access network, or wireless local area network (WLAN).
[0135] The memory 1101 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0136] As an implementation, the memory 1101 may exist independently of the processor 1102. The memory 1101 may be connected to the processor 1102 via a bus 1104 and used to store instructions or program codes. When the processor 1102 calls and executes the instructions or program codes stored in the memory 1101, the information processing method determination method provided in the embodiments of the present disclosure can be implemented.
[0137] In another implementation, the memory 1101 may also be integrated with the processor 1102 .
[0138] Bus 1104 can be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 1104 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, FIG11 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.
[0139] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the equipment or device is divided into different functional modules to complete all or part of the functions described above.
[0140] The present disclosure also provides a computer-readable storage medium. All or part of the processes in the above-mentioned method embodiments can be completed by computer instructions to instruct the relevant hardware, and the program can be stored in the above-mentioned computer-readable storage medium. When the program is executed, it may include the processes of the above-mentioned method embodiments. The computer-readable storage medium can be the memory of any of the above-mentioned embodiments. The above-mentioned computer-readable storage medium can also be an external storage device of the above-mentioned device or apparatus, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the above-mentioned device or apparatus. Further, the above-mentioned computer-readable storage medium can also include both the internal storage unit of the above-mentioned device or apparatus and an external storage device. The above-mentioned computer-readable storage medium is used to store the above-mentioned computer program and other programs and data required by the above-mentioned device or apparatus. The above-mentioned computer-readable storage medium can also be used to temporarily store data that has been output or is to be output. The readable storage medium includes a non-transitory computer-readable storage medium.
[0141] The embodiments of the present disclosure further provide a computer program product, which includes a computer program. When the computer program product is run on a computer, the computer is enabled to execute any one of the information processing mode determination methods provided in the above embodiments.
[0142] Although the present disclosure is described herein in conjunction with various embodiments, in the process of implementing the disclosure for which protection is sought, those skilled in the art may understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple components. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0143] Although the present disclosure has been described with reference to detailed features and embodiments thereof, it will be apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present disclosure. Accordingly, this specification and the drawings are merely illustrative of the present disclosure as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present disclosure. Obviously, those skilled in the art may make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, the present disclosure is intended to encompass such modifications and variations as would fall within the scope of the claims of the present disclosure and their equivalents.
[0144] The above is only a specific embodiment of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Any changes or replacements within the technical scope disclosed in the present disclosure should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.
Claims
1. A data transmission method, wherein: The method is applied to a first node and comprises: Determine a first transmission path between the first node and a second node, the first node being a source node of a first data packet, and the second node being a destination node of the first data packet; generating a second data packet according to the first data packet and the first transmission path, wherein the second data packet includes the first data packet and a protocol header for indicating the first transmission path; The second data packet is sent.
2. The method according to claim 1, wherein: The protocol header for indicating the first transmission path is located in the outer layer of the packet header of the second data packet.
3. The method according to claim 1, wherein: The protocol header for indicating the first transmission path includes a source port field, a destination port field, and the path information field, and the path information field is used to indicate the nodes included in the first transmission path.
4. The method according to claim 3, wherein: The protocol header for indicating the first transmission path further includes at least one of the following: a length field of the protocol header, a length field of the node identifier, a number field of the node identifier, a service type field, and a version number field.
5. The method according to claim 1, wherein: Determining a first transmission path between the first node and the second node includes: The first transmission path is determined by searching a pre-stored path table, wherein the path table is used to record a path in the audio and video system with the first node as the source node.
6. The method according to claim 5, wherein: Before the searching is based on a pre-stored path table, the method further comprises: receiving first path information sent by a control node, where the first path information is used to indicate a path determined by the control node based on collected edge node data and having the first node as a source node; The path table is generated according to the first path information.
7. The method according to claim 1, further comprising: Through path perception, second path information is obtained; The second path information is used to indicate a path with the first node as a source node; When a second transmission path between the first node and the second node indicated by the second path information is different from the first transmission path, a protocol header in the second data packet indicating the first transmission path is modified to a protocol header indicating the second transmission path.
8. The method according to claim 7, further comprising: When the second transmission path indicated by the second path information is different from the first transmission path, the path table is updated; wherein the updated path table records the path with the second node as the target node as the second transmission path.
9. A data transmission method, wherein: The method is applied to a third node and comprises: receiving a second data packet, the second data packet including the first data packet and a protocol header for indicating a first transmission path, the first transmission path being a path between a first node and a second node, the first node being a source node of the first data packet, and the second node being a destination node of the first data packet; Parsing the second data packet to obtain the protocol header for indicating the first transmission path; Based on the protocol header indicating the first transmission path, the second service data packet is sent to a next node located after the third node in the first transmission path.
10. The method according to claim 9, wherein: The protocol header for indicating the first transmission path is located in the outer layer of the packet header of the second data packet.
11. The method according to claim 9, wherein: The protocol header for indicating the first transmission path includes a source port field, a destination port field, and the path information field, and the path information field is used to indicate the nodes included in the first transmission path.
12. The method according to claim 10, wherein: The protocol header for indicating the first transmission path further includes at least one of the following: a length field of the protocol header, a length field of the node identifier, a number field of the node identifier, a service type field, and a version number field.
13. A communication device, comprising: Memory and processor; Memory and processor coupling; The memory is used to store instructions executable by the processor; When the processor executes the instructions, the method according to any one of claims 1 to 12 is performed.
14. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a communication device, the communication device is caused to execute the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Data transmission method, communication device and storage medium
CN119052353A
Method, device and system for processing message in next generation network
CN101369960A
Information notification method, forwarding entry generation method, and devices
CN107613032A
Message forwarding method and device
CN112272144A
Detection message transmission method, device and system
CN115208781A
