A communication method and a routing device
By sending two information frames in a deterministic network and adjusting the data volume according to the preset outbound interface capacity, the problem of insufficient data throughput is solved, lossless passage of data frames is achieved and bandwidth utilization is improved.
Patent Information
- Application Number
- CN202111145969.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-09-28
AI Technical Summary
In deterministic networks, existing communication methods have low data throughput and insufficient utilization of bandwidth resources because the actual flow of data flows is less than half of the maximum amount of admitted data.
By sending two information frames, the following information frames can pass through the target link without loss, and the node admission data amount is determined based on the preset outbound interface capacity and the data amount of the information frame, and the data transmission amount is adjusted to improve data throughput.
It achieves lossless passage of data frames and maintains time intervals, improves data throughput and bandwidth utilization, and solves the problem of insufficient bandwidth resource utilization.
Smart Images

Figure CN115883457B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a communication method and a routing device. Background Art
[0002] With the development of communication technology, more and more types of services are being developed. Some services have very high requirements for latency and latency jitter. The previous best-effort services can no longer meet the requirements of these services, so deterministic networks have emerged. Deterministic networks can provide end-to-end deterministic latency and deterministic latency jitter for services. Deterministic latency means that the end-to-end latency is less than or equal to the latency required by the service, and deterministic latency jitter means that the end-to-end latency jitter is less than the latency jitter required by the service.
[0003] At present, there is a communication method as follows: after determining the scheduling delay, routing device 1 calculates the maximum amount of data allowed within the scheduling delay according to the preset traffic model, and sends a message to routing device 2 according to the maximum amount of data allowed. Routing device 2 usually receives messages sent by multiple routing devices within the scheduling delay. When the amount of data of multiple messages received within the scheduling delay exceeds the amount of data sent within the scheduling delay, routing device 2 will lose some messages. In order to prevent message loss, each routing device will reduce the data messages sent to routing device 2.
[0004] According to the above method, the actual flow of the data stream often does not reach half of the maximum allowed data volume. Therefore, the data throughput of the above method is not high and there is a problem of insufficient bandwidth resource utilization. Summary of the invention
[0005] In view of this, the present application provides a communication method, which sends two information frames in sequence, so that the latter information frame passes through the target link without loss, and can improve data throughput.
[0006] A first aspect provides a communication method, which includes: a target routing device receives M information frames; according to a preset outbound interface capacity and the data volume included in the M information frames, determines the node access data volume corresponding to the first information frame; modifies the data volume carried by the first information frame from the first data volume to the node access data volume; determines a first transmission frame period according to the reception period of the first information frame; sends the modified first information frame to the second neighbor routing device in the first transmission frame period; receives the first access information sent by the second neighbor routing device, and sends the first access information to the first neighbor routing device; receives the second information frame sent by the first neighbor routing device; determines a second transmission frame period according to the reception period of the second information frame; sends the second information frame to the second neighbor routing device in the second transmission frame period. The M information frames include the first information frame sent by the first neighbor routing device and the information frames sent by other routing devices, and M is a positive integer. The first information frame can be any information frame sent by the first neighbor routing device, and the first information frame includes the first data volume. The start time of the second transmission frame period differs from the start time of the first transmission frame period by n frame periods, and n periods are greater than or equal to the round-trip delay between the first routing device and the second routing device, and n is a positive integer. The node access data volume is less than or equal to the first data volume. The node access data volume included in the first access information is the minimum value of the node access data volume determined by all routing devices of the target link according to the first information frame, and the target link is the communication link from the first routing device to the second routing device. The target routing device is any routing device between the first routing device and the second routing device.
[0007] According to this implementation, the target routing device can obtain the node access data volume corresponding to the first information frame, and the node access data volume is used to indicate the amount of data allowed to pass through the target routing device in the data message sent from the first routing device in the second target frame period. When each routing device sends an information frame according to the node access data volume corresponding to the data volume of the information frame, the information frames sent by each routing device can pass through the target routing device without loss. Moreover, the target routing device can keep the time interval between the first information frame and the second information frame unchanged, so that the collision situation of the first information frame with other information frames is the same as the collision situation of the second information frame with other information frames. Therefore, the node access data volume determined by the target routing device according to the first information frame can be consistent with the node access data volume of the second information frame, thereby ensuring that the second information frame passes through the target routing device without loss. By analogy, the time interval between the first information frame and the second information frame can remain unchanged on the target link, so that the second information frame reaches the second routing device without loss.
[0008] In a possible implementation, the target routing device determines the node access data volume corresponding to the first information frame according to the preset outbound interface capacity and the data volume included in the M information frames, including: determining the reference data volume corresponding to each data volume according to the data volume included in the M information frames; determining the first target reference data volume and the second target reference data volume according to the preset outbound interface capacity, and when the reference data volume corresponding to the first data volume is less than or equal to the first target reference data volume, determining the node access data volume corresponding to the first information frame as the first data volume; when the reference data volume corresponding to the first data volume is greater than or equal to the second target reference data volume, determining the target quantity as the number of reference data volumes greater than or equal to the second target reference data volume in all reference data volumes; dividing the difference between the outbound interface capacity and the first target reference data volume by the target quantity to obtain a quotient; determining the first target data volume corresponding to the first target reference data volume; determining the node access data volume corresponding to the first information frame as the sum of the first target data volume and the quotient. Wherein, the first target reference data volume is the maximum value of the reference data volumes that do not exceed the outbound interface capacity, and the second target reference data volume is the minimum value of the reference data volumes that are greater than the outbound interface capacity. This provides a specific method for obtaining the node access data volume corresponding to the first information frame. Similarly, the node access data volume corresponding to each information frame can be obtained.
[0009] In another possible implementation, determining the reference data amount corresponding to each data amount according to the data amount included in the M information frames includes: arranging the data amounts included in the M information frames in order from small to large; determining the data amount difference of adjacent data amounts according to the adjacent data amounts in the arranged M data amounts; determining the allocated data amount corresponding to each data amount difference; determining the reference data amount corresponding to other data amounts according to the minimum reference data amount and the allocated data amount corresponding to each data amount difference. The minimum reference data amount is the product of the minimum data amount and M, and the other data amounts are the data amounts obtained by dividing the minimum data amount by the M data amounts. This provides a specific method for obtaining the reference data amount corresponding to each data amount.
[0010] In another possible implementation, determining the allocated data amount corresponding to each data amount difference includes: selecting a data amount difference from all data amount differences; determining a target adjacent data amount corresponding to the selected data amount difference; and when a total of N data amounts among the M data amounts are greater than or equal to a second target data amount, determining that the allocated data amount corresponding to the data amount difference is equal to the product of the data amount difference and N. The target adjacent data amount includes a first target data amount and a second target data amount greater than the first target data amount. Thus, a specific method for obtaining the allocated data amount corresponding to each data amount difference is provided.
[0011] In another possible implementation, determining the reference data amount corresponding to other data amounts according to the minimum reference data amount and the allocated data amount corresponding to each data amount difference includes: selecting the data amount to be processed from other data amounts; determining a sub-data set from M data amounts according to the data amount to be processed, determining a difference subset according to adjacent data amounts in the sub-data set, the difference subset including the difference of adjacent data amounts in the sub-data set; determining the reference data amount corresponding to the data amount to be processed as the sum of the minimum reference data amount and the allocated data amounts corresponding to all differences in the difference subset. The data amount to be processed is any one of the other data amounts. Each data amount in the sub-data set is smaller than the data amount to be processed and the data amounts in the sub-data set are arranged in order from small to large. This provides a specific method for obtaining other reference data amounts.
[0012] In another possible implementation, the target routing device determines the first transmission frame period according to the reception period of the first information frame, including: the target routing device determines the first reference period corresponding to the first information frame according to the preset single-hop delay and the reception period of the first information frame; when the reception period of the first information frame is different from the first reference period, the target routing device shapes the reception period of the first information frame into the first reference period; the target routing device determines the first transmission frame period according to the preset first phase time difference and the first reference period, the first phase time difference being the time difference between the start time of the first reference period and the start time of the first transmission frame period; and the target routing device determines the second transmission frame period according to the reception period of the second information frame, including: the target routing device determines the second reference period corresponding to the second information frame according to the preset single-hop delay and the reception period of the second information frame; when the reception period of the second information frame is different from the second reference period, the target routing device shapes the reception period of the second information frame into the second reference period, and determines the second transmission frame period according to the preset first phase time difference and the second reference period. The start time of the first reference period differs from the start time of the second reference period by n frame periods. The single-hop delay is greater than or equal to the sum of the first processing delay, the scheduling delay, the transmission delay, the second processing delay, and the shaping delay. When the receiving period of the first information frame is different from the receiving period of the second information frame, the target routing device can keep the transmission frame period of the first information frame different from the transmission frame period of the second information frame by n-1 frame periods. Similarly, the time interval between the first information frame and the second information frame can remain unchanged on the entire target link.
[0013] In another possible implementation, the target routing device determines the first transmission frame period according to the reception period of the first information frame, including: the target routing device determines the first reference frame period according to the preset second phase time difference and the reception period of the first information frame, and determines the first transmission frame period as the next frame period of the first reference frame period; and the target routing device determines the second transmission frame period according to the reception period of the second information frame, including: the target routing device determines the second reference frame period according to the preset second phase time difference and the reception period of the second information frame, and determines the second transmission frame period as the next frame period of the second reference frame period. The second phase time difference is greater than or equal to the sum of the maximum processing delay jitter of the first neighbor routing device, the maximum processing delay jitter of the target routing device, and the maximum transmission delay jitter. When the reception period of the first information frame is different from the reception period of the second information frame, the target routing device can keep the transmission frame period of the first information frame different from the transmission frame period of the second information frame by n-1 frame periods. By analogy, the time interval between the first information frame and the second information frame can remain unchanged on the entire target link.
[0014] The second aspect provides a communication method, which includes: after the first routing device obtains the data volume of the first data message to be sent, the first information frame is generated according to the data volume of the first data message to be sent; the first information frame is sent to the second routing device through the target routing device in the first target frame period, and then the first routing device receives the first access information from the second routing device through the target routing device, and then obtains the first access data message according to the first access information and the first data message to be sent, and after generating the second information frame according to the first access data message, the first routing device sends the second information frame to the second routing device through the target routing device in the second target frame period. The first data message to be sent is a data message to be sent in the second target frame period.
[0015] Since the first target frame period is before the second target frame period and the time interval between the start time of the second target frame period and the start time of the first target frame period is n frame periods, and n frame periods are greater than or equal to the round-trip delay between the first routing device and the second routing device, each routing device of the target link can determine the node access data volume according to the first information frame. The node access data volume of the i-th routing device is less than or equal to the node access data volume of the i-1-th routing device, so the second routing device can obtain the minimum node access data volume. The second routing device sends the first access information including the minimum node access data volume to the first routing device, so that the amount of data carried by the second information frame sent by the first routing device does not exceed the minimum node access data volume, so that the second information frame can pass through each routing device on the target link without loss. The minimum node access data volume is the maximum access data volume allowed to pass through the target link. When the data volume of the second information frame is close to or equal to the minimum node access data volume, the network bandwidth can be fully utilized to improve the throughput.
[0016] In a possible implementation, the first routing device generates a first information frame according to the data volume of the first data message to be sent, including: the first routing device generates a first control message according to the data volume of the first data message to be sent, and generates the first information frame according to the first control message. According to this implementation, the data volume of the first data message to be sent can be carried in the first information frame through a control message. This provides an implementation of the first information frame.
[0017] In another possible implementation, the first routing device sends a third information frame to the second routing device through the target routing device in the third target frame period, and then receives the second access information from the second routing device through the target routing device; then obtains the second access data message according to the second access information and the data message to be sent in the first target frame period, and then generates the first information frame according to the second access data message and the first control message. The third target frame period is before the first target frame period and the start time of the third target frame period differs from the start time of the first target frame period by n frame periods, and the second access information includes the node access data amount of the first target frame period. This provides another form of the first information frame, which includes a control message and a data message.
[0018] In another possible implementation, the first routing device obtains the first access data message according to the first access information and the first data message to be sent, including: the first routing device determines the target access data volume according to the remaining bandwidth of the link, and selects the first access data message from the first data message to be sent according to the sum of the node access data volume and the target access data volume included in the first access information. The first access information also includes the remaining bandwidth of the link, and the remaining bandwidth of the link is the minimum value of the remaining bandwidth of the node determined by all routing devices on the target link according to the first information frame. According to this implementation, the first routing device can send data messages according to the node access data volume and the remaining bandwidth of the link, which can improve bandwidth utilization and data throughput.
[0019] In another possible implementation, the first routing device obtains the data volume of the second data message to be sent, and generates a second information frame according to the data volume of the first access data message and the second data message to be sent. The fourth target frame period corresponding to the second message to be sent is after the second target frame period, and the start time of the fourth target frame period differs from the start time of the second target frame period by n frame periods. According to this implementation, the second information frame includes the data message and the data volume of the second data message to be sent, thus providing an implementation method of the second information frame.
[0020] In another possible implementation, the first routing device generates the second information frame according to the data volume of the first admission data message and the second to-be-sent data message, including: the first routing device generates the second control message according to the data volume of the second to-be-sent data message, and generates the second information frame according to the first admission data message and the second control message. According to this implementation, the second information frame includes the control message and the data message, which provides another implementation of the second information frame.
[0021] In another possible implementation, when the data volume of the first data message to be sent is greater than the node admission data volume included in the first admission information, the remaining data message is discarded, and the remaining data message is a data message obtained by removing the first admission data message from the first data message to be sent. This provides a method for processing the remaining data message, which can normally schedule subsequent data messages.
[0022] In another possible implementation, after the first routing device generates a first information frame according to the data volume of the first to-be-sent data message, the first information frame is added to the sending queue; after the first routing device generates a second information frame according to the first admission data message, the second information frame is added to the sending queue. This provides a method for sending information frames through a queue.
[0023] The third aspect provides a communication method, which includes: after receiving multiple information frames, the second routing device determines the node access data volume corresponding to the first information frame according to the preset output interface capacity and the data volume included in the multiple information frames, the second routing device sends the first access information including the node access data volume to the first routing device through the target routing device, and then receives the second information frame sent by the first routing device through the target routing device. The multiple information frames include the first information frame sent by the first neighbor routing device and the information frames sent by other routing devices. The node access data volume is the minimum value of the node access data volume determined by all routing devices on the target link according to the first information frame, and the target link is the communication link between the first routing device and the second routing device. When the first information frame passes through the routing device of the target link, the data volume of the first information frame remains unchanged or decreases, and the node access data volume obtained by the second routing device according to the first information frame is the minimum value of the node access data volume determined by all routing devices on the target link according to the first information frame. When the first routing device sends the second information frame according to the node access data volume, the second information frame can pass through the target link without loss. Since the node's access data volume is the maximum access data volume allowed by the target link, the data volume carried by the second information frame is close to or equal to the maximum access data volume allowed by the target link, so the bandwidth can be fully utilized to improve the data throughput of the target link.
[0024] A fourth aspect provides a routing device having the function of implementing the target routing device in any one of the embodiments of the first aspect. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0025] A fifth aspect provides a routing device having the function of implementing the first routing device in any one of the implementations of the second aspect. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0026] A sixth aspect provides a routing device having the function of implementing the second routing device in any implementation of the third aspect. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0027] A seventh aspect provides a routing device, comprising a processor and a memory, wherein the memory is used to store a program; and the processor is used to implement the method of any one of the above aspects by executing the program.
[0028] An eighth aspect provides a communication system, comprising a target routing device in any one of the embodiments of the fourth aspect, a first routing device in any one of the embodiments of the fifth aspect, and a second routing device in any one of the embodiments of the sixth aspect.
[0029] The ninth aspect provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the methods of the above aspects.
[0030] The tenth aspect provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods of the above aspects.
[0031] The eleventh aspect provides a chip system, comprising at least one processor, wherein the processor is coupled to a memory, the memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions to implement the methods of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the existing communication scenario;
[0033] Figure 2 A schematic diagram of a communication network in an embodiment of the present application;
[0034] Figure 3 A flow chart of a communication method in an embodiment of the present application;
[0035] Figure 4A A schematic diagram of an information frame in an embodiment of the present application;
[0036] Figure 4B Another schematic diagram of an information frame in an embodiment of the present application;
[0037] Figure 4C Another schematic diagram of an information frame in an embodiment of the present application;
[0038] Figure 5 A schematic diagram of a sending queue in an embodiment of the present application;
[0039] Figure 6 Another flow chart of the communication method in the embodiment of the present application;
[0040] Fig. 7A A schematic diagram of the data volume of multiple information frames in an embodiment of the present application;
[0041] Figure 7B A schematic diagram of the reference data volume corresponding to the data volume in the embodiment of the present application;
[0042] Figure 7CAnother schematic diagram of the reference data amount corresponding to the data amount in the embodiment of the present application;
[0043] Fig.7D Another schematic diagram of the reference data amount corresponding to the data amount in the embodiment of the present application;
[0044] Fig. 7E Another schematic diagram of the reference data amount corresponding to the data amount in the embodiment of the present application;
[0045] Figure 8 A schematic diagram of a receiving period of a first information frame and a first sending frame period in an embodiment of the present application;
[0046] Fig. 9 Another schematic diagram of the receiving period of the first information frame and the first sending frame period in the embodiment of the present application;
[0047] Fig.10 Another flow chart of the communication method in the embodiment of the present application;
[0048] Fig.11 A signaling interaction diagram of a communication method in an embodiment of the present application;
[0049] Fig.12 A structural diagram of a routing device in an embodiment of the present application;
[0050] Fig.13 Another structural diagram of the routing device in the embodiment of the present application;
[0051] Fig.14 Another structural diagram of the routing device in the embodiment of the present application;
[0052] Fig.15 This is another structural diagram of the routing device in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following is based on Figure 1 The communication scenario shown introduces the existing communication methods. Figure 1 , the communication scenario includes router 101, router 102, router 103, router 104, router 105 and router 106.
[0054] In one example, a first data stream is sent from router 101 and router 104 to router 106 , a second data stream is sent from router 102 and router 104 to router 105 , and a third data stream is sent from router 103 and router 104 to router 106 .
[0055] In the case where router 104 receives multiple data streams, the amount of data received by router 104 in a time interval exceeds the amount of data sent by router 104 in the time interval, and router 104 will discard some messages to ensure the normal scheduling of subsequent data streams. In order to reduce packet loss, routers 101, 102 and 103 will reduce the amount of data sent. The actual flow of the data stream is equal to the product of the preset ratio and the maximum amount of data allowed. The preset ratio is an empirical value, such as any value between 30% and 50%.
[0056] Since the above method is unclear about the actual link access data volume, the actual flow rate of the data flow is often significantly different from the actual link access data volume, resulting in idle bandwidth resources and affecting data throughput. In view of the above problems, the present application provides a communication method that can communicate according to the actual link access data volume, reduce the waste of bandwidth resources, and improve data throughput.
[0057] The communication network used by the communication method of the present application includes routing equipment and / or switching equipment. Figure 2 A communication network of the present application includes edge router 201, edge router 202, edge router 203, edge router 204, edge router 205, edge router 206, edge router 207, edge router 208, core router 211, core router 212, core router 213, core router 214, core router 215 and core router 216.
[0058] In one example, edge router 201 creates an information frame queue, and the length of each information frame is the same. The communication link includes nodes such as edge router 201, core router 211, core router 215, core router 213, and edge router 208. Edge router 201 can send information frames to edge router 208 through core router 211, core router 215, and core router 213.
[0059] The edge router 201 sends an information frame in each frame period. For example, the information frame of the first frame period is recorded as information frame 1, and the information frame of the eleventh frame period is recorded as information frame 11. Information frame 11 includes a data message, and information frame 1 includes the size of the data message in information frame 11. After the core router 211 receives information frame 1, the core router 211 determines the node access data volume corresponding to information frame 1, and modifies the data volume carried by information frame 1 to the node access data volume corresponding to information frame 1, and the node access data volume is less than or equal to the data volume carried by information frame 1. Similarly, after the core router 215, the core router 213 and the edge router 208 receive information frame 1, they respectively determine the node access data volume corresponding to information frame 1, and modify the data volume that can be carried by information frame 1 to the node access data volume corresponding to information frame 1. It should be understood that the node access data volume allocated by the edge router 208 is the minimum value of all node access data volumes. In the case where the above routers have no remaining bandwidth, the node access data volume allocated by the edge router 208 is the maximum data volume allowed to pass through the communication link. After the edge router 208 obtains the minimum node access data volume, it sends the access information carrying the minimum node access data volume to the edge router 201, and the edge router 201 sends the information frame 11 according to the minimum node access data volume. When the data volume carried by the information frame 11 does not exceed the minimum node access data volume, the information frame 11 can pass through the core router 211, the core router 215 and the core router 213 without loss to reach the edge router 208.
[0060] The edge router 201 sends information frames according to the above method, so that the amount of data carried by each information frame after information frame 11 is close to or equal to the maximum amount of data allowed to pass through the communication link, thereby fully utilizing the bandwidth and improving data throughput.
[0061] It should be understood that the routing device in the communication network of the present application is not limited to the above examples. The information frames and frame periods transmitted by the routing device are also not limited to the above examples.
[0062] See also Figure 3 , an embodiment of the communication method in the present application includes:
[0063] Step 301: A first routing device obtains a data volume of a first data message to be sent, where the first data message to be sent is a data message to be sent in a second target frame period.
[0064] Step 302: The first routing device generates a first information frame according to the data volume of the first data message to be sent.
[0065] The first information frame includes the data volume of the first data message to be sent.
[0066] Step 303: The first routing device sends a first information frame to the second routing device through the target routing device in a first target frame period.
[0067] Specifically, the first routing device sends a first information frame to the second routing device through one or more routing devices, and the first information frame may be any information frame generated by the first routing device. The target routing device is any routing device between the first routing device and the second routing device.
[0068] The first routing device periodically sends information frames. Each frame period is used to send an information frame, and the first target frame period is a frame period used to send the first information frame. The first target frame period is before the second target frame period and the time interval between the start time of the second target frame period and the start time of the first target frame period is n frame periods, and n frame periods are greater than or equal to the round-trip delay between the first routing device and the second routing device. It should be understood that the first target frame period and the second target frame period differ by n-1 frame periods. For example, the first target frame period is the i-th frame period, and the second target frame period is the i+n-1-th frame period, and n and i are positive integers. The length of the frame period, the values of n and i can be set according to actual conditions.
[0069] Step 304: The first routing device receives first admission information from the second routing device through the target routing device.
[0070] Optionally, the first access information includes the node access data volume. Another option is that the first access information includes the node access data volume and the link remaining bandwidth, and the link remaining bandwidth is the minimum value of the node remaining bandwidth determined by all routing devices on the target link according to the first information frame. The target link is a communication link between the first routing device and the second routing device. For example, the target link includes 3 routing devices, the node remaining bandwidth allocated by routing device 1 for the first information frame is 200 megabytes per second (MBps), the node remaining bandwidth allocated by routing device 2 for the first information frame is 150MBps, and the node remaining bandwidth allocated by routing device 3 for the first information frame is 100MBps, then the link remaining bandwidth is 100MBps.
[0071] The target routing device can determine the access information corresponding to the first information frame based on the amount of data included in the first information frame. The second routing device can determine the access information corresponding to the first information frame based on the amount of data included in the first information frame. The node access data amount included in the first access information is the minimum value of the node access data amounts determined by all routing devices on the target link based on the first information frame. For example, the target link includes 3 routing devices, the node access data amount allocated by routing device 1 for the first information frame is 70MB, the node access data amount allocated by routing device 2 for the first information frame is 50MB, and the node access data amount allocated by routing device 3 for the first information frame is 30MB, then the minimum node access data amount is 30MB.
[0072] It should be noted that the amount of data carried by the first information frame received by the jth routing device on the target link is less than or equal to the amount of data carried by the first information frame received by the j+1th routing device, where j is a positive integer. The first routing device does not perform the step of determining the node access data amount according to the first information frame.
[0073] Step 305: The first routing device obtains a first access data message according to the first access information and the first to-be-sent data message.
[0074] The size of the first access data message does not exceed the data volume indicated by the first access information. When the first access information includes the node access data volume, the size of the first access data message does not exceed the node access data volume. When the first access information includes the node access data volume and the remaining link bandwidth, the size of the first access data message does not exceed the sum of the node access data volume and the target access data volume, and the target access data volume is the data volume corresponding to the remaining link bandwidth.
[0075] Step 306: The first routing device generates a second information frame according to the first access data message.
[0076] Specifically, the second information frame includes the first access data message. Alternatively, the second information frame includes the first access data message and the second control message, and the second control message includes the data volume of the data message to be sent in the fourth target frame period.
[0077] Step 307: The first routing device sends a second information frame to the second routing device through the target routing device in the second target frame period.
[0078] In this embodiment, the first routing device sends the first information frame and the second information frame in sequence, the first information frame includes the data volume of the second information frame, the routing device on the target link can determine the node admission data volume corresponding to the second information frame according to the first information frame, and use the minimum value of the node admission data volume determined by each routing device as the admission data volume of the target link, so that the second information frame can be transmitted losslessly on the target link. It should be understood that the sending method of each information frame carrying data messages is similar to that of the second information frame, so each information frame carrying data messages can achieve lossless transmission.
[0079] Secondly, when the data volume of the second information frame is close to or equal to the admitted data volume of the target link, the utilization rate of the network bandwidth is very high, and the throughput can be improved. It should be understood that the sending method of each information frame carrying the data message is similar to the second information frame, so the data volume of the data message in each information frame can be close to or equal to the admitted data volume of the target link.
[0080] Several methods for generating the first information frame are introduced below:
[0081] In an optional embodiment, step 302 includes: the first routing device generates a first control message according to the data volume of the first data message to be sent, and generates a first information frame according to the first control message. The first control message can be set in the head, middle or tail of the first information frame.
[0082] Specifically, the first information frame includes the first control message but does not include the data message. Alternatively, the first information frame includes the first control message and a plurality of data messages. The first control message includes the data volume of the first data message to be sent.
[0083] In another optional embodiment, the first routing device sends a third information frame to the second routing device through the target routing device in a third target frame period; receives second access information through the target routing device, and obtains a second access data message based on the second access information and the data message to be sent in the first target frame period; and generates a first information frame based on the second access data message and the first control message.
[0084] In this embodiment, the third target frame period is before the first target frame period and the start time of the third target frame period differs from the start time of the first target frame period by n frame periods. It should be understood that the first target frame period differs from the third target frame period by n-1 frame periods. The first target frame period is recorded as the i-th frame period, and the third target frame period is the i-n+1-th frame period.
[0085] When the second access information includes the node access data volume of the first target frame period, the first routing device may select the second access data message from the data messages to be sent in the first target frame period according to the node access data volume of the first target frame period. Without considering the remaining link bandwidth, the access data volume may indicate the maximum amount of data allowed to pass through the target link.
[0086] When the second access information includes the node access data volume and the link remaining bandwidth of the first target frame period, the first routing device may select the second access data message from the data messages to be sent in the first target frame period according to the node access data volume and the link remaining bandwidth of the first target frame period.
[0087] Since the data volume of the second access data message is less than or equal to the minimum node access data of all routing devices on the target link, the first information frame can pass through all routing devices on the target link without loss, reducing the possibility of packet loss. When the second access data message is close to or equal to the access data volume, the bandwidth is fully utilized to send data in the first target frame period to improve data throughput.
[0088] The following introduces various methods of obtaining the first access data message.
[0089] In an optional embodiment, step 305 includes: when the first admission information includes the node admission data volume, the first routing device selects the first admission data message from the first to-be-sent data message according to the node admission data volume. The size of the first admission data message does not exceed the node admission data volume.
[0090] In another optional embodiment, step 305 includes: when the first access information includes the node access data volume and the link remaining bandwidth, the first routing device determines the target access data volume according to the link remaining bandwidth; and selects the first access data message from the first to-be-sent data message according to the sum of the node access data volume and the target access data volume. For example, in the first access information, the node access data volume is 30MB, the link remaining bandwidth is 100MBps, and the sum of the node access data volume and the target access data volume is 130MB. The size of the first access data message does not exceed the sum of the node access data volume and the target access data volume.
[0091] In another optional embodiment, step 305 includes: when the first access information includes the node access data volume and the link remaining bandwidth, the first routing device determines the target access data volume according to the link remaining bandwidth, and selects the first access data message from the first to-be-sent data message and the remaining data messages of the fifth target frame period according to the sum of the node access data volume and the target access data volume.
[0092] In this embodiment, the fifth target frame period is adjacent to the second target frame period and the fifth target frame period is before the second target frame period. For example, the fifth target frame period is the i-th frame period, and the second target frame period is the i+1-th frame period. The remaining data message of the fifth target frame period is a data message obtained by removing the admission data message of the fifth target frame period from the to-be-sent data message of the fifth target frame period.
[0093] According to this implementation, when the number of admitted data packets in the i-th frame period is less than the number of data packets to be sent in the i-th frame period, the remaining data packets in the i-th frame period can be postponed to the i+1-th frame period. If the remaining link bandwidth received by the first routing device in the i+1-th frame period is not 0, the remaining link bandwidth can be used to send the remaining data packets in the i-th frame period or the data packets to be sent in the i+1-th frame period, thereby improving bandwidth utilization and increasing data throughput.
[0094] The following introduces various methods of generating the second information frame:
[0095] In another optional embodiment, step 306 includes: the first routing device obtains the data volume of the second data message to be sent, and the first routing device generates a second information frame according to the data volume of the first admission data message and the second data message to be sent.
[0096] In this embodiment, the fourth target frame period corresponding to the second to-be-sent message is after the second target frame period and the start time of the fourth target frame period differs from the start time of the second target frame period by n frame periods. It should be understood that the second target frame period differs from the fourth target frame period by n-1 frame periods. For example, the second target frame period is the i-th frame period, and the fourth target frame period is the n-1+i-th frame period. When there is a data message to be sent in the fourth target frame period, the first routing device obtains the data volume of the second to-be-sent data message, and the first routing device generates a second information frame according to the data volume of the first admission data message and the second to-be-sent data message.
[0097] Optionally, the first routing device generates the second information frame according to the data volume of the first access data message and the second data message to be sent, including: the first routing device generates the second control message according to the data volume of the second data message to be sent, and generates the second information frame according to the first access data message and the second control message. In this embodiment, the second information frame includes the first access data message and the second control message, and the second control message includes the data volume of the second data message to be sent. This provides an implementation method of the second information frame.
[0098] For ease of understanding, the following is an example to introduce several information frames:
[0099] For the information frames from the 1st frame period to the nth frame period, each information frame may include a control message but not a data message. Figure 4A As shown, the information frame 41 does not include other information except the control message 411.
[0100] For information frames from the n+1th frame period to the n+1th frame period before the last, each information frame may include a control message and a data message. Figure 4B As shown, the information frame 42 includes a control message 421 and a plurality of data messages 422 .
[0101] For the information frames of the last n frame periods, each information frame may include data messages but not control messages. Figure 4C As shown, the information frame 43 includes a number of data messages 431 .
[0102] It should be understood that Figure 3 In the illustrated embodiment, the first information frame may be Figure 4A The information frame shown or Figure 4B The information frame shown. Figure 3 The second information frame in the illustrated embodiment may be Figure 4B The information frame shown or Figure 4C The information frame shown.
[0103] In another optional embodiment, the above communication method further includes: when the data volume of the first data message to be sent is greater than the node admission data volume of the second target frame period, discarding the remaining data messages.
[0104] In this embodiment, the remaining data message is a data message obtained by removing the first admission data message from the first to-be-sent data message. In order to ensure the service quality of the data message in the later frame period, the remaining data message is discarded. After the last data message is sent, the data message that was not successfully sent is sent.
[0105] In another optional embodiment, the communication method further includes: after the first routing device generates a first information frame according to the data volume of the first data message to be sent, the first information frame is added to a sending queue; after the first routing device generates a second information frame according to the first access data message, the first routing device adds the second information frame to the sending queue.
[0106] In this embodiment, the sending queue can store one or more information frames. The number of information frames stored in the sending queue can be set according to actual conditions. The first routing device adds multiple information frames to the sending queue according to the order of the information frames, and sends an information frame in the sending queue in each frame period.
[0107] See also Figure 5In one example, the sending queue includes 6 information frames, namely information frame 51, information frame 52, information frame 53, information frame 54, information frame 55 and information frame 56. The sending queue is a first-in first-out (FIFO) queue. The information frames in the sending queue can be set to 4 states. For example, the state of information frame 51 is sending, the states of information frames 52, 53 and 54 are all receiving access, the state of information frame 55 is receiving completed, and the state of information frame 56 is receiving.
[0108] Among them, information frame 51, information frame 52, information frame 53 and information frame 54 include control messages, and information frame 55 and information frame 56 both include control messages and data messages.
[0109] It should be noted that if the collision process of the first information frame in the target link is different from the collision process of the second information frame in the target link, then the time when the first information frame arrives at the i-th routing device may be different from the time when the second information frame arrives at the i-th routing device, so that the node access data volume determined by the i-th routing device based on the first information frame and the node access data volume allocated by the i-th routing device to the second information frame may be inconsistent, and the i-th routing device may be the target routing device or the second routing device. To address this problem, in the communication method of the present application, the target routing device and the second routing device can adjust the sending time of the first information frame and the sending time of the second information frame, so that the time interval between the time when each routing device receives the first information frame and the time when it receives the second information frame remains unchanged.
[0110] See also Figure 6 , another embodiment of the communication method in the present application includes:
[0111] Step 601: A target routing device receives M information frames, where the M information frames include a first information frame sent by a first neighbor routing device and information frames sent by other routing devices.
[0112] In this embodiment, M information frames may correspond to a first sending frame period, the first information frame includes a first amount of data, and M is a positive integer.
[0113] Step 602: The target routing device determines the node access data volume corresponding to the first information frame according to the preset outbound interface capacity and the data volume included in the M information frames, and the node access data volume is less than or equal to the first data volume.
[0114] When the amount of data included in the M information frames is less than or equal to the preset output interface capacity, the node access data amount corresponding to each information frame is the data amount included in the information frame. When the amount of data included in the M information frames is greater than the preset output interface capacity, the target routing device can allocate a corresponding node access data amount to each information frame according to a preset rule. For example, a corresponding weight is set according to the amount of data of each information frame, and the node access data amount corresponding to each information frame is determined according to the weight and the output interface capacity. The data amount is negatively correlated with the weight value. Alternatively, the weight value corresponding to the amount of data that does not exceed the preset data amount threshold is 1 / M, and the weight value corresponding to the amount of data greater than the data amount threshold is less than 1 / M. The preset rules are not limited to the above examples.
[0115] Step 603: The target routing device modifies the data volume carried by the first information frame from the first data volume to the node access data volume.
[0116] Step 604: The target routing device determines a first sending frame period according to a receiving period of the first information frame.
[0117] Step 605: The target routing device sends the modified first information frame to the second neighbor routing device in the first sending frame period.
[0118] In an optional embodiment, the first neighbor routing device is a first routing device, and the second neighbor routing device is a second routing device. In another optional embodiment, the first neighbor routing device is a first routing device, and the second neighbor routing device is a routing device between the target routing device and the second routing device. In another optional embodiment, the first neighbor routing device is a routing device between the first routing device and the target routing device, and the second neighbor routing device is the second routing device.
[0119] Step 606: The target routing device receives the first admission information sent by the second neighbor routing device.
[0120] Optionally, the first access information includes the node access data volume, the node access data volume is the minimum value of the node access data volume determined by all routing devices of the target link according to the first information frame, and the target link is the communication link from the first routing device to the second routing device. Alternatively, the first access information includes the node access data volume and the link remaining bandwidth.
[0121] Step 607: The target routing device sends the first admission information to the first neighbor routing device.
[0122] Step 608: The target routing device receives the second information frame sent by the first neighbor routing device.
[0123] Step 609: The target routing device determines a second sending frame period according to a receiving period of the second information frame.
[0124] The start time of the second sending frame period differs from the start time of the first sending frame period by n frame periods, n periods are greater than or equal to the round-trip delay between the first routing device and the second routing device, and n is a positive integer.
[0125] Step 610: The target routing device sends a second information frame to a second neighbor routing device in a second sending frame period.
[0126] In this embodiment, the target routing device can adjust the data volume in the information frames of multiple routing devices to the corresponding node access data volume. When each routing device sends an information frame according to the node access data volume corresponding to the data volume of the information frame, the information frames sent by each routing device can pass through the target routing device without loss.
[0127] Secondly, the target routing device can keep the time interval between the transmission frame period of the first information frame and the transmission frame period of the second information frame unchanged. In this way, when the target routing device receives the first information frame and the second information frame, the collision situation between the first information frame and other information frames is the same as the collision situation between the second information frame and other information frames, so the second information frame passes through the target routing device without loss. Similarly, the time interval between the first information frame and the second information frame can remain unchanged on the target link, so that the second information frame can reach the second routing device without loss.
[0128] In an optional embodiment, step 602 includes:
[0129] Determine a reference data amount corresponding to each data amount according to the data amount included in the M information frames;
[0130] Determine a first target reference data volume and a second target reference data volume according to a preset output interface capacity;
[0131] When the reference data amount corresponding to the first data amount is less than or equal to the first target reference data amount, determining the node access data amount corresponding to the first information frame as the first data amount;
[0132] When the reference data amount corresponding to the first data amount is greater than or equal to the second target reference data amount, the target quantity is determined to be the number of reference data amounts greater than or equal to the second target reference data amount in all reference data amounts; the difference between the output interface capacity and the first target reference data amount is divided by the target quantity to obtain a quotient; and the node access data amount corresponding to the first information frame is determined to be the sum of the first target data amount and the quotient.
[0133] In this embodiment, the first target reference data amount is the maximum value of the reference data amounts that do not exceed the output interface capacity, and the second target reference data amount is the minimum value of the reference data amounts that exceed the output interface capacity.
[0134] See also Fig. 7A In one example, M=4. The four information frames include information frame 1, information frame 2, information frame 3 and information frame 4. The amount of data 701 included in information frame 1 is 30M, the amount of data 702 included in information frame 2 is 50M, the amount of data 703 included in information frame 3 is 80M, and the amount of data 704 included in information frame 4 is 100M.
[0135] See also Figure 7B , the reference data volume 705 corresponding to the data volume 701 is: 30M*4=120M.
[0136] See also Figure 7C , the reference data volume 706 corresponding to the data volume 702 is: 30M*4+(50M-30M)*3=180M.
[0137] See also Fig.7D The reference data volume 707 corresponding to the data volume 703 is: 30*4+(50M-30M)*3+(80M-50M)*2=240M.
[0138] See also Fig. 7E The reference data volume 708 corresponding to the data volume 704 is: 30*4+(50M-30M)*3+(80M-50M)*2+(100M-80M)*1=260M.
[0139] Take 200M as an example of the outbound interface capacity. The first target reference data volume is determined to be 180M, and the second target reference data volume is determined to be 240M. When the first information frame is information frame 2, the node access data volume corresponding to the first information frame is 50M. When the first information frame is information frame 3, the target quantity is 2, and the node access data volume corresponding to the first information frame = 50M + (200M-180M) / 2 = 60M.
[0140] The following is an introduction to the method of obtaining the reference data amount corresponding to each data amount. In an optional embodiment, determining the reference data amount corresponding to each data amount according to the data amount included in M information frames includes: arranging the data amounts included in the M information frames in ascending order; determining the data amount difference of adjacent data amounts according to the adjacent data amounts in the arranged M data amounts; determining the allocated data amount corresponding to each data amount difference; determining the reference data amount corresponding to other data amounts according to the minimum reference data amount and the allocated data amount corresponding to each data amount difference. Among them, the minimum reference data amount is the product of the minimum data amount and M, and the other data amounts are the data amounts obtained by removing the minimum data amount from the M data amounts.
[0141] Optionally, determining the allocated data amount corresponding to each data amount difference includes: selecting a data amount difference from all data amount differences; determining a target adjacent data amount corresponding to the selected data amount difference, the target adjacent data amount including a first target data amount and a second target data amount; when a total of N data amounts among the M data amounts are greater than or equal to the second target data amount, determining that the allocated data amount corresponding to the data amount difference is equal to the product of the data amount difference and N. The second target data amount is greater than the first target data amount, and N is a positive integer.
[0142] Specifically, the i-th data volume S i , the i-1th data volume S i-1 The difference between the i-1th data volume ΔS i-1 Satisfies the following formula:
[0143] ΔS i-1 =S i -S i-1 .
[0144] ΔS i-1 The corresponding amount of allocated data is: ΔS i-1 *N i .
[0145] N i is greater than or equal to S in M data volumes i The amount of data, i is a positive integer and 2≤i≤M.
[0146] Optionally, determining the reference data amount corresponding to other data amounts based on the minimum reference data amount and the allocated data amount corresponding to each data amount difference includes: selecting the data amount to be processed from the other data amounts; determining a data sub-set from M data amounts based on the data amount to be processed; determining a difference subset based on adjacent data amounts in the data sub-set; and determining the reference data amount corresponding to the data amount to be processed as the sum of the minimum reference data amount and the allocated data amounts corresponding to all the differences in the difference subset.
[0147] The data volume to be processed is any one of the other data volumes. Each data volume in the data sub-set is smaller than the data volume to be processed and the data volumes in the data sub-set are arranged in ascending order. The difference subset includes the difference between adjacent data volumes in the data sub-set.
[0148] When i=1, S′1=S1*M. S1 is the minimum data amount. S′1 is the minimum reference data amount.
[0149] When i≥2, the data volume and reference data volume satisfy the following formula:
[0150] S′ i -S′ i-1 =(S i -S i-1)*N i ;
[0151] S′ i is the reference data volume corresponding to the i-th data volume. i-1 is the reference data volume corresponding to the i-1th data volume. ΔS i-1 *N i is the allocated data volume corresponding to the i-th data volume.
[0152] In another optional embodiment, determining the reference data amount corresponding to each data amount according to the data amount included in the M information frames includes:
[0153] Step 1: Determine that the first data volume set includes M data volumes.
[0154] Step 2: Select a minimum data amount from the first data amount set, and determine a reference data amount corresponding to the minimum data amount.
[0155] Step 3: Remove the minimum data amount from the first data amount set to obtain a second data amount set.
[0156] Step 4: When the second data volume set includes at least one data volume, the first data volume set is updated to the second data volume set, and the process jumps to step 2 to step 3.
[0157] Step 5: When the second data volume set is empty, end.
[0158] In this embodiment, the reference data volume=minimum data volume*N', where N' is the number of data volumes in the first data volume set that are greater than or equal to the minimum data volume. This provides another method for obtaining the reference data volume corresponding to each data volume.
[0159] Several methods for keeping the time interval between the first information frame and the second information frame unchanged are introduced below:
[0160] In another optional embodiment, step 606 includes: the target routing device determines a first reference time period corresponding to the first information frame according to a preset single-hop delay and a reception time period of the first information frame; when the reception time period of the first information frame is different from the first reference time period, the target routing device shapes the reception time period of the first information frame into the first reference time period; the target routing device determines a first transmission frame period according to a preset first phase time difference and the first reference time period, the first phase time difference being a time difference between a start time of the first reference time period and a start time of the second reference time period;
[0161] Step 609 includes: the target routing device determines a second reference time period corresponding to the second information frame according to a preset single-hop delay and a receiving time period of the second information frame; when the receiving time period of the second information frame is different from the second reference time period, the target routing device shapes the receiving time period of the second information frame into a second reference time period, determines a second sending frame period according to a preset first phase time difference and a second reference time period, and a start time of the second reference time period differs from a start time of the first reference time period by n frame periods.
[0162] In this embodiment, shaping the reception period of the first information frame into the first reference period can be understood as: moving the reception period of the first information frame to align with the first reference period. Shaping the reception period of the second information frame into the second reference period can be understood as: moving the reception period of the second information frame to align with the second reference period. The above shaping method is also called a damper method.
[0163] The receiving period of the first information frame is recorded as [T1, T2], the first reference period is recorded as [T1', T2'], the phase time difference is ΔT, and the first sending frame period is [T1'+ΔT, T2'+ΔT].
[0164] The receiving period of the second information frame is [T3, T4], the second reference period is [T3', T4'], the phase time difference is ΔT, and the second sending frame period is [T3'+ΔT, T4'+ΔT].
[0165] Since the second reference period differs from the first reference period by n frame periods, the first transmission frame period differs from the second transmission frame period by n frame periods. Regardless of the time difference between T1 and T3, the above method can ensure that the time interval between the first information frame and the second information frame remains unchanged when passing through the target routing device.
[0166] The single-hop delay is greater than or equal to the sum of the first processing delay, scheduling delay, transmission delay, second processing delay and shaping delay. The first processing delay, scheduling delay, transmission delay, second processing delay and shaping delay can be preset according to actual conditions.
[0167] Specifically, the first processing delay is the frame processing delay of the first neighbor routing device, or the first processing delay is the sum of the frame processing delay of the first neighbor routing device and the maximum processing delay jitter of the first neighbor routing device.
[0168] The second processing delay is the frame processing delay of the target routing device. Alternatively, the second processing delay is the sum of the frame processing delay of the target routing device and the maximum processing delay jitter of the target routing device.
[0169] The transmission delay is the one-way transmission delay from the first neighbor routing device to the target routing device. Alternatively, the transmission delay is the sum of the one-way transmission delay from the first neighbor routing device to the target routing device and the maximum transmission delay jitter. The scheduling delay is the maximum delay of the first neighbor routing device scheduling information frame.
[0170] The following is an example of determining the first transmission frame period according to the reception period of the first information frame and the single-hop delay. Figure 8 , the single-hop delay 80 is the delay between the i-th routing device and the i+1-th routing device. The single-hop delay 80 includes the frame processing delay 801 of the i-th routing device, the scheduling delay 802 of the i-th routing device, the transmission delay 803, the frame processing delay 804 of the i+1-th routing device and the shaping delay 805 of the i+1-th routing device.
[0171] The i-th routing device adds the first information frame to the transmission queue in time period 81, the scheduling delay of the i-th router for the first information frame is time period 801, the one-way transmission delay of the i-th routing device sending the first information frame to the i+1-th routing device is time period 803, and the i+1-th routing device receives the first information frame in time period 82. When time period 82 is inconsistent with the first reference time period 83, the i+1-th routing device reshapes the receiving time period 82 of the first information frame into the first reference time period 83 according to the single-hop delay 80. Then, the first transmission frame period 85 is determined according to the first reference time period 83 and the preset phase time difference 84. Similarly, the second transmission frame period can be determined according to the receiving time period and the single-hop delay of the second information frame.
[0172] In another optional embodiment, step 606 includes: the target routing device determines the first reference frame period according to the preset second phase time difference and the reception period of the first information frame, and determines the first transmission frame period as the next frame period of the first reference frame period;
[0173] Step 609 includes: the target routing device determines a second reference frame period according to a preset second phase time difference and a receiving period of the second information frame, and determines the second sending frame period as a frame period next to the second reference frame period.
[0174] In this embodiment, the first sending frame period is the next frame period of the receiving time period of the first information frame. Since the second phase time difference is greater than or equal to the sum of the maximum processing delay jitter of the first neighbor routing device, the maximum processing delay jitter of the target routing device, and the maximum transmission delay jitter, when the target routing device determines the first reference frame period according to the preset second phase time difference and the receiving time period of the first information frame, it can prevent the delay jitter from causing the target routing device to find an erroneous reference frame period.
[0175] The following is an example of determining the first transmission frame period according to the reception period of the first information frame and the second phase time difference to illustrate the process, see Fig. 9 , the i-th routing device adds the first information frame to the transmission queue in time period 91, and the i+1-th routing device receives the first information frame in time period 92. The first reference frame period 93 is determined according to the second phase time difference 94 and time period 92, and the next frame period of the first reference frame period 93 is used as the first transmission frame period 95. Similarly, the second transmission frame period can be determined according to the reception time period of the second information frame and the second phase time difference 94.
[0176] See also Fig.10 , another embodiment of the communication method of the present application includes:
[0177] Step 1001: A second routing device receives a plurality of information frames, where the plurality of information frames include a first information frame sent by a first neighbor routing device and information frames sent by other routing devices.
[0178] In this embodiment, multiple information frames correspond to the same sending frame period.
[0179] Step 1002: The second routing device determines the node access data volume corresponding to the first information frame according to the preset output interface capacity and the data volume included in the multiple information frames, and the node access data volume is less than or equal to the data volume included in the first information frame.
[0180] The node admission data volume determined by each routing device is less than or equal to the node admission data volume determined by the previous routing device, so the node admission data volume determined by the second routing device is the minimum value of the node admission data volumes determined by all routing devices on the target link according to the first information frame. It should be noted that the first routing device does not perform the step of determining the node admission data volume according to the first information frame.
[0181] Step 1003: The second routing device sends first admission information to the first routing device through the target routing device, where the first admission information includes a node admission data volume.
[0182] Alternatively, the first admission information includes the node admission data volume and the link remaining bandwidth.
[0183] Step 1004: The second routing device receives the second information frame sent by the first routing device through the target routing device.
[0184] In this embodiment, when the first information frame passes through the routing device of the target link, the data volume of the first information frame remains unchanged or decreases, so the node admission data volume obtained by the second routing device according to the first information frame is the minimum value of the node admission data volume determined by all routing devices on the target link according to the first information frame. At the same time, the node admission data volume is the maximum admission data volume allowed to pass through the target link.
[0185] When the first routing device sends the second information frame according to the node's admitted data volume, the second information frame can pass the target link without loss. The amount of data carried by the second information frame is close to or equal to the maximum admitted data volume allowed by the target link, so the bandwidth can be fully utilized to improve the data throughput of the target link.
[0186] For ease of understanding, the communication method of the present application is introduced below using three routing devices as an example. Fig.11 , another embodiment of the communication method of the present application includes:
[0187] Step 1101: A first routing device generates a first information frame.
[0188] The first information frame includes the data volume of the first data message to be sent, and the first data message to be sent is a data message to be sent in the second target frame period.
[0189] Step 1102: The first routing device sends a first information frame including a data volume of a first data message to be sent to a target routing device.
[0190] Step 1103: The target routing device determines the node access data volume corresponding to the first information frame according to the data volume of the multiple information frames and the preset outbound interface capacity.
[0191] Step 1104: The target routing device determines a first sending frame period according to a receiving period of the first information frame.
[0192] Step 1105: The target routing device sends a first information frame including the node admission data volume to the second routing device in a first sending frame period.
[0193] Step 1106: The second routing device determines the node access data volume corresponding to the first information frame according to the data volume of the multiple information frames and the preset outbound interface capacity.
[0194] Step 1107: The second routing device sends the first admission information to the target routing device.
[0195] Step 1108: The target routing device sends the first admission information to the first routing device.
[0196] Step 1109: The first routing device generates a second information frame according to the first admission information and the first data message to be sent.
[0197] When the first admission information includes the node admission data volume, the data volume of the data message in the second information frame does not exceed the node admission data volume included in the first admission information.
[0198] When the first admission information includes the node admission data volume and the link remaining bandwidth, the data volume of the data message in the second information frame does not exceed the sum of the node admission data volume and the data volume corresponding to the link remaining bandwidth.
[0199] Step 1110: The first routing device sends the second information frame to the target routing device.
[0200] Step 1111: The target routing device determines a second sending frame period according to a receiving period of a second information frame.
[0201] Step 1112: The target routing device sends the second information frame to the second routing device in the second sending frame period.
[0202] In this embodiment, the target routing device and the second routing device can adjust the data volume in the information frames of the multiple routing devices to the corresponding node access data volume. When the first routing device sends the second information frame according to the first access information, the second information frame can reach the second routing device without loss.
[0203] Secondly, the target routing device can keep the time interval between the transmission frame period of the first information frame and the transmission frame period of the second information frame unchanged. In this way, when the target routing device receives the first information frame and the second information frame, the collision situation between the first information frame and other information frames is the same as the collision situation between the second information frame and other information frames, so the second information frame can reach the target routing device and the second routing device without loss.
[0204] The present application also provides a routing device that can implement the above communication method. The routing device of the present application is introduced below:
[0205] See also Fig.12 In one embodiment, the routing device 1200 in the present application includes a receiving unit 1201, a processing unit 1202 and a sending unit 1203;
[0206] The processing unit 1202 is used to obtain the data volume of the first data message to be sent, where the first data message to be sent is a data message to be sent in the second target frame period;
[0207] The processing unit 1202 is further configured to generate a first information frame according to the data volume of the first data message to be sent;
[0208] The sending unit 1203 is configured to send a first information frame to a second routing device through a target routing device in a first target frame period, where the first target frame period is before the second target frame period and a start time of the second target frame period differs from a start time of the first target frame period by n frame periods, where n frame periods are greater than or equal to a round-trip delay between the first routing device and the second routing device, and n is a positive integer;
[0209] The receiving unit 1201 is configured to receive first admission information from a second routing device through a target routing device, wherein the node admission data volume included in the first admission information is a minimum value among the node admission data volumes determined by all routing devices on the target link according to the first information frame, and the target link is a communication link between the first routing device and the second routing device;
[0210] The processing unit 1202 is further configured to obtain a first access data message according to the first access information and the first to-be-sent data message;
[0211] The processing unit 1202 is further configured to generate a second information frame according to the first access data message;
[0212] The sending unit 1203 is further configured to send a second information frame to the second routing device through the target routing device in a second target frame period.
[0213] In an optional embodiment, the processing unit 1202 is specifically configured for the first routing device to generate a first control message according to the data volume of the first data message to be sent, and to generate a first information frame according to the first control message.
[0214] In another alternative embodiment,
[0215] The sending unit 1203 is further configured to send a third information frame to the second routing device through the target routing device in a third target frame period, where the third target frame period is before the first target frame period and a start time of the third target frame period differs from a start time of the first target frame period by n frame periods;
[0216] The receiving unit 1201 is further configured to receive second admission information through a target routing device, where the second admission information includes a node admission data volume of a first target frame period;
[0217] The processing unit 1202 is further configured to obtain a second access data message according to the second access information and the data message to be sent in the first target frame period; and generate a first information frame according to the second access data message and the first control message.
[0218] In another optional embodiment, the first admission information further includes a link remaining bandwidth, where the link remaining bandwidth is a minimum value of node remaining bandwidths determined by all routing devices on the target link according to the first information frame;
[0219] The processing unit 1202 is specifically configured to determine a target access data volume according to the remaining link bandwidth; and select a first access data message from the first to-be-sent data message according to the sum of the node access data volume and the target access data volume included in the first access information.
[0220] In another optional embodiment, the processing unit 1202 is also used to obtain the data volume of the second data message to be sent; and to generate a second information frame according to the data volume of the first access data message and the second data message to be sent, and the fourth target frame period corresponding to the second message to be sent is after the second target frame period and the starting time of the fourth target frame period differs from the starting time of the second target frame period by n frame periods.
[0221] In another optional embodiment, the processing unit 1202 is specifically configured to generate a second control message according to the data volume of the second data message to be sent; and generate a second information frame according to the first access data message and the second control message.
[0222] In another optional embodiment, the processing unit 1202 is also used to discard the remaining data packets when the data amount of the first data packet to be sent is greater than the node access data amount included in the first access information, and the remaining data packets are the data packets obtained by removing the first access data packets from the first data packet to be sent.
[0223] In another optional embodiment, the processing unit 1202 is further configured to add the first information frame to a sending queue, and add the second information frame to a sending queue.
[0224] In this embodiment, the routing device 1200 can implement Figure 3 The steps in the illustrated embodiment are performed by the first routing device. Fig.12 The explanation of terms in the illustrated embodiments, the steps performed by each unit and the beneficial effects can be found in Figure 3 The corresponding description in the illustrated embodiment.
[0225] See also Fig.13 In another embodiment, the routing device 1300 of the present application includes:
[0226] The receiving unit 1301 is configured to receive M information frames, where the M information frames include a first information frame sent by a first neighbor routing device and information frames sent by other routing devices, where the first information frame includes a first data amount, and M is a positive integer;
[0227] The processing unit 1302 is used to determine the node admission data amount corresponding to the first information frame according to the preset output interface capacity and the data amount included in the M information frames, and the node admission data amount is less than or equal to the first data amount;
[0228] The processing unit 1302 is further configured to modify the data amount carried by the first information frame from the first data amount to the node admission data amount;
[0229] The processing unit 1302 is further configured to determine a first sending frame period according to a receiving period of the first information frame;
[0230] The sending unit 1303 is configured to send the modified first information frame to the second neighbor routing device in the first sending frame period;
[0231] The receiving unit 1301 is further configured to receive first admission information sent by a second neighbor routing device, where the node admission data volume included in the first admission information is a minimum value of the node admission data volumes determined by all routing devices on the target link according to the first information frame, and the target link is a communication link from the first routing device to the second routing device;
[0232] The sending unit 1303 is further configured to send the first admission information to the first neighbor routing device;
[0233] The receiving unit 1301 is further configured to receive a second information frame sent by the first neighbor routing device;
[0234] The processing unit 1302 is further configured to determine a second sending frame period according to a receiving period of the second information frame;
[0235] The sending unit 1303 is also used to send the second information frame to the second neighbor routing device in the second sending frame period, the start time of the second sending frame period differs from the start time of the first sending frame period by n frame periods, n periods are greater than or equal to the round-trip delay between the first routing device and the second routing device, and n is a positive integer.
[0236] In another alternative embodiment,
[0237] The processing unit 1302 is specifically used to determine the reference data amount corresponding to each data amount according to the data amount included in the M information frames; determine the first target reference data amount and the second target reference data amount according to the preset output interface capacity, the first target reference data amount is the maximum value of the reference data amounts that do not exceed the output interface capacity, and the second target reference data amount is the minimum value of the reference data amounts that are greater than the output interface capacity; when the reference data amount corresponding to the first data amount is less than or equal to the first target reference data amount, determine the node access data amount corresponding to the first information frame as the first data amount; when the reference data amount corresponding to the first data amount is greater than or equal to the second target reference data amount, determine the target number as the number of reference data amounts greater than or equal to the second target reference data amount in all reference data amounts; divide the difference between the output interface capacity and the first target reference data amount by the target number to obtain a quotient; determine the first target data amount corresponding to the first target reference data amount; determine the node access data amount corresponding to the first information frame as the sum of the first target data amount and the quotient.
[0238] In another optional embodiment, the processing unit 1302 is specifically used to arrange the data amounts included in the M information frames in order from small to large; determine the data amount difference of adjacent data amounts based on the adjacent data amounts in the arranged M data amounts; determine the allocated data amount corresponding to each data amount difference; determine the reference data amount corresponding to other data amounts based on the minimum reference data amount and the allocated data amount corresponding to each data amount difference, the minimum reference data amount being the product of the minimum data amount and M, and the other data amount being the data amount obtained by dividing the minimum data amount from the M data amounts.
[0239] In another optional embodiment, the processing unit 1302 is specifically used to select a data amount difference from all data amount differences; determine a target adjacent data amount corresponding to the selected data amount difference, the target adjacent data amount including a first target data amount and a second target data amount greater than the first target data amount; when a total of N data amounts among the M data amounts are greater than or equal to the second target data amount, determine that the allocated data amount corresponding to the data amount difference is equal to the product of the data amount difference and N.
[0240] In another optional embodiment, the processing unit 1302 is specifically used to select a data amount to be processed from other data amounts, where the data amount to be processed is any one of the other data amounts; determine a data sub-set from M data amounts according to the data amount to be processed, where each data amount in the data sub-set is smaller than the data amount to be processed and each data amount in the data sub-set is arranged in order from small to large; determine a difference subset according to adjacent data amounts in the data sub-set, where the difference subset includes differences between adjacent data amounts in the data sub-set; and determine that a reference data amount corresponding to the data amount to be processed is the sum of the minimum reference data amount and the allocated data amounts corresponding to all differences in the difference subset.
[0241] In another alternative embodiment,
[0242] The processing unit 1302 is specifically used to determine a first reference time period corresponding to the first information frame according to a preset single-hop delay and a receiving time period of the first information frame; when the receiving time period of the first information frame is different from the first reference time period, shaping the receiving time period of the first information frame into the first reference time period; determining a first sending frame period according to a preset first phase time difference and the first reference time period, the first phase time difference being the time difference between the starting moment of the first reference time period and the starting moment of the second reference time period; and, determining a second reference time period corresponding to the second information frame according to the preset single-hop delay and the receiving time period of the second information frame; when the receiving time period of the second information frame is different from the second reference time period, shaping the receiving time period of the second information frame into the second reference time period, determining a second sending frame period according to the preset first phase time difference and the second reference time period, the starting moment of the second reference time period differing from the starting moment of the first reference time period by n frame periods.
[0243] The single-hop delay is greater than or equal to the sum of the first processing delay, the scheduling delay, the transmission delay, the second processing delay and the shaping delay.
[0244] In another alternative embodiment,
[0245] The processing unit 1302 is specifically used to determine the first reference frame period according to the preset second phase time difference and the receiving time period of the first information frame, and determine the first sending frame period as the next frame period of the first reference frame period; and determine the second reference frame period according to the preset second phase time difference and the receiving time period of the second information frame, and determine the second sending frame period as the next frame period of the second reference frame period, and the second phase time difference is greater than or equal to the sum of the maximum processing delay jitter of the first neighbor routing device, the maximum processing delay jitter of the target routing device, and the maximum transmission delay jitter.
[0246] In this embodiment, the routing device 1300 can implement Figure 6 The steps in the illustrated embodiment are performed by the target routing device. Fig.13 The explanation of terms in the illustrated embodiments, the steps performed by each unit and the beneficial effects can be found in Figure 6 The corresponding description in the illustrated embodiment.
[0247] See also Fig.14 In another embodiment, the routing device 1400 of the present application includes:
[0248] The receiving unit 1401 is configured to receive a plurality of information frames, where the plurality of information frames include a first information frame sent by a first neighbor routing device and information frames sent by other routing devices;
[0249] The processing unit 1402 is used to determine the node admission data amount corresponding to the first information frame according to the preset output interface capacity and the data amount included in the multiple information frames, the node admission data amount is the minimum value of the node admission data amounts determined by all routing devices on the target link according to the first information frame, and the target link is the communication link between the first routing device and the second routing device;
[0250] The processing unit 1402 is configured to send first admission information to the first routing device through the target routing device, where the first admission information includes a node admission data volume;
[0251] The sending unit 1403 is configured to receive, through the target routing device, a second information frame sent by the first routing device.
[0252] In an optional embodiment, the first admission information further includes remaining link bandwidth.
[0253] In this embodiment, the routing device 1400 can implement Fig.10 The steps in the illustrated embodiment are performed by the second routing device. Fig.14 The explanation of terms in the illustrated embodiments, the steps performed by each unit and the beneficial effects can be found in Fig.10 The corresponding description in the illustrated embodiment.
[0254] The following is an introduction to the routing device of the present application from the perspective of hardware devices. Fig.15 An embodiment of a routing device 1500 in the present application includes: a processor 1501 , a memory 1502 and a network interface 1503 connected via a bus 1504 .
[0255] In this embodiment, the memory 1502 is used to store information such as programs, instructions or data. By calling the program or instruction stored in the memory 1502, the processor 1501 is used to execute Figure 3 In the embodiment shown, the steps performed by the first routing device, Figure 6 In the embodiment shown, the steps performed by the target routing device or Figure 8 The steps in the illustrated embodiment are performed by the second routing device.
[0256] It should be understood that the processor 1501 mentioned in this embodiment can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0257] It should also be understood that the memory 1502 mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DRRAM).
[0258] The network interface 1503 may be used to receive information frames or send information frames. The information frames may include control messages and / or data messages.
[0259] It should be noted that the information interaction, execution process, etc. between the modules / units of the above-mentioned device are based on the same concept as the method embodiment of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown above in the present application, and will not be repeated here.
[0260] The present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer is enabled to execute the communication method in the above embodiment or an optional embodiment.
[0261] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the communication method in the above-mentioned embodiment or optional embodiment.
[0262] The present application also provides a chip system, which includes a processor and a memory coupled to each other. The memory is used to store computer programs or instructions, and the processing unit is used to execute the computer programs or instructions stored in the memory, so that the routing device executes the steps performed by the first routing device, the target routing device or the second routing device in the above embodiment. Optionally, the memory is a memory in the chip, such as a register, a cache, etc. The memory can also be a memory located outside the chip in the site, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), etc. The processor mentioned in any of the above places can be a general-purpose central processing unit, a microprocessor, an application specific integrated circuit (ASIC) or one or more integrated circuits for implementing the above communication method.
[0263] It should also be noted that the device embodiments described above are only schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.
[0264] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, U disk, mobile hard disk, ROM, RAM, disk or optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method of each embodiment of the present application.
[0265] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0266] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0267] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A communication method, characterized in that: include: The target routing device receives M information frames, where the M information frames include a first information frame sent by a first neighbor routing device and information frames sent by other routing devices, where the first information frame includes a first data volume, and M is a positive integer; The target routing device determines, according to a preset outbound interface capacity and the data volume included in the M information frames, a node admission data volume corresponding to the first information frame, the node admission data volume being less than or equal to the first data volume; The target routing device modifies the data volume carried by the first information frame from the first data volume to the node admission data volume; The target routing device determines a first sending frame period according to a receiving period of the first information frame; The target routing device sends the modified first information frame to the second neighbor routing device in the first sending frame period; The target routing device receives the first admission information sent by the second neighbor routing device, where the node admission data volume included in the first admission information is the minimum value of the node admission data volumes determined by all routing devices of the target link according to the first information frame, and the target link is a communication link from the first routing device to the second routing device; The target routing device sends the first admission information to the first neighbor routing device; The target routing device receives a second information frame sent by the first neighbor routing device; The target routing device determines a second sending frame period according to a receiving period of the second information frame; The target routing device sends the second information frame to the second neighbor routing device in the second sending frame period, the start time of the second sending frame period differs from the start time of the first sending frame period by n frame periods, the n frame periods are greater than or equal to the round-trip delay between the first routing device and the second routing device, and n is a positive integer.
2. The method according to claim 1, characterized in that: The target routing device determines the node access data volume corresponding to the first information frame according to the preset outbound interface capacity and the data volume included in the M information frames, including: Determine a reference data amount corresponding to each data amount according to the data amount included in the M information frames; Determine a first target reference data volume and a second target reference data volume according to a preset output interface capacity, wherein the first target reference data volume is a maximum value among reference data volumes that do not exceed the output interface capacity, and the second target reference data volume is a minimum value among reference data volumes that are greater than the output interface capacity; When the reference data amount corresponding to the first data amount is less than or equal to the first target reference data amount, determining the node access data amount corresponding to the first information frame to be the first data amount; When the reference data amount corresponding to the first data amount is greater than or equal to the second target reference data amount, the target quantity is determined to be the number of reference data amounts greater than or equal to the second target reference data amount in all reference data amounts; the difference between the output interface capacity and the first target reference data amount is divided by the target quantity to obtain a quotient; the first target data amount corresponding to the first target reference data amount is determined; and the node access data amount corresponding to the first information frame is determined to be the sum of the first target data amount and the quotient.
3. The method according to claim 2, characterized in that Determining the reference data amount corresponding to each data amount according to the data amount included in the M information frames comprises: Arrange the data amounts included in the M information frames in ascending order; Determine the data volume difference of adjacent data volumes according to adjacent data volumes in the arranged M data volumes; Determine the allocated data volume corresponding to each data volume difference; The reference data amounts corresponding to other data amounts are determined based on the minimum reference data amount and the allocated data amount corresponding to each data amount difference, wherein the minimum reference data amount is the product of the minimum data amount and M, and the other data amounts are the data amounts obtained by dividing the minimum data amount by the M data amounts.
4. The method according to claim 3, characterized in that Determining the allocated data amount corresponding to each data amount difference includes: Selecting a data volume difference from all data volume differences; Determine a target adjacent data amount corresponding to the selected data amount difference, the target adjacent data amount comprising a first target data amount and a second target data amount greater than the first target data amount; When a total of N data amounts among the M data amounts are greater than or equal to the second target data amount, it is determined that the allocated data amount corresponding to the data amount difference is equal to the product of the data amount difference and N.
5. The method according to claim 3, characterized in that: Determining the reference data amounts corresponding to other data amounts according to the minimum reference data amount and the allocated data amount corresponding to each data amount difference includes: Selecting a to-be-processed data volume from other data volumes, the to-be-processed data volume being any one of the other data volumes; Determine a data sub-set from the M data amounts according to the data amount to be processed, each data amount in the data sub-set is smaller than the data amount to be processed and each data amount in the data sub-set is arranged in ascending order; Determine a difference subset according to adjacent data amounts in the data sub-set, wherein the difference subset includes differences between adjacent data amounts in the data sub-set; The reference data amount corresponding to the to-be-processed data amount is determined to be the sum of the minimum reference data amount and the allocated data amounts corresponding to all the differences in the difference subset.
6. The method according to any one of claims 1 to 5, characterized in that The target routing device determines the first sending frame period according to the receiving period of the first information frame, including: the target routing device determines the first reference period corresponding to the first information frame according to the preset single-hop delay and the receiving period of the first information frame; when the receiving period of the first information frame is different from the first reference period, the target routing device shapes the receiving period of the first information frame into the first reference period; the target routing device determines the first sending frame period according to the preset first phase time difference and the first reference period, the first phase time difference being the time difference between the start time of the first reference period and the start time of the first sending frame period; The target routing device determines the second sending frame period according to the receiving time period of the second information frame, including: the target routing device determines the second reference time period corresponding to the second information frame according to the preset single-hop delay and the receiving time period of the second information frame; when the receiving time period of the second information frame is different from the second reference time period, the target routing device shapes the receiving time period of the second information frame into the second reference time period, determines the second sending frame period according to the preset first phase time difference and the second reference time period, and the starting time of the first reference time period differs from the starting time of the second reference time period by n frame periods.
7. The method according to any one of claims 1 to 5, characterized in that The target routing device determines the first sending frame period according to the receiving period of the first information frame, including: the target routing device determines the first reference frame period according to the preset second phase time difference and the receiving period of the first information frame, and determines the first sending frame period as the next frame period of the first reference frame period; The target routing device determines the second sending frame period according to the receiving time period of the second information frame, including: the target routing device determines the second reference frame period according to a preset second phase time difference and the receiving time period of the second information frame, and determines the second sending frame period as the next frame period of the second reference frame period, and the second phase time difference is greater than or equal to the maximum processing delay jitter of the first neighbor routing device, the maximum processing delay jitter of the target routing device, and the sum of the maximum transmission delay jitter.
8. A communication method, characterized in that: include: The first routing device obtains a data volume of a first data message to be sent, where the first data message to be sent is a data message to be sent in a second target frame period; The first routing device generates a first information frame according to the data volume of the first data message to be sent; The first routing device sends the first information frame to the second routing device through the target routing device in a first target frame period, the first target frame period is before the second target frame period, and the start time of the second target frame period differs from the start time of the first target frame period by n frame periods, the n frame periods are greater than or equal to the round-trip delay between the first routing device and the second routing device, and n is a positive integer; The first routing device receives first admission information from the second routing device through the target routing device, wherein the node admission data volume included in the first admission information is a minimum value among the node admission data volumes determined by all routing devices on the target link according to the first information frame, and the target link is a communication link between the first routing device and the second routing device; The first routing device acquires a first admission data message according to the first admission information and the first to-be-sent data message; The first routing device generates a second information frame according to the first admission data message; The first routing device sends the second information frame to the second routing device through the target routing device in the second target frame period.
9. The method according to claim 8, characterized in that The first routing device generating a first information frame according to the data volume of the first data message to be sent includes: The first routing device generates a first control message according to the data volume of the first data message to be sent; The first routing device generates a first information frame according to the first control message.
10. The method according to claim 9, characterized in that The method further includes: the first routing device sends a third information frame to the second routing device through the target routing device in a third target frame period, the third target frame period is before the first target frame period and the start time of the third target frame period differs from the start time of the first target frame period by n frame periods; the first routing device receives second admission information from the second routing device through the target routing device, the second admission information includes the node admission data volume of the first target frame period; the first routing device obtains a second admission data message according to the second admission information and the data message to be sent in the first target frame period; The first routing device generating a first information frame according to the first control message includes: the first routing device generating a first information frame according to the second access data message and the first control message.
11. The method according to any one of claims 8 to 10, characterized in that The first admission information further includes a link remaining bandwidth, where the link remaining bandwidth is a minimum value among node remaining bandwidths determined by all routing devices on the target link according to the first information frame; The first routing device acquiring the first admission data message according to the first admission information and the first to-be-sent data message includes: The first routing device determines a target access data volume according to the remaining link bandwidth, and selects a first access data message from the first to-be-sent data messages according to the sum of the node access data volume included in the first access information and the target access data volume.
12. The method according to any one of claims 8 to 10, characterized in that The method further includes: the first routing device acquires the data volume of the second data message to be sent, the fourth target frame period corresponding to the second data message to be sent is after the second target frame period and the start time of the fourth target frame period differs from the start time of the second target frame period by n frame periods; The first routing device generating the second information frame according to the first admission data message includes: the first routing device generating the second information frame according to the data volume of the first admission data message and the second data message to be sent.
13. The method according to claim 12, characterized in that The first routing device generating a second information frame according to the data amount of the first admission data message and the second to-be-sent data message includes: The first routing device generates a second control message according to the data volume of the second data message to be sent; The first routing device generates a second information frame according to the first admission data message and the second control message.
14. The method according to any one of claims 8 to 10, characterized in that The method further comprises: When the data volume of the first data message to be sent is greater than the node admission data volume included in the first admission information, the remaining data message is discarded. The remaining data message is a data message obtained by removing the first admission data message from the first data message to be sent.
15. The method according to any one of claims 8 to 10, characterized in that The method further comprises: After the first routing device generates a first information frame according to the data volume of the first data message to be sent, the first routing device adds the first information frame to a sending queue; After the first routing device generates a second information frame according to the first admission data message, the first routing device adds the second information frame to the sending queue.
16. A communication method, characterized in that: include: The second routing device receives a plurality of information frames, wherein the plurality of information frames include a first information frame sent by a first neighbor routing device and information frames sent by other routing devices; The second routing device determines the node admission data volume corresponding to the first information frame according to the preset outbound interface capacity and the data volume included in the multiple information frames, the node admission data volume being the minimum value of the node admission data volumes determined by all routing devices on the target link according to the first information frame, and the target link being the communication link between the first routing device and the second routing device; The second routing device sends first admission information to the first routing device through the target routing device, where the first admission information includes the node admission data volume; The second routing device receives the second information frame sent by the first routing device through the target routing device.
17. A routing device, characterized in that: include: A receiving unit, configured to receive M information frames, wherein the M information frames include a first information frame sent by a first neighbor routing device and information frames sent by other routing devices, the first information frame includes a first data amount, and M is a positive integer; a processing unit, configured to determine a node admission data amount corresponding to the first information frame according to a preset outbound interface capacity and a data amount included in the M information frames, wherein the node admission data amount is less than or equal to the first data amount; The processing unit is further configured to modify the data volume carried by the first information frame from the first data volume to the node admission data volume; The processing unit is further configured to determine a first sending frame period according to a receiving period of the first information frame; A sending unit, configured to send the modified first information frame to a second neighbor routing device in the first sending frame period; The receiving unit is further configured to receive first admission information sent by the second neighbor routing device, wherein the node admission data volume included in the first admission information is a minimum value among the node admission data volumes determined by all routing devices on the target link according to the first information frame, and the target link is a communication link from the first routing device to the second routing device; The sending unit is further configured to send the first admission information to a first neighbor routing device; The receiving unit is further configured to receive a second information frame sent by the first neighbor routing device; The processing unit is further configured to determine a second sending frame period according to a receiving period of the second information frame; The sending unit is further used to send the second information frame to the second neighbor routing device in the second sending frame period, the start time of the second sending frame period differs from the start time of the first sending frame period by n frame periods, the n frame periods are greater than or equal to the round-trip delay between the first routing device and the second routing device, and n is a positive integer.
18. The routing device according to claim 17, characterized in that: The processing unit is specifically configured to determine a reference data amount corresponding to each data amount according to the data amount included in the M information frames; determine a first target reference data amount and a second target reference data amount according to a preset output interface capacity, wherein the first target reference data amount is a maximum value among the reference data amounts that do not exceed the output interface capacity, and the second target reference data amount is a minimum value among the reference data amounts that are greater than the output interface capacity; When the reference data amount corresponding to the first data amount is less than or equal to the first target reference data amount, the node access data amount corresponding to the first information frame is determined to be the first data amount; when the reference data amount corresponding to the first data amount is greater than or equal to the second target reference data amount, the target amount is determined to be the number of reference data amounts greater than or equal to the second target reference data amount in all reference data amounts; Dividing the difference between the output interface capacity and the first target reference data volume by the target volume to obtain a quotient; determining a first target data amount corresponding to the first target reference data amount; The node access data volume corresponding to the first information frame is determined to be the sum of the first target data volume and the quotient.
19. The routing device according to claim 18, characterized in that: The processing unit is specifically used to arrange the data amounts included in the M information frames in ascending order; determine the data amount difference of adjacent data amounts according to the adjacent data amounts in the arranged M data amounts; determine the allocated data amount corresponding to each data amount difference; determine the reference data amount corresponding to other data amounts according to the minimum reference data amount and the allocated data amount corresponding to each data amount difference, the minimum reference data amount is the product of the minimum data amount and M, and the other data amount is the data amount obtained by dividing the minimum data amount from the M data amounts.
20. The routing device according to claim 19, characterized in that: The processing unit is specifically used to select a data volume difference from all data volume differences; determine a target adjacent data volume corresponding to the selected data volume difference, the target adjacent data volume including a first target data volume and a second target data volume greater than the first target data volume; when a total of N data volumes among the M data volumes are greater than or equal to the second target data volume, determine that the allocated data volume corresponding to the data volume difference is equal to the product of the data volume difference and N.
21. The routing device according to claim 19, characterized in that: The processing unit is specifically used to select a data volume to be processed from other data volumes, the data volume to be processed being any one of the other data volumes; determining a data sub-set from the M data volumes according to the data volume to be processed, each data volume in the data sub-set being smaller than the data volume to be processed and each data volume in the data sub-set being arranged in ascending order; Determine a difference subset according to adjacent data amounts in the data sub-set, wherein the difference subset includes differences between adjacent data amounts in the data sub-set; The reference data amount corresponding to the to-be-processed data amount is determined to be the sum of the minimum reference data amount and the allocated data amounts corresponding to all the differences in the difference subset.
22. The routing device according to any one of claims 17 to 21, characterized in that: The processing unit is specifically configured to determine a first reference time period corresponding to the first information frame according to a preset single-hop delay and a reception time period of the first information frame; When the reception period of the first information frame is different from the first reference period, shaping the reception period of the first information frame into the first reference period; Determine a first transmission frame period according to a preset first phase time difference and the first reference period, wherein the first phase time difference is a time difference between a start time of the first reference period and a start time of the first transmission frame period; and, determining a second reference time period corresponding to the second information frame according to a preset single-hop delay and a reception time period of the second information frame; When the receiving time period of the second information frame is different from the second reference time period, the receiving time period of the second information frame is shaped into the second reference time period, and the second sending frame period is determined according to the preset first phase time difference and the second reference time period, and the starting time of the second reference time period differs from the starting time of the first reference time period by n frame periods.
23. The routing device according to any one of claims 17 to 21, characterized in that: The processing unit is specifically configured to determine a first reference frame period according to a preset second phase time difference and a receiving period of the first information frame, and determine a first sending frame period as a frame period next to the first reference frame period; And determine the second reference frame period according to the preset second phase time difference and the receiving time period of the second information frame, determine the second sending frame period as the next frame period of the second reference frame period, and the second phase time difference is greater than or equal to the sum of the maximum processing delay jitter of the first neighbor routing device, the maximum processing delay jitter of the target routing device, and the maximum transmission delay jitter.
24. A routing device, characterized in that: The routing device serves as a first routing device, and the routing device includes: A processing unit, configured to obtain a data volume of a first data message to be sent, where the first data message to be sent is a data message to be sent in a second target frame period; The processing unit is further configured to generate a first information frame according to the data volume of the first data message to be sent; a sending unit, configured to send the first information frame to a second routing device through a target routing device in a first target frame period, wherein the first target frame period is before the second target frame period and a start time of the second target frame period differs from a start time of the first target frame period by n frame periods, wherein the n frame periods are greater than or equal to a round trip delay between the first routing device and the second routing device, and n is a positive integer; a receiving unit, configured to receive first admission information from the second routing device through the target routing device, wherein the node admission data volume included in the first admission information is a minimum value among the node admission data volumes determined by all routing devices on the target link according to the first information frame, and the target link is a communication link between the first routing device and the second routing device; The processing unit is further configured to obtain a first access data message according to the first access information and the first to-be-sent data message; The processing unit is further configured to generate a second information frame according to the first access data message; The sending unit is further configured to send the second information frame to the second routing device through the target routing device in the second target frame period.
25. The routing device according to claim 24, characterized in that: The processing unit is specifically configured to generate a first control message according to the data volume of the first data message to be sent, and generate a first information frame according to the first control message.
26. The routing device according to claim 25, characterized in that: The sending unit is further used to send a third information frame to the second routing device through the target routing device in a third target frame period, the third target frame period is before the first target frame period and the start time of the third target frame period differs from the start time of the first target frame period by n frame periods; The receiving unit is further configured to receive second admission information through the target routing device, wherein the second admission information includes a node admission data volume of a first target frame period; The processing unit is further used to obtain a second access data message according to the second access information and the data message to be sent in the first target frame period; and generate a first information frame according to the second access data message and the first control message.
27. The routing device according to any one of claims 24 to 26, characterized in that: The first admission information also includes a link remaining bandwidth, where the link remaining bandwidth is a minimum value of node remaining bandwidths determined by all routing devices on the target link according to the first information frame; The processing unit is specifically configured to determine a target access data volume according to the remaining bandwidth of the link; and select a first access data message from the first to-be-sent data message according to the sum of the node access data volume included in the first access information and the target access data volume.
28. The routing device according to any one of claims 24 to 26, characterized in that: The processing unit is also used to obtain the data volume of the second data message to be sent; and generate a second information frame according to the data volume of the first access data message and the second data message to be sent, wherein the fourth target frame period corresponding to the second message to be sent is after the second target frame period and the start time of the fourth target frame period differs from the start time of the second target frame period by n frame periods.
29. The routing device according to claim 28, characterized in that: The processing unit is specifically configured to generate a second control message according to the data volume of the second data message to be sent; and generate a second information frame according to the first access data message and the second control message.
30. The routing device according to any one of claims 24 to 26, characterized in that: The processing unit is also used to discard the remaining data packets when the data amount of the first data packet to be sent is greater than the node admission data amount included in the first admission information. The remaining data packets are the data packets obtained by removing the first admission data packets from the first data packet to be sent.
31. The routing device according to any one of claims 24 to 26, characterized in that: The processing unit is further configured to add the first information frame to a sending queue, and add the second information frame to the sending queue.
32. A routing device, characterized in that: The routing device serves as a second routing device, and the routing device includes: A receiving unit, configured to receive a plurality of information frames, wherein the plurality of information frames include a first information frame sent by a first neighbor routing device and information frames sent by other routing devices; a processing unit, configured to determine, according to a preset outbound interface capacity and a data volume included in the plurality of information frames, a node admission data volume corresponding to the first information frame, wherein the node admission data volume is a minimum value among node admission data volumes determined by all routing devices on a target link according to the first information frame, and the target link is a communication link between the first routing device and the second routing device; The processing unit is further configured to send first admission information to the first routing device through a target routing device, wherein the first admission information includes the node admission data volume; A sending unit is used to receive a second information frame sent by the first routing device through the target routing device.
33. A computer-readable storage medium comprising instructions, characterized in that: When the method is executed on a computer, the computer is caused to execute the communication method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Routing method
CN101119307A
Admittance method, device and communication system
CN101702821A
Scheduling and admission control of packet data traffic
EP1069736A1
