WO2022110948A1 - Path weight allocation method and device - Google Patents

Path weight allocation method and device Download PDF

Info

Publication number
WO2022110948A1
WO2022110948A1 PCT/CN2021/115465 CN2021115465W WO2022110948A1 WO 2022110948 A1 WO2022110948 A1 WO 2022110948A1 CN 2021115465 W CN2021115465 W CN 2021115465W WO 2022110948 A1 WO2022110948 A1 WO 2022110948A1
Authority
WO
WIPO (PCT)
Prior art keywords
transmission
forwarding path
weight
forwarding
indicator
Prior art date
Application number
PCT/CN2021/115465
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 WO2022110948A1 publication Critical patent/WO2022110948A1/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/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
    • 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/121Shortest path evaluation by minimising delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based 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/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a method and device for assigning path weights.
  • the control node determines the forwarding node in the forwarding network that is used to receive the data stream from the user side as the ingress node of the service, and uses the forwarding network to send the data stream to the user side.
  • the forwarding node is determined as the egress node of the service.
  • the control node may also allocate segment routing (SR)-multiprotocol label switching (MPLS) traffic engineering (TE) for the service based on the positions of the ingress node and the egress node in the forwarding network.
  • SR segment routing
  • MPLS multiprotocol label switching
  • TE traffic engineering
  • each candidate path includes at least one sub-path
  • SR-MPLS TE Policy Specifically, it includes the priority of multiple candidate paths, the weight of each subpath in each candidate path, and the segment list identity (ID) of the segment list of each subpath, wherein the priority among the multiple candidate paths is the highest.
  • the candidate path is the primary candidate path, and the other candidate paths are backup paths.
  • the control node can deliver the SR-MPLS TE Policy to the ingress node. After the ingress node receives the data flow of the service from a user side, the ingress node passes the primary candidate path indicated by the SR-MPLS TE Policy. , and transmit the received data stream to the egress node, so that the egress node outputs the data stream to another user side.
  • the control node updates the priority of each candidate path in the SR-MPLS TE Policy, and updates the current main candidate path as The candidate path is selected, and the updated SR-MPLS TE Policy is delivered to the ingress node, and the ingress node transmits the data stream based on the main candidate path in the updated SR-MPLS TE Policy.
  • SLA service-level agreement
  • control node When the scale of the forwarding network is large, the control node provides more control services. If the control node also provides the service of updating the SR-MPLS TE Policy for each service, the calculation overhead of the control node will be further increased.
  • the embodiments of the present application provide a method and device for allocating path weights, which can reduce the computational overhead of a control node.
  • the technical solution is as follows:
  • a method for assigning path weights is provided, which is applied to an entry node, and the method includes:
  • Acquire transmission characteristics of the first forwarding path based on the transmission characteristics of the first forwarding path, assign a first target weight to the first forwarding path, where the first target weight is used to represent the load of the first forwarding path share status.
  • the transmission characteristic of the first forwarding path is used to indicate the transmission characteristic of the first forwarding path when transmitting the SR-based message.
  • the transmission characteristic is an indicator value related to a drive test event (cause), or an indicator value related to an SLA, such as at least one of transmission delay, delay jitter value, and packet loss rate.
  • the weight is allocated to each forwarding path through the entry node, and the control node does not need to allocate the weight to each forwarding path, thereby saving the calculation overhead of the control node.
  • the transmission characteristic includes index values of N types of transmission indexes, where N is an integer greater than or equal to 1, and any transmission index is used to represent a transmission performance index.
  • the assigning the first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path includes:
  • the i-th weight is used to represent the i-th transmission indicator pair
  • the i is an integer greater than or equal to 1 and less than or equal to N;
  • the first target weight is obtained based on a weight corresponding to each of the N types of transmission indicators and an indicator value of each of the transmission indicators.
  • the assigning the first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path includes:
  • the i-th weight is assigned to the indicator value of the i-th transmission indicator of the first forwarding path, and the i-th weight of the indicator value of the i-th transmission indicator is It is used to indicate the pros and cons of the first forwarding path relative to the k forwarding paths under the i-th transmission index, where i is an integer greater than or equal to 1 and less than or equal to N, and k is greater than or equal to 1 the integer;
  • the first target weight is determined based on the weight of the index value of each transmission index of the first forwarding path in the N kinds of transmission indexes.
  • the assigning the i-th weight to the indicator value of the i-th transmission indicator of the first forwarding path includes:
  • the i-th weight of the index value of the i-th transmission index of the first forwarding path is obtained.
  • the assigning the first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path includes:
  • the weight corresponding to any one of the transmission indicators is used to represent the importance of the any one of the transmission indicators to the target service
  • the weight of the indicator value of the any one of the transmission indicators of the first forwarding path is used to represent the The degree of pros and cons of the first forwarding path relative to the k forwarding paths under any of the transmission indicators, where k is an integer greater than or equal to 1.
  • the first forwarding path belongs to a first candidate forwarding path; the method further includes:
  • the i-th transmission indicator For the i-th transmission indicator among the N types of transmission indicators, based on the indicator value of the i-th transmission indicator of the first forwarding path, assign the i-th transmission indicator to the first forwarding path
  • the second target weight of the first forwarding path under the i-th transmission indicator is used to indicate that the first forwarding path is relative to m candidates under the i-th transmission indicator
  • the pros and cons of each forwarding path in the path the i is an integer greater than or equal to 1 and less than or equal to N, and the m is an integer greater than or equal to 1;
  • the third target weight of the first candidate forwarding path is determined based on the second target weight of the first forwarding path relative to the m candidate paths under each of the N kinds of transmission metrics, and the The third target weight is used to indicate the priority of the first candidate forwarding path among the m candidate forwarding paths.
  • the method before allocating a first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path, the method further includes:
  • the first forwarding path Based on the transmission characteristics of the first forwarding path, it is determined that the first forwarding path satisfies the SLA of the target service.
  • obtaining the transmission characteristics of the first forwarding path includes at least one of the following:
  • the transmission characteristic includes a transmission time delay
  • the time length for transmitting a test packet to the egress node through the first forwarding path is determined as the transmission delay
  • the transmission characteristic includes a transmission jitter value
  • the packet loss rate is determined based on the number of target transmissions and the number of target receptions, and the target number of transmissions is within a time window, and the entry node passes the A forwarding path sends the total number of the test packets to the egress node, and the target received number is the number of the test packets received by the egress node through the first forwarding path within the time window by the ingress node The total number of the test packets sent.
  • the test packet includes the segment list identifier of the first forwarding path, the candidate identifier of the first forwarding path, the sending time of the test packet sent by the ingress node, the at least one of the identifiers of the time window.
  • the test packet is a seamless bidirection forwarding detection (SBFD) packet, a two-way active measurement pootocol (TWAMP) packet, or a path-by-path detection. (in-situ information telemetry, iFIT) message.
  • SBFD seamless bidirection forwarding detection
  • TWAMP two-way active measurement pootocol
  • iFIT in-situ information telemetry
  • a path weight allocation apparatus for executing the above path weight allocation method.
  • the path weight assignment device includes a functional module for executing the path weight assignment method provided in the first aspect or any optional manner of the first aspect.
  • a third aspect provides a network device, the network device includes a processor and a memory, the memory stores at least one piece of program code, the program code is loaded and executed by the processor to implement the first aspect or the first aspect as described above The operations performed by the methods provided in the various alternative implementations of .
  • a computer-readable storage medium is provided, and at least one piece of program code is stored in the storage medium, and the program code is loaded and executed by a processor to implement the operations performed by the above path weight allocation method.
  • a computer program product or computer program includes program code
  • the program code is stored in a computer-readable storage medium
  • the processor of the network device reads from the computer-readable storage medium. Taking the program code, the processor executes the program code, so that the computer device executes the method provided in the first aspect or various optional implementation manners of the first aspect.
  • a system in a sixth aspect, includes the path weight distribution apparatus provided in the second aspect or any optional manner of the second aspect, or includes the third aspect or any optional manner of the third aspect provided network equipment.
  • solutions provided in the second aspect to the fifth aspect can be used to implement the path weight allocation method provided in the first aspect or any optional manner of the first aspect. Any optional manner of the aspect achieves the same beneficial effect, which will not be repeated here.
  • FIG. 1 is a schematic diagram of a network scenario provided by an embodiment of the present application.
  • FIG. 2 is a flowchart of a method for assigning path weights provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of an encapsulation format of a test message provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a path weight allocation device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a network scenario provided by an embodiment of the present application.
  • the network 100 includes multiple forwarding nodes 101 .
  • the plurality of forwarding nodes 101 can be divided into ingress nodes 1011 , interior nodes 1012 and egress nodes 1013 according to their positions or functions in the network 100 .
  • the ingress node 1011 is an edge device of the network 100 and is connected to a customer edge (CE) device.
  • CE customer edge
  • the ingress node 1011 is used to receive data streams from the user side and pass the received data streams through the network 100.
  • the forwarding path is sent to the egress node 1013 , and the egress node 1013 forwards the data flow received from the forwarding path to another user side, so as to output the data flow to the network 100 .
  • a forwarding path includes multiple forwarding nodes 101, the entry node 1011 is the first forwarding node of the forwarding path, that is, the source node; the exit node 1013 is the last forwarding node of the forwarding path, that is, the tail node ; Other nodes on the forwarding path except the ingress node 1011 and the egress node 1013 are all intermediate nodes 1012 , and the intermediate nodes 1012 are used to forward data streams to other forwarding nodes 101 .
  • the ingress node 1011 and the egress node 1013 are provider edge (PE) devices.
  • PE1 and PE2 are the ingress nodes 1011, both connected to CE1
  • PE3 and PE4 are egress nodes 1013, both connected to CE2 PE1 receives the data stream sent by CE1, and transmits the received data stream to PE3 through the forwarding path between PE1 and PE3, and then PE3 forwards the received data stream to CE2, thereby realizing the data stream output from CE1. Sent to CE2.
  • the entry node 1011 is also used to obtain the SRPolicy (such as the SR-MPLS TE Policy) of the service corresponding to the data stream before forwarding the data stream, and then determine the candidate path with the highest priority indicated by the SR Policy.
  • the SRPolicy such as the SR-MPLS TE Policy
  • the ingress node 1011 and based on the weight of each sub-path in the main candidate path, the weight of a sub-path is used to represent the load sharing state of the sub-path.
  • the data stream is distributed and transmitted on each sub-path in the main candidate path, so that each sub-path can share the load, the data stream transmitted on each sub-path is converged at the egress node 1103 and forwarded out of the network by the egress node 1103 100.
  • the main candidate path includes 2 sub-paths 1 and 2, the weight of sub-path 1 is 0.3, the weight of sub-path 2 is 0.7, the ingress node 1011 transmits 30% of the data in the received data stream to the egress through sub-path 1 Node 1013, the ingress node 1011 transmits 70% of the data in the received data stream to the egress node 1013 through sub-path 2.
  • the entry node 1011 is further configured to, after acquiring the SRPolicy, acquire the transmission characteristic of each subpath in each candidate path indicated by the SRPolicy, and update the weight of each subpath according to the transmission characteristic of each subpath, thereby avoiding control node to update the weight of each sub-path in the SRPolicy to reduce the computational cost of the control node.
  • the entry node 1011 when updating the weight of each sub-path according to the transmission characteristics of each sub-path in a candidate path, the entry node 1011 takes the SLA of the service as a condition, and the transmission characteristics of the candidate path do not meet the SLA The entry node 1011 resets the weight of the sub-path to 0, so as to avoid the subsequent transmission of the data flow of the service on the sub-path. For the target sub-path whose transmission characteristics satisfy the SLA in the candidate path, the entry node 1011 updates the weight of the target sub-path according to the transmission characteristics of the target sub-path.
  • each target sub-path of a path transmits a data stream, it can not only ensure that the transmission characteristics of the data stream meet the SLA, but also ensure that the data stream is transmitted on each target sub-path in an optimal split manner.
  • the entry node 1011 only updates the weight of the sub-paths in the primary candidate path indicated by SRPolicy, but does not update the weight of the sub-paths in the backup path indicated by SRPolicy, when each sub-path in the primary candidate path
  • the ingress node 1011 requests the control node to re-issue the SRPolicy.
  • the entry node 1011 can also update the priority of each candidate path based on the weight of each subpath in each candidate path , to re-determine the new primary candidate path.
  • the candidate forwarding path and the sub-paths of the candidate forwarding path in the embodiment of the present application are both forwarding paths composed of multiple forwarding nodes.
  • the candidate forwarding path is a forwarding path, or in other words, a candidate forwarding path in SRPolicy corresponds to only one segment list, and a forwarding path indicated by the segment list is also That is, the candidate forwarding path.
  • the candidate forwarding path is a mesh forwarding path composed of multiple sub-paths, each sub-path is a branch of the mesh forwarding path, and each branch takes the ingress node as each branch
  • the first forwarding node of each branch takes the exit node as the last forwarding node of each branch.
  • the fork node is a forwarding node that has a connection relationship with at least two forwarding nodes in the candidate forwarding path. For example, an exit node is connected to two intermediate nodes in the candidate forwarding path, and the exit node is a fork node.
  • a candidate forwarding path in SRPolicy corresponds to at least two segment lists, and a forwarding path indicated by each segment list in the at least two segment lists is a sub-path of the candidate forwarding path, and the at least two segment lists are The mesh forwarding path formed by the indicated at least two sub-paths is also a candidate forwarding path.
  • the egress node obtains the SRPolicy of the target service.
  • the target service is any service served by the forwarding network, such as video service, game service, and the like.
  • the SRPolicy is used to indicate m candidate forwarding paths for forwarding the data flow of the target service, where m is an integer greater than or equal to 1.
  • the SRPolicy is applied to segment routing (segment routing using Ipv6 data plane, SRv6) using the Internet Protocol version 6 (Internet protocol version 6, IPv6) data plane, or, applied to the data plane using the Internet Protocol version 4 segment routing using Ipv4 data plane (SRv4).
  • the SRPolicy includes a candidate identifier (candidate identity, candidate ID) of each candidate forwarding path in the m candidate forwarding paths, a fourth target weight of each candidate forwarding path, and segment list information of each candidate forwarding path.
  • the fourth target weight of a candidate forwarding path is used to indicate the priority of the candidate forwarding path among the m candidate forwarding paths, and the candidate forwarding path with the largest fourth target weight among the m candidate forwarding paths is the target service
  • the primary candidate path of the m candidate forwarding path that is, the candidate forwarding path with the highest priority, and the forwarding paths other than the primary candidate forwarding path among the m candidate forwarding paths are all candidate paths of the target service.
  • the segment list information of a candidate forwarding path includes segment list identifiers of the k segment lists and a fifth target weight of the k segment lists, where k is an integer greater than or equal to 1.
  • the segment list identifier of a segment list is used for the segment list, and the segment list is used to indicate a forwarding path.
  • the segment list includes address information of multiple forwarding nodes on the forwarding path, for example, the Internet protocol IP) address.
  • the fifth target weight of the segment list is the weight of the forwarding path indicated by the segment list, and is used to indicate the load sharing state of the forwarding path.
  • the forwarding path indicated by the segment list in the segment list information is also the candidate forwarding path; when the segment list information of the candidate forwarding path includes When the segment lists of multiple segment lists are identified, the forwarding paths indicated by each segment list in the segment list information are respectively a sub-path of the candidate forwarding path.
  • the entry node obtains the SR Policy from the control node.
  • the entry node does not need to obtain the SR Policy from the control node, but the entry node directly generates the SR Policy.
  • the ingress node determines, according to the location information of the destination device of the target service, an egress node in the forwarding network for forwarding the data flow to the destination device, and the ingress node is the ingress node and the egress node in the forwarding network.
  • At least one candidate forwarding path between them is respectively assigned a fourth target weight to indicate the priority of each candidate forwarding path, and a fifth target weight is assigned to each sub-path of each candidate forwarding path, the entry node is based on each The fourth target weight of each candidate forwarding path and the fifth target weight of each subpath in each candidate forwarding path are used to generate the SR Policy.
  • the target device is a user-side device used to receive the data stream of the target service forwarded by the forwarding network, optionally, the target device is a user-edge device connected to the egress node, or a user-edge device connected to the user-edge device connected terminal equipment.
  • the entry node determines a first forwarding path to be tested.
  • the entry node determines any sub-path in any candidate forwarding path among the m candidate forwarding paths indicated by the SR Policy as the first forwarding path.
  • the ingress node acquires the transmission characteristic of the first forwarding path, where the transmission characteristic of the first forwarding path is used to indicate the transmission characteristic of the first forwarding path when transmitting the SR-based message.
  • SR-based packets are packets transmitted by using segment routing, such as SRv6 packets and SRv4 packets.
  • the transmission feature includes index values of N types of transmission indexes, where N is an integer greater than or equal to 1, and any transmission index is used to represent a transmission performance index.
  • the transmission feature is an index value related to a drive test event, or an index value related to an SLA, such as at least one of transmission delay, delay jitter value, and packet loss rate.
  • the entry node detects the transmission characteristics of the first forwarding path based on a test packet, wherein the test packet is a seamless bidirection forwarding detection (SBFD) packet, a two-way active detection protocol (tow-way active detection protocol) measurement pootocol, TWAMP) message or in-situ information telemetry (iFIT) message.
  • SBFD seamless bidirection forwarding detection
  • TWAMP two-way active detection protocol
  • iFIT in-situ information telemetry
  • the process shown in this step 203 is implemented by at least one of the following steps 2031-2033.
  • Step 2031 When the transmission characteristic includes a transmission delay, the time duration for the ingress node to transmit a test packet to the egress node through the first forwarding path is determined as the transmission delay.
  • the ingress node Before executing this step 2031, the ingress node first obtains the duration of the transmission of the test packet to the egress node through the first forwarding path.
  • the process for the ingress node to acquire the duration of the transmission of the test packet to the egress node through the first forwarding path includes the following steps A-E.
  • Step A the entry node generates a test packet.
  • the test packet includes at least one of a segment list identifier of the first forwarding path, a candidate identifier of the first forwarding path, a sending time (senttime) of the test packet, and an identifier of a time window to which the sending time belongs.
  • the candidate identifier of the first forwarding path is the candidate identifier corresponding to the segment list identifier in the SR Policy, that is, the candidate identifier of the candidate forwarding path to which the first forwarding path belongs.
  • the sending time of the test packet is the time when the ingress node sends the test packet.
  • the ingress node tests the transmission characteristics of the first forwarding path in real time in a plurality of test cycles, each test cycle is also a time window, and the ingress node is in the time window of each test cycle, Send multiple test packets to the egress node through the first forwarding path, so as to test the transmission characteristics of the first forwarding path in real time through the multiple test packets.
  • the ingress node When the test packet is an SBFD packet or a TWAMP packet, for any packet in the SBFD packet and the TWAMP packet, the ingress node adds the first forwarding path in the extension field of the any packet The identifier of the segment list, the candidate identifier of the first forwarding path, the sending time of the test packet, and the identifier of the time window to which the sending time belongs to obtain the test packet.
  • the extension field includes a stain identification field, a candidate identification field, a segment list identification field, and a sending time field.
  • the dyeing identification field is used to store the identification of the time window to which the sending time belongs
  • the candidate identification field is used to store the candidate identification of the first forwarding path
  • the segment list identification field is used to store the segment list identification of the first forwarding path
  • the sending time field is used to store the sending time of the test packet.
  • the test packet further includes at least one of a reception time (receivetime) field and a reserved (reserved) field, wherein the reception time field is used to store the reception time when the ingress node receives the test packet, This reserved field is reserved so that information can be added later according to the application scenario.
  • the fields other than the extension field in any of the packets are the existing fields of the any of the packets.
  • the test packet is an SBFD packet
  • the existing fields of the SBFD packet include the version (Vers) field, the diagnostic word (diagnostic, Diag) field, the state (state, Sta) field, and the polling (poll, P) field , final (final, F) field, forwarding / control separation (controlplane independent, C) field, authentication identification (authenticationpresent, A) field, demand (demand, D) field, multipoint (multipoint, M) field, detection timeout multiple ( detectmult) field, length (length) field, local identifier (mydiscriminator) field, remote identifier (yourdiscriminator) field, required minimum transmit extended specification interval (desired minimumtransmit extended specification interval, desired min TXinterval) field (referred to as "all" Minimum required sending interval field”), required minimum receiving extended specification interval (requiredminimumreceiveextended specification interval, requiredminre
  • the Vers field is used to store the SBFD protocol version number;
  • the Diag field is used to store the diagnostic word to indicate the reason for the last session state transmission change of the local SBFD system;
  • the P field is used to store the P flag.
  • the P flag is set in the SBFD message, and the receiver must respond to the SBFD message;
  • the F field is used to store the F flag, and whether to respond to the response message with the P flag set is determined by the setting state of the F flag;
  • the C field is used to store C flag, once the C flag is set to 1, the service state change of the control plane does not affect SBFD detection;
  • the A field is used to store the authentication flag to indicate whether the session needs to be authenticated;
  • the D field is used to store the D flag to indicate whether the system wants to work In query mode;
  • the M field is a reserved bit for SBFD to support multi-point expansion in the future;
  • the detection timeout multiple stored in the detection timeout multiple field is used for the detection party to calculate the detection timeout time;
  • the required minimum sending interval field is used to store the locally supported minimum SBFD packet sending interval, in milliseconds
  • the required minimum receiving interval field is used to store the locally supported minimum SBFD packet receiving interval, in milliseconds
  • the required minimum echo packet receiving interval field is used to store the locally supported minimum echo packet receiving interval, in milliseconds.
  • test packet is an iFIT packet
  • the first forwarding path belongs to the primary candidate path
  • the ingress node is in any position of the data flow.
  • An iFIT header is added to a service packet, and the segment list identifier of the first forwarding path, the candidate identifier of the first forwarding path, the sending time of the test packet, and the time window to which the sending time belongs are added to the iFIT header. ID to get the test message.
  • the ingress node can test the first forwarding path in real time based on test packets whose packet types are SBFD packets or TWAMP packets. transfer characteristics. For example, before receiving the data flow, the ingress node tests the transmission characteristics of the first forwarding path in real time based on the test message whose message type is SBFD message or TWAMP message. For another example, the ingress node is in the process of forwarding the data flow. , and test the transmission characteristics of the first forwarding path in real time based on the test message whose message type is the SBFD message or the TWAMP message.
  • test packet whose packet type is iFIT packet is generated based on the service packets in the data flow. Therefore, the test packet must be sent along with the data flow, and the ingress node only transmits data on the main candidate path. Therefore, when the ingress node uses the service packet carrying the iFIT header as the test packet, it can only test the main candidate path in the process of forwarding the data flow.
  • Step B The ingress node sends the test packet to the egress node through the first forwarding path.
  • the entry node determines the next hop node of the entry node on the first forwarding path based on the segment list indicated by the segment list identifier of the first forwarding path; at the sending time of the test packet, the entry node sends the next hop to the entry node.
  • the one-hop node sends the test packet; for any intermediate node on the first forwarding path, after receiving the test packet from the previous hop node, the intermediate node identifies the test packet based on the segment list in the test packet. the indicated segment list, and send the test packet to the next hop node of any intermediate node on the first forwarding path.
  • Step C the exit node receives the test message.
  • the egress node receives the test packet from the previous hop node of the egress node on the first forwarding path.
  • Step D The egress node sends a response message of the test message to the ingress node.
  • the response message includes the segment list identifier of the first forwarding path, the candidate identifier of the first forwarding path, the sending time of the test packet, the identifier of the time window to which the sending time belongs, and the receiving time of the test packet,
  • the receiving time of the test packet is the time when the egress node receives the test packet.
  • the egress node obtains the segment list identifier of the first forwarding path, the candidate identifier of the first forwarding path, the sending time of the test packet, and the identifier of the time window to which the sending time belongs from the test packet, and converts the The reception time and the acquired segment list identifier of the first forwarding path, the candidate identifier of the first forwarding path, the sending time of the test packet, and the identifier of the time window to which the sending time belongs are encapsulated into a response packet.
  • the egress node adds the reception time in the reception time field of the test packet to obtain the response packet.
  • the egress node After the egress node acquires the response message, the egress node sends the response message to the ingress node.
  • the egress node outputs the response packet to the ingress node through the first forwarding path.
  • a control signal channel exists between the egress node and the ingress node, the egress node transmits the response message to the ingress node through the control signal channel, and the control signal channel is used to transmit the ingress node A control signal between a node and an exit node, wherein the response message is a type of control signal.
  • Step E after receiving the response message, the entry node obtains the difference between the receiving time of the test message in the response message and the sending time of the test message as the test message passing through the first forwarding The length of time for the route to travel to the exit node.
  • the ingress node After acquiring the duration, the ingress node uses the duration as the transmission delay of the first forwarding path at the current moment.
  • the transmission delay Delay is shown in the following formula, where t1 is the sending time of the test packet, and t2 is the receiving time of the test packet.
  • the ingress node If the ingress node sends multiple test packets to the egress node through the first forwarding path, the ingress node executes step 2031 each time it receives a response packet, so that the ingress node can obtain the first forwarding path The transmission delay at different times, therefore, the ingress node can test the transmission delay of the first forwarding path in real time by testing the packet.
  • Step 2032 When the transmission characteristic includes a transmission jitter value, the ingress node acquires the transmission jitter value based on the transmission delay determined by two adjacent test packets.
  • the two adjacent test packets are test packets corresponding to any two adjacent response packets received by the ingress node, or, two adjacent valid test packets, whether one test packet is valid Depends on whether the ingress node can receive the response message of the test message. If the entry node can receive the response packet of the test packet, the test packet is a valid test packet. If the entry node does not receive the response packet of the test packet, the test packet may be in the If it is lost during transmission, the test packet is an invalid test packet.
  • the ingress node sends test message 1, test message 2, and test message 3 to the egress node sequentially through the first forwarding path. If the ingress node receives the response message 1 of the test message 1, the The response packet 2 of the test packet 2 and the response packet 3 of the test packet 3, the test packets 1-3 are all valid test packets, wherein the test packet 1 and the test packet 2 are adjacent two. test packets, test packet 2 and test packet 3 are two adjacent test packets; if the entry node receives response packet 1 and response packet 3, but does not receive response packet 2, the test packet The message 2 is an invalid test message, and the test message 1 and the test message 3 are two adjacent test messages.
  • the ingress node performs the above step 2031 on both the adjacent two test packets, so that the ingress node can obtain the two transmission delays determined based on the two adjacent test packets, and the ingress node uses the two adjacent test packets to obtain the two transmission delays.
  • the absolute value of the difference between the transmission delays is determined as the delay jitter value of the first forwarding path at the current moment.
  • the delay jitter value Jitter is shown in the following formula, where Delay1 is the transmission delay determined based on the first test packet in the two adjacent test packets, and Delay2 is based on the two adjacent test packets. Transmission delay determined by the second test packet in the test packet.
  • Step 2033 when the transmission characteristic includes a packet loss rate, the ingress node determines the packet loss rate based on the number of target transmissions and the number of target receptions, and the target number of transmissions is within a time window, and the ingress node passes the The total number of the test packets sent by the first forwarding path to the egress node, and the target received number is the test packets received by the egress node and sent by the ingress node through the first forwarding path within the time window the total number of.
  • the ingress node sends a plurality of test packets to the egress node through the first forwarding path, and each test packet carries an identifier of the time window, and the ingress node counts the data of the plurality of test packets. The total number, get the number of the target sent.
  • the exit node Each time the exit node receives a test packet, it returns a response packet of the test packet to the entry node, and the response packet carries the identifier of the time window to which the sending time of the test packet belongs, then the entry node The total number of response packets carrying the identifier of the time window is counted to obtain the number of received packets by the target.
  • the entry node After obtaining the number of targets sent and received, the entry node determines the difference between the number of targets sent and the number of targets received as the number of lost targets, and the number of lost targets is the number of lost targets.
  • the loss rate Loss is shown in the following formula, where S1 is the number of target transmissions, and S2 is the number of target receptions.
  • the ingress node if the transmission characteristic includes a loss rate, the ingress node performs step 2033 in each time window, so that the ingress node can obtain the loss rate of the first forwarding path in each time window. In other embodiments, if the transmission characteristic does not include the loss rate, the ingress node does not perform this step 2033, and the test message and the response message do not need to carry the identifier of the time window.
  • the ingress node assigns a first target weight to the first forwarding path based on the transmission characteristic of the first forwarding path, where the first target weight of the forwarding path is used to indicate a load sharing state of the first forwarding path.
  • the transmission characteristics of the first forwarding path include index values of N types of transmission indicators, for example, the N types of transmission indicators include at least one of a delay index, a delay jitter index, and a packet loss index, and the transmission delay is the index value of the delay index , the delay jitter value is the index value of the delay jitter index, and the packet loss rate is the index value of the packet loss index.
  • the embodiments of the present application are described by taking the transmission characteristics including transmission delay, delay jitter value, and packet loss ratio as an example.
  • the ingress node first assigns a weight to each transmission index, and then assigns a first target weight to the first forwarding path based on the weight corresponding to each transmission index.
  • this step 204 is implemented by the processes shown in the following steps 2041-2042.
  • Step 2041 Based on the SLA of the target service, the ingress node allocates the i-th weight to the i-th transmission indicator in the N-type transmission indicators, and the i-th weight of the i-th transmission indicator is used to represent the i-th transmission indicator pair The importance of the target service, where i is an integer greater than or equal to 1 and less than or equal to N.
  • the i-th weight of the i-th transmission indicator is also the weight corresponding to the i-th transmission indicator.
  • the SLA of the target service requires different priorities for different transmission indicators, and the priority of one transmission indicator is used to indicate that the SLA requires the forwarding path to satisfy the priority of the transmission indicator.
  • the forwarding path first meets the SLA requirements for high-priority transmission indicators, and then satisfies the SLA requirements for low-priority transmission indicators.
  • the ingress node assigns different weights to each transmission indicator based on the priorities of the N types of transmission indicators specified by the SLA, and the change trend of the priorities of the N types of transmission indicators is proportional to the weights corresponding to the N types of transmission indicators.
  • the change trend is the same. For example, if the change trend of the priority of the N kinds of transmission indicators is gradually increasing, the change trend of the N weights corresponding to the N kinds of transmission indicators is also gradually increased. If the priority of the N kinds of transmission indicators The change trend of the level is gradually reduced, and the change trend of the N weights corresponding to the N kinds of transmission indicators is also gradually reduced.
  • the delay index is at the first priority
  • the delay jitter index is at the second priority
  • the packet loss index is at the third priority, where the first priority is higher than the second priority, and the second priority is higher than
  • the weights assigned by the entry node to the delay index, delay jitter index, and packet loss index are 0.6, 0.3, and 0.1, respectively.
  • Step 2042 The ingress node obtains the first target weight of the first forwarding path based on the weight corresponding to each of the N types of transmission indicators and the index value of each of the transmission indicators.
  • the ingress node obtains the i-th weight corresponding to the indicator value of the i-th transmission indicator in the transmission feature, and the indicator of the i-th transmission indicator of the first forwarding path
  • the i-th weight corresponding to the value is used to indicate the degree of pros and cons of the first forwarding path under the j-th transmission index, where i is an integer greater than or equal to 1 and less than or equal to N.
  • the manner in which the entry node obtains the i th weight corresponding to the index value of the i th transmission index in the transmission characteristic includes the following manners 1 and 2.
  • Manner 1 The ingress node determines the weight corresponding to the index interval to which the index value of the i-th transmission index of the first forwarding path belongs to the i-th weight corresponding to the index value of the i-th transmission index.
  • the entry node sets a plurality of indicator intervals for the i-th transmission indicator, each indicator interval includes a plurality of indicator values, and each indicator interval corresponds to a weight.
  • each indicator interval includes a plurality of indicator values
  • each indicator interval corresponds to a weight.
  • the i-th transmission indicator is a delay indicator
  • the multiple indicator intervals under the delay indicator include a delay indicator interval 1 [0, 20ms], a delay indicator interval 2 (20ms, 1000us], and a delay indicator interval 3 ( 1000ms, ⁇ ), the weight corresponding to the delay indicator interval 1 is 0.5, the weight corresponding to the delay indicator interval 2 is 0.2, and the weight corresponding to the delay indicator interval 3 is 0.3.
  • the entry node sets an index threshold for the i-th transmission index, and if the minimum index value in any index interval under the i-th transmission index is greater than the index threshold, the entry node sets the index threshold for the i-th transmission index.
  • the weight corresponding to any indicator interval is set to 0.
  • the indicator threshold of the i-th transmission indicator is specified by the SLA.
  • the indicator threshold of the i-th transmission indicator may be different under different actual network environments, and the embodiment of the present application does not specifically limit the indicator threshold set by the ingress node for the i-th transmission indicator. .
  • Mode 2 For the index value of the ith transmission index in the transmission feature, the entry node determines the ratio of the index threshold of the ith transmission index to the index value as the ith weight corresponding to the index value.
  • the entry node After the entry node obtains the weight corresponding to the index value of each transmission index in the transmission characteristics of the first forwarding path, the entry node corresponds to the weight corresponding to the index value of each transmission index among the N types of transmission index ,
  • the weight corresponding to each kind of transmission index is input into the following formula, and the first target weight W x of the first forwarding path is calculated and obtained, wherein, w i is the i-th weight corresponding to the i-th transmission index in the N kinds of transmission indicators , w 0, i is the ith weight corresponding to the index value of the ith transmission index in the transmission characteristics of the first forwarding path.
  • the ingress node does not need to determine the first target weight of the first forwarding path based on the weight corresponding to each transmission index, but directly determines the value of each index in the transmission characteristic to determine the first target weight.
  • the first target weight of the first forwarding path is implemented by the process shown in the following steps 204A-204B.
  • Step 204A For the i-th transmission indicator among the N transmission indicators, assign the i-th weight to the indicator value of the i-th transmission indicator of the first forwarding path, and the i-th weight of the indicator value of the i-th transmission indicator It is used to indicate the pros and cons of the first forwarding path relative to the k forwarding paths under the i-th transmission index, where i is an integer greater than or equal to 1 and less than or equal to N, and k is an integer greater than or equal to 1.
  • the i-th weight of the index value of the i-th transmission index is the weight corresponding to the index value of the i-th transmission index of the first forwarding path.
  • the k forwarding paths are sub-paths in the candidate forwarding paths to which the first forwarding path belongs, and the first forwarding path is any one of the k forwarding paths. For the convenience of expressing the candidate forwarding paths to which the first forwarding path belongs The path is denoted as "the first candidate forwarding path".
  • the ingress node sorts the indicator values of the i-th transmission indicator in the transmission characteristics of the k forwarding paths, and obtains the indicator value corresponding to the i-th transmission indicator sequence.
  • the entry node sorts the index values of the i-th transmission indicator in the transmission characteristics of the k forwarding paths, wherein the i-th transmission indicator is The smaller the index value of the forwarding path, the better the performance of the i-th transmission index.
  • the entry node assigns the ith weight to the index value of the ith transmission index of the first forwarding path based on the index value sequence.
  • the ingress node obtains the i-th transmission index of the first forwarding path based on the order of the index values of the i-th transmission index of the first forwarding path in the index value sequence.
  • the ith weight of the index value where the smaller the index value of the ith type of transmission index is, the larger the ith weight is assigned to the forwarding path, and vice versa, the smaller the ith weight is assigned.
  • the i-th weight w 1, i of the indicator value of the i-th transmission indicator of the first forwarding path includes any of the following forms, where R is the indicator value sequence of the first forwarding path. , where a and b are both integers greater than or equal to 1.
  • Step 204B the ingress node determines a first target weight of the first forwarding path based on the weight of the index value of each transmission index among the N kinds of transmission indexes of the first forwarding path.
  • the entry node determines the sum of the weights of the index values of each transmission index of the first forwarding path in the N kinds of transmission indexes as the first target weight of the first forwarding path.
  • the ingress node determines the first forwarding path's first forwarding path based on a weight corresponding to each of the N types of transmission metrics and the weight of the index value of each of the transmission metrics of the first forwarding path. a target weight.
  • the entry node inputs the weight corresponding to each of the N types of transmission indicators and the weight of the index value of each of the N types of transmission indicators of the first forwarding path into the following formula: , the first target weight W x of the first forwarding path is obtained by calculation, wherein w 1, i is the ith weight of the index value of the ith transmission index of the first forwarding path.
  • the ingress node After the ingress node obtains the first target weight of the first forwarding path through this step 204, the ingress node updates the fifth target weight of the first forwarding path in the SR Policy to the first target weight of the first forwarding path target weight.
  • the entry node may assign a first target weight to each sub-path of each candidate forwarding path indicated by the SR Policy according to the process shown in the above steps 201-204, and assign the fifth target weight of each sub-path in the SR Policy
  • the goal weight update becomes the first goal weight assigned to each subpath.
  • the ingress node passes the k forwarding paths based on the first target weights of the k forwarding paths in the first candidate forwarding path.
  • the forwarding path sends the data stream to the exit node.
  • the ingress node After the ingress node receives the data stream, for the first forwarding path in the k forwarding paths, the ingress node sends the first forwarding path in the data stream to the egress node through the first forwarding path.
  • a target weight proportion of data For example, if the first target weight of the first forwarding path is 0.3, the ingress node transmits 30% of the data in the data stream to the egress node through the first forwarding path.
  • the ingress node determines whether the first forwarding path satisfies the SLA based on the transmission characteristics of the first forwarding path and the SLA of the target service.
  • the ingress node determines that the first forwarding path satisfies the SLA; otherwise, the ingress node determines that the first forwarding path satisfies the SLA.
  • the forwarding path does not meet this SLA.
  • the transmission delay of the first forwarding path is less than or equal to the index threshold of the delay index specified by the SLA, and the first forwarding path satisfies the SLA.
  • the ingress node assigns a first target weight to the first forwarding path based on transmission characteristics of the first forwarding path. If the first forwarding path does not meet the SLA, the ingress node sets the first target weight of the first forwarding path to 0, so as to avoid using the first forwarding path to forward the data flow of the target service subsequently.
  • the process shown in the above steps 203-204 is a process in which the entry node assigns a weight to each sub-path in each candidate path.
  • the ingress node can further assign a third target weight to the m candidate forwarding paths indicated by the SR Policy, wherein the third target weight of a candidate forwarding path is used to indicate that the candidate forwarding path is among the m candidate forwarding paths Priority in candidate forwarding paths.
  • the ingress node assigns a third target weight to the first candidate forwarding path according to the process shown in the foregoing steps 203-204.
  • the ingress node assigns a third target weight to the first candidate forwarding path through the process shown in the following steps A-B.
  • Step A for the i-th transmission index in the N kinds of transmission indicators, the entry node allocates the i-th transmission index for the first forwarding path based on the index value of the i-th transmission index of the first forwarding path.
  • the second target weight under the indicator, the second target weight of the first forwarding path under the i-th transmission indicator is used to indicate that the first forwarding path is relative to each of the m candidate paths under the i-th transmission indicator.
  • the pros and cons of the forwarding path is used to indicate that the first forwarding path is relative to each of the m candidate paths under the i-th transmission indicator.
  • the entry node first sorts the index value of the i-th transmission index in the transmission characteristics of each forwarding path among the m candidate forwarding paths, and then, based on the sorting result, assigns each forwarding path among the m candidate forwarding paths an The second target weight under the i-th transmission index.
  • the ingress node compares the i-th transmission indicator of each forwarding path among the m candidate forwarding paths The index values are sorted, and the target index sequence corresponding to the i-th transmission index is obtained.
  • the entry node determines the weight corresponding to the index value of the i-th transmission index of the first forwarding path according to the order of the index values of the i-th transmission index of the first forwarding path in the target index sequence, wherein the target index sequence in A smaller index value corresponds to a larger weight, and a larger index value corresponds to a smaller weight.
  • the ingress node determines the weight corresponding to the index value of the i-th transmission index of the first forwarding path as the second target weight of the first forwarding path under the i-th transmission index.
  • Step B the ingress node determines the third target weight of the first candidate forwarding path based on the second target weight of the first forwarding path relative to the m candidate paths under each of the N kinds of transmission indicators,
  • the third target weight is used to indicate the priority of the first candidate forwarding path among the m candidate forwarding paths.
  • the ingress node includes a weight corresponding to each of the N types of transmission indicators, and the first forwarding path relative to the m candidate paths in each of the N types of transmission indicators.
  • the following formula is input to the second target weight of the first candidate forwarding path, and the third target weight W y of the first candidate forwarding path is obtained by calculation.
  • the w 2,s,i is the second target weight of the s-th forwarding path in the first candidate forwarding path under the i-th transmission characteristic
  • the s is an integer greater than or equal to 1 and less than or equal to m.
  • the ingress node assigns a third target weight to the first candidate forwarding path based on the number of forwarding paths in the first candidate forwarding path that satisfy the SLA.
  • the entry node is set with multiple target number intervals, each target number interval includes multiple target numbers, and the multiple target number intervals correspond to a weight, wherein the multiple target number intervals correspond to a weight. In the target number interval, the target number interval with the larger target number corresponds to the larger weight, and vice versa, the corresponding weight is smaller.
  • the entry node determines a weight corresponding to a target number interval to which the number of forwarding paths satisfying the SLA in the first candidate path belongs to a third target weight of the first candidate forwarding path.
  • the weight corresponding to the target number interval 1 [1, 3] is 0.4, and the weight corresponding to the target number interval 2 [4, 7] is 0.6. If the first candidate forwarding path has the number of forwarding paths that satisfy the SLA is 6, the ingress node takes the weight 0.6 as the third target weight of the first candidate forwarding path.
  • the ingress node updates the fourth target weight of the first candidate forwarding path in the SR Policy to the value of the first candidate forwarding path.
  • the third target weight may assign the third target weight to each candidate forwarding path indicated by the SR Policy in the manner of allocating the third target weight to the first candidate forwarding path, and assign the fourth target weight of each candidate forwarding path in the SR Policy
  • the update becomes its assigned third target weight.
  • the entry node receives the data stream of the target service, it determines the candidate forwarding path with the third largest target weight in the updated SR Policy as the main candidate path of the data stream. If the first candidate node is the main candidate path, then The ingress node sends the data stream to the egress node through the m forwarding paths based on the first target weights of the m forwarding paths in the first candidate path.
  • the weight is allocated to each forwarding path through the entry node, and the control node does not need to allocate the weight to each forwarding path, thereby saving the calculation overhead of the control node.
  • weights are assigned to each forwarding path, so that subsequent ingress nodes preferentially use forwarding paths that meet the SLA to transmit data streams.
  • the ingress node determines the first target weight of each forwarding path based on the weight corresponding to each of the N kinds of transmission indicators and the corresponding weight of each forwarding path under each transmission indicator, so that the assigned weight of each forwarding path is The first target weight is more reasonable.
  • the ingress node can acquire the transmission characteristics of each forwarding path by transmitting test packets on each forwarding path, so that the ingress node can assign weights to each forwarding path based on the transmission characteristics of each forwarding path.
  • FIG. 4 is a schematic structural diagram of an apparatus for allocating path weights provided by an embodiment of the present application.
  • the apparatus 400 includes:
  • an acquisition module 401 configured to perform the above step 203;
  • the allocation module 402 is configured to perform the above step 204 .
  • the allocation module is configured to perform the above steps 2041-4042.
  • the distribution module includes:
  • the first allocation unit is used to perform the above steps 204A-404B.
  • the first allocating unit is configured to: sort the index values of the i-th transmission index in the transmission characteristics of the k forwarding paths, and obtain an index value sequence corresponding to the i-th transmission index. ; Based on the ordering of the index values of the i-th transmission index of the first forwarding path in the index value sequence, obtain the i-th weight of the index value of the i-th transmission index of the first forwarding path.
  • the allocating module is configured to: based on the weight corresponding to each transmission indicator in the N types of transmission indicators, and the weight of the indicator value of the each transmission indicator of the first forwarding path, determine the The first target weight; wherein the weight corresponding to any one of the transmission indicators is used to indicate the importance of the any one of the transmission indicators to the target service, and the indicator of the any one of the transmission indicators of the first forwarding path
  • the weight of the value is used to indicate the degree of pros and cons of the first forwarding path relative to the k forwarding paths under any one of the transmission metrics, where k is an integer greater than or equal to 1.
  • the distribution module includes:
  • a second allocating unit configured to, for the i-th transmission indicator among the N types of transmission indicators, allocate the first forwarding path to the first forwarding path based on the indicator value of the i-th transmission indicator of the first forwarding path
  • the second target weight under the i-th transmission indicator, and the second target weight of the first forwarding path under the i-th transmission indicator is used to indicate that the first forwarding path is in the i-th transmission Under the indicator, relative to the pros and cons of each forwarding path among the m candidate paths, the i is an integer greater than or equal to 1 and less than or equal to N, and the m is an integer greater than or equal to 1;
  • a second determining unit configured to determine the first candidate forwarding path based on a second target weight of the first forwarding path relative to the m candidate paths under each of the N types of transmission metrics
  • the third target weight is used to indicate the priority of the first candidate forwarding path among the m candidate forwarding paths.
  • the device further includes:
  • a determining module configured to determine that the first forwarding path satisfies the SLA of the target service based on the transmission characteristics of the first forwarding path.
  • the obtaining module is configured to perform at least one of the above steps 2031-2033.
  • the apparatus 400 further includes a sending module, configured to perform the above step 205 .
  • the apparatus 400 corresponds to the entry node in the above method embodiments, and each module in the apparatus 300 and the above other operations and/or functions are respectively implemented to implement various steps and methods for the entry node in the method embodiments.
  • each module in the apparatus 300 and the above other operations and/or functions are respectively implemented to implement various steps and methods for the entry node in the method embodiments.
  • the apparatus 400 when the apparatus 400 generates the weights for the forwarding paths, only the division of the above-mentioned functional modules is used as an example.
  • the structure is divided into different functional modules to complete all or part of the functions described above.
  • the apparatus 400 provided in the foregoing embodiment and the foregoing method embodiment belong to the same concept, and the specific implementation process thereof is detailed in the foregoing method embodiment, which will not be repeated here.
  • the device 400 may be disposed at the ingress node 1011 in the network 100 .
  • the embodiments of the present application further provide a network device, and the hardware structure of the network device is introduced below.
  • the network device 500 corresponds to the ingress node in the foregoing method embodiments, and each hardware, module, and the foregoing other operations and/or functions in the network device 500 are respectively implemented to implement various steps and methods performed by the ingress node in the method embodiments, For the detailed process of how the network device 500 allocates the weight of the forwarding path, the specific details can be found in the foregoing method embodiments, which are not repeated here for brevity.
  • each step of the above method embodiment is completed by an integrated logic circuit of hardware in the processor of the network device 500 or an instruction in the form of software.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, detailed description is omitted here.
  • the network device 500 corresponds to the device 400 in the above virtual device embodiment, and each functional module in the device 400 is implemented by the software of the network device 500 .
  • the functional modules included in the apparatus 400 are generated after the processor of the network device 500 reads the program codes stored in the memory.
  • FIG. 5 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • the network device 500 may be configured as an entry node.
  • Network device 500 includes at least one processor 501 , communication bus 502 , memory 503 , and at least one physical interface 504 .
  • the processor 501 may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, or may be one or more integrated circuits for implementing the solution of the present application, such as , an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • PLD programmable logic device
  • the above-mentioned PLD can be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
  • the communication bus 502 is used to transfer information between the aforementioned components.
  • the communication bus 502 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the memory 503 can be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or can be random access memory (random access memory, RAM) or can store information and instructions. Other types of dynamic storage devices, it can also be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage , optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or can be used to carry or store desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, but is not limited thereto.
  • the memory 503 may exist independently and be connected to the processor 501 through the communication bus 502 .
  • the memory 503 may also be integrated with the processor 501 .
  • the Physical interface 504 uses any transceiver-like device for communicating with other devices or communication networks.
  • the physical interface 504 includes a wired communication interface and may also include a wireless communication interface.
  • the wired communication interface may be, for example, an Ethernet interface.
  • the Ethernet interface can be an optical interface, an electrical interface or a combination thereof.
  • the wireless communication interface may be a wireless local area network (wireless local area networks, WLAN) interface, a cellular network communication interface or a combination thereof, and the like.
  • the physical interface 504 is also referred to as a physical port.
  • the processor 501 may include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 5 .
  • the network device 500 may include multiple processors, such as the processor 501 and the processor 505 shown in FIG. 5 .
  • processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the network device 500 may further include an output device 506 and an input device 507 .
  • the output device 506 is in communication with the processor 501 and can display information in a variety of ways.
  • the output device 506 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, a projector, or the like .
  • Input device 507 is in communication with processor 501 and can receive user input in a variety of ways.
  • the input device 507 may be a mouse, a keyboard, a touch screen device, a sensor device, or the like.
  • the memory 503 is used to store the program code 510 for executing the solutions of the present application, and the processor 501 can execute the program code 510 stored in the memory 503 . That is, the network device 500 can implement the method provided by the method embodiment through the processor 501 and the program code 510 in the memory 503 .
  • the network device 500 in this embodiment of the present application may correspond to the entry node in each of the foregoing method embodiments, and the processor 501, the physical interface 504, and the like in the network device 500 may implement the features of the entry node in each of the foregoing method embodiments. functions and/or the various steps and methods implemented. For brevity, details are not repeated here.
  • the allocation module 402 in the apparatus 400 may be equivalent to the processor 501 in the network device 500 ; the acquiring module 401 and the sending module in the apparatus 400 are equivalent to the physical interface 504 in the network device 500 .
  • the above-mentioned entry node may be implemented as a virtualized device.
  • the virtualization device may be a virtual machine (virtual machine, VM) running a program for sending a message, and the virtual machine is deployed on a hardware device (eg, a physical server).
  • a virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment.
  • a virtual machine can be configured as an entry node.
  • the entry node can be implemented based on a general-purpose physical server combined with network functions virtualization (NFV) technology.
  • Ingress nodes are virtual hosts, virtual routers, or virtual switches.
  • the network devices in the above-mentioned various product forms respectively have any functions of the ingress nodes in the above-mentioned method embodiments, which will not be repeated here.
  • Embodiments of the present application also provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, where the computer instructions are stored in a computer-readable storage medium, and the processor of the network device is obtained from the computer-readable storage medium.
  • the computer instruction is read, and the processor executes the computer instruction, so that the path weight assignment executes the above path weight assignment method.
  • the embodiment of the present application further provides a chip, including a processor and an interface circuit, the interface circuit is used to receive instructions and transmit them to the processor; the processor can be used to execute the above method for assigning execution path weights applied to an instruction entry node.
  • the processor is coupled to a memory, and the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the chip system enables the method in any of the foregoing method embodiments.
  • the number of processors in the chip system may be one or more.
  • the processor can be implemented by hardware or by software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general-purpose processor implemented by reading software codes stored in memory.
  • the memory may be integrated with the processor, or may be provided separately from the processor, which is not limited in this application.
  • the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be provided on different chips.
  • the setting method of the processor is not particularly limited.
  • the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), or a system on chip (SoC). It can be CPU, NP, digital signal processing circuit (digital signal processor, DSP), microcontroller unit (MCU), programmable logic device (programmable logic device, PLD) or other integrated chips.
  • An embodiment of the present application provides a system, where the system includes the foregoing apparatus 400 or the foregoing network device 500 .

