A service forwarding method and network device
By setting cycles and thresholds in the MPLS network, priority is given to forwarding data packets of low-latency services, the problem that the MPLS network cannot accurately control the delay time, the service quality requirements of low-latency services are realized, and the transmission delay of low-latency services is ensured. Transmission efficiency of other services.
Patent Information
- Application Number
- CN202110332237.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-06-16
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2037-06-16
AI Technical Summary
The existing multi-protocol label switching (MPLS) network cannot accurately control the delay time when ensuring low-latency service transmission, resulting in the inability to meet the service quality requirements of low-latency services.
By setting period (T1) and thresholds in network equipment, priority is given to forward data packets of low-latency services, and ensuring that the data volume reaches the threshold during the period, so as to control the transmission delay of low-latency services and meet the service quality requirements of low-latency services.
Accurate delay control for low-latency services is realized, ensuring that the transmission delay of low-latency services is lower than the minimum allowable value, meeting the service quality requirements of low-latency services, and avoiding affecting the transmission of other services.
Smart Images

Figure CN113518031B_ABST
Abstract
Description
[0001] This application is a divisional application of a Chinese patent application filed with the China Patent Office on June 16, 2017, with application number CN 201710461612.4 and invention name “A method and network device for business forwarding”. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to a service forwarding method and network device. Background Art
[0003] With the rapid development of the fourth generation of mobile communication technology, more and more services have put forward strict low latency requirements for network transmission. For example: the monitoring information and command service of smart grid. Although this service does not require high bandwidth, it requires low latency in network transmission. Otherwise, the monitoring and instructions of the power grid cannot be sent up and down in time, which may cause the entire power grid to be paralyzed. Another example: live broadcast of performances or games usually requires a latency of less than 15 milliseconds.
[0004] At present, the Multi-Protocol Label Switching (MPLS) network can provide differentiated services for different service data flows based on priority, thereby providing voice and video data flows with low latency and low packet loss rate services with bandwidth guarantee. Specifically, the priority-based scheduling methods mainly include strict priority (SP) scheduling and ordinary weighted round robin (WRR) scheduling. Among them, strict priority scheduling sets different priorities for services, and then high-priority services are always forwarded first to ensure low latency and low packet loss rate. However, if high-priority services always occupy broadband, low-priority services may not be transmitted all the time. WRR allocates bandwidth to each service based on weight to ensure that services with high weights are transmitted first. Regardless of the priority calling method, since the delay of each service in actual transmission is uncertain, it is impossible to guarantee that a certain service can meet the specific delay requirements. Summary of the invention
[0005] The embodiments of the present application provide a method and network device for service forwarding, which can meet the specific transmission delay requirements of low-latency services and improve the service quality of low-latency services.
[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, a method for service forwarding is provided, specifically comprising: a first network device forwards a data packet of a first service to a second network device in a period (T1), and if the amount of data of the forwarded first service reaches a threshold, the first network device forwards a data packet of the second service to the second network device. The first service is a low-latency service. The second service is a non-low-latency service. The period (T1) is a duration determined by the delay allowed by the device forwarding the data packet of the first service. The threshold is a value determined according to the maximum transmission rate of the first service. The present application can accurately control the delay time of network transmission of low-latency services, and thus can ensure that the network delay of low-latency services is lower than the minimum allowed delay value, and ultimately meet the service quality requirements of low-latency services.
[0008] Among them, the second network device is the next hop of the first network device in the direction from the entry node to the exit node on the path. The path may be a path used to forward the first service. The path used to forward the first service and the path used to forward the second service overlap, that is, the path used to forward the first service includes the first network device, the second network device, and the path between the first network device and the second network device. The path used to forward the second service includes the first network device, the second network device, and the path between the first network device and the second network device. The low-latency service refers to a real-time service with specific requirements on the indicators of network transmission delay. The low-latency service may be a service such as finance and electronic transactions, video conferencing, touch-based Internet, etc. The non-low-latency service is a service that has no specific requirements on the indicators of network transmission delay.
[0009] In one possible design, if the first network device is an ingress node, the first network device obtains a service request for the first service before starting to forward a data packet of the first service, and the service request includes a first delay (t m ), first delay (t m ) is the transmission delay value allowed for the first service from the ingress node to the egress node. The first network device obtains the second delay (t d ) and the number of hops (h). The second delay is the transmission delay value generated by the physical link included in the path. The number of hops is the number of hops included in the path, specifically the number of hops between the ingress node of the path and the egress node of the path. The path is the path for sending the data packet of the first service. The first network device determines the transmission delay value generated by the physical link included in the path according to the first delay (t m ), the second delay (t d ) and the number of hops (h) to determine the period (T1). The period (T1) is smaller than (t m -t d) / (h+1). The first network device may obtain the service request of the first service from a user device or a control device.
[0010] In one possible design, the first network device obtains a first rate (P) and a packet length (M). The first rate (P) is the maximum number of data packets allowed to be sent by the path per unit time. The packet length (M) is the size of the maximum data packet allowed to be sent by the path. The first network device obtains a second rate based on the first rate (P) and the packet length (M), and the second rate is the maximum total number of bytes of data packets of the first service allowed to be sent by the path per unit time. The first network device then determines a threshold value based on the period (T1) and the second rate, and the threshold value is less than or equal to the product of the period (T1) and the second rate.
[0011] Therefore, the first network device preferentially forwards the data packets of the first service within the period (T1) and ensures that the amount of data transmitted by the first service within the period (T1) can reach the threshold, thereby ensuring that the transmission of the first service from the ingress node to the egress node can meet the transmission delay requirements.
[0012] In a possible design, if the service request of the first service includes a time interval, the time interval is the time period for transmitting the first service data packet on the path for forwarding the first service data packet. Then, after determining the period (T1) and the second rate, the first network device can send a first path establishment request to the next hop node of the path, that is, the second network device. The first path establishment request includes the time interval, the period (T1) and the second rate. The path requested to be established by the first path establishment request can meet the transmission delay requirement of the first service.
[0013] In one possible design, if the first network device is an intermediate node, the first network device obtains a second path building request. The second path building request includes the time interval, the period (T1) and the second rate. The first network device determines whether the data of the first service sent in the period (T1) reaches a threshold value within the time interval based on the second path building request, and the threshold value is the product of the period (T1) and the second rate. The first network device can determine whether the data of the first service sent in the period (T1) reaches a threshold value within the time interval based on its own forwarding resources.
[0014] In one possible design, if there are multiple low-latency services to be forwarded in the first network device, the first network device starts a corresponding timer for each low-latency service, and forwards the corresponding low-latency services according to their respective corresponding timers. In this way, when the first network device has multiple low-latency service data packets to forward in the same time period, this application can also ensure that the network transmission of each low-latency service can meet the respective transmission delay requirements and meet the service needs of multiple services.
[0015] In one possible design, if there are multiple low-latency services to be forwarded in the first network device, the first network device starts a timer, and the timing duration of the timer is the duration of the shortest corresponding cycle among the multiple low-latency services. During the timing duration of the timer, multiple data packets of low-latency services are forwarded. If the number of bytes of the forwarded data packets of multiple low-latency services reaches a threshold, non-low-latency services are forwarded. The threshold corresponding to the data packets of multiple low-latency services is the product of the sum of the rates corresponding to the multiple low-latency services and the timing duration of the timer.
[0016] In one possible design, before the first network device sends a data packet of the first service to the second network device in a period (T1), the method also includes: the first network device receives a data packet of the first service and a data packet of the third service in the same time period; if the delay required to send the data packet of the third service on the same device is greater than or equal to the delay required to send the data packet of the first service, then the first network device determines the threshold based on the period (T1), the second rate and the third rate, and the threshold is less than or equal to the product of the sum of the second rate and the third rate and the period (T1), the second rate is the maximum total number of bytes of the data packets of the first service allowed to be sent by the path per unit time, and the third rate is the maximum total number of bytes of the data packets of the third service allowed to be sent by the path per unit time.
[0017] According to a second aspect, a first network device is provided, wherein the first network device comprises a unit for implementing the first aspect or any possible design of the first aspect.
[0018] In a third aspect, a first network device is provided, the first network device comprising a processor, a memory and a communication interface. The processor reads instructions stored in the memory from the memory, and executes the method provided by the first aspect or any possible design of the first aspect through the communication interface.
[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, the computer executes the method provided by the first aspect or any possible design of the first aspect.
[0020] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method provided by the first aspect or any possible design of the first aspect.
[0021] The embodiment of the present application provides a method and network device for forwarding a service. The first network device divides the time interval for sending a low-latency service into multiple periods, with the period being T1. The data packets of the low-latency service are forwarded preferentially within T1, and it is ensured that the data volume of the forwarded low-latency service can reach a threshold. The transmission delay value of the low-latency service from the ingress node to the egress node can be accurately controlled, thereby ensuring that the transmission delay value of the low-latency service is lower than the first delay, thereby meeting the service quality requirements of the low-latency service. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1a A schematic diagram of the structure of an MPLS network provided in an embodiment of the present application;
[0023] Figure 1b A schematic diagram of the structure of another MPLS network provided in an embodiment of the present application;
[0024] Figure 2a A flow chart of a method for service forwarding provided in an embodiment of the present application;
[0025] Figure 2b A flow chart of another method for service forwarding provided in an embodiment of the present application;
[0026] Figure 3 A flowchart of another service forwarding method provided in an embodiment of the present application;
[0027] Figure 4 A schematic diagram of a service forwarding method provided in an embodiment of the present application;
[0028] Figure 5 A flow chart of another method for service forwarding provided in an embodiment of the present application;
[0029] Figure 6 A schematic diagram of another service forwarding method provided in an embodiment of the present application;
[0030] Figure 7 A flow chart of another method for service forwarding provided in an embodiment of the present application;
[0031] Figure 8 A schematic diagram of another service forwarding method provided in an embodiment of the present application;
[0032] Fig. 9 A schematic diagram of another service forwarding method provided in an embodiment of the present application;
[0033] Fig.10 A schematic diagram of another service forwarding method provided in an embodiment of the present application;
[0034] Fig.11A schematic diagram of the structure of a first network device provided in an embodiment of the present application;
[0035] Fig.12 A schematic diagram of the structure of another first network device provided in an embodiment of the present application;
[0036] Fig.13 A schematic diagram of the structure of another first network device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The technical solutions in the embodiments of the present application will be clearly described below in conjunction with the drawings in the embodiments of the present application.
[0038] The embodiments of the present application may be applied to a packet switching network (PSN), such as an MPLS network. Figure 1a The topology of an MPLS network is shown, and the MPLS network is composed of a provider edge (PE) device and a provider (P) device. Among them, the P device is an intermediate node device of the MPLS network. The P device is mainly used to process the forwarding of services. The P device can be a router, a switch, etc. The PE device is an edge node device of the MPLS network. The PE device can be an ingress node or an egress node. The PE device is mainly used to process the access or output of services. The PE device can be a router, a switch, an optical line terminal (OLT), a multiple dwelling unit (MDU) device, or a broadband remote access server (BRAS). Specifically, the MPLS network accesses the customer edge (CE) device through the PE device to provide users with efficient, high-speed and high-reliability data transmission services. The CE device is a device on the user side. The CE device can be a personal broadband access client device, an enterprise's egress gateway, or a data center's egress gateway, etc. The network where the CE device is located can be a user network, an enterprise network, a data center, or a cloud network. The connection link between the PE device and the CE device can be an Ethernet link, a Passive Optical Network (PON) link, or various types of Digital Subscriber Line (DSL) links.
[0039] Optional, Figure 1bAnother MPLS network topology is shown, the MPLS network includes a controller, such as a software-defined networking (SDN) controller. The controller is used to receive a service request, establish a path for forwarding the service according to the service request, and send a path establishment request to each network device on the path.
[0040] It should be noted that in the embodiment of the present application, the MPLS network can pre-deploy frequency synchronization and time synchronization protocols, such as: Ethernet synchronization (Synchronous Ethernet, SyncE) protocol or Precision Time Protocol (Precision Time Protocol, PTP). In this way, each network device in the MPLS network can have accurate frequency and time synchronized throughout the network, which is conducive to the transmission of service data by each network device according to the synchronized time.
[0041] also, Figure 1a and Figure 1b Only two PE devices and five P devices are shown in the figure, but the embodiment of the present application does not limit the number and specific connection relationship of PE devices and P devices in the MPLS network. In addition, a PE device can also be connected to multiple CE devices, and each CE device can have data of multiple services at the same time.
[0042] MPLS network can provide differentiated services for different business data based on priority, but existing priority scheduling methods, such as strict priority scheduling and WRR scheduling methods, cannot guarantee that the delay of business data streams transmitted using MPLS network must be lower than a certain transmission delay value. However, with the development of fourth generation (4th Generation, 4G) mobile communication technology, more services require that the network transmission must be able to meet precise delay value requirements, for example, live broadcasts of performances or games usually require a delay of less than 15 milliseconds. In this case, the method provided in the embodiment of the present application can be used to ensure that the delay value of such services transmitted using MPLS network is less than 15 milliseconds.
[0043] If the method provided in the embodiments of the present application is applied to Figure 1a In the network shown in FIG. 1 , before forwarding the data packets of the service, a process of establishing a path for forwarding the data packets of the service is also included, such as Figure 2a As shown, specifically including:
[0044] 101. A first network device obtains a service request of a first service.
[0045] For example, the first network device is an entry node in the MPLS network for forwarding the first service, such as PE1 directly connected to CE1. The first service is a low-latency service, which refers to a real-time service with specific requirements on the network transmission delay index, such as financial and electronic transactions, video conferencing, touch Internet, Internet of Vehicles services, fifth generation (5G) mobile bearer network services, or live broadcast services of competitions.
[0046] Specifically, the first network device may obtain a service request for the first service from the user equipment. The service request includes a first delay (t m ) and time interval. Among them, the first delay (t m ) is the transmission delay value allowed for the first service from the ingress node to the egress node. The first delay (t m ) includes the transmission delay value generated by the physical link of the path used to forward the first service and the transmission delay value generated by each node included in the path. The time interval is the time period for transmitting the data packet of the first service on the path, for example: (t1, t2). Then, the network transmission requirement of the first service is that the total transmission delay on the path used to forward the first service at (t1, t2) should be less than or equal to the first delay (t m ).
[0047] 102. The first network device establishes a path for forwarding a first service data packet according to a service request, and determines a period (T1) and a threshold.
[0048] Specifically, after receiving the service request of the first service, the first network device determines the first delay (t m ), the network address of the user equipment, the bandwidth requirement of the first service, and other information to determine the path for forwarding the data packets of the first service. After establishing the path, the first network device determines the second delay (t d ), that is, the transmission delay value generated by the physical link included in the path, and the number of network devices included in the path. The number of network devices included in the path is equal to the number of hops included in the path (h) plus 1. Then, the first network device calculates the transmission delay value generated by the physical link included in the path according to the first delay (t m ), the second delay (t d ) and the number of hops (h) determine the period (T1). Optionally, the value of the period (T1) may be less than (t m -t d ) / (h+1).
[0049] For example, Figure 1aIn the example, it is assumed that the transmission delay value allowed from the ingress node to the egress node of the first service, i.e., the first delay, is 15 milliseconds. The path established by the MPLS network for forwarding the data packet of the first service is PE1-P1-P2-PE2. The number of hops is 3. The transmission delay value generated by the physical link on the entire path, i.e., the second delay, is 5 milliseconds. The period of the first network node for forwarding the first service is less than 2.5 milliseconds, for example, it can be 2.4 milliseconds or 2 milliseconds.
[0050] Specifically, the method for determining the threshold is as follows:
[0051] 1. The first network device obtains a first rate (P) and a packet length (M).
[0052] The first rate (P) is the maximum number of data packets allowed to be sent by the path per unit time, and the first rate may be an empirical value or a statistical value obtained by the user equipment. If so, the first network device may obtain the first rate (P) from the service request. The first rate may also be allocated by the MPLS network for the first service, and then the ingress node or controller may directly obtain the first rate (P) from the network configuration.
[0053] The packet length (M) is the size of the maximum data packet allowed to be sent by the path. When establishing the path, the first network device can obtain the packet length (M) by performing the Maximum Transmission Unit (MTU) discovery of the path. Usually, the packet length (M) is related to the communication interface, such as a network interface card, a serial port, etc.
[0054] 2. The first network device determines the second rate according to the first rate (P) and the packet length (M).
[0055] The second rate is the maximum total number of bytes of data packets of the first service allowed to be sent by the path per unit time. The second rate can be determined as the product of the first rate (P) and the packet length (M), for example.
[0056] 3. The first network device determines a threshold value according to the period (T1) and the second rate, wherein the threshold value is less than or equal to the product of the period (T1) and the second rate.
[0057] 103. The first network device determines whether it can support the data packets of the first service sent in the period (T1) to reach the threshold within the time interval according to the service request. If it can be supported, it sends a first path establishment request to the second network device.
[0058] The second network device is a next hop node of the first network device on a path for forwarding data packets of the first service. The first path establishment request includes a time interval, a cycle (T1) and a second rate.
[0059] Specifically, the first network device determines whether local resources can support the transmission of data packets of the first service based on the information carried in the service request and the determined threshold, for example: whether the first network device meets the corresponding bandwidth requirements, whether the corresponding packet queue can be allocated for the first service, etc., so as to determine whether the first network device can support the data packets of the first service sent in the period (T1) within the time interval to reach the threshold. If yes, the first network device reserves resources for forwarding data packets of the first service and sends a first path establishment request to the second network device. If no, the first network device replies a rejection message to the user device so that the user device can select other transmission paths.
[0060] 104a. The second network device determines that the data packets of the first service that can be supported to be sent in the period (T1) within the time interval reach the threshold, and then sends a second path establishment request to the third network device.
[0061] The second path establishment request includes a time interval, a period (T1) and a second rate. The third network device is a next hop node of the second network device in a path for forwarding data packets of the first service.
[0062] Specifically, after receiving the first path building request, the second network device can obtain information about the time interval, period (T1) and the second rate from the first path building request, and the threshold value is less than or equal to the product of the period (T1) and the second rate. Further, it is determined whether the second network device can support the data packets of the first service sent in the period (T1) within the time interval to reach the threshold value. The specific judgment process refers to step 103 and is not repeated here. If supported, the second network device reserves resources for forwarding the data packets of the first service, and sends a second path building request to the next hop node in the path, that is, the third network device, as shown in 104a in the figure. If not supported, the second network device returns a rejection request to the first network device so that the first network device can redetermine the path for forwarding the data packets of the first service, as shown in 104b in the figure.
[0063] 104b. The second network device determines that the data packets of the first service that cannot be sent periodically (T1) within the time interval reach the threshold, and then sends a rejection message to the first network device.
[0064] It should be noted that if the first network device is an intermediate node on a path for forwarding data packets of the first service, such as P1, the first network device can also be used to perform steps 104a and 104b.
[0065] If the method provided in the embodiments of the present application is applied to Figure 1b In the network shown in FIG. 1 , before forwarding the data packets of the service, a process of establishing a path for forwarding the data packets of the service is also included, such as Figure 2b As shown, specifically including:
[0066] 201. A controller obtains a service request of a first service.
[0067] Among them, the first service is a low-latency service, which refers to a real-time service with specific requirements on the network transmission delay indicator, such as finance and electronic transactions, video conferencing, touch Internet, Internet of Vehicles services, fifth generation (5G) mobile bearer network services, or live broadcast services of competitions.
[0068] Specifically, the controller may obtain a service request for the first service from the user equipment, where the service request includes a first delay (t m ) and time interval. Among them, the first delay (t m ) is the transmission delay value allowed for the first service from the ingress node to the egress node. The first delay (t m ) includes the transmission delay value generated by the physical link of the path used to forward the first service and the transmission delay value generated by each node included in the path. The time interval is the time period for transmitting the data packet of the first service on the path, for example: (t1, t2). Then, the transmission requirement of the first service is that the total transmission delay on the path used to forward the first service at (t1, t2) should be less than or equal to the first delay (t m ).
[0069] 202. The controller establishes a path for forwarding data packets of a first service according to a service request, and determines a period (T1) and a threshold.
[0070] The specific implementation method can refer to step 102, which will not be repeated here.
[0071] 203. The controller sends a path establishment request to all network devices on the path.
[0072] Specifically, the controller sends a path establishment request to all network devices on the determined path for forwarding the first service data packet, and the path establishment request includes a time interval, a cycle (T1) and a second rate.
[0073] 204. Each network device on the path determines, based on the received path building request, whether it can support the data packets of the first service sent in the period (T1) to reach the threshold within the time interval.
[0074] Specifically, each network device in each network device on the path can obtain information about the time interval, the period (T1) and the second rate according to the path establishment request, and the threshold is less than or equal to the product of the period (T1) and the second rate. Further, it is determined whether it can support the data packets of the first service sent with the period (T1) to reach the threshold within the time interval. The specific determination method is similar to the implementation method of the first network device in step 103 determining whether it can support the data packets of the first service sent with the period (T1) to reach the threshold within the time interval according to the service request.
[0075] For example, Figure 1b In the example, assuming that the path established by the MPLS network for forwarding the data packets of the first service is PE1-P1-P2-PE2, the controller sends a path establishment request to PE1, P1, P2 and PE2 after determining the period (T1) and the threshold, and the path establishment request includes the time interval, the period (T1) and the second rate. After receiving the path establishment request, PE1, P1, P2 and PE2 respectively determine whether they can support the data packets of the first service sent in the period (T1) to reach the threshold within the time interval.
[0076] 205. Each network device on the path replies a confirmation message or a rejection message to the controller according to its own judgment result.
[0077] Specifically, if the network device on the path determines whether it can support the data packets of the first service sent in the period (T1) within the time interval to reach the threshold, it reserves the corresponding resources and replies with a confirmation message to the controller. If not, it replies with a rejection message to the controller so that the controller re-determines the path for forwarding the data packets of the first service.
[0078] For example, in combination with the example of step 204, assuming that PE1, P1, P2 and PE2 all determine that the data packets of the first service sent in the period (T1) within the time interval can reach the threshold, then they send confirmation messages to the controller respectively, and the controller receives 4 confirmation messages, and determines that the path for forwarding the data packets of the first service is successfully established. If any network device on the path replies to a rejection message, for example, PE1 replies to a rejection message, and P1, P2 and PE3 all reply to confirmation messages, then the controller will also recalculate the route and determine a new path for forwarding the data packets of the first service.
[0079] After the path for forwarding the data packets of the first service is established, the service forwarding method provided by the embodiment of the present application is as follows: Figure 3 As shown, specifically including:
[0080] 301. A first network device sends a data packet of a first service to a second network device in a period (T1).
[0081] For example, the first network device may be an ingress node or an intermediate node in the MPLS network for forwarding the first service, and the second network device may be a next-hop node of the first network device on the path for forwarding the first service.
[0082] Specifically, after receiving the data packet of the first service, the first network device starts a timer at time t1, the timing duration of the timer is a period (T1), and starts to send the data packet of the first service to the second network device.
[0083] The period (T1) is a value determined according to the delay allowed by the device forwarding the data packet of the first service. If the first network device is an ingress node, the acquisition of the period (T1) can refer to step 102 or 204; if the first network device is an intermediate node, the acquisition of the period (T1) can refer to step 104 or 204. Here, it will not be repeated.
[0084] 302. After the amount of data of the first service sent by the first network device in the period (T1) reaches a threshold, the first network device sends a data packet of the second service to the second network device.
[0085] The threshold is the maximum value of the total number of bytes of the first service data packets allowed to be sent by the path within the period (T1). If the first network device is an ingress node, the threshold can be obtained by referring to step 102 or 204; if the first network device is an intermediate node, the threshold can be obtained by referring to step 104 or 204. Here, it will not be repeated.
[0086] It should be noted that the path used by the first network device to transmit data packets of the second service overlaps with the path used by the first network device to transmit data packets of the first service. For example, the path used to transmit data packets of the first service includes the first network device, the second network device, and the path between the two network devices. The path used to transmit data packets of the second service includes the first network device, the second network device, and the path between the two network devices. Then, the first network device, the second network device, and the path between the two network devices are the paths of the overlapping parts. Since there are overlapping parts in the paths for forwarding the first service and the second service, the first network device cannot transmit the first service and the second service at the same time. Since it is necessary to prioritize the transmission delay of the data packets forwarding the first service to be equal to or lower than the first delay, the first network device prioritizes forwarding the data packets of the first service.
[0087] When the data volume of the first service sent within the period (T1) reaches the threshold, it indicates that the first network device can ensure that the transmission delay of the data packet of the first service is equal to or lower than the first delay, then the sending of the data packet of the first service can be suspended and the sending of the data packet of the second service can be started. Or if the data volume of the data packet of the first service sent does not reach the threshold, but the corresponding packet queue of the first service is empty at this time, indicating that there is no data packet of the first service that needs to be transmitted at this time, then the first network device starts to transmit the data packet of the second service.
[0088] However, it should be noted that if the amount of data sent by the first network device for the first service within the period (T1) is not limited, it is very likely that the first network device will continue to transmit data packets of the first service, and data packets of other services can only be transmitted after the data packets of the first service are transmitted, which will seriously affect the service quality of other services. For example: the second service and the third service, wherein the second service is a non-low-latency service, and the non-low-latency service is a service that has no specific requirements on the network transmission delay indicator. The allowed transmission delay value of the third service is lower than that of the first service. Therefore, it is necessary to set a threshold for the amount of data forwarded by the first network device for the first service. In this way, it can not only ensure that the network transmission of the first service can meet the requirement of being lower than the first delay, but also ensure that the transmission of other services is not affected.
[0089] Therefore, during the time from t1 to t2, the timer is periodically restarted, and in each cycle (T1), the first network device gives priority to forwarding data packets of the first service, and the amount of data that can be sent for the first service can reach the threshold, thereby ensuring that the transmission delay of the first service in the MPLS network is always equal to or lower than the transmission delay allowed by the first service.
[0090] The embodiment of the present application provides a method for service forwarding. Compared with the prior art, the first network device only gives priority to forwarding the packet queue corresponding to the low-latency service, and cannot guarantee that the network transmission of the low-latency service can be lower than the first delay. However, the present application divides the time interval for sending low-latency services into multiple periods, with a period of T1, and gives priority to forwarding data packets of low-latency services within T1, and ensures that the data volume of the forwarded low-latency services can reach the threshold. In this way, the present application can accurately control the transmission delay value of the low-latency service from the ingress node to the egress node, and then can ensure that the transmission delay value of the low-latency service is lower than the first delay, meeting the service quality requirements of the low-latency service.
[0091] Considering that there are multiple low-latency services that need to be transmitted in the first network device within the same time period, such as Figure 4As shown, it is assumed that the path used to forward the data packets of the first service is PE1-P4-P3-P2-PE2; the path used to forward the data packets of the third service is P4-P3-P5. Then P4 and P3 may receive the data packets of the first service and the data packets of the third service in the same time period. Then, the embodiment of the present application also provides a method for forwarding services, such as Figure 5 As shown, including:
[0092] 401. The first network device starts a corresponding timer for each low-latency service.
[0093] Among them, the period of each low-latency service is determined by the first network device according to the delay allowed by the data packets of each low-latency service. The specific determination method can be referred to step 101, which will not be repeated here.
[0094] For example, Figure 6 As shown, it is assumed that the first network device needs to transmit data packets of the first service, data packets of the second service, and data packets of the third service in the same time period. Among them, the first service and the third service are low-latency services, and the second service is a non-low-latency service. According to the above method, it can be determined that the period of the first service is T1, and the period of the third service is T2, wherein T1 is less than T2. Then, the first network device starts the first timer for the first service, and the timing duration of the first timer is T1, and starts the second timer for the third service, and the timing duration of the second timer is T2.
[0095] 402. The first network devices forward respective low-latency services according to their respective corresponding timers.
[0096] For example, Figure 6 As shown, according to the aforementioned method, the maximum total number of bytes of the first service data packets allowed to be sent by the first service unit time path can be determined (B1). Then, the first network device gives priority to forwarding the data packets of the first service within the timing duration T1 of the first timer, and starts forwarding the data packets of the second service only when the amount of data forwarded for the first service reaches T1*B1, or when the packet queue corresponding to the first service is empty. After the timing duration of the first timer reaches T1, the first network device restarts the first timer, and the timing duration is still T1, and the first network device continues to give priority to forwarding the data packets of the first service. And so on, until the sending time of the first service ends.
[0097] At the same time, according to the aforementioned method, the third service can be determined, and the maximum total number of bytes of the data packets of the first service allowed to be sent by the third service unit time path (B2). Then, the first network device gives priority to forwarding the data packets of the third service within the timing duration T2 of the second timer. When the amount of data of the third service forwarded by the first network device reaches T2*B2, or the packet queue corresponding to the third service is empty, the first network device starts to forward the data packets of the second service. When the timing duration of the second timer reaches T2, the first network device restarts the second timer, and the timing duration is still T2, and the first network device continues to give priority to forwarding the data packets of the third service. And so on, until the sending time of the third service ends. It can be seen that the two processes of the first network device forwarding the data packets of the first service and forwarding the data packets of the third service are completely independent and do not interfere with each other.
[0098] It should be noted that if the first service and the third service overlap at a certain time, it can be pre-specified that the data packets of the low-latency service that arrives first are forwarded first, and then the data packets of the low-latency service that arrives later are forwarded. Or the service with a smaller allowed delay value is forwarded first, which is not limited in the embodiments of the present application.
[0099] In this way, when the first network device has multiple low-latency service data packets that need to be forwarded within the same time period, this application can also ensure that the network transmission of each low-latency service can meet the requirements of their respective minimum allowable delay values and meet the service needs of multiple services.
[0100] There are multiple low-latency services that need to be transmitted in the first network device in the same time period, such as Figure 4 As shown, it is assumed that the path used to forward the data packets of the first service is PE1-P4-P3-P2-PE2; the path used to forward the data packets of the third service is P4-P3-P5. Then P4 and P3 may receive the data packets of the first service and the data packets of the third service in the same time period. Then, the embodiment of the present application also provides a method for forwarding services, such as Figure 7 As shown, specifically including:
[0101] 501. The first network device starts a timer, and the timing duration is the shortest time length of corresponding cycles among multiple low-latency services.
[0102] Specifically, the first network device only uses one timer, and the timing duration of the timer can be adaptively adjusted according to the specific situation of transmitting the low-latency service.
[0103] For example, Figure 8As shown, it is assumed that the first network device needs to transmit the first service, the second service and the third service in the same time period. Among them, the first service and the third service are low-latency services, and the second service is a non-low-latency service. And the transmission delay value allowed by the third service is greater than the transmission delay value allowed by the first service. According to the above method, it can be determined that the period of the first service is T1, and the period of the third service is T2, wherein T1 is less than T2. Then, the first network device starts the timer and sets the timing duration of the timer to T1.
[0104] 502. The first network device starts forwarding multiple data packets of low-latency services within the timing duration of the timer.
[0105] For example, Figure 8 As shown, the first network device starts to forward data packets of the first service and the third service in T1.
[0106] 503. If the data volume of multiple low-latency service data packets forwarded by the first network device reaches a threshold within a timing period, or the packet queue corresponding to the low-latency service is empty, the first network device starts forwarding data packets of the second service.
[0107] The threshold is the product of the sum of the maximum values of the total number of bytes of the first service data packets allowed to be sent by the low-delay service unit time paths and the timing duration of the timer.
[0108] For example, Figure 8 As shown, according to the aforementioned method, the maximum total number of bytes of the first service data packets allowed to be sent by the first service unit time path (B1) and the maximum total number of bytes of the first service data packets allowed to be sent by the third service unit time path (B2) can be determined. Then, the first network device preferentially ensures that the amount of data transmitted for the first service and the third service reaches T1*(B1+B2). When the number of bytes of the first low-latency service and the third low-latency service reaches T1*(B1+B2), or the packet queue corresponding to the first service and the packet queue corresponding to the third service are empty, the data packets of the second service will be forwarded.
[0109] 504. If the data packets of the low-latency service are not transmitted after the timing period ends, the first network device restarts the timer and continues to transmit the data packets of the low-latency service. If the data packets of the low-latency service with low frequency are transmitted first among the low-latency services, the first network device re-determines the threshold value, that is, executes step 505. If the data packets of the low-latency service with high frequency are transmitted first among the low-latency services, the first network device re-determines the cycle and threshold value, that is, executes step 506.
[0110] For example, Figure 8As shown, since T1 is less than T2, the first service is a high-frequency and low-latency service, and the third service is a low-frequency and low-latency service.
[0111] 505. The first network device adjusts the threshold.
[0112] For example, Fig. 9 As shown, if the data packet of the third service is transmitted first, the first network device adjusts the threshold to T1*B1. In this way, while ensuring the transmission delay value allowed by the first service, the transmission efficiency of the non-delayed service can also be improved.
[0113] 506. The first network device adjusts the timing duration and threshold of the timer.
[0114] For example, Fig.10 As shown, if the data packet of the first service is transmitted first, optionally, the timing duration of the first timer can also be maintained at T1, and only the threshold is adjusted to T1*B2. Optionally, the first network device adjusts the timing duration of the timer to T2 and the threshold to T2*B2. Fig.10 In this way, while ensuring the transmission delay value allowed by the third service, the transmission efficiency of the non-delayed service can also be improved.
[0115] Therefore, when the first network device has multiple low-latency service data packets to forward in the same time period, the present application can also ensure that the network transmission of each low-latency service can meet the requirements of the transmission delay value allowed by each service. Moreover, under the premise of meeting the network transmission requirements of multiple low-latency services, the transmission efficiency of the second service can also be appropriately improved.
[0116] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of interaction between various network devices. It is understandable that each network device, in order to realize the above functions, includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0117] The embodiment of the present application can divide the functional modules of the network device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0118] In the case of dividing each functional module into corresponding functional modules, Fig.11 A possible structural diagram of the first network device involved in the above embodiment is shown, and the first network device 1100 includes: a first sending unit 1101, and a second sending unit 1102. The first sending unit 1101 is used to send data packets of the first service to the second network device in a period (T1), wherein the first service is a low-latency service, and the period (T1) is determined according to the delay allowed by the device forwarding the data packets of the first service. The second sending unit 1102 is used to send data packets of the second service to the second network device after the amount of data of the first service sent in the period (T1) reaches a threshold, wherein the second service is a non-low-latency service, and the threshold is a value determined according to the maximum transmission rate of the first service.
[0119] In the embodiment of the present application, optionally, if the first network device is an entry node, the first network device further includes:
[0120] The first acquisition unit 1103 is configured to acquire a service request for a first service, wherein the service request includes a first delay (t m ), first delay (t m ) is the transmission delay value allowed for the first service from the ingress node to the egress node.
[0121] The second acquisition unit 1104 is used to acquire the second delay (t d ) and the number of hops (h), where the second delay (t d ) is the transmission delay value generated by the physical link included in the path, and the number of hops (h) is the number of hops included in the path, and the path is used to send data packets of the first service.
[0122] The first determining unit 1105 is configured to determine the first delay (t m ), the second delay (t d ) and the number of hops (h), determine the period (T1), the value of the period (T1) is less than (t m -t d ) / (h+1).
[0123] In the embodiment of the present application, optionally, if the first network device is an entry node, the first network device further includes:
[0124] The third acquisition unit 1106 is used to obtain a first rate (P) and a packet length (M), wherein the first rate (P) is the maximum number of data packets allowed to be sent by the path per unit time, and the packet length (M) is the size of the maximum data packet allowed to be sent by the path, and the path is used to send data packets of the first service.
[0125] The fourth acquisition unit 1107 is used to obtain a second rate according to the first rate (P) and the packet length (M), where the second rate is the maximum total number of bytes of data packets of the first service allowed to be sent by the path per unit time.
[0126] The second determining unit 1108 is used to determine a threshold value according to the period (T1) and the second rate, where the threshold value is less than or equal to the product of the period (T1) and the second rate.
[0127] In the embodiment of the present application, optionally, the service request also includes a time interval, which is a time period for transmitting data packets of the first service on the path. If the first network device is an ingress node, the first network device also includes: a third sending unit 1109, which is used to send a first path establishment request to the second network device, the first path establishment request includes a time interval, a period (T1) and a second rate, the second rate is the maximum value of the total number of bytes of data packets of the first service allowed to be sent by the path per unit time, and the first path establishment request is used to establish the path.
[0128] In the embodiment of the present application, optionally, if the first network device is an entry node, the first network device further includes:
[0129] The receiving unit 1110 is configured to receive a data packet of a first service and a data packet of a third service in the same time period.
[0130] The third determination unit 1111 is also used to determine a threshold value according to the period (T1), the second rate and the third rate if the delay required to send the data packet of the third service on the same device is greater than or equal to the delay required to send the data packet of the first service, and the threshold value is less than or equal to the product of the sum of the second rate and the third rate and the period (T1), wherein the second rate is the maximum total number of bytes of the data packet of the first service allowed to be sent by the path per unit time, and the third rate is the maximum total number of bytes of the data packet of the third service allowed to be sent by the path per unit time. The method for obtaining the third rate can refer to the method for obtaining the second rate, which will not be repeated here.
[0131] In the embodiment of the present application, optionally, if the first network device is an intermediate node, such as Fig.12 As shown, the first network device also includes:
[0132] The fifth acquisition unit 1112 is used to obtain a second path establishment request, wherein the second path establishment request is used to establish a path, and the second path establishment request includes a time interval, a period (T1) and a second rate, the second rate is the maximum value of the data packets of the first service allowed to be sent by the path per unit time, and the time interval is the time period for transmitting the data packets of the first service on the path.
[0133] The judging unit 1113 is used to judge whether the first network device can support the data packets of the first service sent at the period (T1) to reach a threshold within the time interval, where the threshold is the product of the period (T1) and the second rate.
[0134] The fourth sending unit 1114 is configured to send a third path establishment request to the second network device if it is determined that the request can be supported, where the third path establishment request includes a time interval, a cycle (T1) and a second rate.
[0135] Fig.13 The schematic diagram of the structure of a network device 1300 involved in the above embodiment is shown. The network device 1300 includes: a processor 1301, a communication interface 1302, a memory 1303 and a bus 1304. The communication interface 1302, the processor 1301 and the memory 1303 are interconnected via the bus 1304; the bus 1304 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0136] The steps of the method or algorithm described in conjunction with the disclosure of the present application may be implemented in hardware or by executing software instructions by a processor. The software instructions may be composed of corresponding software modules, which may be stored in a random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may be located in an ASIC. In addition, the ASIC may be located in a core network interface device. Of course, the processor and the storage medium may also be present in a core network interface device as discrete components.
[0137] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0138] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0139] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A method for business forwarding, It is characterized in that include: The controller obtains a service request of a first service, where the service request of the first service includes a first delay t m , the first delay t m is the transmission delay value allowed for the first service from the ingress node to the egress node; The controller determines a period T according to a service request of the first service. 1 and sending it to a first network device for forwarding data packets of the first service; The controller determines a period T according to a service request of the first service. 1 include: The controller is based on the first delay t m , the second delay t d and the number of hops h, determine the period T 1 , the second delay t d is the transmission delay value generated by the physical link included in the path to which the first network device belongs, the hop number h is the number of hops included in the path, and the path is used to transmit data packets of the first service.
2. The method according to claim 1, It is characterized in that The period T 1 The duration is determined according to the delay allowed by the device that forwards the data packet of the first service.
3. The method according to claim 1 or 2, It is characterized in that The period T 1 The value is less than (t m -t d ) / (h+1).
4. The method according to claim 3, It is characterized in that The method further comprises: After determining the path, the controller obtains the second delay t d and the hop count h.
5. The method according to claim 1 or 2, It is characterized in that The method further comprises: The controller acquires a second rate based on a first rate P and a packet length M, wherein the first rate P is a maximum number of data packets allowed to be sent by the path per unit time, the packet length M is a size of a maximum data packet allowed to be sent by the path, and the second rate is a maximum total number of bytes of data packets of the first service allowed to be sent by the path per unit time; The controller sends the second rate to the first network device.
6. The method according to claim 3, It is characterized in that The method further comprises: The controller is based on the period T 1 and a second rate determination threshold, the threshold being less than or equal to the period T 1 and the second rate, where the second rate is the maximum total number of bytes of data packets of the first service allowed to be sent by the path per unit time; The controller sends the threshold to the first network device.
7. The method according to claim 6, It is characterized in that The method further comprises: The controller obtains a second rate based on a first rate P and a packet length M, wherein the first rate P is the maximum number of data packets allowed to be sent by the path per unit time, and the packet length M is the size of the maximum data packet allowed to be sent by the path.
8. The method according to claim 5, It is characterized in that The second rate is the product of the first rate P and the packet length M.
9. The method according to claim 1 or 2, It is characterized in that The method further comprises: The controller sends a time interval to the first network device, where the time interval is a time period for transmitting data packets of the first service on the path.
10. A device for business forwarding, It is characterized in that The device is arranged in a controller and comprises: A unit for obtaining a service request for a first service, wherein the service request for the first service includes a first delay time t m , the first delay t m is the transmission delay value allowed for the first service from the ingress node to the egress node; Used to determine the period T according to the service request of the first service 1 Units; For sending the period T 1 to a unit of a first network device for forwarding a data packet of the first service; for determining the period T according to the service request of the first service 1 The unit is specifically used for: Based on the first delay t m , the second delay t d and the number of hops h, determine the period T 1 , the second delay t d is the transmission delay value generated by the physical link included in the path to which the first network device belongs, the hop number h is the number of hops included in the path, and the path is used to transmit data packets of the first service.
11. The device according to claim 10, It is characterized in that The period T 1 The duration is determined according to the delay allowed by the device that forwards the data packet of the first service.
12. The device according to claim 10 or 11, It is characterized in that The period T 1 The value is less than (t m -t d ) / (h+1).
13. The device according to claim 12, It is characterized in that The device also includes: After determining the path, obtain the second delay t d and the unit of the hop number h.
14. The device according to claim 10 or 11, It is characterized in that The device also includes: a unit for acquiring a second rate based on a first rate P and a packet length M, wherein the first rate P is a maximum number of data packets allowed to be sent by a path per unit time, the packet length M is a size of a maximum data packet allowed to be sent by the path, and the second rate is a maximum total number of bytes of data packets of a first service allowed to be sent by the path per unit time; Means for sending the second rate to the first network device.
15. The device according to claim 12, It is characterized in that The device also includes: For the period based on the 1 and a second rate determining threshold unit, the threshold being less than or equal to the period T 1 and the second rate, where the second rate is the maximum total number of bytes of data packets of the first service allowed to be sent by the path per unit time; Means for sending the threshold to the first network device.
16. The device according to claim 15, It is characterized in that The device also includes: A unit for acquiring a second rate based on a first rate P and a packet length M, wherein the first rate P is the maximum number of data packets allowed to be sent by a path per unit time, and the packet length M is the size of the maximum data packet allowed to be sent by the path.
17. The device according to claim 14, It is characterized in that The second rate is the product of the first rate P and the packet length M.
18. The device according to claim 10 or 11, It is characterized in that The device also includes: A unit configured to send a time interval to the first network device, wherein the time interval is a time period for transmitting data packets of the first service on the path.
19. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 9.
