Data forwarding methods, apparatus, network devices, and computer-readable storage media
By dividing time-domain resources into equal time slots in a deterministic network and forwarding data equally in each time slot, the problem of latency jitter increasing with the period is solved, and stable data transmission with zero latency jitter is achieved.
Patent Information
- Application Number
- CN201910157680.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-01
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2039-03-01
AI Technical Summary
In deterministic networks, latency jitter can easily exceed the upper limit as the period increases, leading to unstable data stream transmission.
By dividing the time domain resources of network devices into a preset number of time slots and forwarding data equally in each time slot, the amount of data in each time slot is kept consistent, thus achieving zero-latency jitter data transmission.
It achieves smooth data stream transmission, avoids latency jitter exceeding the upper limit, and ensures the stability of data transmission.
Smart Images

Figure CN111641968B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data management, and in particular to a data forwarding method, apparatus, network device, and computer-readable storage medium. Background Technology
[0002] Deterministic networks are widely used in fields such as the Industrial Internet, smart factories, and cloud computing. In a deterministic network, data streams can be transmitted between devices. To ensure the smooth transmission of data streams, each device can forward the data stream at a certain period to control the latency jitter during the data stream transmission process.
[0003] Currently, data forwarding can be performed as follows: the timeline of the deterministic network is divided into segments of a certain duration; when a data stream enters the deterministic network, the data stream is shaped so that the total amount of data in a single cycle cannot exceed the product of the cycle duration and the bandwidth, where the bandwidth is specified in the service level agreement; for a single data stream, each device in the deterministic network can only forward a certain number of packets from that data stream in a single cycle; and devices in the deterministic network cannot merge packets from multiple cycles into a single cycle for forwarding, nor can packets from a single cycle be divided into multiple cycles for forwarding.
[0004] For example, the time axis in a deterministic network is divided into periods T = 10 μs, and the periods on the time axis are represented by periods T0, T1, T2, etc. After receiving a data stream, the ingress edge device of the deterministic network reshapes the data stream according to the bandwidth of 1000 Mbps specified in the service level agreement, so that only 1250 bytes of data in the data stream can be transmitted in each period. Taking packet forwarding as an example, the ingress edge device divides the data stream into multiple packets, each containing 1250 bytes of data. At the end of period T0 on the time axis, the ingress edge device forwards packet 1 to the intermediate network device of the deterministic network, and at the beginning of the next period T1, it forwards packet 2 to the intermediate network device. The intermediate network device completes the reception of packet 1 and packet 2 in period T1, and in the next period T2, it forwards the packet to the egress edge device of the deterministic network. Message 1 is sent, and in the next period T3 of period T2, message 2 is forwarded to the egress edge device. The egress edge device receives message 1 in period T3, and receives message 2 in the next period T4 of period T3, and forwards message 1 to the terminal. The egress edge device forwards message 2 to the terminal in the next period T5 of period T4. The difference between the time difference between the two messages being forwarded by the egress edge device and the time difference between the two messages being forwarded by the ingress edge device is taken as the delay jitter. Since the specific positions of the egress edge device forwarding messages 1 and 2 in periods T4 and T5 are uncertain, the time difference between the ingress edge device forwarding messages 1 and 2 can be set to 2T. However, if the ingress edge device forwards messages 1 and 2 at the end of period T0 and the beginning of period T1, the time difference between the ingress edge device forwarding messages 1 and 2 is 0. Therefore, the delay jitter is 2T.
[0005] Through the above data forwarding process, the obtained latency jitter is 2T. It can be seen that the latency jitter changes with the period T. The larger the period T is, the larger the latency jitter is, and the easier it is to exceed the upper limit, thus making the data stream transmission unstable. Summary of the Invention
[0006] This application provides a data forwarding method, apparatus, network device, and computer-readable storage medium, which can solve the problem that latency jitter in deterministic networks easily exceeds the upper limit as the period increases. The technical solution is as follows:
[0007] Firstly, a data forwarding method is provided, applied to a first network device, the method comprising:
[0008] Receive a first allocation request, which includes the amount of data to be transmitted in each cycle of the data stream;
[0009] When the total amount of data that can be forwarded by the remaining first time domain resources in the first cycle of the first network device is greater than or equal to the amount of data to be transmitted in the first allocation request, a second allocation request is sent to the second network device based on the first allocation request. The second allocation request includes the amount of data to be transmitted and the resource information of the remaining first time domain resources.
[0010] A successful allocation response is received, which includes time slot information of the first target time domain resource, and the distance between the relative positions of the first target time domain resource and the second target time domain resource of the second network device is within a preset range;
[0011] Forward the data stream on the first target time domain resource.
[0012] In one possible implementation, when the first target time domain resource includes multiple first time slots and the second target time domain resource includes multiple second time slots, the distances between the relative positions of all first time slots and their corresponding second time slots within the first target time domain resource are equal.
[0013] Based on the above possible implementation methods, since the relative distance between all first time slots and their corresponding second time slots within the first target time domain resource is equal, the distance between two adjacent first time slots within the first target time domain resource is equal to the distance between two corresponding second time slots. The difference between the distance between these two adjacent first time slots and the distance between these two corresponding second time slots is the time delay jitter, that is, the time delay jitter is zero, thereby achieving zero-latency jitter transmission, which in turn allows the data stream to be transmitted more smoothly.
[0014] In one possible implementation, forwarding the data stream on the first target time-domain resource includes:
[0015] The data to be transmitted is split into at least one first message;
[0016] The at least one first message is forwarded on each of the first time slots of the first target time domain resource, wherein one first time slot is used to forward one first message.
[0017] Based on the above possible implementation methods, the amount of data forwarded in each first time slot of the first electronic device is maintained at a certain level, so that the data forwarded by the first electronic device in each first cycle is relatively stable, avoiding the occurrence of a large amount of data being sent during a certain period of time in the first cycle while the other periods of the first cycle are idle.
[0018] In one possible implementation, the first target time-domain resource includes multiple sets of consecutive first time slots;
[0019] Accordingly, forwarding the data stream on the first target time domain resource includes:
[0020] At least one second message is forwarded on the multiple sets of consecutive first time slots, wherein a set of consecutive first time slots is used to forward one second message, and the data size of one second message is the total data size of the at least one first message.
[0021] Based on the above possible implementation methods, data integrity can be maintained by forwarding data in the form of a second message.
[0022] In one possible implementation, before obtaining the first allocation request, the method further includes:
[0023] The time domain resources of the first network device are divided into a preset number of first time slots, each of which is the same size.
[0024] Based on the above possible implementation methods, by dividing each period on the time axis of each device into time slots, the specific time of data forwarding on each device can be made more accurate.
[0025] Secondly, a data forwarding method is provided for use in a second network device, the method comprising:
[0026] Receive a second allocation request, which includes the amount of data to be transmitted and resource information of the remaining first time domain resources of the first network device in the first cycle;
[0027] When the distance between the relative positions of the second target time domain resource of the second network device and the first target time domain resource of the first network device is within a preset range, a successful allocation response is sent to the first network device, the successful allocation response including the time slot information of the first target time domain resource;
[0028] Forward the data stream on the second target time domain resource.
[0029] In one possible implementation, when the first target time domain resource includes multiple first time slots and the second target time domain resource includes multiple second time slots, the distances between the relative positions of all first time slots and their corresponding second time slots within the first target time domain resource are equal.
[0030] In one possible implementation, forwarding the data stream on the second target time-domain resource includes:
[0031] At least one first message forwarded on the first target time domain resource is forwarded on each second time slot of the second target time domain resource, wherein one second time slot is used to forward one first message.
[0032] In one possible implementation, the second target time-domain resource includes multiple sets of consecutive second time slots;
[0033] Accordingly, forwarding the data stream on the second target time-domain resource includes:
[0034] At least one second message is forwarded on the multiple sets of consecutive second time slots, wherein a set of consecutive second time slots is used to forward one second message, and the data size of one second message is the total data size of the at least one first message.
[0035] In one possible implementation, before receiving the second allocation request, the method further includes:
[0036] The time domain resources of the second network device are divided into a preset number of second time slots, each of which is the same size.
[0037] Thirdly, a data forwarding apparatus is provided for executing the aforementioned data forwarding method. Specifically, the data forwarding apparatus includes a functional module for executing the data forwarding method provided in the first aspect or any optional mode of the first aspect, wherein the aforementioned aspect corresponds to the aspect applied to a first network device for data forwarding.
[0038] Fourthly, a data forwarding apparatus is provided for executing the aforementioned data forwarding method. Specifically, the data forwarding apparatus includes a functional module for executing the data forwarding method provided in the second aspect or any optional mode of the second aspect, wherein the aforementioned aspect corresponds to the aspect applied to a second network device for data forwarding.
[0039] Fifthly, a network device is provided, the network device including a processor and a memory, the memory storing at least one instruction, the instruction being loaded and executed by the processor to perform the operation as described in the data forwarding method.
[0040] In a sixth aspect, a computer-readable storage medium is provided, wherein at least one instruction is stored therein, which is loaded and executed by a processor to perform the operation as described in the data forwarding method. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application;
[0043] Figure 2 This is a schematic diagram of the structure of a network device provided in an embodiment of this application;
[0044] Figure 3 This is a flowchart of a data forwarding method provided in an embodiment of this application;
[0045] Figure 4 This is a schematic diagram of a time slot division method provided in an embodiment of this application;
[0046] Figure 5 This is a flowchart of a data forwarding method provided in an embodiment of this application;
[0047] Figure 6 This is a schematic diagram of a data forwarding process provided in an embodiment of this application;
[0048] Figure 7 This is a schematic diagram of a time slot allocation provided in an embodiment of this application;
[0049] Figure 8 This is a structural diagram of a data forwarding device provided in an embodiment of this application;
[0050] Figure 9 This is a structural diagram of a data forwarding device provided in an embodiment of this application. Detailed Implementation
[0051] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0052] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application. See also... Figure 1 The implementation environment includes at least one first terminal, at least one first network device, at least one second network device, and at least one second terminal. In one possible implementation, the implementation environment also includes a third network device.
[0053] At least one first terminal is used to send a data stream to a first network device. The data stream may be a data stream composed of audio data or a data stream composed of video data. This application embodiment does not specifically limit the type of data in the data stream.
[0054] At least one first network device, which is an ingress edge device in the network architecture, is used to forward data streams sent by various first terminals to a second network device. In one possible implementation, the first network device can also forward data streams to a third network device. When forwarding received data streams in each cycle, the first network device can forward data from multiple data streams. These multiple data streams can be data streams sent by different first terminals. However, for a single data stream, the first network device can only forward a portion of the data in that data stream.
[0055] At least one third network device, which is an intermediate network device in the network architecture, is used to receive data streams forwarded by at least one first network device and forward the received data streams to a second network device.
[0056] At least one second network device, which is an egress edge device in the network architecture, is used to receive data streams forwarded by the first network device and forward the data streams to the corresponding second terminals. In one possible implementation, the second network device may also receive data streams forwarded by a third network device and forward the data streams to the corresponding second terminals. When forwarding the received data streams in each cycle, the second network device may forward data from multiple data streams. These multiple data streams may be data streams sent by different first terminals. However, for a single data stream, the second network device may only forward a portion of the data in that data stream.
[0057] At least one second terminal is used to receive data streams forwarded by a second network device.
[0058] It should be noted that the above network architecture can be a deterministic network.
[0059] Figure 2 This is a schematic diagram of the structure of a network device provided in an embodiment of this application. The network device 200 includes components that can vary significantly depending on configuration or performance. It may include one or more central processing units (CPUs) 201 and one or more memories 202. The memory 202 stores at least one instruction, which is loaded and executed by the processor 201 to implement the methods provided in the following method embodiments. Of course, the network device 200 may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The network device 200 may also include other components for implementing device functions, which will not be elaborated here.
[0060] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions that can be executed by a processor in a terminal to perform the data forwarding method described in the following embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage network device, etc.
[0061] The above describes the implementation environment for data forwarding. Further, to illustrate the data forwarding process, a specific implementation example is provided below. (See attached image.) Figure 3 , Figure 3 This is a flowchart of a data forwarding method provided in an embodiment of this application. The method flow provided in this embodiment includes:
[0062] 301. The first network device divides its time domain resources into a preset number of first time slots, each of which is the same size.
[0063] The time domain resource is the time resource for the first network device to forward data streams. When the first network device forwards data in a periodic manner, each transmission cycle of the first network device can be used as the time domain resource of the first network device.
[0064] In one possible implementation, the first network device divides its time axis into multiple equal-sized first cycles for a certain duration, so that the first network device can forward data streams in each first cycle.
[0065] For each first cycle of the first network device, the amount of data that the first network device can forward in each first cycle can be determined by the bandwidth specified in the service level agreement. For example, if the cycle T = 10 μs and the bandwidth specified in the service level agreement is 1000 Mbps, then the first network device can forward a maximum of 1250 bytes of data in each first cycle. These 1250 bytes of data can be data from different data streams.
[0066] The data stream forwarded by the first network device in each first cycle can be a data stream sent by at least one first terminal. For any first terminal sending a data stream to the first network device, the first network device allocates a duration for the first terminal in each first cycle so that the first network device forwards the data stream sent by the first terminal during the allocated duration. The duration allocated by the first network device for each first terminal in each first cycle is the same. For example, if the first network device is connected to first terminal A and first terminal B, and the duration of each first cycle of the first network device is 10μs, the duration allocated to first terminal A in each first cycle is the first 5μs, and the duration allocated to first terminal B in each first cycle is the last 5μs, then the first network device forwards the data stream sent by first terminal A during the first 5μs of each first cycle and forwards the data stream sent by first terminal B during the last 5μs of each first cycle.
[0067] The first time slot is the time obtained by equally dividing the time domain resources of the first network device. In one possible implementation, the first network device equally divides each first cycle of the first network device, such that the number of first time slots in each first cycle is equal and the size of each first time slot is consistent. Each first time slot is numbered according to its position in the first cycle. See [link to details]. Figure 4 , Figure 4 This is a schematic diagram of a time slot division method provided in an embodiment of this application. Taking the first period T0 of the first network device as an example, the first period T0 is divided into 20 first time slots. In order to distinguish the position of each first time slot in the first period T0, each first time slot can be numbered. In order from left to right, the 20 first time slots in the first period T0 are numbered 0, 1, 2, ..., 19.
[0068] Data forwarded in the first time slot at the same position in each first cycle is data from the same data stream. For example, if the first time slot 1 in the first cycle T0 of the first electronic device is used to forward data from data stream 1, then the first time slot 1 in other first cycles is also used to forward data from data stream 1.
[0069] It should be noted that the first network device can allocate its time domain resources during network initialization or reconfiguration, rather than every time during network operation. Once the time domain resources are allocated, the first electronic device can forward data according to the first period and the first time slot allocated.
[0070] 302. The first terminal sends a first allocation request to the first network device, the first allocation request including the amount of data to be transmitted in each cycle of the data stream.
[0071] The first allocation request is used to request the allocation of a first time slot on a first network device for a data stream to be transmitted from the first terminal. The requested first time slot is used to forward data in the data stream. The first allocation request may also include stream information of the data stream, used to indicate the data stream, such as the identification number (ID) of the data stream. The first allocation request may also include terminal information of the second terminal, used to indicate that the data stream from the first terminal is ultimately sent to the second terminal. The terminal information may be the Internet Protocol address (IP) address of the second terminal, or it may be the Media Access Control (MAC) address of the second terminal. For example, if the data stream sent by the first terminal A is ultimately sent to the second terminal B, the first allocation request may carry the IP address of the second terminal B.
[0072] The amount of data to be transmitted in each cycle of the data stream is the maximum amount of data that the first terminal will send to the first network device in each cycle. In actual transmission, the amount of data that the first terminal sends to the first network device in each cycle may be less than or equal to this amount of data to be transmitted. This amount of data to be transmitted may also be the total amount of data in the data stream, or it may be a portion of the data in the data stream.
[0073] 303. The first network device receives the first allocation request.
[0074] 304. When the total amount of data that can be forwarded by the remaining first time domain resources in the first cycle of the first network device is greater than or equal to the amount of data to be transmitted in the first allocation request, the first electronic device sends a second allocation request to the second network device based on the first allocation request. The second allocation request includes the amount of data to be transmitted and the resource information of the remaining first time domain resources.
[0075] The remaining first time domain resources can be the unallocated first time slots in the first cycle, that is, the idle first time slots in the first cycle. The total amount of data that the remaining first time domain resources can forward is the amount of data that can be forwarded in all the unallocated first time slots in the first cycle.
[0076] The resource information of the remaining first time domain resources includes the time slot information of the unallocated first time slot in each first cycle, and the time slot information of the first time slot may be the number of the first time slot.
[0077] The second allocation request is used to request the allocation of a first time slot of a first network device and a second time slot of a second network device for a data stream on the first terminal. The first and second time slots to be allocated are used to forward the data stream corresponding to the first allocation request. The second allocation request may also include the flow information of the data stream and the terminal information of the second terminal. The flow information may be the address information of the data stream. This application embodiment does not specifically limit the flow information and the terminal information.
[0078] In one possible implementation, step 304 can be achieved through the process shown in steps 304A-304C below.
[0079] Step 304A: Upon receiving the first allocation request, the first network device determines the first time slot that has not been allocated within the first period of the first network device.
[0080] Once any first time slot within the first cycle is allocated, the first electronic device stores the time slot information of the allocated first time slots. Based on this stored information, the first electronic device can then determine the unallocated first time slots within the first cycle of the first network device. (Continuing with...) Figure 4 For example, by using the time slot information of the allocated first time slots stored in the first network device, the allocation status of each first time slot in the first period T0 can be recorded. First time slots with a slash are allocated first time slots, and blank first time slots are unallocated first time slots. Figure 4 As can be seen from the data, the first time slots 0, 1, 4, 5, 7, 11, 12, 15, 18 and 19 on the first cycle T0 have been allocated, while the first time slots 2, 3, 6, 8, 9, 10, 13, 14, 16 and 17 are unallocated first time slots.
[0081] It should be noted that since the first time slot allocated by the first network device for each data stream is the same in each cycle, the first network device only needs to store the time slot information of the first time slot allocated in the first cycle when storing the time slot information of the allocated first time slot.
[0082] Step 304B: The first network device determines the total amount of data that can be forwarded in the unallocated first time slots within the first period based on the amount of data that can be forwarded in each first time slot.
[0083] The amount of data that the first network device can forward in each first time slot can be determined in the following two ways.
[0084] Method 1: The amount of data that can be forwarded in each first time slot is a preset data amount. This preset data amount can be determined by the maximum forwarding volume of the first network device in the first period and the number of time slots in the first period. For example, if the maximum forwarding volume of the first network device in the first period is 1250 bytes and there are 10 first time slots in the first period, then the preset data amount is 125 bytes. This application embodiment does not specifically limit the preset data amount.
[0085] Method 2: Use the data size of a single message as the amount of data that can be forwarded in each first time slot. For example, use the data size of a minimum message of 64 bytes as the amount of data that can be forwarded in each first time slot.
[0086] It should be noted that the embodiments of this application do not specifically limit the method for determining the amount of data that can be forwarded in the first time slot. However, the amount of data forwarded by the first network device in each first time slot of the first cycle is less than or equal to the amount of data that the first network device can forward in the first time slot.
[0087] The total amount of data that can be forwarded in the first unallocated first time slot within the first cycle is equal to the product of the number of unallocated first time slots and the amount of data that can be forwarded in the first time slot. (Continuing with...) Figure 4 For example, from Figure 4 As can be seen from the data, the unallocated first time slots in the first period T0 of the first network device include 10 time slots: 2, 3, 6, 8, 9, 10, 13, 14, 16, and 17. The data volume of the first network device in each first time slot is 64 bytes. Since there are 10 unallocated first time slots in the first period T0 of the first network device, the total amount of data that can be forwarded in the unallocated first time slots in the first period T0 is 10 x 64 bytes = 640 bytes.
[0088] Step 304C: When the amount of data that can be forwarded on the unallocated first time slot in the first period is greater than or equal to the amount of data to be transmitted in the first allocation request, the first network device sends a second allocation request to the second network device.
[0089] The amount of data to be transmitted in the first allocation request is compared with the amount of data that can be forwarded on the unallocated first time slots within the first period to determine whether the first network device can send a second allocation request to the second network device. Taking the example of step 304B, the amount of data to be transmitted in the first allocation request is 320 bytes. The amount of data that can be forwarded in the first period T0 is 640 bytes, which is greater than 320 bytes. This indicates that the first network device can forward 340 bytes of data in the first period T0. The second allocation request sent by the first network device to the second electronic device includes the amount of data to be transmitted (320 bytes) and the time slot information of all unallocated first time slots in the first period T0.
[0090] It should be noted that when the total amount of data that can be forwarded by the remaining first time domain resources in the first cycle of the first network device is less than the amount of data to be transmitted in the first allocation request, the first network device sends an allocation failure response to the first terminal device. The allocation failure response is used to indicate that the first terminal has not been allocated a first time slot.
[0091] 305. The second network device receives the second allocation request.
[0092] 306. The second network device divides its time domain resources into a preset number of second time slots, each of which is the same size.
[0093] The time domain resources of the second network device are the time resources for forwarding data streams by the second network device. The second network device can forward the data stream forwarded by the first network device in a periodic manner. The forwarding period of the second network device is denoted as the second period. The second period of the second network device has the same duration as the first period of the first network device. The method of dividing the time domain resources of the first network device in step 306 is the same as that in step 301. The specific execution method of step 306 in this application embodiment will not be described in detail.
[0094] In this embodiment, the time slots divided in each second cycle of the second network device are denoted as second time slots. The number of second time slots in each second cycle is the same as the number of first time slots in each first cycle; that is, the duration of each second time slot is the same as the duration of each first time slot. Therefore, for a data stream, the amount of data that the second network device can forward in each second cycle is the same as the amount of data that the first network device can forward in each first cycle, and this embodiment will not elaborate further.
[0095] It should be noted that the second network device can allocate its time domain resources during network initialization or reconfiguration, rather than every time during network operation. Once the time domain resources are allocated, the second network device can forward data according to the allocated second period and second time slot.
[0096] 307. When the distance between the relative positions of the second target time domain resource of the second network device and the first target time domain resource of the first network device is within a preset range, the second network device sends an allocation success response to the first network device, the allocation success response including the time slot information of the first target time domain resource.
[0097] The first target time domain resource is a first time slot used by the first network device to forward the data stream corresponding to the first allocation request in the first period. The first target time domain resource includes at least one first time slot in the first period. For example, the second network device uses the first time slots 0 and 1 of the first network device in the first period T0 as the first target time domain resource for forwarding data stream 1.
[0098] The second target time domain resource is a second time slot on the second network device used to forward the data stream corresponding to the first allocation request in the second period. The second target time domain resource includes at least one second time slot in the second period. For example, the second network device uses the first time slots 3 and 4 in the second period T4 as the second target time domain resources for forwarding data stream 1.
[0099] The first target time domain resource and the second target time domain resource correspond to each other. This correspondence means that the data stream forwarded by the first network device on the first target time domain resource is the same as the data stream forwarded by the second network device on the second target time domain resource. When the first target time domain resource includes multiple first time slots, the second target time domain resource also includes multiple second time slots. Each first time slot in the first target time domain resource corresponds to one second time slot in the second time domain resource. That is, the correspondence between the first time slot and the second time slot means that the data forwarded on the first time slot is the same as the data forwarded on the second time slot. For example, if the first network device forwards data 1 from data stream 1 in the first time slot 0 of the first period T0, and forwards data 2 from data stream 1 in the first time slot 1 of the first period T0, and the second network device forwards data 1 from data stream 1 in the second time slot 3 of the second period T4, and forwards data 2 from data stream 1 in the second time slot 4 of the second period T4, then the first period T0 corresponds to the second period T4, the first time slot 0 in the first period T0 corresponds to the second time slot 3 in the second period T4, and the first time slot 1 in the first period T0 corresponds to the second time slot 4 in the second period T4.
[0100] The relative position of the second target time domain resource of the second network device refers to the position of the second target time domain resource in the second period. For example, if the second target time domain resource is the second time slot 5 in the second period T4, then position 5 is the relative position of the second target time domain resource.
[0101] The relative position of the first target time domain resource of the first network device refers to the position of the first target time domain resource in the first period. For example, if the first target time domain resource is the first time slot 2 in the first period T0, then position 2 is the relative position of the first time slot 2 in the first period T0.
[0102] The distance between the relative positions of the second target time domain resource of the second network device and the first target time domain resource of the first network device is the difference between the two relative positions minus 1. For example, if the corresponding relative position of the second target time domain resource is position 5 and the corresponding relative position of the first target time domain resource is position 2, then the distance between the two relative positions is 5-2-1=2.
[0103] When the first target time domain resource includes multiple first time slots, and the second target time domain resource also includes multiple second time slots, the distance between the relative positions of the second target time domain resource of the second network device and the first target time domain resource of the first network device does not exceed a preset range, which means that the relative position between any first time slot in the first target time domain resource and the corresponding second time slot in the second target time domain resource is within the preset range.
[0104] The preset range cannot exceed the number of the first time slots in the first cycle or the number of the second time slots in the second cycle. This application embodiment does not specifically limit the preset range.
[0105] In one possible implementation, step 307 can be achieved through the process shown in steps 307A-307D below.
[0106] Step 307A: Upon receiving the second allocation request, the second network device determines the second time slot that has not been allocated within the second period of the second network device.
[0107] Step 307A is similar to the method by which the first network device determines the first unallocated time slot within the first period in step 304A. Therefore, step 307A will not be described in detail in this embodiment of the application.
[0108] Still with Figure 4 For example, by storing the time slot information of the second time slots allocated in the second cycle through the second network device, the allocation status of each second time slot in the second cycle T4 can be recorded. Second time slots with a slash are allocated second time slots, and blank second time slots are unallocated second time slots. Figure 4As can be seen from this, the second time slots 0, 1, 2, 6, 7, 8, 11, 12, 13 and 14 on the second cycle T4 have been allocated, while the second time slots 3, 4, 5, 9, 10, 15, 16, 17, 18 and 19 on the second cycle T4 are unallocated second time slots.
[0109] Step 307B: Based on the amount of data to be transmitted in the second allocation request, the second network device determines the number of first time slots within the first target time domain resource in the first cycle.
[0110] In one possible implementation, the amount of data to be transmitted is divided by the amount of data that can be forwarded on the first time slot to obtain a quotient. When the quotient is a decimal, the integer value obtained by adding a first preset value to the quotient is taken as the number of first time slots in the first target time domain resource, wherein the first preset value is a positive integer greater than 0. When the quotient is an integer, the value obtained by adding a second preset value to the quotient is taken as the number of first time slots in the first target time domain resource, wherein the second preset value is a positive integer greater than or equal to 0.
[0111] For example, if the amount of data to be transmitted in the second allocation request is 320 bytes, and a maximum of 64 bytes of data can be forwarded on each first time slot, then 320 ÷ 64 = 5 is taken as the number of first time slots within the first target time domain resource.
[0112] Step 307C: When the number of first time slots in the first target time domain resource is less than or equal to the number of unallocated second time slots in the second period, the first time slots in the first period and the second time slots in the second period are matched to determine the first target time domain resource and the second target time domain resource. The distance between the relative positions of any first time slot in the first target time domain resource and the corresponding second time slot in the second target time domain resource is within a preset range.
[0113] The number of first time slots within the first target time domain resource is the same as the number of second time slots within the second target time domain resource. The second network device can compare the number of first time slots within the first target time domain resource with the number of unallocated second time slots within the second period to determine whether the second network device can match the unallocated first time slots within the first period with the second time slots within the second period.
[0114] The matching process of the second network device can be a process of filtering the unallocated first time slot in the first cycle and the unallocated second time slot in the second cycle. In one possible implementation, the second network device can filter out the first target time domain resource and the second target time domain resource that meet the above preset conditions from the unallocated first time slot in the first cycle and the unallocated second time slot in the second cycle, based on the number of unallocated first time slots in the first cycle, the unallocated second time slots in the second cycle, and the number of first time slots in the first target time domain resource.
[0115] When screening the first target time domain resource and the second target time domain resource, the second network device can use the first time slot within the first target time domain resource as a reference, and within the second time slot that is not allocated in the second period, select the second time slot that meets the above preset conditions.
[0116] In one possible implementation, the second network device takes any unallocated first time slot in the first cycle as a first time slot within the first target time domain resource. It then acquires second time slots within the second cycle whose relative distance to the first time slot is within a preset range. When the acquired second time slots include at least one unallocated second time slot, any acquired unallocated second time slot is taken as the second time slot corresponding to the first time slot. When there are no unallocated second time slots among the acquired second time slots, the first time slot is discarded, and the next unallocated first time slot in the first cycle is taken as a first time slot within the first target time domain resource. The device then searches for a second time slot corresponding to the first time slot within the second cycle based on the preset range, until all first time slots within the first target time domain resource and all second time slots within the second target time domain resource are determined. Of course, when the second network device selects a second time slot corresponding to a first time slot from among the acquired unallocated second time slots, it may preferentially select the second time slot with the smallest relative distance to the first time slot.
[0117] Taking the example in step 307B as an example, the preset range is 3. The amount of data to be transmitted is 320 bytes, requiring 5 first time slots. That is, for this data stream, the first target time domain resources allocated by the second network device in each first cycle include 5 first time slots, and the second target time domain resources allocated in each second cycle include 5 second time slots. These five first time slots can be represented by first target time slots 1-5, and these five second time slots can be represented by second target time slots 1-5. See [link to relevant documentation]. Figure 5In Scheme 1, the second network device uses the first time slot 2 on the first period T0 as the first target time slot 1 within the first target time domain resource. Within a preset range 3, the unallocated second time slots on the second period T4 include second time slots 3, 4, and 5. The second network device can use second time slot 4 as the second target time slot 1 corresponding to the first time slot 1. The second network device uses the first time slot 6 on the first period T0 as the first target time slot 2 within the first target time domain resource. Within a preset range 3, the unallocated second time slots on the second period T4 include second time slots 9 and 10. The second network device can use second time slot 9 as the second target time slot 2 corresponding to the first time slot 2. The second network device uses the first time slot 8 on the first period T0 as the first target time slot 3 within the first target time domain resource. Within a preset range 3, the unallocated second time slots on the second period T4 include second time slots 3, 4, and 5. The second time slots include second time slots 9 and 10. The second network device can use second time slot 10 as the second target time slot 3 corresponding to the first time slot 3. The second network device uses first time slot 13 on the first period T0 as the first time slot 4 within the first target time domain resource. Within the preset range 3, the unallocated second time slots on the second period T4 include second time slots 15, 16, and 17. The second network device can use second time slot 15 as the second target time slot 4 corresponding to the first time slot 4. The second network device uses first time slot 14 on the first period T0 as the first target time slot 5 within the first target time domain resource. Within the preset range 3, the unallocated second time slots on the second period T4 include second time slots 15, 16, 17, and 18. The second network device can use second time slot 16 as the second target time slot 5 corresponding to the first time slot 5.
[0118] It should be noted that there are multiple allocation methods for allocating unallocated time slots in the first and second cycles based on a preset range of relative positions. The second network device may prioritize the allocation scheme in which the relative positions of the first target time domain resource and the second target time domain resource are smaller, as the final allocation scheme.
[0119] Since the distance between the relative positions of the allocated first target time domain resources and the second target time domain resources is within a preset range, the time delay jitter caused by the difference between the distances between two adjacent first target time domain resources and the corresponding two adjacent second target time domain resources is small, thereby avoiding the time delay jitter from exceeding the upper limit and enabling the data stream to be transmitted smoothly.
[0120] When the first target time domain resource includes multiple first time slots, since the distance between the relative positions of any first time slot in the allocated first target time domain resource and any second time slot in the second target time domain resource is within a preset range, the difference between the distance between two adjacent first time slots and the distance between the corresponding two second time slots in the first target time domain resource is relatively small. Therefore, the delay jitter formed by the difference between the distance between these two adjacent first time slots and the distance between these two second time slots is relatively small, thereby avoiding the delay jitter from exceeding the upper limit, and thus enabling the data stream to be transmitted smoothly.
[0121] In one possible implementation, when the first target time domain resource includes a plurality of first time slots and the second target time domain resource includes a plurality of second time slots, the distance between the relative positions of all first time slots and their corresponding second time slots within the first target time domain resource is equal.
[0122] Taking the example in step 307B as an example, if the amount of data to be transmitted is 320 bytes, it requires 5 first time slots, and see [link to example]. Figure 5 See Option 1 in the text, and refer to [the relevant source]. Figure 4 In Scheme 2, the first target time domain resource includes first time slots 2, 3, 8, 9 and 14 on the first period T0, and the second target time domain resource includes second time slots 3, 4, 9, 10 and 15 on the second period T4. Among them, first time slot 2 corresponds to second time slot 3, first time slot 3 corresponds to second time slot 4, first time slot 8 corresponds to second time slot 9, first time slot 9 corresponds to second time slot 10, and first time slot 14 corresponds to second time slot 15. It can be seen that the distance between the relative positions of any first time slot and the corresponding second time slot in the first target time domain resource is equal, which is 0.
[0123] Since the relative distances between all first time slots and their corresponding second time slots within the first target time domain resource are equal, the distance between two adjacent first time slots within the first target time domain resource is equal to the distance between two corresponding second time slots. The delay jitter formed by the difference between the distance between two adjacent first time slots and the distance between two corresponding second time slots within the first target time domain resource is zero, thereby enabling zero-latency jitter transmission and allowing the data stream to be transmitted more smoothly.
[0124] It should be noted that when the first electronic device cannot determine the first target time domain resource in the first period, or cannot determine the second target time domain resource in the second period, the second electronic device sends an allocation failure response to the first electronic device to notify the first electronic device of allocation failure. Then, the first electronic device forwards the allocation failure response to the first terminal to notify the first terminal of allocation failure.
[0125] Step 307D: After the first target time domain resource and the second target time domain resource are determined, the second network device sends the allocation response to the first network device.
[0126] Still with Figure 4 Taking Scheme 2 as an example, the time domain information of the first target time domain resource in the successful allocation response includes the numbers of the first time slots 2, 6, 8, 13 and 14.
[0127] 308. The first network device forwards the received allocation success response to the first terminal.
[0128] 309. After receiving the first allocation response, the first terminal sends a data stream to the first network device.
[0129] The first terminal can periodically send data from the data stream to the first network device. The period is a period on the time axis of the first terminal. Specifically, the first terminal sends data from the data stream in each period of the first terminal, and the amount of data sent in each period cannot exceed the amount of data to be transmitted in each period in the first time slot allocation request.
[0130] 310. After receiving the data stream, the first network device forwards the data stream on the first target time domain resource.
[0131] The first network device forwards and allocates the data stream corresponding to the response on the first target time domain resource in each first cycle. When the first target time domain resource includes multiple first time slots, the first network device can forward the packets in the data stream in the form of packets on each first time slot of the first target time domain resource in each first cycle. In one possible implementation, this step 310 can be implemented by the process shown in steps 310A-310B below.
[0132] Step 310A: The first network device splits the data to be transmitted to obtain at least one first message.
[0133] The data size in the first message can be the minimum message size of 64 bytes. In one possible implementation, the first network device splits the data to be transmitted in each first cycle according to the minimum message size, and the split results in at least one first message.
[0134] Using the example from step 309 and Figure 4Taking allocation scheme 2 as an example, the first target time domain resources in the allocation success response include first time slots 2, 3, 8, 9 and 14. The first terminal sends 320 bytes of data to the first network device in one cycle. After receiving the 320 bytes of data, the first network device splits the data. Specifically, the data from byte 1 to byte 64 is taken as first message 1, the data from byte 65 to byte 128 is taken as first message 2, the data from byte 129 to byte 192 is taken as first message 3, the data from byte 193 to byte 256 is taken as first message 4, and the data from byte 257 to byte 320 is taken as first message 5.
[0135] For a data stream, when a first terminal forwards the data stream in the form of a second message in each cycle, and the data size of each second message is equal to the total data size of at least one first message, in one possible implementation, the first network device can split each second message in the data stream received in each first cycle to obtain at least one first message. For example, when the first network device receives a 128-byte second message in a data stream in the first cycle, the first network device can split the second message to obtain two 64-byte first messages.
[0136] Step 310B: The first network device forwards the at least one first message on each first time slot of the first target time domain resource in the first period, wherein one first time slot is used to forward one first message.
[0137] Taking the example in step 310A as an example, the first network device forwards the first message 1 to the second network device in the first time slot 2 of the first period T0, forwards the first message 2 to the second network device in the first time slot 3 of the first period T0, forwards the first message 3 to the second network device in the first time slot 8 of the first period T0, forwards the first message 4 to the second network device in the first time slot 9 of the first period T0, and forwards the first message 5 to the second network device in the first time slot 14 of the first period T0.
[0138] 311. After receiving the data stream, the second network device forwards the data stream on the second target time domain resource.
[0139] When the second target time domain resource includes multiple second time slots, the second network device can forward the data stream on each of the second time slots within the second target time domain resource. In one possible implementation, the second network device forwards at least one first message forwarded on the first target time domain resource on each of the second time slots of the second target time domain resource, wherein one second time slot is used to forward one first message.
[0140] Taking step 310B as an example, the second target time domain resources include second time slots 3, 4, 9, and 10, and first time slot 2 corresponds to second time slot 3, first time slot 3 corresponds to second time slot 4, first time slot 8 corresponds to second time slot 9, first time slot 9 corresponds to second time slot 10, and first time slot 14 corresponds to second time slot 15. When the second network device receives the first message 1 forwarded by the first network device in first time slot 2, the second network device forwards the first message 1 to the second terminal in second time slot 3 of the second period T4. When the second network device receives the first message 2 forwarded by the first network device in first time slot 3, the second network device forwards the first message 2 to the second terminal in second time slot 3 of the second period T4. In time slot 4, the first message 2 is forwarded to the second terminal. When the second network device receives the first message 3 forwarded by the first network device in time slot 8, the second network device forwards the first message 3 to the second terminal in time slot 9 of the second period T4. When the second network device receives the first message 4 forwarded by the first network device in time slot 9, the second network device forwards the first message 4 to the second terminal in time slot 10 of the second period T4. When the second network device receives the first message 5 forwarded by the first network device in time slot 14, the second network device forwards the first message 5 to the second terminal in time slot 15 of the second period T4.
[0141] It should be noted that when the first network device sends a second allocation request or data to the second network device, it can also forward the request through an intermediate network device. That is, when the first network device sends a second allocation request or data to an intermediate network device, the intermediate network device forwards the second allocation request or data to the second network device upon receiving it. Correspondingly, when the second network device sends an allocation success response or an allocation failure response to the first network device, it can send the allocation success response or allocation failure response to the intermediate network device. Upon receiving the allocation success response or allocation failure response, the intermediate network device forwards the allocation success response or allocation failure response to the first network device.
[0142] It should be noted that the first network device can also allocate time slots. In one possible implementation, when the total amount of data that can be forwarded by the remaining first time domain resources in the first cycle of the first network device is greater than or equal to the amount of data to be transmitted in the first allocation request, the first network device forwards the first allocation request to the second network device; when the total amount of data that can be forwarded by the remaining second time domain resources in the second cycle of the second network device is greater than or equal to the amount of data to be transmitted in the first allocation request, the second network device sends the resource information of the remaining second time domain resources to the first network device; the first network device allocates time slots based on the remaining second time domain resources in the second cycle and the remaining first time domain resources in the first cycle. The method by which the first network device allocates time slots is the same as the method by which the second network device allocates time slots in the embodiments of this application, and will not be described in detail here.
[0143] The method provided in this application embodiment involves a first network device sending a second allocation request to a second network device. The second network device then matches unallocated first time slots within the first period with unallocated second time slots within the second period, based on a preset range of distances between the relative positions of the first and second target time domain resources within their respective periods. This determines the first and second target time domain resources. Based on the allocation result, the first and second network devices then perform corresponding data forwarding. Since the distances between the allocated first and second target time domain resources are within the preset range, the latency jitter caused by the difference in distances between two adjacent first target time domain resources and their corresponding two adjacent second target time domain resources is small. This prevents latency jitter from exceeding the upper limit, thus enabling smooth data transmission. Furthermore, when the first target time domain resource includes multiple first time slots, since the distance between the relative positions of any first time slot within the allocated first target time domain resource and any second time slot within the second target time domain resource is within a preset range, the difference between the distance between two adjacent first time slots and the distance between the corresponding two second time slots within the first target time domain resource is relatively small. Therefore, the latency jitter caused by the difference between the distance between these two adjacent first time slots and the distance between these two second time slots is relatively small, thus preventing latency jitter from exceeding the upper limit and enabling smooth data transmission. Moreover, when the relative positions of all first time slots and their corresponding second time slots within the first target time domain resource are equal, the distance between two adjacent first time slots and the distance between the corresponding two second time slots within the first target time domain resource is equal, and the latency jitter caused by the difference between the distance between two adjacent first time slots and the distance between the corresponding two second time slots within the first target time domain resource is zero. This enables zero-latency jitter transmission, further ensuring smoother data transmission. Furthermore, by dividing each period on the timeline of each device into time slots, the specific time of data forwarding on each device is made more precise.
[0144] Figure 3 This describes the time slot allocation and data forwarding process performed by the second network device based on data volume. The second network device can also allocate time slots based on the data volume of a packet. See [link to relevant documentation]. Figure 5 , Figure 5 This is a flowchart of a data forwarding method provided in an embodiment of this application. The method specifically includes the following steps.
[0145] 501. The first network device divides its time domain resources into a preset number of first time slots, each of which is the same size.
[0146] 502. The first terminal sends a first allocation request to the first network device, the first allocation request including the number of second packets to be transmitted in each cycle of the data stream and the data size of each second packet.
[0147] The data size of each second message can be the total data size of at least one first message, and a data stream includes multiple second messages. The number of second messages to be transmitted is the maximum number of second messages that the first terminal transmits to the first network device per cycle, and the data size of each second message is the maximum data size of each second message that the first terminal expects to send per week.
[0148] For example, for a data stream, the first terminal plans to send the data stream in two cycles. In one cycle, the first terminal sends two second messages from the data stream, with data sizes of 10 and 20 respectively. In the other cycle, the first terminal sends three second messages from the data stream, with data sizes of 5, 7 and 15 respectively. Then, the number of second messages to be transmitted in the first allocation request corresponding to the data stream is 3, and the data sizes of these three second messages are 20, 15 and 10 respectively.
[0149] For example, see Figure 6 , Figure 6 This is a schematic diagram of a data forwarding process provided in an embodiment of this application. In this process, the data flow flow1 in the first terminal A is the data flow to be sent to the second terminal D. The first terminal A sends two second messages to the first terminal every cycle. The data volume of each second message is 100 bytes. The first terminal sends a first allocation request 1 to the first network device G1. The first allocation request 1 includes the number of second messages to be transmitted 2 and the data volume of each second message is 100 bytes.
[0150] 503. The first network device receives the first allocation request.
[0151] The first network device can receive first allocation requests sent by multiple first terminals, or it can receive only a first allocation request sent by a single first terminal, for example... Figure 6 The first network device G1 receives the first allocation request 1 sent by the first terminal A and the first allocation request 2 sent by the first terminal B, while the first network device G2 only receives the first allocation request 3 sent by the first terminal C. Specifically, the first terminal B sends data stream flow2 to the second terminal E every cycle. The first terminal C sends data stream flow3 to the second terminal F, and each packet group in data stream flow3 contains two 64-byte second packets.
[0152] It should be noted that the first network device can process each first allocation request in the order in which the first allocation requests are received. For example, after receiving the first allocation request 1 sent by the first terminal A, the first network device G1 receives the first allocation request 2 sent by the first terminal B. The first network device G1 can process the first allocation request 1 first and then process the first allocation request 2.
[0153] 504. When the total amount of data that can be forwarded by the remaining first time domain resources in the first cycle of the first network device is greater than or equal to the total amount of data of the second message to be transmitted in the first allocation request, the first electronic device sends a second allocation request to the second network device based on the first allocation request. The second allocation request includes the number of the second messages to be transmitted, the amount of data of each second message, and the resource information of the remaining first time domain resources.
[0154] The total amount of data in the second message to be transmitted is the sum of the data amounts of each second message in the first allocation request. For example, if there are 2 second messages in each period of the first time slot request 1, and the amount of data in each second message is 100 bytes, then the total amount of second messages to be transmitted in one period is 100 bytes + 100 bytes = 200 bytes.
[0155] In one possible implementation, the first network device can implement step 504 by sending a second allocation request in step 304.
[0156] The first network device can forward a limited amount of data in each first time slot. For example, at most one first packet can be forwarded in each first time slot. Therefore, a second packet may need to be forwarded in multiple consecutive first time slots. Based on the continuity of data in the second packet, in one possible implementation, this step 504 can be implemented by the following steps 504A-504C.
[0157] Step 504A: Upon receiving the first allocation request, the first network device determines the first time slot that has not been allocated within the first period of the first network device.
[0158] Step 504B: The first network device takes the number of second packets to be transmitted in the first allocation request as the number of first time slot groups. Based on the data volume of each second packet in the first allocation request and the data volume that can be forwarded on the first time slot, it determines the number of first time slots in each first time slot group. All the first time slots in each first time slot group are in a continuous position in the period.
[0159] The number of first time slots in each first time slot group is a quotient obtained by dividing the data volume of each second message by the data volume that can be forwarded on the first time slot. When the quotient is a decimal, the integer value obtained by adding a first preset value to the quotient is taken as the number of first time slots in the first time slot group corresponding to the second message, wherein the first preset value is a positive integer greater than 0. When the quotient is an integer, the value obtained by adding a second preset value to the quotient is taken as the number of first time slots in the first time slot group corresponding to the second message, wherein the second preset value is a positive integer greater than or equal to 0. If the quotient is a decimal, the integer part of the quotient plus 1 is taken as the number of first time slots in the first time slot group. For example, if the number of second packets in the first allocation request 1 is 2, the data size of each second packet is 100 bytes, and the data size that can be forwarded on the first time slot is 64 bytes, then the number of first time slot groups corresponding to the first allocation request 1 is 2. Since 100 bytes ÷ 64 bytes = 1.5625 is a decimal, 1.5625 + 1 = 2.5625, then the number of first time slots in each first time slot group is 2.
[0160] Step 504C: When the first network device has all the first time slot groups that correspond to the first allocation request, the first network device sends a second allocation request to the second network device.
[0161] The first network device can determine whether there are all first time slot groups with the first allocation request within the first period by using the first time slots that are not allocated within the first period. (Still using...) Figure 6 Taking the example in step 504B, the first network device G1 has 4 remaining first time slot groups in its first cycle, and each first time slot group contains two consecutive first time slots. The first allocation request 1 requires 2 first time slot groups, and the number of first time slots in these 2 first time slot groups is 2. It can be seen that the first network device G1 has all the first time slot groups required by the first allocation request in its first cycle. Therefore, the first network device G1 can send the second allocation request 1 to the intermediate network device. Then, the intermediate network device forwards the second allocation request 1 to the second network device G3, thereby realizing the process of the first network device G1 sending the second allocation request 1 to the second network device G3. Of course, the first network G1 can also directly send the second allocation request 1 to the second network device G3. The resource information of the remaining first time domain resources in the second allocation request 1 includes the numbers of the first time slots 0, 1, 4, 5, 8, 9, 12 and 13.
[0162] It should be noted that when the total amount of data that can be forwarded by the remaining first time domain resources in the first cycle of the first network device is less than the total amount of data of the second message to be transmitted in the first allocation request, the first electronic device sends an allocation failure response to the first terminal to notify the first terminal that the time slot allocation has failed.
[0163] 505. The second network device receives the second allocation request.
[0164] 506. The second network device divides its time domain resources into a preset number of second time slots, each of which is the same size.
[0165] 507. When the distance between the relative positions of the second target time domain resource of the second network device and the first target time domain resource of the first network device is within a preset range, the second network device sends an allocation success response to the first network device, the allocation success response including the time slot information of the first target time domain resource.
[0166] The second target time-domain resource in step 507 includes at least one set of consecutive second time slots. Each set of consecutive second time slots represents the time-domain resource allocated by the second network device for each second message to be transmitted in the second allocation request within each second period. The first target time-domain resource in step 507 includes at least one set of consecutive first time slots. Each set of consecutive first time slots represents the time-domain resource allocated by the second network device for each second message to be transmitted in the second allocation request within each first period.
[0167] A set of consecutive first time slots within the first target time domain resource corresponds to a set of consecutive second time slots within the second target time domain resource. A set of consecutive first time slots can be considered as a first time slot group, and a set of consecutive second time slots as a second time slot group. The second packets forwarded on each corresponding first and second time slot group are identical. For example, if a first network device forwards second packet z on first time slot group x, a second network device also forwards second packet z on the second time slot group y corresponding to first time slot group x. The number of first time slots within each first time slot group is the same as the number of second time slots within the corresponding second time slot group, and the relative positions of each corresponding first and second time slot group are within a preset range.
[0168] In one possible implementation, step 507 can be achieved through the process shown in steps 507A-507D below.
[0169] Step 507A: Upon receiving the second allocation request, the second network device determines the second time slot that was not allocated in the first period of the first network device.
[0170] Step 507B: The second network device takes the number of second packets to be transmitted in the first allocation request as the number of first time slot groups, and determines the number of first time slots in each first time slot group based on the data volume of each second packet in the first allocation request and the data volume that can be forwarded on the first time slot.
[0171] Step 507C: When the number of first time slots in the first target time domain resource is less than or equal to the number of unallocated second time slots in the second period, the first time slots in the first period and the second time slots in the second period are matched to determine the first target time domain resource and the second target time domain resource. The distance between the relative positions of any first time slot group in the first target time domain resource and the corresponding second time slot group in the second target time domain resource is within a preset range.
[0172] Step 507C determines each first time slot group in the first target time domain resource and the corresponding second time slot group in the second target time domain group by matching the first time slot in the first cycle with the second time slot in the second cycle. The matching of the first time slot group and the second time slot group is the same as the matching of the first time slot and the corresponding second time slot in the first target time domain resource in step 307C. The matching process in step 507C will not be described in detail in this embodiment.
[0173] For the reader's convenience, see [link to relevant documentation]. Figure 6 In the allocation scheme, within a preset range of 3, the second network device G3 allocates a first target time domain resource and a second target time domain resource to the two 100-byte second packets in the first time slot request 1. These two second packets are second packet 111 and second packet 112, respectively. The first target time domain resource includes first time slot groups 1 and 2. First time slot group 1 includes first time slots 0 and 2, corresponding to second packet 111, and first time slot group 2 includes first time slots 4 and 5, corresponding to second packet 112. The second target time domain resource includes second time slot groups 1 and 2. Second time slot group 1 includes first time slots 2 and 3, corresponding to second packet 111, and second time slot group 2 includes second time slots 6 and 7, corresponding to second packet 112.
[0174] As can be seen, if the relative position of any first time slot group and its corresponding second time slot group within the first target time domain resource is within a preset range, then the difference between the distance between two adjacent first time slot groups and the distance between the corresponding two second time slot groups within the first target time domain resource is relatively small. Therefore, the time delay jitter caused by the difference between the distance between these two adjacent first time slot groups and the distance between these two second time slot groups is relatively small, thereby avoiding the time delay jitter from exceeding the upper limit and enabling the data stream to be transmitted smoothly.
[0175] In one possible implementation, when the first target time domain resource includes multiple first time slot groups and the second target time domain resource includes multiple second time slot groups, the distance between the relative positions of all first time slot groups and their corresponding second time slot groups within the first target time domain resource is equal.
[0176] For example, in Figure 6In the allocation scheme, the distance between the relative positions of the first time slot group 1 and the second time slot group 1 is 1, and the distance between the relative positions of the first time slot group 2 and the second time slot group 2 is also 1. That is, the distance between the relative positions of all first time slot groups and their corresponding second time slot groups within the first target time domain resource is equal. Therefore, the distance between two adjacent first time slot groups within the first target time slot resource is equal to the distance between two corresponding second time slot groups. Thus, the time delay jitter formed by the difference between the distance between two adjacent first time slot groups and the distance between the corresponding two second time slot groups within the first target time slot resource is zero, thereby achieving zero-latency jitter transmission and enabling more stable data stream transmission.
[0177] It should be noted that when allocating unallocated time slots in the first and second cycles based on a preset range of relative positions, there may be multiple allocation methods, and there may also be situations where allocation fails. When an allocation failure occurs, the second network device sends an allocation failure response to the first network device.
[0178] by Figure 7 For example, Figure 7 This is a schematic diagram of time slot allocation provided in an embodiment of this application. The first time slot request 4 indicates three 100-byte second packets, namely second packets 411, 412, and 413. Each second packet requires two time slots. Referring to scheme 3, the second network device G3 groups the first time slots 2 and 3 of the first period T0 into a first time slot group 1 as the first time slot group corresponding to the second packet 411, and groups the first time slots 8 and 9 of the first period T0 into a first time slot group 2 as the first time slot group corresponding to the second packet 412. The first time slots 8 and 9 of the first period T0... Time slots 16 and 17 form a first time slot group 3 as the first time slot group corresponding to the second message 413. The second network device G3 forms a second time slot group 1 corresponding to the first time slot group 1 in the second period T4 of the second network device G3, forms a second time slot group 2 corresponding to the first time slot group 2 in the second period T4, forms a second time slot group 2 corresponding to the first time slot group 2 in the second period T4, and forms a second time slot group 3 corresponding to the first time slot group 3 in the second period T4, wherein the distance between the relative positions of each first time slot group and the corresponding second time slot group is 1.
[0179] Of course, there are other allocation schemes, such as Scheme 4. The difference between Scheme 4 and Scheme 3 is that the first time slots 13 and 14 in the first period T0 are used as the first time slot group 3 corresponding to the second message 413, and the second time slots 15 and 16 in the second period T4 are used as the second time slot group 3 corresponding to the first time slot group 3. The distance between the relative positions of the first time slot group and the corresponding second time slot group in Scheme 4 is within the preset range.
[0180] For example, the first time slot request 5 indicates four 100-byte second messages, namely second messages 511, 512, 513, and 514. Each second message requires two time slots. Therefore, the relative distance between the first time slot group and the corresponding second time slot group must be equal. Figure 7 In Scheme 5, the second network device uses the first timeslots 2 and 3 in the first period T0 as the first timeslot group 1 corresponding to the second message 511, the first timeslots 8 and 9 in the first period T0 as the first timeslot group 2 corresponding to the second message 512, the first timeslots 13 and 14 in the first period T0 as the first timeslot group 3 corresponding to the second message 513, and the first timeslots 16 and 17 in the first period T0 as the first timeslot group 4 corresponding to the second message 514. The second network device uses second time slots 4 and 5 in the second period T1 as the second time slot group 1 corresponding to the second message 511, and the distance between the relative positions of the first time slot group 1 and the second time slot group 1 corresponding to the second message 511 is 1. The second network device uses second time slots 9 and 10 in the second period T1 as the second time slot group 2 corresponding to the second message 512, and the distance between the relative positions of the first time slot group 2 and the second time slot group 2 corresponding to the second message 512 is 1. Since there is no second time slot group 3 in the second period T1 of the second network device with a relative position distance of 1 between the first time slot group 3 corresponding to the second message 513, this scheme 5 is a failed scheme, and allocation cannot be performed on the first period T0 of the first network device and the first period T1 of the second network device.
[0181] Step 507D: After the first target time domain resource and the second target time domain resource are determined, the second network device sends an allocation success response to the first network device.
[0182] Taking the example in step 507C as an example, the allocation success response includes the numbers of the first time slots 0 and 1 in a first time slot group in the first target time slot resource, and the numbers of the first time slots 4 and 5 in a first time slot group.
[0183] It should be noted that the second network device can receive multiple second allocation requests sent by the first network device. The second network device can process each second allocation request in the order in which the second allocation requests are received. Taking the example in step 503 as an example, after the second network device G3 receives the second allocation request 1 sent by the first network device G1 based on the first allocation request 1, it also receives the second allocation request 2 sent by the first network device G1 based on the first allocation request 2. Subsequently, the second network device G3 receives the second allocation request 3 sent by the first network device G2 based on the first allocation request 3. Then, the second network device processes the second allocation request 1 first, then the second allocation request 2, and then the second allocation request 3.
[0184] Specifically, after the second network device G3 sends the allocation success response 1 based on the second allocation request 1 to the first network device G1, the second network device G3 executes step 507 based on the second allocation request 2. The two 64-byte second packets indicated by the second allocation request 2 are packets 211 and 212, respectively. See [link to relevant documentation]. Figure 6 In the allocation success response 1, the second network device G3 has allocated the first time slots 0, 2, 4 and 5 in the first period T0. Currently, the unallocated first time slots in the first period T0 include first time slots 8, 9, 12 and 13. The second allocation request 2 indicates that each second message has a data size of 64 bytes. A maximum of 64 bytes of data can be forwarded on each first time slot. That is, the first network device G1 can forward a second message indicated by the second allocation request 2 on a first time slot. Then, the second network device can allocate the first time slot group 3 consisting of the first time slot 8 in the first period T0 to the second message 211, and the second network device can allocate the first time slot group 4 consisting of the first time slot 12 in the first period T0 to the second message 212. Based on the preset range 3, the second network device G3, after matching, can use the second time slot 4 in the second period T2 as the second time slot group 3 corresponding to the first time slot group 3, and use the second time slot 8 in the second period T2 as the second time slot group 4 corresponding to the first time slot group 4. After the matching is completed, the second network device G3 sends an allocation success response 2 to the first network device G1. After the second network device G3 sends an allocation success response 2 to the first network device G1, the second network device G3 executes step 507 based on the second allocation request 3. The second network device G2 has 16 unallocated first time slots in the first period T1. The second network device G3 uses the first time slot group 5 composed of first time slots 0 and 1 in the first period T1 as the first time slot group corresponding to the second message 311 indicated by the second allocation request 3, and uses the first time slot group 6 composed of first time slots 3 and 4 in the first period T1 as the first time slot group corresponding to the second message 312 indicated by the second allocation request 3. The second time slot group 5 composed of second time slots 10 and 11 in the second period T2 is matched with the first time slot group 5, and the second time slot group 6 composed of second time slots 13 and 14 in the second period T2 is matched with the first time slot group 5. After successful allocation, the second network device G3 sends an allocation success response 3 to the first network device G2.
[0185] 508. The first network device forwards the received allocation success response to the first terminal.
[0186] Taking the example in step 507D as an example, the first network device G1 forwards the allocation success response 1 to the first terminal A and the allocation success response 2 to the first terminal B, and the second network device G2 forwards the allocation success response 3 to the first terminal C.
[0187] 509. After receiving the allocation success response, the first terminal sends a data stream to the first network device.
[0188] For this data stream, the number of second messages sent by the first terminal to the first network device per cycle cannot exceed the number of second messages to be transmitted in the first allocation request, and the data amount of each second message sent to the first network device per cycle cannot exceed the data amount of each second message in the first allocation request.
[0189] Taking the example in step 503 as an example, the first terminal A sends the data stream flow1 corresponding to the first allocation request 1 to the first network device G1, and the number of second packets sent in each cycle cannot exceed 2, and the data size of each packet cannot exceed 100 bytes. The first terminal B sends the data stream flow2 corresponding to the first allocation request 2 to the first network device G1, and the number of second packets sent in each cycle cannot exceed 2, and the data size of each packet cannot exceed 64 bytes. The first terminal C sends the data stream flow3 corresponding to the first allocation request 3 to the first network device G2, and the number of second packets sent in each cycle cannot exceed 2, and the data size of each packet cannot exceed 100 bytes.
[0190] 510. After receiving the data stream, the first network device forwards the data stream on the first target time domain resource.
[0191] The first network device can forward the second message in the data stream on the first target time domain resource in each first cycle. In one possible implementation, when the first target time domain resource includes multiple sets of consecutive first time slots, the first network device forwards at least one second message on the multiple sets of consecutive first time slots, wherein a set of consecutive first time slots is used to forward one second message, and the data size of one second message is the data size of at least one first message.
[0192] Still with Figure 6Taking the allocation scheme as an example, after receiving data flow flow1, the first network device G1, according to the first time slot groups within the first target time domain resource in the allocation success response 1, forwards the second message 111 from data flow flow1 to the second network device G3 on the first time slots 0 and 2 within the first time slot group 1 of the first period T0, and forwards the second message 112 from data flow flow1 to the second network device G3 on the first time slots 4 and 5 within the first time slot group 2 of the first period T0. After receiving data flow flow2, according to the time slot information of the first time slot within the first target time period in the allocation success response 2, the first network device G1 forwards the second message 211 from data flow flow2 to the second network device G3 on the first time slot 8 within the first time slot group 3 of the first period T0, and forwards the second message 212 from data flow flow2 to the second network device G3 on the first time slot 12 within the first time slot group 4 of the first period T0. After receiving the data flow flow3, the first network device G2 forwards the second message 311 from the data flow flow3 to the second network device G3 on the first time slots of each group of the first time slots in the first time slot time domain resources in the first time slot of the first time slot group 5 in the first period T1, and on the first time slots 0 and 1 of the first time slot group 5 in the first period T1, and forwards the second message 312 from the data flow flow3 to the second network device G3 on the first time slots 3 and 4 of the first time slot group 5 in the first period T1.
[0193] 511. After receiving the data stream, the second network device forwards the data stream on the second target time domain resource.
[0194] When the second target time domain resource includes multiple sets of consecutive second time slots, in one possible implementation, the second network device forwards at least one second message on the multiple sets of consecutive second time slots, wherein a set of consecutive second time slots is used to forward one second message.
[0195] Taking the example in step 510 as an example, after receiving the second message 111, the second network device G3 forwards the second message 111 to terminal D in the second time slots 2 and 3 within the second time slot group 1 of the second period T2. After receiving the second message 112, the second network device G3 forwards the second message 112 to terminal D in the second time slots 6 and 7 within the second time slot group 2 of the second period T2. After receiving the second message 211, the second network device G3 forwards the second message 211 to terminal E in the second time slot 4 within the second time slot group 3 of the second period T2. After receiving the second message 212, the second network device G3 forwards the second message 212 to terminal E in the second time slot 8 within the second time slot group 4 of the second period T2. After receiving the second message 311, the second network device G3 forwards the second message 311 to the terminal F in the second time slots 10 and 11 within the second time slot group 5 of the second period T2. After receiving the second message 312, the second network device G3 forwards the second message 312 to the terminal F in the second time slots 13 and 14 within the second time slot group 6 of the second period T2.
[0196] The method provided in this application embodiment involves a first network device sending a second allocation request to a second network device. The second network device then matches unallocated first time slots within the first period with unallocated second time slots within the second period, based on a preset range of distances between the relative positions of the first and second target time domain resources within their respective periods. This determines the first and second target time domain resources. Based on the allocation result, the first and second network devices perform corresponding data forwarding. When the distance between the relative positions of any first time slot group within the allocated first target time domain resource and any second time slot group within the allocated second target time domain resource is within a preset range, the difference between the distance between two adjacent first time slot groups and the distance between the corresponding two second time slot groups within the first target time domain resource is relatively small. Therefore, the latency jitter caused by the difference between the distance between these two adjacent first time slot groups and the distance between these two second time slot groups is relatively small, thus preventing latency jitter from exceeding the upper limit and enabling smooth data transmission. Furthermore, when the relative distances between all first time slot groups and their corresponding second time slot groups within the first target time domain resource are equal, the distance between two adjacent first time slot groups and the distance between two corresponding second time slot groups within the first target time domain resource is equal. The latency jitter resulting from the difference between the distance between two adjacent first time slot groups and the distance between the corresponding two second time slot groups within the first target time domain resource is zero, thus achieving zero-latency jitter transmission and enabling smoother data flow transmission. Moreover, by dividing each period on the time axis of each device into time slots, the specific time for data forwarding on each device is more precise. Furthermore, forwarding data in the form of a second message maintains the integrity of the data within the second message.
[0197] Figure 8 This is a structural diagram of a data forwarding device provided in an embodiment of this application. The device includes:
[0198] The receiving module 801 is used to perform the above step 303;
[0199] Sending module 802 is used to perform the above step 304;
[0200] The receiving module 801 is also used to perform the above step 308;
[0201] Forwarding module 803 is used to perform the above step 310.
[0202] Optionally, when the first target time domain resource includes multiple first time slots and the second target time domain resource includes multiple second time slots, the distance between the relative positions of all first time slots and their corresponding second time slots within the first target time domain resource is equal.
[0203] Optionally, the forwarding module 803 is used to perform the above steps 310A and 310B:
[0204] Optionally, the first target time-domain resource includes multiple sets of consecutive first time slots;
[0205] Accordingly, the forwarding module 803 is used to forward at least one second message on the multiple sets of consecutive first time slots, wherein a set of consecutive first time slots is used to forward one second message, and the data size of one second message is the same as the data size of at least one first message.
[0206] Optionally, the device further includes a partitioning module for performing step 301 described above.
[0207] Figure 9 This is a structural diagram of a data forwarding device provided in an embodiment of this application. The device includes:
[0208] The receiving module 901 is used to perform the above step 305;
[0209] Sending module 902 is used to perform the above step 307;
[0210] Forwarding module 903 is used to perform step 311 above.
[0211] Optionally, when the first target time domain resource includes multiple first time slots and the second target time domain resource includes multiple second time slots, the distance between the relative positions of all first time slots and their corresponding second time slots within the first target time domain resource is equal.
[0212] Optionally, forwarding the data stream on the second target time-domain resource includes:
[0213] At least one first message forwarded on the first target time domain resource is forwarded on each second time slot of the second target time domain resource, wherein one second time slot is used to forward one first message.
[0214] Optionally, the second target time-domain resource includes multiple sets of consecutive second time slots;
[0215] Accordingly, forwarding the data stream on the second target time-domain resource includes:
[0216] At least one second message is forwarded on the multiple sets of consecutive second time slots, wherein a set of consecutive second time slots is used to forward one second message, and the data size of one second message is the total data size of at least one first message.
[0217] Optionally, the forwarding module 903 is used to forward the data forwarded in the corresponding first target time slot in the second target time slot.
[0218] Optionally, the device further includes a partitioning module for performing step 306 described above.
[0219] All of the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of this disclosure, and will not be described in detail here.
[0220] It should be noted that the data forwarding apparatus provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the apparatus can be divided into different functional modules to complete all or part of the functions described above. In addition, the data forwarding apparatus and the data forwarding method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0221] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0222] The above are merely preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A data forwarding method, characterized in that, Applied to a first network device, the method includes: Receive a first allocation request sent by a first terminal, wherein the first allocation request includes the amount of data to be transmitted in each cycle of the data stream; When the total amount of data that can be forwarded by the remaining first time domain resources in the first cycle of the first network device is greater than or equal to the amount of data to be transmitted in the first allocation request, a second allocation request is sent to the second network device based on the first allocation request. The second allocation request includes the amount of data to be transmitted and the resource information of the remaining first time domain resources. The system receives a successful allocation response from the second network device. The successful allocation response includes time slot information of the first target time domain resource. The distance between the relative positions of the first target time domain resource and the second target time domain resource of the second network device is within a preset range. The data stream is forwarded on the first target time domain resource.
2. The method according to claim 1, characterized in that, When the first target time domain resource includes multiple first time slots and the second target time domain resource includes multiple second time slots, the distance between the relative positions of all first time slots and their corresponding second time slots within the first target time domain resource is equal.
3. The method according to claim 1, characterized in that, The forwarding of the data stream on the first target time domain resource includes: The data to be transmitted is split into at least one first message; The at least one first message is forwarded on each first time slot of the first target time domain resource, wherein one first time slot is used to forward one first message.
4. The method according to claim 3, characterized in that, The first target time-domain resource includes multiple sets of consecutive first time slots; Accordingly, forwarding the data stream on the first target time-domain resource includes: At least one second message is forwarded on the plurality of consecutive first time slots, wherein a group of consecutive first time slots is used to forward one second message, and the data size of the one second message is the total data size of the at least one first message.
5. The method according to claim 1, characterized in that, Before receiving the first allocation request sent by the first terminal, the method further includes: The time domain resources of the first network device are divided into a preset number of first time slots, each of which is the same size.
6. A data forwarding method, characterized in that, Applied to a second network device, the method includes: The system receives a second allocation request sent by a first network device. The second allocation request includes the amount of data to be transmitted in the first allocation request and the resource information of the remaining first time domain resources of the first network device in the first cycle. The first allocation request includes the amount of data to be transmitted in each cycle of the data stream. When the distance between the second target time domain resource of the second network device and the first target time domain resource of the first network device is within a preset range, a successful allocation response is sent to the first network device, the successful allocation response including the time slot information of the first target time domain resource; The data stream is forwarded on the second target time domain resource.
7. The method according to claim 6, characterized in that, When the first target time domain resource includes multiple first time slots and the second target time domain resource includes multiple second time slots, the distance between the relative positions of all first time slots and their corresponding second time slots within the first target time domain resource is equal.
8. The method according to claim 6, characterized in that, The forwarding of the data stream on the second target time-domain resource includes: Forward at least one first message forwarded on the first target time domain resource on each second time slot of the second target time domain resource, wherein one second time slot is used to forward one first message.
9. The method according to claim 8, characterized in that, The second target time-domain resource includes multiple sets of consecutive second time slots; Accordingly, forwarding the data stream on the second target time-domain resource includes: At least one second message is forwarded on the plurality of consecutive second time slots, wherein a group of consecutive second time slots is used to forward one second message, and the data size of the one second message is the total data size of the at least one first message.
10. The method according to claim 6, characterized in that, Before receiving the second allocation request, the method further includes: The time domain resources of the second network device are divided into a preset number of second time slots, each of which is the same size.
11. A data forwarding device, characterized in that, Applied to a first network device, the device includes: The receiving module is configured to receive a first allocation request sent by the first terminal, wherein the first allocation request includes the amount of data to be transmitted in each cycle of the data stream; The sending module is configured to send a second allocation request to the second network device based on the first allocation request when the total amount of data that can be forwarded by the remaining first time domain resources in the first cycle of the first network device is greater than or equal to the amount of data to be transmitted in the first allocation request. The second allocation request includes the amount of data to be transmitted and the resource information of the remaining first time domain resources. The receiving module is further configured to receive an allocation success response sent by the second network device. The allocation success response includes time slot information of the first target time domain resource, and the distance between the relative positions of the first target time domain resource and the second target time domain resource of the second network device is within a preset range. The forwarding module is used to forward the data stream on the first target time domain resource.
12. The apparatus according to claim 11, characterized in that, When the first target time domain resource includes multiple first time slots and the second target time domain resource includes multiple second time slots, the distance between the relative positions of all first time slots and their corresponding second time slots within the first target time domain resource is equal.
13. The apparatus according to claim 11, characterized in that, The forwarding module is used for: The data to be transmitted is split into at least one first message; The at least one first message is forwarded on each first time slot of the first target time domain resource, wherein one first time slot is used to forward one first message.
14. The apparatus according to claim 11, characterized in that, The device further includes: The partitioning module is used to divide the time domain resources of the first network device into a preset number of first time slots, each of which is the same size.
15. A data forwarding device, characterized in that, Applied to a second network device, the device includes: The receiving module is configured to receive a second allocation request sent by a first network device. The second allocation request includes the amount of data to be transmitted in the first allocation request and the resource information of the remaining first time domain resources of the first network device in a first cycle. The first allocation request includes the amount of data to be transmitted in each cycle of the data stream. The sending module is configured to send an allocation success response to the first network device when the distance between the relative positions of the second target time domain resource of the second network device and the first target time domain resource of the first network device is within a preset range. The allocation success response includes the time slot information of the first target time domain resource. The forwarding module is used to forward the data stream on the second target time domain resource.
16. The apparatus according to claim 15, characterized in that, When the first target time domain resource includes multiple first time slots and the second target time domain resource includes multiple second time slots, the distance between the relative positions of all first time slots and their corresponding second time slots within the first target time domain resource is equal.
17. The apparatus according to claim 15, characterized in that, The forwarding module is used to forward at least one first message forwarded on the first target time domain resource on each second time slot of the second target time domain resource, wherein one second time slot is used to forward one first message.
18. The apparatus according to claim 15, characterized in that, The device further includes: The partitioning module is used to divide the time domain resources of the second network device into a preset number of second time slots, each of which is the same size.
19. A network device, characterized in that, The network device includes one or more processors and one or more memories, wherein the one or more memories store at least one instruction, which is loaded and executed by the one or more processors to perform the operation performed by the data forwarding method as described in any one of claims 1 to 10.
20. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction, which is loaded and executed by a processor to perform the operation of the data forwarding method as described in any one of claims 1 to 10.
Citation Information
Patent Citations
Data transmission method and device
CN102938743A
Message transmitting method and device
WO2013063964A1