Abstract

The present application discloses a path weight allocation method and device, belonging to the field of communication technology. In said method, an ingress node acquires transmission features of a first forwarding path, wherein the transmission features of the first forwarding path are used for indicating transmission characteristics of the first forwarding path when transmitting a segment routing (SR)-based message; and the ingress node allocates, on the basis of the transmission features of the first forwarding path, a first target weight to the first forwarding path, the first target weight being used for indicating a load sharing state of the first forwarding path. In said method, an ingress node allocates a weight to each forwarding path, without the need for a control node to allocate a weight to each forwarding path, thereby reducing calculation overheads of the control node.

Description

路径权重分配方法以及装置Path weight allocation method and device
本申请要求于2020年11月25日提交的申请号为202011339362.5、发明名称为“路径权重分配方法以及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011339362.5 and the invention title "Path Weight Assignment Method and Device" filed on November 25, 2020, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及通信技术领域,特别涉及一种路径权重分配方法以及装置。The present application relates to the field of communication technologies, and in particular, to a method and device for assigning path weights.
背景技术Background technique
目前,对于某一业务,控制节点将转发网络中用于从用户侧接收数据流的转发节点,确定为该业务的入口节点(ingress node),将转发网络中用于向用户侧发送该数据流的转发节点,确定为该业务的出口节点(egress node)。该控制节点还可以基于入口节点和出口节点在转发网络中的位置,为该业务分配段路由(segment routing,SR)-多协议标签交换(multiprotocol label switching,MPLS)流量工程(traffic engineering,TE)策略(policy),SR-MPLS TE Policy用于指示以入口节点为源节点,出口节点为尾节点的多个候选路径(candidate path),每个候选路径包括至少一个子路径,SR-MPLS TE Policy具体包括多个候选路径的优先级、每个候选路径中每个子路径的权重以及每个子路径的段列表的段列表标识(segment list identity,ID),其中,该多个候选路径中优先级最高的候选路径为主候选路径,其他候选路径均为备份路径。At present, for a certain service, the control node determines the forwarding node in the forwarding network that is used to receive the data stream from the user side as the ingress node of the service, and uses the forwarding network to send the data stream to the user side. The forwarding node is determined as the egress node of the service. The control node may also allocate segment routing (SR)-multiprotocol label switching (MPLS) traffic engineering (TE) for the service based on the positions of the ingress node and the egress node in the forwarding network. Policy, SR-MPLS TE Policy is used to indicate multiple candidate paths (candidate paths) with the ingress node as the source node and the egress node as the tail node, each candidate path includes at least one sub-path, SR-MPLS TE Policy Specifically, it includes the priority of multiple candidate paths, the weight of each subpath in each candidate path, and the segment list identity (ID) of the segment list of each subpath, wherein the priority among the multiple candidate paths is the highest. The candidate path is the primary candidate path, and the other candidate paths are backup paths.
该控制节点可以将该SR-MPLS TE Policy下发至入口节点,当该入口节点从一个用户侧接收到该业务的数据流后,该入口节点通过SR-MPLS TE Policy所指示的该主候选路径,向出口节点传输接收到数据流,以便出口节点将数据流输出至另一个用户侧。The control node can deliver the SR-MPLS TE Policy to the ingress node. After the ingress node receives the data flow of the service from a user side, the ingress node passes the primary candidate path indicated by the SR-MPLS TE Policy. , and transmit the received data stream to the egress node, so that the egress node outputs the data stream to another user side.
当主候选路径的传输特征不满足业务的服务等级协议(service-level agreement,SLA)的要求时,该控制节点更新SR-MPLS TE Policy中各个候选路径的优先级,将当前的主候选路径更新为备选路径,并将更新后的SR-MPLS TE Policy下发至入口节点,由入口节点基于更新后的SR-MPLS TE Policy中的主候选路径传输数据流。When the transmission characteristics of the main candidate path do not meet the requirements of the service-level agreement (SLA) of the service, the control node updates the priority of each candidate path in the SR-MPLS TE Policy, and updates the current main candidate path as The candidate path is selected, and the updated SR-MPLS TE Policy is delivered to the ingress node, and the ingress node transmits the data stream based on the main candidate path in the updated SR-MPLS TE Policy.
当转发网络的规模较大时,控制节点所提供控制服务比较多,若控制节点还要为各个业务提供更新SR-MPLS TE Policy的服务,就会进一步增加控制节点的计算开销。When the scale of the forwarding network is large, the control node provides more control services. If the control node also provides the service of updating the SR-MPLS TE Policy for each service, the calculation overhead of the control node will be further increased.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种路径权重分配方法以及装置,能够降低控制节点的计算开销。该技术方案如下:The embodiments of the present application provide a method and device for allocating path weights, which can reduce the computational overhead of a control node. The technical solution is as follows:
第一方面,提供了一种路径权重分配方法,应用于入口节点,所述方法包括:In a first aspect, a method for assigning path weights is provided, which is applied to an entry node, and the method includes:
获取第一转发路径的传输特征;基于所述第一转发路径的传输特征,为所述第一转发路径分配第一目标权重,所述第一目标权重用于表示所述第一转发路径的负载分担状态。Acquire transmission characteristics of the first forwarding path; based on the transmission characteristics of the first forwarding path, assign a first target weight to the first forwarding path, where the first target weight is used to represent the load of the first forwarding path share status.
其中,所述第一转发路径的传输特征用于指示所述第一转发路径在传输基于SR报文时的传输特点。可选地,所述传输特征是与路测事件(cause)相关的指标值,或者是与SLA相关的指标值,例如传输时延、时延抖动值以及丢包率中的至少一个。The transmission characteristic of the first forwarding path is used to indicate the transmission characteristic of the first forwarding path when transmitting the SR-based message. Optionally, the transmission characteristic is an indicator value related to a drive test event (cause), or an indicator value related to an SLA, such as at least one of transmission delay, delay jitter value, and packet loss rate.
本方法通过入口节点为各个转发路径分配权重,无须控制节点为各个转发路径分配权重,从而节省了控制节点的计算开销。In the method, the weight is allocated to each forwarding path through the entry node, and the control node does not need to allocate the weight to each forwarding path, thereby saving the calculation overhead of the control node.
在一种可能的实现中,所述传输特征包括N种传输指标的指标值,所述N为大于或等于1的整数,任一种传输指标用于表征一种传输性能指标。In a possible implementation, the transmission characteristic includes index values of N types of transmission indexes, where N is an integer greater than or equal to 1, and any transmission index is used to represent a transmission performance index.
在一种可能的实现中,所述基于所述第一转发路径的传输特征,为所述第一转发路径分配第一目标权重包括:In a possible implementation, the assigning the first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path includes:
基于目标业务的服务等级协议SLA,为所述N种传输指标中的第i种传输指标分配第i权重,所述第i种传输指标的第i权重用于表示所述第i种传输指标对所述目标业务的重要程度,所述i为大于等于1且小于等于N的整数;Based on the service level agreement SLA of the target service, assign the i-th weight to the i-th transmission indicator among the N-type transmission indicators, and the i-th weight of the i-th transmission indicator is used to represent the i-th transmission indicator pair The importance of the target business, the i is an integer greater than or equal to 1 and less than or equal to N;
基于所述N种传输指标中的每种传输指标所对应的权重以及所述每种传输指标的指标值,获得所述第一目标权重。The first target weight is obtained based on a weight corresponding to each of the N types of transmission indicators and an indicator value of each of the transmission indicators.
在一种可能的实现中,所述基于所述第一转发路径的传输特征,为所述第一转发路径分配第一目标权重包括:In a possible implementation, the assigning the first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path includes:
对于所述N种传输指标中的第i种传输指标,为所述第一转发路径的第i种传输指标的指标值分配第i权重,所述第i种传输指标的指标值的第i权重用于表示在所述第i种传输指标下所述第一转发路径相对于k个转发路径的优劣程度,所述i为大于等于1且小于等于N的整数,所述k为大于等于1的整数;For the i-th transmission indicator among the N types of transmission indicators, the i-th weight is assigned to the indicator value of the i-th transmission indicator of the first forwarding path, and the i-th weight of the indicator value of the i-th transmission indicator is It is used to indicate the pros and cons of the first forwarding path relative to the k forwarding paths under the i-th transmission index, where i is an integer greater than or equal to 1 and less than or equal to N, and k is greater than or equal to 1 the integer;
基于所述第一转发路径在所述N种传输指标中每种传输指标的指标值的权重,确定所述第一目标权重。The first target weight is determined based on the weight of the index value of each transmission index of the first forwarding path in the N kinds of transmission indexes.
在一种可能的实现中,所述为所述第一转发路径的第i种传输指标的指标值分配第i权重包括:In a possible implementation, the assigning the i-th weight to the indicator value of the i-th transmission indicator of the first forwarding path includes:
对所述k个转发路径的传输特征中所述第i种传输指标的指标值进行排序,得到所述第i种传输指标对应的指标值序列;Sorting the index values of the i-th transmission index in the transmission characteristics of the k forwarding paths, to obtain an index value sequence corresponding to the i-th transmission index;
基于所述第一转发路径的所述第i种传输指标的指标值在所述指标值序列中的排序,获得所述第一转发路径的第i种传输指标的指标值的第i权重。Based on the ranking of the index values of the i-th transmission index of the first forwarding path in the index value sequence, the i-th weight of the index value of the i-th transmission index of the first forwarding path is obtained.
在一种可能的实现中,所述基于所述第一转发路径的传输特征,为所述第一转发路径分配第一目标权重包括:In a possible implementation, the assigning the first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path includes:
基于所述N种传输指标中的每种传输指标所对应的权重、所述第一转发路径的所述每种传输指标的指标值的权重,确定所述第一目标权重;determining the first target weight based on the weight corresponding to each transmission indicator in the N types of transmission indicators, and the weight of the indicator value of the each transmission indicator of the first forwarding path;
其中,任一种传输指标所对应的权重用于表示所述任一种传输指标对目标业务的重要程度,所述第一转发路径的所述任一种传输指标的指标值的权重用于表示在所述任一种传输指标下所述第一转发路径相对于k个转发路径的优劣程度,所述k为大于等于1的整数。Wherein, the weight corresponding to any one of the transmission indicators is used to represent the importance of the any one of the transmission indicators to the target service, and the weight of the indicator value of the any one of the transmission indicators of the first forwarding path is used to represent the The degree of pros and cons of the first forwarding path relative to the k forwarding paths under any of the transmission indicators, where k is an integer greater than or equal to 1.
在一种可能的实现中,所述第一转发路径属于第一候选转发路径;所述方法还包括:In a possible implementation, the first forwarding path belongs to a first candidate forwarding path; the method further includes:
对于所述N种传输指标中的第i种传输指标,基于所述第一转发路径的所述第i种传输指标的指标值,为所述第一转发路径分配在所述第i种传输指标下的第二目标权重,所述第一转发路径在所述第i种传输指标下的第二目标权重用于表示所述第一转发路径在所述第i种传输指标下相对于m个候选路径中各个转发路径的优劣程度,所述i为大于等于1且小于等于N的整数,所述m为大于等于1的整数;For the i-th transmission indicator among the N types of transmission indicators, based on the indicator value of the i-th transmission indicator of the first forwarding path, assign the i-th transmission indicator to the first forwarding path The second target weight of the first forwarding path under the i-th transmission indicator is used to indicate that the first forwarding path is relative to m candidates under the i-th transmission indicator The pros and cons of each forwarding path in the path, the i is an integer greater than or equal to 1 and less than or equal to N, and the m is an integer greater than or equal to 1;
基于所述第一转发路径相对于所述m个候选路径在所述N种传输指标中的每种传输指 标下的第二目标权重,确定所述第一候选转发路径的第三目标权重,所述第三目标权重用于指示所述第一候选转发路径在所述m个候选转发路径中的优先级。The third target weight of the first candidate forwarding path is determined based on the second target weight of the first forwarding path relative to the m candidate paths under each of the N kinds of transmission metrics, and the The third target weight is used to indicate the priority of the first candidate forwarding path among the m candidate forwarding paths.
在一种可能的实现中,所述基于所述第一转发路径的传输特征,为所述第一转发路径分配第一目标权重之前,所述方法还包括:In a possible implementation, before allocating a first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path, the method further includes:
基于所述第一转发路径的传输特征,确定所述第一转发路径满足目标业务的SLA。Based on the transmission characteristics of the first forwarding path, it is determined that the first forwarding path satisfies the SLA of the target service.
在一种可能的实现中,所述获取第一转发路径的传输特征包括下述至少一项:In a possible implementation, obtaining the transmission characteristics of the first forwarding path includes at least one of the following:
当所述传输特征包括传输时延时,将一个测试报文通过所述第一转发路径传输至出口节点的时长,确定为所述传输时延;When the transmission characteristic includes a transmission time delay, the time length for transmitting a test packet to the egress node through the first forwarding path is determined as the transmission delay;
当所述传输特征包括传输抖动值时,基于相邻两个所述测试报文所确定的传输时延,获取所述传输抖动值;When the transmission characteristic includes a transmission jitter value, obtain the transmission jitter value based on the transmission delay determined by two adjacent test packets;
当所述传输特征包括丢包率时,基于目标发送个数以及目标接收个数,确定所述丢包率,所述目标发送个数为在一个时间窗口内,所述入口节点通过所述第一转发路径向所述出口节点发送所述测试报文的总个数,所述目标接收个数为所述出口节点接收到的所述入口节点在所述时间窗口内通过所述第一转发路径发送的所述测试报文的总个数。When the transmission characteristic includes a packet loss rate, the packet loss rate is determined based on the number of target transmissions and the number of target receptions, and the target number of transmissions is within a time window, and the entry node passes the A forwarding path sends the total number of the test packets to the egress node, and the target received number is the number of the test packets received by the egress node through the first forwarding path within the time window by the ingress node The total number of the test packets sent.
在一种可能的实现中,所述测试报文包括所述第一转发路径的段列表标识、所述第一转发路径的候选标识、所述入口节点发送所述测试报文的发送时间、所述时间窗口的标识中的至少一个。In a possible implementation, the test packet includes the segment list identifier of the first forwarding path, the candidate identifier of the first forwarding path, the sending time of the test packet sent by the ingress node, the at least one of the identifiers of the time window.
在一种可能的实现中,所述测试报文为无缝双向转发检查(seamless bidirection forwarding detection,SBFD)报文、双向主动检测协议(tow-way active measurement pootocol,TWAMP)报文或随路检测(in-situ information telemetry,iFIT)报文。In a possible implementation, the test packet is a seamless bidirection forwarding detection (SBFD) packet, a two-way active measurement pootocol (TWAMP) packet, or a path-by-path detection. (in-situ information telemetry, iFIT) message.
第二方面,提供了一种路径权重分配装置,用于执行上述路径权重分配方法。具体地,该路径权重分配装置包括用于执行上述第一方面或上述第一方面的任一种可选方式提供的路径权重分配方法的功能模块。In a second aspect, a path weight allocation apparatus is provided for executing the above path weight allocation method. Specifically, the path weight assignment device includes a functional module for executing the path weight assignment method provided in the first aspect or any optional manner of the first aspect.
第三方面,提供一种网络设备,该网络设备包括处理器和存储器,该存储器中存储有至少一条程序代码,该程序代码由该处理器加载并执行以实现如上述第一方面或者第一方面的各种可选实现方式中提供的方法所执行的操作。A third aspect provides a network device, the network device includes a processor and a memory, the memory stores at least one piece of program code, the program code is loaded and executed by the processor to implement the first aspect or the first aspect as described above The operations performed by the methods provided in the various alternative implementations of .
第四方面,提供一种计算机可读存储介质,该存储介质中存储有至少一条程序代码,该程序代码由处理器加载并执行以实现如上述路径权重分配方法所执行的操作。In a fourth aspect, a computer-readable storage medium is provided, and at least one piece of program code is stored in the storage medium, and the program code is loaded and executed by a processor to implement the operations performed by the above path weight allocation method.
第五方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括程序代码,该程序代码存储在计算机可读存储介质中,网络设备的处理器从计算机可读存储介质读取该程序代码,处理器执行该程序代码,使得该计算机设备执行上述第一方面或者第一方面的各种可选实现方式中提供的方法。In a fifth aspect, a computer program product or computer program is provided, the computer program product or computer program includes program code, the program code is stored in a computer-readable storage medium, and the processor of the network device reads from the computer-readable storage medium. Taking the program code, the processor executes the program code, so that the computer device executes the method provided in the first aspect or various optional implementation manners of the first aspect.
第六方面,提供了一种系统,该系统包括第二方面或第二方面的任一种可选方式提供的路径权重分配装置,或者包括第三方面或第三方面的任一种可选方式提供的网络设备。In a sixth aspect, a system is provided, the system includes the path weight distribution apparatus provided in the second aspect or any optional manner of the second aspect, or includes the third aspect or any optional manner of the third aspect provided network equipment.
上述第二方面至第五方面提供的方案,能够用于实现上述第一方面或上述第一方面的任一种可选方式提供的路径权重分配方法,因此可以实现与第一方面或上述第一方面的任一种可选方式达到相同的有益效果,在此不再进行赘述。The solutions provided in the second aspect to the fifth aspect can be used to implement the path weight allocation method provided in the first aspect or any optional manner of the first aspect. Any optional manner of the aspect achieves the same beneficial effect, which will not be repeated here.
附图说明Description of drawings
图1是本申请实施例提供的一种网络场景的示意图;FIG. 1 is a schematic diagram of a network scenario provided by an embodiment of the present application;
图2是本申请实施例提供的一种路径权重分配方法的流程图;2 is a flowchart of a method for assigning path weights provided by an embodiment of the present application;
图3是本申请实施例提供的一种测试报文的封装格式示意图;3 is a schematic diagram of an encapsulation format of a test message provided by an embodiment of the present application;
图4是本申请实施例提供的一种路径权重分配装置的结构示意图;4 is a schematic structural diagram of a path weight allocation device provided by an embodiment of the present application;
图5是本申请实施例提供的一种网络设备的结构示意图。FIG. 5 is a schematic structural diagram of a network device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
图1是本申请实施例提供的一种网络场景的示意图,参见图1,该网络100包括多个转发节点101。根据在网络100中的位置或者功能,该多个转发节点101可分为入口节点1011、中间节点(interiornodes)1012以及出口节点1013。FIG. 1 is a schematic diagram of a network scenario provided by an embodiment of the present application. Referring to FIG. 1 , the network 100 includes multiple forwarding nodes 101 . The plurality of forwarding nodes 101 can be divided into ingress nodes 1011 , interior nodes 1012 and egress nodes 1013 according to their positions or functions in the network 100 .
其中,入口节点1011为该网络100的边缘设备,并与用户边缘(customer edge,CE)设备连接,入口节点1011用于从用户侧接收数据流,并将接收到的数据流通过网络100中的转发路径发往出口节点1013,由出口节点1013将从转发路径上接收的数据流转发至另一用户侧,以将数据流输出该网络100。其中,一个转发路径包括多个转发节点101,该入口节点1011为转发路径的第一个转发节点,也即是源节点;该出口节点1013为转发路径的最后一个转发节点,也即是尾节点;转发路径上除入口节点1011和出口节点1013以外的其他节点均为中间节点1012,中间节点1012用于向其他转发节点101转发数据流。The ingress node 1011 is an edge device of the network 100 and is connected to a customer edge (CE) device. The ingress node 1011 is used to receive data streams from the user side and pass the received data streams through the network 100. The forwarding path is sent to the egress node 1013 , and the egress node 1013 forwards the data flow received from the forwarding path to another user side, so as to output the data flow to the network 100 . A forwarding path includes multiple forwarding nodes 101, the entry node 1011 is the first forwarding node of the forwarding path, that is, the source node; the exit node 1013 is the last forwarding node of the forwarding path, that is, the tail node ; Other nodes on the forwarding path except the ingress node 1011 and the egress node 1013 are all intermediate nodes 1012 , and the intermediate nodes 1012 are used to forward data streams to other forwarding nodes 101 .
例如,入口节点1011和出口节点1013为运营商边缘(provider edge,PE)设备,在图1中,PE1和PE2为入口节点1011,均与CE1连接,PE3和PE4为出口节点1013,均与CE2连接,PE1接收CE1发送的数据流,并将接收到的数据流通过PE1至PE3之间的转发路径,传输至PE3,由PE3向CE2转发接收到的数据流,从而实现将CE1输出的数据流转发至CE2。For example, the ingress node 1011 and the egress node 1013 are provider edge (PE) devices. In FIG. 1, PE1 and PE2 are the ingress nodes 1011, both connected to CE1, and PE3 and PE4 are egress nodes 1013, both connected to CE2 PE1 receives the data stream sent by CE1, and transmits the received data stream to PE3 through the forwarding path between PE1 and PE3, and then PE3 forwards the received data stream to CE2, thereby realizing the data stream output from CE1. Sent to CE2.
入口节点1011,还用于在转发数据流之前,先获取该数据流所对应的业务的SRPolicy(如SR-MPLS TE Policy),然后,将该SR Policy所指示的优先级最高的候选路径,确定为用于转发该数据流的主候选路径,入口节点1011并基于该主候选路径中每个子路径的权重,一个子路径的权重用于表示该子路径的负载分担状态。在该主候选路径中的每个子路径上分流传输该数据流,从而每个子路径都能分担负载,每个子路径上的传输的数据流在出口节点1103汇聚,并由出口节点1103转发出该网络100。例如,主候选路径包括2个子路径1和2,子路径1的权重为0.3,子路径2的权重为0.7,入口节点1011将接收到的数据流中30%的数据通过子路径1传输至出口节点1013,入口节点1011将接收到的数据流中70%的数据通过子路径2传输至出口节点1013。The entry node 1011 is also used to obtain the SRPolicy (such as the SR-MPLS TE Policy) of the service corresponding to the data stream before forwarding the data stream, and then determine the candidate path with the highest priority indicated by the SR Policy. As the main candidate path for forwarding the data flow, the ingress node 1011 and based on the weight of each sub-path in the main candidate path, the weight of a sub-path is used to represent the load sharing state of the sub-path. The data stream is distributed and transmitted on each sub-path in the main candidate path, so that each sub-path can share the load, the data stream transmitted on each sub-path is converged at the egress node 1103 and forwarded out of the network by the egress node 1103 100. For example, the main candidate path includes 2 sub-paths 1 and 2, the weight of sub-path 1 is 0.3, the weight of sub-path 2 is 0.7, the ingress node 1011 transmits 30% of the data in the received data stream to the egress through sub-path 1 Node 1013, the ingress node 1011 transmits 70% of the data in the received data stream to the egress node 1013 through sub-path 2.
该入口节点1011,还用于在获取该SRPolicy之后,获取SRPolicy所指示的每个候选路径中每个子路径的传输特征,并根据每个子路径的传输特征,更新每个子路径的权重,从而避免控制节点来更新SRPolicy中每个子路径的权重,以降低控制节点的计算开销。The entry node 1011 is further configured to, after acquiring the SRPolicy, acquire the transmission characteristic of each subpath in each candidate path indicated by the SRPolicy, and update the weight of each subpath according to the transmission characteristic of each subpath, thereby avoiding control node to update the weight of each sub-path in the SRPolicy to reduce the computational cost of the control node.
在一种可能的实现方式中,入口节点1011在根据一个候选路径中每个子路径的传输特征,更新每个子路径的权重时,以业务的SLA为条件,对于该候选路径中传输特征不满足SLA的子路径,该入口节点1011将该子路径的权重置0,以避免后续在该子路径上传输该业务的数据流。对于该候选路径中传输特征满足SLA的目标子路径,该入口节点1011根据目标子 路径的传输特征,更新目标子路径的权重,若该候选路径为主候选路径,则入口节点1011在该主候选路径的各个目标子路径传输数据流时,不仅能够保证数据流的传输特征满足SLA,且还能够保证数据流以最优分流的方式在各个目标子路径上传输。In a possible implementation manner, when updating the weight of each sub-path according to the transmission characteristics of each sub-path in a candidate path, the entry node 1011 takes the SLA of the service as a condition, and the transmission characteristics of the candidate path do not meet the SLA The entry node 1011 resets the weight of the sub-path to 0, so as to avoid the subsequent transmission of the data flow of the service on the sub-path. For the target sub-path whose transmission characteristics satisfy the SLA in the candidate path, the entry node 1011 updates the weight of the target sub-path according to the transmission characteristics of the target sub-path. When each target sub-path of a path transmits a data stream, it can not only ensure that the transmission characteristics of the data stream meet the SLA, but also ensure that the data stream is transmitted on each target sub-path in an optimal split manner.
在一种可能的实现方式中,入口节点1011仅更新SRPolicy所指示的主候选路径中子路径的权重,而不更新SRPolicy所指示的备份路径中子路径的权重,当主候选路径中的每个子路径的传输特征均不满足SLA时,该入口节点1011请求控制节点重新下发SRPolicy。In a possible implementation manner, the entry node 1011 only updates the weight of the sub-paths in the primary candidate path indicated by SRPolicy, but does not update the weight of the sub-paths in the backup path indicated by SRPolicy, when each sub-path in the primary candidate path When none of the transmission characteristics of the node satisfies the SLA, the ingress node 1011 requests the control node to re-issue the SRPolicy.
在一种可能的实现方式中,入口节点1011除了能够更新SRPolicy所指示的各个候选路径中每个子路径的权重以外,还能够基于各个候选路径中每个子路径的权重,更新各个候选路径的优先级,以重新确定新的主候选路径。In a possible implementation manner, in addition to updating the weight of each subpath in each candidate path indicated by SRPolicy, the entry node 1011 can also update the priority of each candidate path based on the weight of each subpath in each candidate path , to re-determine the new primary candidate path.
举例说明,本申请实施例的候选转发路径以及候选转发路径的子路径均为多个转发节点所组成的转发路径。当候选转发路径中不存在分叉节点时,该候选转发路径为一条转发路径,或者说,SRPolicy中一个候选转发路径仅对应一个段列表(segment list),该段列表所指示的一个转发路径也即是该候选转发路径。当候选转发路径中存在分叉节点时,该候选转发路径为多个子路径所组成的网状转发路径,每个子路径为网状转发路径的一个分支,每个分支均以入口节点作为每个分支的第一个转发节点,均以出口节点作为每个分支的最后一个转发节点。其中,分叉节点为候选转发路径中与至少两个的转发节点具有连接关系的转发节点,例如出口节点与候选转发路径中的2个中间节点连接,该出口节点为分叉节点,再例如,候选转发路径中的1个中间节点与候选转发路径中的其他3个中间节点连接,则该1个中间节点为分叉节点。或者说,SRPolicy中一个候选转发路径对应至少两个段列表,该至少两个段列表中每个段列表所指示的一个转发路径为该候选转发路径的一个子路径,该至少两个段列表所指示的至少两个子路径所组成的网状转发路径也即是候选转发路径。For example, the candidate forwarding path and the sub-paths of the candidate forwarding path in the embodiment of the present application are both forwarding paths composed of multiple forwarding nodes. When there is no fork node in the candidate forwarding path, the candidate forwarding path is a forwarding path, or in other words, a candidate forwarding path in SRPolicy corresponds to only one segment list, and a forwarding path indicated by the segment list is also That is, the candidate forwarding path. When there is a fork node in the candidate forwarding path, the candidate forwarding path is a mesh forwarding path composed of multiple sub-paths, each sub-path is a branch of the mesh forwarding path, and each branch takes the ingress node as each branch The first forwarding node of each branch takes the exit node as the last forwarding node of each branch. The fork node is a forwarding node that has a connection relationship with at least two forwarding nodes in the candidate forwarding path. For example, an exit node is connected to two intermediate nodes in the candidate forwarding path, and the exit node is a fork node. For example, If one intermediate node in the candidate forwarding path is connected to the other three intermediate nodes in the candidate forwarding path, the one intermediate node is a fork node. In other words, a candidate forwarding path in SRPolicy corresponds to at least two segment lists, and a forwarding path indicated by each segment list in the at least two segment lists is a sub-path of the candidate forwarding path, and the at least two segment lists are The mesh forwarding path formed by the indicated at least two sub-paths is also a candidate forwarding path.
为了进一步体现出口节点更新候选转发路径中各个子路径的权重的过程,参见如图2所示的本申请实施例提供的一种路径权重分配方法的流程图。In order to further embody the process of updating the weight of each sub-path in the candidate forwarding path by the egress node, refer to the flowchart of a path weight allocation method provided by an embodiment of the present application as shown in FIG. 2 .
201、出口节点获取目标业务的SRPolicy。201. The egress node obtains the SRPolicy of the target service.
该目标业务为转发网络所服务的任一种业务,例如视频业务、游戏业务等。该SRPolicy用于指示转发该目标业务的数据流的m个候选转发路径,该m为大于等于1的整数。可选地,该SRPolicy应用于使用互联网协议第6版(Internet protocol version 6,IPv6)数据面的段路由(segment routing using Ipv6 data plane,SRv6),或,应用于使用互联网协议第4版数据面的段路由(segment routing using Ipv4 data plane,SRv4)。The target service is any service served by the forwarding network, such as video service, game service, and the like. The SRPolicy is used to indicate m candidate forwarding paths for forwarding the data flow of the target service, where m is an integer greater than or equal to 1. Optionally, the SRPolicy is applied to segment routing (segment routing using Ipv6 data plane, SRv6) using the Internet Protocol version 6 (Internet protocol version 6, IPv6) data plane, or, applied to the data plane using the Internet Protocol version 4 segment routing using Ipv4 data plane (SRv4).
该SRPolicy包括该m个候选转发路径中每个候选转发路径的候选标识(candidate identity,candidate ID)、每个候选转发路径的第四目标权重以及每个候选转发路径的段列表信息。其中,一个候选转发路径的第四目标权重用于表示该候选转发路径在该m个候选转发路径中的优先级,该m个候选转发路径中第四目标权重最大的候选转发路径为该目标业务的主候选路径,也即是优先级最高的候选转发路径,该m个候选转发路径中除该主候选路径以外的转发路径均为该目标业务的备选路径。一个候选转发路径的段列表信息包括k个段列表的段列表标识以及该k个段列表的第五目标权重,该k为大于等于1的整数。一个段列表的段列表标识用于该段列表,该段列表用于指示一个转发路径,可选地,该段列表包括该转发路径上多个转发节点的地址信息,例如互连网协议(internet protocol,IP)地址。该段列表的第五目标权重也即是该段列表所指示的转发路径的权重,用于表示该转发路径的负载分担状态。当一个候选 转发路的段列表信息包括一个段列表的段列表标识时,该段列表信息中该段列表所指示的转发路径也即是该候选转发路径;当该候选转发路径的段列表信息包括多个段列表的段列表标识时,该段列表信息中每个段列表所指示的转发路径分别为该候选转发路径的一个子路径。The SRPolicy includes a candidate identifier (candidate identity, candidate ID) of each candidate forwarding path in the m candidate forwarding paths, a fourth target weight of each candidate forwarding path, and segment list information of each candidate forwarding path. The fourth target weight of a candidate forwarding path is used to indicate the priority of the candidate forwarding path among the m candidate forwarding paths, and the candidate forwarding path with the largest fourth target weight among the m candidate forwarding paths is the target service The primary candidate path of the m candidate forwarding path, that is, the candidate forwarding path with the highest priority, and the forwarding paths other than the primary candidate forwarding path among the m candidate forwarding paths are all candidate paths of the target service. The segment list information of a candidate forwarding path includes segment list identifiers of the k segment lists and a fifth target weight of the k segment lists, where k is an integer greater than or equal to 1. The segment list identifier of a segment list is used for the segment list, and the segment list is used to indicate a forwarding path. Optionally, the segment list includes address information of multiple forwarding nodes on the forwarding path, for example, the Internet protocol IP) address. The fifth target weight of the segment list is the weight of the forwarding path indicated by the segment list, and is used to indicate the load sharing state of the forwarding path. When the segment list information of a candidate forwarding path includes a segment list identifier of a segment list, the forwarding path indicated by the segment list in the segment list information is also the candidate forwarding path; when the segment list information of the candidate forwarding path includes When the segment lists of multiple segment lists are identified, the forwarding paths indicated by each segment list in the segment list information are respectively a sub-path of the candidate forwarding path.
在一种可能的实现方式中,该入口节点从控制节点获取该SR Policy。In a possible implementation manner, the entry node obtains the SR Policy from the control node.
在另一种可能的实现方式中,该入口节点无须从控制节点获取SR Policy,而是由入口节点直接生成该SR Policy。可选地,该入口节点根据该目标业务的目的设备的位置信息,确定转发网络中用于向该目的设备转发数据流的出口节点,该入口节点为该转发网络中该入口节点与该出口节点之间的至少一个候选转发路径分别分配一个第四目标权重,以指示每个候选转发路径的优先级,并为每个候选转发路径的各个子路径分配一个第五目标权重,该入口节点基于每个候选转发路径的第四目标权重、每个候选转发路径中每个子路径的第五目标权重,生成该SR Policy。In another possible implementation manner, the entry node does not need to obtain the SR Policy from the control node, but the entry node directly generates the SR Policy. Optionally, the ingress node determines, according to the location information of the destination device of the target service, an egress node in the forwarding network for forwarding the data flow to the destination device, and the ingress node is the ingress node and the egress node in the forwarding network. At least one candidate forwarding path between them is respectively assigned a fourth target weight to indicate the priority of each candidate forwarding path, and a fifth target weight is assigned to each sub-path of each candidate forwarding path, the entry node is based on each The fourth target weight of each candidate forwarding path and the fifth target weight of each subpath in each candidate forwarding path are used to generate the SR Policy.
其中,该目标设备为用于接收转发网络所转发的该目标业务的数据流的用户侧设备,可选地,该目的设备为与该出口节点连接的用户边缘设备,或者为与该用户边缘设备连接的终端设备。Wherein, the target device is a user-side device used to receive the data stream of the target service forwarded by the forwarding network, optionally, the target device is a user-edge device connected to the egress node, or a user-edge device connected to the user-edge device connected terminal equipment.
202、该入口节点基于该SR Policy,确定待测试的第一转发路径。202. Based on the SR Policy, the entry node determines a first forwarding path to be tested.
该入口节点将该SR Policy所指示的m个候选转发路径中任一候选转发路径内的任一子路径,确定为该第一转发路径。The entry node determines any sub-path in any candidate forwarding path among the m candidate forwarding paths indicated by the SR Policy as the first forwarding path.
203、该入口节点获取该第一转发路径的传输特征,该第一转发路径的传输特征用于指示该第一转发路径在传输基于SR报文时的传输特点。203. The ingress node acquires the transmission characteristic of the first forwarding path, where the transmission characteristic of the first forwarding path is used to indicate the transmission characteristic of the first forwarding path when transmitting the SR-based message.
基于SR报文为采用段路由的方式所传输的报文,例如SRv6报文、SRv4报文。该传输特征包括N种传输指标的指标值,该N为大于或等于1的整数,任一种传输指标用于表征一种传输性能指标。可选地,该传输特征是与路测事件相关的指标值,或者是与SLA相关的指标值,例如传输时延、时延抖动值以及丢包率中的至少一个。SR-based packets are packets transmitted by using segment routing, such as SRv6 packets and SRv4 packets. The transmission feature includes index values of N types of transmission indexes, where N is an integer greater than or equal to 1, and any transmission index is used to represent a transmission performance index. Optionally, the transmission feature is an index value related to a drive test event, or an index value related to an SLA, such as at least one of transmission delay, delay jitter value, and packet loss rate.
该入口节点基于测试报文,检测该第一转发路径的传输特征,其中,该测试报文为无缝双向转发检查(seamless bidirection forwarding detection,SBFD)报文、双向主动检测协议(tow-way active measurement pootocol,TWAMP)报文或随路检测(in-situ information telemetry,iFIT)报文。The entry node detects the transmission characteristics of the first forwarding path based on a test packet, wherein the test packet is a seamless bidirection forwarding detection (SBFD) packet, a two-way active detection protocol (tow-way active detection protocol) measurement pootocol, TWAMP) message or in-situ information telemetry (iFIT) message.
在一种可能的实现方式中,本步骤203所示过程由下述步骤2031-2033中至少一项来实现。In a possible implementation manner, the process shown in this step 203 is implemented by at least one of the following steps 2031-2033.
步骤2031、当该传输特征包括传输时延时,该入口节点将一个测试报文通过该第一转发路径传输至出口节点的时长,确定为该传输时延。Step 2031 : When the transmission characteristic includes a transmission delay, the time duration for the ingress node to transmit a test packet to the egress node through the first forwarding path is determined as the transmission delay.
该入口节点在执行本步骤2031之前,先获取该测试报文通过该第一转发路径传输至出口节点的时长。其中,该入口节点获取该测试报文通过该第一转发路径传输至出口节点的时长的过程包括下述步骤A-E。Before executing this step 2031, the ingress node first obtains the duration of the transmission of the test packet to the egress node through the first forwarding path. Wherein, the process for the ingress node to acquire the duration of the transmission of the test packet to the egress node through the first forwarding path includes the following steps A-E.
步骤A、该入口节点生成测试报文。Step A, the entry node generates a test packet.
该测试报文包括该第一转发路径的段列表标识、该第一转发路径的候选标识、该测试报文的发送时间(senttime)、该发送时间所属的时间窗口的标识中的至少一个。其中,该第一转发路径的候选标识为该SR Policy中该段列表标识对应的候选标识,也即是,该第一转发路径所属的候选转发路径的候选标识。该测试报文的发送时间为该入口节点发送该测试报文的 时间。在一些实施例中,该入口节点在多个测试周期内实时测试该第一转发路径的传输特征,每个测试周期也即是一个时间窗口,该入口节点在每个测试周期的时间窗口中,通过该第一转发路径向该出口节点发送多个测试报文,以便通过该多个测试报文,实时测试该第一转发路径的传输特征。The test packet includes at least one of a segment list identifier of the first forwarding path, a candidate identifier of the first forwarding path, a sending time (senttime) of the test packet, and an identifier of a time window to which the sending time belongs. Wherein, the candidate identifier of the first forwarding path is the candidate identifier corresponding to the segment list identifier in the SR Policy, that is, the candidate identifier of the candidate forwarding path to which the first forwarding path belongs. The sending time of the test packet is the time when the ingress node sends the test packet. In some embodiments, the ingress node tests the transmission characteristics of the first forwarding path in real time in a plurality of test cycles, each test cycle is also a time window, and the ingress node is in the time window of each test cycle, Send multiple test packets to the egress node through the first forwarding path, so as to test the transmission characteristics of the first forwarding path in real time through the multiple test packets.
当该测试报文为SBFD报文或TWAMP报文时,对于该SBFD报文和TWAMP报文中的任一报文,该入口节点在该任一报文的扩展字段中添加该第一转发路径的段列表标识、该第一转发路径的候选标识、该测试报文的发送时间以及该发送时间所属的时间窗口的标识,得到该测试报文。When the test packet is an SBFD packet or a TWAMP packet, for any packet in the SBFD packet and the TWAMP packet, the ingress node adds the first forwarding path in the extension field of the any packet The identifier of the segment list, the candidate identifier of the first forwarding path, the sending time of the test packet, and the identifier of the time window to which the sending time belongs to obtain the test packet.
其中,该扩展字段包括染色(stain)标识字段、候选标识字段、段列表标识字段、发送时间字段。该染色标识字段用于存储该发送时间所属的时间窗口的标识,该候选标识字段用于存储该第一转发路径的候选标识,该段列表标识字段用于存储该第一转发路径的段列表标识,该发送时间字段用于存储该测试报文的发送时间。在一些实施例中,该测试报文还包括接收时间(receivetime)字段和保留(reserved)字段中的至少一个,其中,该接收时间字段用于存储入口节点接收到该测试报文的接收时间,该保留字段为预留字段,以便后续根据应用场景需要添加信息。该任一报文中除扩展字段以外的其他字段均为该任一报文的现有字段,例如图3所示的本申请实施例提供的一种测试报文的封装格式示意图,图3中的测试报文为SBFD报文,SBFD报文的现有字段包括版本(version,Vers)字段、诊断字(diagnostic,Diag)字段、状态(state,Sta)字段、轮询(poll,P)字段、终极(final,F)字段、转发/控制分离(controlplaneindependent,C)字段、认证标识(authenticationpresent,A)字段、需求(demand,D)字段、多点(multipoint,M)字段、检测超时倍数(detectmult)字段、长度(length)字段、本地标识符(mydiscriminator)字段、远端标识符(yourdiscriminator)字段、所需最小发送扩展规格间隔(desired minimumtransmit extended specification interval,desired min TXinterval)字段(简称“所需最小发送间隔字段”)、所需最小接收扩展规格间隔(requiredminimumreceiveextended specification interval,requiredminreceiveRXinterval)字段(简称“所需最小接收间隔字段”)、所需最小回声报文接收间隔字段(required min Echo RXinterval)字段。其中,Vers字段用于存储SBFD协议版本号;Diag字段用于存储诊断字,以标明本地SBFD系统最近一次会话状态发送变化的原因;P字段用于存储P标志,参数发送变化时,发送方在SBFD报文中置位P标志,接收方必须响应该SBFD报文;F字段用于存储F标志,是否响应P标志置位的回应报文由F标志的置位状态决定;C字段用于存储C标志,一旦C标识置1,控制平面的业务状态变化不影响SBFD检测;A字段用于存储认证标识,以指示会话是否需要进行认证;D字段用于存储D标志,以指示系统是否希望工作在查询模式;M字段为SBFD将来支持多点扩展而设的预留位;检测超时倍数字段所存储的检测超时倍数,用于检测方计算检测超时时间;长度字段用于存储SBFD报文的长度;本地标识符字段用于存储SBFD会话连接本地标识符,发送系统产生的一个唯一的、非0鉴别值,用来区分系统的多个SBFD会话;远端标识符字段用于存储SBFD会话连接远端标识符;所需最小发送间隔字段用于存储本地支持的最小SBFD报文发送间隔,单位为毫秒;所需最小接收间隔字段用于存储本地支持的最小SBFD报文接收间隔,单位为毫秒;所需最小回声报文接收间隔字段用于存储本地支持的最小回声报文接收间隔,单位为毫秒。Wherein, the extension field includes a stain identification field, a candidate identification field, a segment list identification field, and a sending time field. The dyeing identification field is used to store the identification of the time window to which the sending time belongs, the candidate identification field is used to store the candidate identification of the first forwarding path, and the segment list identification field is used to store the segment list identification of the first forwarding path , the sending time field is used to store the sending time of the test packet. In some embodiments, the test packet further includes at least one of a reception time (receivetime) field and a reserved (reserved) field, wherein the reception time field is used to store the reception time when the ingress node receives the test packet, This reserved field is reserved so that information can be added later according to the application scenario. The fields other than the extension field in any of the packets are the existing fields of the any of the packets. For example, as shown in FIG. The test packet is an SBFD packet, and the existing fields of the SBFD packet include the version (Vers) field, the diagnostic word (diagnostic, Diag) field, the state (state, Sta) field, and the polling (poll, P) field , final (final, F) field, forwarding / control separation (controlplane independent, C) field, authentication identification (authenticationpresent, A) field, demand (demand, D) field, multipoint (multipoint, M) field, detection timeout multiple ( detectmult) field, length (length) field, local identifier (mydiscriminator) field, remote identifier (yourdiscriminator) field, required minimum transmit extended specification interval (desired minimumtransmit extended specification interval, desired min TXinterval) field (referred to as "all" Minimum required sending interval field"), required minimum receiving extended specification interval (requiredminimumreceiveextended specification interval, requiredminreceiveRXinterval) field (referred to as "required minimum receiving interval field"), required minimum echo message receiving interval field (required min Echo RXinterval) field. Among them, the Vers field is used to store the SBFD protocol version number; the Diag field is used to store the diagnostic word to indicate the reason for the last session state transmission change of the local SBFD system; the P field is used to store the P flag. The P flag is set in the SBFD message, and the receiver must respond to the SBFD message; the F field is used to store the F flag, and whether to respond to the response message with the P flag set is determined by the setting state of the F flag; the C field is used to store C flag, once the C flag is set to 1, the service state change of the control plane does not affect SBFD detection; the A field is used to store the authentication flag to indicate whether the session needs to be authenticated; the D field is used to store the D flag to indicate whether the system wants to work In query mode; the M field is a reserved bit for SBFD to support multi-point expansion in the future; the detection timeout multiple stored in the detection timeout multiple field is used for the detection party to calculate the detection timeout time; the length field is used to store the length of the SBFD message ;The local identifier field is used to store the local identifier of the SBFD session connection, and a unique, non-zero discriminant value generated by the sending system is used to distinguish multiple SBFD sessions of the system; the remote identifier field is used to store the remote identifier of the SBFD session connection. Terminal identifier; the required minimum sending interval field is used to store the locally supported minimum SBFD packet sending interval, in milliseconds; the required minimum receiving interval field is used to store the locally supported minimum SBFD packet receiving interval, in milliseconds; The required minimum echo packet receiving interval field is used to store the locally supported minimum echo packet receiving interval, in milliseconds.
当该测试报文为iFIT报文,且该第一转发路径属于主候选路径时,该入口节点接收到该 目标业务的数据流后,在一个时间窗口内,该入口节点在该数据流的任一业务报文上添加iFIT头,并在iFIT头中添加该第一转发路径的段列表标识、该第一转发路径的候选标识、该测试报文的发送时间以及该发送时间所属的时间窗口的标识,得到该测试报文。When the test packet is an iFIT packet, and the first forwarding path belongs to the primary candidate path, after the ingress node receives the data flow of the target service, within a time window, the ingress node is in any position of the data flow. An iFIT header is added to a service packet, and the segment list identifier of the first forwarding path, the candidate identifier of the first forwarding path, the sending time of the test packet, and the time window to which the sending time belongs are added to the iFIT header. ID to get the test message.
举例说明,由于SBFD报文和TWAMP报文与目标业务的数据流没有任何关系,该入口节点能够基于报文类型为SBFD报文或TWAMP报文的测试报文,实时测试该第一转发路径的传输特征。例如,入口节点在接收数据流之前,基于报文类型为SBFD报文或TWAMP报文的测试报文,实时测试该第一转发路径的传输特征,再例如,入口节点在转发该数据流的过程,基于报文类型为SBFD报文或TWAMP报文的测试报文,实时测试该第一转发路径的传输特征。报文类型为iFIT报文的测试报文,是基于数据流中的业务报文生成的,因此,该测试报文必须要随数据流一起发送,而入口节点仅会在主候选路径上传输数据流,因此,当该入口节点将携带iFIT头的业务报文作为测试报文时,仅能在转发数据流的过程中,测试主候选路径。For example, since SBFD packets and TWAMP packets have nothing to do with the data flow of the target service, the ingress node can test the first forwarding path in real time based on test packets whose packet types are SBFD packets or TWAMP packets. transfer characteristics. For example, before receiving the data flow, the ingress node tests the transmission characteristics of the first forwarding path in real time based on the test message whose message type is SBFD message or TWAMP message. For another example, the ingress node is in the process of forwarding the data flow. , and test the transmission characteristics of the first forwarding path in real time based on the test message whose message type is the SBFD message or the TWAMP message. The test packet whose packet type is iFIT packet is generated based on the service packets in the data flow. Therefore, the test packet must be sent along with the data flow, and the ingress node only transmits data on the main candidate path. Therefore, when the ingress node uses the service packet carrying the iFIT header as the test packet, it can only test the main candidate path in the process of forwarding the data flow.
步骤B、该入口节点通过该第一转发路径,向出口节点发送该测试报文。Step B: The ingress node sends the test packet to the egress node through the first forwarding path.
该入口节点基于该第一转发路径的段列表标识所指示的段列表,确定该第一转发路径上该入口节点的下一跳节点;在该测试报文的发送时间,该入口节点向该下一跳节点发送该测试报文;对于该第一转发路径上的任一中间节点,当该任一中间节点从上一跳节点接收到该测试报文后,基于该测试报文中段列表标识所指示的段列表,向该第一转发路径上该任一中间节点的下一跳节点发送该测试报文。The entry node determines the next hop node of the entry node on the first forwarding path based on the segment list indicated by the segment list identifier of the first forwarding path; at the sending time of the test packet, the entry node sends the next hop to the entry node. The one-hop node sends the test packet; for any intermediate node on the first forwarding path, after receiving the test packet from the previous hop node, the intermediate node identifies the test packet based on the segment list in the test packet. the indicated segment list, and send the test packet to the next hop node of any intermediate node on the first forwarding path.
步骤C、该出口节点接收该测试报文。Step C, the exit node receives the test message.
该出口节点从该第一转发路径上该出口节点的上一跳节点接收该测试报文。The egress node receives the test packet from the previous hop node of the egress node on the first forwarding path.
步骤D、该出口节点向该入口节点发送该测试报文的响应报文。Step D: The egress node sends a response message of the test message to the ingress node.
该响应报文包括该第一转发路径的段列表标识、该第一转发路径的候选标识、该测试报文的发送时间、该发送时间所属的时间窗口的标识以及该测试报文的接收时间,其中,该测试报文的接收时间为该出口节点接收该测试报文的时间。The response message includes the segment list identifier of the first forwarding path, the candidate identifier of the first forwarding path, the sending time of the test packet, the identifier of the time window to which the sending time belongs, and the receiving time of the test packet, The receiving time of the test packet is the time when the egress node receives the test packet.
该出口节点从该测试报文中获取该第一转发路径的段列表标识、该第一转发路径的候选标识、该测试报文的发送时间、该发送时间所属的时间窗口的标识,并将该接收时间以及获取到的该第一转发路径的段列表标识、该第一转发路径的候选标识、该测试报文的发送时间、该发送时间所属的时间窗口的标识,封装为一个响应报文。The egress node obtains the segment list identifier of the first forwarding path, the candidate identifier of the first forwarding path, the sending time of the test packet, and the identifier of the time window to which the sending time belongs from the test packet, and converts the The reception time and the acquired segment list identifier of the first forwarding path, the candidate identifier of the first forwarding path, the sending time of the test packet, and the identifier of the time window to which the sending time belongs are encapsulated into a response packet.
在一些实施例中,若该测试报文为SBFD报文和TWAMP报文,该出口节点在该测试报文的接收时间字段添加该接收时间,得到该响应报文。In some embodiments, if the test packet is an SBFD packet and a TWAMP packet, the egress node adds the reception time in the reception time field of the test packet to obtain the response packet.
当该出口节点获取到该响应报文后,该出口节点向该入口节点发送该响应报文。在一种可能的实现方式中,该出口节点通过该第一转发路径向该入口节点输出该响应报文。在另一种可能的实现方式中,该出口节点与该入口节点之间存在控制信号通道,该出口节点通过该控制信号通道向该入口节点传输该响应报文,该控制信号通道用于传输入口节点与出口节点之间的控制信号,其中,响应报文为控制信号的一种。After the egress node acquires the response message, the egress node sends the response message to the ingress node. In a possible implementation manner, the egress node outputs the response packet to the ingress node through the first forwarding path. In another possible implementation manner, a control signal channel exists between the egress node and the ingress node, the egress node transmits the response message to the ingress node through the control signal channel, and the control signal channel is used to transmit the ingress node A control signal between a node and an exit node, wherein the response message is a type of control signal.
步骤E、当接收到该响应报文后,该入口节点将该响应报文中该测试报文的接收时间与该测试报文的发送时间之差,获取为该测试报文通过该第一转发路径传输至出口节点的时长。Step E, after receiving the response message, the entry node obtains the difference between the receiving time of the test message in the response message and the sending time of the test message as the test message passing through the first forwarding The length of time for the route to travel to the exit node.
当获取到该时长后,该入口节点将该时长作为该第一转发路径在当前时刻的传输时延。该传输时延Delay如下述公式所示,其中,t1为该测试报文的发送时间,t2为该测试报文的 接收时间。After acquiring the duration, the ingress node uses the duration as the transmission delay of the first forwarding path at the current moment. The transmission delay Delay is shown in the following formula, where t1 is the sending time of the test packet, and t2 is the receiving time of the test packet.
Delay=t2-t1Delay=t2-t1
若该入口节点通过该第一转发路径向该出口节点发送多个测试报文,该入口节点每接收到一个响应报文,均执行本步骤2031,从而该入口节点能够获取到该第一转发路径在不同时刻的传输时延,因此,通过测试报文该入口节点能够实时测试该第一转发路径的传输时延。If the ingress node sends multiple test packets to the egress node through the first forwarding path, the ingress node executes step 2031 each time it receives a response packet, so that the ingress node can obtain the first forwarding path The transmission delay at different times, therefore, the ingress node can test the transmission delay of the first forwarding path in real time by testing the packet.
步骤2032、当该传输特征包括传输抖动值时,该入口节点基于相邻两个该测试报文所确定的传输时延,获取该传输抖动值。Step 2032: When the transmission characteristic includes a transmission jitter value, the ingress node acquires the transmission jitter value based on the transmission delay determined by two adjacent test packets.
该相邻两个该测试报文为该入口节点接收到的任意相邻两个响应报文所对应的测试报文,或者,为相邻的两个有效测试报文,一个测试报文是否有效取决于入口节点能否接收到该测试报文的响应报文。若该入口节点能够接收到该测试报文的响应报文,则该测试报文为有效测试报文,若该入口节点没有接收到该测试报文的响应报文,则该测试报文可能在传输的过程中丢失,该测试报文为无效测试报文。The two adjacent test packets are test packets corresponding to any two adjacent response packets received by the ingress node, or, two adjacent valid test packets, whether one test packet is valid Depends on whether the ingress node can receive the response message of the test message. If the entry node can receive the response packet of the test packet, the test packet is a valid test packet. If the entry node does not receive the response packet of the test packet, the test packet may be in the If it is lost during transmission, the test packet is an invalid test packet.
例如,该入口节点通过该第一转发路径向该出口节点依次发送测试报文1、测试报文2和测试报文3,若该入口节点接收到该测试报文1的响应报文1、该测试报文2的响应报文2以及该测试报文3的响应报文3,则测试报文1-3均为有效测试报文,其中,测试报文1和测试报文2为相邻两个测试报文,测试报文2和测试报文3为相邻两个测试报文;若该入口节点接收到响应报文1以及响应报文3,没有接收到响应报文2,则测试报文2为无效测试报文,测试报文1和测试报文3为相邻两个测试报文。For example, the ingress node sends test message 1, test message 2, and test message 3 to the egress node sequentially through the first forwarding path. If the ingress node receives the response message 1 of the test message 1, the The response packet 2 of the test packet 2 and the response packet 3 of the test packet 3, the test packets 1-3 are all valid test packets, wherein the test packet 1 and the test packet 2 are adjacent two. test packets, test packet 2 and test packet 3 are two adjacent test packets; if the entry node receives response packet 1 and response packet 3, but does not receive response packet 2, the test packet The message 2 is an invalid test message, and the test message 1 and the test message 3 are two adjacent test messages.
该入口节点对该相邻两个测试报文均执行上述步骤2031,从而该入口节点能够获取到基于该相邻两个测试报文所确定的两个传输时延,该入口节点将该两个传输时延之差的绝对值确定为该第一转发路径在当前时刻的时延抖动值。该时延抖动值Jitter如入下述公式所示,其中,Delay1为基于该相邻两个测试报文中的第一个测试报文所确定的传输时延,Delay2为基于该相邻两个测试报文中的第二个测试报文所确定的传输时延。The ingress node performs the above step 2031 on both the adjacent two test packets, so that the ingress node can obtain the two transmission delays determined based on the two adjacent test packets, and the ingress node uses the two adjacent test packets to obtain the two transmission delays. The absolute value of the difference between the transmission delays is determined as the delay jitter value of the first forwarding path at the current moment. The delay jitter value Jitter is shown in the following formula, where Delay1 is the transmission delay determined based on the first test packet in the two adjacent test packets, and Delay2 is based on the two adjacent test packets. Transmission delay determined by the second test packet in the test packet.
Jitter=|Delay2-Delay1|Jitter=|Delay2-Delay1|
步骤2033、当该传输特征包括丢包率时,该入口节点基于目标发送个数以及目标接收个数,确定该丢包率,该目标发送个数为在一个时间窗口内,该入口节点通过该第一转发路径向该出口节点发送该测试报文的总个数,该目标接收个数为该出口节点接收到的该入口节点在该时间窗口内通过该第一转发路径发送的该测试报文的总个数。Step 2033, when the transmission characteristic includes a packet loss rate, the ingress node determines the packet loss rate based on the number of target transmissions and the number of target receptions, and the target number of transmissions is within a time window, and the ingress node passes the The total number of the test packets sent by the first forwarding path to the egress node, and the target received number is the test packets received by the egress node and sent by the ingress node through the first forwarding path within the time window the total number of.
在该时间窗口内,该入口节点通过该第一转发路径向该出口节点发送多个测试报文,每个测试报文均携带该时间窗口的标识,该入口节点统计该多个测试报文的总个数,得到该目标发送个数。Within the time window, the ingress node sends a plurality of test packets to the egress node through the first forwarding path, and each test packet carries an identifier of the time window, and the ingress node counts the data of the plurality of test packets. The total number, get the number of the target sent.
该出口节点每接收到一个测试报文,均向该入口节点返回该测试报文的响应报文,且该响应报文携带该测试报文的发送时间所属的时间窗口的标识,则该入口节点统计携带该时间窗口的标识的响应报文的总个数,得到该目标接收个数。Each time the exit node receives a test packet, it returns a response packet of the test packet to the entry node, and the response packet carries the identifier of the time window to which the sending time of the test packet belongs, then the entry node The total number of response packets carrying the identifier of the time window is counted to obtain the number of received packets by the target.
当获取到该目标发送个数和目标接收个数后,该入口节点将该目标发送个数与该目标接收个数之间的差,确定为目标丢失个数,该目标丢失个数为该第一转发路径在传输该多个测试报文时所丢失的测试报文的总个数;该入口节点将该目标丢失个数与该目标发送个数之间的比值确定为该第一转发路径在该时间窗口的该丢失率。该丢失率Loss如入下述公式所示,其中,S1为目标发送个数,S2为目标接收个数。After obtaining the number of targets sent and received, the entry node determines the difference between the number of targets sent and the number of targets received as the number of lost targets, and the number of lost targets is the number of lost targets. The total number of test packets lost when a forwarding path transmits the plurality of test packets; the ingress node determines the ratio between the number of lost targets and the number of targets sent as the first forwarding path in This loss rate for this time window. The loss rate Loss is shown in the following formula, where S1 is the number of target transmissions, and S2 is the number of target receptions.
Loss=(S1-S2)/S1Loss=(S1-S2)/S1
在一些实施例中,若传输特征包括丢失率,该入口节点在每个时间窗口内均执行本步骤2033,从而该入口节点能够得到该第一转发路径在每个时间窗口内的丢失率。在另一些实施例中,若传输特征不包括丢失率,该入口节点不执行本步骤2033,且测试报文和响应报文也无须携带时间窗口的标识。In some embodiments, if the transmission characteristic includes a loss rate, the ingress node performs step 2033 in each time window, so that the ingress node can obtain the loss rate of the first forwarding path in each time window. In other embodiments, if the transmission characteristic does not include the loss rate, the ingress node does not perform this step 2033, and the test message and the response message do not need to carry the identifier of the time window.
204、该入口节点基于该第一转发路径的传输特征,为该第一转发路径分配第一目标权重,该转发路径的第一目标权重用于表示该第一转发路径的负载分担状态。204. The ingress node assigns a first target weight to the first forwarding path based on the transmission characteristic of the first forwarding path, where the first target weight of the forwarding path is used to indicate a load sharing state of the first forwarding path.
该第一转发路径的传输特征包括N种传输指标的指标值,例如该N种传输指标包括时延指标、延抖动指标以及丢包指标中的至少一个,传输时延为时延指标的指标值,时延抖动值为时延抖动指标的指标值,丢包率为丢包指标的指标值。本申请实施例以传输特征包括传输时延、时延抖动值以及丢包率为例进行说明。The transmission characteristics of the first forwarding path include index values of N types of transmission indicators, for example, the N types of transmission indicators include at least one of a delay index, a delay jitter index, and a packet loss index, and the transmission delay is the index value of the delay index , the delay jitter value is the index value of the delay jitter index, and the packet loss rate is the index value of the packet loss index. The embodiments of the present application are described by taking the transmission characteristics including transmission delay, delay jitter value, and packet loss ratio as an example.
在一些实施例中,该入口节点先为每种传输指标分配权重,然后再基于每种传输指标所对应的权重,为该第一转发路径分配第一目标权重。在一种可能的实现方式中,本步骤204由下述步骤2041-2042所示的过程来实现。In some embodiments, the ingress node first assigns a weight to each transmission index, and then assigns a first target weight to the first forwarding path based on the weight corresponding to each transmission index. In a possible implementation manner, this step 204 is implemented by the processes shown in the following steps 2041-2042.
步骤2041、该入口节点基于目标业务的SLA,为该N种传输指标中的第i种传输指标分配第i权重,该第i种传输指标的第i权重用于表示该第i种传输指标对该目标业务的重要程度,该i为大于等于1且小于等于N的整数。Step 2041: Based on the SLA of the target service, the ingress node allocates the i-th weight to the i-th transmission indicator in the N-type transmission indicators, and the i-th weight of the i-th transmission indicator is used to represent the i-th transmission indicator pair The importance of the target service, where i is an integer greater than or equal to 1 and less than or equal to N.
其中,该第i种传输指标的第i权重也即是第i种传输指标所对应的权重。目标业务的SLA对不同的传输指标所要求的优先级不同,一种传输指标的优先级用于指示该SLA要求该转发路径满足该传输指标的优先情况。转发路径先满足SLA对高优先级的传输指标的要求,再满足SLA对低优先级的传输指标的要求。Wherein, the i-th weight of the i-th transmission indicator is also the weight corresponding to the i-th transmission indicator. The SLA of the target service requires different priorities for different transmission indicators, and the priority of one transmission indicator is used to indicate that the SLA requires the forwarding path to satisfy the priority of the transmission indicator. The forwarding path first meets the SLA requirements for high-priority transmission indicators, and then satisfies the SLA requirements for low-priority transmission indicators.
该入口节点基于该SLA所规定的该N种传输指标的优先级,为每种传输指标分配不同的权重,该N种传输指标的优先级的变化趋势与该N种传输指标所对应的权重的变化趋势相同,例如若该N种传输指标的优先级的变化趋势为逐渐升高,则该N种传输指标所对应的N个权重的变化趋势也是逐渐升高,若该N种传输指标的优先级的变化趋势为逐渐降低,则该N种传输指标所对应的N个权重的变化趋势也是逐渐降低。The ingress node assigns different weights to each transmission indicator based on the priorities of the N types of transmission indicators specified by the SLA, and the change trend of the priorities of the N types of transmission indicators is proportional to the weights corresponding to the N types of transmission indicators. The change trend is the same. For example, if the change trend of the priority of the N kinds of transmission indicators is gradually increasing, the change trend of the N weights corresponding to the N kinds of transmission indicators is also gradually increased. If the priority of the N kinds of transmission indicators The change trend of the level is gradually reduced, and the change trend of the N weights corresponding to the N kinds of transmission indicators is also gradually reduced.
再例如,时延指标处于第一优先级、时延抖动指标处于第二优先级,丢包指标处于第三优先级,其中,第一优先级高于第二优先级,第二优先级高于第三优先级,则该入口节点为该时延指标、时延抖动指标以及丢包指标分配的权重分别为0.6、0.3、0.1。For another example, the delay index is at the first priority, the delay jitter index is at the second priority, and the packet loss index is at the third priority, where the first priority is higher than the second priority, and the second priority is higher than For the third priority, the weights assigned by the entry node to the delay index, delay jitter index, and packet loss index are 0.6, 0.3, and 0.1, respectively.
步骤2042、该入口节点基于该N种传输指标中的每种传输指标所对应的权重以及该每种传输指标的指标值,获得该第一转发路径的第一目标权重。Step 2042: The ingress node obtains the first target weight of the first forwarding path based on the weight corresponding to each of the N types of transmission indicators and the index value of each of the transmission indicators.
对于该N种传输指标中的第i种传输指标,该入口节点获取该传输特征中该第i种传输指标的指标值所对应第i权重,该第一转发路径的第i种传输指标的指标值所对应的第i权重用于表示该第一转发路径在该第j种传输指标下的优劣程度,其中,i为大于等于1且小于等于N的整数。For the i-th transmission indicator among the N types of transmission indicators, the ingress node obtains the i-th weight corresponding to the indicator value of the i-th transmission indicator in the transmission feature, and the indicator of the i-th transmission indicator of the first forwarding path The i-th weight corresponding to the value is used to indicate the degree of pros and cons of the first forwarding path under the j-th transmission index, where i is an integer greater than or equal to 1 and less than or equal to N.
其中,该入口节点该入口节点获取该传输特征中该第i种传输指标的指标值所对应的第i权重的方式包括下述方式1和方式2。The manner in which the entry node obtains the i th weight corresponding to the index value of the i th transmission index in the transmission characteristic includes the following manners 1 and 2.
方式1、该入口节点将该第一转发路径的该第i种传输指标的指标值所属的指标区间对应的权重,确定为该第i种传输指标的指标值所对应的第i权重。Manner 1: The ingress node determines the weight corresponding to the index interval to which the index value of the i-th transmission index of the first forwarding path belongs to the i-th weight corresponding to the index value of the i-th transmission index.
该入口节点为该第i种传输指标设置多个指标区间,每个指标区间包括多个指标值,每个指标区间分别对应一个权重。任一指标区间中的指标值与对应的权重之间呈反比关系,也即是该任一指标区间中指标值越大,对应的权重越小,反之,对应的权重越大。例如该第i种传输指标为时延指标,时延指标下的多个指标区间包括时延指标区间1[0,20ms]、时延指标区间2(20ms,1000us]、时延指标区间3(1000ms,∞),该时延指标区间1对应的权重为0.5,该时延指标区间2对应的权重为0.2,该时延指标区间3对应的权重为0.3。The entry node sets a plurality of indicator intervals for the i-th transmission indicator, each indicator interval includes a plurality of indicator values, and each indicator interval corresponds to a weight. There is an inverse relationship between the index value in any index interval and the corresponding weight, that is, the larger the index value in any index interval, the smaller the corresponding weight, and vice versa, the greater the corresponding weight. For example, the i-th transmission indicator is a delay indicator, and the multiple indicator intervals under the delay indicator include a delay indicator interval 1 [0, 20ms], a delay indicator interval 2 (20ms, 1000us], and a delay indicator interval 3 ( 1000ms, ∞), the weight corresponding to the delay indicator interval 1 is 0.5, the weight corresponding to the delay indicator interval 2 is 0.2, and the weight corresponding to the delay indicator interval 3 is 0.3.
在一种可能的实现方式中,该入口节点为该第i种传输指标设置指标阈值,若第i种传输指标下任一指标区间中的最小指标值大于该指标阈值,则该入口节点将该任一指标区间所对应的权重设置为0。In a possible implementation manner, the entry node sets an index threshold for the i-th transmission index, and if the minimum index value in any index interval under the i-th transmission index is greater than the index threshold, the entry node sets the index threshold for the i-th transmission index. The weight corresponding to any indicator interval is set to 0.
可选地,该第i种传输指标的指标阈值由该SLA所规定。可选地,该第i种传输指标的指标阈值,在实际不同的网络环境下可能有所不同,在此本申请实施例对入口节点为该第i种传输指标设置的指标阈值不做具体限定。Optionally, the indicator threshold of the i-th transmission indicator is specified by the SLA. Optionally, the indicator threshold of the i-th transmission indicator may be different under different actual network environments, and the embodiment of the present application does not specifically limit the indicator threshold set by the ingress node for the i-th transmission indicator. .
方式2、对于该传输特征中第i种传输指标的指标值,该入口节点将该第i种传输指标的指标阈值与该指标值的比值,确定为该指标值对应的第i权重。Mode 2: For the index value of the ith transmission index in the transmission feature, the entry node determines the ratio of the index threshold of the ith transmission index to the index value as the ith weight corresponding to the index value.
当该入口节点获取到该第一转发路径的传输特征中每种传输指标的指标值所对应的权重后,该入口节点将该N种传输指标中的每种传输指标的指标值所对应的权重、每种传输指标所对应的权重输入下述公式,计算得到该第一转发路径的第一目标权重W x,其中,w i为该N种传输指标中第i种传输指标对应的第i权重,w 0,i为该第一转发路径的传输特征中该第i种传输指标的指标值所对应的第i权重。 After the entry node obtains the weight corresponding to the index value of each transmission index in the transmission characteristics of the first forwarding path, the entry node corresponds to the weight corresponding to the index value of each transmission index among the N types of transmission index , The weight corresponding to each kind of transmission index is input into the following formula, and the first target weight W x of the first forwarding path is calculated and obtained, wherein, w i is the i-th weight corresponding to the i-th transmission index in the N kinds of transmission indicators , w 0, i is the ith weight corresponding to the index value of the ith transmission index in the transmission characteristics of the first forwarding path.
Figure PCTCN2021115465-appb-000001
Figure PCTCN2021115465-appb-000001
在一些实施例中,该入口节点无须基于每种传输指标对应的权重,来确定该第一转发路径的第一目标权重,而是直接基于该传输特征中每个指标值的大小,来确定该第一转发路径的第一目标权重。在一种可能的实现方式中,本步骤204由下述步骤204A-204B所示的过程来实现。In some embodiments, the ingress node does not need to determine the first target weight of the first forwarding path based on the weight corresponding to each transmission index, but directly determines the value of each index in the transmission characteristic to determine the first target weight. The first target weight of the first forwarding path. In a possible implementation manner, this step 204 is implemented by the process shown in the following steps 204A-204B.
步骤204A、对于该N种传输指标中的第i种传输指标,为该第一转发路径的第i种传输指标的指标值分配第i权重,该第i种传输指标的指标值的第i权重用于表示在该第i种传输指标下该第一转发路径相对于k个转发路径的优劣程度,该i为大于等于1且小于等于N的整数,该k为大于等于1的整数。Step 204A: For the i-th transmission indicator among the N transmission indicators, assign the i-th weight to the indicator value of the i-th transmission indicator of the first forwarding path, and the i-th weight of the indicator value of the i-th transmission indicator It is used to indicate the pros and cons of the first forwarding path relative to the k forwarding paths under the i-th transmission index, where i is an integer greater than or equal to 1 and less than or equal to N, and k is an integer greater than or equal to 1.
第i种传输指标的指标值的第i权重为该第一转发路径的该第i种传输指标的指标值所对应的权重。该k个转发路径为该第一转发路径所属的候选转发路径中的子路径,该第一转发路径为该k个转发路径中的任一个,为了便于表述将该第一转发路径所属的候选转发路径记为“第一候选转发路径”。The i-th weight of the index value of the i-th transmission index is the weight corresponding to the index value of the i-th transmission index of the first forwarding path. The k forwarding paths are sub-paths in the candidate forwarding paths to which the first forwarding path belongs, and the first forwarding path is any one of the k forwarding paths. For the convenience of expressing the candidate forwarding paths to which the first forwarding path belongs The path is denoted as "the first candidate forwarding path".
对于该N种传输指标中的第i种传输指标,该入口节点对该k个转发路径的传输特征中该第i种传输指标的指标值进行排序,得到该第i种传输指标对应的指标值序列。在一种可能的实现方式中,按照从小到大的顺序,该入口节点对该k个转发路径的传输特征中该第i种传输指标的指标值进行排序,其中,该第i种传输指标的指标值越小的转发路径,在该第i种传输指标的性能越优。For the i-th transmission indicator among the N types of transmission indicators, the ingress node sorts the indicator values of the i-th transmission indicator in the transmission characteristics of the k forwarding paths, and obtains the indicator value corresponding to the i-th transmission indicator sequence. In a possible implementation manner, in an ascending order, the entry node sorts the index values of the i-th transmission indicator in the transmission characteristics of the k forwarding paths, wherein the i-th transmission indicator is The smaller the index value of the forwarding path, the better the performance of the i-th transmission index.
当得到该指标值序列后,该入口节点基于该指标值序列,为该第一转发路径的第i种传输 指标的指标值分配第i权重。在一种可能的实现方式中,该入口节点基于该第一转发路径的该第i种传输指标的指标值在该指标值序列中的排序,获得该第一转发路径的第i种传输指标的指标值的第i权重,其中,该第i种传输指标的指标值越小的转发路径所分配的第i权重越大,反之,分配的第i权重越小。After obtaining the index value sequence, the entry node assigns the ith weight to the index value of the ith transmission index of the first forwarding path based on the index value sequence. In a possible implementation manner, the ingress node obtains the i-th transmission index of the first forwarding path based on the order of the index values of the i-th transmission index of the first forwarding path in the index value sequence The ith weight of the index value, where the smaller the index value of the ith type of transmission index is, the larger the ith weight is assigned to the forwarding path, and vice versa, the smaller the ith weight is assigned.
可选地,该第一转发路径的该第i种传输指标的指标值的第i权重w 1,i包括下述任一种形式,其中,R为该第一转发路径在该指标值序列中的排序,a和b均为大于或等于1的整数。 Optionally, the i-th weight w 1, i of the indicator value of the i-th transmission indicator of the first forwarding path includes any of the following forms, where R is the indicator value sequence of the first forwarding path. , where a and b are both integers greater than or equal to 1.
w 1,i=N-R,w 1,i=a*(N-R),w 1,i=N-R+b或w 1,i=a*(N-R)+b w 1,i =NR,w 1,i =a*(NR),w 1,i =N-R+b or w 1,i =a*(NR)+b
步骤204B、该入口节点基于该第一转发路径在该N种传输指标中每种传输指标的指标值的权重,确定该第一转发路径的第一目标权重。Step 204B, the ingress node determines a first target weight of the first forwarding path based on the weight of the index value of each transmission index among the N kinds of transmission indexes of the first forwarding path.
该入口节点将该第一转发路径在该N种传输指标中的每种传输指标的指标值的权重之和,确定为该第一转发路径的第一目标权重。The entry node determines the sum of the weights of the index values of each transmission index of the first forwarding path in the N kinds of transmission indexes as the first target weight of the first forwarding path.
在一些实施例中,该入口节点基于该N种传输指标中的每种传输指标所对应的权重、该第一转发路径的每种传输指标的指标值的权重,确定该第一转发路径的第一目标权重。可选地,该入口节点将该N种传输指标中的每种传输指标所对应的权重、该第一转发路径在该N种传输指标中的每种传输指标的指标值的权重输入下述公式,计算得到该第一转发路径的第一目标权重W x,其中,w 1,i该第一转发路径的该第i种传输指标的指标值的第i权重。 In some embodiments, the ingress node determines the first forwarding path's first forwarding path based on a weight corresponding to each of the N types of transmission metrics and the weight of the index value of each of the transmission metrics of the first forwarding path. a target weight. Optionally, the entry node inputs the weight corresponding to each of the N types of transmission indicators and the weight of the index value of each of the N types of transmission indicators of the first forwarding path into the following formula: , the first target weight W x of the first forwarding path is obtained by calculation, wherein w 1, i is the ith weight of the index value of the ith transmission index of the first forwarding path.
Figure PCTCN2021115465-appb-000002
Figure PCTCN2021115465-appb-000002
当该入口节点通过本步骤204获取到该第一转发路径的第一目标权重后,该入口节点将该SR Policy中该第一转发路径的第五目标权重更新为该第一转发路径的第一目标权重。After the ingress node obtains the first target weight of the first forwarding path through this step 204, the ingress node updates the fifth target weight of the first forwarding path in the SR Policy to the first target weight of the first forwarding path target weight.
该入口节点可以按照上述步骤201-204所示的过程,为该SR Policy所指示的每个候选转发路径的每个子路径分配一个第一目标权重,并将该SR Policy中每个子路径的第五目标权重更新成为每个子路径分配的第一目标权重。The entry node may assign a first target weight to each sub-path of each candidate forwarding path indicated by the SR Policy according to the process shown in the above steps 201-204, and assign the fifth target weight of each sub-path in the SR Policy The goal weight update becomes the first goal weight assigned to each subpath.
205、若该第一转发路径所属的第一候选转发路径为该数据流的主候选路径,该入口节点基于该第一候选转发路径中的k个转发路径的第一目标权重,通过该k个转发路径,向该出口节点发送该数据流。205. If the first candidate forwarding path to which the first forwarding path belongs is the primary candidate path of the data flow, the ingress node passes the k forwarding paths based on the first target weights of the k forwarding paths in the first candidate forwarding path. The forwarding path sends the data stream to the exit node.
当该入口节点接收到该数据流后,对于该k个转发路径中的第一转发路径,该入口节点通过该第一转发路径,向该出口节点发送该数据流中该第一转发路径的第一目标权重占比的数据。例如,第一转发路径的第一目标权重为0.3,则入口节点将该数据流中30%的数据通过该第一转发路径传输至出口节点。After the ingress node receives the data stream, for the first forwarding path in the k forwarding paths, the ingress node sends the first forwarding path in the data stream to the egress node through the first forwarding path. A target weight proportion of data. For example, if the first target weight of the first forwarding path is 0.3, the ingress node transmits 30% of the data in the data stream to the egress node through the first forwarding path.
在一些实施例中,当获取到该第一转发路径的传输特征之后,该入口节点基于该第一转发路径的传输特征以及目标业务的SLA,确定该第一转发路径是否满足该SLA。可选地,若该第一转发路径的传输特征中的至少一个指标值满足该SLA规定的指标阈值,则该入口节点确定该第一转发路径满足该SLA,否则,该入口节点确定该第一转发路径不满足该SLA。例如该第一转发路径的传输时延小于或等于该SLA规定的时延指标的指标阈值,则该第一转发路径满足该SLA。In some embodiments, after acquiring the transmission characteristics of the first forwarding path, the ingress node determines whether the first forwarding path satisfies the SLA based on the transmission characteristics of the first forwarding path and the SLA of the target service. Optionally, if at least one indicator value in the transmission characteristics of the first forwarding path satisfies the indicator threshold specified by the SLA, the ingress node determines that the first forwarding path satisfies the SLA; otherwise, the ingress node determines that the first forwarding path satisfies the SLA. The forwarding path does not meet this SLA. For example, the transmission delay of the first forwarding path is less than or equal to the index threshold of the delay index specified by the SLA, and the first forwarding path satisfies the SLA.
若该第一转发路径满足该SLA,该入口节基于该第一转发路径的传输特征,为该第一转发路径分配第一目标权重。若该第一转发路径不满足该SLA,则该入口节点将该第一转发路径的第一目标权重设置为0,以避免后续采用该第一转发路径转发该目标业务的数据流。If the first forwarding path satisfies the SLA, the ingress node assigns a first target weight to the first forwarding path based on transmission characteristics of the first forwarding path. If the first forwarding path does not meet the SLA, the ingress node sets the first target weight of the first forwarding path to 0, so as to avoid using the first forwarding path to forward the data flow of the target service subsequently.
上述步骤203-204所示的过程为该入口节点为每个候选路径中的每个子路径分配权重的过程。在一些实施例中,该入口节点还能够为SR Policy所指示的m个候选转发路径分配第三目标权重,其中,一个候选转发路径的第三目标权重用于表示该候选转发路径在该m个候选转发路径中的优先级。The process shown in the above steps 203-204 is a process in which the entry node assigns a weight to each sub-path in each candidate path. In some embodiments, the ingress node can further assign a third target weight to the m candidate forwarding paths indicated by the SR Policy, wherein the third target weight of a candidate forwarding path is used to indicate that the candidate forwarding path is among the m candidate forwarding paths Priority in candidate forwarding paths.
在一种可能的实现方式中,对于该第一转发路径所属的第一候选转发路径,该入口节点按照上述步骤203-204所示的过程为该第一候选转发路径分配第三目标权重。In a possible implementation manner, for the first candidate forwarding path to which the first forwarding path belongs, the ingress node assigns a third target weight to the first candidate forwarding path according to the process shown in the foregoing steps 203-204.
在另一种可能的实现方式中,该入口节点通过下述步骤A-B所示的过程,为该第一候选转发路径分配第三目标权重。In another possible implementation manner, the ingress node assigns a third target weight to the first candidate forwarding path through the process shown in the following steps A-B.
步骤A、对于该N种传输指标中的第i种传输指标,该入口节点基于该第一转发路径的该第i种传输指标的指标值,为该第一转发路径分配在该第i种传输指标下的第二目标权重,该第一转发路径在该第i种传输指标下的第二目标权重用于表示该第一转发路径在该第i种传输指标下相对于m个候选路径中各个转发路径的优劣程度。Step A, for the i-th transmission index in the N kinds of transmission indicators, the entry node allocates the i-th transmission index for the first forwarding path based on the index value of the i-th transmission index of the first forwarding path. The second target weight under the indicator, the second target weight of the first forwarding path under the i-th transmission indicator is used to indicate that the first forwarding path is relative to each of the m candidate paths under the i-th transmission indicator. The pros and cons of the forwarding path.
该入口节点先对该m个候选转发路中各个转发路径的传输特征中的第i种传输指标的指标值进行排序,再基于排序结果,为该m个候选转发路径中的各个转发路径分配在该第i种传输指标下的第二目标权重。在一种可能的实现方式中,对于该N种传输指标中的第i种传输指标,按照从小到大的顺序,该入口节点对m个候选转发路径中各个转发路径的该第i种传输指标的指标值进行排序,得到该第i种传输指标对应的目标指标序列。该入口节点根据目标指标序列中该第一转发路径的第i种传输指标的指标值的排序,确定该第一转发路径的第i种传输指标的指标值对应的权重,其中,目标指标序列中越小的指标值对应的权重越大,越大的指标值对应的权重越小。该入口节点将该第一转发路径的第i种传输指标的指标值所对应的权重,确定为第一转发路径在该第i种传输指标下的第二目标权重。The entry node first sorts the index value of the i-th transmission index in the transmission characteristics of each forwarding path among the m candidate forwarding paths, and then, based on the sorting result, assigns each forwarding path among the m candidate forwarding paths an The second target weight under the i-th transmission index. In a possible implementation manner, for the i-th transmission indicator among the N types of transmission indicators, in an order from small to large, the ingress node compares the i-th transmission indicator of each forwarding path among the m candidate forwarding paths The index values are sorted, and the target index sequence corresponding to the i-th transmission index is obtained. The entry node determines the weight corresponding to the index value of the i-th transmission index of the first forwarding path according to the order of the index values of the i-th transmission index of the first forwarding path in the target index sequence, wherein the target index sequence in A smaller index value corresponds to a larger weight, and a larger index value corresponds to a smaller weight. The ingress node determines the weight corresponding to the index value of the i-th transmission index of the first forwarding path as the second target weight of the first forwarding path under the i-th transmission index.
步骤B、该入口节点基于该第一转发路径相对于该m个候选路径在N种传输指标中的每种传输指标下的第二目标权重,确定该第一候选转发路径的第三目标权重,该第三目标权重用于指示该第一候选转发路径在该m个候选转发路径中的优先级。Step B, the ingress node determines the third target weight of the first candidate forwarding path based on the second target weight of the first forwarding path relative to the m candidate paths under each of the N kinds of transmission indicators, The third target weight is used to indicate the priority of the first candidate forwarding path among the m candidate forwarding paths.
在一种可能的实现方式中,该入口节点将该N种传输指标中每种传输指标对应的权重、该第一转发路径相对于该m个候选路径在N种传输指标中的每种传输指标下的第二目标权重输入下述公式,计算得到该第一候选转发路径的第三目标权重W y。其中,该w 2,s,i为该第一候选转发路径中第s个转发路径在第i种传输特征下的第二目标权重,该s为大于等于1且小于等于m的整数。 In a possible implementation manner, the ingress node includes a weight corresponding to each of the N types of transmission indicators, and the first forwarding path relative to the m candidate paths in each of the N types of transmission indicators. The following formula is input to the second target weight of the first candidate forwarding path, and the third target weight W y of the first candidate forwarding path is obtained by calculation. Wherein, the w 2,s,i is the second target weight of the s-th forwarding path in the first candidate forwarding path under the i-th transmission characteristic, and the s is an integer greater than or equal to 1 and less than or equal to m.
Figure PCTCN2021115465-appb-000003
Figure PCTCN2021115465-appb-000003
在一些实施例中,该入口节点基于该第一候选转发路径中满足该SLA的转发路径的个数,为该第一候选转发路径分配第三目标权重。在一种可能的实现方式中,该入口节点设置有多个目标个数区间,每个目标个数区间包括多个目标个数,多个目标个数区间分别对应一个权重,其中,该多个目标个数区间中目标个数越大的目标个数区间对应的权重越大,反之,对应的权重越小。该入口节点将该第一候选路径中满足该SLA的转发路径的个数所属的目标个数区间对应的权重,确定为该第一候选转发路径的第三目标权重。例如目标个数区间1[1,3]对应的权重为0.4,目标个数区间2[4,7]对应的权重为0.6,若该第一候选转发路径中满足该SLA的转发路径的个数为6,则该入口节点将权重0.6作为该第一候选转发路径的第三目标权 重。In some embodiments, the ingress node assigns a third target weight to the first candidate forwarding path based on the number of forwarding paths in the first candidate forwarding path that satisfy the SLA. In a possible implementation manner, the entry node is set with multiple target number intervals, each target number interval includes multiple target numbers, and the multiple target number intervals correspond to a weight, wherein the multiple target number intervals correspond to a weight. In the target number interval, the target number interval with the larger target number corresponds to the larger weight, and vice versa, the corresponding weight is smaller. The entry node determines a weight corresponding to a target number interval to which the number of forwarding paths satisfying the SLA in the first candidate path belongs to a third target weight of the first candidate forwarding path. For example, the weight corresponding to the target number interval 1 [1, 3] is 0.4, and the weight corresponding to the target number interval 2 [4, 7] is 0.6. If the first candidate forwarding path has the number of forwarding paths that satisfy the SLA is 6, the ingress node takes the weight 0.6 as the third target weight of the first candidate forwarding path.
举例说明,当该入口节点确定出该第一候选转发路径的第三目标权重后,该入口节点将该SR Policy中该第一候选转发路径的第四目标权重更新为该第一候选转发路径的第三目标权重。该入口节点可以按照为第一候选转发路径分配第三目标权重的方式,为该SR Policy所指示的各个候选转发路径分配第三目标权重,并将SR Policy中各个候选转发路径的第四目标权重更新成为其分配的第三目标权重。当入口节点接收到该目标业务的数据流,将更新后的SR Policy中第三目标权重最大的候选转发路径,确定为该数据流的主候选路径,若第一候选节点为主候选路径,则该入口节点基于该第一候选路径中m个转发路径的第一目标权重,通过该m个转发路径,向该出口节点发送该数据流。For example, after the ingress node determines the third target weight of the first candidate forwarding path, the ingress node updates the fourth target weight of the first candidate forwarding path in the SR Policy to the value of the first candidate forwarding path. The third target weight. The ingress node may assign the third target weight to each candidate forwarding path indicated by the SR Policy in the manner of allocating the third target weight to the first candidate forwarding path, and assign the fourth target weight of each candidate forwarding path in the SR Policy The update becomes its assigned third target weight. When the entry node receives the data stream of the target service, it determines the candidate forwarding path with the third largest target weight in the updated SR Policy as the main candidate path of the data stream. If the first candidate node is the main candidate path, then The ingress node sends the data stream to the egress node through the m forwarding paths based on the first target weights of the m forwarding paths in the first candidate path.
本申请实施例所提供的方法,通过入口节点为各个转发路径分配权重,无须控制节点为各个转发路径分配权重,从而节省了控制节点的计算开销。并且,基于目标业务的SLA,为各个转发路径分配权重,以便后续入口节点优先采用满足SLA的转发路径传输数据流。并且,入口节点基于N种传输指标中每种传输指标对应的权重以及每个转发路径在每种传输指标下对应的权重,确定每个转发路径的第一目标权重,使分配的各个转发路径的第一目标权重更加合理。并且,该入口节点通过在各个转发路径上传输测试报文,能够获取到各个转发路径的传输特征,以便入口节点基于各个转发路径的传输特征为各个转发路径分配权重。In the method provided by the embodiment of the present application, the weight is allocated to each forwarding path through the entry node, and the control node does not need to allocate the weight to each forwarding path, thereby saving the calculation overhead of the control node. Moreover, based on the SLA of the target service, weights are assigned to each forwarding path, so that subsequent ingress nodes preferentially use forwarding paths that meet the SLA to transmit data streams. In addition, the ingress node determines the first target weight of each forwarding path based on the weight corresponding to each of the N kinds of transmission indicators and the corresponding weight of each forwarding path under each transmission indicator, so that the assigned weight of each forwarding path is The first target weight is more reasonable. In addition, the ingress node can acquire the transmission characteristics of each forwarding path by transmitting test packets on each forwarding path, so that the ingress node can assign weights to each forwarding path based on the transmission characteristics of each forwarding path.
以上介绍了本申请实施例的方法,以下介绍本申请实施例的装置。以下介绍的装置具有上述方法中入口节点的任意功能。The methods of the embodiments of the present application are described above, and the devices of the embodiments of the present application are described below. The apparatus described below has any of the functions of the entry node in the above method.
图4是本申请实施例提供的一种路径权重分配装置的结构示意图,所述装置400包括:FIG. 4 is a schematic structural diagram of an apparatus for allocating path weights provided by an embodiment of the present application. The apparatus 400 includes:
获取模块401,用于执行上述步骤203;an acquisition module 401, configured to perform the above step 203;
分配模块402,用于执行上述步骤204。The allocation module 402 is configured to perform the above step 204 .
可选地,所述分配模块用于执行上述步骤2041-4042。Optionally, the allocation module is configured to perform the above steps 2041-4042.
可选地,所述分配模块包括:Optionally, the distribution module includes:
第一分配单元,用于执行上述步骤204A-404B。The first allocation unit is used to perform the above steps 204A-404B.
可选地,所述第一分配单元用于:对所述k个转发路径的传输特征中所述第i种传输指标的指标值进行排序,得到所述第i种传输指标对应的指标值序列;基于所述第一转发路径的所述第i种传输指标的指标值在所述指标值序列中的排序,获得所述第一转发路径的第i种传输指标的指标值的第i权重。Optionally, the first allocating unit is configured to: sort the index values of the i-th transmission index in the transmission characteristics of the k forwarding paths, and obtain an index value sequence corresponding to the i-th transmission index. ; Based on the ordering of the index values of the i-th transmission index of the first forwarding path in the index value sequence, obtain the i-th weight of the index value of the i-th transmission index of the first forwarding path.
可选地,所述分配模块用于:基于所述N种传输指标中的每种传输指标所对应的权重、所述第一转发路径的所述每种传输指标的指标值的权重,确定所述第一目标权重;其中,任一种传输指标所对应的权重用于表示所述任一种传输指标对目标业务的重要程度,所述第一转发路径的所述任一种传输指标的指标值的权重用于表示在所述任一种传输指标下所述第一转发路径相对于k个转发路径的优劣程度,所述k为大于等于1的整数。Optionally, the allocating module is configured to: based on the weight corresponding to each transmission indicator in the N types of transmission indicators, and the weight of the indicator value of the each transmission indicator of the first forwarding path, determine the The first target weight; wherein the weight corresponding to any one of the transmission indicators is used to indicate the importance of the any one of the transmission indicators to the target service, and the indicator of the any one of the transmission indicators of the first forwarding path The weight of the value is used to indicate the degree of pros and cons of the first forwarding path relative to the k forwarding paths under any one of the transmission metrics, where k is an integer greater than or equal to 1.
可选地,所述分配模块包括:Optionally, the distribution module includes:
第二分配单元,用于对于所述N种传输指标中的第i种传输指标,基于所述第一转发路径的所述第i种传输指标的指标值,为所述第一转发路径分配在所述第i种传输指标下的第二目标权重,所述第一转发路径在所述第i种传输指标下的第二目标权重用于表示所述第一转发路径在所述第i种传输指标下相对于m个候选路径中各个转发路径的优劣程度,所述i为大于等于1且小于等于N的整数,所述m为大于等于1的整数;a second allocating unit, configured to, for the i-th transmission indicator among the N types of transmission indicators, allocate the first forwarding path to the first forwarding path based on the indicator value of the i-th transmission indicator of the first forwarding path The second target weight under the i-th transmission indicator, and the second target weight of the first forwarding path under the i-th transmission indicator is used to indicate that the first forwarding path is in the i-th transmission Under the indicator, relative to the pros and cons of each forwarding path among the m candidate paths, the i is an integer greater than or equal to 1 and less than or equal to N, and the m is an integer greater than or equal to 1;
第二确定单元,用于基于所述第一转发路径相对于所述m个候选路径在所述N种传输指标中的每种传输指标下的第二目标权重,确定所述第一候选转发路径的第三目标权重,所述第三目标权重用于指示所述第一候选转发路径在所述m个候选转发路径中的优先级。a second determining unit, configured to determine the first candidate forwarding path based on a second target weight of the first forwarding path relative to the m candidate paths under each of the N types of transmission metrics The third target weight is used to indicate the priority of the first candidate forwarding path among the m candidate forwarding paths.
可选地,所述装置还包括:Optionally, the device further includes:
确定模块,用于基于所述第一转发路径的传输特征,确定所述第一转发路径满足目标业务的SLA。A determining module, configured to determine that the first forwarding path satisfies the SLA of the target service based on the transmission characteristics of the first forwarding path.
可选地,所述获取模块用于执行上述步骤2031-2033至少一项。Optionally, the obtaining module is configured to perform at least one of the above steps 2031-2033.
可选地,所述装置400还包括发送模块,用于执行上述步骤205。Optionally, the apparatus 400 further includes a sending module, configured to perform the above step 205 .
举例说明,装置400对应于上述方法实施例中的入口节点,装置300中的各模块和上述其他操作和/或功能分别为了实现方法实施例中的入口节点所实施的各种步骤和方法,具体细节可参见上述方法实施例,为了简洁,在此不再赘述。By way of example, the apparatus 400 corresponds to the entry node in the above method embodiments, and each module in the apparatus 300 and the above other operations and/or functions are respectively implemented to implement various steps and methods for the entry node in the method embodiments. For details, reference may be made to the foregoing method embodiments, which are not repeated here for brevity.
举例说明,装置400在生成为转发路径分配权重时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置400的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置400与上述方法实施例属于同一构思,其具体实现过程详见上述方法实施例,这里不再赘述。For example, when the apparatus 400 generates the weights for the forwarding paths, only the division of the above-mentioned functional modules is used as an example. The structure is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus 400 provided in the foregoing embodiment and the foregoing method embodiment belong to the same concept, and the specific implementation process thereof is detailed in the foregoing method embodiment, which will not be repeated here.
举例说明,装置400可设置于网络100中的入口节点1011。For example, the device 400 may be disposed at the ingress node 1011 in the network 100 .
与本申请提供的方法实施例以及虚拟装置实施例相对应,本申请实施例还提供了一种网络设备,下面对网络设备的硬件结构进行介绍。Corresponding to the method embodiments and the virtual apparatus embodiments provided in the present application, the embodiments of the present application further provide a network device, and the hardware structure of the network device is introduced below.
网络设备500对应于上述方法实施例中的入口节点,网络设备500中的各硬件、模块和上述其他操作和/或功能分别为了实现方法实施例中的入口节点所实施的各种步骤和方法,关于网络设备500如何分配转发路径的权重的详细流程,具体细节可参见上述方法实施例,为了简洁,在此不再赘述。其中,上文方法实施例的各步骤通过网络设备500处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。The network device 500 corresponds to the ingress node in the foregoing method embodiments, and each hardware, module, and the foregoing other operations and/or functions in the network device 500 are respectively implemented to implement various steps and methods performed by the ingress node in the method embodiments, For the detailed process of how the network device 500 allocates the weight of the forwarding path, the specific details can be found in the foregoing method embodiments, which are not repeated here for brevity. Wherein, each step of the above method embodiment is completed by an integrated logic circuit of hardware in the processor of the network device 500 or an instruction in the form of software. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, detailed description is omitted here.
网络设备500对应于上述虚拟装置实施例中的装置400,装置400中的每个功能模块采用网络设备500的软件实现。换句话说,装置400包括的功能模块为网络设备500的处理器读取存储器中存储的程序代码后生成的。The network device 500 corresponds to the device 400 in the above virtual device embodiment, and each functional module in the device 400 is implemented by the software of the network device 500 . In other words, the functional modules included in the apparatus 400 are generated after the processor of the network device 500 reads the program codes stored in the memory.
参见图5,图5是本申请实施例提供的一种网络设备的结构示意图,该网络设备500可以配置为入口节点。Referring to FIG. 5 , FIG. 5 is a schematic structural diagram of a network device provided by an embodiment of the present application. The network device 500 may be configured as an entry node.
网络设备500包括至少一个处理器501、通信总线502、存储器503以及至少一个物理接口504。 Network device 500 includes at least one processor 501 , communication bus 502 , memory 503 , and at least one physical interface 504 .
处理器501可以是一个通用中央处理器(central processing unit,CPU)、网络处理器(network processor,NP)、微处理器、或者可以是一个或多个用于实现本申请方案的集成电路,例如,专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex  programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor 501 may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, or may be one or more integrated circuits for implementing the solution of the present application, such as , an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
通信总线502用于在上述组件之间传送信息。通信总线502可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus 502 is used to transfer information between the aforementioned components. The communication bus 502 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
存储器503可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,也可以是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only Memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器503可以是独立存在,并通过通信总线502与处理器501相连接。存储器503也可以和处理器501集成在一起。The memory 503 can be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or can be random access memory (random access memory, RAM) or can store information and instructions. Other types of dynamic storage devices, it can also be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage , optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or can be used to carry or store desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, but is not limited thereto. The memory 503 may exist independently and be connected to the processor 501 through the communication bus 502 . The memory 503 may also be integrated with the processor 501 .
物理接口504使用任何收发器一类的装置,用于与其它设备或通信网络通信。物理接口504包括有线通信接口,还可以包括无线通信接口。其中,有线通信接口例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线通信接口可以为无线局域网(wireless local area networks,WLAN)接口,蜂窝网络通信接口或其组合等。物理接口504也称物理口。 Physical interface 504 uses any transceiver-like device for communicating with other devices or communication networks. The physical interface 504 includes a wired communication interface and may also include a wireless communication interface. Wherein, the wired communication interface may be, for example, an Ethernet interface. The Ethernet interface can be an optical interface, an electrical interface or a combination thereof. The wireless communication interface may be a wireless local area network (wireless local area networks, WLAN) interface, a cellular network communication interface or a combination thereof, and the like. The physical interface 504 is also referred to as a physical port.
在具体实现中,作为一种实施例,处理器501可以包括一个或多个CPU,如图5中所示的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 501 may include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 5 .
在具体实现中,作为一种实施例,网络设备500可以包括多个处理器,如图5中所示的处理器501和处理器505。这些处理器中的每一个可以是一个单核处理器(single-CPU),也可以是一个多核处理器(multi-CPU)。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the network device 500 may include multiple processors, such as the processor 501 and the processor 505 shown in FIG. 5 . Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
在具体实现中,作为一种实施例,网络设备500还可以包括输出设备506和输入设备507。输出设备506和处理器501通信,可以以多种方式来显示信息。例如,输出设备506可以是液晶显示器(liquid crystal display,LCD)、发光二级管(light emitting diode,LED)显示设备、阴极射线管(cathode ray tube,CRT)显示设备或投影仪(projector)等。输入设备507和处理器501通信,可以以多种方式接收用户的输入。例如,输入设备507可以是鼠标、键盘、触摸屏设备或传感设备等。In a specific implementation, as an embodiment, the network device 500 may further include an output device 506 and an input device 507 . The output device 506 is in communication with the processor 501 and can display information in a variety of ways. For example, the output device 506 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, a projector, or the like . Input device 507 is in communication with processor 501 and can receive user input in a variety of ways. For example, the input device 507 may be a mouse, a keyboard, a touch screen device, a sensor device, or the like.
在一些实施例中,存储器503用于存储执行本申请方案的程序代码510,处理器501可以执行存储器503中存储的程序代码510。也即是,网络设备500可以通过处理器501以及存储器503中的程序代码510,来实现方法实施例提供的方法。In some embodiments, the memory 503 is used to store the program code 510 for executing the solutions of the present application, and the processor 501 can execute the program code 510 stored in the memory 503 . That is, the network device 500 can implement the method provided by the method embodiment through the processor 501 and the program code 510 in the memory 503 .
本申请实施例的网络设备500可对应于上述各个方法实施例中的入口节点,并且,该网络设备500中的处理器501、物理接口504等可以实现上述各个方法实施例中的入口节点所具有的功能和/或所实施的各种步骤和方法。为了简洁,在此不再赘述。The network device 500 in this embodiment of the present application may correspond to the entry node in each of the foregoing method embodiments, and the processor 501, the physical interface 504, and the like in the network device 500 may implement the features of the entry node in each of the foregoing method embodiments. functions and/or the various steps and methods implemented. For brevity, details are not repeated here.
举例说明,装置400中的分配模块402可以相当于网络设备500中的处理器501;装置400中的获取模块401和发送模块相当于网络设备500中的物理接口504。For example, the allocation module 402 in the apparatus 400 may be equivalent to the processor 501 in the network device 500 ; the acquiring module 401 and the sending module in the apparatus 400 are equivalent to the physical interface 504 in the network device 500 .
在一些可能的实施例中,上述入口节点可以实现为虚拟化设备。例如,虚拟化设备可以是运行有用于发送报文功能的程序的虚拟机(virtual machine,VM),虚拟机部署在硬件设备上(例如,物理服务器)。虚拟机指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。可以将虚拟机配置为入口节点。例如,可以基于通用的物理服务器结合网络功能虚拟化(network functions virtualization,NFV)技术来实现入口节点。入口节点为虚拟主机、虚拟路由器或虚拟交换机。本领域技术人员通过阅读本申请即可结合NFV技术在通用物理服务器上虚拟出具有上述功能的入口节点。此处不再赘述。In some possible embodiments, the above-mentioned entry node may be implemented as a virtualized device. For example, the virtualization device may be a virtual machine (virtual machine, VM) running a program for sending a message, and the virtual machine is deployed on a hardware device (eg, a physical server). A virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. A virtual machine can be configured as an entry node. For example, the entry node can be implemented based on a general-purpose physical server combined with network functions virtualization (NFV) technology. Ingress nodes are virtual hosts, virtual routers, or virtual switches. By reading this application, those skilled in the art can virtualize an entry node with the above functions on a general physical server in combination with the NFV technology. It will not be repeated here.
举例说明,上述各种产品形态的网络设备,分别具有上述方法实施例中入口节点的任意功能,此处不再赘述。For example, the network devices in the above-mentioned various product forms respectively have any functions of the ingress nodes in the above-mentioned method embodiments, which will not be repeated here.
本申请实施例还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中,网络设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该路径权重分配执行上述路径权重分配方法。Embodiments of the present application also provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, where the computer instructions are stored in a computer-readable storage medium, and the processor of the network device is obtained from the computer-readable storage medium. The computer instruction is read, and the processor executes the computer instruction, so that the path weight assignment executes the above path weight assignment method.
本申请实施例还提供了一种芯片,包括处理器和接口电路,接口电路,用于接收指令并传输至处理器;处理器,可以用于执行上述应用于指令入口节点执行路径权重分配方法。其中,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述任一方法实施例中的方法。可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请并不限定。示例性的,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请对存储器的类型,以及存储器与处理器的设置方式不作具体限定。举例说明,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是CPU,还可以是NP,还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。The embodiment of the present application further provides a chip, including a processor and an interface circuit, the interface circuit is used to receive instructions and transmit them to the processor; the processor can be used to execute the above method for assigning execution path weights applied to an instruction entry node. The processor is coupled to a memory, and the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the chip system enables the method in any of the foregoing method embodiments. Optionally, the number of processors in the chip system may be one or more. The processor can be implemented by hardware or by software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general-purpose processor implemented by reading software codes stored in memory. Optionally, there may also be one or more memories in the chip system. The memory may be integrated with the processor, or may be provided separately from the processor, which is not limited in this application. Exemplarily, the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be provided on different chips. The setting method of the processor is not particularly limited. For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), or a system on chip (SoC). It can be CPU, NP, digital signal processing circuit (digital signal processor, DSP), microcontroller unit (MCU), programmable logic device (programmable logic device, PLD) or other integrated chips.
本申请实施例提供了一种系统,该系统包括上述装置400或上述网络设备500。An embodiment of the present application provides a system, where the system includes the foregoing apparatus 400 or the foregoing network device 500 .
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。All the above-mentioned optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, which will not be repeated here. Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc. The above are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (22)

  1. 一种路径权重分配方法,其特征在于,应用于入口节点,所述方法包括:A path weight allocation method, characterized in that, applied to an entry node, the method comprising:
    获取第一转发路径的传输特征,所述第一转发路径的传输特征用于指示所述第一转发路径在传输基于段路由SR报文时的传输特点;acquiring transmission characteristics of the first forwarding path, where the transmission characteristics of the first forwarding path are used to indicate the transmission characteristics of the first forwarding path when transmitting segment-based routing SR packets;
    基于所述第一转发路径的传输特征,为所述第一转发路径分配第一目标权重,所述第一目标权重用于表示所述第一转发路径的负载分担状态。Based on the transmission characteristics of the first forwarding path, a first target weight is allocated to the first forwarding path, where the first target weight is used to indicate a load sharing state of the first forwarding path.
  2. 根据权利要求1所述的方法,其特征在于,所述传输特征包括N种传输指标的指标值,所述N为大于或等于1的整数,任一种传输指标用于表征一种传输性能指标。The method according to claim 1, wherein the transmission characteristics include index values of N types of transmission indicators, where N is an integer greater than or equal to 1, and any transmission index is used to represent a transmission performance index .
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述第一转发路径的传输特征,为所述第一转发路径分配第一目标权重包括:The method according to claim 2, wherein the assigning the first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path comprises:
    基于目标业务的服务等级协议SLA,为所述N种传输指标中的第i种传输指标分配第i权重,所述第i种传输指标的第i权重用于表示所述第i种传输指标对所述目标业务的重要程度,所述i为大于等于1且小于等于N的整数;Based on the service level agreement SLA of the target service, assign the i-th weight to the i-th transmission indicator among the N-type transmission indicators, and the i-th weight of the i-th transmission indicator is used to represent the i-th transmission indicator pair The importance of the target business, the i is an integer greater than or equal to 1 and less than or equal to N;
    基于所述N种传输指标中的每种传输指标所对应的权重以及所述每种传输指标的指标值,获得所述第一目标权重。The first target weight is obtained based on a weight corresponding to each of the N types of transmission indicators and an indicator value of each of the transmission indicators.
  4. 根据权利要求2所述的方法,其特征在于,所述基于所述第一转发路径的传输特征,为所述第一转发路径分配第一目标权重包括:The method according to claim 2, wherein the assigning the first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path comprises:
    对于所述N种传输指标中的第i种传输指标,为所述第一转发路径的第i种传输指标的指标值分配第i权重,所述第i种传输指标的指标值的第i权重用于表示在所述第i种传输指标下所述第一转发路径相对于k个转发路径的优劣程度,所述i为大于等于1且小于等于N的整数,所述k为大于等于1的整数;For the i-th transmission indicator among the N types of transmission indicators, the i-th weight is assigned to the indicator value of the i-th transmission indicator of the first forwarding path, and the i-th weight of the indicator value of the i-th transmission indicator is It is used to indicate the pros and cons of the first forwarding path relative to the k forwarding paths under the i-th transmission index, where i is an integer greater than or equal to 1 and less than or equal to N, and k is greater than or equal to 1 the integer;
    基于所述第一转发路径在所述N种传输指标中每种传输指标的指标值的权重,确定所述第一目标权重。The first target weight is determined based on the weight of the index value of each transmission index of the first forwarding path in the N kinds of transmission indexes.
  5. 根据权利要求4所述的方法,其特征在于,所述为所述第一转发路径的第i种传输指标的指标值分配第i权重包括:The method according to claim 4, wherein the assigning the i-th weight to the indicator value of the i-th transmission indicator of the first forwarding path comprises:
    对所述k个转发路径的传输特征中所述第i种传输指标的指标值进行排序,得到所述第i种传输指标对应的指标值序列;Sorting the index values of the i-th transmission index in the transmission characteristics of the k forwarding paths, to obtain an index value sequence corresponding to the i-th transmission index;
    基于所述第一转发路径的所述第i种传输指标的指标值在所述指标值序列中的排序,获得所述第一转发路径的第i种传输指标的指标值的第i权重。Based on the ranking of the index values of the i-th transmission index of the first forwarding path in the index value sequence, the i-th weight of the index value of the i-th transmission index of the first forwarding path is obtained.
  6. 根据权利要求2所述的方法,其特征在于,所述基于所述第一转发路径的传输特征,为所述第一转发路径分配第一目标权重包括:The method according to claim 2, wherein the assigning the first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path comprises:
    基于所述N种传输指标中的每种传输指标所对应的权重、所述第一转发路径的所述每种 传输指标的指标值的权重,确定所述第一目标权重;Determine the first target weight based on the weight corresponding to each transmission index in the N kinds of transmission indicators, and the weight of the index value of the each transmission index of the first forwarding path;
    其中,任一种传输指标所对应的权重用于表示所述任一种传输指标对目标业务的重要程度,所述第一转发路径的所述任一种传输指标的指标值的权重用于表示在所述任一种传输指标下所述第一转发路径相对于k个转发路径的优劣程度,所述k为大于等于1的整数。Wherein, the weight corresponding to any one of the transmission indicators is used to represent the importance of the any one of the transmission indicators to the target service, and the weight of the indicator value of the any one of the transmission indicators of the first forwarding path is used to represent the The degree of pros and cons of the first forwarding path relative to the k forwarding paths under any of the transmission indicators, where k is an integer greater than or equal to 1.
  7. 根据权利要2-6任一项权利要求所述的方法,其特征在于,所述第一转发路径属于第一候选转发路径;所述方法还包括:The method according to any one of claims 2-6, wherein the first forwarding path belongs to a first candidate forwarding path; the method further comprises:
    对于所述N种传输指标中的第i种传输指标,基于所述第一转发路径的所述第i种传输指标的指标值,为所述第一转发路径分配在所述第i种传输指标下的第二目标权重,所述第一转发路径在所述第i种传输指标下的第二目标权重用于表示所述第一转发路径在所述第i种传输指标下相对于m个候选路径中各个转发路径的优劣程度,所述i为大于等于1且小于等于N的整数,所述m为大于等于1的整数;For the i-th transmission indicator among the N types of transmission indicators, based on the indicator value of the i-th transmission indicator of the first forwarding path, assign the i-th transmission indicator to the first forwarding path The second target weight of the first forwarding path under the i-th transmission indicator is used to indicate that the first forwarding path is relative to m candidates under the i-th transmission indicator The pros and cons of each forwarding path in the path, the i is an integer greater than or equal to 1 and less than or equal to N, and the m is an integer greater than or equal to 1;
    基于所述第一转发路径相对于所述m个候选路径在所述N种传输指标中的每种传输指标下的第二目标权重,确定所述第一候选转发路径的第三目标权重,所述第三目标权重用于指示所述第一候选转发路径在所述m个候选转发路径中的优先级。The third target weight of the first candidate forwarding path is determined based on the second target weight of the first forwarding path relative to the m candidate paths under each of the N kinds of transmission metrics, and the The third target weight is used to indicate the priority of the first candidate forwarding path among the m candidate forwarding paths.
  8. 根据权利要求1-7任一项权利要求所述的方法,其特征在于,所述基于所述第一转发路径的传输特征,为所述第一转发路径分配第一目标权重之前,所述方法还包括:The method according to any one of claims 1-7, wherein before the first target weight is assigned to the first forwarding path based on the transmission characteristics of the first forwarding path, the method Also includes:
    基于所述第一转发路径的传输特征,确定所述第一转发路径满足目标业务的SLA。Based on the transmission characteristics of the first forwarding path, it is determined that the first forwarding path satisfies the SLA of the target service.
  9. 根据权利要1-8任一项权利要求所述的方法,其特征在于,所述获取第一转发路径的传输特征包括下述至少一项:The method according to any one of claims 1-8, wherein the acquiring the transmission characteristic of the first forwarding path comprises at least one of the following:
    当所述传输特征包括传输时延时,将一个测试报文通过所述第一转发路径传输至出口节点的时长,确定为所述传输时延;When the transmission characteristic includes a transmission time delay, the time length for transmitting a test packet to the egress node through the first forwarding path is determined as the transmission delay;
    当所述传输特征包括传输抖动值时,基于相邻两个所述测试报文所确定的传输时延,获取所述传输抖动值;When the transmission characteristic includes a transmission jitter value, obtain the transmission jitter value based on the transmission delay determined by two adjacent test packets;
    当所述传输特征包括丢包率时,基于目标发送个数以及目标接收个数,确定所述丢包率,所述目标发送个数为在一个时间窗口内,所述入口节点通过所述第一转发路径向所述出口节点发送所述测试报文的总个数,所述目标接收个数为所述出口节点接收到的所述入口节点在所述时间窗口内通过所述第一转发路径发送的所述测试报文的总个数。When the transmission characteristic includes a packet loss rate, the packet loss rate is determined based on the number of target transmissions and the number of target receptions, and the target number of transmissions is within a time window, and the entry node passes the A forwarding path sends the total number of the test packets to the egress node, and the target received number is the number of the test packets received by the egress node through the first forwarding path within the time window by the ingress node The total number of the test packets sent.
  10. 根据权利要求9所述的方法,其特征在于,所述测试报文包括所述第一转发路径的段列表标识、所述第一转发路径的候选标识、所述入口节点发送所述测试报文的发送时间、所述时间窗口的标识中的至少一个。The method according to claim 9, wherein the test packet includes a segment list identifier of the first forwarding path, a candidate identifier of the first forwarding path, and the test packet sent by the ingress node at least one of the sending time and the identifier of the time window.
  11. 根据权利要求9或10所述的方法,其特征在于,所述测试报文为无缝双向转发检查SBFD报文、双向主动测量协议TWAMP报文或随路检测iFIT报文。The method according to claim 9 or 10, wherein the test message is a seamless bidirectional forwarding check SBFD message, a bidirectional active measurement protocol TWAMP message, or an iFIT message with a path.
  12. 一种路径权重分配装置,其特征在于,所述装置包括:A path weight allocation device, characterized in that the device comprises:
    获取模块,用于获取第一转发路径的传输特征,所述第一转发路径的传输特征用于指示所述第一转发路径在传输基于段路由SR报文时的传输特点;an acquisition module, configured to acquire the transmission characteristics of the first forwarding path, where the transmission characteristics of the first forwarding path are used to indicate the transmission characteristics of the first forwarding path when transmitting the segment routing-based SR message;
    分配模块,用于基于所述第一转发路径的传输特征,为所述第一转发路径分配第一目标权重,所述第一目标权重用于表示所述第一转发路径的负载分担状态。an allocation module, configured to allocate a first target weight to the first forwarding path based on the transmission characteristics of the first forwarding path, where the first target weight is used to indicate a load sharing state of the first forwarding path.
  13. 根据权利要求12所述的装置,其特征在于,所述传输特征包括N种传输指标的指标值,所述N为大于或等于1的整数,任一种传输指标用于表征一种传输性能指标。The device according to claim 12, wherein the transmission characteristic includes index values of N kinds of transmission indexes, where N is an integer greater than or equal to 1, and any transmission index is used to represent a transmission performance index .
  14. 根据权利要求13所述的装置,其特征在于,所述分配模块用于:The apparatus according to claim 13, wherein the distribution module is used for:
    基于目标业务的服务等级协议SLA,为所述N种传输指标中的第i种传输指标分配第i权重,所述第i种传输指标的第i权重用于表示所述第i种传输指标对所述目标业务的重要程度,所述i为大于等于1且小于等于N的整数;Based on the service level agreement SLA of the target service, assign the i-th weight to the i-th transmission indicator among the N-type transmission indicators, and the i-th weight of the i-th transmission indicator is used to represent the i-th transmission indicator pair The importance of the target business, the i is an integer greater than or equal to 1 and less than or equal to N;
    基于所述N种传输指标中的每种传输指标所对应的权重以及所述每种传输指标的指标值,获得所述第一目标权重。The first target weight is obtained based on a weight corresponding to each of the N types of transmission indicators and an indicator value of each of the transmission indicators.
  15. 根据权利要求13所述的装置,其特征在于,所述分配模块包括:The apparatus of claim 13, wherein the distribution module comprises:
    第一分配单元,用于对于所述N种传输指标中的第i种传输指标,为所述第一转发路径的第i种传输指标的指标值分配第i权重,所述第i种传输指标的指标值的第i权重用于表示在所述第i种传输指标下所述第一转发路径相对于k个转发路径的优劣程度,所述i为大于等于1且小于等于N的整数,所述k为大于等于1的整数;a first allocating unit, configured to assign the i-th weight to the index value of the i-th transmission indicator of the first forwarding path for the i-th transmission indicator among the N types of transmission indicators, and the i-th transmission indicator The ith weight of the index value is used to indicate the degree of pros and cons of the first forwarding path relative to the k forwarding paths under the ith transmission index, where i is an integer greater than or equal to 1 and less than or equal to N, The k is an integer greater than or equal to 1;
    第一确定单元,用于基于所述第一转发路径在所述N种传输指标中每种传输指标的指标值的权重,确定所述第一目标权重。A first determining unit, configured to determine the first target weight based on the weight of the index value of each transmission index among the N kinds of transmission indexes of the first forwarding path.
  16. 根据权利要求15所述的装置,其特征在于,所述第一分配单元用于:The apparatus according to claim 15, wherein the first distribution unit is used for:
    对所述k个转发路径的传输特征中所述第i种传输指标的指标值进行排序,得到所述第i种传输指标对应的指标值序列;Sorting the index values of the i-th transmission index in the transmission characteristics of the k forwarding paths, to obtain an index value sequence corresponding to the i-th transmission index;
    基于所述第一转发路径的所述第i种传输指标的指标值在所述指标值序列中的排序,获得所述第一转发路径的第i种传输指标的指标值的第i权重。Based on the ranking of the index values of the i-th transmission index of the first forwarding path in the index value sequence, the i-th weight of the index value of the i-th transmission index of the first forwarding path is obtained.
  17. 根据权利要求13所述的装置,其特征在于,所述分配模块用于:The apparatus according to claim 13, wherein the distribution module is used for:
    基于所述N种传输指标中的每种传输指标所对应的权重、所述第一转发路径的所述每种传输指标的指标值的权重,确定所述第一目标权重;determining the first target weight based on the weight corresponding to each transmission indicator in the N types of transmission indicators, and the weight of the indicator value of the each transmission indicator of the first forwarding path;
    其中,任一种传输指标所对应的权重用于表示所述任一种传输指标对目标业务的重要程度,所述第一转发路径的所述任一种传输指标的指标值的权重用于表示在所述任一种传输指标下所述第一转发路径相对于k个转发路径的优劣程度,所述k为大于等于1的整数。Wherein, the weight corresponding to any one of the transmission indicators is used to represent the importance of the any one of the transmission indicators to the target service, and the weight of the indicator value of the any one of the transmission indicators of the first forwarding path is used to represent the The degree of pros and cons of the first forwarding path relative to the k forwarding paths under any of the transmission indicators, where k is an integer greater than or equal to 1.
  18. 根据权利要12-17任一项权利要求所述的装置,其特征在于,所述分配模块包括:The device according to any one of claims 12-17, wherein the distribution module comprises:
    第二分配单元,用于对于所述N种传输指标中的第i种传输指标,基于所述第一转发路径的所述第i种传输指标的指标值,为所述第一转发路径分配在所述第i种传输指标下的第二 目标权重,所述第一转发路径在所述第i种传输指标下的第二目标权重用于表示所述第一转发路径在所述第i种传输指标下相对于m个候选路径中各个转发路径的优劣程度,所述i为大于等于1且小于等于N的整数,所述m为大于等于1的整数;a second allocating unit, configured to, for the i-th transmission indicator among the N types of transmission indicators, allocate the first forwarding path to the first forwarding path based on the indicator value of the i-th transmission indicator of the first forwarding path The second target weight under the i-th transmission indicator, and the second target weight of the first forwarding path under the i-th transmission indicator is used to indicate that the first forwarding path is in the i-th transmission Under the indicator, relative to the pros and cons of each forwarding path among the m candidate paths, the i is an integer greater than or equal to 1 and less than or equal to N, and the m is an integer greater than or equal to 1;
    第二确定单元,用于基于所述第一转发路径相对于所述m个候选路径在所述N种传输指标中的每种传输指标下的第二目标权重,确定所述第一候选转发路径的第三目标权重,所述第三目标权重用于指示所述第一候选转发路径在所述m个候选转发路径中的优先级。a second determining unit, configured to determine the first candidate forwarding path based on a second target weight of the first forwarding path relative to the m candidate paths under each of the N types of transmission metrics The third target weight is used to indicate the priority of the first candidate forwarding path among the m candidate forwarding paths.
  19. 根据权利要求12-17任一项权利要求所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 12-17, wherein the device further comprises:
    确定模块,用于基于所述第一转发路径的传输特征,确定所述第一转发路径满足目标业务的SLA。A determining module, configured to determine that the first forwarding path satisfies the SLA of the target service based on the transmission characteristics of the first forwarding path.
  20. 根据权利要12-19任一项权利要求所述的装置,其特征在于,所述获取模块用于执行下述至少一项:The device according to any one of claims 12-19, wherein the obtaining module is configured to execute at least one of the following:
    当所述传输特征包括传输时延时,将一个测试报文通过所述第一转发路径传输至出口节点的时长,确定为所述传输时延;When the transmission characteristic includes a transmission time delay, the time length for transmitting a test packet to the egress node through the first forwarding path is determined as the transmission delay;
    当所述传输特征包括传输抖动值时,基于相邻两个所述测试报文所确定的传输时延,获取所述传输抖动值;When the transmission characteristic includes a transmission jitter value, obtain the transmission jitter value based on the transmission delay determined by two adjacent test packets;
    当所述传输特征包括丢包率时,基于目标发送个数以及目标接收个数,确定所述丢包率,所述目标发送个数为在一个时间窗口内,所述入口节点通过所述第一转发路径向所述出口节点发送所述测试报文的总个数,所述目标接收个数为所述出口节点接收到的所述入口节点在所述时间窗口内通过所述转发路径发送的所述测试报文的总个数。When the transmission characteristic includes a packet loss rate, the packet loss rate is determined based on the number of target transmissions and the number of target receptions, and the target number of transmissions is within a time window, and the entry node passes the The total number of test packets sent by a forwarding path to the egress node, and the target received number is the number of test packets received by the egress node and sent by the ingress node through the forwarding path within the time window. The total number of the test packets.
  21. 根据权利要求20所述的装置,其特征在于,所述测试报文包括所述第一转发路径的段列表标识、所述第一转发路径的候选标识、所述入口节点发送所述测试报文的发送时间、所述时间窗口的标识中的至少一个。The apparatus according to claim 20, wherein the test packet includes a segment list identifier of the first forwarding path, a candidate identifier of the first forwarding path, and the test packet sent by the ingress node at least one of the sending time and the identifier of the time window.
  22. 根据权利要求20或21所述的装置,其特征在于,所述测试报文为无缝双向转发检查SBFD报文、双向主动测量协议TWAMP报文或随路检测iFIT报文。The apparatus according to claim 20 or 21, wherein the test message is a seamless bidirectional forwarding check SBFD message, a bidirectional active measurement protocol TWAMP message, or an iFIT message with a path.
