WO2022116896A1 - Path adjustment method and apparatus, and communication system - Google Patents

Path adjustment method and apparatus, and communication system Download PDF

Info

Publication number
WO2022116896A1
WO2022116896A1 PCT/CN2021/133374 CN2021133374W WO2022116896A1 WO 2022116896 A1 WO2022116896 A1 WO 2022116896A1 CN 2021133374 W CN2021133374 W CN 2021133374W WO 2022116896 A1 WO2022116896 A1 WO 2022116896A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
forwarding
forwarding path
data
node
Prior art date
Application number
PCT/CN2021/133374
Other languages
French (fr)
Chinese (zh)
Inventor
邰博
吕金生
刘兵社
张如云
方晟
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022116896A1 publication Critical patent/WO2022116896A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/124Shortest path evaluation using a combination of metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a path adjustment method and device, and a communication system.
  • the communication system includes a controller, and a plurality of nodes to which the controller is connected.
  • the controller can control the plurality of nodes to be forwarded along the path in the data tunnel.
  • the controller may plan the data tunnel based on the network topology of the multiple nodes, and deliver the information of the data tunnel to the head node of the data tunnel.
  • the head node can control the data to be forwarded to the tail node of the data tunnel along the path in the data tunnel according to the information of the data tunnel.
  • the path in the data tunnel is more likely to have a high bit error rate. If data is forwarded on a path with a high bit error rate, the quality of data forwarding will be low.
  • the present application provides a path adjustment method and device, and a communication system, which can solve the problem of low data forwarding quality.
  • the technical solution is as follows:
  • a first aspect provides a path adjustment method, the method includes: in the process of forwarding data by a forwarding node using a first forwarding path, according to the error index of the first forwarding path does not meet a preset condition, The first forwarding path is switched to the second forwarding path, or the transmission ratio of data on the first forwarding path is reduced.
  • the forwarding node is a node on the first forwarding path.
  • the bit error indicator is an indicator related to bit errors, such as the bit error rate in the usual sense or the bit error indicator obtained by deforming a simple formula based on the usual calculation method of the bit error rate, and another example is the occurrence of bit errors. the duration or the amount of errored data, etc.
  • the bit error rate is equal to the proportion of the number of bit errors in the total number of forwarded codes. Meeting the preset conditions and not meeting the preset conditions are relative, so meeting the preset conditions can also be naturally understood as not meeting a corresponding condition, and not meeting the preset conditions can also be naturally understood as meeting a corresponding condition. This is related to the setting content of the condition and the trigger mechanism of the condition.
  • the forwarding node may, according to the bit error indicator of the first forwarding path not meeting the preset condition, convert the bit error rate to the first forwarding path.
  • a forwarding path is switched to the second forwarding path; when the preset condition is that the bit error rate is greater than the bit error rate threshold, the forwarding node may switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path meeting the preset condition Two forwarding paths.
  • the forwarding node can switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet the preset condition, or reduce the data transmission rate on the first forwarding path.
  • the transmission ratio is adjusted to realize the adjustment of the first forwarding path.
  • the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the present application has higher efficiency in adjusting the path and stronger timeliness. Since the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of the overload of the controller is avoided.
  • the first forwarding path includes at least one error link, and the error link is a link with an error
  • the second forwarding path does not include the at least one error link. one or more. Since the second forwarding path does not include one or more error links in the first forwarding path, the forwarding node can avoid data forwarding on the one or more error links by using the second forwarding path to forward data. Avoid or alleviate the situation of low forwarding quality caused by data forwarding on these erroneous links.
  • the first forwarding path includes at least one bit error link, the bit error link is a link with bit errors, and the bit error index of the bit error link is called the bit error corresponding to the bit error link. index.
  • the bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition.
  • the forwarding node may first determine at least one error link in the first forwarding path.
  • the forwarding node may detect the error link on the first forwarding path based on a bidirectional forwarding detection (BFD) protocol. Afterwards, the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition when the at least one error index corresponding to the at least one error link does not meet the preset condition.
  • BFD bidirectional forwarding detection
  • the at least one error indicator does not meet the preset condition.
  • the at least one error index corresponding to the at least one error link does not meet the preset condition, including: the at least one error link.
  • One or more of the bit error indicators do not meet the preset condition; or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition.
  • the statistical value of the at least one bit error indicator may be the cumulative sum, median, average or weighted average of the at least one bit error indicator, and the statistical value of the at least one bit error indicator may also be: the at least one bit error indicator In a bit error indicator, the number of bit error indicators that do not meet the indicator requirements, etc.
  • the at least one bit error indicator is at least one bit error rate, and one or more of the at least one bit error indicator does not meet a preset condition, including: one or more of the at least one bit error rate.
  • a plurality of bit error rate thresholds do not meet (for example, greater than the bit error rate threshold, or greater than or equal to the bit error rate threshold); or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link
  • the setting condition includes: the number of the at least one bit error rate that does not meet the bit error rate threshold exceeds a preset value, or the cumulative sum of the at least one bit error rate does not meet the preset value.
  • the first forwarding path includes: one or more subpaths with the same head node and the same tail node, and the data that needs to be forwarded on the first forwarding path can be forwarded through any of these subpaths.
  • these subpaths can be used for load sharing.
  • the first forwarding path may be a candidate path (candidate path) in a segment routing policy (SRv6 policy) or a segment routing traffic engineering policy (SR-TE policy) based on Internet Protocol Version 6, and the candidate path includes at least one segment A routing list (segment list), the sub-path in the first forwarding path may be the data forwarding path indicated by the segment list in the candidate path.
  • SRv6 policy segment routing policy
  • SR-TE policy segment routing traffic engineering policy
  • bit-error sub-path there may be at least one bit-error sub-path in the first forwarding path, and the bit-error sub-path is a sub-path with bit errors.
  • the bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition.
  • the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition according to the at least one error index corresponding to the at least one error sub-path does not meet the preset condition.
  • the at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition, and it can be referred to that the at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition, which is not repeated in this application.
  • the second forwarding path does not include the at least one error sub-path One or more of the codon paths. Since the second forwarding path does not include one or more bit error sub-paths in the first forwarding path, the forwarding node can avoid data forwarding on the one or more bit error sub-paths by using the second forwarding path to forward data, so it can avoid or Alleviate the situation of low forwarding quality caused by data forwarding on these bit-error subpaths.
  • the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels.
  • the forwarding node may switch the first forwarding path to the second forwarding path according to the routing policy for the data tunnel.
  • the forwarding node can switch the first data tunnel to The second data tunnel is used to switch the data forwarding path from the first forwarding path to the second forwarding path.
  • the second forwarding path may be a path calculated by the forwarding node.
  • the method may further include: before the forwarding node switches the first forwarding path to the second forwarding path, calculating the second forwarding path.
  • the second forwarding path is a path calculated by the forwarding node (for example, calculated based on an interior gateway protocol (Interior Gateway Protocol, IGP)).
  • IGP Interior Gateway Protocol
  • the forwarding node may be any node on the first forwarding path, such as a head node or an intermediate node.
  • the second forwarding path may be a path in the data tunnel, or may not be a path in the data tunnel, which is not uniquely limited in this embodiment of the present application.
  • the second data tunnel may be a tunnel pre-configured for upper-layer services in the forwarding node, and the forwarding node determines When the bit error indicator of the first forwarding path does not meet the preset condition, the first data tunnel may be switched to the second data tunnel, so that the first forwarding path is switched to the second forwarding path.
  • the upper layer service may be any service, such as a Layer 3 Virtual Private Network (Layer 3 Virtual Private Network, L3VPN) service and the like.
  • the second data tunnel may be a data tunnel planned by the controller.
  • the method further includes: before switching the first forwarding path to the second forwarding path, the forwarding node sends a switching request message for requesting switching of the first data tunnel to the controller; after that , the forwarding node receives a handover response message from the controller, and the handover response message can be used to instruct to use the second data tunnel to forward the data; at this time, the forwarding node is switching the first forwarding path to the first forwarding path.
  • the first forwarding path may be switched to the second forwarding path in the second data tunnel to forward the data.
  • the request message is a Border Gateway Protocol (Border Gateway Protocol, BGP) message.
  • Border Gateway Protocol Border Gateway Protocol, BGP
  • the forwarding node may first adjust the first forwarding path based on the policy of the first data tunnel.
  • the forwarding node may switch the first data tunnel to the second data tunnel, so as to switch the first forwarding path in the first data tunnel Switch to the second forwarding path in the second data tunnel.
  • the method further includes: the forwarding node sends an error message to the controller according to the error index of the first forwarding path not meeting a preset condition, where the error message is used to notify and communicate with the first forwarding path.
  • Bit error information associated with the forwarding path may include: a bit error indicator of the first forwarding path does not meet a preset condition, an errored link in the first forwarding path, and an errored link in the first forwarding path that does not meet the preset condition.
  • the adjustment status of the first forwarding path by the forwarding node for example, the forwarding node switches the first forwarding path to the second forwarding path, etc.
  • the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information.
  • Path management and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
  • the error message is a BGP message.
  • the method further includes: the forwarding node obtains a path indication of one or more paths that are allowed to be adjusted, the one or more paths include: at least one path different from the first forwarding path;
  • the second forwarding path may be determined from the at least one path different from the first forwarding path according to the path indication, and the first forwarding path may be changed to the second forwarding path.
  • a forwarding path is switched to the second forwarding path; when the forwarding node reduces the transmission ratio of data on the first forwarding path, the forwarding node may indicate the path from the at least one different from the first forwarding path according to the path.
  • a third forwarding path is determined in the path, the transmission ratio of the data on the first forwarding path is reduced, and the transmission ratio of the data on the third forwarding path is increased.
  • whether the second forwarding path and the third forwarding path belong to the paths allowed to be adjusted can be set as required, so the flexibility of path adjustment can be improved.
  • the forwarding node may also determine whether the first forwarding path belongs to a path that allows adjustment, and only performs the first forwarding path when it is determined that the first forwarding path belongs to a path that allows adjustment. Adjustment.
  • the method further includes: the forwarding node obtains a path indication of one or more paths that are allowed to be adjusted; when the forwarding node switches the first forwarding path to the second forwarding path, the forwarding node can adjust the path according to the one or more paths that are allowed to be adjusted.
  • the first forwarding path is switched to the second forwarding path; when the forwarding node reduces the transmission ratio of the data on the first forwarding path, it can adjust according to the permission
  • One or more of the paths include the first forwarding path, reducing the proportion of data transmission on the first forwarding path.
  • the first forwarding path has certain requirements on data forwarding quality
  • one or more paths that are allowed to be adjusted may include the first forwarding path; when the first forwarding path does not require data forwarding quality, one or more paths that are allowed to be adjusted The path may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
  • the above path indication may be delivered by the controller to the forwarding node, may be delivered by other devices to the forwarding node, or may be configured locally by the forwarding node, which is not limited in this embodiment of the present application.
  • the path indication is issued by the controller to the forwarding node, the path indication is carried in the BGP message or the Path Computation Element Protocol (Path Computation Element Protocol, PCEP) message sent by the controller to the forwarding node.
  • the BGP message or the PCEP message may be a message for delivering a policy of the data tunnel.
  • head nodes of the first forwarding path and the second forwarding path are the forwarding nodes, and tail nodes of the first forwarding path and the second forwarding path are the same.
  • the head nodes and tail nodes of these forwarding paths may be different in some scenarios, but at least they can be associated based on some indication relationships, so that the forwarding node can determine that the first node can be A forwarding path is switched to the second forwarding path.
  • the first forwarding path belongs to a path in the SRv6 policy or the SR-TE policy.
  • the forwarding node may switch the first forwarding path to the second forwarding path in the SRv6 policy or the SR-TE policy, wherein the The first forwarding path and the second forwarding path are different candidate paths in the SRv6 policy or the SR-TE policy, or different segments in the same candidate path in the SRv6 policy or the SR-TE policy list instructions. It can be seen that when the first forwarding path is a certain candidate path in the first data tunnel, the forwarding node can switch the first forwarding path to another candidate path in the policy of the first data tunnel, so as to convert the first forwarding path to another candidate path in the policy of the first data tunnel. Switch to the second forwarding path. At this time, the first forwarding path and the second forwarding path are different candidate paths in the policy of the first data tunnel.
  • the second forwarding path may be a candidate path with the highest priority other than the first forwarding path in the first data tunnel.
  • the forwarding node may reduce the transmission ratio of data on the first forwarding path, and increase the candidate path that belongs to the same candidate path as the first forwarding path and is sent by other nodes.
  • the proportion of the transmission of the data on one or more paths indicated by the segment list It can be seen that when the first forwarding path is a data forwarding path indicated by a certain segment routing list in a candidate path in the first data tunnel, the forwarding node can switch the first forwarding path to another segment routing list in the candidate path.
  • the first forwarding path and the second forwarding path are data forwarding paths indicated by different segment routing lists in the same candidate path in the policy of the first data tunnel.
  • the forwarding node may also switch the second forwarding path back to the second forwarding path according to the code error indicator of the first forwarding path meeting a preset condition. the first forwarding path; or, after reducing the transmission ratio of data on the first forwarding path, the forwarding node may also restore the data in the first forwarding path according to the error index of the first forwarding path meeting a preset condition. A proportion of transmissions on a forwarding path.
  • the forwarding node may also send a message to the controller for announcing the second forwarding path.
  • the information of switching back to the first forwarding path (or restoring the transmission ratio of data on the first forwarding path) so that the controller can manage the network topology of the node and the data forwarding paths laid out on multiple nodes according to the information.
  • a path adjustment method includes: a controller sends an indication message to a forwarding node, and the controller receives a bit error message sent by the forwarding node; wherein the indication message is used to indicate the The forwarding node determines to use the first forwarding path to forward data; the error message is used to announce the error information associated with the first forwarding path.
  • the controller can plan the first data tunnel according to the network topology between nodes, and deliver an instruction message for instructing to use the first data tunnel to forward data to the forwarding node.
  • the forwarding node may be the head node of the data tunnel.
  • the instruction message sent by the controller to the forwarding node may include: the policy of the first data tunnel (such as SRv6 policy or SR-TE policy).
  • the strategy of the first data tunnel includes: multiple candidate paths, each candidate path includes multiple segment routing lists, and each segment routing list is used to indicate a data forwarding path.
  • the segment routing list may be a list of labels of nodes on the data forwarding path indicated by the segment routing list.
  • the segment routing list may be a list of Internet Protocol Version 6 (IPV6) addresses of nodes on the data forwarding path indicated by the segment routing list.
  • IPV6 Internet Protocol Version 6
  • the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information.
  • Path management and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
  • the method further includes: after receiving the handover request message sent by the forwarding node, the controller sends a handover response message to the forwarding node according to the handover request message, where the handover response message is used to indicate
  • the forwarding node determines to use a second forwarding path to forward the data, and the second forwarding path is a forwarding path determined to be used after the forwarding node switches the first forwarding path.
  • the second data tunnel may be a data tunnel planned by the controller.
  • the forwarding node may determine the second data tunnel by means of the controller, and then switch the first forwarding path to the second forwarding path in the second data tunnel.
  • the handover request message is a BGP message.
  • the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels; the second forwarding path is the forwarding path
  • the node determines the used forwarding path after switching the first forwarding path.
  • the forwarding node may switch the first forwarding path to the second forwarding path according to the policy of the data tunnel (also referred to as a routing policy for the data tunnel). .
  • the forwarding node can switch the first data tunnel to The second data tunnel is used to switch the data forwarding path from the first forwarding path to the second forwarding path.
  • the method includes: the controller sends a path indication of one or more paths that allow adjustment to the forwarding node, so as to instruct the forwarding node to perform path adjustment according to the path indication.
  • the forwarding node may also judge whether the second forwarding path belongs to one or more paths that are allowed to be adjusted. A forwarding path is switched to the second forwarding path.
  • the forwarding node may further determine whether the first forwarding path belongs to the path that allows adjustment, and adjusts the first forwarding path only when it is determined that the first forwarding path belongs to the path that allows adjustment.
  • the controller can set the path that is allowed to be adjusted as required, so the flexibility of path adjustment can be improved.
  • one or more paths set by the controller that allow adjustment may include the first forwarding path; when the first forwarding path does not require data forwarding quality, the controller sets The one or more paths that are allowed to adjust may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
  • the path indication is carried in the indication message.
  • the indication message may be a BGP message or a PCEP message.
  • a path adjustment apparatus in a third aspect, includes: a forwarding module and a first adjustment module.
  • the forwarding module is used for forwarding data using the first forwarding path;
  • the first adjustment module is used for switching the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet a preset condition , or, reducing the transmission ratio of data on the first forwarding path, wherein the path adjusting device is a node on the first forwarding path.
  • the path adjustment device provided by the present application can switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet the preset condition, or reduce the transmission ratio of data on the first forwarding path, so as to The adjustment of the first forwarding path is implemented.
  • the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the present application has higher efficiency in adjusting the path and stronger timeliness.
  • the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of an excessively high load of the controller is avoided.
  • the first forwarding path includes at least one error link, and the error link is a link with an error, and the second forwarding path does not include the at least one error link. one or more.
  • the first forwarding path includes at least one bit error link, the bit error link is a link with bit errors, and the bit error index of the bit error link is called the bit error corresponding to the bit error link. index.
  • the bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition.
  • the at least one error indicator does not meet the preset condition.
  • the at least one error index corresponding to the at least one error link does not meet the preset condition, including: the at least one error link.
  • One or more of the bit error indicators do not meet the preset condition; or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition.
  • the statistical value of the at least one bit error indicator may be the cumulative sum, median, average or weighted average of the at least one bit error indicator, and the statistical value of the at least one bit error indicator may also be: the at least one bit error indicator
  • the number of bit error indicators that do not meet the indicator requirements in a bit error indicator, etc., is not limited in this embodiment of the present application.
  • the at least one bit error indicator is at least one bit error rate, and one or more of the at least one bit error indicator does not meet a preset condition, including: one or more of the at least one bit error rate.
  • a plurality of bit error rate thresholds do not meet (for example, greater than the bit error rate threshold, or greater than or equal to the bit error rate threshold); or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link
  • the setting condition includes: the number of the at least one bit error rate that does not meet the bit error rate threshold exceeds a preset value, or the cumulative sum of the at least one bit error rate does not meet the preset value.
  • the first forwarding path includes: one or more sub-paths with the same head node and the same tail node, and the data that needs to be forwarded on the first forwarding path can pass through any one of these sub-paths. Forwarding, these subpaths can be used for load sharing.
  • the first forwarding path may be a candidate path in the SRv6 policy or the SR-TE policy
  • the candidate path includes at least one segment list
  • the sub-path in the first forwarding path may be the data forwarding path indicated by the segment list in the candidate path .
  • There may be at least one bit-error sub-path in the first forwarding path and the bit-error sub-path is a sub-path with bit errors.
  • the bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition.
  • the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition according to the at least one error index corresponding to the at least one error sub-path does not meet the preset condition.
  • the at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition, and it can be referred to that the at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition, which is not repeated in this application.
  • the second forwarding path does not include one of the at least one error sub-path or more. Since the second forwarding path does not include one or more bit error sub-paths in the first forwarding path, the forwarding node can avoid data forwarding on the one or more bit error sub-paths by using the second forwarding path to forward data, so it can avoid or Alleviate the situation of low forwarding quality caused by data forwarding on these bit-error subpaths.
  • the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels.
  • the first adjustment module in the path adjustment device may forward the first forwarding according to the policy of the data tunnel (also referred to as the routing policy for the data tunnel).
  • the path is switched to the second forwarding path.
  • the first adjustment module may Switch to the second data tunnel, so that the data forwarding path is switched from the first forwarding path to the second forwarding path.
  • the path adjustment apparatus further includes: a calculation module, configured to calculate (eg, calculate based on IGP) the second forwarding path.
  • a calculation module configured to calculate (eg, calculate based on IGP) the second forwarding path.
  • the forwarding node determines that the bit error index of the first forwarding path does not meet the preset condition, it can calculate the second forwarding path, and then switch the first forwarding path to the second forwarding path, and this process does not need to rely on Therefore, the timeliness of switching the first forwarding path to the second forwarding path is relatively high.
  • the forwarding node may be any node on the first forwarding path, such as a head node or an intermediate node.
  • the second forwarding path may be a path in the data tunnel, or may not be a path in the data tunnel, which is not limited in this embodiment of the present application.
  • the first forwarding path belongs to a first data tunnel
  • the second forwarding path belongs to a second data tunnel
  • the path adjustment apparatus further includes: a first sending module and a receiving module.
  • the first sending module is configured to send a switching request message for requesting switching of the first data tunnel to the controller
  • the receiving module is configured to receive a switching response message from the controller, where the switching response message is used to indicate the use of The second data tunnel forwards the data
  • the first adjustment module is configured to: switch the first forwarding path to the second forwarding path in the second data tunnel to forward the data.
  • the request message is a BGP message.
  • the path adjustment device further includes: a second sending module, configured to send an error message to the controller according to the error index of the first forwarding path not meeting a preset condition, and the error message is used for for notifying bit error information associated with the first forwarding path.
  • the bit error information may include: a bit error indicator of the first forwarding path does not meet a preset condition, an errored link in the first forwarding path, and an errored link in the first forwarding path that does not meet the preset condition.
  • the adjustment status of the first forwarding path by the forwarding node for example, the forwarding node switches the first forwarding path to the second forwarding path, etc.
  • the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information.
  • Path management and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
  • the path adjustment apparatus includes: an obtaining module, configured to obtain a path indication of one or more paths that allow adjustment, the one or more paths include: at least one path different from the first forwarding path ; the first adjustment module is configured to: determine the second forwarding path from the at least one path different from the first forwarding path according to the path indication, and switch the first forwarding path to the the second forwarding path; or, determining a third forwarding path from the at least one path different from the first forwarding path according to the path indication, and reducing the transmission ratio of the data on the first forwarding path , and increase the transmission ratio of the data on the third forwarding path.
  • whether the second forwarding path and the third forwarding path belong to the paths allowed to be adjusted can be set as required, so the flexibility of path adjustment can be improved.
  • the path adjustment device includes: an obtaining module configured to obtain a path indication of one or more paths that are allowed to be adjusted; the first adjustment module is configured to: according to the one or more paths allowed to be adjusted, include: For the first forwarding path, switch the first forwarding path to the second forwarding path; or, according to the allowable adjustment of one or more paths including the first forwarding path, reduce the amount of data to be forwarded in the first forwarding path.
  • the transmission scale on the path It can be seen that, before adjusting the first forwarding path, the forwarding node can also determine whether the first forwarding path belongs to the path that allows adjustment, and only performs the first forwarding path when it is determined that the first forwarding path belongs to the path that allows adjustment. Adjustment.
  • one or more paths that are allowed to be adjusted may include the first forwarding path; when the first forwarding path does not require data forwarding quality, one or more paths that are allowed to be adjusted The path may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
  • the path indication is carried in a BGP message or a PCEP message sent by the controller to the path adjustment apparatus.
  • head nodes of the first forwarding path and the second forwarding path are the path adjustment apparatus, and tail nodes of the first forwarding path and the second forwarding path are the same.
  • the head nodes and tail nodes of these forwarding paths may be different in some scenarios, but at least they can be associated based on some indication relationships, so that the forwarding node can determine that the first node can be A forwarding path is switched to the second forwarding path.
  • the first forwarding path belongs to a path in an SRv6 policy or an SR-TE policy
  • the first adjustment module is configured to: switch the first forwarding path to the SRv6 policy or the SR-TE policy
  • the second forwarding path in the policy wherein the first forwarding path and the second forwarding path are different candidate paths in the SRv6 policy or the SR-TE policy, or are determined by the SRv6 policy or Different segment routing lists in the same candidate path in the SR-TE policy indicate; optionally, the second forwarding path may be a candidate path with the highest priority other than the first forwarding path in the first data tunnel .
  • the first adjustment module is configured to: reduce the transmission ratio of data on the first forwarding path, and increase one or more paths that belong to the same candidate path as the first forwarding path and are indicated by other segment lists The proportion of the data transmitted on the path.
  • the first forwarding path and the second forwarding path are data forwarding paths indicated by different segment routing lists in the same candidate path in the policy of the first data tunnel.
  • the path adjustment device further includes: a second adjustment module.
  • the second adjustment module is configured to: switch the second forwarding path back to the first forwarding path according to the bit error index of the first forwarding path meeting a preset condition; or, according to the error of the first forwarding path If the bit error indicator meets the preset condition, the transmission ratio of the data on the first forwarding path is restored.
  • a path adjustment apparatus in a fourth aspect, includes: a first sending module and a first receiving module.
  • the first sending module is configured to send an instruction message to the forwarding node, where the instruction message is used to instruct the forwarding node to determine to use the first forwarding path to forward data;
  • the first receiving module is configured to receive the error code sent by the forwarding node message, where the bit error message is used to announce bit error information associated with the first forwarding path.
  • the path adjustment apparatus can, according to the bit error information, analyze the network topology of the node and the information about the network topology of the node, and the information about the code layout on multiple nodes.
  • the data forwarding path is managed, and the path adjustment device can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
  • the path adjustment apparatus further includes: a second receiving module, configured to receive a handover request message sent by the forwarding node; a second sending module, configured to send a handover request message to the forwarding node according to the handover request message A response message, where the switching response message is used to instruct the forwarding node to determine to use a second forwarding path to forward the data, and the second forwarding path is the forwarding path determined to be used by the forwarding node after switching the first forwarding path .
  • the second data tunnel may be a data tunnel planned by the path adjustment apparatus.
  • the forwarding node may determine the second data tunnel by means of the path adjustment device, and then switch the first forwarding path to the second forwarding path in the second data tunnel.
  • the handover request message is a BGP message.
  • the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels; the second forwarding path is the forwarding path
  • the node determines the used forwarding path after switching the first forwarding path.
  • the path adjustment apparatus includes: a third sending module, configured to send a path indication of one or more paths that allow adjustment to the forwarding node, so as to instruct the forwarding node to perform path adjustment according to the path indication .
  • the path adjustment device in the present application can set a path that is allowed to be adjusted as required, so the flexibility of path adjustment can be improved.
  • the path adjustment device When the first forwarding path has certain requirements for data forwarding quality, one or more paths set by the path adjustment device that allow adjustment may include the first forwarding path; when the first forwarding path does not require data forwarding quality, the path adjustment One or more paths set by the device to allow adjustment may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
  • the path indication is carried in the indication message.
  • the indication message may be a BGP message or a PCEP message.
  • a communication system in a fifth aspect, includes: a plurality of nodes; at least some of the nodes in the plurality of nodes are located on a first forwarding path, and the forwarding node is any node on the first forwarding path.
  • a node for example, a path head node of a tunnel end device; the forwarding node is configured to: forward data using the first forwarding path; The forwarding path is switched to the second forwarding path, or the ratio of data transmission on the first forwarding path is reduced.
  • Other nodes other than the forwarding node in the at least part of the nodes are configured to: receive data forwarded by the forwarding node according to the first forwarding path, or forward data to the forwarding node.
  • the forwarding node can switch the first forwarding path to the second forwarding path according to the fact that the error index of the first forwarding path does not meet the preset condition, or reduce the transmission ratio of data on the first forwarding path, so as to realize the forwarding of the first forwarding path.
  • Path adjustment the problem of low forwarding quality caused by at least part of the data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated.
  • the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the present application has higher efficiency in adjusting the path and stronger timeliness.
  • the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of an excessively high load of the controller is avoided.
  • the communication system further includes: a controller; the controller is configured to: send a path indication message to the forwarding node, and the forwarding node is configured to: determine to use the first forwarding path for forwarding according to the path indication message data.
  • a communication system in a sixth aspect, includes: a controller and a forwarding node; the controller is configured to: send a path indication message to the forwarding node; the forwarding node is configured to: After the message determines to use the first forwarding path to forward data, the first forwarding path is switched to the second forwarding path according to the error indicator of the first forwarding path does not meet the preset condition, or the data is reduced in the first forwarding path.
  • a transmission ratio on a forwarding path wherein the forwarding node is a node on the first forwarding path.
  • the forwarding node can switch the first forwarding path to the second forwarding path according to the fact that the error index of the first forwarding path does not meet the preset condition, or reduce the transmission ratio of data on the first forwarding path, so as to realize the forwarding of the first forwarding path.
  • Path adjustment the problem of low forwarding quality caused by at least part of the data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated.
  • the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the present application has higher efficiency in adjusting the path and stronger timeliness.
  • the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of an excessively high load of the controller is avoided.
  • the first forwarding path includes at least one error link
  • the error link is a link with errors
  • the second forwarding The path does not include one or more of the at least one errored link. Since the second forwarding path does not include one or more error links in the first forwarding path, the forwarding node can avoid data forwarding on the one or more error links by using the second forwarding path to forward data. Avoid or alleviate the situation of low forwarding quality caused by data forwarding on these erroneous links.
  • the first forwarding path includes at least one bit error link, the bit error link is a link with bit errors, and the bit error link is The bit error indicator is called the bit error indicator corresponding to the bit error link.
  • the bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition.
  • the forwarding node may detect the error link on the first forwarding path based on the BFD protocol. Afterwards, the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition when the at least one error index corresponding to the at least one error link does not meet the preset condition.
  • the at least one bit error indicator does not meet the preset condition, for example, at least one bit error corresponding to the at least one bit error link.
  • the indicators do not meet the preset conditions, including: one or more of the at least one bit error indicators do not meet the preset conditions; or, the statistical value of the at least one bit error indicator corresponding to the at least one bit error link does not meet the requirements preset conditions.
  • the statistical value of the at least one bit error indicator may be the cumulative sum, median, average or weighted average of the at least one bit error indicator, and the statistical value of the at least one bit error indicator may also be: the at least one bit error indicator
  • the number of bit error indicators that do not meet the indicator requirements in a bit error indicator, etc., is not limited in this embodiment of the present application.
  • the at least one bit error indicator is at least one bit error rate, and one or more of the at least one bit error indicator does not meet a preset condition, Including: one or more of the at least one bit error rate does not meet the bit error rate threshold (for example, greater than the bit error rate threshold, or greater than or equal to the bit error rate threshold); or, the at least one bit error link
  • the statistical value of the corresponding at least one bit error index does not meet the preset condition, including: the number of the at least one bit error rate that does not meet the bit error rate threshold exceeds the preset value, or, the at least one bit error rate The accumulated sum does not meet the preset value.
  • the first forwarding path includes: one or more sub-paths with the same head node and the same tail node, which need to be forwarded on the first forwarding path. Data can be forwarded through any of these sub-paths, and these sub-paths can be used for load balancing.
  • the first forwarding path may be a candidate path in the SRv6 policy or the SR-TE policy
  • the candidate path includes at least one segment list
  • the sub-path in the first forwarding path may be the data forwarding path indicated by the segment list in the candidate path .
  • There may be at least one bit-error sub-path in the first forwarding path and the bit-error sub-path is a sub-path with bit errors.
  • the bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition.
  • the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition according to the at least one error index corresponding to the at least one error sub-path does not meet the preset condition.
  • the at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition, and it can be referred to that the at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition, which is not repeated in this application.
  • the second forwarding path does not include one of the at least one error sub-path or more. Since the second forwarding path does not include one or more bit error sub-paths in the first forwarding path, the forwarding node can avoid data forwarding on the one or more bit error sub-paths by using the second forwarding path to forward data, so it can avoid or Alleviate the situation of low forwarding quality caused by data forwarding on these bit-error subpaths.
  • the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to the same data tunnel. Different data tunnels.
  • the forwarding node may switch the first forwarding path to the second forwarding path according to the policy of the data tunnel.
  • the forwarding node can switch the first data tunnel to The second data tunnel is used to switch the data forwarding path from the first forwarding path to the second forwarding path.
  • the second forwarding path may be a path calculated by the forwarding node.
  • the forwarding node is further configured to: calculate the second forwarding path.
  • the second forwarding path is a path calculated by the forwarding node (for example, calculated based on IGP).
  • the forwarding node determines that the bit error index of the first forwarding path does not meet the preset condition, it can calculate the second forwarding path, and then switch the first forwarding path to the second forwarding path. This process does not need to rely on Therefore, the timeliness of switching the first forwarding path to the second forwarding path is relatively high.
  • the forwarding node may be any node on the first forwarding path, such as a head node or an intermediate node.
  • the second forwarding path may be a path in the data tunnel, or may not be a path in the data tunnel, which is not uniquely limited in this embodiment of the present application.
  • the second data tunnel may be forwarding.
  • the forwarding node determines that the bit error index of the first forwarding path does not meet the preset condition, it can switch the first data tunnel to the second data tunnel, so that the first forwarding path is switched to The second forwarding path.
  • the upper-layer service may be any service, such as an L3VPN service.
  • the first forwarding path belongs to a first data tunnel
  • the second forwarding path belongs to a second data tunnel
  • the second data tunnel may be planned by the controller data tunnel.
  • the forwarding node is further configured to: send a switching request message for requesting switching of the first data tunnel to the controller; the controller is further configured to: send the switching request message to the controller according to the switching request message
  • the forwarding node sends a switching response message, where the switching response message is used to instruct to use the second data tunnel to forward the data; the forwarding node is used for: switching the first forwarding path to the second data tunnel the second forwarding path to forward the data.
  • the request message is a BGP message.
  • the forwarding node may be configured to adjust the first forwarding path.
  • the forwarding node can be used to switch the first data tunnel to the second data tunnel, so as to switch the first data tunnel in the first data tunnel The forwarding path is switched to the second forwarding path in the second data tunnel.
  • the forwarding node is further configured to: send an error message to the controller according to the error indicator of the first forwarding path not meeting a preset condition,
  • the bit error message is used to announce bit error information associated with the first forwarding path.
  • the bit error information may include: a bit error indicator of the first forwarding path does not meet a preset condition, an errored link in the first forwarding path, and an errored link in the first forwarding path that does not meet the preset condition.
  • the adjustment status of the first forwarding path by the forwarding node for example, the forwarding node switches the first forwarding path to the second forwarding path, etc.
  • the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information.
  • Path management and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
  • the forwarding node is configured to: obtain a path indication of one or more paths that allow adjustment, where the one or more paths include: at least one path with different forwarding paths; determining the second forwarding path from the at least one path different from the first forwarding path according to the path indication, and switching the first forwarding path to the a second forwarding path; or, determining a third forwarding path from the at least one path different from the first forwarding path according to the path indication, and reducing the transmission ratio of the data on the first forwarding path, and increase the transmission ratio of the data on the third forwarding path.
  • whether the second forwarding path and the third forwarding path belong to the paths allowed to be adjusted can be set as required, so the flexibility of path adjustment can be improved.
  • the forwarding node may also determine whether the first forwarding path belongs to a path that allows adjustment, and after determining that the first forwarding path belongs to The first forwarding path is adjusted only when the adjusted path is allowed.
  • the forwarding node is configured to: obtain a path indication of one or more paths that are allowed to be adjusted; switch the first forwarding path according to the one or more paths that are allowed to be adjusted including the first forwarding path is the second forwarding path; or, one or more paths adjusted according to the permission include the first forwarding path, reducing the proportion of data transmission on the first forwarding path.
  • one or more paths that are allowed to be adjusted may include the first forwarding path; when the first forwarding path does not require data forwarding quality, one or more paths that are allowed to be adjusted The path may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
  • the above-mentioned path indication may be issued by the controller to the forwarding node, or may be issued by other devices to the forwarding node, or may be configured locally by the forwarding node. Yes, this is not limited in the embodiments of the present application.
  • the path indication is delivered by the controller to the forwarding node
  • the path indication is carried in the BGP message or PCEP message sent by the controller to the forwarding node.
  • the BGP message or the PCEP message may be a message for delivering a policy of the data tunnel.
  • the head nodes of the first forwarding path and the second forwarding path are the forwarding nodes, and the first forwarding path and the second forwarding path are the forwarding nodes.
  • the tail nodes of the forwarding path are the same. In other possible situations, it is not excluded that the head nodes and tail nodes of these forwarding paths may be different in some scenarios, but at least they can be associated based on some indication relationships, so that the forwarding node can determine that the first node can be A forwarding path is switched to the second forwarding path.
  • the first forwarding path belongs to a path in an SRv6 policy or an SR-TE policy
  • the forwarding node is configured to: switch the first forwarding path is the second forwarding path in the SRv6 policy or the SR-TE policy, wherein the first forwarding path and the second forwarding path are the SRv6 policy or the SR-TE policy
  • Different candidate paths are indicated by different segment routing lists in the same candidate path in the SRv6 policy or the SR-TE policy.
  • the forwarding node can switch the first forwarding path to another candidate path in the policy of the first data tunnel, so as to convert the first forwarding path to another candidate path in the policy of the first data tunnel. Switch to the second forwarding path.
  • the first forwarding path and the second forwarding path are different candidate paths in the policy of the first data tunnel.
  • the second forwarding path may be a candidate path with the highest priority other than the first forwarding path in the first data tunnel.
  • the first forwarding path belongs to a path in the SRv6 policy or the SR-TE policy, and the forwarding node is configured to: reduce the transmission ratio of data on the first forwarding path, and increase the ratio of data transmission on the first forwarding path The proportion of data transmission on one or more paths that belong to the same candidate path and are indicated by other segment lists. It can be seen that when the first forwarding path is a data forwarding path indicated by a certain segment routing list in a candidate path in the first data tunnel, the forwarding node can switch the first forwarding path to another segment routing list in the candidate path. The indicated data forwarding path. In this case, the first forwarding path and the second forwarding path are data forwarding paths indicated by different segment routing lists in the same candidate path in the policy of the first data tunnel.
  • the forwarding node is further configured to: switch the second forwarding path back to the second forwarding path according to the error indicator of the first forwarding path meeting a preset condition. the first forwarding path; or, according to the bit error index of the first forwarding path meeting a preset condition, restore the transmission ratio of the data on the first forwarding path.
  • the forwarding node may also be configured to: after switching the second forwarding path back to the original first forwarding path (or after restoring the transmission ratio of data on the first forwarding path), send a notification to the controller for the first forwarding path. 2.
  • a network device in a seventh aspect, includes: a processor and a memory, where a program is stored in the memory, and the processor is configured to call the program stored in the memory, so that the network device Perform the path adjustment method described in any design of the first aspect.
  • a network device in an eighth aspect, includes: a processor and a memory, where a program is stored in the memory, and the processor is configured to call the program stored in the memory, so that the network device The path adjustment method described in any design of the second aspect is performed.
  • a computer storage medium where a computer program is stored in the storage medium, and the computer program is used to execute the path adjustment method according to any design of the first aspect.
  • a computer storage medium where a computer program is stored in the storage medium, and the computer program is used to execute the path adjustment method according to any design of the second aspect.
  • a computer program product containing instructions is provided, when the computer program product is executed on the path adjustment apparatus, the path adjustment apparatus executes the path adjustment method described in any one of the designs of the first aspect.
  • a twelfth aspect provides a computer program product comprising instructions, which, when the computer program product runs on the path adjustment device, causes the path adjustment device to execute the path adjustment method according to any design of the second aspect.
  • FIG. 1 is a schematic diagram of a scenario in which data is forwarded along a data forwarding path according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of another scenario in which data is forwarded along a data forwarding path according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a network device according to an embodiment of the present application.
  • FIG. 4 is a flowchart of a path adjustment method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a data forwarding path provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another data forwarding path provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a path adjustment provided by an embodiment of the present application.
  • FIG. 8 is another schematic diagram of path adjustment provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a bit error TLV provided by an embodiment of the present application.
  • FIG. 10 is another schematic diagram of path adjustment provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a first TLV according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a second TLV provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a path adjustment device provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of another path adjustment apparatus provided by an embodiment of the present application.
  • a communication system usually includes a plurality of nodes, and a node can be any device capable of forwarding data, such as a router, a gateway, and the like.
  • the nodes in the communication system are connected by links.
  • Data forwarding paths may be deployed in the communication system. At least two nodes in the communication system (which may be located in the same network domain or in different network domains) are located on the data forwarding path, and the data forwarding path includes a link between the at least two nodes. Each node on the data forwarding path can forward data along the data forwarding path.
  • the data forwarding path in this embodiment of the present application may be any type of path, for example, a path for forwarding Internet Protocol (Internet Protocol, IP) data, or a data tunnel path.
  • the data tunnel may be any tunnel for forwarding data, for example, an SRv6 policy tunnel, an SR-TE policy tunnel, or a best-effort segment routing (Segment-Routing BestEffort, SR-BE) policy tunnel, and the like.
  • FIG. 1 is a schematic diagram of a scenario in which data is forwarded along a data forwarding path according to an embodiment of the present application.
  • the scenario includes node 1 to node 6, wherein node 1, node 2, node 3 and Node 4 is located on the data forwarding path.
  • node 1 receives the data, it can forward the data to node 2; after node 2 receives the data sent by node 1, it can forward the data to node 3; after node 3 receives the data sent by node 2,
  • This data can be forwarded to node 4 .
  • data can be forwarded along the data forwarding path where node 1, node 2, node 3 and node 4 are located.
  • the data may be traffic flow.
  • FIG. 2 is a schematic diagram of another scenario in which data is forwarded along a data forwarding path provided by an embodiment of the present application.
  • the scenario in which data is forwarded along a data forwarding path may further include: controller.
  • the controller is connected with the nodes in the communication system (the connection relationship between the controller and each node is not shown in FIG. 2 ).
  • the controller is used to deploy the above data forwarding paths.
  • the data forwarding path in the scenario shown in FIG. 2 may be a path in the data tunnel, or may not be a path in the data tunnel, which is not limited in this embodiment of the present application.
  • the controller can obtain the connection relationship between multiple nodes based on the IGP or BGP protocol, and A network topology of multiple nodes is generated based on the connection relationship, and a data tunnel (such as an SRv6 policy tunnel or an SR-TE policy tunnel) is planned according to the network topology.
  • a data tunnel such as an SRv6 policy tunnel or an SR-TE policy tunnel
  • the controller When the controller deploys the data forwarding path, it can deliver the data tunnel policy (such as SRv6 policy or SR-TE policy) to the head node of the data tunnel based on BGP or PCEP, so that the head node can determine the data according to the data tunnel policy
  • the data forwarding path of the tunnel is further controlled to be forwarded along the data forwarding path.
  • a data tunnel strategy usually includes multiple candidate paths (Candidate paths), each candidate path includes one or more segment routing lists (segment lists), and each segment routing list is used to indicate a data forwarding path. Therefore, the policy of the data tunnel is used to indicate multiple data forwarding paths.
  • the candidate path in the policy of the data tunnel may not include the segment list.
  • a candidate path is a data forwarding path, and the policy of the data tunnel is used to indicate multiple data forwarding paths.
  • a data tunnel usually has a head node and a tail node. The head nodes of the multiple data forwarding paths indicated by the policy of the data tunnel are the head nodes of the data tunnel, and the tail nodes of the multiple data forwarding paths are the tail nodes of the data tunnel.
  • the policy of the data tunnel further includes a color (color) attribute of the data tunnel, which is used to indicate the service corresponding to the data tunnel.
  • the head node of the data tunnel can also determine the route matched by the data tunnel, and iterate the next hop of the route to the data tunnel, so that the data needs to be forwarded based on the route. Forwarded through the data forwarding path in the data tunnel. Wherein, for the data tunnel and its matching route, the tail node of the data tunnel is the next hop of the route, and the route carries the color attribute of the data tunnel.
  • the policy of the data tunnel includes multiple candidate paths
  • the data forwarding path for forwarding data in the data tunnel may be any candidate path
  • the policy of the data tunnel may further include an identifier of the candidate path (which may be referred to as a BSID).
  • the head node iterates the next hop of the route to the data tunnel, the next hop of the route can be changed to the identifier of the candidate path for forwarding data in the policy of the data tunnel.
  • an embodiment of the present application provides a path adjustment method, which can adjust the forwarding path when the bit error index of the first forwarding path does not meet the preset condition, thereby reducing the bit error of data and improving the Accuracy of data forwarding.
  • the path adjustment method provided by the embodiment of the present application can be used for the forwarding node and the controller (or only for the forwarding node). Before describing the path adjustment method provided by the embodiment of the present application, the embodiment of the present application briefly describes the structures of the forwarding node and the controller.
  • the forwarding node may include: a processor; the processor is coupled to the memory, and after reading the instructions in the memory, executes the method performed by the forwarding node as described in the embodiments of the present application according to the instructions.
  • the controller also includes: a processor; the processor is configured to be coupled with the memory, and after reading the instructions in the memory, execute the method executed by the controller as described in the embodiments of the present application according to the instructions.
  • the number of processors may be multiple, and the memory coupled to the processor may be independent of the processor or independent of the network device, or may be in the processor or within a network device.
  • the storage can be a physically independent unit, or a storage space on a cloud server or a network hard disk.
  • the memory may be one or more.
  • the number of memories is multiple, they can be located in the same or different positions, and can be used independently or in combination.
  • FIG. 3 is a schematic structural diagram of a network device according to an embodiment of the present application.
  • the network device 200 includes: a processor 202 and a memory 201, wherein the memory 201 is used for storing a program, and the processor 202 is used for calling the program stored in the memory 201, so that the network device executes a corresponding method or function.
  • the network device 200 may further include at least one communication interface 203 and at least one communication bus 204 .
  • the memory 201 , the processor 202 and the communication interface 203 are communicatively connected through a communication bus 204 .
  • the communication interface 203 is used to communicate with other devices under the control of the processor 202 , and the processor 202 can call the program stored in the memory 201 through the communication bus 204 .
  • FIG. 4 is a flowchart of a path adjustment method provided by an embodiment of the present application.
  • the path adjustment method can be used in the scenario shown in FIG. 2 , and the data forwarding path shown in FIG. 2 is an SRv6 policy tunnel or SR. -The path of the TE policy tunnel.
  • the path adjustment method may include:
  • the controller sends an indication message to the forwarding node, where the indication message is used to instruct to use the first data tunnel to forward data.
  • the controller can plan the first data tunnel according to the network topology between the nodes, and deliver an instruction message for instructing to use the first data tunnel to forward data to the forwarding node.
  • the forwarding node may be the head node of the data tunnel.
  • the forwarding node may be node 1, and node 1 forwards data using the first data tunnel and forwards data from Node 1 forwards to Node 4.
  • the instruction message sent by the controller to the forwarding node may include: the policy of the first data tunnel (such as SRv6 policy or SR-TE policy).
  • the strategy of the first data tunnel includes: multiple candidate paths, each candidate path may include one or more segment routing lists, and each segment routing list is used to indicate a data forwarding path.
  • the segment routing list may be a list of labels of nodes other than the head node on the data forwarding path indicated by the segment routing list.
  • the segment routing list may be a list of Internet Protocol Version 6 (IPv6) addresses of nodes other than the head node on the data forwarding path indicated by the segment routing list.
  • IPv6 Internet Protocol Version 6
  • the candidate path in the policy of the data tunnel may not include the segment list.
  • a candidate path is a data forwarding path, which is not limited in this embodiment of the present application.
  • the label of node 2 is node label 2
  • the label of node 3 is node label 3
  • the label of node 4 is node label 4
  • the label of node 5 is node label 5
  • the label of node 6 is node label 6.
  • the policy of the first data tunnel includes candidate paths A and B.
  • the candidate path A includes three segment routing lists, namely segment routing list ⁇ node label 2, node label 3, node label 4>, segment routing list ⁇ node label 2, node label 4> and segment routing list ⁇ node label 4> .
  • the three data forwarding paths indicated by the three segment routing lists are the data forwarding paths 1, 2 and 3 shown in FIG. 5 .
  • the candidate path B includes two segment routing lists, namely the segment routing list ⁇ node label 5, node label 4> and the segment routing list ⁇ node label 5, node label 6, node label 4>.
  • the two data forwarding paths indicated by the two segment routing lists in the candidate path B are the data forwarding paths 4 and 5 shown in FIG. 6 .
  • the candidate path includes multiple segment routing lists.
  • the candidate path may also include a segment routing list, for example, the candidate path A includes the segment routing list ⁇ node label 2, node label 3, node label 4>, and the candidate path B includes the segment routing list ⁇ node label 5, node label 4> Label 4>.
  • the candidate path may not include the segment routing list.
  • the candidate paths A and B do not include the segment routing list.
  • the candidate path A is the data forwarding path 1 shown in FIG. 5
  • the candidate path B is the data forwarding path 1 shown in FIG. 6 . data forwarding path 4 shown.
  • the forwarding node forwards the data by using the forwarding path in the first data tunnel.
  • the first data tunnel may include multiple data forwarding paths (multiple data forwarding paths indicated by the policy of the first data tunnel).
  • the forwarding node may determine at least one data forwarding path for forwarding data in the first data tunnel according to the indication message, and use the at least one data forwarding path to forward data.
  • the first data tunnel includes five paths in total, which are: three data forwarding paths in FIG. 5 and three data forwarding paths in FIG. 6 .
  • the forwarding node can filter out a path for forwarding data from the five data forwarding paths according to certain rules.
  • each candidate path in the policy of the first data tunnel has a priority, for example, the priority of candidate path A in Table 1 is 1, and the priority of candidate path B is 2.
  • the forwarding node may use the data forwarding path indicated by the segment routing list in the candidate path with the highest priority as the path for forwarding data. Referring to Table 1, the candidate path with the highest priority is the candidate path A, then the forwarding node can use the data forwarding paths 1, 2 and 3 in FIG. 5 indicated by the segment routing list in the candidate path A to forward data.
  • the forwarding node may forward the data according to the segment routing list used to indicate the forwarding path. For example, take the forwarding node as node 1 in FIG. 5 , and node 1 forwards data by using data forwarding path 1 indicated by the segment routing list ⁇ node label 2, node label 3, node label 4> as an example.
  • node 1 receives a data packet that needs to be forwarded on the first data tunnel, it can add the segment routing list to the data packet, and then send the data packet to the first node label (node label 2) in the segment routing list. ) corresponding to the node (node 2).
  • node 2 After receiving the data packet, node 2 can delete the label of node 2 (node label 2) in the segment routing list, and then send the data packet to the corresponding node label (node label 3) in the segment routing list. node (node 3). After receiving the data packet, node 3 can delete the label of node 3 (node label 3) in the segment routing list, and then send the data packet to the corresponding node label (node label 4) in the segment routing list. node (node 4). After receiving the data packet, node 4 can delete the label of node 4 (node label 4 ) in the segment routing list, so as to obtain the data packet received by node 1 . In this way, the head node (node 1 ) of the first data tunnel forwards the data packet to the tail node (node 4 ) of the first data tunnel along the data forwarding path 1 .
  • the forwarding node may forward data using a data forwarding path indicated by a segment routing list in the candidate path with the highest priority.
  • the forwarding node can use the candidate path with the highest priority to forward data.
  • the forwarding node determines that the bit error indicator of the first forwarding path does not meet the preset condition, and the first forwarding path belongs to a data forwarding path used for forwarding data in the first data tunnel.
  • the forwarding node may use all or part of the at least one data forwarding path as the first forwarding path, and detect errors in the first forwarding path. Whether the code index meets the preset conditions. For example, the forwarding node takes a candidate path in the first data tunnel (the candidate path may include at least one segment routing list, or may not include the segment routing list) as the first forwarding path; when the candidate path in the first data tunnel When the segment routing list is included, the forwarding node may also use the data forwarding path indicated by a certain segment routing list in the first data tunnel as the first forwarding path.
  • the first forwarding path may be the candidate path A, Including data forwarding paths 1, 2 and 3, the first forwarding path may also be data forwarding paths 1, 2 or 3.
  • the first forwarding path may be the data forwarding path 1 .
  • the candidate path A does not include a segment routing list, and the candidate path A is the data forwarding path 1 in FIG. 5
  • the first forwarding path may be the candidate path A (that is, the data forwarding path 1).
  • bit error indicator is an indicator related to bit error, such as a bit error rate (symbol error rate, SER) in the usual sense or a bit error obtained by deforming a simple formula based on the usual calculation method of the bit error rate. Indicators, such as the duration of bit errors or the amount of bit error data, etc.
  • the bit error rate is equal to the proportion of the number of bit errors in the total number of forwarded codes. Meeting the preset conditions and not meeting the preset conditions are relative, so meeting the preset conditions can also be naturally understood as not meeting a corresponding condition, and not meeting the preset conditions can also be naturally understood as meeting a corresponding condition.
  • the forwarding node in S103 may determine that the bit error indicator of the first forwarding path does not meet the preset condition, Switch the first forwarding path to the second forwarding path; when the preset condition is that the bit error rate is greater than the bit error rate threshold, the forwarding node in S103 may, according to the error index of the first forwarding path meeting the preset condition, forward the first forwarding The path is switched to the second forwarding path.
  • the first forwarding path includes at least one bit error link (a bit error link is a link with bit errors), and in this embodiment of the present application, the bit error index of the bit error link may be referred to as a bit error link. Corresponding bit error indicator.
  • the error index of the first forwarding path in S103 does not meet the preset condition, which may include: at least one error index corresponding to the at least one error link does not meet the preset condition.
  • the forwarding node may first determine at least one error link in the first forwarding path.
  • the forwarding node may detect the error link on the first forwarding path based on a bidirectional forwarding detection (Bidirectional Forwarding Detection, BFD) protocol.
  • BFD bidirectional Forwarding Detection
  • the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition when the at least one error index corresponding to the at least one error link does not meet the preset condition. For example, it is assumed that the first forwarding path includes links 1, 2 and 3, and bit errors occur on links 1 and 2, but no bit errors occur on link 3. The forwarding node may determine that the error index of the first forwarding path does not meet the preset condition after determining that the error index of link 1 does not meet the preset condition and the error index of link 2 does not meet the preset condition.
  • the above-mentioned at least one bit error index does not meet the preset conditions can be understood in various ways, for example: one or more of the at least one error index index does not meet the preset conditions (that is, there are any errors in the at least one error index that do not meet the preset conditions. or the statistic value of the at least one bit error indicator does not meet the preset condition.
  • the statistical value of the at least one bit error indicator may be the cumulative sum, median, average or weighted average of the at least one bit error indicator, and the statistical value of the at least one bit error indicator may also be: the at least one bit error indicator
  • the number of bit error indicators that do not meet the indicator requirements in a bit error indicator, etc., is not limited in this embodiment of the present application.
  • the at least one bit error indicator corresponding to the at least one bit error link described above is the at least one bit error rate.
  • one or more of the above at least one bit error index does not meet the preset condition, including: one or more of the at least one bit error rate does not meet the bit error rate threshold (for example, greater than the bit error rate threshold, or , greater than or equal to the bit error rate threshold); the statistical value of at least one bit error index corresponding to the at least one bit error link above does not meet the preset conditions, including: the at least one bit error rate does not meet the bit error rate threshold. The number exceeds the preset value, or the cumulative sum of the at least one bit error rate does not meet the preset value.
  • the first forwarding path includes links 1, 2 and 3, where link 1 and link 2 are both error links, link 3 is not an error link, and the error indicator is the error rate
  • the bit error rate of link 1 is 5%
  • the bit error rate of link 2 is 4%
  • the bit error rate threshold is 3%.
  • the forwarding node may determine the link 1 and link The bit error rates of path 2 are all greater than the bit error rate threshold, so it is determined that the two bit error rates corresponding to links 1 and 2 do not meet the bit error rate threshold, and the first forwarding path does not meet the preset condition.
  • the forwarding node can determine that the bit error rates of link 1 and link 2 are both greater than the bit error rate threshold, and determine that the number 2 of the two bit error rates that do not meet the bit error rate threshold exceeds the preset value of 1 , so that it is determined that the two bit error rates corresponding to the links 1 and 2 do not meet the preset conditions, and the first forwarding path does not meet the preset conditions.
  • the forwarding node can determine that the sum of the bit error rates of link 1 and link 2 is 9% greater than the preset value of 8%, thus determining that the two bit error rates corresponding to links 1 and 2 are not satisfied A preset condition, the first forwarding path does not meet the preset condition.
  • the bit error indicator of the first forwarding path does not meet the preset condition, and may include: the first forwarding At least one bit error index corresponding to at least one bit error sub-path in the path does not meet the preset condition.
  • the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition according to the at least one bit error index corresponding to the at least one sub-path does not meet the preset condition.
  • the data forwarded on the first forwarding path can be forwarded through any sub-path in the first forwarding path, each sub-path in the first forwarding path can be used for load balancing, and the bit-error sub-path means that there is an error in the sub-path. code subpath.
  • the first forwarding path may be a candidate path in the SRv6 policy or the SR-TE policy
  • the candidate path includes at least one segment routing list
  • the sub-paths in the first forwarding path may be the data forwarding indicated by the segment routing list in the candidate path. path.
  • the forwarding node switches the first forwarding path to the second forwarding path according to the error indicator of the first forwarding path not meeting the preset condition.
  • the forwarding node After the forwarding node determines that the bit error indicator of the first forwarding path does not meet the preset condition, it may determine that the quality of data forwarding on the first forwarding path is low. If the preset conditions are met, the first forwarding path is switched to the second forwarding path. The second forwarding path is different from the first forwarding path.
  • the first forwarding path includes at least one error link
  • the second forwarding path may not include one or more of the at least one error link.
  • the data forwarding path 1 includes link 1 (the link between node 1 and node 2), Link 2 (the link between Node 2 and Node 3) and Link 3 (the link between Node 3 and Node 4), where Links 1 and 2 are error links, and Link 3 is not Not an errored link.
  • the second forwarding path to which the forwarding node switches the first forwarding path may also be the data forwarding path 2 in FIG.
  • the second forwarding path does not include an error link (the link between node 2 and node 3) on the first forwarding path.
  • the second forwarding path to which the forwarding node switches the first forwarding path may be the data forwarding path 3 in FIG. 5 (via nodes 1 and 4 ), At this time, the second forwarding path does not include the two error links on the first forwarding path (the link between node 1 and node 2, and the link between node 2 and node 3).
  • the forwarding node can avoid data forwarding on the one or more error links by using the second forwarding path to forward data. Avoid or alleviate the situation of low forwarding quality caused by data forwarding on these erroneous links.
  • the second forwarding path does not include the at least one error sub-path. one or more of the paths. Since the second forwarding path does not include one or more bit error sub-paths in the first forwarding path, the forwarding node can avoid data forwarding on the one or more bit error sub-paths by using the second forwarding path to forward data, so it can avoid or Alleviate the situation of low forwarding quality caused by data forwarding on these bit-error subpaths.
  • the first forwarding path and the second forwarding path may belong to the same data tunnel (first data tunnel).
  • the forwarding node may switch the first forwarding path to the second forwarding path in the policy of the first data tunnel.
  • the forwarding node may switch the first forwarding path to another candidate path in the policy of the first data tunnel, so as to switch the first forwarding path. is the second forwarding path.
  • the first forwarding path and the second forwarding path are different candidate paths in the policy of the first data tunnel.
  • the second forwarding path may be a candidate path with the highest priority other than the first forwarding path in the first data tunnel.
  • the candidate path A in the first data tunnel in Table 1 is the path for forwarding data
  • the first forwarding path is the candidate path A.
  • the forwarding node may lower the priority of the candidate path A and raise the priority of the candidate path B (the second forwarding path), so that the candidate path B has the highest priority Therefore, the path for forwarding data in the first data tunnel is switched from candidate path A to candidate path B, and data is switched from forwarding on candidate path A to forwarding on candidate path B.
  • the forwarding node switches the first forwarding path to the second forwarding path
  • the data is forwarded along the data forwarding paths 1, 2 and 3 in FIG. 5; the forwarding node switches the first forwarding path to the second forwarding path After that, the data is forwarded along the data forwarding paths 4 and 5 in FIG. 6 .
  • the candidate path A in Table 1 includes a segment routing list, and the segment routing list is used to indicate the data forwarding path 1 in FIG. 5
  • the candidate path B includes a segment routing list
  • the segment routing list is used for Indicates the data forwarding path 4 in FIG. 6
  • the first forwarding path is the candidate path A.
  • the forwarding node can lower the priority of the candidate path A and raise the priority of the candidate path B (the second forwarding path), so that the candidate path B has the highest priority Therefore, the path for forwarding data in the first data tunnel is switched from candidate path A to candidate path B, and the data is switched from forwarding on candidate path A to forwarding on candidate path B.
  • the first forwarding The path is the candidate path A.
  • the forwarding node can lower the priority of the candidate path A and raise the priority of the candidate path B (the second forwarding path), so that the candidate path B has the highest priority Therefore, the path for forwarding data in the first data tunnel is switched from candidate path A to candidate path B, and the data is switched from forwarding on candidate path A to forwarding on candidate path B.
  • the forwarding node may switch the first forwarding path to another segment routing list in the candidate path.
  • the indicated data forwarding path when the first forwarding path and the second forwarding path are data forwarding paths indicated by different segment routing lists in the same candidate path in the policy of the first data tunnel.
  • the candidate path A in the first data tunnel in Table 1 is the path for forwarding data
  • the first forwarding path is the route list in the middle segment of the candidate path A ⁇ node label 2, node label 3.
  • Each segment routing list in the candidate path of the first data tunnel has a weight, and the weight of the segment routing list is used to indicate: in the data forwarded by the candidate path to which the segment routing list belongs, the data forwarding path indicated by the segment routing list The proportion of data forwarded on the Internet.
  • the forwarding node When switching the first forwarding path to the second forwarding path, the forwarding node can reduce the weight of the segment routing list ⁇ node label 2, node label 3, node label 4> to zero, and reduce the weight of other segment routing lists in the candidate path. The weight is correspondingly increased, so that the data forwarded on the first forwarding path is switched to be forwarded on the data forwarding paths indicated by other segment routing lists.
  • the second forwarding paths include data forwarding paths 2 and 3 in FIG. 5 . It can be seen that before the forwarding node switches the first forwarding path to the second forwarding path, the data in the first forwarding path is forwarded along the data forwarding path 1 in FIG. 5; the forwarding node switches the first forwarding path to the second forwarding path. After the forwarding path, the data in the first forwarding path is forwarded along data forwarding paths 2 and 3 in FIG. 5 .
  • the forwarding node can switch the candidate path used by the forwarding node to forward data from the first candidate path to the second candidate path, and then switch the first forwarding path to the second candidate path.
  • the first candidate path and the second candidate path are any two candidate paths of the first data tunnel.
  • the forwarding node may lower the priority of the first candidate path and increase the priority of the second candidate path to switch the candidate path used by the forwarding node to forward data from the first candidate path to the second candidate path.
  • the forwarding node sends an error message to the controller according to the error index of the first forwarding path not meeting the preset condition, where the error message is used to announce the error information associated with the first forwarding path.
  • the forwarding node may send an error message to the controller to notify the controller of the error information associated with the first forwarding path.
  • the error information It may include: the error index of the first forwarding path does not meet the preset condition, the error link in the first forwarding path, the error link in the first forwarding path that does not meet the preset condition, and/or, the forwarding node Adjustment of the first forwarding path (for example, the forwarding node switches the first forwarding path to the second forwarding path) and the like.
  • the error information may include: The bit error index of a forwarding path does not meet the preset conditions, the error sub-paths in the first forwarding path, the error sub-paths in the first forwarding path that do not meet the preset conditions, and/or the forwarding node for the first forwarding path (for example, the forwarding node switches the first forwarding path to the second forwarding path) and so on.
  • the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information.
  • Path management and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
  • the error message is a BGP message.
  • a Border Gateway Protocol-Link State Border Gateway Protocol-Link State, BGP-LS
  • BGP-LS Border Gateway Protocol-Link State
  • the above-mentioned bit error information associated with the first forwarding path may include: bit error information of an errored link in the first forwarding path.
  • the sub-attribute of the Type Length Value (TLV) in the Link descriptor (Link descriptor) in the Link Network Layer Reachability message (Link NLRI) in the BGP-LS message can be extended, Add sub-TLV (secondary TLV) as bit error TLV.
  • the BGP-LS message is a status message of a certain link, and the bit error TLV in the BGP-LS message is used to indicate the bit error condition of the link (such as whether there is a bit error, and/or, bit error rate, etc.).
  • the structure of the error TLV may be as shown in FIG. 9 , and the error TLV may include: a type (Type) field, a length (Length) field, a flag (Flags) and a reserved (Reserved) field arranged in sequence, wherein the type The field is used to indicate the type of the error TLV, the length field is used to indicate the length of all fields following the length field, and the flag field can be used to indicate the error condition of the link. Further, the flag field may include 8 bits (eg, bit 0 to bit 7), and the first bit of the 8 bits may be used to indicate the bit error condition of the link.
  • the first bit when the value of the first bit is 0, the first bit is used to indicate that all topology IDs (numbers) and slice IDs in the link have errors; when the value of the first bit is When it is 1, the first bit is used to indicate that both the partial topology ID (number) and the slice ID in the link have bit errors. Or, when the value of the first bit is 1, the first bit is used to indicate that: all topology IDs (numbers) and slice IDs in the link have errors; when the value of the first bit is When it is 0, the first bit is used to indicate that both the partial topology ID (number) and the slice ID in the link have bit errors.
  • bit error TLV may also include other fields, such as the bit error rate field, the bit error duration field and the sub-TLV (sub-TLV) in FIG. 9, where the bit error rate field is used to indicate the chain The bit error rate of the link, and the bit error duration field is used to indicate the duration of the link error.
  • bit error rate field is used to indicate the chain The bit error rate of the link
  • bit error duration field is used to indicate the duration of the link error.
  • the above-mentioned bit error information associated with the first forwarding path may include: bit error information of the first data tunnel where the first forwarding path is located.
  • the sub-attribute of the TLV in the Link descriptor in the Link NLRI in the BGP-LS message (or the sub-attribute of the traffic engineering policy attribute TE Policy Atrribute) can be extended, and the secondary TLV can be added as the error TLV.
  • the bit error TLV is used to indicate the bit error condition of the first data tunnel (eg, whether there is a bit error, and/or a bit error rate, etc.).
  • the structure of the error TLV reference may be made to the structure of the error TLV shown in FIG.
  • the first bit in the flag field may be used to indicate the error condition of the first data tunnel. For example, when the value of the first bit is 0, the first bit is used to indicate that there are errors in the data forwarding paths indicated by all the segment routing lists in the first data tunnel; when the first bit is When the value of the bit is 1, the first bit is used to indicate that all the data forwarding paths indicated by the partial segment routing list in the first data tunnel have bit errors.
  • the first bit when the value of the first bit is 1, the first bit is used to indicate that there are errors in the data forwarding paths indicated by all the segment routing lists in the first data tunnel; when the first bit is When the value of the bit is 0, the first bit is used to indicate that the data forwarding paths indicated by all the segment routing lists in the first data tunnel have bit errors.
  • the bit error rate field in FIG. 9 is used to indicate the bit error rate of the first data tunnel, and the bit error duration field is used to indicate the duration of the bit error of the first data tunnel.
  • the forwarding node determines that the bit error index of the first forwarding path meets a preset condition.
  • the forwarding node switches the second forwarding path back to the first forwarding path according to the bit error index of the first forwarding path meeting the preset condition.
  • the forwarding node may also detect whether the bit error indicator of the first forwarding path meets a preset condition. If it is detected that the bit error indicator of the first forwarding path meets the preset condition, the forwarding node can switch the second forwarding path back to the original first forwarding path.
  • the forwarding node may also send the information for announcing that the second forwarding path is switched back to the first forwarding path to the controller, so that the controller can switch the second forwarding path back to the first forwarding path according to the information.
  • the information manages the network topology of the nodes and the data forwarding paths laid out on multiple nodes.
  • the forwarding node can switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path not meeting the preset condition, so as to realize the adjustment of the first forwarding path. Adjustment of forwarding paths. Thereby, the problem of low forwarding quality caused by data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated.
  • the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the embodiment of the present application has higher path adjustment efficiency and stronger timeliness. Moreover, since the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of an excessively high load of the controller is avoided.
  • the forwarding node when adjusting the first forwarding path, adopts an adjustment manner of switching the first forwarding path to the second forwarding path.
  • the forwarding node when the forwarding node adjusts the first forwarding path, other adjustment methods may also be used.
  • the forwarding node may reduce the forwarding ratio of data on the first forwarding path according to the fact that the bit error index of the first forwarding path does not meet the preset condition.
  • the forwarding node may reduce the forwarding ratio of data on the first forwarding path to 50% or 60% of the original.
  • the above-mentioned first forwarding path belongs to a data forwarding path indicated by a certain segment of the routing list in a certain candidate path in the policy of the first data tunnel.
  • the forwarding node can reduce the forwarding ratio of data on the first forwarding path, and increase the forwarding ratio of data on one or more data forwarding paths that belong to the same candidate path as the first forwarding path and are indicated by other segment routing lists.
  • the candidate path A in the first data tunnel in Table 1 is a path for forwarding data
  • the first forwarding path is the route list in the middle segment of the candidate path A ⁇ node label 2, node label 3, Node label 4> data forwarding path 1 in Figure 5 as indicated.
  • Each segment routing list in the candidate path of the first data tunnel has a weight, and the weight of the segment routing list is used to indicate that the data forwarded by the candidate path to which the segment routing list belongs is on the data forwarding path indicated by the segment routing list The percentage of data forwarded.
  • the weight of the segment routing list ⁇ node label 2, node label 3, node label 4> can be reduced (for example, reduced to 50% or 60% of the original weight, or reduced to zero),
  • the weights of other segment routing lists in the candidate paths are correspondingly increased, so that at least part of the data forwarded on the data forwarding path 1 in FIG. 5 is switched to be forwarded on the data forwarding paths 2 and/or 3 in FIG. 5 .
  • the first forwarding path and the second forwarding path belong to the same data tunnel (first data tunnel) as an example.
  • the first forwarding path and the second forwarding path may also belong to different
  • the first forwarding path belongs to the first data tunnel and the second forwarding path belongs to the second data tunnel.
  • the forwarding path is switched to the second forwarding path.
  • the second data tunnel may be a tunnel pre-configured by the upper-layer service in the forwarding node, and when the forwarding node determines that the bit error indicator of the first forwarding path does not meet the preset condition, the first data tunnel may be switched to the second data tunnel. tunnel, so that the first forwarding path is switched to the second forwarding path.
  • the upper-layer service may be any service, such as an L3VPN service.
  • the second data tunnel may be a data tunnel planned by the controller.
  • the forwarding node may send a switching request message for requesting switching of the first data tunnel to the controller; after the controller receives the switching
  • a handover response message can be sent to the forwarding node according to the handover request message.
  • the handover response message is used to instruct the use of the second data tunnel to forward data.
  • the content of the handover response message can refer to the content of the indication message in S101. This application The embodiment will not be repeated here.
  • the forwarding node may switch the first data tunnel to the second data tunnel according to the switching response message, so as to switch the first forwarding path in the first data tunnel to the second forwarding path.
  • the second forwarding path in the second data tunnel may be switched to the first forwarding path in the first data tunnel.
  • the handover request message sent by the forwarding node to the controller may be a BGP message.
  • the forwarding node may first adjust the first forwarding path based on the policy of the first data tunnel (as shown in FIG. 4 , the first forwarding path is switched to the second forwarding path in the first data tunnel).
  • the forwarding node may switch the first data tunnel to the second data tunnel, so as to switch the first forwarding path in the first data tunnel Switch to the second forwarding path in the second data tunnel.
  • the first forwarding path is the data forwarding path 1 in FIG.
  • the bit error index of the first forwarding path does not meet the preset condition. If the data forwarding paths indicated by the segment routing list other than the segment routing list corresponding to data forwarding path 1 in Table 1 (such as data forwarding paths 2 and 3 in FIG. 5 and data forwarding paths 4 and 5 in FIG. 6 ) ) does not meet the preset condition, then the forwarding node can switch the first data tunnel to the second data tunnel, and then use the second forwarding path in the second data tunnel to forward the original forwarding on the first forwarding path The data.
  • the forwarding node detects whether the bit error indicators of other forwarding paths in the first data tunnel except the first forwarding path satisfy a preset value.
  • the forwarding node may continue to detect the bit errors of the data forwarding paths indicated by the segment routing lists in other candidate paths Whether the indicator meets the preset conditions. For example, the forwarding node may sequentially detect whether the bit error indicators of the data forwarding paths indicated by the middle segment routing lists of other candidate paths meet the preset conditions in order of priority of the candidate paths from high to low.
  • the forwarding node can first detect whether the bit error indicators of data forwarding paths 2 and 3 in FIG. 5 indicated by other segment routing lists in the candidate path A meet the preset conditions, and if the bit error indicators of these data forwarding paths also do not meet the predetermined conditions. If the condition is set, the forwarding node can continue to detect whether the bit error indicator of the data forwarding path indicated by the segment routing list in the candidate path B satisfies the preset condition.
  • the forwarding node may sequentially detect whether the bit error indicators of other candidate paths satisfy the preset condition in order of priority of the candidate paths from high to low.
  • the forwarding node switches the first forwarding path to the second forwarding path according to the policy of the first data tunnel.
  • the second forwarding path is a pre-configured path.
  • the second forwarding path may not be a pre-configured path.
  • the second forwarding path is a path calculated by the forwarding node (for example, calculated based on IGP).
  • the forwarding node when it determines that the bit error index of the first forwarding path does not meet the preset condition, it can calculate the second forwarding path, and then switch the first forwarding path to the second forwarding path. This process does not need to rely on Therefore, the timeliness of switching the first forwarding path to the second forwarding path is relatively high.
  • the forwarding node may be any node on the first forwarding path, such as a head node or an intermediate node.
  • the second forwarding path may be a path in the data tunnel, or may not be a path in the data tunnel, which is not limited in this embodiment of the present application.
  • each node on the first forwarding path can detect whether the link on the first forwarding path is an error link whose bit error index does not meet the preset condition, and determine whether the error index of the first forwarding path meets the preset condition according to the result. .
  • the node 2 determines that the link between the node 2 and the node 3 is an error link whose error index does not meet the preset condition, so that the error index of the first forwarding path does not meet the preset condition, the node 2 can calculate the node The path between 2 and node 3 bypassing the link is node 2 ⁇ node 5 ⁇ node 6, and then a second forwarding path node 1 ⁇ node 2 ⁇ node 5 ⁇ node 6 ⁇ node 4 is obtained.
  • the forwarding node when the forwarding node determines that the error index of the first forwarding path does not meet the preset condition, it directly adjusts the first forwarding path, for example, switches the first forwarding path to the second forwarding path, or reduces the data The forwarding ratio on the first forwarding path.
  • the forwarding node may also determine whether the first forwarding path belongs to a path that allows adjustment, and only performs the first forwarding path when it is determined that the first forwarding path belongs to a path that allows adjustment. Adjustment.
  • the forwarding node may acquire a path indication of one or more paths that are allowed to be adjusted, and then can judge whether the one or more paths that are allowed to be adjusted include the first forwarding path according to the path indication.
  • the forwarding node may switch the first forwarding path to the second forwarding path, or reduce the forwarding ratio of data on the first forwarding path.
  • the forwarding node may also determine whether the second forwarding path is not adjusted before adjusting the first forwarding path. For one or more paths that are allowed to be adjusted, the first forwarding path is switched to the second forwarding path only when it is determined that the second forwarding path belongs to one or more paths that are allowed to be adjusted.
  • the forwarding node adjusts the forwarding ratio of the first forwarding path in a manner of reducing the forwarding ratio of data on the first forwarding path and increasing the forwarding ratio of data on another forwarding path (which may be referred to as a third forwarding path).
  • the forwarding node may further determine a third forwarding path different from the first forwarding path from one or more paths that allow adjustment. After that, the forwarding node further reduces the forwarding ratio of data on the first forwarding path, and increases the forwarding ratio of data on the third forwarding path.
  • one or more paths that are allowed to be adjusted may include the first forwarding path; when the first forwarding path does not require data forwarding quality, adjustment is allowed.
  • One or more of the paths may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
  • whether the second forwarding path and the third forwarding path belong to the paths that are allowed to be adjusted may be set as required, so that the flexibility of path adjustment can be improved.
  • the above path indication may be delivered by the controller to the forwarding node, may also be delivered by other devices to the forwarding node, or may be configured locally by the forwarding node, which is not limited in this embodiment of the present application.
  • the path indication When the path indication is delivered by the controller to the forwarding node, the path indication may be carried in a BGP message or PECP message sent by the controller to the forwarding node.
  • the BGP message or the PCEP message may be a message for delivering a policy of the data tunnel.
  • the BGP message or the PCEP message may include: the first TLV corresponding to each segment routing list in the policy of the data tunnel.
  • the first TLV may be used to indicate whether the data forwarding path indicated by the corresponding segment routing list is a path that allows adjustment.
  • the structure of the first TLV may be as shown in FIG. 11 , and the first TLV may include: a type field, a length field and a reserved field arranged in sequence, wherein the type field is used to indicate the type of the first TLV, and the length field is used to indicate the type of the first TLV.
  • the reserved field may be used to indicate whether the data forwarding path corresponding to the first TLV is a path that allows adjustment.
  • the reserved field may include 8 bits (such as bit 0 to bit 7), and the first bit in the 8 bits may be used to indicate: the data forwarding path corresponding to the first TLV Whether the path is allowed to adjust.
  • the first bit when the value of the first bit is 0, the first bit is used to indicate that the data forwarding path corresponding to the first TLV is not a path that allows adjustment; when the value of the first bit is 1 , the first bit is used to indicate that the data forwarding path corresponding to the first TLV is a path that allows adjustment. Or, when the value of the first bit is 1, the first bit is used to indicate that the data forwarding path corresponding to the first TLV is not a path that allows adjustment; when the value of the first bit is 0 , the first bit is used to indicate that the data forwarding path corresponding to the first TLV is a path that allows adjustment.
  • the first TLV may further include other fields, such as a sub-TLV (sub-TLV) in FIG. 9 , which is not limited in this embodiment of the present application.
  • sub-TLV sub-TLV
  • the BGP message or the PCEP message may further include: A second TLV, which may indicate whether the data tunnel is allowed to adjust.
  • a second TLV which may indicate whether the data tunnel is allowed to adjust.
  • the forwarding node may switch the first data tunnel to the second data tunnel.
  • the structure of the second TLV may be as shown in FIG. 12
  • the second TLV may include: a type field, a length field, a flag field, a reserved field and a priority (Preference) field arranged in sequence, wherein the type field is used to indicate The type of the second TLV, the length field is used to indicate the length of all fields following the length field (such as the length of the flag field, the reserved field and the priority field), and the reserved field can be used to indicate whether the data tunnel allows adjustment.
  • the reserved field may include 8 bits (eg, bit 0 to bit 7), and the first bit of the 8 bits may be used to indicate whether the data tunnel allows adjustment.
  • the first bit when the value of the first bit is 0, the first bit is used to indicate that the data tunnel does not allow adjustment; when the value of the first bit is 1, the first bit is used for Indication: The data tunnel allows tuning. Or, when the value of the first bit is 1, the first bit is used to indicate that the data tunnel does not allow adjustment; when the value of the first bit is 0, the first bit is used for Indication: The data tunnel allows tuning.
  • the head nodes of the first forwarding path and the second forwarding path (or the third forwarding path) in the foregoing embodiment may be the same (for example, both are the foregoing forwarding nodes), and the tail nodes may be the same.
  • the head nodes and tail nodes of these forwarding paths may be different in some scenarios, but at least they can be associated based on some indication relationships, so that the forwarding node can determine that the first forwarding can be forwarded.
  • the path is switched to the second forwarding path.
  • a communication system including a plurality of nodes and a controller is taken as an example.
  • the embodiment of the present application can also be used in a communication system that does not include a controller.
  • the path adjustment method does not include the above implementation.
  • the path adjustment method does not include S101 and S105 in the embodiment shown in FIG. 4 .
  • the first forwarding path may be a path in a data tunnel (eg, the first data tunnel), or may not be a path in the data tunnel.
  • the forwarding node may switch the first forwarding path to a second forwarding path with reference to the foregoing embodiment, and the second forwarding path may be a path in the first data tunnel, or It may be the path in the second data tunnel determined according to the upper-layer service, or may be the path calculated by the forwarding node.
  • the forwarding node can reduce the proportion of data forwarded on the first forwarding path with reference to the above-mentioned embodiment, and correspondingly, the forwarding node can also increase the proportion of data forwarded on some data forwarding paths in the first data tunnel.
  • the forwarding node may obtain the second forwarding path by calculating, and switch the first forwarding path to the second forwarding path, or the forwarding node may reduce the forwarding path on the first forwarding path proportion of the data.
  • the forwarding node can switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet the preset condition, or reduce the data The transmission ratio on the first forwarding path, so as to realize the adjustment of the first forwarding path.
  • the problem of low forwarding quality caused by at least part of the data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated.
  • the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the embodiment of the present application has higher path adjustment efficiency and stronger timeliness. Moreover, since the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of an excessively high load of the controller is avoided.
  • the forwarding node and the controller need to include hardware corresponding to each function. and/or software modules.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different ways to implement the described functionality for each particular application in conjunction with the embodiments, but such implementations should not be considered beyond the scope of this application.
  • the corresponding device may be divided into functional modules according to the above method embodiments.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic, and specifically as a possible division manner of logical functions, there may be other division manners in actual implementation.
  • FIG. 13 is a block diagram of a path adjustment apparatus provided by an embodiment of the present application, and the path adjustment apparatus may be, for example, a forwarding node in the foregoing embodiments. As shown in FIG. 13 , the path adjustment apparatus includes: a forwarding module 1201 and a first adjustment module 1202 .
  • the forwarding module 1201 is configured to forward data using the first forwarding path; the operations performed by the forwarding module 1201 may refer to S102 in the embodiment shown in FIG. .
  • the first adjustment module 1202 is configured to switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet a preset condition, or reduce data on the first forwarding path
  • the transmission ratio of wherein the path adjustment device is a node on the first forwarding path.
  • the first adjustment module can switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet the preset condition, or reduce the number of data in the first forwarding path on the transmission ratio to realize the adjustment of the first forwarding path.
  • the problem of low forwarding quality caused by at least part of the data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated.
  • the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the present application has higher efficiency in adjusting the path and stronger timeliness. Moreover, since the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of the overload of the controller is avoided.
  • the first forwarding path includes at least one error link, and the error link is a link with an error, and the second forwarding path does not include the at least one error link. one or more.
  • the first forwarding path includes at least one bit error link, the bit error link is a link with bit errors, and the bit error index of the bit error link is called the bit error corresponding to the bit error link. index.
  • the bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition.
  • the at least one error indicator does not meet the preset condition.
  • the at least one error index corresponding to the at least one error link does not meet the preset condition, including: the at least one error link.
  • One or more of the bit error indicators do not meet the preset condition; or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition.
  • the statistical value of the at least one bit error indicator may be the cumulative sum, median, average or weighted average of the at least one bit error indicator, and the statistical value of the at least one bit error indicator may also be: the at least one bit error indicator
  • the number of bit error indicators that do not meet the indicator requirements in a bit error indicator, etc., is not limited in this embodiment of the present application.
  • the at least one bit error indicator is at least one bit error rate, and one or more of the at least one bit error indicator does not meet a preset condition, including: one or more of the at least one bit error rate.
  • a plurality of bit error rate thresholds do not meet (for example, greater than the bit error rate threshold, or greater than or equal to the bit error rate threshold); or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link
  • the setting condition includes: the number of the at least one bit error rate that does not meet the bit error rate threshold exceeds a preset value, or the cumulative sum of the at least one bit error rate does not meet the preset value.
  • the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels.
  • the first adjustment module 1202 in the path adjustment apparatus may switch the first forwarding path to the second forwarding path according to the policy of the data tunnel.
  • the first adjustment module 1202 may The tunnel is switched to the second data tunnel, so that the data forwarding path is switched from the first forwarding path to the second forwarding path.
  • the path adjustment apparatus further includes: a calculation module (not shown in FIG. 13 ), configured to calculate (eg, calculate based on IGP) the second forwarding path.
  • a calculation module configured to calculate (eg, calculate based on IGP) the second forwarding path.
  • the forwarding node determines that the bit error index of the first forwarding path does not meet the preset condition, it can calculate the second forwarding path, and then switch the first forwarding path to the second forwarding path. This process does not need to rely on Therefore, the timeliness of switching the first forwarding path to the second forwarding path is relatively high.
  • the forwarding node may be any node on the first forwarding path, such as a head node or an intermediate node.
  • the second forwarding path may be a path in the data tunnel, or may not be a path in the data tunnel, which is not limited in this embodiment of the present application.
  • For operations performed by the computing module reference may be made to the content related to computing the second forwarding path in the above embodiments.
  • the first forwarding path belongs to the first data tunnel
  • the second forwarding path belongs to the second data tunnel
  • the path adjustment apparatus further includes: a first sending module and a receiving module (neither shown in FIG. 13 ) out).
  • the first sending module is configured to send a switching request message for requesting switching of the first data tunnel to the controller
  • the receiving module is configured to receive a switching response message from the controller, where the switching response message is used to indicate the use of
  • the second data tunnel forwards the data
  • the first adjustment module 1202 is configured to: switch the first forwarding path to the second forwarding path in the second data tunnel to forward the data.
  • the operation performed by the first sending module reference may be made to the content related to sending the handover request message to the controller in the above embodiment.
  • the receiving module reference may be made to the content related to the handover response message sent by the receiving controller in the above embodiments.
  • the request message is a BGP message.
  • the path adjustment device further includes: a second sending module (not shown in FIG. 13 ), configured to send the error code to the controller according to the error code index of the first forwarding path not meeting a preset condition message, where the bit error message is used to announce bit error information associated with the first forwarding path.
  • the bit error information may include: a bit error indicator of the first forwarding path does not meet a preset condition, an errored link in the first forwarding path, and an errored link in the first forwarding path that does not meet the preset condition.
  • the adjustment status of the first forwarding path by the forwarding node for example, the forwarding node switches the first forwarding path to the second forwarding path, etc.
  • the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information.
  • Path management and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
  • the second sending module For operations performed by the second sending module, reference may be made to the content related to sending the error message to the controller in the above embodiments.
  • the path adjustment apparatus includes: an obtaining module (not shown in FIG. 13 ), configured to obtain a path indication of one or more paths that allow adjustment, the one or more paths include: at least one path with different forwarding paths; the first adjustment module 1202 is configured to: determine the second forwarding path from the at least one path different from the first forwarding path according to the path indication, and adjust the The first forwarding path is switched to the second forwarding path; or, according to the path indication, a third forwarding path is determined from the at least one path different from the first forwarding path, and the data is The transmission ratio on the first forwarding path is increased, and the transmission ratio of the data on the third forwarding path is increased.
  • whether the second forwarding path and the third forwarding path belong to the paths allowed to be adjusted can be set as required, so the flexibility of path adjustment can be improved.
  • the path adjustment apparatus includes: an obtaining module (not shown in FIG. 13 ), configured to obtain a path indication of one or more paths that allow adjustment; the first adjustment module 1202 is configured to: according to the One or more paths that are allowed to be adjusted include the first forwarding path, and the first forwarding path is switched to a second forwarding path; or, one or more paths that are allowed to be adjusted include the first forwarding path , reducing the proportion of data transmission on the first forwarding path. It can be seen that, before adjusting the first forwarding path, the forwarding node can also determine whether the first forwarding path belongs to the path that allows adjustment, and only performs the first forwarding path when it is determined that the first forwarding path belongs to the path that allows adjustment. Adjustment.
  • one or more paths that are allowed to be adjusted may include the first forwarding path; when the first forwarding path does not require data forwarding quality, one or more paths that are allowed to be adjusted The path may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
  • the path indication is carried in a BGP message or a PCEP message sent by the controller to the path adjustment apparatus.
  • head nodes of the first forwarding path and the second forwarding path are the path adjustment apparatus, and tail nodes of the first forwarding path and the second forwarding path are the same.
  • the head nodes and tail nodes of these forwarding paths may be different in some scenarios, but at least they can be associated based on some indication relationships, so that the forwarding node can determine that the first node can be A forwarding path is switched to the second forwarding path.
  • the first forwarding path belongs to a path in the SRv6 policy or the SR-TE policy
  • the first adjustment module 1202 is configured to: switch the first forwarding path to the SRv6 policy or the SR-TE policy
  • the second forwarding path in the TE policy wherein the first forwarding path and the second forwarding path are different candidate paths in the SRv6 policy or the SR-TE policy, or are determined by the SRv6 policy Or different segment routing lists in the same candidate path in the SR-TE policy indicate; optionally, the second forwarding path may be a candidate with the highest priority except the first forwarding path in the first data tunnel path.
  • the first adjustment module 1202 is configured to: reduce the transmission ratio of data on the first forwarding path, and increase one or more candidate paths that belong to the same candidate path as the first forwarding path and are indicated by other segment lists The ratio of the transmission of the data on the paths.
  • the first forwarding path and the second forwarding path are data forwarding paths indicated by different segment routing lists in the same candidate path in the policy of the first data tunnel.
  • the path adjustment device further includes: a second adjustment module (not shown in FIG. 13 ).
  • the second adjustment module is configured to: switch the second forwarding path back to the first forwarding path according to the bit error index of the first forwarding path meeting a preset condition; or, according to the error of the first forwarding path If the bit error indicator meets the preset condition, the transmission ratio of the data on the first forwarding path is restored.
  • the second adjustment module For operations performed by the second adjustment module, reference may be made to the content related to the function of the second adjustment module in the above embodiments.
  • the path adjustment apparatus for a forwarding node may include a processing module, a storage module and a communication module.
  • the processing module may be used to control and manage the actions of the path adjustment apparatus, for example, may be used to support the path adjustment apparatus to perform the actions performed by the forwarding nodes in S101 to S107 above.
  • the storage module may be used to support the execution of the path adjustment apparatus to store program codes and data, and the like.
  • the communication module can be used for communication between the path adjustment device and other devices.
  • the processing module may be a processor or a controller. It may implement or execute the various exemplary logical blocks, modules and circuits described in connection with this disclosure.
  • the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and the like.
  • the storage module may be a memory.
  • the communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
  • the path adjustment apparatus involved in this embodiment may be a network device having the structure shown in FIG. 3 .
  • the above-mentioned adjustment modules, calculation modules, etc. included in the device may be computer programs stored in the memory, and are called by the processor to implement the corresponding execution functions of the modules.
  • FIG. 14 is a block diagram of another path adjustment apparatus provided by an embodiment of the present application, and the path adjustment apparatus may be, for example, the controller in the foregoing embodiments.
  • the path adjustment apparatus includes: a first sending module 1301 and a first receiving module 1302 .
  • the first sending module 1301 is configured to send an indication message to the forwarding node, where the indication message is used to instruct the forwarding node to determine to use the first forwarding path to forward data.
  • the indication message is used to instruct the forwarding node to determine to use the first forwarding path to forward data.
  • the first receiving module 1302 is configured to receive a bit error message sent by the forwarding node, where the bit error message is used to announce bit error information associated with the first forwarding path.
  • the bit error message is used to announce bit error information associated with the first forwarding path.
  • the first receiving module can receive the error message sent by the forwarding node and used to announce the error information associated with the first forwarding path. Therefore, the path adjustment device can The information manages the network topology of the node and the data forwarding paths laid out on multiple nodes, and the path adjustment device can refer to the bit error information to lay out other data forwarding paths, so as to avoid the bit error indicators of other data forwarding paths laid out as much as possible. The preset conditions are not met.
  • the path adjustment apparatus further includes: a second receiving module (not shown in FIG. 14 ), configured to receive a handover request message sent by the forwarding node; a second sending module (not shown in FIG. 14 ) is used to send a handover response message to the forwarding node according to the handover request message, where the handover response message is used to instruct the forwarding node to determine to use the second forwarding path to forward the data, and the second forwarding path is the The forwarding node determines the forwarding path to use after switching the first forwarding path. It can be seen that when the first forwarding path belongs to the first data tunnel and the second forwarding path belongs to the second data tunnel, the second data tunnel may be a data tunnel planned by the path adjustment apparatus.
  • the forwarding node may determine the second data tunnel by means of the path adjustment device, and then switch the first forwarding path to the second forwarding path in the second data tunnel.
  • the second receiving module reference may be made to the content related to the function of the second receiving module in the foregoing embodiment
  • the second sending module reference may be made to the content related to the function of the second sending module in the foregoing embodiment. content.
  • the handover request message is a BGP message.
  • the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels; the second forwarding path is the forwarding path
  • the node determines the used forwarding path after switching the first forwarding path.
  • the path adjustment apparatus includes: a third sending module (not shown in FIG. 14 ), configured to send a path indication of one or more paths that allow adjustment to the forwarding node, so as to indicate to the forwarding node
  • the path adjustment is performed according to the path indication.
  • the path adjustment device in the present application can set a path that is allowed to be adjusted as required, so the flexibility of path adjustment can be improved.
  • the path adjustment One or more paths set by the device to allow adjustment may not include the first forwarding path.
  • the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
  • the third sending module For the operation performed by the third sending module, reference may be made to the content related to the function of the third sending module in the foregoing embodiment.
  • the path indication is carried in the indication message.
  • the indication message may be a BGP message or a PCEP message.
  • the path adjustment apparatus for a controller may include a processing module, a storage module and a communication module.
  • the processing module may be used to control and manage the actions of the path adjustment apparatus, for example, may be used to support the path adjustment apparatus to perform the actions performed by the controller in S101 to S107 above.
  • the storage module may be used to support the execution of the path adjustment apparatus to store program codes and data, and the like.
  • the communication module can be used to support the communication between the path adjustment device and other devices.
  • processing module the storage module, and the communication module
  • processing module the storage module, and the communication module
  • the processing module the storage module, and the communication module in the above-mentioned path adjustment device for a controller, which will not be repeated in this embodiment of the present application.
  • the path adjustment apparatus involved in this embodiment may be a network device having the structure shown in FIG. 3 .
  • An embodiment of the present application provides a communication system.
  • the structure of the communication system may be as shown in FIG. 1 , and the communication system may include: a plurality of nodes. At least some of the nodes are located on the first forwarding path, and the forwarding node is any node on the first forwarding path.
  • the forwarding node is any node on the first forwarding path.
  • An embodiment of the present application provides another communication system, and the structure of the communication system may be as shown in FIG. 2 , and the communication system may include: a plurality of nodes and a controller. At least some of the nodes in the plurality of nodes are located on the first forwarding path, and the forwarding node is any node on the first forwarding path.
  • the forwarding node and the controller in the system reference may be made to the corresponding functions described in the foregoing embodiments, which will not be repeated in the embodiments of the present application.
  • An embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is used to execute the method used by a forwarding node in any path adjustment method provided by the embodiment of the present application.
  • Embodiments of the present application provide another computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is used to execute the method used by the controller in any of the path adjustment methods provided by the embodiments of the present application.
  • the embodiments of the present application provide a computer program product containing instructions, when the computer program product is run on a path adjustment device, the path adjustment device is made to execute the forwarding node for executing any of the path adjustment methods provided by the embodiments of the present application. method.
  • the embodiments of the present application provide a computer program product containing instructions, when the computer program product runs on the path adjustment device, the path adjustment device is made to execute the method used by the controller in any of the path adjustment methods provided in the embodiments of the present application .
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product comprising one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website, computer, server, or data
  • the center transmits to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes one or more available media integrated.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media, or semiconductor media (eg, solid state drives), and the like.
  • first and second etc. are used for descriptive purposes only and should not be construed to indicate or imply relative importance.
  • the term “at least one” refers to one or more, and “plurality” refers to two or more, unless expressly limited otherwise.
  • Units described as separate components may or may not be physically separated, and components described as units may or may not be physical units, and may be located in one place or distributed to multiple devices. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

Abstract

The present application relates to the technical field of communications. Disclosed are a path adjustment method and apparatus, and a communication system. The path adjustment method comprises: a forwarding node adjusts a first forwarding path according to the fact that a bit error indicator of the first forwarding path does not satisfy a preset condition in the process of forwarding data by using the first forwarding path, for example, the forwarding node switches the first forwarding path to a second forwarding path, or the forwarding node reduces the transmission ratio of the data on the first forwarding path. In this way, the problem of low forwarding quality caused by forwarding at least part of data on the first forwarding path of which the bit error indicator does not satisfy the preset condition can be avoided or alleviated. The present application is used for path adjustment.

Description

路径调整方法及装置、通信系统Path adjustment method and device, and communication system
本申请要求于2020年12月03日提交、申请号为202011412529.6、发明名称为“路径调整方法及装置、通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 03, 2020 with the application number of 202011412529.6 and the invention titled "Path Adjustment Method and Device, Communication System", the entire contents of which are incorporated into this application by reference.
技术领域technical field
本申请涉及通信技术领域,特别涉及一种路径调整方法及装置、通信系统。The present application relates to the field of communication technologies, and in particular, to a path adjustment method and device, and a communication system.
背景技术Background technique
通信系统包括控制器,以及控制器连接的多个节点。控制器能够控制该多个节点沿数据隧道中的路径转发。The communication system includes a controller, and a plurality of nodes to which the controller is connected. The controller can control the plurality of nodes to be forwarded along the path in the data tunnel.
示例地,控制器可以基于该多个节点的网络拓扑规划数据隧道,并将数据隧道的信息下发至数据隧道的头节点。该头节点可以根据该数据隧道的信息,控制该数据沿该数据隧道中的路径转发至数据隧道的尾节点。For example, the controller may plan the data tunnel based on the network topology of the multiple nodes, and deliver the information of the data tunnel to the head node of the data tunnel. The head node can control the data to be forwarded to the tail node of the data tunnel along the path in the data tunnel according to the information of the data tunnel.
但是,数据隧道中的路径较容易出现误码率较高的情况,若数据在误码率较高的路径上转发,则会导致数据转发的质量较低。However, the path in the data tunnel is more likely to have a high bit error rate. If data is forwarded on a path with a high bit error rate, the quality of data forwarding will be low.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种路径调整方法及装置、通信系统,可以解决数据转发的质量较低的问题,所述技术方案如下:The present application provides a path adjustment method and device, and a communication system, which can solve the problem of low data forwarding quality. The technical solution is as follows:
第一方面,提供了一种路径调整方法,所述方法包括:转发节点在利用第一转发路径转发数据的过程中,根据所述第一转发路径的误码指标不符合预设条件,将所述第一转发路径切换为第二转发路径,或者,降低数据在所述第一转发路径上的传输比例。其中,所述转发节点为所述第一转发路径上的节点。A first aspect provides a path adjustment method, the method includes: in the process of forwarding data by a forwarding node using a first forwarding path, according to the error index of the first forwarding path does not meet a preset condition, The first forwarding path is switched to the second forwarding path, or the transmission ratio of data on the first forwarding path is reduced. The forwarding node is a node on the first forwarding path.
需要说明的是,误码指标为与误码相关的指标,比如通常意义上的误码率或基于该误码率的通常计算方式的简单公式变形而获得的误码指标,再比如出现误码的时长或误码数据量等。作为一种可能的误码指标计算方式,误码率等于转发的总码数中误码数的占比。符合预设条件与不符合预设条件是相对的,因而符合预设条件也可以自然地理解为不符合某一对应条件,而不符合预设条件也可以自然地理解为符合某一对应条件,这与条件的设置内容和条件的触发机制相关。比如,以误码指标为误码率为例,当预设条件为误码率小于或等于误码率阈值时,转发节点可以根据第一转发路径的误码指标不符合预设条件,将第一转发路径切换为第二转发路径;当预设条件为误码率大于误码率阈值时,转发节点可以根据第一转发路径的误码指标符合预设条件,将第一转发路径切换为第二转发路径。应理解,除上述描述的情形外,其他任何对于误码指标和预设条件的简单变形方式不影响本申请方案的实施,因而均应涵盖在本申请提出的发明构思的精神范围内。It should be noted that the bit error indicator is an indicator related to bit errors, such as the bit error rate in the usual sense or the bit error indicator obtained by deforming a simple formula based on the usual calculation method of the bit error rate, and another example is the occurrence of bit errors. the duration or the amount of errored data, etc. As a possible calculation method of the bit error index, the bit error rate is equal to the proportion of the number of bit errors in the total number of forwarded codes. Meeting the preset conditions and not meeting the preset conditions are relative, so meeting the preset conditions can also be naturally understood as not meeting a corresponding condition, and not meeting the preset conditions can also be naturally understood as meeting a corresponding condition. This is related to the setting content of the condition and the trigger mechanism of the condition. For example, taking the bit error indicator as the bit error rate as an example, when the preset condition is that the bit error rate is less than or equal to the bit error rate threshold, the forwarding node may, according to the bit error indicator of the first forwarding path not meeting the preset condition, convert the bit error rate to the first forwarding path. A forwarding path is switched to the second forwarding path; when the preset condition is that the bit error rate is greater than the bit error rate threshold, the forwarding node may switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path meeting the preset condition Two forwarding paths. It should be understood that, except for the situation described above, any other simple modifications to the error index and preset conditions do not affect the implementation of the solution of the present application, and therefore should be covered within the spirit of the inventive concept proposed in the present application.
本申请提供的路径调整方法中,转发节点能够根据第一转发路径的误码指标不符合预设条件,将第一转发路径切换为第二转发路径,或者,降低数据在第一转发路径上的传输比例,以实现对第一转发路径的调整。从而避免或缓解至少部分数据在误码指标不符合预设条件的 第一转发路径上转发而引起的转发质量较低的问题。并且,转发节点能够不借助控制器对第一转发路径进行调整,因此,本申请提供的路径调整方法对路径的调整效率较高,时效性较强。由于路径调整过程允许由转发节点独立完成,因此,也减少了控制器的负载,避免了控制器的负载过高的情况发生。In the path adjustment method provided by the present application, the forwarding node can switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet the preset condition, or reduce the data transmission rate on the first forwarding path. The transmission ratio is adjusted to realize the adjustment of the first forwarding path. Thereby, the problem of low forwarding quality caused by at least part of the data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated. In addition, the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the present application has higher efficiency in adjusting the path and stronger timeliness. Since the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of the overload of the controller is avoided.
可选地,所述第一转发路径包括至少一条误码链路,所述误码链路为存在误码的链路,所述第二转发路径不包括所述至少一条误码链路中的一条或多条。由于第二转发路径不包括第一转发路径中的一条或多条误码链路,因此,转发节点采用第二转发路径转发数据能够避免数据在该一条或多条误码链路转发,所以能够避免或缓解数据在这些误码链路上转发而引起的转发质量低的情况。Optionally, the first forwarding path includes at least one error link, and the error link is a link with an error, and the second forwarding path does not include the at least one error link. one or more. Since the second forwarding path does not include one or more error links in the first forwarding path, the forwarding node can avoid data forwarding on the one or more error links by using the second forwarding path to forward data. Avoid or alleviate the situation of low forwarding quality caused by data forwarding on these erroneous links.
可选地,所述第一转发路径包括至少一条误码链路,所述误码链路为存在误码的链路,误码链路的误码指标称为误码链路对应的误码指标。所述第一转发路径的误码指标不符合预设条件,包括:所述至少一条误码链路对应的至少一个误码指标不符合预设条件。在这种情况下,转发节点可以首先确定第一转发路径中的至少一条误码链路。可选地,转发节点可以基于双向转发检测(bidirectional forwarding detection,BFD)协议检测第一转发路径上的误码链路。之后,转发节点可以在该至少一条误码链路对应的至少一个误码指标不符合预设条件时,确定第一转发路径的误码指标不符合预设条件。Optionally, the first forwarding path includes at least one bit error link, the bit error link is a link with bit errors, and the bit error index of the bit error link is called the bit error corresponding to the bit error link. index. The bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition. In this case, the forwarding node may first determine at least one error link in the first forwarding path. Optionally, the forwarding node may detect the error link on the first forwarding path based on a bidirectional forwarding detection (BFD) protocol. Afterwards, the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition when the at least one error index corresponding to the at least one error link does not meet the preset condition.
可选地,上述至少一个误码指标不符合预设条件可以有多种理解,比如,所述至少一条误码链路对应的至少一个误码指标不符合预设条件,包括:所述至少一个误码指标中的一个或多个不符合预设条件;或者,所述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件。其中,该至少一个误码指标的统计值可以是该至少一个误码指标的累加和、中位数、平均值或加权平均值等,该至少一个误码指标的统计值也可以是:该至少一个误码指标中未达到指标要求的误码指标的个数等。Optionally, there may be multiple interpretations that the at least one error indicator does not meet the preset condition. For example, the at least one error index corresponding to the at least one error link does not meet the preset condition, including: the at least one error link. One or more of the bit error indicators do not meet the preset condition; or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition. Wherein, the statistical value of the at least one bit error indicator may be the cumulative sum, median, average or weighted average of the at least one bit error indicator, and the statistical value of the at least one bit error indicator may also be: the at least one bit error indicator In a bit error indicator, the number of bit error indicators that do not meet the indicator requirements, etc.
可选地,所述至少一个误码指标为至少一个误码率,所述至少一个误码指标中的一个或多个不符合预设条件,包括:所述至少一个误码率中的一个或多个不满足误码率阈值(比如大于误码率阈值,或者,大于或等于误码率阈值);或者,所述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件,包括:所述至少一个误码率中不满足误码率阈值的个数超过预设值,或者,所述至少一个误码率的累加和不满足预设值。Optionally, the at least one bit error indicator is at least one bit error rate, and one or more of the at least one bit error indicator does not meet a preset condition, including: one or more of the at least one bit error rate. A plurality of bit error rate thresholds do not meet (for example, greater than the bit error rate threshold, or greater than or equal to the bit error rate threshold); or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link The setting condition includes: the number of the at least one bit error rate that does not meet the bit error rate threshold exceeds a preset value, or the cumulative sum of the at least one bit error rate does not meet the preset value.
可选地,所述第一转发路径包括:头节点相同且尾节点也相同的一条或多条子路径,需要在第一转发路径上转发的数据,可以通过这些子路径中的任意一条子路径转发,这些子路径可以用于负载分担。示例地,第一转发路径可以为基于第六版互联网协议的段路由策略(SRv6 policy)或者段路由流量工程策略(SR-TE policy)中的候选路径(candidate path),候选路径包括至少一个段路由列表(segment list),第一转发路径中的子路径可以为候选路径中segment list所指示的数据转发路径。第一转发路径中可以存在至少一条误码子路径,误码子路径为存在误码的子路径。所述第一转发路径的误码指标不符合预设条件,包括:所述至少一条误码子路径对应的至少一个误码指标不符合预设条件。此时,转发节点可以根据该至少一条误码子路径对应的至少一个误码指标不符合预设条件,确定第一转发路径的误码指标不符合预设条件。Optionally, the first forwarding path includes: one or more subpaths with the same head node and the same tail node, and the data that needs to be forwarded on the first forwarding path can be forwarded through any of these subpaths. , these subpaths can be used for load sharing. For example, the first forwarding path may be a candidate path (candidate path) in a segment routing policy (SRv6 policy) or a segment routing traffic engineering policy (SR-TE policy) based on Internet Protocol Version 6, and the candidate path includes at least one segment A routing list (segment list), the sub-path in the first forwarding path may be the data forwarding path indicated by the segment list in the candidate path. There may be at least one bit-error sub-path in the first forwarding path, and the bit-error sub-path is a sub-path with bit errors. The bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition. In this case, the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition according to the at least one error index corresponding to the at least one error sub-path does not meet the preset condition.
所述至少一条误码子路径对应的至少一个误码指标不符合预设条件,可以参考至少一条误码链路对应的至少一个误码指标不符合预设条件,本申请在此不做赘述。The at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition, and it can be referred to that the at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition, which is not repeated in this application.
在所述第一转发路径包括至少一条误码子路径,且该至少一条误码子路径对应的至少一个误码指标不符合预设条件的情况下,所述第二转发路径不包括所述至少一条误码子路径中的一条或多条。由于第二转发路径不包括第一转发路径中的一条或多条误码子路径,因此,转发节点采用第二转发路径转发数据能够避免数据在该一条或多条误码子路径转发,所以能够避免或缓解数据在这些误码子路径上转发而引起的转发质量低的情况。In the case that the first forwarding path includes at least one bit error sub-path, and the at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition, the second forwarding path does not include the at least one error sub-path One or more of the codon paths. Since the second forwarding path does not include one or more bit error sub-paths in the first forwarding path, the forwarding node can avoid data forwarding on the one or more bit error sub-paths by using the second forwarding path to forward data, so it can avoid or Alleviate the situation of low forwarding quality caused by data forwarding on these bit-error subpaths.
可选地,所述第一转发路径和所述第二转发路径属于同一数据隧道,或者所述第一转发路径和所述第二转发路径属于不同数据隧道。当第一转发路径和第二转发路径属于同一数据隧道时,转发节点可以根据针对该数据隧道的选路策略将第一转发路径切换为第二转发路径。当第一转发路径和第二转发路径属于不同的数据隧道(比如第一转发路径属于第一数据隧道,第二转发路径属于第二数据隧道)时,转发节点可以通过将第一数据隧道切换为第二数据隧道,以使数据所转发的路径由第一转发路径切换为第二转发路径。Optionally, the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels. When the first forwarding path and the second forwarding path belong to the same data tunnel, the forwarding node may switch the first forwarding path to the second forwarding path according to the routing policy for the data tunnel. When the first forwarding path and the second forwarding path belong to different data tunnels (for example, the first forwarding path belongs to the first data tunnel, and the second forwarding path belongs to the second data tunnel), the forwarding node can switch the first data tunnel to The second data tunnel is used to switch the data forwarding path from the first forwarding path to the second forwarding path.
可选地,无论第一转发路径是否属于数据隧道中的路径,该第二转发路径均可以是由转发节点计算得到的路径。此时,所述方法还可以包括:转发节点在将所述第一转发路径切换为第二转发路径之前,计算所述第二转发路径。比如,第二转发路径为转发节点计算(例如基于内部网关协议(Interior Gateway Protocol,IGP)计算)得到的路径。在这种情况下,转发节点在确定第一转发路径的误码指标不满足预设条件时,可以计算第二转发路径,之后再将第一转发路径切换为第二转发路径,该过程无需依赖控制器,因此将第一转发路径切换为第二转发路径的时效性较高。并且,转发节点可以是第一转发路径上的任一节点,比如头节点或中间节点等。第二转发路径可以是数据隧道中的路径,也可以不是数据隧道中的路径,本申请实施例对此不作唯一限定。Optionally, regardless of whether the first forwarding path belongs to a path in the data tunnel, the second forwarding path may be a path calculated by the forwarding node. At this time, the method may further include: before the forwarding node switches the first forwarding path to the second forwarding path, calculating the second forwarding path. For example, the second forwarding path is a path calculated by the forwarding node (for example, calculated based on an interior gateway protocol (Interior Gateway Protocol, IGP)). In this case, when the forwarding node determines that the bit error index of the first forwarding path does not meet the preset condition, it can calculate the second forwarding path, and then switch the first forwarding path to the second forwarding path. This process does not need to rely on Therefore, the timeliness of switching the first forwarding path to the second forwarding path is relatively high. Moreover, the forwarding node may be any node on the first forwarding path, such as a head node or an intermediate node. The second forwarding path may be a path in the data tunnel, or may not be a path in the data tunnel, which is not uniquely limited in this embodiment of the present application.
可选地,当所述第一转发路径属于第一数据隧道,所述第二转发路径属于第二数据隧道时,第二数据隧道可以是转发节点中上层业务预先配置的隧道,转发节点在确定第一转发路径的误码指标不符合预设条件时,可以将该第一数据隧道切换为第二数据隧道,以使第一转发路径切换为第二转发路径。该上层业务可以是任一种业务,比如三层虚拟专网(Layer 3 Virtual Private Network,L3VPN)业务等。Optionally, when the first forwarding path belongs to the first data tunnel and the second forwarding path belongs to the second data tunnel, the second data tunnel may be a tunnel pre-configured for upper-layer services in the forwarding node, and the forwarding node determines When the bit error indicator of the first forwarding path does not meet the preset condition, the first data tunnel may be switched to the second data tunnel, so that the first forwarding path is switched to the second forwarding path. The upper layer service may be any service, such as a Layer 3 Virtual Private Network (Layer 3 Virtual Private Network, L3VPN) service and the like.
可选地,当所述第一转发路径属于第一数据隧道,所述第二转发路径属于第二数据隧道时,第二数据隧道可以是控制器规划的数据隧道。在这种情况下,所述方法还包括:转发节点在将所述第一转发路径切换为第二转发路径之前,向控制器发送用于请求切换所述第一数据隧道的切换请求消息;之后,转发节点从所述控制器接收切换响应消息,所述切换响应消息可以用于指示使用所述第二数据隧道转发所述数据;此时,转发节点在将所述第一转发路径切换为第二转发路径时,可以将所述第一转发路径切换为所述第二数据隧道中的所述第二转发路径以转发所述数据。Optionally, when the first forwarding path belongs to a first data tunnel and the second forwarding path belongs to a second data tunnel, the second data tunnel may be a data tunnel planned by the controller. In this case, the method further includes: before switching the first forwarding path to the second forwarding path, the forwarding node sends a switching request message for requesting switching of the first data tunnel to the controller; after that , the forwarding node receives a handover response message from the controller, and the handover response message can be used to instruct to use the second data tunnel to forward the data; at this time, the forwarding node is switching the first forwarding path to the first forwarding path. When there are two forwarding paths, the first forwarding path may be switched to the second forwarding path in the second data tunnel to forward the data.
可选地,所述请求消息为边界网关协议(Border Gateway Protocol,BGP)消息。Optionally, the request message is a Border Gateway Protocol (Border Gateway Protocol, BGP) message.
可选地,转发节点在确定第一转发路径的误码指标不满足预设条件时,也可以先基于第一数据隧道的策略调整第一转发路径。当第一数据隧道中的每个数据转发路径的误码指标均不满预设条件时,转发节点可以将第一数据隧道切换为第二数据隧道,以将第一数据隧道中的第一转发路径切换为第二数据隧道中的第二转发路径。Optionally, when determining that the bit error indicator of the first forwarding path does not meet the preset condition, the forwarding node may first adjust the first forwarding path based on the policy of the first data tunnel. When the bit error index of each data forwarding path in the first data tunnel is not below the preset condition, the forwarding node may switch the first data tunnel to the second data tunnel, so as to switch the first forwarding path in the first data tunnel Switch to the second forwarding path in the second data tunnel.
可选地,所述方法还包括:转发节点根据所述第一转发路径的误码指标不符合预设条件,向控制器发送误码消息,所述误码消息用于通告与所述第一转发路径关联的误码信息。示例 地,该误码信息可以包括:第一转发路径的误码指标不符合预设条件,第一转发路径中的误码链路,第一转发路径中不符合预设条件的误码链路,和/或,转发节点对该第一转发路径的调整情况(比如转发节点将该第一转发路径切换为第二转发路径)等。由于本申请实施例中转发节点能够向控制器通告与第一转发路径关联的误码信息,因此,控制器能够根据该误码信息对节点的网络拓扑,以及布局在多个节点上的数据转发路径进行管理,并且控制器可以参考该误码信息布局其他数据转发路径,从而尽量避免布局的其他数据转发路径的误码指标不符合预设条件。Optionally, the method further includes: the forwarding node sends an error message to the controller according to the error index of the first forwarding path not meeting a preset condition, where the error message is used to notify and communicate with the first forwarding path. Bit error information associated with the forwarding path. Exemplarily, the bit error information may include: a bit error indicator of the first forwarding path does not meet a preset condition, an errored link in the first forwarding path, and an errored link in the first forwarding path that does not meet the preset condition. , and/or, the adjustment status of the first forwarding path by the forwarding node (for example, the forwarding node switches the first forwarding path to the second forwarding path), etc. Since the forwarding node in the embodiment of the present application can notify the controller of the bit error information associated with the first forwarding path, the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information. Path management, and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
可选地,误码消息为BGP消息。Optionally, the error message is a BGP message.
可选地,所述方法还包括:转发节点获取允许调整的一条或多条路径的路径指示,所述一条或多条路径包括:与所述第一转发路径不同的至少一条路径;转发节点在将所述第一转发路径切换为第二转发路径时,可以根据所述路径指示从与所述第一转发路径不同的所述至少一条路径中确定所述第二转发路径,并将所述第一转发路径切换至所述第二转发路径;转发节点在降低数据在所述第一转发路径上的传输比例时,可以根据所述路径指示从与所述第一转发路径不同的所述至少一条路径中确定第三转发路径,降低所述数据在所述第一转发路径上的传输比例,并提高所述数据在所述第三转发路径上的传输比例。本申请中可以根据需要设置第二转发路径和第三转发路径是否属于允许被调整的路径,因此,能够提升路径调整的灵活性。Optionally, the method further includes: the forwarding node obtains a path indication of one or more paths that are allowed to be adjusted, the one or more paths include: at least one path different from the first forwarding path; When switching the first forwarding path to the second forwarding path, the second forwarding path may be determined from the at least one path different from the first forwarding path according to the path indication, and the first forwarding path may be changed to the second forwarding path. A forwarding path is switched to the second forwarding path; when the forwarding node reduces the transmission ratio of data on the first forwarding path, the forwarding node may indicate the path from the at least one different from the first forwarding path according to the path. A third forwarding path is determined in the path, the transmission ratio of the data on the first forwarding path is reduced, and the transmission ratio of the data on the third forwarding path is increased. In the present application, whether the second forwarding path and the third forwarding path belong to the paths allowed to be adjusted can be set as required, so the flexibility of path adjustment can be improved.
可选地,转发节点在对第一转发路径进行调整之前,还可以判断第一转发路径是否属于允许调整的路径,在确定第一转发路径属于允许调整的路径时,才对第一转发路径进行调整。此时,所述方法还包括:转发节点获取允许调整的一条或多条路径的路径指示;转发节点在将所述第一转发路径切换为第二转发路径时,可以根据所述允许调整的一条或多条路径包括所述第一转发路径,将所述第一转发路径切换为第二转发路径;转发节点在降低数据在所述第一转发路径上的传输比例时,可以根据所述允许调整的一条或多条路径包括所述第一转发路径,降低数据在所述第一转发路径上的传输比例。当第一转发路径对数据转发质量有一定要求时,允许调整的一条或多条路径可以包括该第一转发路径;当第一转发路径对数据转发质量没有要求时,允许调整的一条或多条路径可以不包括该第一转发路径。这样一来,在第一转发路径对数据转发质量没有要求时,就能够避免转发节点调整第一转发路径而引起的负载增高,从而减轻了转发节点的负载。Optionally, before adjusting the first forwarding path, the forwarding node may also determine whether the first forwarding path belongs to a path that allows adjustment, and only performs the first forwarding path when it is determined that the first forwarding path belongs to a path that allows adjustment. Adjustment. At this time, the method further includes: the forwarding node obtains a path indication of one or more paths that are allowed to be adjusted; when the forwarding node switches the first forwarding path to the second forwarding path, the forwarding node can adjust the path according to the one or more paths that are allowed to be adjusted. or multiple paths include the first forwarding path, and the first forwarding path is switched to the second forwarding path; when the forwarding node reduces the transmission ratio of the data on the first forwarding path, it can adjust according to the permission One or more of the paths include the first forwarding path, reducing the proportion of data transmission on the first forwarding path. When the first forwarding path has certain requirements on data forwarding quality, one or more paths that are allowed to be adjusted may include the first forwarding path; when the first forwarding path does not require data forwarding quality, one or more paths that are allowed to be adjusted The path may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
可选地,上述路径指示可以是控制器下发给转发节点的,也可以是其他装置下发给转发节点的,也可以是转发节点本地配置的,本申请实施例对此不作限定。当路径指示是控制器下发给转发节点的时,该路径指示携带在控制器发送至所述转发节点的BGP消息或路径计算单元通信协议(Path Computation Element Protocol,PCEP)消息中。可选地,该BGP消息或PCEP消息可以是用于下发数据隧道的策略的消息。Optionally, the above path indication may be delivered by the controller to the forwarding node, may be delivered by other devices to the forwarding node, or may be configured locally by the forwarding node, which is not limited in this embodiment of the present application. When the path indication is issued by the controller to the forwarding node, the path indication is carried in the BGP message or the Path Computation Element Protocol (Path Computation Element Protocol, PCEP) message sent by the controller to the forwarding node. Optionally, the BGP message or the PCEP message may be a message for delivering a policy of the data tunnel.
可选地,所述第一转发路径和所述第二转发路径的头节点为所述转发节点,所述第一转发路径和所述第二转发路径的尾节点相同。在其他可能的情形下,也不排除在某些场景中这些转发路径的头节点不同,尾节点也可以不同,但至少能够基于某些指示关系发生关联,以使得转发节点确定可以将所述第一转发路径切换为所述第二转发路径。Optionally, head nodes of the first forwarding path and the second forwarding path are the forwarding nodes, and tail nodes of the first forwarding path and the second forwarding path are the same. In other possible situations, it is not excluded that the head nodes and tail nodes of these forwarding paths may be different in some scenarios, but at least they can be associated based on some indication relationships, so that the forwarding node can determine that the first node can be A forwarding path is switched to the second forwarding path.
可选地,所述第一转发路径属于SRv6 policy或SR-TE policy中的路径。Optionally, the first forwarding path belongs to a path in the SRv6 policy or the SR-TE policy.
转发节点在将第一转发路径切换为第二转发路径时,可以将所述第一转发路径切换为所 述SRv6 policy或者所述SR-TE policy中的所述第二转发路径,其中,所述第一转发路径和所述第二转发路径为所述SRv6 policy或者所述SR-TE policy中的不同候选路径,或者由所述SRv6 policy或者所述SR-TE policy中同一候选路径中的不同segment list指示。可以看出,当第一转发路径为第一数据隧道中的某一候选路径时,转发节点可以将第一转发路径切换为第一数据隧道的策略中的其他候选路径,以将第一转发路径切换为第二转发路径。此时,第一转发路径和第二转发路径为第一数据隧道的策略中的不同候选路径。可选地,该第二转发路径可以是第一数据隧道中除第一转发路径之外的优先级最高的候选路径。When switching the first forwarding path to the second forwarding path, the forwarding node may switch the first forwarding path to the second forwarding path in the SRv6 policy or the SR-TE policy, wherein the The first forwarding path and the second forwarding path are different candidate paths in the SRv6 policy or the SR-TE policy, or different segments in the same candidate path in the SRv6 policy or the SR-TE policy list instructions. It can be seen that when the first forwarding path is a certain candidate path in the first data tunnel, the forwarding node can switch the first forwarding path to another candidate path in the policy of the first data tunnel, so as to convert the first forwarding path to another candidate path in the policy of the first data tunnel. Switch to the second forwarding path. At this time, the first forwarding path and the second forwarding path are different candidate paths in the policy of the first data tunnel. Optionally, the second forwarding path may be a candidate path with the highest priority other than the first forwarding path in the first data tunnel.
转发节点在降低数据在所述第一转发路径上的传输比例时,可以降低数据在所述第一转发路径上的传输比例,并提高与所述第一转发路径属于同一候选路径,并由其他segment list指示的一条或多条路径上对所述数据的传输比例。可以看出,当第一转发路径为第一数据隧道中某一候选路径中某一段路由列表所指示的数据转发路径时,转发节点可以将第一转发路径切换为该候选路径中其他段路由列表所指示的数据转发路径。此时,第一转发路径和第二转发路径为第一数据隧道的策略中同一候选路径中不同段路由列表指示的数据转发路径。When reducing the transmission ratio of data on the first forwarding path, the forwarding node may reduce the transmission ratio of data on the first forwarding path, and increase the candidate path that belongs to the same candidate path as the first forwarding path and is sent by other nodes. The proportion of the transmission of the data on one or more paths indicated by the segment list. It can be seen that when the first forwarding path is a data forwarding path indicated by a certain segment routing list in a candidate path in the first data tunnel, the forwarding node can switch the first forwarding path to another segment routing list in the candidate path. The indicated data forwarding path. In this case, the first forwarding path and the second forwarding path are data forwarding paths indicated by different segment routing lists in the same candidate path in the policy of the first data tunnel.
可选地,转发节点在将所述第一转发路径切换为第二转发路径之后,还可以根据所述第一转发路径的误码指标符合预设条件,将所述第二转发路径切换回所述第一转发路径;或者,转发节点在降低数据在所述第一转发路径上的传输比例之后,还可以根据所述第一转发路径的误码指标符合预设条件,恢复所述数据在第一转发路径上的传输比例。Optionally, after switching the first forwarding path to the second forwarding path, the forwarding node may also switch the second forwarding path back to the second forwarding path according to the code error indicator of the first forwarding path meeting a preset condition. the first forwarding path; or, after reducing the transmission ratio of data on the first forwarding path, the forwarding node may also restore the data in the first forwarding path according to the error index of the first forwarding path meeting a preset condition. A proportion of transmissions on a forwarding path.
可选地,转发节点在将第二转发路径切换回原本的第一转发路径之后(或者恢复数据在第一转发路径上的传输比例后),也可以向控制器发送用于通告第二转发路径切换回第一转发路径(或者恢复数据在第一转发路径上的传输比例)的信息,以便于控制器根据该信息对节点的网络拓扑,以及布局在多个节点上的数据转发路径进行管理。Optionally, after switching the second forwarding path back to the original first forwarding path (or after restoring the transmission ratio of data on the first forwarding path), the forwarding node may also send a message to the controller for announcing the second forwarding path. The information of switching back to the first forwarding path (or restoring the transmission ratio of data on the first forwarding path), so that the controller can manage the network topology of the node and the data forwarding paths laid out on multiple nodes according to the information.
第二方面,提供了一种路径调整方法,所述方法包括:控制器向转发节点发送指示消息,以及控制器接收所述转发节点发送的误码消息;其中,所述指示消息用于指示所述转发节点确定使用第一转发路径转发数据;所述误码消息用于通告与所述第一转发路径关联的误码信息。In a second aspect, a path adjustment method is provided, the method includes: a controller sends an indication message to a forwarding node, and the controller receives a bit error message sent by the forwarding node; wherein the indication message is used to indicate the The forwarding node determines to use the first forwarding path to forward data; the error message is used to announce the error information associated with the first forwarding path.
需要说明的是,控制器能够根据节点间的网络拓扑规划第一数据隧道,并将用于指示使用该第一数据隧道转发数据的指示消息下发至转发节点。此时,转发节点可以是该数据隧道的头节点。控制器下发至转发节点的指示消息可以包括:第一数据隧道的策略(如SRv6 policy或SR-TE policy)。第一数据隧道的策略包括:多条候选路径,每条候选路径包括多个段路由列表,每个段路由列表用于指示一条数据转发路径。当第一数据隧道为SR-TE policy隧道时,段路由列表可以是段路由列表所指示的数据转发路径上节点的标签的列表。当第一数据隧道为SRV6 policy隧道时,段路由列表可以是段路由列表所指示的数据转发路径上节点的第六版互联网协议(IPV6)地址的列表。It should be noted that the controller can plan the first data tunnel according to the network topology between nodes, and deliver an instruction message for instructing to use the first data tunnel to forward data to the forwarding node. At this time, the forwarding node may be the head node of the data tunnel. The instruction message sent by the controller to the forwarding node may include: the policy of the first data tunnel (such as SRv6 policy or SR-TE policy). The strategy of the first data tunnel includes: multiple candidate paths, each candidate path includes multiple segment routing lists, and each segment routing list is used to indicate a data forwarding path. When the first data tunnel is an SR-TE policy tunnel, the segment routing list may be a list of labels of nodes on the data forwarding path indicated by the segment routing list. When the first data tunnel is an SRV6 policy tunnel, the segment routing list may be a list of Internet Protocol Version 6 (IPV6) addresses of nodes on the data forwarding path indicated by the segment routing list.
由于本申请实施例中转发节点能够向控制器通告与第一转发路径关联的误码信息,因此,控制器能够根据该误码信息对节点的网络拓扑,以及布局在多个节点上的数据转发路径进行管理,并且控制器可以参考该误码信息布局其他数据转发路径,从而尽量避免布局的其他数据转发路径的误码指标不符合预设条件。Since the forwarding node in the embodiment of the present application can notify the controller of the bit error information associated with the first forwarding path, the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information. Path management, and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
可选地,所述方法还包括:控制器在接收到所述转发节点发送的切换请求消息之后,根据所述切换请求消息向所述转发节点发送切换响应消息,所述切换响应消息用于指示所述转 发节点确定使用第二转发路径转发所述数据,所述第二转发路径为所述转发节点切换所述第一转发路径后确定使用的转发路径。当第一转发路径属于第一数据隧道,第二转发路径属于第二数据隧道时,第二数据隧道可以是控制器规划的数据隧道。转发节点可以借助控制器确定第二数据隧道,进而将第一转发路径切换为第二数据隧道中的第二转发路径。Optionally, the method further includes: after receiving the handover request message sent by the forwarding node, the controller sends a handover response message to the forwarding node according to the handover request message, where the handover response message is used to indicate The forwarding node determines to use a second forwarding path to forward the data, and the second forwarding path is a forwarding path determined to be used after the forwarding node switches the first forwarding path. When the first forwarding path belongs to the first data tunnel and the second forwarding path belongs to the second data tunnel, the second data tunnel may be a data tunnel planned by the controller. The forwarding node may determine the second data tunnel by means of the controller, and then switch the first forwarding path to the second forwarding path in the second data tunnel.
可选地,所述切换请求消息为BGP消息。Optionally, the handover request message is a BGP message.
可选地,所述第一转发路径和第二转发路径属于同一数据隧道,或者,所述第一转发路径和所述第二转发路径属于不同数据隧道;所述第二转发路径为所述转发节点切换所述第一转发路径后确定使用的转发路径。当第一转发路径和第二转发路径属于同一数据隧道时,转发节点可以根据该数据隧道的策略(也可以称为针对该数据隧道的选路策略)将第一转发路径切换为第二转发路径。当第一转发路径和第二转发路径属于不同的数据隧道(比如第一转发路径属于第一数据隧道,第二转发路径属于第二数据隧道)时,转发节点可以通过将第一数据隧道切换为第二数据隧道,以使数据所转发的路径由第一转发路径切换为第二转发路径。Optionally, the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels; the second forwarding path is the forwarding path The node determines the used forwarding path after switching the first forwarding path. When the first forwarding path and the second forwarding path belong to the same data tunnel, the forwarding node may switch the first forwarding path to the second forwarding path according to the policy of the data tunnel (also referred to as a routing policy for the data tunnel). . When the first forwarding path and the second forwarding path belong to different data tunnels (for example, the first forwarding path belongs to the first data tunnel, and the second forwarding path belongs to the second data tunnel), the forwarding node can switch the first data tunnel to The second data tunnel is used to switch the data forwarding path from the first forwarding path to the second forwarding path.
可选地,所述方法包括:控制器向所述转发节点发送允许调整的一条或多条路径的路径指示,以指示所述转发节点根据所述路径指示进行路径调整。转发节点在对第一转发路径进行调整之前,还可以判断第二转发路径是否属于允许调整的一条或多条路径,在确定第二转发路径属于允许调整的一条或多条路径时,才将第一转发路径切换为第二转发路径。转发节点在对第一转发路径进行调整之前,还可以判断第一转发路径是否属于允许调整的路径,在确定第一转发路径属于允许调整的路径时,才对第一转发路径进行调整。本申请中控制器可以根据需要设置允许被调整的路径,因此,能够提升路径调整的灵活性。当第一转发路径对数据转发质量有一定要求时,控制器设置的允许调整的一条或多条路径可以包括该第一转发路径;当第一转发路径对数据转发质量没有要求时,控制器设置的允许调整的一条或多条路径可以不包括该第一转发路径。这样一来,在第一转发路径对数据转发质量没有要求时,就能够避免转发节点调整第一转发路径而引起的负载增高,从而减轻了转发节点的负载。Optionally, the method includes: the controller sends a path indication of one or more paths that allow adjustment to the forwarding node, so as to instruct the forwarding node to perform path adjustment according to the path indication. Before adjusting the first forwarding path, the forwarding node may also judge whether the second forwarding path belongs to one or more paths that are allowed to be adjusted. A forwarding path is switched to the second forwarding path. Before adjusting the first forwarding path, the forwarding node may further determine whether the first forwarding path belongs to the path that allows adjustment, and adjusts the first forwarding path only when it is determined that the first forwarding path belongs to the path that allows adjustment. In the present application, the controller can set the path that is allowed to be adjusted as required, so the flexibility of path adjustment can be improved. When the first forwarding path has certain requirements for data forwarding quality, one or more paths set by the controller that allow adjustment may include the first forwarding path; when the first forwarding path does not require data forwarding quality, the controller sets The one or more paths that are allowed to adjust may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
可选地,所述路径指示携带在所述指示消息中。该指示消息可以是BGP消息或PCEP消息。Optionally, the path indication is carried in the indication message. The indication message may be a BGP message or a PCEP message.
第三方面,提供了一种路径调整装置,所述路径调整装置包括:转发模块和第一调整模块。其中,转发模块用于利用第一转发路径转发数据;第一调整模块用于根据所述第一转发路径的误码指标不符合预设条件,将所述第一转发路径切换为第二转发路径,或者,降低数据在所述第一转发路径上的传输比例,其中,所述路径调整装置为所述第一转发路径上的节点。In a third aspect, a path adjustment apparatus is provided, the path adjustment apparatus includes: a forwarding module and a first adjustment module. Wherein, the forwarding module is used for forwarding data using the first forwarding path; the first adjustment module is used for switching the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet a preset condition , or, reducing the transmission ratio of data on the first forwarding path, wherein the path adjusting device is a node on the first forwarding path.
本申请提供的路径调整装置能够根据第一转发路径的误码指标不符合预设条件,将第一转发路径切换为第二转发路径,或者,降低数据在第一转发路径上的传输比例,以实现对第一转发路径的调整。从而避免或缓解至少部分数据在误码指标不符合预设条件的第一转发路径上转发而引起的转发质量较低的问题。并且,转发节点能够不借助控制器对第一转发路径进行调整,因此,本申请提供的路径调整方法对路径的调整效率较高,时效性较强。并且,由于路径调整过程允许由转发节点独立完成,因此,也减少了控制器的负载,避免了控制器的负载过高的情况发生。The path adjustment device provided by the present application can switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet the preset condition, or reduce the transmission ratio of data on the first forwarding path, so as to The adjustment of the first forwarding path is implemented. Thus, the problem of low forwarding quality caused by at least part of the data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated. In addition, the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the present application has higher efficiency in adjusting the path and stronger timeliness. Moreover, since the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of an excessively high load of the controller is avoided.
可选地,所述第一转发路径包括至少一条误码链路,所述误码链路为存在误码的链路,所述第二转发路径不包括所述至少一条误码链路中的一条或多条。Optionally, the first forwarding path includes at least one error link, and the error link is a link with an error, and the second forwarding path does not include the at least one error link. one or more.
可选地,所述第一转发路径包括至少一条误码链路,所述误码链路为存在误码的链路,误码链路的误码指标称为误码链路对应的误码指标。所述第一转发路径的误码指标不符合预设条件,包括:所述至少一条误码链路对应的至少一个误码指标不符合预设条件。Optionally, the first forwarding path includes at least one bit error link, the bit error link is a link with bit errors, and the bit error index of the bit error link is called the bit error corresponding to the bit error link. index. The bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition.
可选地,上述至少一个误码指标不符合预设条件可以有多种理解,比如,所述至少一条误码链路对应的至少一个误码指标不符合预设条件,包括:所述至少一个误码指标中的一个或多个不符合预设条件;或者,所述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件。其中,该至少一个误码指标的统计值可以是该至少一个误码指标的累加和、中位数、平均值或加权平均值等,该至少一个误码指标的统计值也可以是:该至少一个误码指标中未达到指标要求的误码指标的个数等,本申请实施例对此不作限定。Optionally, there may be multiple interpretations that the at least one error indicator does not meet the preset condition. For example, the at least one error index corresponding to the at least one error link does not meet the preset condition, including: the at least one error link. One or more of the bit error indicators do not meet the preset condition; or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition. Wherein, the statistical value of the at least one bit error indicator may be the cumulative sum, median, average or weighted average of the at least one bit error indicator, and the statistical value of the at least one bit error indicator may also be: the at least one bit error indicator The number of bit error indicators that do not meet the indicator requirements in a bit error indicator, etc., is not limited in this embodiment of the present application.
可选地,所述至少一个误码指标为至少一个误码率,所述至少一个误码指标中的一个或多个不符合预设条件,包括:所述至少一个误码率中的一个或多个不满足误码率阈值(比如大于误码率阈值,或者,大于或等于误码率阈值);或者,所述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件,包括:所述至少一个误码率中不满足误码率阈值的个数超过预设值,或者,所述至少一个误码率的累加和不满足预设值。Optionally, the at least one bit error indicator is at least one bit error rate, and one or more of the at least one bit error indicator does not meet a preset condition, including: one or more of the at least one bit error rate. A plurality of bit error rate thresholds do not meet (for example, greater than the bit error rate threshold, or greater than or equal to the bit error rate threshold); or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link The setting condition includes: the number of the at least one bit error rate that does not meet the bit error rate threshold exceeds a preset value, or the cumulative sum of the at least one bit error rate does not meet the preset value.
可选地,所述第一转发路径包括:头节点相同且尾结点也相同的一条或多条子路径,需要在第一转发路径上转发的数据,可以通过这些子路径中的任意一条子路径转发,这些子路径可以用于负载分担。示例地,第一转发路径可以为SRv6 policy或者SR-TE policy中的候选路径,候选路径包括至少一个segment list,第一转发路径中的子路径可以为候选路径中segment list所指示的数据转发路径。第一转发路径中可以存在至少一条误码子路径,误码子路径为存在误码的子路径。所述第一转发路径的误码指标不符合预设条件,包括:所述至少一条误码子路径对应的至少一个误码指标不符合预设条件。此时,转发节点可以根据该至少一条误码子路径对应的至少一个误码指标不符合预设条件,确定第一转发路径的误码指标不符合预设条件。Optionally, the first forwarding path includes: one or more sub-paths with the same head node and the same tail node, and the data that needs to be forwarded on the first forwarding path can pass through any one of these sub-paths. Forwarding, these subpaths can be used for load sharing. For example, the first forwarding path may be a candidate path in the SRv6 policy or the SR-TE policy, the candidate path includes at least one segment list, and the sub-path in the first forwarding path may be the data forwarding path indicated by the segment list in the candidate path . There may be at least one bit-error sub-path in the first forwarding path, and the bit-error sub-path is a sub-path with bit errors. The bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition. At this time, the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition according to the at least one error index corresponding to the at least one error sub-path does not meet the preset condition.
所述至少一条误码子路径对应的至少一个误码指标不符合预设条件,可以参考至少一条误码链路对应的至少一个误码指标不符合预设条件,本申请在此不做赘述。The at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition, and it can be referred to that the at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition, which is not repeated in this application.
在第一转发路径包括至少一条误码子路径,且该至少一条误码子路径对应的至少一个误码指标不符合预设条件的情况下,第二转发路径不包括该至少一条误码子路径中的一条或多条。由于第二转发路径不包括第一转发路径中的一条或多条误码子路径,因此,转发节点采用第二转发路径转发数据能够避免数据在该一条或多条误码子路径转发,所以能够避免或缓解数据在这些误码子路径上转发而引起的转发质量低的情况。In the case where the first forwarding path includes at least one error sub-path, and the at least one error indicator corresponding to the at least one error sub-path does not meet the preset condition, the second forwarding path does not include one of the at least one error sub-path or more. Since the second forwarding path does not include one or more bit error sub-paths in the first forwarding path, the forwarding node can avoid data forwarding on the one or more bit error sub-paths by using the second forwarding path to forward data, so it can avoid or Alleviate the situation of low forwarding quality caused by data forwarding on these bit-error subpaths.
可选地,所述第一转发路径和所述第二转发路径属于同一数据隧道,或者所述第一转发路径和所述第二转发路径属于不同数据隧道。当第一转发路径和第二转发路径属于同一数据隧道时,路径调整装置中的第一调整模块可以根据该数据隧道的策略(也可以称为针对该数据隧道的选路策略)将第一转发路径切换为第二转发路径。当第一转发路径和第二转发路径属于不同的数据隧道(比如第一转发路径属于第一数据隧道,第二转发路径属于第二数据隧道)时,第一调整模块可以通过将第一数据隧道切换为第二数据隧道,以使数据所转发的路径由第一转发路径切换为第二转发路径。Optionally, the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels. When the first forwarding path and the second forwarding path belong to the same data tunnel, the first adjustment module in the path adjustment device may forward the first forwarding according to the policy of the data tunnel (also referred to as the routing policy for the data tunnel). The path is switched to the second forwarding path. When the first forwarding path and the second forwarding path belong to different data tunnels (for example, the first forwarding path belongs to the first data tunnel and the second forwarding path belongs to the second data tunnel), the first adjustment module may Switch to the second data tunnel, so that the data forwarding path is switched from the first forwarding path to the second forwarding path.
可选地,所述路径调整装置还包括:计算模块,用于计算(例如基于IGP计算)所述第二转发路径。在这种情况下,转发节点在确定第一转发路径的误码指标不满足预设条件时, 可以计算第二转发路径,之后再将第一转发路径切换为第二转发路径,该过程无需依赖控制器,因此将第一转发路径切换为第二转发路径的时效性较高。并且,转发节点可以是第一转发路径上的任一节点,比如头节点或中间节点等。第二转发路径可以是数据隧道中的路径,也可以不是数据隧道中的路径,本申请实施例对此不作限定。Optionally, the path adjustment apparatus further includes: a calculation module, configured to calculate (eg, calculate based on IGP) the second forwarding path. In this case, when the forwarding node determines that the bit error index of the first forwarding path does not meet the preset condition, it can calculate the second forwarding path, and then switch the first forwarding path to the second forwarding path, and this process does not need to rely on Therefore, the timeliness of switching the first forwarding path to the second forwarding path is relatively high. Moreover, the forwarding node may be any node on the first forwarding path, such as a head node or an intermediate node. The second forwarding path may be a path in the data tunnel, or may not be a path in the data tunnel, which is not limited in this embodiment of the present application.
可选地,所述第一转发路径属于第一数据隧道,所述第二转发路径属于第二数据隧道,所述路径调整装置还包括:第一发送模块和接收模块。其中,第一发送模块用于向控制器发送用于请求切换所述第一数据隧道的切换请求消息;接收模块用于从所述控制器接收切换响应消息,所述切换响应消息用于指示使用所述第二数据隧道转发所述数据;所述第一调整模块用于:将所述第一转发路径切换为所述第二数据隧道中的所述第二转发路径以转发所述数据。Optionally, the first forwarding path belongs to a first data tunnel, the second forwarding path belongs to a second data tunnel, and the path adjustment apparatus further includes: a first sending module and a receiving module. The first sending module is configured to send a switching request message for requesting switching of the first data tunnel to the controller; the receiving module is configured to receive a switching response message from the controller, where the switching response message is used to indicate the use of The second data tunnel forwards the data; the first adjustment module is configured to: switch the first forwarding path to the second forwarding path in the second data tunnel to forward the data.
可选地,所述请求消息为BGP消息。Optionally, the request message is a BGP message.
可选地,所述路径调整装置还包括:第二发送模块,用于根据所述第一转发路径的误码指标不符合预设条件,向控制器发送误码消息,所述误码消息用于通告与所述第一转发路径关联的误码信息。示例地,该误码信息可以包括:第一转发路径的误码指标不符合预设条件,第一转发路径中的误码链路,第一转发路径中不符合预设条件的误码链路,和/或,转发节点对该第一转发路径的调整情况(比如转发节点将该第一转发路径切换为第二转发路径)等。由于本申请实施例中转发节点能够向控制器通告与第一转发路径关联的误码信息,因此,控制器能够根据该误码信息对节点的网络拓扑,以及布局在多个节点上的数据转发路径进行管理,并且控制器可以参考该误码信息布局其他数据转发路径,从而尽量避免布局的其他数据转发路径的误码指标不符合预设条件。Optionally, the path adjustment device further includes: a second sending module, configured to send an error message to the controller according to the error index of the first forwarding path not meeting a preset condition, and the error message is used for for notifying bit error information associated with the first forwarding path. Exemplarily, the bit error information may include: a bit error indicator of the first forwarding path does not meet a preset condition, an errored link in the first forwarding path, and an errored link in the first forwarding path that does not meet the preset condition. , and/or, the adjustment status of the first forwarding path by the forwarding node (for example, the forwarding node switches the first forwarding path to the second forwarding path), etc. Since the forwarding node in the embodiment of the present application can notify the controller of the bit error information associated with the first forwarding path, the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information. Path management, and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
可选地,所述路径调整装置包括:获取模块,用于获取允许调整的一条或多条路径的路径指示,所述一条或多条路径包括:与所述第一转发路径不同的至少一条路径;所述第一调整模块用于:根据所述路径指示从与所述第一转发路径不同的所述至少一条路径中确定所述第二转发路径,并将所述第一转发路径切换至所述第二转发路径;或者,根据所述路径指示从与所述第一转发路径不同的所述至少一条路径中确定第三转发路径,降低所述数据在所述第一转发路径上的传输比例,并提高所述数据在所述第三转发路径上的传输比例。本申请中可以根据需要设置第二转发路径和第三转发路径是否属于允许被调整的路径,因此,能够提升路径调整的灵活性。Optionally, the path adjustment apparatus includes: an obtaining module, configured to obtain a path indication of one or more paths that allow adjustment, the one or more paths include: at least one path different from the first forwarding path ; the first adjustment module is configured to: determine the second forwarding path from the at least one path different from the first forwarding path according to the path indication, and switch the first forwarding path to the the second forwarding path; or, determining a third forwarding path from the at least one path different from the first forwarding path according to the path indication, and reducing the transmission ratio of the data on the first forwarding path , and increase the transmission ratio of the data on the third forwarding path. In the present application, whether the second forwarding path and the third forwarding path belong to the paths allowed to be adjusted can be set as required, so the flexibility of path adjustment can be improved.
可选地,所述路径调整装置包括:获取模块,用于获取允许调整的一条或多条路径的路径指示;所述第一调整模块用于:根据所述允许调整的一条或多条路径包括所述第一转发路径,将所述第一转发路径切换为第二转发路径;或者,根据所述允许调整的一条或多条路径包括所述第一转发路径,降低数据在所述第一转发路径上的传输比例。可以看出,转发节点在对第一转发路径进行调整之前,还可以判断第一转发路径是否属于允许调整的路径,在确定第一转发路径属于允许调整的路径时,才对第一转发路径进行调整。当第一转发路径对数据转发质量有一定要求时,允许调整的一条或多条路径可以包括该第一转发路径;当第一转发路径对数据转发质量没有要求时,允许调整的一条或多条路径可以不包括该第一转发路径。这样一来,在第一转发路径对数据转发质量没有要求时,就能够避免转发节点调整第一转发路径而引起的负载增高,从而减轻了转发节点的负载。Optionally, the path adjustment device includes: an obtaining module configured to obtain a path indication of one or more paths that are allowed to be adjusted; the first adjustment module is configured to: according to the one or more paths allowed to be adjusted, include: For the first forwarding path, switch the first forwarding path to the second forwarding path; or, according to the allowable adjustment of one or more paths including the first forwarding path, reduce the amount of data to be forwarded in the first forwarding path. The transmission scale on the path. It can be seen that, before adjusting the first forwarding path, the forwarding node can also determine whether the first forwarding path belongs to the path that allows adjustment, and only performs the first forwarding path when it is determined that the first forwarding path belongs to the path that allows adjustment. Adjustment. When the first forwarding path has certain requirements on data forwarding quality, one or more paths that are allowed to be adjusted may include the first forwarding path; when the first forwarding path does not require data forwarding quality, one or more paths that are allowed to be adjusted The path may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
可选地,所述路径指示携带在控制器发送至所述路径调整装置的BGP消息或PCEP消息 中。Optionally, the path indication is carried in a BGP message or a PCEP message sent by the controller to the path adjustment apparatus.
可选地,所述第一转发路径和所述第二转发路径的头节点为所述路径调整装置,所述第一转发路径和所述第二转发路径的尾节点相同。在其他可能的情形下,也不排除在某些场景中这些转发路径的头节点不同,尾节点也可以不同,但至少能够基于某些指示关系发生关联,以使得转发节点确定可以将所述第一转发路径切换为所述第二转发路径。Optionally, head nodes of the first forwarding path and the second forwarding path are the path adjustment apparatus, and tail nodes of the first forwarding path and the second forwarding path are the same. In other possible situations, it is not excluded that the head nodes and tail nodes of these forwarding paths may be different in some scenarios, but at least they can be associated based on some indication relationships, so that the forwarding node can determine that the first node can be A forwarding path is switched to the second forwarding path.
可选地,所述第一转发路径属于SRv6 policy或SR-TE policy中的路径,所述第一调整模块用于:将所述第一转发路径切换为所述SRv6 policy或者所述SR-TE policy中的所述第二转发路径,其中,所述第一转发路径和所述第二转发路径为所述SRv6 policy或者所述SR-TE policy中的不同候选路径,或者由所述SRv6 policy或者所述SR-TE policy中同一候选路径中的不同段路由列表segment list指示;可选地,该第二转发路径可以是第一数据隧道中除第一转发路径之外的优先级最高的候选路径。或者,所述第一调整模块用于:降低数据在所述第一转发路径上的传输比例,并提高与所述第一转发路径属于同一候选路径,并由其他segment list指示的一条或多条路径上对所述数据的传输比例。此时,第一转发路径和第二转发路径为第一数据隧道的策略中同一候选路径中不同段路由列表指示的数据转发路径。Optionally, the first forwarding path belongs to a path in an SRv6 policy or an SR-TE policy, and the first adjustment module is configured to: switch the first forwarding path to the SRv6 policy or the SR-TE policy The second forwarding path in the policy, wherein the first forwarding path and the second forwarding path are different candidate paths in the SRv6 policy or the SR-TE policy, or are determined by the SRv6 policy or Different segment routing lists in the same candidate path in the SR-TE policy indicate; optionally, the second forwarding path may be a candidate path with the highest priority other than the first forwarding path in the first data tunnel . Or, the first adjustment module is configured to: reduce the transmission ratio of data on the first forwarding path, and increase one or more paths that belong to the same candidate path as the first forwarding path and are indicated by other segment lists The proportion of the data transmitted on the path. In this case, the first forwarding path and the second forwarding path are data forwarding paths indicated by different segment routing lists in the same candidate path in the policy of the first data tunnel.
可选地,所述路径调整装置还包括:第二调整模块。该第二调整模块用于:根据所述第一转发路径的误码指标符合预设条件,将所述第二转发路径切换回所述第一转发路径;或者,根据所述第一转发路径的误码指标符合预设条件,恢复所述数据在第一转发路径上的传输比例。Optionally, the path adjustment device further includes: a second adjustment module. The second adjustment module is configured to: switch the second forwarding path back to the first forwarding path according to the bit error index of the first forwarding path meeting a preset condition; or, according to the error of the first forwarding path If the bit error indicator meets the preset condition, the transmission ratio of the data on the first forwarding path is restored.
第四方面,提供了一种路径调整装置,所述路径调整装置包括:第一发送模块和第一接收模块。其中,第一发送模块用于向转发节点发送指示消息,所述指示消息用于指示所述转发节点确定使用第一转发路径转发数据;第一接收模块用于接收所述转发节点发送的误码消息,所述误码消息用于通告与所述第一转发路径关联的误码信息。由于本申请实施例中转发节点能够向路径调整装置通告与第一转发路径关联的误码信息,因此,路径调整装置能够根据该误码信息对节点的网络拓扑,以及布局在多个节点上的数据转发路径进行管理,并且路径调整装置可以参考该误码信息布局其他数据转发路径,从而尽量避免布局的其他数据转发路径的误码指标不符合预设条件。In a fourth aspect, a path adjustment apparatus is provided, and the path adjustment apparatus includes: a first sending module and a first receiving module. The first sending module is configured to send an instruction message to the forwarding node, where the instruction message is used to instruct the forwarding node to determine to use the first forwarding path to forward data; the first receiving module is configured to receive the error code sent by the forwarding node message, where the bit error message is used to announce bit error information associated with the first forwarding path. Since the forwarding node in this embodiment of the present application can notify the path adjustment apparatus of the bit error information associated with the first forwarding path, the path adjustment apparatus can, according to the bit error information, analyze the network topology of the node and the information about the network topology of the node, and the information about the code layout on multiple nodes. The data forwarding path is managed, and the path adjustment device can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
可选地,所述路径调整装置还包括:第二接收模块,用于接收所述转发节点发送的切换请求消息;第二发送模块,用于根据所述切换请求消息向所述转发节点发送切换响应消息,所述切换响应消息用于指示所述转发节点确定使用第二转发路径转发所述数据,所述第二转发路径为所述转发节点切换所述第一转发路径后确定使用的转发路径。可见,当第一转发路径属于第一数据隧道,第二转发路径属于第二数据隧道时,第二数据隧道可以是路径调整装置规划的数据隧道。转发节点可以借助路径调整装置确定第二数据隧道,进而将第一转发路径切换为第二数据隧道中的第二转发路径。Optionally, the path adjustment apparatus further includes: a second receiving module, configured to receive a handover request message sent by the forwarding node; a second sending module, configured to send a handover request message to the forwarding node according to the handover request message A response message, where the switching response message is used to instruct the forwarding node to determine to use a second forwarding path to forward the data, and the second forwarding path is the forwarding path determined to be used by the forwarding node after switching the first forwarding path . It can be seen that when the first forwarding path belongs to the first data tunnel and the second forwarding path belongs to the second data tunnel, the second data tunnel may be a data tunnel planned by the path adjustment apparatus. The forwarding node may determine the second data tunnel by means of the path adjustment device, and then switch the first forwarding path to the second forwarding path in the second data tunnel.
可选地,所述切换请求消息为BGP消息。Optionally, the handover request message is a BGP message.
可选地,所述第一转发路径和第二转发路径属于同一数据隧道,或者,所述第一转发路径和所述第二转发路径属于不同数据隧道;所述第二转发路径为所述转发节点切换所述第一转发路径后确定使用的转发路径。Optionally, the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels; the second forwarding path is the forwarding path The node determines the used forwarding path after switching the first forwarding path.
可选地,所述路径调整装置包括:第三发送模块,用于向所述转发节点发送允许调整的一条或多条路径的路径指示,以指示所述转发节点根据所述路径指示进行路径调整。本申请 中路径调整装置可以根据需要设置允许被调整的路径,因此,能够提升路径调整的灵活性。当第一转发路径对数据转发质量有一定要求时,路径调整装置设置的允许调整的一条或多条路径可以包括该第一转发路径;当第一转发路径对数据转发质量没有要求时,路径调整装置设置的允许调整的一条或多条路径可以不包括该第一转发路径。这样一来,在第一转发路径对数据转发质量没有要求时,就能够避免转发节点调整第一转发路径而引起的负载增高,从而减轻了转发节点的负载。Optionally, the path adjustment apparatus includes: a third sending module, configured to send a path indication of one or more paths that allow adjustment to the forwarding node, so as to instruct the forwarding node to perform path adjustment according to the path indication . The path adjustment device in the present application can set a path that is allowed to be adjusted as required, so the flexibility of path adjustment can be improved. When the first forwarding path has certain requirements for data forwarding quality, one or more paths set by the path adjustment device that allow adjustment may include the first forwarding path; when the first forwarding path does not require data forwarding quality, the path adjustment One or more paths set by the device to allow adjustment may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
可选地,所述路径指示携带在所述指示消息中。该指示消息可以是BGP消息或PCEP消息。Optionally, the path indication is carried in the indication message. The indication message may be a BGP message or a PCEP message.
第五方面,提供了一种通信系统,所述通信系统包括:多个节点;所述多个节点中的至少部分节点位于第一转发路径上,转发节点为所述第一转发路径上的任一节点,例如作为隧道端设备的路径头节点;所述转发节点用于:使用第一转发路径转发数据;根据所述第一转发路径的误码指标不符合预设条件,将所述第一转发路径切换为第二转发路径,或者,降低数据在所述第一转发路径上的传输比例。所述至少部分节点中除所述转发节点之外的其他节点用于:根据所述第一转发路径,接收所述转发节点转发的数据,或者向所述转发节点转发数据。In a fifth aspect, a communication system is provided, the communication system includes: a plurality of nodes; at least some of the nodes in the plurality of nodes are located on a first forwarding path, and the forwarding node is any node on the first forwarding path. A node, for example, a path head node of a tunnel end device; the forwarding node is configured to: forward data using the first forwarding path; The forwarding path is switched to the second forwarding path, or the ratio of data transmission on the first forwarding path is reduced. Other nodes other than the forwarding node in the at least part of the nodes are configured to: receive data forwarded by the forwarding node according to the first forwarding path, or forward data to the forwarding node.
转发节点能够根据第一转发路径的误码指标不符合预设条件,将第一转发路径切换为第二转发路径,或者,降低数据在第一转发路径上的传输比例,以实现对第一转发路径的调整。从而避免或缓解至少部分数据在误码指标不符合预设条件的第一转发路径上转发而引起的转发质量较低的问题。并且,转发节点能够不借助控制器对第一转发路径进行调整,因此,本申请提供的路径调整方法对路径的调整效率较高,时效性较强。并且,由于路径调整过程允许由转发节点独立完成,因此,也减少了控制器的负载,避免了控制器的负载过高的情况发生。The forwarding node can switch the first forwarding path to the second forwarding path according to the fact that the error index of the first forwarding path does not meet the preset condition, or reduce the transmission ratio of data on the first forwarding path, so as to realize the forwarding of the first forwarding path. Path adjustment. Thus, the problem of low forwarding quality caused by at least part of the data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated. In addition, the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the present application has higher efficiency in adjusting the path and stronger timeliness. Moreover, since the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of an excessively high load of the controller is avoided.
可选地,所述通信系统还包括:控制器;所述控制器用于:向所述转发节点发送路径指示消息,所述转发节点用于:根据所述路径指示消息确定使用第一转发路径转发数据。Optionally, the communication system further includes: a controller; the controller is configured to: send a path indication message to the forwarding node, and the forwarding node is configured to: determine to use the first forwarding path for forwarding according to the path indication message data.
第六方面,提供了一种通信系统,所述通信系统包括:控制器和转发节点;所述控制器用于:向所述转发节点发送路径指示消息;所述转发节点用于:在根据所述消息确定使用第一转发路径转发数据之后,根据所述第一转发路径的误码指标不符合预设条件,将所述第一转发路径切换为第二转发路径,或者,降低数据在所述第一转发路径上的传输比例,其中,所述转发节点为所述第一转发路径上的节点。In a sixth aspect, a communication system is provided, the communication system includes: a controller and a forwarding node; the controller is configured to: send a path indication message to the forwarding node; the forwarding node is configured to: After the message determines to use the first forwarding path to forward data, the first forwarding path is switched to the second forwarding path according to the error indicator of the first forwarding path does not meet the preset condition, or the data is reduced in the first forwarding path. A transmission ratio on a forwarding path, wherein the forwarding node is a node on the first forwarding path.
转发节点能够根据第一转发路径的误码指标不符合预设条件,将第一转发路径切换为第二转发路径,或者,降低数据在第一转发路径上的传输比例,以实现对第一转发路径的调整。从而避免或缓解至少部分数据在误码指标不符合预设条件的第一转发路径上转发而引起的转发质量较低的问题。并且,转发节点能够不借助控制器对第一转发路径进行调整,因此,本申请提供的路径调整方法对路径的调整效率较高,时效性较强。并且,由于路径调整过程允许由转发节点独立完成,因此,也减少了控制器的负载,避免了控制器的负载过高的情况发生。The forwarding node can switch the first forwarding path to the second forwarding path according to the fact that the error index of the first forwarding path does not meet the preset condition, or reduce the transmission ratio of data on the first forwarding path, so as to realize the forwarding of the first forwarding path. Path adjustment. Thus, the problem of low forwarding quality caused by at least part of the data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated. In addition, the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the present application has higher efficiency in adjusting the path and stronger timeliness. Moreover, since the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of an excessively high load of the controller is avoided.
可选地,对于第五方面或第六方面提供的通信系统,所述第一转发路径包括至少一条误码链路,所述误码链路为存在误码的链路,所述第二转发路径不包括所述至少一条误码链路中的一条或多条。由于第二转发路径不包括第一转发路径中的一条或多条误码链路,因此, 转发节点采用第二转发路径转发数据能够避免数据在该一条或多条误码链路转发,所以能够避免或缓解数据在这些误码链路上转发而引起的转发质量低的情况。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the first forwarding path includes at least one error link, the error link is a link with errors, and the second forwarding The path does not include one or more of the at least one errored link. Since the second forwarding path does not include one or more error links in the first forwarding path, the forwarding node can avoid data forwarding on the one or more error links by using the second forwarding path to forward data. Avoid or alleviate the situation of low forwarding quality caused by data forwarding on these erroneous links.
可选地,对于第五方面或第六方面提供的通信系统,所述第一转发路径包括至少一条误码链路,所述误码链路为存在误码的链路,误码链路的误码指标称为误码链路对应的误码指标。所述第一转发路径的误码指标不符合预设条件,包括:所述至少一条误码链路对应的至少一个误码指标不符合预设条件。可选地,转发节点可以基于BFD协议检测第一转发路径上的误码链路。之后,转发节点可以在该至少一条误码链路对应的至少一个误码指标不符合预设条件时,确定第一转发路径的误码指标不符合预设条件。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the first forwarding path includes at least one bit error link, the bit error link is a link with bit errors, and the bit error link is The bit error indicator is called the bit error indicator corresponding to the bit error link. The bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition. Optionally, the forwarding node may detect the error link on the first forwarding path based on the BFD protocol. Afterwards, the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition when the at least one error index corresponding to the at least one error link does not meet the preset condition.
可选地,对于第五方面或第六方面提供的通信系统,上述至少一个误码指标不符合预设条件可以有多种理解,比如,所述至少一条误码链路对应的至少一个误码指标不符合预设条件,包括:所述至少一个误码指标中的一个或多个不符合预设条件;或者,所述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件。其中,该至少一个误码指标的统计值可以是该至少一个误码指标的累加和、中位数、平均值或加权平均值等,该至少一个误码指标的统计值也可以是:该至少一个误码指标中未达到指标要求的误码指标的个数等,本申请实施例对此不作限定。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, there may be multiple interpretations that the at least one bit error indicator does not meet the preset condition, for example, at least one bit error corresponding to the at least one bit error link. The indicators do not meet the preset conditions, including: one or more of the at least one bit error indicators do not meet the preset conditions; or, the statistical value of the at least one bit error indicator corresponding to the at least one bit error link does not meet the requirements preset conditions. Wherein, the statistical value of the at least one bit error indicator may be the cumulative sum, median, average or weighted average of the at least one bit error indicator, and the statistical value of the at least one bit error indicator may also be: the at least one bit error indicator The number of bit error indicators that do not meet the indicator requirements in a bit error indicator, etc., is not limited in this embodiment of the present application.
可选地,对于第五方面或第六方面提供的通信系统,所述至少一个误码指标为至少一个误码率,所述至少一个误码指标中的一个或多个不符合预设条件,包括:所述至少一个误码率中的一个或多个不满足误码率阈值(比如大于误码率阈值,或者,大于或等于误码率阈值);或者,所述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件,包括:所述至少一个误码率中不满足误码率阈值的个数超过预设值,或者,所述至少一个误码率的累加和不满足预设值。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the at least one bit error indicator is at least one bit error rate, and one or more of the at least one bit error indicator does not meet a preset condition, Including: one or more of the at least one bit error rate does not meet the bit error rate threshold (for example, greater than the bit error rate threshold, or greater than or equal to the bit error rate threshold); or, the at least one bit error link The statistical value of the corresponding at least one bit error index does not meet the preset condition, including: the number of the at least one bit error rate that does not meet the bit error rate threshold exceeds the preset value, or, the at least one bit error rate The accumulated sum does not meet the preset value.
可选地,对于第五方面或第六方面提供的通信系统,所述第一转发路径包括:头节点相同且尾结点也相同的一条或多条子路径,需要在第一转发路径上转发的数据,可以通过这些子路径中的任意一条子路径转发,这些子路径可以用于负载分担。示例地,第一转发路径可以为SRv6 policy或者SR-TE policy中的候选路径,候选路径包括至少一个segment list,第一转发路径中的子路径可以为候选路径中segment list所指示的数据转发路径。第一转发路径中可以存在至少一条误码子路径,误码子路径为存在误码的子路径。所述第一转发路径的误码指标不符合预设条件,包括:所述至少一条误码子路径对应的至少一个误码指标不符合预设条件。此时,转发节点可以根据该至少一条误码子路径对应的至少一个误码指标不符合预设条件,确定第一转发路径的误码指标不符合预设条件。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the first forwarding path includes: one or more sub-paths with the same head node and the same tail node, which need to be forwarded on the first forwarding path. Data can be forwarded through any of these sub-paths, and these sub-paths can be used for load balancing. For example, the first forwarding path may be a candidate path in the SRv6 policy or the SR-TE policy, the candidate path includes at least one segment list, and the sub-path in the first forwarding path may be the data forwarding path indicated by the segment list in the candidate path . There may be at least one bit-error sub-path in the first forwarding path, and the bit-error sub-path is a sub-path with bit errors. The bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition. In this case, the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition according to the at least one error index corresponding to the at least one error sub-path does not meet the preset condition.
所述至少一条误码子路径对应的至少一个误码指标不符合预设条件,可以参考至少一条误码链路对应的至少一个误码指标不符合预设条件,本申请在此不做赘述。The at least one bit error indicator corresponding to the at least one bit error sub-path does not meet the preset condition, and it can be referred to that the at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition, which is not repeated in this application.
在第一转发路径包括至少一条误码子路径,且该至少一条误码子路径对应的至少一个误码指标不符合预设条件的情况下,第二转发路径不包括该至少一条误码子路径中的一条或多条。由于第二转发路径不包括第一转发路径中的一条或多条误码子路径,因此,转发节点采用第二转发路径转发数据能够避免数据在该一条或多条误码子路径转发,所以能够避免或缓解数据在这些误码子路径上转发而引起的转发质量低的情况。In the case where the first forwarding path includes at least one error sub-path, and the at least one error indicator corresponding to the at least one error sub-path does not meet the preset condition, the second forwarding path does not include one of the at least one error sub-path or more. Since the second forwarding path does not include one or more bit error sub-paths in the first forwarding path, the forwarding node can avoid data forwarding on the one or more bit error sub-paths by using the second forwarding path to forward data, so it can avoid or Alleviate the situation of low forwarding quality caused by data forwarding on these bit-error subpaths.
可选地,对于第五方面或第六方面提供的通信系统,所述第一转发路径和所述第二转发路径属于同一数据隧道,或者所述第一转发路径和所述第二转发路径属于不同数据隧道。当 第一转发路径和第二转发路径属于同一数据隧道时,转发节点可以根据该数据隧道的策略将第一转发路径切换为第二转发路径。当第一转发路径和第二转发路径属于不同的数据隧道(比如第一转发路径属于第一数据隧道,第二转发路径属于第二数据隧道)时,转发节点可以通过将第一数据隧道切换为第二数据隧道,以使数据所转发的路径由第一转发路径切换为第二转发路径。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to the same data tunnel. Different data tunnels. When the first forwarding path and the second forwarding path belong to the same data tunnel, the forwarding node may switch the first forwarding path to the second forwarding path according to the policy of the data tunnel. When the first forwarding path and the second forwarding path belong to different data tunnels (for example, the first forwarding path belongs to the first data tunnel, and the second forwarding path belongs to the second data tunnel), the forwarding node can switch the first data tunnel to The second data tunnel is used to switch the data forwarding path from the first forwarding path to the second forwarding path.
可选地,对于第五方面或第六方面提供的通信系统,无论第一转发路径是否属于数据隧道中的路径,该第二转发路径均可以是由转发节点计算得到的路径。此时,所述转发节点还用于:计算所述第二转发路径。比如,第二转发路径为转发节点计算(例如基于IGP计算)得到的路径。在这种情况下,转发节点在确定第一转发路径的误码指标不满足预设条件时,可以计算第二转发路径,之后再将第一转发路径切换为第二转发路径,该过程无需依赖控制器,因此将第一转发路径切换为第二转发路径的时效性较高。并且,转发节点可以是第一转发路径上的任一节点,比如头节点或中间节点等。第二转发路径可以是数据隧道中的路径,也可以不是数据隧道中的路径,本申请实施例对此不作唯一限定。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, regardless of whether the first forwarding path belongs to a path in the data tunnel, the second forwarding path may be a path calculated by the forwarding node. At this time, the forwarding node is further configured to: calculate the second forwarding path. For example, the second forwarding path is a path calculated by the forwarding node (for example, calculated based on IGP). In this case, when the forwarding node determines that the bit error index of the first forwarding path does not meet the preset condition, it can calculate the second forwarding path, and then switch the first forwarding path to the second forwarding path. This process does not need to rely on Therefore, the timeliness of switching the first forwarding path to the second forwarding path is relatively high. Moreover, the forwarding node may be any node on the first forwarding path, such as a head node or an intermediate node. The second forwarding path may be a path in the data tunnel, or may not be a path in the data tunnel, which is not uniquely limited in this embodiment of the present application.
可选地,对于第五方面或第六方面提供的通信系统,当所述第一转发路径属于第一数据隧道,所述第二转发路径属于第二数据隧道时,第二数据隧道可以是转发节点中上层业务预先配置的隧道,转发节点在确定第一转发路径的误码指标不符合预设条件时,可以将该第一数据隧道切换为第二数据隧道,以使第一转发路径切换为第二转发路径。该上层业务可以是任一种业务,比如L3VPN业务等。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, when the first forwarding path belongs to the first data tunnel and the second forwarding path belongs to the second data tunnel, the second data tunnel may be forwarding. In the pre-configured tunnel of the upper-layer service in the node, when the forwarding node determines that the bit error index of the first forwarding path does not meet the preset condition, it can switch the first data tunnel to the second data tunnel, so that the first forwarding path is switched to The second forwarding path. The upper-layer service may be any service, such as an L3VPN service.
可选地,对于第五方面或第六方面提供的通信系统,所述第一转发路径属于第一数据隧道,所述第二转发路径属于第二数据隧道;第二数据隧道可以是控制器规划的数据隧道。在这种情况下,所述转发节点还用于:向控制器发送用于请求切换所述第一数据隧道的切换请求消息;所述控制器还用于:根据所述切换请求消息向所述转发节点发送切换响应消息,所述切换响应消息用于指示使用所述第二数据隧道转发所述数据;所述转发节点用于:将所述第一转发路径切换为所述第二数据隧道中的所述第二转发路径以转发所述数据。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the first forwarding path belongs to a first data tunnel, and the second forwarding path belongs to a second data tunnel; the second data tunnel may be planned by the controller data tunnel. In this case, the forwarding node is further configured to: send a switching request message for requesting switching of the first data tunnel to the controller; the controller is further configured to: send the switching request message to the controller according to the switching request message The forwarding node sends a switching response message, where the switching response message is used to instruct to use the second data tunnel to forward the data; the forwarding node is used for: switching the first forwarding path to the second data tunnel the second forwarding path to forward the data.
可选地,对于第五方面或第六方面提供的通信系统,所述请求消息为BGP消息。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the request message is a BGP message.
可选地,对于第五方面或第六方面提供的通信系统,转发节点可以用于在确定第一转发路径的误码指标不满足预设条件时,先基于第一数据隧道的策略调整第一转发路径。当第一数据隧道中的每个数据转发路径的误码指标均不满预设条件时,转发节点可以用于将第一数据隧道切换为第二数据隧道,以将第一数据隧道中的第一转发路径切换为第二数据隧道中的第二转发路径。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the forwarding node may be configured to adjust the first forwarding path. When the bit error index of each data forwarding path in the first data tunnel is not below the preset condition, the forwarding node can be used to switch the first data tunnel to the second data tunnel, so as to switch the first data tunnel in the first data tunnel The forwarding path is switched to the second forwarding path in the second data tunnel.
可选地,对于第五方面或第六方面提供的通信系统,所述转发节点还用于:根据所述第一转发路径的误码指标不符合预设条件,向控制器发送误码消息,所述误码消息用于通告与所述第一转发路径关联的误码信息。示例地,该误码信息可以包括:第一转发路径的误码指标不符合预设条件,第一转发路径中的误码链路,第一转发路径中不符合预设条件的误码链路,和/或,转发节点对该第一转发路径的调整情况(比如转发节点将该第一转发路径切换为第二转发路径)等。由于本申请实施例中转发节点能够向控制器通告与第一转发路径关联的误码信息,因此,控制器能够根据该误码信息对节点的网络拓扑,以及布局在多个节点上的数据转发路径进行管理,并且控制器可以参考该误码信息布局其他数据转发路径,从而尽量避免布局的其他数据转发路径的误码指标不符合预设条件。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the forwarding node is further configured to: send an error message to the controller according to the error indicator of the first forwarding path not meeting a preset condition, The bit error message is used to announce bit error information associated with the first forwarding path. Exemplarily, the bit error information may include: a bit error indicator of the first forwarding path does not meet a preset condition, an errored link in the first forwarding path, and an errored link in the first forwarding path that does not meet the preset condition. , and/or, the adjustment status of the first forwarding path by the forwarding node (for example, the forwarding node switches the first forwarding path to the second forwarding path), etc. Since the forwarding node in the embodiment of the present application can notify the controller of the bit error information associated with the first forwarding path, the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information. Path management, and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
可选地,对于第五方面或第六方面提供的通信系统,所述转发节点用于:获取允许调整的一条或多条路径的路径指示,所述一条或多条路径包括:与所述第一转发路径不同的至少一条路径;根据所述路径指示从与所述第一转发路径不同的所述至少一条路径中确定所述第二转发路径,并将所述第一转发路径切换至所述第二转发路径;或者,根据所述路径指示从与所述第一转发路径不同的所述至少一条路径中确定第三转发路径,降低所述数据在所述第一转发路径上的传输比例,并提高所述数据在所述第三转发路径上的传输比例。本申请中可以根据需要设置第二转发路径和第三转发路径是否属于允许被调整的路径,因此,能够提升路径调整的灵活性。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the forwarding node is configured to: obtain a path indication of one or more paths that allow adjustment, where the one or more paths include: at least one path with different forwarding paths; determining the second forwarding path from the at least one path different from the first forwarding path according to the path indication, and switching the first forwarding path to the a second forwarding path; or, determining a third forwarding path from the at least one path different from the first forwarding path according to the path indication, and reducing the transmission ratio of the data on the first forwarding path, and increase the transmission ratio of the data on the third forwarding path. In the present application, whether the second forwarding path and the third forwarding path belong to the paths allowed to be adjusted can be set as required, so the flexibility of path adjustment can be improved.
可选地,对于第五方面或第六方面提供的通信系统,转发节点在对第一转发路径进行调整之前,还可以判断第一转发路径是否属于允许调整的路径,在确定第一转发路径属于允许调整的路径时,才对第一转发路径进行调整。此时,所述转发节点用于:获取允许调整的一条或多条路径的路径指示;根据所述允许调整的一条或多条路径包括所述第一转发路径,将所述第一转发路径切换为第二转发路径;或者,根据所述允许调整的一条或多条路径包括所述第一转发路径,降低数据在所述第一转发路径上的传输比例。当第一转发路径对数据转发质量有一定要求时,允许调整的一条或多条路径可以包括该第一转发路径;当第一转发路径对数据转发质量没有要求时,允许调整的一条或多条路径可以不包括该第一转发路径。这样一来,在第一转发路径对数据转发质量没有要求时,就能够避免转发节点调整第一转发路径而引起的负载增高,从而减轻了转发节点的负载。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, before adjusting the first forwarding path, the forwarding node may also determine whether the first forwarding path belongs to a path that allows adjustment, and after determining that the first forwarding path belongs to The first forwarding path is adjusted only when the adjusted path is allowed. In this case, the forwarding node is configured to: obtain a path indication of one or more paths that are allowed to be adjusted; switch the first forwarding path according to the one or more paths that are allowed to be adjusted including the first forwarding path is the second forwarding path; or, one or more paths adjusted according to the permission include the first forwarding path, reducing the proportion of data transmission on the first forwarding path. When the first forwarding path has certain requirements on data forwarding quality, one or more paths that are allowed to be adjusted may include the first forwarding path; when the first forwarding path does not require data forwarding quality, one or more paths that are allowed to be adjusted The path may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
可选地,对于第五方面或第六方面提供的通信系统,上述路径指示可以是控制器下发给转发节点的,也可以是其他装置下发给转发节点的,也可以是转发节点本地配置的,本申请实施例对此不作限定。当路径指示是控制器下发给转发节点的时,所述路径指示携带在控制器发送至所述转发节点的BGP消息或PCEP消息中。可选地,该BGP消息或PCEP消息可以是用于下发数据隧道的策略的消息。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the above-mentioned path indication may be issued by the controller to the forwarding node, or may be issued by other devices to the forwarding node, or may be configured locally by the forwarding node. Yes, this is not limited in the embodiments of the present application. When the path indication is delivered by the controller to the forwarding node, the path indication is carried in the BGP message or PCEP message sent by the controller to the forwarding node. Optionally, the BGP message or the PCEP message may be a message for delivering a policy of the data tunnel.
可选地,对于第五方面或第六方面提供的通信系统,所述第一转发路径和所述第二转发路径的头节点为所述转发节点,所述第一转发路径和所述第二转发路径的尾节点相同。在其他可能的情形下,也不排除在某些场景中这些转发路径的头节点不同,尾节点也可以不同,但至少能够基于某些指示关系发生关联,以使得转发节点确定可以将所述第一转发路径切换为所述第二转发路径。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the head nodes of the first forwarding path and the second forwarding path are the forwarding nodes, and the first forwarding path and the second forwarding path are the forwarding nodes. The tail nodes of the forwarding path are the same. In other possible situations, it is not excluded that the head nodes and tail nodes of these forwarding paths may be different in some scenarios, but at least they can be associated based on some indication relationships, so that the forwarding node can determine that the first node can be A forwarding path is switched to the second forwarding path.
可选地,对于第五方面或第六方面提供的通信系统,所述第一转发路径属于SRv6 policy或SR-TE policy中的路径,所述转发节点用于:将所述第一转发路径切换为所述SRv6 policy或者所述SR-TE policy中的所述第二转发路径,其中,所述第一转发路径和所述第二转发路径为所述SRv6 policy或者所述SR-TE policy中的不同候选路径,或者由所述SRv6 policy或者所述SR-TE policy中同一候选路径中的不同段路由列表segment list指示。可以看出,当第一转发路径为第一数据隧道中的某一候选路径时,转发节点可以将第一转发路径切换为第一数据隧道的策略中的其他候选路径,以将第一转发路径切换为第二转发路径。此时,第一转发路径和第二转发路径为第一数据隧道的策略中的不同候选路径。可选地,该第二转发路径可以是第一数据隧道中除第一转发路径之外的优先级最高的候选路径。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the first forwarding path belongs to a path in an SRv6 policy or an SR-TE policy, and the forwarding node is configured to: switch the first forwarding path is the second forwarding path in the SRv6 policy or the SR-TE policy, wherein the first forwarding path and the second forwarding path are the SRv6 policy or the SR-TE policy Different candidate paths are indicated by different segment routing lists in the same candidate path in the SRv6 policy or the SR-TE policy. It can be seen that when the first forwarding path is a certain candidate path in the first data tunnel, the forwarding node can switch the first forwarding path to another candidate path in the policy of the first data tunnel, so as to convert the first forwarding path to another candidate path in the policy of the first data tunnel. Switch to the second forwarding path. At this time, the first forwarding path and the second forwarding path are different candidate paths in the policy of the first data tunnel. Optionally, the second forwarding path may be a candidate path with the highest priority other than the first forwarding path in the first data tunnel.
或者,所述第一转发路径属于SRv6 policy或SR-TE policy中的路径,所述转发节点用于:降低数据在所述第一转发路径上的传输比例,并提高与所述第一转发路径属于同一候选路径, 并由其他segment list指示的一条或多条路径上对所述数据的传输比例。可以看出,当第一转发路径为第一数据隧道中某一候选路径中某一段路由列表所指示的数据转发路径时,转发节点可以将第一转发路径切换为该候选路径中其他段路由列表所指示的数据转发路径。此时,第一转发路径和第二转发路径为第一数据隧道的策略中同一候选路径中不同段路由列表指示的数据转发路径。Or, the first forwarding path belongs to a path in the SRv6 policy or the SR-TE policy, and the forwarding node is configured to: reduce the transmission ratio of data on the first forwarding path, and increase the ratio of data transmission on the first forwarding path The proportion of data transmission on one or more paths that belong to the same candidate path and are indicated by other segment lists. It can be seen that when the first forwarding path is a data forwarding path indicated by a certain segment routing list in a candidate path in the first data tunnel, the forwarding node can switch the first forwarding path to another segment routing list in the candidate path. The indicated data forwarding path. In this case, the first forwarding path and the second forwarding path are data forwarding paths indicated by different segment routing lists in the same candidate path in the policy of the first data tunnel.
可选地,对于第五方面或第六方面提供的通信系统,所述转发节点还用于:根据所述第一转发路径的误码指标符合预设条件,将所述第二转发路径切换回所述第一转发路径;或者,根据所述第一转发路径的误码指标符合预设条件,恢复所述数据在第一转发路径上的传输比例。Optionally, for the communication system provided in the fifth aspect or the sixth aspect, the forwarding node is further configured to: switch the second forwarding path back to the second forwarding path according to the error indicator of the first forwarding path meeting a preset condition. the first forwarding path; or, according to the bit error index of the first forwarding path meeting a preset condition, restore the transmission ratio of the data on the first forwarding path.
可选地,转发节点还可以用于:在将第二转发路径切换回原本的第一转发路径之后(或者恢复数据在第一转发路径上的传输比例后),向控制器发送用于通告第二转发路径切换回第一转发路径(或者恢复数据在第一转发路径上的传输比例)的信息,以便于控制器根据该信息对节点的网络拓扑,以及布局在多个节点上的数据转发路径进行管理。Optionally, the forwarding node may also be configured to: after switching the second forwarding path back to the original first forwarding path (or after restoring the transmission ratio of data on the first forwarding path), send a notification to the controller for the first forwarding path. 2. The information about switching the forwarding path back to the first forwarding path (or restoring the transmission ratio of data on the first forwarding path), so that the controller can determine the network topology of the node and the data forwarding paths laid out on multiple nodes according to the information. to manage.
第七方面,提供了一种网络设备,所述网络设备包括:处理器和存储器,所述存储器中存储有程序,所述处理器用于调用所述存储器中存储的程序,以使得所述网络设备执行如第一方面任一设计所述的路径调整方法。In a seventh aspect, a network device is provided, the network device includes: a processor and a memory, where a program is stored in the memory, and the processor is configured to call the program stored in the memory, so that the network device Perform the path adjustment method described in any design of the first aspect.
第八方面,提供了一种网络设备,所述网络设备包括:处理器和存储器,所述存储器中存储有程序,所述处理器用于调用所述存储器中存储的程序,以使得所述网络设备执行如第二方面任一设计所述的路径调整方法。In an eighth aspect, a network device is provided, the network device includes: a processor and a memory, where a program is stored in the memory, and the processor is configured to call the program stored in the memory, so that the network device The path adjustment method described in any design of the second aspect is performed.
第九方面,提供了一种计算机存储介质,所述存储介质内存储有计算机程序,所述计算机程序用于执行如第一方面任一设计所述的路径调整方法。In a ninth aspect, a computer storage medium is provided, where a computer program is stored in the storage medium, and the computer program is used to execute the path adjustment method according to any design of the first aspect.
第十方面,提供了一种计算机存储介质,所述存储介质内存储有计算机程序,所述计算机程序用于执行如第二方面任一设计所述的路径调整方法。In a tenth aspect, a computer storage medium is provided, where a computer program is stored in the storage medium, and the computer program is used to execute the path adjustment method according to any design of the second aspect.
第十一方面,提供了一种包含指令的计算机程序产品,当计算机程序产品在路径调整装置上运行时,使得路径调整装置执行如第一方面任一设计所述的路径调整方法。According to an eleventh aspect, a computer program product containing instructions is provided, when the computer program product is executed on the path adjustment apparatus, the path adjustment apparatus executes the path adjustment method described in any one of the designs of the first aspect.
第十二方面,提供了一种包含指令的计算机程序产品,当计算机程序产品在路径调整装置上运行时,使得路径调整装置执行如第二方面任一设计所述的路径调整方法。A twelfth aspect provides a computer program product comprising instructions, which, when the computer program product runs on the path adjustment device, causes the path adjustment device to execute the path adjustment method according to any design of the second aspect.
第七方面至第十二方面中任一种设计方式所带来的技术效果可参见第一方面中相应设计方式所带来的技术效果,此处不再赘述。For the technical effect brought by any one of the design methods in the seventh aspect to the twelfth aspect, reference may be made to the technical effect brought by the corresponding design method in the first aspect, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种数据沿数据转发路径转发的场景示意图;1 is a schematic diagram of a scenario in which data is forwarded along a data forwarding path according to an embodiment of the present application;
图2为本申请实施例提供的另一种数据沿数据转发路径转发的场景示意图;2 is a schematic diagram of another scenario in which data is forwarded along a data forwarding path according to an embodiment of the present application;
图3为本申请实施例提供的一种网络设备的结构示意图;FIG. 3 is a schematic structural diagram of a network device according to an embodiment of the present application;
图4为本申请实施例提供的一种路径调整方法的流程图;FIG. 4 is a flowchart of a path adjustment method provided by an embodiment of the present application;
图5为本申请实施例提供的一种数据转发路径的示意图;FIG. 5 is a schematic diagram of a data forwarding path provided by an embodiment of the present application;
图6为本申请实施例提供的另一种数据转发路径的示意图;6 is a schematic diagram of another data forwarding path provided by an embodiment of the present application;
图7为本申请实施例提供的一种路径调整示意图;FIG. 7 is a schematic diagram of a path adjustment provided by an embodiment of the present application;
图8为本申请实施例提供的另一种路径调整示意图;FIG. 8 is another schematic diagram of path adjustment provided by an embodiment of the present application;
图9为本申请实施例提供的一种误码TLV的结构示意图;9 is a schematic structural diagram of a bit error TLV provided by an embodiment of the present application;
图10为本申请实施例提供的又一种路径调整示意图;FIG. 10 is another schematic diagram of path adjustment provided by an embodiment of the present application;
图11为本申请实施例提供的一种第一TLV的结构示意图;11 is a schematic structural diagram of a first TLV according to an embodiment of the present application;
图12为本申请实施例提供的一种第二TLV的结构示意图;12 is a schematic structural diagram of a second TLV provided by an embodiment of the present application;
图13为本申请实施例提供的一种路径调整装置的结构示意图;13 is a schematic structural diagram of a path adjustment device provided by an embodiment of the present application;
图14为本申请实施例提供的另一种路径调整装置的结构示意图。FIG. 14 is a schematic structural diagram of another path adjustment apparatus provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的原理和技术方案更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the principles and technical solutions of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
通信系统通常包括多个节点,节点可以是任一种能够转发数据的设备,如路由器、网关等。通信系统中的节点之间通过链路连接。A communication system usually includes a plurality of nodes, and a node can be any device capable of forwarding data, such as a router, a gateway, and the like. The nodes in the communication system are connected by links.
通信系统中可以部署有数据转发路径。通信系统中的至少两个节点(可以位于同一网域,也可以位于不同网域)位于该数据转发路径上,数据转发路径包括该至少两个节点之间的链路。数据转发路径上的每个节点均可以将数据沿该数据转发路径转发。Data forwarding paths may be deployed in the communication system. At least two nodes in the communication system (which may be located in the same network domain or in different network domains) are located on the data forwarding path, and the data forwarding path includes a link between the at least two nodes. Each node on the data forwarding path can forward data along the data forwarding path.
需要说明的是,本申请实施例中的数据转发路径可以是任一种类型的路径,比如,用于转发互联网协议(Internet Protocol,IP)数据的路径,或者数据隧道的路径等。该数据隧道可以是任一种用于转发数据的隧道,比如,SRv6 policy隧道、SR-TE policy隧道或尽力而为的段路由(Segment-Routing BestEffort,SR-BE)policy隧道等。It should be noted that, the data forwarding path in this embodiment of the present application may be any type of path, for example, a path for forwarding Internet Protocol (Internet Protocol, IP) data, or a data tunnel path. The data tunnel may be any tunnel for forwarding data, for example, an SRv6 policy tunnel, an SR-TE policy tunnel, or a best-effort segment routing (Segment-Routing BestEffort, SR-BE) policy tunnel, and the like.
示例地,图1为本申请实施例提供的一种数据沿数据转发路径转发的场景示意图,如图1所示,该场景包括节点1至节点6,其中,节点1、节点2、节点3和节点4位于数据转发路径上。节点1在接收到数据后,可以将该数据转发至节点2;节点2在接收到节点1发送的数据后,可以将该数据转发至节点3;节点3在接收到节点2发送的数据后,可以将该数据转发至节点4。可见,数据可以沿节点1、节点2、节点3和节点4所在的这一数据转发路径转发。所述数据可以是业务流量。1 is a schematic diagram of a scenario in which data is forwarded along a data forwarding path according to an embodiment of the present application. As shown in FIG. 1 , the scenario includes node 1 to node 6, wherein node 1, node 2, node 3 and Node 4 is located on the data forwarding path. After node 1 receives the data, it can forward the data to node 2; after node 2 receives the data sent by node 1, it can forward the data to node 3; after node 3 receives the data sent by node 2, This data can be forwarded to node 4 . It can be seen that data can be forwarded along the data forwarding path where node 1, node 2, node 3 and node 4 are located. The data may be traffic flow.
又示例地,图2为本申请实施例提供的另一种数据沿数据转发路径转发的场景示意图,如图2所示,在图1的基础上,数据沿数据转发路径转发的场景还可以包括控制器。控制器与通信系统中的节点连接(图2中并未示出控制器与每个节点的连接关系)。控制器用于部署上述数据转发路径。需要说明的是,图2所示的场景中的数据转发路径可以是数据隧道中的路径,也可以不是数据隧道中的路径,本申请实施例对此不作限定。For another example, FIG. 2 is a schematic diagram of another scenario in which data is forwarded along a data forwarding path provided by an embodiment of the present application. As shown in FIG. 2 , on the basis of FIG. 1 , the scenario in which data is forwarded along a data forwarding path may further include: controller. The controller is connected with the nodes in the communication system (the connection relationship between the controller and each node is not shown in FIG. 2 ). The controller is used to deploy the above data forwarding paths. It should be noted that, the data forwarding path in the scenario shown in FIG. 2 may be a path in the data tunnel, or may not be a path in the data tunnel, which is not limited in this embodiment of the present application.
当图2所示的数据转发路径是SRv6 policy隧道或SR-TE policy隧道的路径时,控制器在部署该数据转发路径前,可以基于IGP或BGP协议获取多个节点之间的连接关系,并基于该连接关系生成多个节点的网络拓扑,以及根据该网络拓扑规划数据隧道(如SRv6 policy隧道或SR-TE policy隧道)。控制器在部署数据转发路径时,可以基于BGP或PCEP将数据隧道的策略(如SRv6 policy或SR-TE policy)下发至数据隧道的头节点,以便于头节点根据该数据隧道的策略确定数据隧道的数据转发路径,进而控制数据沿该数据转发路径转发。When the data forwarding path shown in Figure 2 is the path of the SRv6 policy tunnel or the SR-TE policy tunnel, before deploying the data forwarding path, the controller can obtain the connection relationship between multiple nodes based on the IGP or BGP protocol, and A network topology of multiple nodes is generated based on the connection relationship, and a data tunnel (such as an SRv6 policy tunnel or an SR-TE policy tunnel) is planned according to the network topology. When the controller deploys the data forwarding path, it can deliver the data tunnel policy (such as SRv6 policy or SR-TE policy) to the head node of the data tunnel based on BGP or PCEP, so that the head node can determine the data according to the data tunnel policy The data forwarding path of the tunnel is further controlled to be forwarded along the data forwarding path.
数据隧道的策略通常包括多条候选路径(Candidate path),每条候选路径包括一个或多个段路由列表(segment list),每个段路由列表用于指示一条数据转发路径。所以,数据隧道的策略用于指示多条数据转发路径。可选地,数据隧道的策略中的候选路径也可以不包括 segment list,此时,一条候选路径为一条数据转发路径,该数据隧道的策略用于指示多条数据转发路径。数据隧道通常具有头节点和尾节点,数据隧道的策略所指示的多条数据转发路径的头节点均为数据隧道的头节点,该多条数据转发路径的尾节点均为数据隧道的尾节点。A data tunnel strategy usually includes multiple candidate paths (Candidate paths), each candidate path includes one or more segment routing lists (segment lists), and each segment routing list is used to indicate a data forwarding path. Therefore, the policy of the data tunnel is used to indicate multiple data forwarding paths. Optionally, the candidate path in the policy of the data tunnel may not include the segment list. In this case, a candidate path is a data forwarding path, and the policy of the data tunnel is used to indicate multiple data forwarding paths. A data tunnel usually has a head node and a tail node. The head nodes of the multiple data forwarding paths indicated by the policy of the data tunnel are the head nodes of the data tunnel, and the tail nodes of the multiple data forwarding paths are the tail nodes of the data tunnel.
数据隧道的策略还包括数据隧道的颜色(color)属性,用于指示数据隧道对应的业务。数据隧道的头节点在接收到数据隧道的策略后,还可以确定该数据隧道匹配的路由,并将该路由的下一跳迭代(recursion)到该数据隧道,以便于需要基于该路由转发的数据通过数据隧道中的数据转发路径转发。其中,对于数据隧道以及其匹配的路由,数据隧道的尾节点为该路由的下一跳,该路由携带有该数据隧道的颜色属性。可选地,数据隧道的策略包括多个候选路径,数据隧道中用于转发数据的数据转发路径可以是任一候选路径,数据隧道的策略还可以包括候选路径的标识(可以称为BSID)。头节点在将路由的下一跳迭代到数据隧道上时,可以将该路由的下一跳更改为该数据隧道的策略中用于转发数据的候选路径的标识。The policy of the data tunnel further includes a color (color) attribute of the data tunnel, which is used to indicate the service corresponding to the data tunnel. After receiving the policy of the data tunnel, the head node of the data tunnel can also determine the route matched by the data tunnel, and iterate the next hop of the route to the data tunnel, so that the data needs to be forwarded based on the route. Forwarded through the data forwarding path in the data tunnel. Wherein, for the data tunnel and its matching route, the tail node of the data tunnel is the next hop of the route, and the route carries the color attribute of the data tunnel. Optionally, the policy of the data tunnel includes multiple candidate paths, the data forwarding path for forwarding data in the data tunnel may be any candidate path, and the policy of the data tunnel may further include an identifier of the candidate path (which may be referred to as a BSID). When the head node iterates the next hop of the route to the data tunnel, the next hop of the route can be changed to the identifier of the candidate path for forwarding data in the policy of the data tunnel.
但是,图1和图2所示的场景中,数据较容易在被转发的过程中由于环境中噪声、环境中交流电、环境中闪电脉冲、节点故障等因素而出现误码。当数据的误码情况较为严重时,数据转发的准确度较低,而且目前也没有用于解决数据误码的方案。However, in the scenarios shown in Figures 1 and 2, data errors are likely to occur due to factors such as noise in the environment, alternating current in the environment, lightning pulses in the environment, and node failures during the forwarding process. When the bit error condition of the data is serious, the accuracy of data forwarding is low, and there is no solution for solving the data bit error at present.
基于以上问题,本申请实施例提供了一种路径调整方法,该方法能够在第一转发路径的误码指标不符合预设条件时,对转发路径进行调整,从而减轻数据的误码情况,提升数据转发的准确度。Based on the above problems, an embodiment of the present application provides a path adjustment method, which can adjust the forwarding path when the bit error index of the first forwarding path does not meet the preset condition, thereby reducing the bit error of data and improving the Accuracy of data forwarding.
本申请实施例提供的路径调整方法可以用于转发节点和控制器(或者仅用于转发节点)。在讲述本申请实施例提供的路径调整方法之前,本申请实施例先对转发节点和控制器的结构进行简要说明。The path adjustment method provided by the embodiment of the present application can be used for the forwarding node and the controller (or only for the forwarding node). Before describing the path adjustment method provided by the embodiment of the present application, the embodiment of the present application briefly describes the structures of the forwarding node and the controller.
转发节点可以包括:处理器;处理器用于与存储器耦合,并读取存储器中的指令之后,根据指令执行如本申请实施例描述的由转发节点执行的方法。控制器也包括:处理器;处理器用于与存储器耦合,并读取存储器中的指令之后,根据指令执行如本申请实施例描述的控制器执行的方法。The forwarding node may include: a processor; the processor is coupled to the memory, and after reading the instructions in the memory, executes the method performed by the forwarding node as described in the embodiments of the present application according to the instructions. The controller also includes: a processor; the processor is configured to be coupled with the memory, and after reading the instructions in the memory, execute the method executed by the controller as described in the embodiments of the present application according to the instructions.
在转发节点和控制器中的每个网络设备中,处理器的个数可以为多个,与处理器耦合的存储器可以独立于处理器之外或独立于网络设备之外,也可以在处理器或网络设备之内。存储器可以是物理上独立的单元,也可以是云服务器上的存储空间或网络硬盘等。可选地,存储器可以为一个或多个。当存储器的个数为多个时,可以位于相同的或不同的位置,并且可以独立或配合使用。示例性地,当存储器位于网络设备内部时,请参考图3,图3为本申请实施例提供的一种网络设备的结构示意图。该网络设备200包括:处理器202和存储器201,其中,存储器201用于存储程序,处理器202用于调用存储器201中存储的程序,以使得该网络设备执行相应的方法或功能。可选地,如图3所示,该网络设备200还可以包括至少一个通信接口203和至少一个通信总线204。存储器201、处理器202以及通信接口203通过通信总线204通信连接。其中,通信接口203用于在处理器202的控制下与其他装置通信,处理器202可以通过通信总线204调用存储器201中存储的程序。In each network device in the forwarding node and the controller, the number of processors may be multiple, and the memory coupled to the processor may be independent of the processor or independent of the network device, or may be in the processor or within a network device. The storage can be a physically independent unit, or a storage space on a cloud server or a network hard disk. Optionally, the memory may be one or more. When the number of memories is multiple, they can be located in the same or different positions, and can be used independently or in combination. Exemplarily, when the memory is located inside the network device, please refer to FIG. 3 , which is a schematic structural diagram of a network device according to an embodiment of the present application. The network device 200 includes: a processor 202 and a memory 201, wherein the memory 201 is used for storing a program, and the processor 202 is used for calling the program stored in the memory 201, so that the network device executes a corresponding method or function. Optionally, as shown in FIG. 3 , the network device 200 may further include at least one communication interface 203 and at least one communication bus 204 . The memory 201 , the processor 202 and the communication interface 203 are communicatively connected through a communication bus 204 . The communication interface 203 is used to communicate with other devices under the control of the processor 202 , and the processor 202 can call the program stored in the memory 201 through the communication bus 204 .
以下将以图4所示的实施例为例,对本申请实施例提供的路径调整方法进行讲解和说明。The following will take the embodiment shown in FIG. 4 as an example to explain and describe the path adjustment method provided by the embodiment of the present application.
示例地,图4为本申请实施例提供的一种路径调整方法的流程图,该路径调整方法可以用于图2所示的场景,且图2所示的数据转发路径是SRv6 policy隧道或SR-TE policy隧道的路径。如图4所示,该路径调整方法可以包括:Exemplarily, FIG. 4 is a flowchart of a path adjustment method provided by an embodiment of the present application. The path adjustment method can be used in the scenario shown in FIG. 2 , and the data forwarding path shown in FIG. 2 is an SRv6 policy tunnel or SR. -The path of the TE policy tunnel. As shown in Figure 4, the path adjustment method may include:
S101、控制器向转发节点发送指示消息,指示消息用于指示使用第一数据隧道转发数据。S101. The controller sends an indication message to the forwarding node, where the indication message is used to instruct to use the first data tunnel to forward data.
控制器能够根据节点间的网络拓扑规划第一数据隧道,并将用于指示使用该第一数据隧道转发数据的指示消息下发至转发节点。此时,转发节点可以是该数据隧道的头节点。The controller can plan the first data tunnel according to the network topology between the nodes, and deliver an instruction message for instructing to use the first data tunnel to forward data to the forwarding node. At this time, the forwarding node may be the head node of the data tunnel.
假设第一数据隧道的头节点为图2中的节点1,且尾节点为图2中的节点4,那么转发节点可以是节点1,且节点1使用该第一数据隧道转发数据会将数据从节点1转发至节点4。Assuming that the head node of the first data tunnel is node 1 in FIG. 2, and the tail node is node 4 in FIG. 2, then the forwarding node may be node 1, and node 1 forwards data using the first data tunnel and forwards data from Node 1 forwards to Node 4.
控制器下发至转发节点的指示消息可以包括:第一数据隧道的策略(如SRv6 policy或SR-TE policy)。第一数据隧道的策略包括:多条候选路径,每条候选路径可以包括一个或多个段路由列表,每个段路由列表用于指示一条数据转发路径。当第一数据隧道为SR-TE policy隧道时,段路由列表可以是段路由列表所指示的数据转发路径上除头节点之外的节点的标签的列表。当第一数据隧道为SRv6 policy隧道时,段路由列表可以是段路由列表所指示的数据转发路径上除头节点之外的节点的第六版互联网协议(IPv6)地址的列表。可选地,数据隧道的策略中的候选路径也可以不包括segment list,此时,一条候选路径为一条数据转发路径,本申请实施例对此不作限定。The instruction message sent by the controller to the forwarding node may include: the policy of the first data tunnel (such as SRv6 policy or SR-TE policy). The strategy of the first data tunnel includes: multiple candidate paths, each candidate path may include one or more segment routing lists, and each segment routing list is used to indicate a data forwarding path. When the first data tunnel is an SR-TE policy tunnel, the segment routing list may be a list of labels of nodes other than the head node on the data forwarding path indicated by the segment routing list. When the first data tunnel is an SRv6 policy tunnel, the segment routing list may be a list of Internet Protocol Version 6 (IPv6) addresses of nodes other than the head node on the data forwarding path indicated by the segment routing list. Optionally, the candidate path in the policy of the data tunnel may not include the segment list. In this case, a candidate path is a data forwarding path, which is not limited in this embodiment of the present application.
以第一数据隧道为SR-TE policy隧道为例,假设节点2的标签为节点标签2,节点3的标签为节点标签3,节点4的标签为节点标签4,节点5的标签为节点标签5,节点6的标签为节点标签6。如表1所示,第一数据隧道的策略包括候选路径A和B。Taking the first data tunnel as an SR-TE policy tunnel as an example, assume that the label of node 2 is node label 2, the label of node 3 is node label 3, the label of node 4 is node label 4, and the label of node 5 is node label 5 , the label of node 6 is node label 6. As shown in Table 1, the policy of the first data tunnel includes candidate paths A and B.
候选路径A包括三个段路由列表,分别为段路由列表<节点标签2、节点标签3、节点标签4>、段路由列表<节点标签2、节点标签4>和段路由列表<节点标签4>。这三个段路由列表用于指示的三条数据转发路径为图5所示的数据转发路径1、2和3。The candidate path A includes three segment routing lists, namely segment routing list <node label 2, node label 3, node label 4>, segment routing list <node label 2, node label 4> and segment routing list <node label 4> . The three data forwarding paths indicated by the three segment routing lists are the data forwarding paths 1, 2 and 3 shown in FIG. 5 .
候选路径B包括两个段路由列表,分别为段路由列表<节点标签5、节点标签4>和段路由列表<节点标签5、节点标签6、节点标签4>。候选路径B中的两个段路由列表用于指示的两条数据转发路径为图6所示的数据转发路径4和5。The candidate path B includes two segment routing lists, namely the segment routing list <node label 5, node label 4> and the segment routing list <node label 5, node label 6, node label 4>. The two data forwarding paths indicated by the two segment routing lists in the candidate path B are the data forwarding paths 4 and 5 shown in FIG. 6 .
表1Table 1
Figure PCTCN2021133374-appb-000001
Figure PCTCN2021133374-appb-000001
表1中以候选路径包括多个段路由列表为例。可选地,候选路径也可以包括一个段路由列表,比如,候选路径A包括段路由列表<节点标签2、节点标签3、节点标签4>,候选路径B包括段路由列表<节点标签5、节点标签4>。又可选地,候选路径也可以不包括段路由列表,比如,候选路径A和B均不包括段路由列表,候选路径A为图5所示的数据转发路径1,候选路径B为图6所示的数据转发路径4。In Table 1, it is taken as an example that the candidate path includes multiple segment routing lists. Optionally, the candidate path may also include a segment routing list, for example, the candidate path A includes the segment routing list <node label 2, node label 3, node label 4>, and the candidate path B includes the segment routing list <node label 5, node label 4> Label 4>. Alternatively, the candidate path may not include the segment routing list. For example, the candidate paths A and B do not include the segment routing list. The candidate path A is the data forwarding path 1 shown in FIG. 5 , and the candidate path B is the data forwarding path 1 shown in FIG. 6 . data forwarding path 4 shown.
S102、转发节点利用第一数据隧道中的转发路径转发数据。S102. The forwarding node forwards the data by using the forwarding path in the first data tunnel.
第一数据隧道可以包含多条数据转发路径(第一数据隧道的策略所指示的多条数据转发路径)。转发节点在接收到指示消息后,可以根据指示消息确定第一数据隧道中用于转发数据的至少一条数据转发路径,并利用该至少一条数据转发路径转发数据。The first data tunnel may include multiple data forwarding paths (multiple data forwarding paths indicated by the policy of the first data tunnel). After receiving the indication message, the forwarding node may determine at least one data forwarding path for forwarding data in the first data tunnel according to the indication message, and use the at least one data forwarding path to forward data.
示例地,对于S101中的例子,第一数据隧道共包括五条路径,分别为:图5中的三条数 据转发路径,以及图6中的三条数据转发路径。转发节点可以根据一定的规则在这五条数据转发路径中筛选出用于转发数据的路径。比如,第一数据隧道的策略中的每个候选路径均具有优先级,比如表1中候选路径A的优先级为1,候选路径B的优先级为2。转发节点可以将优先级最高的候选路径中的段路由列表所指示的数据转发路径作为用于转发数据的路径。请参考表1,优先级最高的候选路径为候选路径A,那么转发节点可以利用候选路径A中的段路由列表所指示的图5中的数据转发路径1、2和3转发数据。Illustratively, for the example in S101, the first data tunnel includes five paths in total, which are: three data forwarding paths in FIG. 5 and three data forwarding paths in FIG. 6 . The forwarding node can filter out a path for forwarding data from the five data forwarding paths according to certain rules. For example, each candidate path in the policy of the first data tunnel has a priority, for example, the priority of candidate path A in Table 1 is 1, and the priority of candidate path B is 2. The forwarding node may use the data forwarding path indicated by the segment routing list in the candidate path with the highest priority as the path for forwarding data. Referring to Table 1, the candidate path with the highest priority is the candidate path A, then the forwarding node can use the data forwarding paths 1, 2 and 3 in FIG. 5 indicated by the segment routing list in the candidate path A to forward data.
转发节点在利用转发路径转发数据时,可以根据用于指示该转发路径的段路由列表转发数据。示例地,以转发节点为图5中的节点1,且节点1利用段路由列表<节点标签2、节点标签3、节点标签4>所指示的数据转发路径1转发数据为例。节点1在接收到需要在第一数据隧道上转发的数据包时,可以将该段路由列表加入该数据包,再将该数据包发送至段路由列表中的第一个节点标签(节点标签2)对应的节点(节点2)。节点2在接收到该数据包后,可以删除段路由列表中节点2的标签(节点标签2),再将该数据包发送至段路由列表中的第一个节点标签(节点标签3)对应的节点(节点3)。节点3在接收到该数据包后,可以删除段路由列表中节点3的标签(节点标签3),再将该数据包发送至段路由列表中的第一个节点标签(节点标签4)对应的节点(节点4)。节点4在接收到该数据包后,可以删除段路由列表中节点4的标签(节点标签4),从而得到节点1接收到的数据包。这样一来,就使得第一数据隧道的头节点(节点1)将数据包沿数据转发路径1转发至第一数据隧道的尾节点(节点4)。When forwarding data by using the forwarding path, the forwarding node may forward the data according to the segment routing list used to indicate the forwarding path. For example, take the forwarding node as node 1 in FIG. 5 , and node 1 forwards data by using data forwarding path 1 indicated by the segment routing list <node label 2, node label 3, node label 4> as an example. When node 1 receives a data packet that needs to be forwarded on the first data tunnel, it can add the segment routing list to the data packet, and then send the data packet to the first node label (node label 2) in the segment routing list. ) corresponding to the node (node 2). After receiving the data packet, node 2 can delete the label of node 2 (node label 2) in the segment routing list, and then send the data packet to the corresponding node label (node label 3) in the segment routing list. node (node 3). After receiving the data packet, node 3 can delete the label of node 3 (node label 3) in the segment routing list, and then send the data packet to the corresponding node label (node label 4) in the segment routing list. node (node 4). After receiving the data packet, node 4 can delete the label of node 4 (node label 4 ) in the segment routing list, so as to obtain the data packet received by node 1 . In this way, the head node (node 1 ) of the first data tunnel forwards the data packet to the tail node (node 4 ) of the first data tunnel along the data forwarding path 1 .
又示例地,当候选路径包括一个段路由列表时,转发节点可以利用优先级最高的候选路径中的一个段路由列表所指示的数据转发路径转发数据。当候选路径不包括段路由列表时,转发节点可以利用优先级最高的候选路径转发数据。For another example, when the candidate path includes a segment routing list, the forwarding node may forward data using a data forwarding path indicated by a segment routing list in the candidate path with the highest priority. When the candidate path does not include the segment routing list, the forwarding node can use the candidate path with the highest priority to forward data.
S103、转发节点确定第一转发路径的误码指标不符合预设条件,第一转发路径属于第一数据隧道中用于转发数据的数据转发路径。S103. The forwarding node determines that the bit error indicator of the first forwarding path does not meet the preset condition, and the first forwarding path belongs to a data forwarding path used for forwarding data in the first data tunnel.
转发节点在利用第一数据隧道中的至少一条数据转发路径转发数据的过程中,可以将该至少一条数据转发路径中的全部或部分路径作为第一转发路径,并检测该第一转发路径的误码指标是否符合预设条件。比如,转发节点将第一数据隧道中的某一候选路径(该候选路径可以包括至少一个段路由列表,也可以不包括段路由列表)作为第一转发路径;当第一数据隧道中的候选路径包括段路由列表时,转发节点也可以将第一数据隧道中某一段路由列表所指示的数据转发路径作为第一转发路径。In the process of forwarding data using at least one data forwarding path in the first data tunnel, the forwarding node may use all or part of the at least one data forwarding path as the first forwarding path, and detect errors in the first forwarding path. Whether the code index meets the preset conditions. For example, the forwarding node takes a candidate path in the first data tunnel (the candidate path may include at least one segment routing list, or may not include the segment routing list) as the first forwarding path; when the candidate path in the first data tunnel When the segment routing list is included, the forwarding node may also use the data forwarding path indicated by a certain segment routing list in the first data tunnel as the first forwarding path.
以S102中的例子为例,假设转发节点利用候选路径A中的段路由列表所指示的图5中的数据转发路径1、2和3转发数据,那么该第一转发路径可以是候选路径A,包括数据转发路径1、2和3,该第一转发路径也可以是数据转发路径1、2或3。假设候选路径A包括一个段路由列表,且该段路由列表用于指示图5中的数据转发路径1,那么该第一转发路径可以是数据转发路径1。假设候选路径A并不包括段路由列表,且候选路径A为图5中的数据转发路径1,那么该第一转发路径可以是候选路径A(也即该数据转发路径1)。Taking the example in S102 as an example, it is assumed that the forwarding node uses the data forwarding paths 1, 2 and 3 in FIG. 5 indicated by the segment routing list in the candidate path A to forward data, then the first forwarding path may be the candidate path A, Including data forwarding paths 1, 2 and 3, the first forwarding path may also be data forwarding paths 1, 2 or 3. Assuming that the candidate path A includes a segment routing list, and the segment routing list is used to indicate the data forwarding path 1 in FIG. 5 , the first forwarding path may be the data forwarding path 1 . Assuming that the candidate path A does not include a segment routing list, and the candidate path A is the data forwarding path 1 in FIG. 5 , the first forwarding path may be the candidate path A (that is, the data forwarding path 1).
需要说明的是,误码指标为与误码相关的指标,比如通常意义上的误码率(symbol error rate,SER)或基于该误码率的通常计算方式的简单公式变形而获得的误码指标,再比如出现误码的时长或误码数据量等。作为一种可能的误码指标计算方式,误码率等于转发的总码数中误码数的占比。符合预设条件与不符合预设条件是相对的,因而符合预设条件也可以自然 地理解为不符合某一对应条件,而不符合预设条件也可以自然地理解为符合某一对应条件,这与条件的设置内容和条件的触发机制相关。比如,以误码指标为误码率为例,当预设条件为误码率小于或等于误码率阈值时,S103中转发节点可以根据第一转发路径的误码指标不符合预设条件,将第一转发路径切换为第二转发路径;当预设条件为误码率大于误码率阈值时,S103中转发节点可以根据第一转发路径的误码指标符合预设条件,将第一转发路径切换为第二转发路径。应理解,除上述描述的情形外,其他任何对于误码指标和预设条件的简单变形方式不影响本申请方案的实施,因而均应涵盖在本申请提出的发明构思的精神范围内。It should be noted that the bit error indicator is an indicator related to bit error, such as a bit error rate (symbol error rate, SER) in the usual sense or a bit error obtained by deforming a simple formula based on the usual calculation method of the bit error rate. Indicators, such as the duration of bit errors or the amount of bit error data, etc. As a possible calculation method of the bit error index, the bit error rate is equal to the proportion of the number of bit errors in the total number of forwarded codes. Meeting the preset conditions and not meeting the preset conditions are relative, so meeting the preset conditions can also be naturally understood as not meeting a corresponding condition, and not meeting the preset conditions can also be naturally understood as meeting a corresponding condition. This is related to the setting content of the condition and the trigger mechanism of the condition. For example, taking the bit error indicator as the bit error rate as an example, when the preset condition is that the bit error rate is less than or equal to the bit error rate threshold, the forwarding node in S103 may determine that the bit error indicator of the first forwarding path does not meet the preset condition, Switch the first forwarding path to the second forwarding path; when the preset condition is that the bit error rate is greater than the bit error rate threshold, the forwarding node in S103 may, according to the error index of the first forwarding path meeting the preset condition, forward the first forwarding The path is switched to the second forwarding path. It should be understood that, except for the situation described above, any other simple modifications to the error index and preset conditions do not affect the implementation of the solution of the present application, and therefore should be covered within the spirit of the inventive concept proposed in the present application.
可选地,第一转发路径包括至少一条误码链路(误码链路为存在误码的链路),本申请实施例中可以将误码链路的误码指标称为误码链路对应的误码指标。S103中第一转发路径的误码指标不符合预设条件,可以包括:该至少一条误码链路对应的至少一个误码指标不符合预设条件。在这种情况下,转发节点可以首先确定第一转发路径中的至少一条误码链路。可选地,转发节点可以基于双向转发检测(Bidirectional Forwarding Detection,BFD)协议检测第一转发路径上的误码链路。之后,转发节点可以在该至少一条误码链路对应的至少一个误码指标不符合预设条件时,确定第一转发路径的误码指标不符合预设条件。示例地,假设第一转发路径包括链路1、2和3,且链路1和2上出现误码,链路3并未出现误码。转发节点可以在确定链路1的误码指标不符合预设条件,且链路2的误码指标不符合预设条件后,确定第一转发路径的误码指标不符合预设条件。Optionally, the first forwarding path includes at least one bit error link (a bit error link is a link with bit errors), and in this embodiment of the present application, the bit error index of the bit error link may be referred to as a bit error link. Corresponding bit error indicator. The error index of the first forwarding path in S103 does not meet the preset condition, which may include: at least one error index corresponding to the at least one error link does not meet the preset condition. In this case, the forwarding node may first determine at least one error link in the first forwarding path. Optionally, the forwarding node may detect the error link on the first forwarding path based on a bidirectional forwarding detection (Bidirectional Forwarding Detection, BFD) protocol. Afterwards, the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition when the at least one error index corresponding to the at least one error link does not meet the preset condition. For example, it is assumed that the first forwarding path includes links 1, 2 and 3, and bit errors occur on links 1 and 2, but no bit errors occur on link 3. The forwarding node may determine that the error index of the first forwarding path does not meet the preset condition after determining that the error index of link 1 does not meet the preset condition and the error index of link 2 does not meet the preset condition.
上述至少一个误码指标不符合预设条件可以有多种理解,比如:该至少一个误码指标中的一个或多个不符合预设条件(也即该至少一个误码指标中存在不符合预设条件的误码指标);或者,该至少一个误码指标的统计值不符合预设条件。其中,该至少一个误码指标的统计值可以是该至少一个误码指标的累加和、中位数、平均值或加权平均值等,该至少一个误码指标的统计值也可以是:该至少一个误码指标中未达到指标要求的误码指标的个数等,本申请实施例对此不作限定。The above-mentioned at least one bit error index does not meet the preset conditions can be understood in various ways, for example: one or more of the at least one error index index does not meet the preset conditions (that is, there are any errors in the at least one error index that do not meet the preset conditions. or the statistic value of the at least one bit error indicator does not meet the preset condition. Wherein, the statistical value of the at least one bit error indicator may be the cumulative sum, median, average or weighted average of the at least one bit error indicator, and the statistical value of the at least one bit error indicator may also be: the at least one bit error indicator The number of bit error indicators that do not meet the indicator requirements in a bit error indicator, etc., is not limited in this embodiment of the present application.
示例地,以误码链路的误码指标是误码率为例,上述至少一个误码链路对应的至少一个误码指标为至少一个误码率。此时,上述至少一个误码指标中的一个或多个不符合预设条件,包括:该至少一个误码率中的一个或多个不满足误码率阈值(比如大于误码率阈值,或者,大于或等于误码率阈值);上述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件,包括:该至少一个误码率中不满足误码率阈值的个数超过预设值,或者,该至少一个误码率的累加和不满足预设值。For example, taking the error indicator of the bit error link as the bit error rate as an example, the at least one bit error indicator corresponding to the at least one bit error link described above is the at least one bit error rate. In this case, one or more of the above at least one bit error index does not meet the preset condition, including: one or more of the at least one bit error rate does not meet the bit error rate threshold (for example, greater than the bit error rate threshold, or , greater than or equal to the bit error rate threshold); the statistical value of at least one bit error index corresponding to the at least one bit error link above does not meet the preset conditions, including: the at least one bit error rate does not meet the bit error rate threshold. The number exceeds the preset value, or the cumulative sum of the at least one bit error rate does not meet the preset value.
例如,假设第一转发路径包括链路1、2和3,其中,链路1和链路2均为误码链路,链路3并不是误码链路,误码指标是误码率,链路1的误码率为5%,链路2的误码率为4%,误码率阈值为3%。For example, assuming that the first forwarding path includes links 1, 2 and 3, where link 1 and link 2 are both error links, link 3 is not an error link, and the error indicator is the error rate, The bit error rate of link 1 is 5%, the bit error rate of link 2 is 4%, and the bit error rate threshold is 3%.
若上述至少一个误码指标中的一个或多个不符合预设条件,包括:该至少一个误码率中的一个或多个不满足误码率阈值,那么转发节点可以确定链路1和链路2的误码率均大于误码率阈值,从而确定链路1和2对应的两个误码率均不满足误码率阈值,第一转发路径不满足预设条件。If one or more of the above at least one bit error indicator does not meet the preset conditions, including: one or more of the at least one bit error rate does not meet the bit error rate threshold, the forwarding node may determine the link 1 and link The bit error rates of path 2 are all greater than the bit error rate threshold, so it is determined that the two bit error rates corresponding to links 1 and 2 do not meet the bit error rate threshold, and the first forwarding path does not meet the preset condition.
若上述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件,包括:该至少一个误码率中不满足误码率阈值的个数超过预设值,预设值为1,那么转发节点可以确定链路1和链路2的误码率均大于误码率阈值,并确定这两个误码率中不满足误码率阈值的 个数2超过预设值1,从而确定链路1和2对应的两个误码率均不满足预设条件,第一转发路径不满足预设条件。If the statistical value of the at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition, it includes: the number of the at least one bit error rate that does not meet the bit error rate threshold exceeds the preset value, and the preset value is 1, then the forwarding node can determine that the bit error rates of link 1 and link 2 are both greater than the bit error rate threshold, and determine that the number 2 of the two bit error rates that do not meet the bit error rate threshold exceeds the preset value of 1 , so that it is determined that the two bit error rates corresponding to the links 1 and 2 do not meet the preset conditions, and the first forwarding path does not meet the preset conditions.
若上述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件,包括:该至少一个误码率的累加和不满足预设值(比如大于该预设值),预设值为8%,那么转发节点可以确定链路1和链路2的误码率之和9%大于预设值8%,从而确定链路1和2对应的两个误码率均不满足预设条件,第一转发路径不满足预设条件。If the statistical value of the at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition, including: the accumulated sum of the at least one bit error rate does not meet the preset value (for example, it is greater than the preset value), the preset If the value is set to 8%, then the forwarding node can determine that the sum of the bit error rates of link 1 and link 2 is 9% greater than the preset value of 8%, thus determining that the two bit error rates corresponding to links 1 and 2 are not satisfied A preset condition, the first forwarding path does not meet the preset condition.
又可选地,当第一转发路径包括:头节点相同且尾结点也相同的一条或多条子路径时,第一转发路径的误码指标不符合预设条件,可以包括:该第一转发路径中的至少一条误码子路径对应的至少一个误码指标不符合预设条件。在这种情况下,转发节点可以根据该至少一条子路径对应的至少一个误码指标不符合预设条件,确定第一转发路径的误码指标不符合预设条件。需要说明的是,在第一转发路径上转发的数据,可以通过第一转发路径中的任一子路径转发,第一转发路径中的各个子路径可以用于负载分担,误码子路径为存在误码的子路径。示例地,第一转发路径可以为SRv6 policy或者SR-TE policy中的候选路径,候选路径包括至少一个段路由列表,第一转发路径中的子路径可以为候选路径中段路由列表所指示的数据转发路径。Also optionally, when the first forwarding path includes: one or more sub-paths with the same head node and the same tail node, the bit error indicator of the first forwarding path does not meet the preset condition, and may include: the first forwarding At least one bit error index corresponding to at least one bit error sub-path in the path does not meet the preset condition. In this case, the forwarding node may determine that the error index of the first forwarding path does not meet the preset condition according to the at least one bit error index corresponding to the at least one sub-path does not meet the preset condition. It should be noted that the data forwarded on the first forwarding path can be forwarded through any sub-path in the first forwarding path, each sub-path in the first forwarding path can be used for load balancing, and the bit-error sub-path means that there is an error in the sub-path. code subpath. For example, the first forwarding path may be a candidate path in the SRv6 policy or the SR-TE policy, the candidate path includes at least one segment routing list, and the sub-paths in the first forwarding path may be the data forwarding indicated by the segment routing list in the candidate path. path.
需要说明的是,第一转发路径中至少一条误码子路径对应的至少一个误码指标不符合预设条件的解释,可以参考至少一条误码链路对应的至少一个误码指标不符合预设条件的解释,本申请实施例在此不做赘述。It should be noted that, for the explanation that at least one error index corresponding to at least one error sub-path in the first forwarding path does not meet the preset condition, reference may be made to the explanation that at least one error index corresponding to at least one error link does not meet the preset condition. , which is not repeated in this embodiment of the present application.
S104、转发节点根据第一转发路径的误码指标不符合预设条件,将第一转发路径切换为第二转发路径。S104. The forwarding node switches the first forwarding path to the second forwarding path according to the error indicator of the first forwarding path not meeting the preset condition.
转发节点在确定第一转发路径的误码指标不符合预设条件后,可以确定数据在第一转发路径上转发的质量较低,此时,转发节点可以根据第一转发路径的误码指标不符合预设条件,将第一转发路径切换为第二转发路径。该第二转发路径与第一转发路径不同。After the forwarding node determines that the bit error indicator of the first forwarding path does not meet the preset condition, it may determine that the quality of data forwarding on the first forwarding path is low. If the preset conditions are met, the first forwarding path is switched to the second forwarding path. The second forwarding path is different from the first forwarding path.
示例地,第一转发路径包括至少一条误码链路,第二转发路径可以不包括该至少一条误码链路中的一条或多条。以图5所示的数据转发路径1(经过节点1、2、3和4)为第一转发路径为例,数据转发路径1包括链路1(节点1和节点2之间的链路)、链路2(节点2和节点3之间的链路)和链路3(节点3和节点4之间的链路),其中,链路1和2均为误码链路,链路3并不是误码链路。如图7所示,转发节点将第一转发路径(图5中的数据转发路径1)切换至的第二转发路径也可以为图5中的数据转发路径2(经过节点1、2和4),此时,第二转发路径并不包括第一转发路径上的一条误码链路(节点2和节点3之间的链路)。或者,如图8所示,转发节点将第一转发路径(图5中的数据转发路径1)切换至的第二转发路径可以为图5中的数据转发路径3(经过节点1和4),此时,第二转发路径并不包括第一转发路径上的两条误码链路(节点1和节点2之间的链路,以及节点2和节点3之间的链路)。For example, the first forwarding path includes at least one error link, and the second forwarding path may not include one or more of the at least one error link. Taking the data forwarding path 1 (passing through nodes 1, 2, 3 and 4) shown in FIG. 5 as the first forwarding path as an example, the data forwarding path 1 includes link 1 (the link between node 1 and node 2), Link 2 (the link between Node 2 and Node 3) and Link 3 (the link between Node 3 and Node 4), where Links 1 and 2 are error links, and Link 3 is not Not an errored link. As shown in FIG. 7 , the second forwarding path to which the forwarding node switches the first forwarding path (data forwarding path 1 in FIG. 5 ) may also be the data forwarding path 2 in FIG. 5 (via nodes 1 , 2 and 4 ) , at this time, the second forwarding path does not include an error link (the link between node 2 and node 3) on the first forwarding path. Alternatively, as shown in FIG. 8 , the second forwarding path to which the forwarding node switches the first forwarding path (data forwarding path 1 in FIG. 5 ) may be the data forwarding path 3 in FIG. 5 (via nodes 1 and 4 ), At this time, the second forwarding path does not include the two error links on the first forwarding path (the link between node 1 and node 2, and the link between node 2 and node 3).
由于第二转发路径不包括第一转发路径中的一条或多条误码链路,因此,转发节点采用第二转发路径转发数据能够避免数据在该一条或多条误码链路转发,所以能够避免或缓解数据在这些误码链路上转发而引起的转发质量低的情况。Since the second forwarding path does not include one or more error links in the first forwarding path, the forwarding node can avoid data forwarding on the one or more error links by using the second forwarding path to forward data. Avoid or alleviate the situation of low forwarding quality caused by data forwarding on these erroneous links.
又示例地,在第一转发路径包括至少一条误码子路径,且该至少一条误码子路径对应的至少一个误码指标不符合预设条件的情况下,第二转发路径不包括该至少一条误码子路径中的一条或多条。由于第二转发路径不包括第一转发路径中的一条或多条误码子路径,因此, 转发节点采用第二转发路径转发数据能够避免数据在该一条或多条误码子路径转发,所以能够避免或缓解数据在这些误码子路径上转发而引起的转发质量低的情况。In another example, when the first forwarding path includes at least one error sub-path, and the at least one error indicator corresponding to the at least one error sub-path does not meet the preset condition, the second forwarding path does not include the at least one error sub-path. one or more of the paths. Since the second forwarding path does not include one or more bit error sub-paths in the first forwarding path, the forwarding node can avoid data forwarding on the one or more bit error sub-paths by using the second forwarding path to forward data, so it can avoid or Alleviate the situation of low forwarding quality caused by data forwarding on these bit-error subpaths.
可选地,第一转发路径和第二转发路径可以属于同一数据隧道(第一数据隧道)。转发节点可以将第一转发路径切换为第一数据隧道的策略中的第二转发路径。Optionally, the first forwarding path and the second forwarding path may belong to the same data tunnel (first data tunnel). The forwarding node may switch the first forwarding path to the second forwarding path in the policy of the first data tunnel.
示例地,当第一转发路径为第一数据隧道中的某一候选路径时,转发节点可以将第一转发路径切换为第一数据隧道的策略中的其他候选路径,以将第一转发路径切换为第二转发路径。此时,第一转发路径和第二转发路径为第一数据隧道的策略中的不同候选路径。可选地,该第二转发路径可以是第一数据隧道中除第一转发路径之外的优先级最高的候选路径。For example, when the first forwarding path is a certain candidate path in the first data tunnel, the forwarding node may switch the first forwarding path to another candidate path in the policy of the first data tunnel, so as to switch the first forwarding path. is the second forwarding path. At this time, the first forwarding path and the second forwarding path are different candidate paths in the policy of the first data tunnel. Optionally, the second forwarding path may be a candidate path with the highest priority other than the first forwarding path in the first data tunnel.
例如,以S101中的例子为例,假设表1中第一数据隧道中的候选路径A为用于转发数据的路径,且第一转发路径为候选路径A。转发节点在将第一转发路径切换至第二转发路径时,可以将候选路径A的优先级降低,将候选路径B(第二转发路径)的优先级提高,以使候选路径B为最高优先级的候选路径,从而使第一数据隧道中用于转发数据的路径由候选路径A切换为候选路径B,数据由在候选路径A上转发切换至在候选路径B上转发。可以看出,转发节点在将第一转发路径切换为第二转发路径之前,数据沿图5中的数据转发路径1、2和3转发;转发节点在将第一转发路径切换为第二转发路径之后,数据沿图6中的数据转发路径4和5转发。For example, taking the example in S101 as an example, it is assumed that the candidate path A in the first data tunnel in Table 1 is the path for forwarding data, and the first forwarding path is the candidate path A. When switching the first forwarding path to the second forwarding path, the forwarding node may lower the priority of the candidate path A and raise the priority of the candidate path B (the second forwarding path), so that the candidate path B has the highest priority Therefore, the path for forwarding data in the first data tunnel is switched from candidate path A to candidate path B, and data is switched from forwarding on candidate path A to forwarding on candidate path B. It can be seen that before the forwarding node switches the first forwarding path to the second forwarding path, the data is forwarded along the data forwarding paths 1, 2 and 3 in FIG. 5; the forwarding node switches the first forwarding path to the second forwarding path After that, the data is forwarded along the data forwarding paths 4 and 5 in FIG. 6 .
又例如,若表1中的候选路径A包括一个段路由列表,且该段路由列表用于指示图5中的数据转发路径1,候选路径B包括一个段路由列表,且该段路由列表用于指示图6中的数据转发路径4,第一转发路径为候选路径A。那么转发节点在将第一转发路径切换至第二转发路径时,可以将候选路径A的优先级降低,将候选路径B(第二转发路径)的优先级提高,以使候选路径B为最高优先级的候选路径,从而使第一数据隧道中用于转发数据的路径由候选路径A切换为候选路径B,数据由在候选路径A上转发切换至在候选路径B上转发。可以看出,转发节点在将第一转发路径切换为第二转发路径之前,数据沿图5中的数据转发路径1转发;转发节点在将第一转发路径切换为第二转发路径之后,数据沿图6中的数据转发路径4转发。For another example, if the candidate path A in Table 1 includes a segment routing list, and the segment routing list is used to indicate the data forwarding path 1 in FIG. 5, the candidate path B includes a segment routing list, and the segment routing list is used for Indicates the data forwarding path 4 in FIG. 6 , and the first forwarding path is the candidate path A. Then, when switching the first forwarding path to the second forwarding path, the forwarding node can lower the priority of the candidate path A and raise the priority of the candidate path B (the second forwarding path), so that the candidate path B has the highest priority Therefore, the path for forwarding data in the first data tunnel is switched from candidate path A to candidate path B, and the data is switched from forwarding on candidate path A to forwarding on candidate path B. It can be seen that before the forwarding node switches the first forwarding path to the second forwarding path, the data is forwarded along the data forwarding path 1 in FIG. 5; after the forwarding node switches the first forwarding path to the second forwarding path, the data is forwarded along the data forwarding path 1. The data forwarding path 4 in FIG. 6 forwards.
再例如,若表1中的候选路径A和B均不包括段路由列表,且候选路径A为图5中的数据转发路径1,候选路径B为图6中的数据转发路径4,第一转发路径为候选路径A。那么转发节点在将第一转发路径切换至第二转发路径时,可以将候选路径A的优先级降低,将候选路径B(第二转发路径)的优先级提高,以使候选路径B为最高优先级的候选路径,从而使第一数据隧道中用于转发数据的路径由候选路径A切换为候选路径B,数据由在候选路径A上转发切换至在候选路径B上转发。可以看出,转发节点在将第一转发路径切换为第二转发路径之前,数据沿图5中的数据转发路径1转发;转发节点在将第一转发路径切换为第二转发路径之后,数据沿图6中的数据转发路径4转发。For another example, if the candidate paths A and B in Table 1 do not include the segment routing list, and the candidate path A is the data forwarding path 1 in FIG. 5 , and the candidate path B is the data forwarding path 4 in FIG. 6 , the first forwarding The path is the candidate path A. Then, when switching the first forwarding path to the second forwarding path, the forwarding node can lower the priority of the candidate path A and raise the priority of the candidate path B (the second forwarding path), so that the candidate path B has the highest priority Therefore, the path for forwarding data in the first data tunnel is switched from candidate path A to candidate path B, and the data is switched from forwarding on candidate path A to forwarding on candidate path B. It can be seen that before the forwarding node switches the first forwarding path to the second forwarding path, the data is forwarded along the data forwarding path 1 in FIG. 5; after the forwarding node switches the first forwarding path to the second forwarding path, the data is forwarded along the data forwarding path 1. The data forwarding path 4 in FIG. 6 forwards.
又示例的,当第一转发路径为第一数据隧道中某一候选路径中某一段路由列表所指示的数据转发路径时,转发节点可以将第一转发路径切换为该候选路径中其他段路由列表所指示的数据转发路径。此时,第一转发路径和第二转发路径为第一数据隧道的策略中同一候选路径中不同段路由列表指示的数据转发路径。In another example, when the first forwarding path is a data forwarding path indicated by a certain segment routing list in a certain candidate path in the first data tunnel, the forwarding node may switch the first forwarding path to another segment routing list in the candidate path. The indicated data forwarding path. In this case, the first forwarding path and the second forwarding path are data forwarding paths indicated by different segment routing lists in the same candidate path in the policy of the first data tunnel.
例如,以S101中的例子为例,假设表1中第一数据隧道中的候选路径A为用于转发数据的路径,且第一转发路径为候选路径A中段路由列表<节点标签2、节点标签3、节点标签 4>所指示的图5中的数据转发路径1。第一数据隧道的候选路径中的每个段路由列表具有权重,段路由列表的权重用于指示:段路由列表所属的候选路径所转发的数据中,在该段路由列表所指示的数据转发路径上转发的数据的占比。转发节点在将第一转发路径切换至第二转发路径时,可以将段路由列表<节点标签2、节点标签3、节点标签4>的权重降低为零,将候选路径中的其他段路由列表的权重相应地提高,以使在第一转发路径上转发的数据切换至在其他段路由列表所指示的数据转发路径上转发,此时第二转发路径包括图5中数据转发路径2和3。可以看出,转发节点在将第一转发路径切换为第二转发路径之前,第一转发路径中的数据沿图5中的数据转发路径1转发;转发节点在将第一转发路径切换为第二转发路径之后,第一转发路径中的数据沿图5中的数据转发路径2和3转发。For example, taking the example in S101 as an example, it is assumed that the candidate path A in the first data tunnel in Table 1 is the path for forwarding data, and the first forwarding path is the route list in the middle segment of the candidate path A < node label 2, node label 3. The data forwarding path 1 in FIG. 5 indicated by the node label 4>. Each segment routing list in the candidate path of the first data tunnel has a weight, and the weight of the segment routing list is used to indicate: in the data forwarded by the candidate path to which the segment routing list belongs, the data forwarding path indicated by the segment routing list The proportion of data forwarded on the Internet. When switching the first forwarding path to the second forwarding path, the forwarding node can reduce the weight of the segment routing list <node label 2, node label 3, node label 4> to zero, and reduce the weight of other segment routing lists in the candidate path. The weight is correspondingly increased, so that the data forwarded on the first forwarding path is switched to be forwarded on the data forwarding paths indicated by other segment routing lists. At this time, the second forwarding paths include data forwarding paths 2 and 3 in FIG. 5 . It can be seen that before the forwarding node switches the first forwarding path to the second forwarding path, the data in the first forwarding path is forwarded along the data forwarding path 1 in FIG. 5; the forwarding node switches the first forwarding path to the second forwarding path. After the forwarding path, the data in the first forwarding path is forwarded along data forwarding paths 2 and 3 in FIG. 5 .
可选地,假设第一数据隧道包括第一候选路径,且第一转发路径为第一候选路径中某一段路由列表所指示的数据转发路径时,若第一候选路径中其他段路由列表所指示的数据转发路径的误码指标也不符合预设条件,那么转发节点可以将转发节点转发数据所采用的候选路径由第一候选路径切换为第二候选路径,进而将第一转发路径切换至第二候选路径中段路由列表所指示的数据转发路径。其中,第一候选路径和第二候选路径为第一数据隧道的任意两条候选路径。转发节点可以通过将第一候选路径的优先级降低,以及将第二候选路径的优先级提高,以将转发节点转发数据所采用的候选路径由第一候选路径切换至第二候选路径。Optionally, assuming that the first data tunnel includes a first candidate path, and the first forwarding path is a data forwarding path indicated by a routing list of a certain segment in the first candidate path, if the routing list of other segments in the first candidate path indicates The bit error index of the data forwarding path also does not meet the preset conditions, then the forwarding node can switch the candidate path used by the forwarding node to forward data from the first candidate path to the second candidate path, and then switch the first forwarding path to the second candidate path. The data forwarding path indicated by the route list in the middle of the two candidate paths. The first candidate path and the second candidate path are any two candidate paths of the first data tunnel. The forwarding node may lower the priority of the first candidate path and increase the priority of the second candidate path to switch the candidate path used by the forwarding node to forward data from the first candidate path to the second candidate path.
S105、转发节点根据第一转发路径的误码指标不符合预设条件,向控制器发送误码消息,误码消息用于通告与第一转发路径关联的误码信息。S105. The forwarding node sends an error message to the controller according to the error index of the first forwarding path not meeting the preset condition, where the error message is used to announce the error information associated with the first forwarding path.
转发节点在确定第一转发路径的误码指标不符合预设条件时,可以向控制器发送误码消息,以通告控制器与该第一转发路径关联的误码信息。When determining that the error index of the first forwarding path does not meet the preset condition, the forwarding node may send an error message to the controller to notify the controller of the error information associated with the first forwarding path.
示例地,当S103中转发节点根据第一转发路径中至少一个误码链路的误码指标不符合预设条件,确定第一转发路径的误码指标不符合预设条件时,该误码信息可以包括:第一转发路径的误码指标不符合预设条件,第一转发路径中的误码链路,第一转发路径中不符合预设条件的误码链路,和/或,转发节点对该第一转发路径的调整情况(比如转发节点将该第一转发路径切换为第二转发路径)等。当S103中转发节点根据第一转发路径中至少一个误码子路径的误码指标不符合预设条件,确定第一转发路径的误码指标不符合预设条件时,该误码信息可以包括:第一转发路径的误码指标不符合预设条件,第一转发路径中的误码子路径,第一转发路径中不符合预设条件的误码子路径,和/或,转发节点对该第一转发路径的调整情况(比如转发节点将该第一转发路径切换为第二转发路径)等。For example, in S103, when the forwarding node determines that the error index of the first forwarding path does not meet the preset condition according to the error index of at least one error link in the first forwarding path does not meet the preset condition, the error information It may include: the error index of the first forwarding path does not meet the preset condition, the error link in the first forwarding path, the error link in the first forwarding path that does not meet the preset condition, and/or, the forwarding node Adjustment of the first forwarding path (for example, the forwarding node switches the first forwarding path to the second forwarding path) and the like. When the forwarding node in S103 determines that the error index of the first forwarding path does not meet the preset condition according to the error index of at least one error sub-path in the first forwarding path, the error information may include: The bit error index of a forwarding path does not meet the preset conditions, the error sub-paths in the first forwarding path, the error sub-paths in the first forwarding path that do not meet the preset conditions, and/or the forwarding node for the first forwarding path (for example, the forwarding node switches the first forwarding path to the second forwarding path) and so on.
由于本申请实施例中转发节点能够向控制器通告与第一转发路径关联的误码信息,因此,控制器能够根据该误码信息对节点的网络拓扑,以及布局在多个节点上的数据转发路径进行管理,并且控制器可以参考该误码信息布局其他数据转发路径,从而尽量避免布局的其他数据转发路径的误码指标不符合预设条件。Since the forwarding node in the embodiment of the present application can notify the controller of the bit error information associated with the first forwarding path, the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information. Path management, and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions.
可选地,误码消息为BGP消息。比如,边界网关协议-链路状态(Border Gateway Protocol-Link State,BGP-LS)消息。Optionally, the error message is a BGP message. For example, a Border Gateway Protocol-Link State (Border Gateway Protocol-Link State, BGP-LS) message.
示例地,上述与第一转发路径关联的误码信息可以包括:第一转发路径中误码链路的误码信息。在这种情况下,可以扩展BGP-LS消息中链路网络层可达性消息(Link NLRI)中的链路描述符(Link descriptor)中类型长度数据(Type Length Value,TLV)的子属性,增加sub-TLV(次级TLV)作为误码TLV。BGP-LS消息为某一链路的状态消息,该BGP-LS消息 中的误码TLV用于指示该链路的误码情况(如是否误码,和/或,误码率等)。Exemplarily, the above-mentioned bit error information associated with the first forwarding path may include: bit error information of an errored link in the first forwarding path. In this case, the sub-attribute of the Type Length Value (TLV) in the Link descriptor (Link descriptor) in the Link Network Layer Reachability message (Link NLRI) in the BGP-LS message can be extended, Add sub-TLV (secondary TLV) as bit error TLV. The BGP-LS message is a status message of a certain link, and the bit error TLV in the BGP-LS message is used to indicate the bit error condition of the link (such as whether there is a bit error, and/or, bit error rate, etc.).
误码TLV的结构可以如图9所示,该误码TLV可以包括:依次排布的类型(Type)字段、长度(Length)字段、标志(Flags)和预留(Reserved)字段,其中,类型字段用于指示该误码TLV的类型,长度字段用于指示该长度字段之后的所有字段的长度,标志字段可以用于指示链路的误码情况。进一步地,该标志字段可以包括8个比特位(如比特位0至比特位7),这8个比特位中的第一个比特位可以用于指示链路的误码情况。比如,当该第一比特位的值为0时,该第一个比特位用于指示:链路中的所有拓扑ID(编号)和切片ID均存在误码;当该第一比特位的值为1时,该第一个比特位用于指示:链路中的部分拓扑ID(编号)和切片ID均存在误码。或者,当该第一比特位的值为1时,该第一个比特位用于指示:链路中的所有拓扑ID(编号)和切片ID均存在误码;当该第一比特位的值为0时,该第一个比特位用于指示:链路中的部分拓扑ID(编号)和切片ID均存在误码。The structure of the error TLV may be as shown in FIG. 9 , and the error TLV may include: a type (Type) field, a length (Length) field, a flag (Flags) and a reserved (Reserved) field arranged in sequence, wherein the type The field is used to indicate the type of the error TLV, the length field is used to indicate the length of all fields following the length field, and the flag field can be used to indicate the error condition of the link. Further, the flag field may include 8 bits (eg, bit 0 to bit 7), and the first bit of the 8 bits may be used to indicate the bit error condition of the link. For example, when the value of the first bit is 0, the first bit is used to indicate that all topology IDs (numbers) and slice IDs in the link have errors; when the value of the first bit is When it is 1, the first bit is used to indicate that both the partial topology ID (number) and the slice ID in the link have bit errors. Or, when the value of the first bit is 1, the first bit is used to indicate that: all topology IDs (numbers) and slice IDs in the link have errors; when the value of the first bit is When it is 0, the first bit is used to indicate that both the partial topology ID (number) and the slice ID in the link have bit errors.
请继续参考图9,该误码TLV还可以包括其他字段,如图9中的误码率字段、误码时长字段和次级TLV(sub-TLV),其中,误码率字段用于指示链路的误码率,误码时长字段用于指示链路误码的持续时长。Please continue to refer to FIG. 9, the bit error TLV may also include other fields, such as the bit error rate field, the bit error duration field and the sub-TLV (sub-TLV) in FIG. 9, where the bit error rate field is used to indicate the chain The bit error rate of the link, and the bit error duration field is used to indicate the duration of the link error.
又示例地,上述与第一转发路径关联的误码信息可以包括:第一转发路径所在的第一数据隧道的误码信息。在这种情况下,可以扩展BGP-LS消息中的Link NLRI中的Link descriptor中TLV的子属性(或者流量工程策略属性TE Policy Atrribute的子属性),增加次级TLV作为误码TLV。误码TLV用于指示第一数据隧道的误码情况(如是否误码,和/或,误码率等)。该误码TLV的结构可以参考图9所示的误码TLV的结构,但标志字段中的第一个比特位可以用于指示第一数据隧道的误码情况。比如,当该第一比特位的值为0时,该第一个比特位用于指示:第一数据隧道中的所有段路由列表所指示的数据转发路径均存在误码;当该第一比特位的值为1时,该第一个比特位用于指示:第一数据隧道中的部分段路由列表所指示的数据转发路径均存在误码。或者,当该第一比特位的值为1时,该第一个比特位用于指示:第一数据隧道中的所有段路由列表所指示的数据转发路径均存在误码;当该第一比特位的值为0时,该第一个比特位用于指示:第一数据隧道中的所有段路由列表所指示的数据转发路径均存在误码。图9中的误码率字段用于指示第一数据隧道的误码率,误码时长字段用于指示第一数据隧道误码的持续时长。In another example, the above-mentioned bit error information associated with the first forwarding path may include: bit error information of the first data tunnel where the first forwarding path is located. In this case, the sub-attribute of the TLV in the Link descriptor in the Link NLRI in the BGP-LS message (or the sub-attribute of the traffic engineering policy attribute TE Policy Atrribute) can be extended, and the secondary TLV can be added as the error TLV. The bit error TLV is used to indicate the bit error condition of the first data tunnel (eg, whether there is a bit error, and/or a bit error rate, etc.). For the structure of the error TLV, reference may be made to the structure of the error TLV shown in FIG. 9 , but the first bit in the flag field may be used to indicate the error condition of the first data tunnel. For example, when the value of the first bit is 0, the first bit is used to indicate that there are errors in the data forwarding paths indicated by all the segment routing lists in the first data tunnel; when the first bit is When the value of the bit is 1, the first bit is used to indicate that all the data forwarding paths indicated by the partial segment routing list in the first data tunnel have bit errors. Or, when the value of the first bit is 1, the first bit is used to indicate that there are errors in the data forwarding paths indicated by all the segment routing lists in the first data tunnel; when the first bit is When the value of the bit is 0, the first bit is used to indicate that the data forwarding paths indicated by all the segment routing lists in the first data tunnel have bit errors. The bit error rate field in FIG. 9 is used to indicate the bit error rate of the first data tunnel, and the bit error duration field is used to indicate the duration of the bit error of the first data tunnel.
S106、转发节点确定第一转发路径的误码指标符合预设条件。S106. The forwarding node determines that the bit error index of the first forwarding path meets a preset condition.
S107、转发节点根据第一转发路径的误码指标符合预设条件,将第二转发路径切换回第一转发路径。S107: The forwarding node switches the second forwarding path back to the first forwarding path according to the bit error index of the first forwarding path meeting the preset condition.
转发节点在将第一转发路径切换为第二转发路径后,还可以检测该第一转发路径的误码指标是否符合预设条件。若检测到第一转发路径的误码指标符合预设条件,转发节点便可以将第二转发路径切换回原本的第一转发路径。After switching the first forwarding path to the second forwarding path, the forwarding node may also detect whether the bit error indicator of the first forwarding path meets a preset condition. If it is detected that the bit error indicator of the first forwarding path meets the preset condition, the forwarding node can switch the second forwarding path back to the original first forwarding path.
可选地,转发节点在将第二转发路径切换回原本的第一转发路径之后,也可以向控制器发送用于通告第二转发路径切换回第一转发路径的信息,以便于控制器根据该信息对节点的网络拓扑,以及布局在多个节点上的数据转发路径进行管理。Optionally, after switching the second forwarding path back to the original first forwarding path, the forwarding node may also send the information for announcing that the second forwarding path is switched back to the first forwarding path to the controller, so that the controller can switch the second forwarding path back to the first forwarding path according to the information. The information manages the network topology of the nodes and the data forwarding paths laid out on multiple nodes.
综上所述,本申请实施例提供的路径调整方法中,转发节点能够根据第一转发路径的误码指标不符合预设条件,将第一转发路径切换为第二转发路径,实现对第一转发路径的调整。从而避免或缓解数据在误码指标不符合预设条件的第一转发路径上转发而引起的转发质量较 低的问题。To sum up, in the path adjustment method provided by the embodiment of the present application, the forwarding node can switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path not meeting the preset condition, so as to realize the adjustment of the first forwarding path. Adjustment of forwarding paths. Thereby, the problem of low forwarding quality caused by data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated.
并且,转发节点能够不借助控制器对第一转发路径进行调整,因此,本申请实施例提供的路径调整方法对路径的调整效率较高,时效性较强。并且,由于路径调整过程允许由转发节点独立完成,因此,也减少了控制器的负载,避免了控制器的负载过高的情况发生。In addition, the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the embodiment of the present application has higher path adjustment efficiency and stronger timeliness. Moreover, since the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of an excessively high load of the controller is avoided.
图4所示的实施例中转发节点在对第一转发路径进行调整时,采用将第一转发路径切换为第二转发路径的调整方式。可选地,该转发节点在对第一转发路径进行调整时,还可以采用其他调整方式。比如,转发节点可以根据第一转发路径的误码指标不符合预设条件,降低数据在第一转发路径上的转发比例。In the embodiment shown in FIG. 4 , when adjusting the first forwarding path, the forwarding node adopts an adjustment manner of switching the first forwarding path to the second forwarding path. Optionally, when the forwarding node adjusts the first forwarding path, other adjustment methods may also be used. For example, the forwarding node may reduce the forwarding ratio of data on the first forwarding path according to the fact that the bit error index of the first forwarding path does not meet the preset condition.
例如,转发节点可以将数据在第一转发路径上的转发比例降低为原本的50%或60%等。For example, the forwarding node may reduce the forwarding ratio of data on the first forwarding path to 50% or 60% of the original.
又例如,上述第一转发路径属于第一数据隧道的策略中某一候选路径中某一段路由列表所指示的数据转发路径。转发节点可以降低数据在该第一转发路径上的转发比例,并提高与第一转发路径属于同一候选路径,并由其他段路由列表指示的一条或多条数据转发路径上对数据的转发比例。For another example, the above-mentioned first forwarding path belongs to a data forwarding path indicated by a certain segment of the routing list in a certain candidate path in the policy of the first data tunnel. The forwarding node can reduce the forwarding ratio of data on the first forwarding path, and increase the forwarding ratio of data on one or more data forwarding paths that belong to the same candidate path as the first forwarding path and are indicated by other segment routing lists.
以S101中的例子为例,假设表1中第一数据隧道中的候选路径A为用于转发数据的路径,且第一转发路径为候选路径A中段路由列表<节点标签2、节点标签3、节点标签4>所指示的图5中的数据转发路径1。第一数据隧道的候选路径中的每个段路由列表具有权重,段路由列表的权重用于指示:段路由列表所属的候选路径所转发的数据中,在段路由列表所指示的数据转发路径上转发的数据的占比。转发节点在调整第一转发路径时,可以将段路由列表<节点标签2、节点标签3、节点标签4>的权重降低(比如降低为原权重的50%或60%,或者降低为零),将候选路径中的其他段路由列表的权重相应地提高,以使在图5中数据转发路径1上转发的至少部分数据,切换至在图5中的数据转发路径2和/或3上转发。Taking the example in S101 as an example, it is assumed that the candidate path A in the first data tunnel in Table 1 is a path for forwarding data, and the first forwarding path is the route list in the middle segment of the candidate path A < node label 2, node label 3, Node label 4> data forwarding path 1 in Figure 5 as indicated. Each segment routing list in the candidate path of the first data tunnel has a weight, and the weight of the segment routing list is used to indicate that the data forwarded by the candidate path to which the segment routing list belongs is on the data forwarding path indicated by the segment routing list The percentage of data forwarded. When the forwarding node adjusts the first forwarding path, the weight of the segment routing list <node label 2, node label 3, node label 4> can be reduced (for example, reduced to 50% or 60% of the original weight, or reduced to zero), The weights of other segment routing lists in the candidate paths are correspondingly increased, so that at least part of the data forwarded on the data forwarding path 1 in FIG. 5 is switched to be forwarded on the data forwarding paths 2 and/or 3 in FIG. 5 .
图4所示的实施例中以第一转发路径和第二转发路径属于同一数据隧道(第一数据隧道)为例,可选地,该第一转发路径和第二转发路径也可以属于不同的数据隧道,比如第一转发路径属于第一数据隧道,第二转发路径属于第二数据隧道,转发节点可以通过将第一数据隧道切换为第二数据隧道,以使数据所转发的路径由第一转发路径切换为第二转发路径。In the embodiment shown in FIG. 4 , the first forwarding path and the second forwarding path belong to the same data tunnel (first data tunnel) as an example. Optionally, the first forwarding path and the second forwarding path may also belong to different For example, the first forwarding path belongs to the first data tunnel and the second forwarding path belongs to the second data tunnel. The forwarding path is switched to the second forwarding path.
示例地,第二数据隧道可以是转发节点中上层业务预先配置的隧道,转发节点在确定第一转发路径的误码指标不符合预设条件时,可以将该第一数据隧道切换为第二数据隧道,以使第一转发路径切换为第二转发路径。该上层业务可以是任一种业务,比如L3VPN业务等。For example, the second data tunnel may be a tunnel pre-configured by the upper-layer service in the forwarding node, and when the forwarding node determines that the bit error indicator of the first forwarding path does not meet the preset condition, the first data tunnel may be switched to the second data tunnel. tunnel, so that the first forwarding path is switched to the second forwarding path. The upper-layer service may be any service, such as an L3VPN service.
又示例地,第二数据隧道可以是控制器规划的数据隧道。在这种情况下,转发节点在确定第一转发路径的误码指标不符合预设条件时,可以向控制器发送用于请求切换第一数据隧道的切换请求消息;控制器在接收到该切换请求消息后,可以根据该切换请求消息向转发节点发送切换响应消息,该切换响应消息用于指示使用第二数据隧道转发数据,该切换响应消息的内容可以参考S101中指示消息的内容,本申请实施例在此不做赘述。转发节点在将第一转发路径切换为第二转发路径时,可以根据该切换响应消息,将第一数据隧道切换为第二数据隧道,以将第一数据隧道中的第一转发路径切换为第二数据隧道中的第二转发路径。For another example, the second data tunnel may be a data tunnel planned by the controller. In this case, when the forwarding node determines that the bit error indicator of the first forwarding path does not meet the preset condition, it may send a switching request message for requesting switching of the first data tunnel to the controller; after the controller receives the switching After the request message, a handover response message can be sent to the forwarding node according to the handover request message. The handover response message is used to instruct the use of the second data tunnel to forward data. The content of the handover response message can refer to the content of the indication message in S101. This application The embodiment will not be repeated here. When switching the first forwarding path to the second forwarding path, the forwarding node may switch the first data tunnel to the second data tunnel according to the switching response message, so as to switch the first forwarding path in the first data tunnel to the second forwarding path. The second forwarding path in the second data tunnel.
可选地,转发节点向控制器发送的切换请求消息可以为BGP消息。Optionally, the handover request message sent by the forwarding node to the controller may be a BGP message.
可选地,转发节点在确定第一转发路径的误码指标不满足预设条件时,也可以先基于第 一数据隧道的策略调整第一转发路径(如图4中将第一转发路径切换为第一数据隧道中的第二转发路径)。当第一数据隧道中的每个数据转发路径的误码指标均不满预设条件时,转发节点可以将第一数据隧道切换为第二数据隧道,以将第一数据隧道中的第一转发路径切换为第二数据隧道中的第二转发路径。Optionally, when determining that the error index of the first forwarding path does not meet the preset condition, the forwarding node may first adjust the first forwarding path based on the policy of the first data tunnel (as shown in FIG. 4 , the first forwarding path is switched to the second forwarding path in the first data tunnel). When the bit error index of each data forwarding path in the first data tunnel is not below the preset condition, the forwarding node may switch the first data tunnel to the second data tunnel, so as to switch the first forwarding path in the first data tunnel Switch to the second forwarding path in the second data tunnel.
例如,以S101中例子为例,假设第一转发路径为表1中候选路径A中段路由列表<节点标签2、节点标签3和节点标签4>所指示的图5中的数据转发路径1。该第一转发路径的误码指标不满足预设条件。若表1中除数据转发路径1对应的段路由列表之外的段路由列表所指示的数据转发路径(如图5中的数据转发路径2和3,以及图6中的数据转发路径4和5)的误码指标均不满足预设条件,那么转发节点便可以将第一数据隧道切换为第二数据隧道,进而使用第二数据隧道中的第二转发路径转发原本在第一转发路径上转发的数据。For example, taking the example in S101 as an example, it is assumed that the first forwarding path is the data forwarding path 1 in FIG. The bit error index of the first forwarding path does not meet the preset condition. If the data forwarding paths indicated by the segment routing list other than the segment routing list corresponding to data forwarding path 1 in Table 1 (such as data forwarding paths 2 and 3 in FIG. 5 and data forwarding paths 4 and 5 in FIG. 6 ) ) does not meet the preset condition, then the forwarding node can switch the first data tunnel to the second data tunnel, and then use the second forwarding path in the second data tunnel to forward the original forwarding on the first forwarding path The data.
可选地,当第一转发路径为某一段路由列表所指示的数据转发路径时,转发节点在检测第一数据隧道中除第一转发路径之外的其他转发路径的误码指标是否满足预设条件时,可以首先检测与第一转发路径对应的段路由列表属于同一候选路径的其他段路由列表所指示的数据转发路径的误码指标是否满足预设条件。当该候选路径中的所有段路由列表所指示的数据转发路径的误码指标均不满足预设条件时,转发节点可以继续检测其他候选路径中的段路由列表所指示的数据转发路径的误码指标是否满足预设条件。示例地,转发节点可以按照候选路径的优先级从高到低的顺序,依次检测其他候选路径中段路由列表所指示的数据转发路径的误码指标是否满足预设条件。Optionally, when the first forwarding path is a data forwarding path indicated by a certain segment of the routing list, the forwarding node detects whether the bit error indicators of other forwarding paths in the first data tunnel except the first forwarding path satisfy a preset value. When the conditions are met, it may be first detected whether the bit error indicators of the data forwarding paths indicated by other segment routing lists that belong to the same candidate path in the segment routing list corresponding to the first forwarding path satisfy the preset condition. When the bit error indicators of the data forwarding paths indicated by all the segment routing lists in the candidate path do not meet the preset conditions, the forwarding node may continue to detect the bit errors of the data forwarding paths indicated by the segment routing lists in other candidate paths Whether the indicator meets the preset conditions. For example, the forwarding node may sequentially detect whether the bit error indicators of the data forwarding paths indicated by the middle segment routing lists of other candidate paths meet the preset conditions in order of priority of the candidate paths from high to low.
例如,以S101中的示例为例,假设第一转发路径为表1中候选路径A中段路由列表<节点标签2、节点标签3和节点标签4>所指示的图5中的数据转发路径1。转发节点可以首先检测该候选路径A中其他段路由列表所指示的图5中的数据转发路径2和3的误码指标是否满足预设条件,若这些数据转发路径的误码指标也不满足预设条件,则转发节点可以继续检测候选路径B中的段路由列表所指示的数据转发路径的误码指标是否满足预设条件。For example, taking the example in S101 as an example, it is assumed that the first forwarding path is the data forwarding path 1 in FIG. The forwarding node can first detect whether the bit error indicators of data forwarding paths 2 and 3 in FIG. 5 indicated by other segment routing lists in the candidate path A meet the preset conditions, and if the bit error indicators of these data forwarding paths also do not meet the predetermined conditions. If the condition is set, the forwarding node can continue to detect whether the bit error indicator of the data forwarding path indicated by the segment routing list in the candidate path B satisfies the preset condition.
可选地,当第一转发路径为某一候选路径时,转发节点可以按照候选路径的优先级从高到低的顺序,依次检测其他候选路径的误码指标是否满足预设条件。Optionally, when the first forwarding path is a certain candidate path, the forwarding node may sequentially detect whether the bit error indicators of other candidate paths satisfy the preset condition in order of priority of the candidate paths from high to low.
图4所示的实施例中以转发节点根据第一数据隧道的策略,将第一转发路径切换为第二转发路径,此时,第二转发路径为预先配置好的路径。可选地,该第二转发路径也可以不是预先配置好的路径,比如,第二转发路径为转发节点计算(例如基于IGP计算)得到的路径。In the embodiment shown in FIG. 4 , the forwarding node switches the first forwarding path to the second forwarding path according to the policy of the first data tunnel. In this case, the second forwarding path is a pre-configured path. Optionally, the second forwarding path may not be a pre-configured path. For example, the second forwarding path is a path calculated by the forwarding node (for example, calculated based on IGP).
在这种情况下,转发节点在确定第一转发路径的误码指标不满足预设条件时,可以计算第二转发路径,之后再将第一转发路径切换为第二转发路径,该过程无需依赖控制器,因此将第一转发路径切换为第二转发路径的时效性较高。并且,转发节点可以是第一转发路径上的任一节点,比如头节点或中间节点等。第二转发路径可以是数据隧道中的路径,也可以不是数据隧道中的路径,本申请实施例对此不作限定。In this case, when the forwarding node determines that the bit error index of the first forwarding path does not meet the preset condition, it can calculate the second forwarding path, and then switch the first forwarding path to the second forwarding path. This process does not need to rely on Therefore, the timeliness of switching the first forwarding path to the second forwarding path is relatively high. Moreover, the forwarding node may be any node on the first forwarding path, such as a head node or an intermediate node. The second forwarding path may be a path in the data tunnel, or may not be a path in the data tunnel, which is not limited in this embodiment of the present application.
示例地,假设各个节点的网络拓扑如图10所示,若第一转发路径为节点1→节点2→节点3→节点4,在数据沿第一转发路径转发的过程中,该第一转发路径上的每个节点均可以检测第一转发路径上的链路是否为误码指标不满足预设条件的误码链路,并根据该结果判定第一转发路径的误码指标是否满足预设条件。当节点2确定节点2到节点3之间的链路为误码指标不满足预设条件的误码链路,使得第一转发路径的误码指标不满足预设条件时,节点2 可以计算节点2到节点3之间绕过该链路的路径节点2→节点5→节点6,进而得到第二转发路径节点1→节点2→节点5→节点6→节点4。For example, assuming that the network topology of each node is shown in FIG. 10, if the first forwarding path is node 1→node 2→node 3→node 4, in the process of data forwarding along the first forwarding path, the first forwarding path Each node on the first forwarding path can detect whether the link on the first forwarding path is an error link whose bit error index does not meet the preset condition, and determine whether the error index of the first forwarding path meets the preset condition according to the result. . When the node 2 determines that the link between the node 2 and the node 3 is an error link whose error index does not meet the preset condition, so that the error index of the first forwarding path does not meet the preset condition, the node 2 can calculate the node The path between 2 and node 3 bypassing the link is node 2→node 5→node 6, and then a second forwarding path node 1→node 2→node 5→node 6→node 4 is obtained.
以上实施例中,转发节点在确定第一转发路径的误码指标不满足预设条件时,直接对第一转发路径进行调整,比如将第一转发路径切换为第二转发路径,或者,降低数据在第一转发路径上的转发比例。可选地,转发节点在对第一转发路径进行调整之前,还可以判断第一转发路径是否属于允许调整的路径,在确定第一转发路径属于允许调整的路径时,才对第一转发路径进行调整。In the above embodiment, when the forwarding node determines that the error index of the first forwarding path does not meet the preset condition, it directly adjusts the first forwarding path, for example, switches the first forwarding path to the second forwarding path, or reduces the data The forwarding ratio on the first forwarding path. Optionally, before adjusting the first forwarding path, the forwarding node may also determine whether the first forwarding path belongs to a path that allows adjustment, and only performs the first forwarding path when it is determined that the first forwarding path belongs to a path that allows adjustment. Adjustment.
示例地,转发节点可以获取允许调整的一条或多条路径的路径指示,之后可以根据该路径指示判断允许调整的一条或多条路径是否包括第一转发路径。当该允许调整的一条或多条路径包括第一转发路径时,转发节点可以将第一转发路径切换为第二转发路径,或者,降低数据在第一转发路径上的转发比例。For example, the forwarding node may acquire a path indication of one or more paths that are allowed to be adjusted, and then can judge whether the one or more paths that are allowed to be adjusted include the first forwarding path according to the path indication. When the one or more paths that are allowed to be adjusted include the first forwarding path, the forwarding node may switch the first forwarding path to the second forwarding path, or reduce the forwarding ratio of data on the first forwarding path.
可选地,在转发节点以将第一转发路径切换为第二转发路径的方式调整第一转发路径的情况下,转发节点在将第一转发路径进行调整之前,还可以判断第二转发路径是否属于允许调整的一条或多条路径,在确定第二转发路径属于允许调整的一条或多条路径时,才将第一转发路径切换为第二转发路径。Optionally, when the forwarding node adjusts the first forwarding path in a manner of switching the first forwarding path to the second forwarding path, the forwarding node may also determine whether the second forwarding path is not adjusted before adjusting the first forwarding path. For one or more paths that are allowed to be adjusted, the first forwarding path is switched to the second forwarding path only when it is determined that the second forwarding path belongs to one or more paths that are allowed to be adjusted.
又可选地,在转发节点以降低数据在第一转发路径上的转发比例,并提高数据在另一转发路径(可以称为第三转发路径)上的转发比例的方式调整第一转发路径的情况下,转发节点在将第一转发路径进行调整之前,还可以从允许调整的一条或多条路径中确定与第一转发路径不同的第三转发路径。之后,转发节点再降低数据在第一转发路径上的转发比例,并提高数据在第三转发路径上的转发比例。Alternatively, the forwarding node adjusts the forwarding ratio of the first forwarding path in a manner of reducing the forwarding ratio of data on the first forwarding path and increasing the forwarding ratio of data on another forwarding path (which may be referred to as a third forwarding path). In this case, before adjusting the first forwarding path, the forwarding node may further determine a third forwarding path different from the first forwarding path from one or more paths that allow adjustment. After that, the forwarding node further reduces the forwarding ratio of data on the first forwarding path, and increases the forwarding ratio of data on the third forwarding path.
需要说明的是,当第一转发路径对数据转发质量有一定要求时,允许调整的一条或多条路径可以包括该第一转发路径;当第一转发路径对数据转发质量没有要求时,允许调整的一条或多条路径可以不包括该第一转发路径。这样一来,在第一转发路径对数据转发质量没有要求时,就能够避免转发节点调整第一转发路径而引起的负载增高,从而减轻了转发节点的负载。另外,本申请实施例中可以根据需要设置第二转发路径和第三转发路径是否属于允许被调整的路径,因此,能够提升路径调整的灵活性。It should be noted that, when the first forwarding path has certain requirements on data forwarding quality, one or more paths that are allowed to be adjusted may include the first forwarding path; when the first forwarding path does not require data forwarding quality, adjustment is allowed. One or more of the paths may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node. In addition, in this embodiment of the present application, whether the second forwarding path and the third forwarding path belong to the paths that are allowed to be adjusted may be set as required, so that the flexibility of path adjustment can be improved.
进一步地,上述路径指示可以是控制器下发给转发节点的,也可以是其他装置下发给转发节点的,也可以是转发节点本地配置的,本申请实施例对此不作限定。Further, the above path indication may be delivered by the controller to the forwarding node, may also be delivered by other devices to the forwarding node, or may be configured locally by the forwarding node, which is not limited in this embodiment of the present application.
当路径指示是控制器下发给转发节点的时,该路径指示可以携带在控制器发送至转发节点的BGP消息或PECP消息中。可选地,该BGP消息或PCEP消息可以是用于下发数据隧道的策略的消息。When the path indication is delivered by the controller to the forwarding node, the path indication may be carried in a BGP message or PECP message sent by the controller to the forwarding node. Optionally, the BGP message or the PCEP message may be a message for delivering a policy of the data tunnel.
可选地,BGP消息或PCEP消息可以包括:数据隧道的策略中每个段路由列表对应的第一TLV。其中,第一TLV可以用于指示:对应的段路由列表所指示的数据转发路径是否为允许调整的路径。Optionally, the BGP message or the PCEP message may include: the first TLV corresponding to each segment routing list in the policy of the data tunnel. The first TLV may be used to indicate whether the data forwarding path indicated by the corresponding segment routing list is a path that allows adjustment.
第一TLV的结构可以如图11所示,该第一TLV可以包括:依次排布的类型字段、长度字段和预留字段,其中,类型字段用于指示该第一TLV的类型,长度字段用于指示该长度字段之后的所有字段的长度(比如预留字段的长度),预留字段可以用于指示该第一TLV对应的数据转发路径是否为允许调整的路径。进一步地,该预留字段可以包括8个比特位(如比 特位0至比特位7),这8个比特位中的第一个比特位可以用于指示:该第一TLV对应的数据转发路径是否为允许调整的路径。比如,当该第一比特位的值为0时,该第一个比特位用于指示:该第一TLV对应的数据转发路径不是允许调整的路径;当该第一比特位的值为1时,该第一个比特位用于指示:该第一TLV对应的数据转发路径是允许调整的路径。或者,当该第一比特位的值为1时,该第一个比特位用于指示:该第一TLV对应的数据转发路径不是允许调整的路径;当该第一比特位的值为0时,该第一个比特位用于指示:该第一TLV对应的数据转发路径是允许调整的路径。The structure of the first TLV may be as shown in FIG. 11 , and the first TLV may include: a type field, a length field and a reserved field arranged in sequence, wherein the type field is used to indicate the type of the first TLV, and the length field is used to indicate the type of the first TLV. In order to indicate the length of all fields following the length field (such as the length of the reserved field), the reserved field may be used to indicate whether the data forwarding path corresponding to the first TLV is a path that allows adjustment. Further, the reserved field may include 8 bits (such as bit 0 to bit 7), and the first bit in the 8 bits may be used to indicate: the data forwarding path corresponding to the first TLV Whether the path is allowed to adjust. For example, when the value of the first bit is 0, the first bit is used to indicate that the data forwarding path corresponding to the first TLV is not a path that allows adjustment; when the value of the first bit is 1 , the first bit is used to indicate that the data forwarding path corresponding to the first TLV is a path that allows adjustment. Or, when the value of the first bit is 1, the first bit is used to indicate that the data forwarding path corresponding to the first TLV is not a path that allows adjustment; when the value of the first bit is 0 , the first bit is used to indicate that the data forwarding path corresponding to the first TLV is a path that allows adjustment.
请继续参考图11,该第一TLV还可以包括其他字段,如图9中的次级TLV(sub-TLV),本申请实施例对此不作限定。Please continue to refer to FIG. 11 , the first TLV may further include other fields, such as a sub-TLV (sub-TLV) in FIG. 9 , which is not limited in this embodiment of the present application.
可选地,若转发节点通过将第一数据隧道切换为第二数据隧道,以使数据所转发的路径由第一转发路径切换为第二转发路径,那么BGP消息或PCEP消息可以还可以包括:第二TLV,该第二TLV可以指示数据隧道是否允许调整。当用于下发第一数据隧道的BGP消息或PCEP消息中的第二TLV用于指示第一数据隧道允许调整,且用于下发第二数据隧道的BGP消息或PCEP消息中的第二TLV用于指示第二数据隧道允许调整时,转发节点可以将第一数据隧道切换为第二数据隧道。Optionally, if the forwarding node switches the data forwarding path from the first forwarding path to the second forwarding path by switching the first data tunnel to the second data tunnel, the BGP message or the PCEP message may further include: A second TLV, which may indicate whether the data tunnel is allowed to adjust. When the second TLV in the BGP message or PCEP message for delivering the first data tunnel is used to indicate that the first data tunnel allows adjustment, and the second TLV in the BGP message or PCEP message for delivering the second data tunnel When used to instruct the second data tunnel to allow adjustment, the forwarding node may switch the first data tunnel to the second data tunnel.
第二TLV的结构可以如图12所示,该第二TLV可以包括:依次排布的类型字段、长度字段、标志字段、预留字段和优先级(Preference)字段,其中,类型字段用于指示该第二TLV的类型,长度字段用于指示该长度字段之后的所有字段的长度(比如标志字段、预留字段和优先字段的长度),预留字段可以用于指示数据隧道是否允许调整。进一步地,该预留字段可以包括8个比特位(如比特位0至比特位7),这8个比特位中的第一个比特位可以用于指示:数据隧道是否允许调整。比如,当该第一比特位的值为0时,该第一个比特位用于指示:数据隧道不允许调整;当该第一比特位的值为1时,该第一个比特位用于指示:数据隧道允许调整。或者,当该第一比特位的值为1时,该第一个比特位用于指示:数据隧道不允许调整;当该第一比特位的值为0时,该第一个比特位用于指示:数据隧道允许调整。The structure of the second TLV may be as shown in FIG. 12 , the second TLV may include: a type field, a length field, a flag field, a reserved field and a priority (Preference) field arranged in sequence, wherein the type field is used to indicate The type of the second TLV, the length field is used to indicate the length of all fields following the length field (such as the length of the flag field, the reserved field and the priority field), and the reserved field can be used to indicate whether the data tunnel allows adjustment. Further, the reserved field may include 8 bits (eg, bit 0 to bit 7), and the first bit of the 8 bits may be used to indicate whether the data tunnel allows adjustment. For example, when the value of the first bit is 0, the first bit is used to indicate that the data tunnel does not allow adjustment; when the value of the first bit is 1, the first bit is used for Indication: The data tunnel allows tuning. Or, when the value of the first bit is 1, the first bit is used to indicate that the data tunnel does not allow adjustment; when the value of the first bit is 0, the first bit is used for Indication: The data tunnel allows tuning.
可选地,上述实施例中的第一转发路径和第二转发路径(或第三转发路径)的头节点可以相同(如均为上述转发节点),且尾节点可以相同。在其他可能的情形下,也不排除在某些场景中这些转发路径的头节点不同,尾节点也可以不同,但至少能够基于某些指示关系发生关联,以使得转发节点确定可以将第一转发路径切换为第二转发路径。Optionally, the head nodes of the first forwarding path and the second forwarding path (or the third forwarding path) in the foregoing embodiment may be the same (for example, both are the foregoing forwarding nodes), and the tail nodes may be the same. In other possible situations, it is not excluded that the head nodes and tail nodes of these forwarding paths may be different in some scenarios, but at least they can be associated based on some indication relationships, so that the forwarding node can determine that the first forwarding can be forwarded. The path is switched to the second forwarding path.
以上实施例中均以包含多个节点和控制器的通信系统为例,可选地,本申请实施例也可以用于不包含控制器的通信系统,此时,该路径调整方法不包括上述实施例中与控制器相关的动作。比如,该路径调整方法不包括图4所示的实施例中的S101和S105。In the above embodiments, a communication system including a plurality of nodes and a controller is taken as an example. Optionally, the embodiment of the present application can also be used in a communication system that does not include a controller. In this case, the path adjustment method does not include the above implementation. The action associated with the controller in the example. For example, the path adjustment method does not include S101 and S105 in the embodiment shown in FIG. 4 .
第一转发路径可以是数据隧道(如第一数据隧道)中的路径,也可以不是数据隧道中的路径。The first forwarding path may be a path in a data tunnel (eg, the first data tunnel), or may not be a path in the data tunnel.
当第一转发路径是第一数据隧道中的路径时,转发节点可以参考上述实施例将第一转发路径切换为第二转发路径,该第二转发路径可以是第一数据隧道中的路径,也可以是根据上层业务确定的第二数据隧道中的路径,也可以是转发节点计算得到的路径。或者,转发节点可以参考上述实施例降低第一转发路径上转发的数据的比例,相应地,转发节点还可以提高 第一数据隧道中某些数据转发路径上转发的数据的比例。When the first forwarding path is a path in the first data tunnel, the forwarding node may switch the first forwarding path to a second forwarding path with reference to the foregoing embodiment, and the second forwarding path may be a path in the first data tunnel, or It may be the path in the second data tunnel determined according to the upper-layer service, or may be the path calculated by the forwarding node. Alternatively, the forwarding node can reduce the proportion of data forwarded on the first forwarding path with reference to the above-mentioned embodiment, and correspondingly, the forwarding node can also increase the proportion of data forwarded on some data forwarding paths in the first data tunnel.
当第一转发路径不是数据隧道中的路径时,转发节点可以计算得到上述第二转发路径,并将第一转发路径切换为第二转发路径,或者,转发节点可以降低第一转发路径上转发的数据的比例。When the first forwarding path is not the path in the data tunnel, the forwarding node may obtain the second forwarding path by calculating, and switch the first forwarding path to the second forwarding path, or the forwarding node may reduce the forwarding path on the first forwarding path proportion of the data.
综上所述,本申请实施例提供的路径调整方法中,转发节点能够根据第一转发路径的误码指标不符合预设条件,将第一转发路径切换为第二转发路径,或者,降低数据在第一转发路径上的传输比例,以实现对第一转发路径的调整。从而避免或缓解至少部分数据在误码指标不符合预设条件的第一转发路径上转发而引起的转发质量较低的问题。To sum up, in the path adjustment method provided by the embodiment of the present application, the forwarding node can switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet the preset condition, or reduce the data The transmission ratio on the first forwarding path, so as to realize the adjustment of the first forwarding path. Thus, the problem of low forwarding quality caused by at least part of the data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated.
并且,转发节点能够不借助控制器对第一转发路径进行调整,因此,本申请实施例提供的路径调整方法对路径的调整效率较高,时效性较强。并且,由于路径调整过程允许由转发节点独立完成,因此,也减少了控制器的负载,避免了控制器的负载过高的情况发生。In addition, the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the embodiment of the present application has higher path adjustment efficiency and stronger timeliness. Moreover, since the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of an excessively high load of the controller is avoided.
上文中结合图1至图12,详细描述了本申请所提供的路径调整方法,可以理解的是,转发节点和控制器为了实现上述各方法所描述的功能,其需包含执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各方法的执行过程,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方式来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The path adjustment method provided by the present application is described in detail above with reference to FIG. 1 to FIG. 12 . It can be understood that, in order to implement the functions described in the above methods, the forwarding node and the controller need to include hardware corresponding to each function. and/or software modules. In conjunction with the execution process of each method 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 performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different ways to implement the described functionality for each particular application in conjunction with the embodiments, but such implementations should not be considered beyond the scope of this application.
本实施例可以根据上述方法实施例对相应的设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,具体作为一种逻辑功能可能的划分方式,实际实现时可以有另外的划分方式。In this embodiment, the corresponding device may be divided into functional modules according to the above method embodiments. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic, and specifically as a possible division manner of logical functions, there may be other division manners in actual implementation.
当采用功能模块划分方式时,下面将结合图13和图14描述本申请所提供的路径调整装置。When the functional module division method is adopted, the path adjustment device provided by the present application will be described below with reference to FIG. 13 and FIG. 14 .
图13为本申请实施例提供的一种路径调整装置的框图,该路径调整装置例如可以是前述各实施例中的转发节点。如图13所示,该路径调整装置包括:转发模块1201和第一调整模块1202。FIG. 13 is a block diagram of a path adjustment apparatus provided by an embodiment of the present application, and the path adjustment apparatus may be, for example, a forwarding node in the foregoing embodiments. As shown in FIG. 13 , the path adjustment apparatus includes: a forwarding module 1201 and a first adjustment module 1202 .
转发模块1201用于利用第一转发路径转发数据;转发模块1201用于执行的操作可以参考图4所示的实施例中的S102,或者以上实施例中其他与利用第一转发路径转发数据的内容。The forwarding module 1201 is configured to forward data using the first forwarding path; the operations performed by the forwarding module 1201 may refer to S102 in the embodiment shown in FIG. .
第一调整模块1202用于根据所述第一转发路径的误码指标不符合预设条件,将所述第一转发路径切换为第二转发路径,或者,降低数据在所述第一转发路径上的传输比例,其中,所述路径调整装置为所述第一转发路径上的节点。第一调整模块1202用于执行的操作可以参考图4所示的实施例中的S104,或者以上实施例中其他与调整第一转发路径相关的内容。The first adjustment module 1202 is configured to switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet a preset condition, or reduce data on the first forwarding path The transmission ratio of , wherein the path adjustment device is a node on the first forwarding path. For operations performed by the first adjustment module 1202, reference may be made to S104 in the embodiment shown in FIG. 4 , or other contents related to adjusting the first forwarding path in the above embodiments.
本申请提供的路径调整装置中,第一调整模块能够根据第一转发路径的误码指标不符合预设条件,将第一转发路径切换为第二转发路径,或者,降低数据在第一转发路径上的传输比例,以实现对第一转发路径的调整。从而避免或缓解至少部分数据在误码指标不符合预设条件的第一转发路径上转发而引起的转发质量较低的问题。In the path adjustment device provided by the present application, the first adjustment module can switch the first forwarding path to the second forwarding path according to the error index of the first forwarding path does not meet the preset condition, or reduce the number of data in the first forwarding path on the transmission ratio to realize the adjustment of the first forwarding path. Thus, the problem of low forwarding quality caused by at least part of the data being forwarded on the first forwarding path whose bit error index does not meet the preset condition is avoided or alleviated.
并且,转发节点能够不借助控制器对第一转发路径进行调整,因此,本申请提供的路径调整方法对路径的调整效率较高,时效性较强。并且,由于路径调整过程允许由转发节点独 立完成,因此,也减少了控制器的负载,避免了控制器的负载过高的情况发生。In addition, the forwarding node can adjust the first forwarding path without the aid of a controller. Therefore, the path adjustment method provided by the present application has higher efficiency in adjusting the path and stronger timeliness. Moreover, since the path adjustment process is allowed to be completed independently by the forwarding node, the load of the controller is also reduced, and the occurrence of the overload of the controller is avoided.
可选地,所述第一转发路径包括至少一条误码链路,所述误码链路为存在误码的链路,所述第二转发路径不包括所述至少一条误码链路中的一条或多条。Optionally, the first forwarding path includes at least one error link, and the error link is a link with an error, and the second forwarding path does not include the at least one error link. one or more.
可选地,所述第一转发路径包括至少一条误码链路,所述误码链路为存在误码的链路,误码链路的误码指标称为误码链路对应的误码指标。所述第一转发路径的误码指标不符合预设条件,包括:所述至少一条误码链路对应的至少一个误码指标不符合预设条件。Optionally, the first forwarding path includes at least one bit error link, the bit error link is a link with bit errors, and the bit error index of the bit error link is called the bit error corresponding to the bit error link. index. The bit error indicator of the first forwarding path does not meet the preset condition, including: at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition.
可选地,上述至少一个误码指标不符合预设条件可以有多种理解,比如,所述至少一条误码链路对应的至少一个误码指标不符合预设条件,包括:所述至少一个误码指标中的一个或多个不符合预设条件;或者,所述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件。其中,该至少一个误码指标的统计值可以是该至少一个误码指标的累加和、中位数、平均值或加权平均值等,该至少一个误码指标的统计值也可以是:该至少一个误码指标中未达到指标要求的误码指标的个数等,本申请实施例对此不作限定。Optionally, there may be multiple interpretations that the at least one error indicator does not meet the preset condition. For example, the at least one error index corresponding to the at least one error link does not meet the preset condition, including: the at least one error link. One or more of the bit error indicators do not meet the preset condition; or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition. Wherein, the statistical value of the at least one bit error indicator may be the cumulative sum, median, average or weighted average of the at least one bit error indicator, and the statistical value of the at least one bit error indicator may also be: the at least one bit error indicator The number of bit error indicators that do not meet the indicator requirements in a bit error indicator, etc., is not limited in this embodiment of the present application.
可选地,所述至少一个误码指标为至少一个误码率,所述至少一个误码指标中的一个或多个不符合预设条件,包括:所述至少一个误码率中的一个或多个不满足误码率阈值(比如大于误码率阈值,或者,大于或等于误码率阈值);或者,所述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件,包括:所述至少一个误码率中不满足误码率阈值的个数超过预设值,或者,所述至少一个误码率的累加和不满足预设值。Optionally, the at least one bit error indicator is at least one bit error rate, and one or more of the at least one bit error indicator does not meet a preset condition, including: one or more of the at least one bit error rate. A plurality of bit error rate thresholds do not meet (for example, greater than the bit error rate threshold, or greater than or equal to the bit error rate threshold); or, the statistical value of at least one bit error indicator corresponding to the at least one bit error link The setting condition includes: the number of the at least one bit error rate that does not meet the bit error rate threshold exceeds a preset value, or the cumulative sum of the at least one bit error rate does not meet the preset value.
可选地,所述第一转发路径和所述第二转发路径属于同一数据隧道,或者所述第一转发路径和所述第二转发路径属于不同数据隧道。当第一转发路径和第二转发路径属于同一数据隧道时,路径调整装置中的第一调整模块1202可以根据该数据隧道的策略将第一转发路径切换为第二转发路径。当第一转发路径和第二转发路径属于不同的数据隧道(比如第一转发路径属于第一数据隧道,第二转发路径属于第二数据隧道)时,第一调整模块1202可以通过将第一数据隧道切换为第二数据隧道,以使数据所转发的路径由第一转发路径切换为第二转发路径。Optionally, the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels. When the first forwarding path and the second forwarding path belong to the same data tunnel, the first adjustment module 1202 in the path adjustment apparatus may switch the first forwarding path to the second forwarding path according to the policy of the data tunnel. When the first forwarding path and the second forwarding path belong to different data tunnels (for example, the first forwarding path belongs to the first data tunnel and the second forwarding path belongs to the second data tunnel), the first adjustment module 1202 may The tunnel is switched to the second data tunnel, so that the data forwarding path is switched from the first forwarding path to the second forwarding path.
可选地,所述路径调整装置还包括:计算模块(图13中未示出),用于计算(例如基于IGP计算)所述第二转发路径。在这种情况下,转发节点在确定第一转发路径的误码指标不满足预设条件时,可以计算第二转发路径,之后再将第一转发路径切换为第二转发路径,该过程无需依赖控制器,因此将第一转发路径切换为第二转发路径的时效性较高。并且,转发节点可以是第一转发路径上的任一节点,比如头节点或中间节点等。第二转发路径可以是数据隧道中的路径,也可以不是数据隧道中的路径,本申请实施例对此不作限定。计算模块用于执行的操作可以参考以上实施例中与计算第二转发路径相关的内容。Optionally, the path adjustment apparatus further includes: a calculation module (not shown in FIG. 13 ), configured to calculate (eg, calculate based on IGP) the second forwarding path. In this case, when the forwarding node determines that the bit error index of the first forwarding path does not meet the preset condition, it can calculate the second forwarding path, and then switch the first forwarding path to the second forwarding path. This process does not need to rely on Therefore, the timeliness of switching the first forwarding path to the second forwarding path is relatively high. Moreover, the forwarding node may be any node on the first forwarding path, such as a head node or an intermediate node. The second forwarding path may be a path in the data tunnel, or may not be a path in the data tunnel, which is not limited in this embodiment of the present application. For operations performed by the computing module, reference may be made to the content related to computing the second forwarding path in the above embodiments.
可选地,所述第一转发路径属于第一数据隧道,所述第二转发路径属于第二数据隧道,所述路径调整装置还包括:第一发送模块和接收模块(图13中均未示出)。其中,第一发送模块用于向控制器发送用于请求切换所述第一数据隧道的切换请求消息;接收模块用于从所述控制器接收切换响应消息,所述切换响应消息用于指示使用所述第二数据隧道转发所述数据;所述第一调整模块1202用于:将所述第一转发路径切换为所述第二数据隧道中的所述第二转发路径以转发所述数据。第一发送模块用于执行的操作可以参考以上实施例中与向控制器发送切换请求消息相关的内容。接收模块用于执行的操作可以参考以上实施例中与接收控制器发送的切换响应消息相关的内容。Optionally, the first forwarding path belongs to the first data tunnel, the second forwarding path belongs to the second data tunnel, and the path adjustment apparatus further includes: a first sending module and a receiving module (neither shown in FIG. 13 ) out). The first sending module is configured to send a switching request message for requesting switching of the first data tunnel to the controller; the receiving module is configured to receive a switching response message from the controller, where the switching response message is used to indicate the use of The second data tunnel forwards the data; the first adjustment module 1202 is configured to: switch the first forwarding path to the second forwarding path in the second data tunnel to forward the data. For the operation performed by the first sending module, reference may be made to the content related to sending the handover request message to the controller in the above embodiment. For operations performed by the receiving module, reference may be made to the content related to the handover response message sent by the receiving controller in the above embodiments.
可选地,所述请求消息为BGP消息。Optionally, the request message is a BGP message.
可选地,所述路径调整装置还包括:第二发送模块(图13中未示出),用于根据所述第一转发路径的误码指标不符合预设条件,向控制器发送误码消息,所述误码消息用于通告与所述第一转发路径关联的误码信息。示例地,该误码信息可以包括:第一转发路径的误码指标不符合预设条件,第一转发路径中的误码链路,第一转发路径中不符合预设条件的误码链路,和/或,转发节点对该第一转发路径的调整情况(比如转发节点将该第一转发路径切换为第二转发路径)等。由于本申请实施例中转发节点能够向控制器通告与第一转发路径关联的误码信息,因此,控制器能够根据该误码信息对节点的网络拓扑,以及布局在多个节点上的数据转发路径进行管理,并且控制器可以参考该误码信息布局其他数据转发路径,从而尽量避免布局的其他数据转发路径的误码指标不符合预设条件。第二发送模块用于执行的操作可以参考以上实施例中与向控制器发送误码消息相关的内容。Optionally, the path adjustment device further includes: a second sending module (not shown in FIG. 13 ), configured to send the error code to the controller according to the error code index of the first forwarding path not meeting a preset condition message, where the bit error message is used to announce bit error information associated with the first forwarding path. Exemplarily, the bit error information may include: a bit error indicator of the first forwarding path does not meet a preset condition, an errored link in the first forwarding path, and an errored link in the first forwarding path that does not meet the preset condition. , and/or, the adjustment status of the first forwarding path by the forwarding node (for example, the forwarding node switches the first forwarding path to the second forwarding path), etc. Since the forwarding node in the embodiment of the present application can notify the controller of the bit error information associated with the first forwarding path, the controller can forward the network topology of the node and the data laid out on multiple nodes according to the bit error information. Path management, and the controller can refer to the bit error information to lay out other data forwarding paths, so as to try to avoid that the bit error indicators of the other data forwarding paths laid out do not meet the preset conditions. For operations performed by the second sending module, reference may be made to the content related to sending the error message to the controller in the above embodiments.
可选地,所述路径调整装置包括:获取模块(图13中未示出),用于获取允许调整的一条或多条路径的路径指示,所述一条或多条路径包括:与所述第一转发路径不同的至少一条路径;所述第一调整模块1202用于:根据所述路径指示从与所述第一转发路径不同的所述至少一条路径中确定所述第二转发路径,并将所述第一转发路径切换至所述第二转发路径;或者,根据所述路径指示从与所述第一转发路径不同的所述至少一条路径中确定第三转发路径,降低所述数据在所述第一转发路径上的传输比例,并提高所述数据在所述第三转发路径上的传输比例。本申请中可以根据需要设置第二转发路径和第三转发路径是否属于允许被调整的路径,因此,能够提升路径调整的灵活性。Optionally, the path adjustment apparatus includes: an obtaining module (not shown in FIG. 13 ), configured to obtain a path indication of one or more paths that allow adjustment, the one or more paths include: at least one path with different forwarding paths; the first adjustment module 1202 is configured to: determine the second forwarding path from the at least one path different from the first forwarding path according to the path indication, and adjust the The first forwarding path is switched to the second forwarding path; or, according to the path indication, a third forwarding path is determined from the at least one path different from the first forwarding path, and the data is The transmission ratio on the first forwarding path is increased, and the transmission ratio of the data on the third forwarding path is increased. In the present application, whether the second forwarding path and the third forwarding path belong to the paths allowed to be adjusted can be set as required, so the flexibility of path adjustment can be improved.
可选地,所述路径调整装置包括:获取模块(图13中未示出),用于获取允许调整的一条或多条路径的路径指示;所述第一调整模块1202用于:根据所述允许调整的一条或多条路径包括所述第一转发路径,将所述第一转发路径切换为第二转发路径;或者,根据所述允许调整的一条或多条路径包括所述第一转发路径,降低数据在所述第一转发路径上的传输比例。可以看出,转发节点在对第一转发路径进行调整之前,还可以判断第一转发路径是否属于允许调整的路径,在确定第一转发路径属于允许调整的路径时,才对第一转发路径进行调整。当第一转发路径对数据转发质量有一定要求时,允许调整的一条或多条路径可以包括该第一转发路径;当第一转发路径对数据转发质量没有要求时,允许调整的一条或多条路径可以不包括该第一转发路径。这样一来,在第一转发路径对数据转发质量没有要求时,就能够避免转发节点调整第一转发路径而引起的负载增高,从而减轻了转发节点的负载。Optionally, the path adjustment apparatus includes: an obtaining module (not shown in FIG. 13 ), configured to obtain a path indication of one or more paths that allow adjustment; the first adjustment module 1202 is configured to: according to the One or more paths that are allowed to be adjusted include the first forwarding path, and the first forwarding path is switched to a second forwarding path; or, one or more paths that are allowed to be adjusted include the first forwarding path , reducing the proportion of data transmission on the first forwarding path. It can be seen that, before adjusting the first forwarding path, the forwarding node can also determine whether the first forwarding path belongs to the path that allows adjustment, and only performs the first forwarding path when it is determined that the first forwarding path belongs to the path that allows adjustment. Adjustment. When the first forwarding path has certain requirements on data forwarding quality, one or more paths that are allowed to be adjusted may include the first forwarding path; when the first forwarding path does not require data forwarding quality, one or more paths that are allowed to be adjusted The path may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node.
本申请实施例中的获取模块用于执行的操作可以参考以上实施例中与获取路径指示相关的内容。For operations performed by the obtaining module in this embodiment of the present application, reference may be made to the content related to obtaining the path indication in the above embodiments.
可选地,所述路径指示携带在控制器发送至所述路径调整装置的BGP消息或PCEP消息中。Optionally, the path indication is carried in a BGP message or a PCEP message sent by the controller to the path adjustment apparatus.
可选地,所述第一转发路径和所述第二转发路径的头节点为所述路径调整装置,所述第一转发路径和所述第二转发路径的尾节点相同。在其他可能的情形下,也不排除在某些场景中这些转发路径的头节点不同,尾节点也可以不同,但至少能够基于某些指示关系发生关联,以使得转发节点确定可以将所述第一转发路径切换为所述第二转发路径。Optionally, head nodes of the first forwarding path and the second forwarding path are the path adjustment apparatus, and tail nodes of the first forwarding path and the second forwarding path are the same. In other possible situations, it is not excluded that the head nodes and tail nodes of these forwarding paths may be different in some scenarios, but at least they can be associated based on some indication relationships, so that the forwarding node can determine that the first node can be A forwarding path is switched to the second forwarding path.
可选地,所述第一转发路径属于SRv6 policy或SR-TE policy中的路径,所述第一调整模块1202用于:将所述第一转发路径切换为所述SRv6 policy或者所述SR-TE policy中的所述 第二转发路径,其中,所述第一转发路径和所述第二转发路径为所述SRv6 policy或者所述SR-TE policy中的不同候选路径,或者由所述SRv6 policy或者所述SR-TE policy中同一候选路径中的不同段路由列表segment list指示;可选地,该第二转发路径可以是第一数据隧道中除第一转发路径之外的优先级最高的候选路径。或者,所述第一调整模块1202用于:降低数据在所述第一转发路径上的传输比例,并提高与所述第一转发路径属于同一候选路径,并由其他segment list指示的一条或多条路径上对所述数据的传输比例。此时,第一转发路径和第二转发路径为第一数据隧道的策略中同一候选路径中不同段路由列表指示的数据转发路径。Optionally, the first forwarding path belongs to a path in the SRv6 policy or the SR-TE policy, and the first adjustment module 1202 is configured to: switch the first forwarding path to the SRv6 policy or the SR-TE policy The second forwarding path in the TE policy, wherein the first forwarding path and the second forwarding path are different candidate paths in the SRv6 policy or the SR-TE policy, or are determined by the SRv6 policy Or different segment routing lists in the same candidate path in the SR-TE policy indicate; optionally, the second forwarding path may be a candidate with the highest priority except the first forwarding path in the first data tunnel path. Alternatively, the first adjustment module 1202 is configured to: reduce the transmission ratio of data on the first forwarding path, and increase one or more candidate paths that belong to the same candidate path as the first forwarding path and are indicated by other segment lists The ratio of the transmission of the data on the paths. In this case, the first forwarding path and the second forwarding path are data forwarding paths indicated by different segment routing lists in the same candidate path in the policy of the first data tunnel.
可选地,所述路径调整装置还包括:第二调整模块(图13中未示出)。该第二调整模块用于:根据所述第一转发路径的误码指标符合预设条件,将所述第二转发路径切换回所述第一转发路径;或者,根据所述第一转发路径的误码指标符合预设条件,恢复所述数据在第一转发路径上的传输比例。第二调整模块用于执行的操作可以参考以上实施例中与第二调整模块的功能相关的内容。Optionally, the path adjustment device further includes: a second adjustment module (not shown in FIG. 13 ). The second adjustment module is configured to: switch the second forwarding path back to the first forwarding path according to the bit error index of the first forwarding path meeting a preset condition; or, according to the error of the first forwarding path If the bit error indicator meets the preset condition, the transmission ratio of the data on the first forwarding path is restored. For operations performed by the second adjustment module, reference may be made to the content related to the function of the second adjustment module in the above embodiments.
在采用集成的单元的情况下,本申请所提供的用于转发节点的路径调整装置可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对路径调整装置的动作进行控制管理,例如,可以用于支持路径调整装置执行上述S101至S107中由转发节点执行的动作。存储模块可以用于支持路径调整装置执行存储程序代码和数据等。通信模块,可以用于路径调整装置与其他设备的通信。In the case of using an integrated unit, the path adjustment apparatus for a forwarding node provided by the present application may include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the path adjustment apparatus, for example, may be used to support the path adjustment apparatus to perform the actions performed by the forwarding nodes in S101 to S107 above. The storage module may be used to support the execution of the path adjustment apparatus to store program codes and data, and the like. The communication module can be used for communication between the path adjustment device and other devices.
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。The processing module may be a processor or a controller. It may implement or execute the various exemplary logical blocks, modules and circuits described in connection with this disclosure. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and the like. The storage module may be a memory. The communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
在一个实施例中,当处理模块为处理器,存储模块为存储器,通信模块为通信接口时,本实施例所涉及的路径调整装置可以为具有图3所示结构的网络设备。在一种实现方式中,本装置中包括的上述各调整模块、计算模块等可以为存储器中存储的计算机程序,并由处理器调用以实现各模块相应的执行功能。In one embodiment, when the processing module is a processor, the storage module is a memory, and the communication module is a communication interface, the path adjustment apparatus involved in this embodiment may be a network device having the structure shown in FIG. 3 . In an implementation manner, the above-mentioned adjustment modules, calculation modules, etc. included in the device may be computer programs stored in the memory, and are called by the processor to implement the corresponding execution functions of the modules.
图14为本申请实施例提供的另一种路径调整装置的框图,该路径调整装置例如可以是前述各实施例中的控制器。如图14所示,该路径调整装置包括:第一发送模块1301和第一接收模块1302。FIG. 14 is a block diagram of another path adjustment apparatus provided by an embodiment of the present application, and the path adjustment apparatus may be, for example, the controller in the foregoing embodiments. As shown in FIG. 14 , the path adjustment apparatus includes: a first sending module 1301 and a first receiving module 1302 .
第一发送模块1301用于向转发节点发送指示消息,所述指示消息用于指示所述转发节点确定使用第一转发路径转发数据。第一发送模块1301用于执行的操作可以参考图4所示的实施例中的S101。The first sending module 1301 is configured to send an indication message to the forwarding node, where the indication message is used to instruct the forwarding node to determine to use the first forwarding path to forward data. For operations performed by the first sending module 1301, reference may be made to S101 in the embodiment shown in FIG. 4 .
第一接收模块1302用于接收所述转发节点发送的误码消息,所述误码消息用于通告与所述第一转发路径关联的误码信息。第一接收模块1302用于执行的操作可以参考图4所示的实施例中的S105中与控制器相关的内容。The first receiving module 1302 is configured to receive a bit error message sent by the forwarding node, where the bit error message is used to announce bit error information associated with the first forwarding path. For operations performed by the first receiving module 1302, reference may be made to the content related to the controller in S105 in the embodiment shown in FIG. 4 .
由于本申请实施例提供的路径调整装置中,第一接收模块能够接收转发节点发送的用于通告与第一转发路径关联的误码信息的误码消息,因此,路径调整装置能够根据该误码信息对节点的网络拓扑,以及布局在多个节点上的数据转发路径进行管理,并且路径调整装置可 以参考该误码信息布局其他数据转发路径,从而尽量避免布局的其他数据转发路径的误码指标不符合预设条件。In the path adjustment device provided in the embodiment of the present application, the first receiving module can receive the error message sent by the forwarding node and used to announce the error information associated with the first forwarding path. Therefore, the path adjustment device can The information manages the network topology of the node and the data forwarding paths laid out on multiple nodes, and the path adjustment device can refer to the bit error information to lay out other data forwarding paths, so as to avoid the bit error indicators of other data forwarding paths laid out as much as possible. The preset conditions are not met.
可选地,所述路径调整装置还包括:第二接收模块(图14中未示出),用于接收所述转发节点发送的切换请求消息;第二发送模块(图14中未示出),用于根据所述切换请求消息向所述转发节点发送切换响应消息,所述切换响应消息用于指示所述转发节点确定使用第二转发路径转发所述数据,所述第二转发路径为所述转发节点切换所述第一转发路径后确定使用的转发路径。可见,当第一转发路径属于第一数据隧道,第二转发路径属于第二数据隧道时,第二数据隧道可以是路径调整装置规划的数据隧道。转发节点可以借助路径调整装置确定第二数据隧道,进而将第一转发路径切换为第二数据隧道中的第二转发路径。第二接收模块用于执行的操作可以参考上述实施例中与第二接收模块的功能相关的内容;第二发送模块用于执行的操作可以参考上述实施例中与第二发送模块的功能相关的内容。Optionally, the path adjustment apparatus further includes: a second receiving module (not shown in FIG. 14 ), configured to receive a handover request message sent by the forwarding node; a second sending module (not shown in FIG. 14 ) is used to send a handover response message to the forwarding node according to the handover request message, where the handover response message is used to instruct the forwarding node to determine to use the second forwarding path to forward the data, and the second forwarding path is the The forwarding node determines the forwarding path to use after switching the first forwarding path. It can be seen that when the first forwarding path belongs to the first data tunnel and the second forwarding path belongs to the second data tunnel, the second data tunnel may be a data tunnel planned by the path adjustment apparatus. The forwarding node may determine the second data tunnel by means of the path adjustment device, and then switch the first forwarding path to the second forwarding path in the second data tunnel. For the operations performed by the second receiving module, reference may be made to the content related to the function of the second receiving module in the foregoing embodiment; for the operation performed by the second sending module, reference may be made to the content related to the function of the second sending module in the foregoing embodiment. content.
可选地,所述切换请求消息为BGP消息。Optionally, the handover request message is a BGP message.
可选地,所述第一转发路径和第二转发路径属于同一数据隧道,或者,所述第一转发路径和所述第二转发路径属于不同数据隧道;所述第二转发路径为所述转发节点切换所述第一转发路径后确定使用的转发路径。Optionally, the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnels; the second forwarding path is the forwarding path The node determines the used forwarding path after switching the first forwarding path.
可选地,所述路径调整装置包括:第三发送模块(图14中未示出),用于向所述转发节点发送允许调整的一条或多条路径的路径指示,以指示所述转发节点根据所述路径指示进行路径调整。本申请中路径调整装置可以根据需要设置允许被调整的路径,因此,能够提升路径调整的灵活性。当第一转发路径对数据转发质量有一定要求时,路径调整装置设置的允许调整的一条或多条路径可以包括该第一转发路径;当第一转发路径对数据转发质量没有要求时,路径调整装置设置的允许调整的一条或多条路径可以不包括该第一转发路径。这样一来,在第一转发路径对数据转发质量没有要求时,就能够避免转发节点调整第一转发路径而引起的负载增高,从而减轻了转发节点的负载。第三发送模块用于执行的操作可以参考上述实施例中与第三发送模块的功能相关的内容。Optionally, the path adjustment apparatus includes: a third sending module (not shown in FIG. 14 ), configured to send a path indication of one or more paths that allow adjustment to the forwarding node, so as to indicate to the forwarding node The path adjustment is performed according to the path indication. The path adjustment device in the present application can set a path that is allowed to be adjusted as required, so the flexibility of path adjustment can be improved. When the first forwarding path has certain requirements for data forwarding quality, one or more paths set by the path adjustment device that allow adjustment may include the first forwarding path; when the first forwarding path does not require data forwarding quality, the path adjustment One or more paths set by the device to allow adjustment may not include the first forwarding path. In this way, when the first forwarding path does not require data forwarding quality, the load increase caused by the forwarding node adjusting the first forwarding path can be avoided, thereby reducing the load of the forwarding node. For the operation performed by the third sending module, reference may be made to the content related to the function of the third sending module in the foregoing embodiment.
可选地,所述路径指示携带在所述指示消息中。该指示消息可以是BGP消息或PCEP消息。Optionally, the path indication is carried in the indication message. The indication message may be a BGP message or a PCEP message.
在采用集成的单元的情况下,本申请所提供的用于控制器的路径调整装置可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对路径调整装置的动作进行控制管理,例如,可以用于支持路径调整装置执行上述S101至S107中由控制器执行的动作。存储模块可以用于支持路径调整装置执行存储程序代码和数据等。通信模块,可以用于支持路径调整装置与其他设备的通信。In the case of using an integrated unit, the path adjustment apparatus for a controller provided by the present application may include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the path adjustment apparatus, for example, may be used to support the path adjustment apparatus to perform the actions performed by the controller in S101 to S107 above. The storage module may be used to support the execution of the path adjustment apparatus to store program codes and data, and the like. The communication module can be used to support the communication between the path adjustment device and other devices.
该处理模块、存储模块和通信模块,可以分别参考上述用于控制器的路径调整装置中的处理模块、存储模块和通信模块,本申请实施例在此不做赘述。For the processing module, the storage module, and the communication module, reference may be made to the processing module, the storage module, and the communication module in the above-mentioned path adjustment device for a controller, which will not be repeated in this embodiment of the present application.
在一个实施例中,当处理模块为处理器,存储模块为存储器,通信模块为通信接口时,本实施例所涉及的路径调整装置可以为具有图3所示结构的网络设备。In one embodiment, when the processing module is a processor, the storage module is a memory, and the communication module is a communication interface, the path adjustment apparatus involved in this embodiment may be a network device having the structure shown in FIG. 3 .
本申请实施例提供了一种通信系统,该通信系统的结构可以如图1所示,该通信系统可以包括:多个节点。该多个节点中的至少部分节点位于第一转发路径上,转发节点为第一转发路径上的任一节点,该转发节点的功能可以参考上述各个实施例中描述的相应功能,本申 请实施例在此不做赘述。An embodiment of the present application provides a communication system. The structure of the communication system may be as shown in FIG. 1 , and the communication system may include: a plurality of nodes. At least some of the nodes are located on the first forwarding path, and the forwarding node is any node on the first forwarding path. For the function of the forwarding node, reference may be made to the corresponding functions described in the foregoing embodiments. This embodiment of the present application I won't go into details here.
本申请实施例提供了另一种通信系统,该通信系统的结构可以如图2所示,该通信系统可以包括:多个节点和控制器。该多个节点中的至少部分节点位于第一转发路径上,转发节点为第一转发路径上的任一节点。该系统中转发节点和控制器的功能,可以参考上述各个实施例中描述的相应功能,本申请实施例在此不做赘述。An embodiment of the present application provides another communication system, and the structure of the communication system may be as shown in FIG. 2 , and the communication system may include: a plurality of nodes and a controller. At least some of the nodes in the plurality of nodes are located on the first forwarding path, and the forwarding node is any node on the first forwarding path. For the functions of the forwarding node and the controller in the system, reference may be made to the corresponding functions described in the foregoing embodiments, which will not be repeated in the embodiments of the present application.
本申请实施例提供了一种计算机可读存储介质,该存储介质内存储有计算机程序,该计算机程序用于执行本申请实施例提供的任一路径调整方法中转发节点用于执行的方法。An embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is used to execute the method used by a forwarding node in any path adjustment method provided by the embodiment of the present application.
本申请实施例提供了另一种计算机可读存储介质,该存储介质内存储有计算机程序,该计算机程序用于执行本申请实施例提供的任一路径调整方法中控制器用于执行的方法。Embodiments of the present application provide another computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is used to execute the method used by the controller in any of the path adjustment methods provided by the embodiments of the present application.
本申请实施例提供了一种包含指令的计算机程序产品,当计算机程序产品在路径调整装置上运行时,使得路径调整装置执行本申请实施例提供的任一路径调整方法中转发节点用于执行的方法。The embodiments of the present application provide a computer program product containing instructions, when the computer program product is run on a path adjustment device, the path adjustment device is made to execute the forwarding node for executing any of the path adjustment methods provided by the embodiments of the present application. method.
本申请实施例提供了一种包含指令的计算机程序产品,当计算机程序产品在路径调整装置上运行时,使得路径调整装置执行本申请实施例提供的任一路径调整方法中控制器用于执行的方法。The embodiments of the present application provide a computer program product containing instructions, when the computer program product runs on the path adjustment device, the path adjustment device is made to execute the method used by the controller in any of the path adjustment methods provided in the embodiments of the present application .
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现,所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机的可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者包含一个或多个可用介质集成的服务器、数据中心等数据存储装置。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质,或者半导体介质(例如固态硬盘)等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product comprising one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website, computer, server, or data The center transmits to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes one or more available media integrated. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media, or semiconductor media (eg, solid state drives), and the like.
在本申请中,术语“第一”和“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。术语“至少一个”指一个或多个,“多个”指两个或两个以上,除非另有明确的限定。In this application, the terms "first" and "second" etc. are used for descriptive purposes only and should not be construed to indicate or imply relative importance. The term "at least one" refers to one or more, and "plurality" refers to two or more, unless expressly limited otherwise.
本申请实施例提供的方法实施例和装置实施例等不同类型的实施例均可以相互参考,本申请实施例对此不做限定。本申请实施例提供的方法实施例操作的先后顺序能够进行适当调整,操作也能够根据情况进行相应增减,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,因此不再赘述。Different types of embodiments such as method embodiments and device embodiments provided in the embodiments of the present application may refer to each other, which is not limited in the embodiments of the present application. The sequence of operations of the method embodiments provided in the embodiments of the present application can be appropriately adjusted, and the operations can also be increased or decreased according to the situation. All methods should be covered within the protection scope of the present application, and therefore will not be repeated here.
在本申请提供的相应实施例中,应该理解到,所揭露的系统、设备和装置等可以通过其它的构成方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信 连接,可以是电性或其它的形式。In the corresponding embodiments provided in the present application, it should be understood that the disclosed systems, devices, and apparatuses, etc., may be implemented by other structural manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元描述的部件可以是或者也可以不是物理单元,既可以位于一个地方,或者也可以分布到多个设备上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units described as separate components may or may not be physically separated, and components described as units may or may not be physical units, and may be located in one place or distributed to multiple devices. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in the present application. Modifications or substitutions shall be covered by the protection scope of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (29)

  1. 一种路径调整方法,其特征在于,所述方法由转发节点执行,所述方法包括:A path adjustment method, characterized in that the method is performed by a forwarding node, and the method includes:
    利用第一转发路径转发数据;forwarding data using the first forwarding path;
    根据所述第一转发路径的误码指标不符合预设条件,将所述第一转发路径切换为第二转发路径,或者,降低数据在所述第一转发路径上的传输比例,其中,所述转发节点为所述第一转发路径上的节点。According to the error indicator of the first forwarding path not meeting the preset condition, the first forwarding path is switched to the second forwarding path, or the transmission ratio of data on the first forwarding path is reduced, wherein the The forwarding node is a node on the first forwarding path.
  2. 根据权利要求1所述的方法,其特征在于,所述第一转发路径包括至少一条误码链路,所述误码链路为存在误码的链路,所述第二转发路径不包括所述至少一条误码链路中的一条或多条。The method according to claim 1, wherein the first forwarding path includes at least one error link, the error link is a link with an error, and the second forwarding path does not include all one or more of the at least one errored link.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一转发路径包括至少一条误码链路,所述误码链路为存在误码的链路,所述第一转发路径的误码指标不符合预设条件,包括:The method according to claim 1 or 2, wherein the first forwarding path includes at least one error link, the error link is a link with error, and the first forwarding path includes at least one error link. The bit error indicators do not meet the preset conditions, including:
    所述至少一条误码链路对应的至少一个误码指标不符合预设条件。The at least one error index corresponding to the at least one error link does not meet the preset condition.
  4. 根据权利要求3所述的方法,其特征在于,所述至少一条误码链路对应的至少一个误码指标不符合预设条件,包括:The method according to claim 3, wherein the at least one error indicator corresponding to the at least one error link does not meet a preset condition, comprising:
    所述至少一个误码指标中的一个或多个不符合预设条件;或者,One or more of the at least one bit error indicator does not meet the preset condition; or,
    所述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件。The statistical value of the at least one error index corresponding to the at least one error link does not meet the preset condition.
  5. 根据权利要求4所述的方法,其特征在于,所述至少一个误码指标为至少一个误码率,The method according to claim 4, wherein the at least one bit error indicator is at least one bit error rate,
    所述至少一个误码指标中的一个或多个不符合预设条件,包括:所述至少一个误码率中的一个或多个不满足误码率阈值;或者,One or more of the at least one bit error index does not meet the preset condition, including: one or more of the at least one bit error rate does not meet the bit error rate threshold; or,
    所述至少一条误码链路对应的至少一个误码指标的统计值不符合预设条件,包括:所述至少一个误码率中不满足误码率阈值的个数超过预设值,或者,所述至少一个误码率的累加和不满足预设值。The statistical value of the at least one bit error indicator corresponding to the at least one bit error link does not meet the preset condition, including: the number of the at least one bit error rate that does not meet the bit error rate threshold exceeds the preset value, or, The accumulated sum of the at least one bit error rate does not meet the preset value.
  6. 根据权利要求1至5任一所述的方法,其特征在于,所述第一转发路径和所述第二转发路径属于同一数据隧道,或者所述第一转发路径和所述第二转发路径属于不同数据隧道。The method according to any one of claims 1 to 5, wherein the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to Different data tunnels.
  7. 根据权利要求1至6任一所述的方法,其特征在于,在将所述第一转发路径切换为第二转发路径之前,所述方法还包括:The method according to any one of claims 1 to 6, wherein before switching the first forwarding path to the second forwarding path, the method further comprises:
    计算所述第二转发路径。The second forwarding path is calculated.
  8. 根据权利要求6所述的方法,其特征在于,所述第一转发路径属于第一数据隧道,所述第二转发路径属于第二数据隧道,在将所述第一转发路径切换为第二转发路径之前,所述方法还包括:The method according to claim 6, wherein the first forwarding path belongs to a first data tunnel, the second forwarding path belongs to a second data tunnel, and the first forwarding path is switched to the second forwarding Before the path, the method further includes:
    向控制器发送用于请求切换所述第一数据隧道的切换请求消息;sending a handover request message for requesting handover of the first data tunnel to the controller;
    从所述控制器接收切换响应消息,所述切换响应消息用于指示使用所述第二数据隧道转发所述数据;receiving a handover response message from the controller, the handover response message being used to indicate that the data is to be forwarded using the second data tunnel;
    所述将所述第一转发路径切换为第二转发路径,包括:The switching of the first forwarding path to the second forwarding path includes:
    将所述第一转发路径切换为所述第二数据隧道中的所述第二转发路径以转发所述数据。Switching the first forwarding path to the second forwarding path in the second data tunnel to forward the data.
  9. 根据权利要求8所述的方法,其特征在于,所述请求消息为边界网关协议BGP消息。The method according to claim 8, wherein the request message is a Border Gateway Protocol (BGP) message.
  10. 根据权利要求1至9任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 9, wherein the method further comprises:
    根据所述第一转发路径的误码指标不符合预设条件,向控制器发送误码消息,所述误码消息用于通告与所述第一转发路径关联的误码信息。According to the code error indicator of the first forwarding path not meeting the preset condition, a code error message is sent to the controller, where the code error message is used to announce the code error information associated with the first forwarding path.
  11. 根据权利要求1至10任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 10, wherein the method further comprises:
    获取允许调整的一条或多条路径的路径指示,所述一条或多条路径包括:与所述第一转发路径不同的至少一条路径;Obtaining a path indication of one or more paths that allow adjustment, the one or more paths include: at least one path different from the first forwarding path;
    所述将所述第一转发路径切换为第二转发路径,包括:The switching of the first forwarding path to the second forwarding path includes:
    根据所述路径指示从与所述第一转发路径不同的所述至少一条路径中确定所述第二转发路径,并将所述第一转发路径切换至所述第二转发路径;Determine the second forwarding path from the at least one path different from the first forwarding path according to the path indication, and switch the first forwarding path to the second forwarding path;
    或者,降低数据在所述第一转发路径上的传输比例,包括:Or, reducing the proportion of data transmission on the first forwarding path, including:
    根据所述路径指示从与所述第一转发路径不同的所述至少一条路径中确定第三转发路径,降低所述数据在所述第一转发路径上的传输比例,并提高所述数据在所述第三转发路径上的传输比例。A third forwarding path is determined from the at least one path different from the first forwarding path according to the path indication, the transmission ratio of the data on the first forwarding path is reduced, and the data on the first forwarding path is increased. Describe the transmission ratio on the third forwarding path.
  12. 根据权利要求1至11任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 11, wherein the method further comprises:
    获取允许调整的一条或多条路径的路径指示;Get a path indication of one or more paths that are allowed to adjust;
    所述将所述第一转发路径切换为第二转发路径,包括:The switching of the first forwarding path to the second forwarding path includes:
    根据所述允许调整的一条或多条路径包括所述第一转发路径,将所述第一转发路径切换为第二转发路径;According to the one or more paths that are allowed to be adjusted, including the first forwarding path, switch the first forwarding path to a second forwarding path;
    或者,降低数据在所述第一转发路径上的传输比例,包括:Or, reducing the proportion of data transmission on the first forwarding path, including:
    根据所述允许调整的一条或多条路径包括所述第一转发路径,降低数据在所述第一转发路径上的传输比例。The one or more paths adjusted according to the permission include the first forwarding path, and the transmission ratio of data on the first forwarding path is reduced.
  13. 根据权利要求11或12所述的方法,其特征在于,所述路径指示携带在控制器发送至所述转发节点的边界网关协议BGP消息或路径计算单元通信协议PCEP消息中。The method according to claim 11 or 12, wherein the path indication is carried in a Border Gateway Protocol BGP message or a Path Computation Element Communication Protocol PCEP message sent by the controller to the forwarding node.
  14. 根据权利要求1至13任一所述的方法,其特征在于,所述第一转发路径和所述第二转发路径的头节点为所述转发节点,所述第一转发路径和所述第二转发路径的尾节点相同。The method according to any one of claims 1 to 13, wherein the head nodes of the first forwarding path and the second forwarding path are the forwarding nodes, and the first forwarding path and the second forwarding path are the head nodes of the forwarding node. The tail nodes of the forwarding path are the same.
  15. 根据权利要求14所述的方法,其特征在于,所述第一转发路径属于基于第六版互联 网协议的段路由策略SRv6 policy或段路由流量工程策略SR-TE policy中的路径,The method according to claim 14, wherein the first forwarding path belongs to the path in the segment routing policy SRv6 policy or the segment routing traffic engineering policy SR-TE policy based on the sixth version of the Internet Protocol,
    所述将第一转发路径切换为第二转发路径,包括:将所述第一转发路径切换为所述SRv6 policy或者所述SR-TE policy中的所述第二转发路径,其中,所述第一转发路径和所述第二转发路径为所述SRv6 policy或者所述SR-TE policy中的不同候选路径,或者由所述SRv6 policy或者所述SR-TE policy中同一候选路径中的不同段路由列表segment list指示;或者,The switching the first forwarding path to the second forwarding path includes: switching the first forwarding path to the second forwarding path in the SRv6 policy or the SR-TE policy, wherein the first forwarding path is A forwarding path and the second forwarding path are different candidate paths in the SRv6 policy or the SR-TE policy, or routed by different segments in the same candidate path in the SRv6 policy or the SR-TE policy list segment list indication; or,
    所述降低数据在所述第一转发路径上的传输比例,包括:降低数据在所述第一转发路径上的传输比例,并提高与所述第一转发路径属于同一候选路径,并由其他segment list指示的一条或多条路径上对所述数据的传输比例。The reducing the transmission ratio of data on the first forwarding path includes: reducing the transmission ratio of data on the first forwarding path, and increasing the candidate path that belongs to the same candidate path as the first forwarding path and is replaced by other segments. The proportion of the data transmitted on one or more paths indicated by list.
  16. 根据权利要求1至15任一所述的方法,其特征在于,The method according to any one of claims 1 to 15, wherein,
    在将所述第一转发路径切换为第二转发路径之后,所述方法还包括:根据所述第一转发路径的误码指标符合预设条件,将所述第二转发路径切换回所述第一转发路径;或者,After switching the first forwarding path to the second forwarding path, the method further includes: switching the second forwarding path back to the first forwarding path according to the error indicator of the first forwarding path meeting a preset condition a forwarding path; or,
    在降低数据在所述第一转发路径上的传输比例之后,所述方法还包括:根据所述第一转发路径的误码指标符合预设条件,恢复所述数据在第一转发路径上的传输比例。After reducing the transmission ratio of the data on the first forwarding path, the method further includes: according to the bit error indicator of the first forwarding path meeting a preset condition, restoring the transmission of the data on the first forwarding path Proportion.
  17. 一种路径调整方法,其特征在于,所述方法由控制器执行,所述方法包括:A path adjustment method, characterized in that the method is executed by a controller, and the method includes:
    向转发节点发送指示消息,所述指示消息用于指示所述转发节点确定使用第一转发路径转发数据;sending an indication message to the forwarding node, where the indication message is used to instruct the forwarding node to determine to use the first forwarding path to forward data;
    接收所述转发节点发送的误码消息,所述误码消息用于通告与所述第一转发路径关联的误码信息。A bit error message sent by the forwarding node is received, where the bit error message is used to announce bit error information associated with the first forwarding path.
  18. 根据权利要求17所述的方法,其特征在于,所述方法还包括:The method of claim 17, wherein the method further comprises:
    接收所述转发节点发送的切换请求消息;receiving a handover request message sent by the forwarding node;
    根据所述切换请求消息向所述转发节点发送切换响应消息,所述切换响应消息用于指示所述转发节点确定使用第二转发路径转发所述数据,所述第二转发路径为所述转发节点切换所述第一转发路径后确定使用的转发路径。Send a handover response message to the forwarding node according to the handover request message, where the handover response message is used to instruct the forwarding node to determine to use a second forwarding path to forward the data, and the second forwarding path is the forwarding node After switching the first forwarding path, the used forwarding path is determined.
  19. 根据权利要求18所述的方法,其特征在于,所述切换请求消息为边界网关协议BGP消息。The method according to claim 18, wherein the handover request message is a Border Gateway Protocol (BGP) message.
  20. 根据权利要求17至19任一所述的方法,其特征在于,所述第一转发路径和第二转发路径属于同一数据隧道,或者,所述第一转发路径和所述第二转发路径属于不同数据隧道;所述第二转发路径为所述转发节点切换所述第一转发路径后确定使用的转发路径。The method according to any one of claims 17 to 19, wherein the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different A data tunnel; the second forwarding path is a forwarding path determined to be used by the forwarding node after switching the first forwarding path.
  21. 根据权利要求17至20任一所述的方法,其特征在于,所述方法包括:向所述转发节点发送允许调整的一条或多条路径的路径指示,以指示所述转发节点根据所述路径指示进行路径调整。The method according to any one of claims 17 to 20, wherein the method comprises: sending a path indication of one or more paths that are allowed to be adjusted to the forwarding node, so as to instruct the forwarding node to follow the path Indicates a path adjustment.
  22. 根据权利要求21所述的方法,其特征在于,所述路径指示携带在所述指示消息中。The method according to claim 21, wherein the path indication is carried in the indication message.
  23. 一种通信系统,其特征在于,所述通信系统包括:控制器和转发节点;A communication system, characterized in that the communication system comprises: a controller and a forwarding node;
    所述控制器用于:向所述转发节点发送路径指示消息;The controller is configured to: send a path indication message to the forwarding node;
    所述转发节点用于:在根据所述消息确定使用第一转发路径转发数据之后,根据所述第一转发路径的误码指标不符合预设条件,将所述第一转发路径切换为第二转发路径,或者,降低数据在所述第一转发路径上的传输比例,其中,所述转发节点为所述第一转发路径上的节点。The forwarding node is configured to: after determining to use the first forwarding path to forward data according to the message, switch the first forwarding path to the second forwarding path according to that the bit error indicator of the first forwarding path does not meet a preset condition A forwarding path, or reducing the proportion of data transmission on the first forwarding path, where the forwarding node is a node on the first forwarding path.
  24. 根据权利要求23所述的通信系统,其特征在于,所述第一转发路径包括至少一条误码链路,所述误码链路为存在误码的链路,所述第二转发路径不包括所述至少一条误码链路中的一条或多条。The communication system according to claim 23, wherein the first forwarding path includes at least one error link, the error link is a link with an error, and the second forwarding path does not include one or more of the at least one error link.
  25. 根据权利要求23或24所述的通信系统,其特征在于,所述第一转发路径和所述第二转发路径属于同一数据隧道,或者所述第一转发路径和所述第二转发路径属于不同数据隧道。The communication system according to claim 23 or 24, wherein the first forwarding path and the second forwarding path belong to the same data tunnel, or the first forwarding path and the second forwarding path belong to different data tunnel.
  26. 根据权利要求23至25任一所述的通信系统,其特征在于,所述转发节点还用于:计算所述第二转发路径。The communication system according to any one of claims 23 to 25, wherein the forwarding node is further configured to: calculate the second forwarding path.
  27. 一种网络设备,其特征在于,所述网络设备包括:处理器和存储器,所述存储器中存储有程序;A network device, characterized in that the network device comprises: a processor and a memory, and a program is stored in the memory;
    所述处理器用于调用所述存储器中存储的程序,以使得所述网络设备执行如权利要求1至16任一项所述的路径调整方法;The processor is configured to call a program stored in the memory, so that the network device executes the path adjustment method according to any one of claims 1 to 16;
    或者,所述处理器用于调用所述存储器中存储的程序,以使得所述网络设备执行如权利要求17至22任一项所述的路径调整方法。Alternatively, the processor is configured to call a program stored in the memory, so that the network device executes the path adjustment method according to any one of claims 17 to 22.
  28. 一种计算机存储介质,其特征在于,所述存储介质内存储有计算机程序,所述计算机程序用于执行权利要求1至16任一项所述的路径调整方法,或者,所述计算机程序用于执行权利要求17至22任一项所述的路径调整方法。A computer storage medium, wherein a computer program is stored in the storage medium, and the computer program is used to execute the path adjustment method according to any one of claims 1 to 16, or the computer program is used to The path adjustment method described in any one of claims 17 to 22 is executed.
  29. 一种计算机程序产品,其特征在于,当所述计算机程序产品在路径调整装置上运行时,使得所述路径调整装置执行权利要求1至16任一项所述的路径调整方法;或者,当所述计算机程序产品在路径调整装置上运行时,使得所述路径调整装置执行权利要求17至22任一项所述的路径调整方法。A computer program product, characterized in that, when the computer program product runs on a path adjustment device, the path adjustment device is made to execute the path adjustment method of any one of claims 1 to 16; When the computer program product runs on the path adjustment device, the path adjustment device causes the path adjustment device to execute the path adjustment method of any one of claims 17 to 22.
PCT/CN2021/133374 2020-12-03 2021-11-26 Path adjustment method and apparatus, and communication system WO2022116896A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011412529.6 2020-12-03
CN202011412529.6A CN114666261A (en) 2020-12-03 2020-12-03 Path adjusting method and device and communication system

Publications (1)

Publication Number Publication Date
WO2022116896A1 true WO2022116896A1 (en) 2022-06-09

Family

ID=81853843

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133374 WO2022116896A1 (en) 2020-12-03 2021-11-26 Path adjustment method and apparatus, and communication system

Country Status (2)

Country Link
CN (1) CN114666261A (en)
WO (1) WO2022116896A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105765909A (en) * 2013-06-27 2016-07-13 华为技术有限公司 Link switching method and device
US10038494B1 (en) * 2017-02-02 2018-07-31 Infinera Corporation Proactive multi-layer mechanisms to protect packet-optical transport networks
CN111131065A (en) * 2019-12-19 2020-05-08 苏州浪潮智能科技有限公司 Method and equipment for optimizing forwarding path quality under load balance

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008211567A (en) * 2007-02-27 2008-09-11 Nec Corp Traffic route changing method and system
CN102036129B (en) * 2009-09-29 2013-06-05 中兴通讯股份有限公司 Method and system for protecting path based on PCE (Patch Computation Element)
CN104104601A (en) * 2013-04-01 2014-10-15 华为技术有限公司 Data transmission method, device and system
US10454822B2 (en) * 2017-07-27 2019-10-22 Cisco Technology, Inc. Full-path validation in segment routing
CN109150761B (en) * 2018-10-24 2022-03-22 新华三技术有限公司 Tunnel switching method and device
CN112118180A (en) * 2018-12-29 2020-12-22 华为技术有限公司 Method, device and system for planning path
CN111901181B (en) * 2019-05-05 2023-07-28 中兴通讯股份有限公司 Processing method for error rate detection and related equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105765909A (en) * 2013-06-27 2016-07-13 华为技术有限公司 Link switching method and device
US10038494B1 (en) * 2017-02-02 2018-07-31 Infinera Corporation Proactive multi-layer mechanisms to protect packet-optical transport networks
CN111131065A (en) * 2019-12-19 2020-05-08 苏州浪潮智能科技有限公司 Method and equipment for optimizing forwarding path quality under load balance

Also Published As

Publication number Publication date
CN114666261A (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CA2882535C (en) Control device discovery in networks having separate control and forwarding devices
US7471669B1 (en) Routing of protocol data units within a communication network
JP5934724B2 (en) MPLS fast rerouting using LDP (LDP-FRR)
CN114615198A (en) Interior gateway protocol flooding minimization
EP2781065B1 (en) Technique for network routing
CN112448885B (en) Method and equipment for transmitting service message
JP2023541070A (en) Enhanced SD-WAN path quality measurement and selection
US20160142319A1 (en) Dynamic bandwidth adjustment in packet transport network
JP2004533142A (en) Reuse of bandwidth reservation in protection and restoration techniques for dynamically allocated rings
CN103597778A (en) Enhanced stream reservation protocol for audio video networks
US9160673B1 (en) Link selection in a bonding protocol
JP2013510459A (en) Separate path computation algorithm
EP2689563B1 (en) Use of sub path maintenance elements (spmes) for multiprotocol label switching (mpls) shared mesh protection
US20140219090A1 (en) Network congestion remediation utilizing loop free alternate load sharing
CN110890994A (en) Method, device and system for determining message forwarding path
US20230231798A1 (en) Conditional routing delivery in a compromised network
CN109088822B (en) Data flow forwarding method, device, system, computer equipment and storage medium
CN109691031B (en) Service message transmission method and node equipment
Lei et al. Multipath routing in SDN-based data center networks
WO2022057810A1 (en) Service packet forwarding method, sr policy sending method, device, and system
Wang et al. Reliability as an interdomain service
CN109644122B (en) Resource sharing method, network node and related equipment
WO2022116896A1 (en) Path adjustment method and apparatus, and communication system
JPWO2005117365A1 (en) Communication control device and communication control method
CN113691446B (en) Method and device for sending message

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21899928

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21899928

Country of ref document: EP

Kind code of ref document: A1