PCT/CN2021/115465 2020-11-25 2021-08-30 Path weight allocation method and device WO2022110948A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011339362.5A CN114553760B (en) 2020-11-25 2020-11-25 Path weight distribution method and device
CN202011339362.5 2020-11-25

Publications (1)

Publication Number Publication Date
WO2022110948A1 true WO2022110948A1 (en) 2022-06-02

Family

ID=81660315

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/115465 WO2022110948A1 (en) 2020-11-25 2021-08-30 Path weight allocation method and device

Country Status (2)

Country Link
CN (1) CN114553760B (en)
WO (1) WO2022110948A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460131A (en) * 2022-10-18 2022-12-09 中国电信股份有限公司 Path selection method, device, system and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277549A (en) * 2022-07-26 2022-11-01 中国电信股份有限公司 Detection message generation method and device, storage medium and electronic equipment
CN116389349B (en) * 2023-06-06 2023-10-10 天翼云科技有限公司 Node autonomous hybrid cloud data transmission method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107548545A (en) * 2015-03-30 2018-01-05 阿尔卡特朗讯公司 The offline optimization for traffic engineering with Segment routing
US20190280960A1 (en) * 2016-05-20 2019-09-12 Telefonaktiebolaget Lm Ericsson (Publ) Method And Apparatus For Segment Routing And RSVP-TE Routing In Transport SDN Networks
CN110535763A (en) * 2019-07-10 2019-12-03 中移(杭州)信息技术有限公司 A kind of route backup method, apparatus, server and readable storage medium storing program for executing
CN111327525A (en) * 2018-12-14 2020-06-23 中国移动通信集团山东有限公司 Network routing method and device based on segmented routing

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188165B (en) * 2013-03-12 2016-06-01 神州数码网络(北京)有限公司 A kind of router multipath exports method and the router of intelligent load equilibrium
CN104378292B (en) * 2013-08-15 2018-01-23 华为技术有限公司 A kind of method and device of forwarding MPLS packets
CN104468352B (en) * 2014-12-26 2018-05-01 深圳市新格林耐特通信技术有限公司 Special flow QOS support methods based on SDN
CN107370672A (en) * 2016-05-11 2017-11-21 华为技术有限公司 The method and device of Path selection
US10454821B2 (en) * 2016-10-14 2019-10-22 Cisco Technology, Inc. Creating and maintaining segment routed traffic engineering policies via border gateway protocol
CN111211987B (en) * 2019-11-29 2021-07-27 清华大学 Method and system for dynamically adjusting flow in network, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107548545A (en) * 2015-03-30 2018-01-05 阿尔卡特朗讯公司 The offline optimization for traffic engineering with Segment routing
US20190280960A1 (en) * 2016-05-20 2019-09-12 Telefonaktiebolaget Lm Ericsson (Publ) Method And Apparatus For Segment Routing And RSVP-TE Routing In Transport SDN Networks
CN111327525A (en) * 2018-12-14 2020-06-23 中国移动通信集团山东有限公司 Network routing method and device based on segmented routing
CN110535763A (en) * 2019-07-10 2019-12-03 中移(杭州)信息技术有限公司 A kind of route backup method, apparatus, server and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SHEN, SHAOHUI: "Research on SDN-Based Segment Routing Technology", CHINA MASTER'S THESES FULL-TEXT DATABASE, INFORMATION TECHNOLOGY, 15 May 2018 (2018-05-15), pages 1 - 81, XP055934069, ISSN: 1674-0246 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460131A (en) * 2022-10-18 2022-12-09 中国电信股份有限公司 Path selection method, device, system and storage medium

Also Published As

Publication number Publication date
CN114553760A (en) 2022-05-27
CN114553760B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
WO2022110948A1 (en) Path weight allocation method and device
US11316774B2 (en) Path selection method and apparatus
US9007920B2 (en) QoS in heterogeneous NoC by assigning weights to NoC node channels and using weighted arbitration at NoC nodes
CN107078963B (en) Route tracing in virtual extensible local area networks
US20160203024A1 (en) Apparatus and method for allocating resources of distributed data processing system in consideration of virtualization platform
KR100961712B1 (en) Apparatus, method and computer program product providing high performance communication bus having preferred path source routing, multi-guarantee QoS and resource reservation, management and release
US20150334011A1 (en) Traffic interconnection between virtual devices
US20140211621A1 (en) System and method for link aggregation group hashing using flow control information
JP2016503594A (en) Non-uniform channel capacity in the interconnect
CN103684961A (en) Automatic construction of deadlock free interconnects
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
JP2021129300A (en) Method, device, and system for forwarding packet in hybrid network
US20200162357A1 (en) Active targeted data plane traffic monitoring for wired networks
JP5834178B2 (en) Semiconductor circuit bus system
WO2019061169A1 (en) Route selection method and device based on hybrid resources, and server
CN109672621B (en) Method and equipment for selecting transmission path for VPN service
CN112788060A (en) Data packet transmission method and device, storage medium and electronic equipment
WO2020207469A1 (en) Service processing method and apparatus
WO2021083375A1 (en) Method and apparatus for detecting link states
WO2018188570A1 (en) Data transmission method and apparatus
WO2023179457A1 (en) Method, apparatus and system for identifying service connection, and storage medium
CN116828024A (en) Service connection identification method, device, system and storage medium
CN113938440B (en) Method, device and storage medium for determining forwarding priority
WO2022147762A1 (en) Data packet sequencing method and apparatus
CN115277460A (en) Data transmission method, device and system

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21896452

Country of ref document: EP

Kind code of ref document: A1