WO2023016566A1 - Resource allocation method and apparatus, and network node - Google Patents

Resource allocation method and apparatus, and network node Download PDF

Info

Publication number
WO2023016566A1
WO2023016566A1 PCT/CN2022/112283 CN2022112283W WO2023016566A1 WO 2023016566 A1 WO2023016566 A1 WO 2023016566A1 CN 2022112283 W CN2022112283 W CN 2022112283W WO 2023016566 A1 WO2023016566 A1 WO 2023016566A1
Authority
WO
WIPO (PCT)
Prior art keywords
flag
message
resource
value
resource allocation
Prior art date
Application number
PCT/CN2022/112283
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
Priority claimed from CN202210946390.6A external-priority patent/CN115941623A/en
Application filed by 中国移动通信有限公司研究院, 中国移动通信集团有限公司 filed Critical 中国移动通信有限公司研究院
Publication of WO2023016566A1 publication Critical patent/WO2023016566A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/24Negotiating SLA [Service Level Agreement]; Negotiating QoS [Quality of Service]

Definitions

  • the present application relates to the technical field of data transmission, and in particular to a resource allocation method, device and network node.
  • the data bearer network supports large-scale hard slicing schemes, mainly adopting the strategy of introducing slice identifiers (such as IDs) into Internet Protocol Version 6-Segment Routing (abbreviation: IPv6SR or SRv6) (English It can be expressed as Policy) on the forwarding plane, that is, the slice identifier is carried in the SRv6 packet header, and the forwarding device associates the slice identifier with the underlying physical link or sub-link resource, and combines the corresponding sub-link physical isolation technology, Such as channelized sub-interfaces, G.8312 (ITU International Telecommunication Union standard) interfaces, Quality of Service (QoS) queues, etc., to provide users with high-quality bearer network hard slicing services with independent resource guarantees.
  • slice identifiers such as IDs
  • Policy Internet Protocol Version 6-Segment Routing
  • the forwarding device associates the slice identifier with the underlying physical link or sub-link resource, and
  • the forwarding plane carrying slice identifiers can implement fine-grained slices at the sub-interface level. At the same time, because it does not need to expand the control plane protocol, it will not bring too much overhead to network devices, making it possible for the data bearer network to support large-scale slices.
  • the allocation of underlying physical link resources or sub-link resources (that is, slice resources) corresponding to the slice identifier is mainly a static configuration method, that is, slice resources (physical slice resources) are allocated in advance for each slice identifier on all links in the entire network. link resources or sub-link resources), and establish a mapping relationship, so that when the device forwards the slice user's message, it can find the corresponding sub-link resource according to the slice identifier and forward it.
  • embodiments of the present application provide a resource allocation method, device, and network node.
  • An embodiment of the present application provides a resource allocation method, which is applied to a message sending node, and the method includes:
  • the IPv6 packet header of the message includes a slice identifier and a resource indication flag
  • the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
  • the message includes a bidirectional detection (Bidirectional Forwarding Detection, BFD) message.
  • BFD Bidirectional Forwarding Detection
  • the resource indication flag includes a discard flag and/or a resource allocation flag
  • the discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier
  • the resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
  • the discard flag when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
  • the discarding flag When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
  • the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
  • the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
  • the IPv6 header of the IPv6 packet includes a network slice identification option in the IPv6 hop-by-hop options header (Hop-By-hop options Header, HBH), new HBH or destination options header (Destination Options Header, DOH);
  • the network slice identification option includes the resource indication flag.
  • the resource indicator is recorded in the source address or flow label (Flowlabel) field of the IPv6 message header, and the resource indicator occupies the part of the source address or the Flowlabel field (English can express for bit).
  • the network slice identification option further includes: option type, option data field length and slice identification.
  • the resource indication flag includes a discard flag and a resource allocation flag
  • the indication meanings when the discard flag and the resource allocation flag are different values include:
  • the discarding flag is a second value
  • the resource allocation flag is a second value, which is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forward the message along a preset default path;
  • the discard flag is a second value
  • the resource allocation flag is a first value, which is used to indicate that when sublink resources cannot be obtained according to the slice identifier, forward the message along a preset default path, and Allocating corresponding sub-link resources according to resource requirements corresponding to the slice identifier;
  • the discarding flag is a first value
  • the resource allocation flag is a second value, which is used to indicate that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier
  • the discarding flag is a first value
  • the resource allocation flag is a first value, which is used to indicate that when sublink resources cannot be obtained according to the slice identifier, the message is discarded, and according to the slice identifier, the corresponding resource requirements, allocate corresponding sub-link resources.
  • the sending of the message to the SRv6 policy path includes:
  • the resource indication flag includes a discard flag and a resource allocation flag, and when the discard flag and the resource allocation flag are respectively the first value or the second value:
  • the resource indication flags in the first N packets are: the discard flag is a second value, and the resource allocation flag is a first value;
  • the resource indication flags in the N+1th message to the Mth message are: the discarding flag is the first value, and the resource allocation flag is the first value;
  • the resource indication flag in the packets after the Mth packet the discard flag is a first value, and the resource allocation flag is a second value.
  • the method also includes:
  • the method also includes:
  • the embodiment of the present application also provides a resource allocation method, which is applied to a message receiving node, and the method includes:
  • the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
  • the message includes a BFD message.
  • the resource indication flag includes a discard flag and/or a resource allocation flag
  • the discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier
  • the resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
  • the discard flag when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
  • the discarding flag When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
  • the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
  • the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
  • the IPv6HBH, new HBH or DOH of the IPv6 message header includes a network slice identification option
  • the network slice identification option includes the resource indication flag.
  • the resource indication flag is recorded in the source address or Flowlabel field of the IPv6 packet header, and the resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
  • the network slice identification option further includes: option type, option data field length, and the slice identification.
  • the method also includes:
  • the message is processed according to the value indicated by the resource indication flag.
  • the processing of the message is performed according to the value indicated by the resource indication flag, including:
  • the discard flag is the second value and the resource allocation flag is the first value, forward the message along a preset default path, and allocate the corresponding sub-link according to the resource requirement corresponding to the slice identifier resource;
  • the discard flag is the first value and the resource allocation flag is the first value, discard the message, and allocate corresponding sublink resources according to the resource requirement corresponding to the slice identifier.
  • the embodiment of the present application also provides a network node, the network node is a message sending node, including: a transceiver, wherein the transceiver is configured as:
  • the IPv6 packet header of the message includes a slice identifier and a resource indication flag
  • the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
  • the embodiment of the present application also provides a network node, the network node is a message receiving node, including: a transceiver, wherein the transceiver is configured as:
  • the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
  • the embodiment of the present application also provides a resource allocation device, which is applied to a message sending node, including:
  • a packet sending unit configured to send packets to the SRv6 policy path
  • the IPv6 packet header of the message includes a slice identifier and a resource indication flag
  • the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
  • the embodiment of the present application also provides a resource allocation device, which is applied to a message receiving node, including:
  • a packet receiving unit configured to receive packets on the SRv6 policy path
  • the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
  • the embodiment of the present application also provides a network node, including: a processor, a memory, and a program stored on the memory and operable on the processor, and when the program is executed by the processor, the above message The steps of any method on the side of the sending node, or the steps of any method on the side of the above message receiving node.
  • the embodiment of the present application also provides a readable storage medium, where a program is stored on the readable storage medium, and when the program is executed by a processor, the steps of any method on the side of the message sending node are implemented, or the above message sending node is implemented. Steps of either method on the receiving node side.
  • the message of the SRv6 policy path includes a resource indication flag, which is used to trigger the dynamic resource allocation of the SRv6 policy path, so that on the SRv6 policy path, each message
  • the receiving node realizes the dynamic allocation of sub-link resources corresponding to the slice ID according to the resource indication flag, and associates the allocated sub-link resources with the slice ID to ensure that subsequent slice services can be dynamically allocated along the sub-link resources according to the slice ID.
  • Link resources are forwarded so as to have exclusive slice resources, so as to at least solve the problem of waste of resources caused by static allocation of slice resources when sending SRv6 packets in related technologies.
  • FIG. 1 is a schematic flowchart of a resource allocation method according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a network slice identification option for carrying a resource indication flag according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a resource indication flag in an embodiment of the present application.
  • Fig. 4 is a schematic structural diagram of the application example system of the present application.
  • Fig. 5 is a schematic diagram of the strategy path of the application example
  • FIG. 6 is a schematic flowchart of another resource allocation method according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a message sending node in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a message receiving node according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a resource allocation device according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another resource allocation device according to an embodiment of the present application.
  • the SRv6 policy paths of slicing users are calculated in real time by the controller based on SLA requirements, and based on the current static allocation of slicing resources, each All slice identifiers reserve resources, so the links that the SRv6 policy path corresponding to the slice user does not pass also need to reserve resources, resulting in a great waste of resources in the entire network.
  • the resource allocation method in the message sent on the SRv6 policy path, includes the resource indication flag, through which the real-time dynamic allocation of slice physical resources on the forwarding plane can be realized, and the problem of huge waste of resources caused by the static allocation of slice resources can be solved .
  • the embodiment of the present application provides a resource allocation method, which is applied to a message sending node, as shown in FIG. 1, the method includes:
  • the IPv6 packet header of the message includes a slice identifier (such as ID, which can be specifically expressed as Slice ID) and a resource indication flag (which can be expressed as Flags in English), and the resource indication flag is used to send information to the SRv6 policy path.
  • the message receiving node indicates the dynamic allocation of sub-link resources corresponding to the slice identifier.
  • the sent message may include a BFD message, or may include a user's service message, or may include a newly defined message.
  • the slice identifier can also be called a network slice identifier (in English, it can be expressed as Network Slice Selector).
  • the embodiment of the present application does not limit the name of the slice identifier, as long as its function is realized.
  • the resource indication flag is used to indicate to the packet receiving node on the SRv6 policy path the dynamic allocation of sub-link resources corresponding to the slice identifier, so that on the SRv6 policy path, each A message receiving node implements dynamic allocation of sub-link resources corresponding to the slice ID according to the resource indication flag, and associates the allocated sub-link resources with the slice ID to ensure that subsequent slice services can be dynamically allocated according to the slice ID.
  • the allocated sub-link resources are forwarded to have exclusive slice resources.
  • the message sent on the SRv6 policy path may include a BFD message for detecting the connectivity of the SRv6 policy path, and the BFD message may be triggered from the head node of the SRv6 policy path.
  • step S110 may include: sending a BFD message to the SRv6 policy path, that is, the BFD connection through the slice user's SRv6 policy candidate path (Candidate Path, CP) (which may be referred to as the SRv6 policy path for short)
  • the establishment process triggers the dynamic allocation of sub-link resources.
  • the software defined network (Software Defined Network, SDN) controller can calculate the segment list (segmentlist) path of the SRv6 policy primary CP and standby CP for the slice user, and use each link The End.X segment identifier (Segment ID, SID) of the road is used to arrange the path.
  • SDN Software Defined Network
  • the dynamic resource allocation of the SRv6 policy path can be triggered.
  • the head node also called The head node (corresponding to the message sending node) periodically sends a message, and the message includes a slice identifier and a resource indication flag, so that the forwarding plane carries the slice identifier to indicate the resource information required by the message, and carries the resource indication flag , indicating that the slice identifies the dynamic allocation of sub-link resources.
  • the resource indication flag may include a discard flag and/or a resource allocation flag
  • the discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier
  • the resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
  • the discard flag may be expressed as D-flag
  • the resource allocation flag may be expressed as A-flag
  • the sub-link resources may include underlying physical sub-link resources, such as including one or more of a G.mtn sub-interface, a channelization sub-interface, and a QoS queue.
  • the resource allocation flag included in the resource indication flag in the message is used to indicate whether to trigger the allocation of the corresponding sub-link resource according to the slice identifier when the sub-link resource cannot be obtained according to the slice identifier; the resource indication flag The discarding flag included is used to indicate whether to discard the message when the sub-link resource cannot be obtained according to the slice identifier.
  • each packet receiving node on the SRv6 policy path can realize The real-time dynamic allocation of underlying physical sub-link resources on the outbound interface and the association of sub-link resources with slice identifiers ensure that subsequent slice service traffic can be forwarded along the dynamically allocated sub-link resources according to slice identifiers, thereby Make sure that the business corresponding to the slice ID has exclusive slice resources.
  • the discard flag when the discard flag is the first value, for example, 1, it may indicate that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
  • the discarding flag is the second value, for example, 0, it may indicate that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
  • the resource allocation flag when the resource allocation flag is the first value, such as 1, it may indicate that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
  • the resource allocation flag is the second value, such as 0, it may indicate that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
  • the network slice identification option (English can be expressed as Network Slice Selector Option) in the IPv6 message header of the message can carry the resource indication flag.
  • the IPv6HBH, new HBH or DOH can include network slice identification options;
  • the resource indication flag may be included in the network slice identification option.
  • the IPv6HBH, new HBH or DOH of the IPv6 message header may include a network slice identification option, which means that the network slice identification option may be defined in the HBH, new HBH or DOH header in the IPv6 message header, so
  • the network slice identifier option is used to encapsulate the slice identifier in the IPv6 data plane and carry a discard flag and/or a resource allocation flag, and the slice identifier is used to identify the slice to which the data packet belongs.
  • the format of the network slice identification option can be as shown in Figure 2, and the network slice identification option can include option type (English can be expressed as Option Type), option data field length (English can be expressed as Opt Data Len ), the resource indication flag and the slice identifier.
  • the network slice identification option includes the option type, option data field length, resource indication flag and slice identification representation (i.e. expression form) and their meanings are as follows:
  • Option type can include an 8-bit identifier, and the specific value of the 8-bit identifier can be assigned by the Internet Assigned Numbers Authority (IANA); for example, among the 8-bit identifiers, the highest The first 2 bits can be set to 00, which is used to indicate that the message receiving node that cannot recognize the option type can skip the network slice identification option and continue to process the IPv6 header; the third bit in the highest order of the first 3 bits can be set to 0, indicating that the option data in the network slice identification option will not change during packet transmission.
  • IANA Internet Assigned Numbers Authority
  • Option data field length can include an 8-bit identifier. At this time, the data length recorded in the option data field length is in eight digits. The specific value is used to indicate the length of the data carried after the option data field length in the network slice identification option. Data length. Exemplarily, when the specific value indicated by the field length is 6, the data length of the data carried after the indicated option data field length is 6 bytes.
  • Network slice identifier an identifier (such as ID) used to indicate the network slice to which the data packet belongs, that is, the slice identifier in this application.
  • Resource indication flag may include a 16-bit identifier, as shown in FIG. 3 .
  • the first bit identifier in the resource indication flag may be a discarding flag bit, which is used to record the discarding flag; when the discarding flag is set to 1, it may indicate that when sub-link resources cannot be obtained according to the slice flag, Discarding the message; when the discarding flag is set to 0, it may indicate that the message is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
  • the second identifier in the resource indication flag can be a resource allocation flag bit, which is used to record the resource allocation flag; when the resource allocation flag is set to 1, it can indicate that when the sub-link resource cannot be obtained according to the slice identifier, the allocation corresponding When the resource allocation flag is set to 0, it may indicate that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
  • the identifiers other than the first and second digits in the resource indication flag can be represented as R, which is used to indicate that the identifier is not used and can be used in the future.
  • the value of the identifier corresponding to the R bit may be recorded as 0, which is used to indicate that the value corresponding to the identifier is negligible.
  • the source address or the Flowlabel field of the IPv6 message header of the message may carry the resource indicator.
  • the resource indicator is recorded in the source address or the Flowlabel field of the IPv6 message header, so The resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
  • the source address or the two indication bits in the Flowlabel field can be used for Carries resource allocation flags and discard flags.
  • the resource indication flag may include a discard flag and a resource allocation flag, and the indication meanings of the discard flag and the resource allocation flag when they are different values may include:
  • the resource indication flag is used to indicate that the sublink cannot be obtained according to the slice identifier resources, forwarding the message along the preset default path;
  • the resource indication flag is used to indicate that the sublink cannot be obtained according to the slice identifier
  • For resources forward the message along a preset default path, and allocate corresponding sub-link resources according to the resource requirements corresponding to the slice identifier;
  • the resource indication flag is used to indicate that the sublink cannot be obtained according to the slice identifier resources, discard the message;
  • the resource indication flag is used to indicate that the sublink cannot be obtained according to the slice identifier resources, discard the packet, and allocate corresponding sub-link resources according to the resource requirement corresponding to the slice identifier.
  • each packet receiving node on the SRv6 policy path when each packet receiving node on the SRv6 policy path receives the BFD packet including the resource indication flag, it can The value indicated by the flag is used to process the BFD message.
  • the packet receiving node may process the BFD packet according to the indication meaning of the resource indication flag when the discarding flag and the resource allocation flag are respectively different values.
  • the sending the message to the SRv6 policy path may include:
  • the resource indication flag includes a discard flag and a resource allocation flag
  • the discard flag and the resource allocation flag are respectively the first value or the second value
  • the resource indication flags in the first N packets the discarding flag is the second value
  • the resource allocation flag is the first value
  • the first value can be 1
  • the second value can be 0, then in the first N messages, the flag bit of D-Flag is 0, the flag bit of A-Flag is 1; in this way, the flag bit of D-Flag is 0, and the flag bit of A-Flag is 1, which can make each message receiving node receiving the message according to D-Flag and A -Flag, when the sub-link resource cannot be obtained according to the slice identifier, report the information to the control plane, and simultaneously forward the message from the physical interface corresponding to the outgoing interface or the non-slicing shared sub-link resource of the outgoing interface (that is, The message is forwarded through the sub-link corresponding to the slice identifier); the control plane can send the data plane to create or occupy
  • the packets can trigger the dynamic resource allocation on each node along the SRv6 policy path, and the allocated sub-link resources are consistent with the slice identifier in the packet Associated.
  • the N+1th message to the Mth message can be sent to the SRv6 policy path; wherein, the N+1th message to the Mth message
  • the resource indication flag in this document is used to detect whether each message receiving node on the SRv6 policy path has completed the dynamic allocation of sub-link resources corresponding to the slice identifier; wherein, M is greater than N, and M and N are all positive integers;
  • the discarding flag is the first value
  • the resource allocation flag is the first value
  • the first value may be 1,
  • the flag bit of D-Flag is 1, and the flag bit of A-Flag is 1; thus, the flag bit of D-Flag is 1, and the flag bit of A-Flag is 1.
  • the flag bit is 1, so that each message receiving node receiving the message reports the information to the control plane when the sub-link resource cannot be obtained according to the slice identifier according to the D-Flag and A-Flag, and discards the message at the same time ;
  • the control plane may send the data plane to create or occupy the physical sub-link interface resources of the corresponding bandwidth according to the resource requirements corresponding to the slice identifier (that is, allocate the corresponding sub-link resources).
  • the discarding flag in the message is the first value, and the resource allocation flag is the first value, it is determined that the Mth message has been sent, and the next sent message is the M+1th message.
  • each node of the SRv6 policy path has completed the allocation of sub-link resources (it can be understood as determining the SRv6 policy path).
  • each packet receiving node when transmitting BFD packets on the SRv6 policy path, each packet receiving node can obtain sublink resources according to the slice identifier in the BFD packet, and then according to the slice identifier in the corresponding Forward the BFD message on the resource; when the sub-link resource cannot be obtained, report the information to the control plane and discard the message at the same time, so that the control plane allocates the corresponding sub-link according to the resource requirement corresponding to the slice identifier resource.
  • the discard flag in the return packet of the received BFD packet is The first value, and the resource allocation flag is the first value, it can be determined that the detection of the SRv6 policy path is completed, each node of the SRv6 policy path has completed the dynamic allocation and association of the sub-link resources corresponding to the slice identifier, and the BFD state is connected (English can be expressed as UP), so as to further determine that the Mth BFD packet has been sent, the next BFD packet to be sent is the M+1th BFD packet, and change the value indicated by the resource indication flag.
  • the message after the Mth message can be sent to the SRv6 policy path; wherein, the resource indicator in the message after the Mth message is used to indicate each message receiving node, according to the When the sublink resource cannot be obtained by the slice identifier, the message is discarded.
  • the discard flag is a first value
  • the resource allocation flag is a second value.
  • the first value can be 1
  • the second value can be 0, then in the message after the Mth message, the flag bit of D-Flag is 1, and the flag bit of A-Flag is 0; thus, through D-Flag
  • the flag bit of A-Flag is 1, and the flag bit of A-Flag is 0, so that each message receiving node receiving the message can discard the message according to the D-Flag and A-Flag.
  • the periodic detection BFD packets can be sent. If the device data plane cannot find the physical If the sublink interface is used, the BFD packet can be discarded.
  • the BFD message may be at least one of static BFD, dynamic BFD, and SBFD, so as to detect the continuity of the SRv6 policy CP.
  • the specific methods for triggering the dynamic allocation and association of resources of the SRv6 policy CP by using the BFD message sent during the BFD establishment process of the SRv6 policy CP of the slice user may include:
  • the head node of the SRv6 policy path clears the D-flag in the resource indication flag (such as carried in the HBH header) in the first N BFD packets sent (N value is configurable) mark (that is, set the D-flag to 0), and set the A-flag mark (that is, set the A-flag to 1); through this indication method, the resource indication flag in the first N BFD messages triggers all Each message receiving node on the SRv6 policy path dynamically allocates the sub-link resource corresponding to the slice identifier;
  • the head node sets the D-flag (that is, D-flag is set to 1) and A-flag (that is, A- flag is set to 1); through this indication method, the BFD message sent after the Nth BFD message is used to detect whether each message receiving node on the SRv6 policy path has completed the sub-link resource corresponding to the slice identifier Dynamic allocation until the head node receives the return message of the BFD message whose D-flag mark and A-flag mark are 1 respectively;
  • the SRv6 Each node of the policy path has completed the dynamic allocation and association of sub-link resources corresponding to the slice identifier, and the BFD state is connected; at the same time, the A-flag in the HBH header is cleared (that is, the A-flag is set to 0); And send a subsequent periodic detection BFD message; wherein, in the subsequent periodic detection BFD message, the resource indication flag in the BFD message is used to indicate each message receiving node, when the slice identifier cannot obtain When sub-link resources are used, the BFD message is discarded.
  • the periodic detection BFD message sent can be set by setting the D-flag flag and clearing the A-flag flag to indicate when the data plane forwards BFD
  • the BFD packet is discarded;
  • the state of the SRv6 policy can only be connected after the BFD session state corresponding to the CP of the slice SRv6 policy is connected, so that services can be diverted to the SRv6 policy.
  • the value of the D-flag is 0, and the value of the A-flag is also 0: the packet is forwarded from the physical interface corresponding to the outbound interface or the non-slice shared sublink resource of the outbound interface (that is, through the default The sub-link forwards the BFD message);
  • the value of the D-flag mark is 0, and the value of the A-flag mark is 1: report the information to the control plane, and at the same time forward the message from the physical interface corresponding to the outgoing interface or the non-slicing shared sub-link resource of the outgoing interface (that is, , forward the BFD message through the default sub-link); the control plane sends the data plane to create or occupy the physical sub-link interface resources of the corresponding bandwidth according to the resource requirements corresponding to the slice identifier (that is, allocate the corresponding sub-link road resources);
  • the value of the D-flag is 1, and the value of the A-flag is 0: the packet is discarded;
  • the value of the D-flag is 1, and the value of the A-flag is 1: report the information to the control plane and discard the message at the same time; the control plane sends the data plane to create or occupy the corresponding bandwidth according to the resource requirements corresponding to the slice identifier Physical sub-link interface resources (that is, allocation of corresponding sub-link resources).
  • this application example provides a network architecture for the resource allocation method, which may include node devices A, B, C, D, E, F, G, and H, and these eight node devices run ISIS Dynamic routing protocol, and all in the same intermediate system to intermediate system (ISIS) domain, all devices support slicing capabilities, in addition, a Border Gateway Protocol (Border Gateway Protocol) is established between the SDN controller and the forwarding device , BGP)-Link-State (Link-State, LS) connection.
  • Border Gateway Protocol Border Gateway Protocol
  • slice user 1 in the current network needs an exclusive slice link resource with a bandwidth of 100 megabits per second (Mbps) from node A to node E.
  • the SDN controller allocates slice identification resources for slice user 1 according to the slice requirement of slice user 1. For example, if the allocated slice identification is 1, and the corresponding resource information is 100M bandwidth, then the allocated slice identification and slice user The relationship between them is shown in Table 1 below:
  • the SDN controller synchronizes the slice identifier resource to each node in the network.
  • the controller or head node calculates a segmentlist path of the SRv6 strategy primary CP and standby CP with bandwidth resources from A to E meeting the 100M requirement according to the requirements of slice user 1, and uses each The End.X SID of the link is used to arrange the path.
  • End.X represents the node type of each node
  • End.X SID represents the link type of the link between each node.
  • the calculated active CP and standby CP can be expressed as:
  • the SDN controller When the SDN controller calculates the path, the SDN controller sends the above path to the head node A through the BGP SRv6 policy.
  • the BFD packets sent during the corresponding BFD connection establishment process are used to trigger the dynamic allocation and association of resources on the CP in the SRv6 policy.
  • the sub-interface link resources on each node device are The QoS queue is taken as an example.
  • the dynamic allocation process of the sub-link resource corresponding to the slice identifier is as follows:
  • the head node A of the SRv6 policy path receives the BGP SRv6 policy path (including the active CP and standby CP) and the slice ID SliceID1 issued by the controller, according to the BFD configuration corresponding to the SRv6 CP and standby CP) enable BFD;
  • the head node A sets the D-flag carried in the forwarding plane message to 0 and the A-flag to 1 in the first N BFD messages sent along the main CP;
  • the BFD message is forwarded along the main CP ⁇ X3:1::100, X3:2::100, X3:3::100, X3:4::100>, and the head node A finds out Port 0/0/1, on the outbound port 0/0/1, according to the SliceID1 carried in the packet header of the forwarding plane, if the corresponding QoS queue cannot be found on the data plane, according to D-flag is 0, A- flag is 1, report information to the control plane, and at the same time forward the BFD message from the physical interface corresponding to the outbound interface or the non-slice shared sub-link resource of the outbound interface;
  • SliceID1 knows that the resource requirement is 100M bandwidth, so it creates a QoS queue with 100M bandwidth for it on the delivery data plane, associates it with SliceID1, and saves the corresponding relationship locally;
  • the BFD message is forwarded to devices B, C, and D along the main CP, so that each node A, B, C, and D on the main CP, according to the indication that D-flag is 0 and A-flag is 1 in the BFD message , start to allocate a QoS queue with 100M bandwidth for SliceID1 on the corresponding outbound interface;
  • Head node A will send The D-flag carried in the forwarding plane message is set to 1, and the A-flag is set to 1, which is used to detect whether each node on the main CP has completed the dynamic allocation of sub-link resources corresponding to SliceID1;
  • the BFD packets will be associated with SliceID1 on the corresponding outgoing interface on devices A, B, C, and D.
  • the QoS queue is forwarded;
  • D-flag 1 and A-flag is 1.
  • the device sends information to the control plane and discards the BFD packet at the same time; the control plane of the device learns that the resource requirement is 100M bandwidth according to SliceID1, so it sends the data plane to create a QoS queue with 100M bandwidth for it, and associates it with SliceID1. Save the corresponding relationship;
  • the head node A of the SRv6 policy path receives the return packet of the BFD packet whose D-flag is 1 and A-flag is 1, it indicates that the QoS queue corresponding to SliceID1 corresponding to 100M bandwidth has been completed on the outbound interfaces of all nodes along the path of the main CP.
  • connection process of the BFD queue is the same as above (simultaneously with the establishment process of the BFD session of the active CP), and will not be described in detail here.
  • the resource allocation method uses the resource indication flag to indicate to the message receiving node on the SRv6 policy path the dynamic allocation of sub-link resources corresponding to the slice identifier, so as to realize the dynamic allocation of sub-link resources on the bearer network SRv6 policy path.
  • the real-time dynamic allocation and association of the physical resources required by slices can solve the problem of great waste of resources caused by the static slice resource allocation scheme, which is not suitable for large-scale deployment on the live network.
  • the embodiment of the present application also provides a resource allocation method, which is applied to a message receiving node, as shown in FIG. 6, the method includes:
  • the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
  • the received message may include a BFD message, or may include a service message of a user, or may include a newly defined message.
  • the resource indication flag is used to indicate the dynamic allocation of sub-link resources corresponding to the slice identifier, so that on the SRv6 policy path, each message receiving node
  • the indication flag realizes the dynamic allocation of sub-link resources corresponding to the slice ID, and associates the allocated sub-link resources with the slice ID, so as to ensure that subsequent slice services can be forwarded along the dynamically allocated sub-link resources according to the slice ID , to be able to have exclusive slice resources.
  • the resource indication flag may include a discard flag and/or a resource allocation flag
  • the discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier
  • the resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
  • the discard flag when the discard flag is the first value, it may indicate that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
  • the discarding flag When the discarding flag is the second value, it may indicate that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
  • the resource allocation flag when the resource allocation flag is the first value, it may indicate that when sub-link resources cannot be obtained according to the slice identifier, corresponding sub-link resources are allocated;
  • the resource allocation flag is the second value, it may indicate that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
  • the IPv6 HBH, new HBH or DOH of the IPv6 packet header may include a network slice identification option
  • the resource indication flag may be included in the network slice identification option.
  • the source address or Flowlabel field of the IPv6 packet header may record the resource indication flag, and the resource indication flag may occupy part of the indication bits of the source address or Flowlabel field.
  • the network slice identification option may further include: option type, option data field length, and the slice identification.
  • the method may also include:
  • the message is processed according to the value indicated by the resource indication flag.
  • the processing of the message according to the value indicated by the resource indication flag may include:
  • the discard flag is the second value and the resource allocation flag is the first value, forward the message along a preset default path, and allocate the corresponding sub-link according to the resource requirement corresponding to the slice identifier resource;
  • the discard flag is the first value and the resource allocation flag is the first value, discard the message, and allocate corresponding sublink resources according to the resource requirement corresponding to the slice identifier.
  • the indication mode of the resource indication flag, the specific indication content, and the real-time dynamic allocation and association of sub-link resources corresponding to the slice identifier according to the resource indication flag For the specific way, you can refer to the detailed description of the above method applied to the message sending node, which will not be described here.
  • the embodiment of the present application also provides a network node.
  • the network node is a message sending node.
  • the message sending node 700 includes: a transceiver 710, wherein the transceiver 710 is configured as:
  • the IPv6 packet header of the message includes a slice identifier and a resource indication flag
  • the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
  • the message may include a BFD message, or may include a service message of a user, or may include a newly defined message.
  • the resource indication flag includes a discard flag and/or a resource allocation flag
  • the discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier
  • the resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
  • the discard flag when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
  • the discarding flag When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
  • the resource allocation flag when the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
  • the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
  • the IPv6HBH, new HBH or DOH of the IPv6 message header includes a network slice identification option
  • the network slice identification option includes the resource indication flag.
  • the resource indication flag is recorded in the source address or Flowlabel field of the IPv6 packet header, and the resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
  • the network slice identification option further includes: option type, option data field length, and the slice identification.
  • the resource indication flag includes a discard flag and a resource allocation flag
  • the resource indication flag is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forwarding along the preset default path said message;
  • the resource indication flag is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forwarding along the preset default path The message, and according to the resource requirements corresponding to the slice identifier, allocate corresponding sub-link resources;
  • the resource indication flag is used to indicate that the packet is discarded when sub-link resources cannot be obtained according to the slice identifier
  • the resource indication flag is used to indicate that the packet is discarded when the sub-link resource cannot be obtained according to the slice identifier, and According to the resource requirements corresponding to the slice identifiers, corresponding sub-link resources are allocated.
  • the transceiver 710 is further configured as:
  • the resource indication flag includes a discard flag and a resource allocation flag, and when the discard flag and the resource allocation flag are respectively the first value or the second value:
  • the resource indication flags in the first N packets are: the discard flag is a second value, and the resource allocation flag is a first value;
  • the resource indication flags in the N+1th message to the Mth message are: the discarding flag is the first value, and the resource allocation flag is the first value;
  • the resource indication flag in the packets after the Mth packet the discard flag is a first value, and the resource allocation flag is a second value.
  • the transceiver 710 is further configured as:
  • the transceiver 710 is further configured as:
  • the embodiment of the present application also provides a network node.
  • the network node is a message receiving node.
  • the message receiving node 800 includes: a transceiver 810, wherein the transceiver 810 is configured as:
  • the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
  • the message may include a BFD message, or may include a user's service message, or may include a newly defined message.
  • the resource indication flag includes a discard flag and/or a resource allocation flag
  • the discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier
  • the resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
  • the discard flag when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
  • the discarding flag When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
  • the resource allocation flag when the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
  • the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
  • the IPv6HBH, new HBH or DOH of the IPv6 message header includes a network slice identification option
  • the network slice identification option includes the resource indication flag.
  • the resource indication flag is recorded in the source address or Flowlabel field of the IPv6 packet header, and the resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
  • the network slice identification option further includes: option type, option data field length, and the slice identification.
  • the transceiver 810 is further configured as:
  • the message is processed according to the value indicated by the resource indication flag.
  • the transceiver 810 is further configured to:
  • the discard flag is the second value and the resource allocation flag is the first value, forward the packet along the preset default path, and report information to the control plane, so that the control plane identifies the Resource requirements, allocate corresponding sub-link resources;
  • the discard flag is the first value and the resource allocation flag is the first value
  • discard the message and report information to the control plane, so that the control plane allocates the corresponding resource requirements according to the resource requirements corresponding to the slice identifier sublink resource.
  • the embodiment of the present application also provides a resource allocation device, which is applied to a message sending node.
  • the message sending node 900 includes:
  • a message sending unit 910 configured to send a message to the SRv6 policy path
  • the IPv6 packet header of the message includes a slice identifier and a resource indication flag
  • the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
  • the message may include a BFD message, or may include a service message of a user, or may include a newly defined message.
  • the resource indication flag includes a discard flag and/or a resource allocation flag
  • the discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier
  • the resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
  • the discard flag when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
  • the discarding flag When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
  • the resource allocation flag when the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
  • the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
  • the IPv6HBH, new HBH or DOH of the IPv6 message header includes a network slice identification option
  • the network slice identification option includes the resource indication flag.
  • the resource indication flag is recorded in the source address or Flowlabel field of the IPv6 packet header, and the resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
  • the network slice identification option further includes: option type, option data field length, and the slice identification.
  • the resource indication flag includes a discard flag and a resource allocation flag
  • the resource indication flag is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forwarding along the preset default path said message;
  • the resource indication flag is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forwarding along the preset default path The message, and according to the resource requirements corresponding to the slice identifier, allocate corresponding sub-link resources;
  • the resource indication flag is used to indicate that the packet is discarded when sub-link resources cannot be obtained according to the slice identifier
  • the resource indication flag is used to indicate that the packet is discarded when the sub-link resource cannot be obtained according to the slice identifier, and According to the resource requirements corresponding to the slice identifiers, corresponding sub-link resources are allocated.
  • the message sending unit 910 is further configured as:
  • the resource indication flag includes a discard flag and a resource allocation flag, and when the discard flag and the resource allocation flag are respectively the first value or the second value:
  • the resource indication flags in the first N packets are: the discard flag is a second value, and the resource allocation flag is a first value;
  • the resource indication flags in the N+1th message to the Mth message are: the discarding flag is the first value, and the resource allocation flag is the first value;
  • the resource indication flag in the packets after the Mth packet the discard flag is a first value, and the resource allocation flag is a second value.
  • the message sending unit 910 is further configured as:
  • the message sending unit 910 is further configured as:
  • the packet sending unit 910 may be implemented by a transceiver in the packet sending node.
  • the embodiment of the present application also provides a resource allocation device, which is applied to a message receiving node.
  • the message receiving node 1000 includes:
  • a packet receiving unit 1010 configured to receive packets on the SRv6 policy path
  • the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
  • the message may include a BFD message, or may include a service message of a user, or may include a newly defined message.
  • the resource indication flag includes a discard flag and/or a resource allocation flag
  • the discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier
  • the resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
  • the discard flag when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
  • the discarding flag When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
  • the resource allocation flag when the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
  • the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
  • the IPv6HBH, new HBH or DOH of the IPv6 message header includes a network slice identification option
  • the network slice identification option includes the resource indication flag.
  • the resource indication flag is recorded in the source address or Flowlabel field of the IPv6 packet header, and the resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
  • the network slice identification option further includes: option type, option data field length, and the slice identification.
  • the message receiving unit 1010 is further configured as:
  • the message is processed according to the value indicated by the resource indication flag.
  • the message receiving unit 1010 is further configured to:
  • the discard flag is the second value and the resource allocation flag is the first value, forward the packet along the preset default path, and report information to the control plane, so that the control plane identifies the Resource requirements, allocate corresponding sub-link resources;
  • the discard flag is the first value and the resource allocation flag is the first value
  • discard the message and report information to the control plane, so that the control plane allocates the corresponding resource requirements according to the resource requirements corresponding to the slice identifier sublink resource.
  • the message receiving unit 1010 may be implemented by a transceiver in a message receiving node.
  • the embodiment of the present application also provides a network node, including: a processor, a memory, and a program stored on the memory and operable on the processor.
  • a network node including: a processor, a memory, and a program stored on the memory and operable on the processor.
  • the network node may include the above-mentioned message sending node or a message receiving node.
  • the message sending node and the message receiving node when the program is executed by the processor, the specific implementation process of the foregoing resource allocation method embodiment is realized. Reference may be made to the above detailed description, and no further description is given here.
  • the specific embodiment of the present application also provides a readable storage medium on which a program is stored, and when the program is executed by a processor, the steps described in the aforementioned message sending node side method are implemented, or the aforementioned message receiving node side method is implemented. the steps.
  • the computer-readable storage medium is applied to the above-mentioned message sending node or message receiving node.
  • the execution steps in the corresponding resource allocation method are detailed in Method Implementation example, which will not be repeated here.
  • the disclosed methods and devices may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
  • the above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium.
  • the above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the sending and receiving methods described in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), magnetic disk or optical disc, etc., which can store program codes. medium.

Abstract

Provided in the present application are a resource allocation method and apparatus, and a network node. The method comprises: a message sending node sending a message to an SRv6 policy path, wherein an IPv6 message header of the message comprises a slice identifier and a resource indication sign; and the resource indication sign is used for indicating, to a message receiving node on the SRv6 policy path, the dynamic allocation of a sub-link resource corresponding to the slice identifier.

Description

资源分配方法、装置及网络节点Resource allocation method, device and network node
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110932008.1、申请日为2021年08月13日的中国专利申请和申请号为202210946390.6、申请日为2022年08月08日的中国专利申请提出,并要求上述中国专利申请的优先权,上述中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with the application number 202110932008.1 and the application date on August 13, 2021 and the Chinese patent application with the application number 202210946390.6 and the application date on August 8, 2022, and requests the priority of the above-mentioned Chinese patent applications Right, the entire content of the above-mentioned Chinese patent application is hereby incorporated into this application as a reference.
技术领域technical field
本申请涉及数据传输技术领域,尤其涉及一种资源分配方法、装置及网络节点。The present application relates to the technical field of data transmission, and in particular to a resource allocation method, device and network node.
背景技术Background technique
目前,数据承载网支持大规模硬切片的方案,主要采用将切片标识(比如ID)引入到互联网协议第6版-段路由(Internet Protocol Version 6-Segment Routing;简称:IPv6SR或SRv6)策略(英文可以表达为Policy)转发面的方式,即在SRv6报文头中携带切片标识,转发设备将切片标识与底层物理链路或子链路资源相关联,并结合相应的子链路物理隔离技术,如信道化子接口、G.8312(ITU国际电信联盟标准)接口、服务质量(Quality of Sevice,QoS)队列等,为用户提供有独立资源保障的高质量承载网硬切片服务。At present, the data bearer network supports large-scale hard slicing schemes, mainly adopting the strategy of introducing slice identifiers (such as IDs) into Internet Protocol Version 6-Segment Routing (abbreviation: IPv6SR or SRv6) (English It can be expressed as Policy) on the forwarding plane, that is, the slice identifier is carried in the SRv6 packet header, and the forwarding device associates the slice identifier with the underlying physical link or sub-link resource, and combines the corresponding sub-link physical isolation technology, Such as channelized sub-interfaces, G.8312 (ITU International Telecommunication Union standard) interfaces, Quality of Service (QoS) queues, etc., to provide users with high-quality bearer network hard slicing services with independent resource guarantees.
转发面携带切片标识的方案可以实现子接口级别的细粒度切片,同时因其不需要扩展控制面协议,因此不会给网络设备带来过大开销,使得数据承载网支持大规模切片成为可能。The forwarding plane carrying slice identifiers can implement fine-grained slices at the sub-interface level. At the same time, because it does not need to expand the control plane protocol, it will not bring too much overhead to network devices, making it possible for the data bearer network to support large-scale slices.
目前,切片标识对应的底层物理链路资源或子链路资源(即切片资源)的分配主要为静态配置的方法,即在全网所有链路上为每个切片标识提前分配好切片资源(物理链路资源或子链路资源),并建立好映射关系,以便设备在转发切片用户的报文时,能够根据切片标识找到对应的子链路资源进行转发。At present, the allocation of underlying physical link resources or sub-link resources (that is, slice resources) corresponding to the slice identifier is mainly a static configuration method, that is, slice resources (physical slice resources) are allocated in advance for each slice identifier on all links in the entire network. link resources or sub-link resources), and establish a mapping relationship, so that when the device forwards the slice user's message, it can find the corresponding sub-link resource according to the slice identifier and forward it.
由于切片用户的SRv6策略转发面的路径是控制器根据服务等级协议(Service-Level Agreement,SLA)需求实时计算出来的,而目前切片资源静态分配的方案,需要在全网所有链路上均为每个切片标识预留资源,因此使得切片用户SRv6策略路径未经过的链路上也要为其预留资源,从而造成全网资源的极大浪费。Since the path of the SRv6 policy forwarding plane of slice users is calculated by the controller in real time according to the requirements of the Service-Level Agreement (SLA), the current static allocation of slice resources requires Each slice identifies reserved resources. Therefore, resources are also reserved on the links that slice users do not pass through the SRv6 policy path, resulting in a great waste of network-wide resources.
发明内容Contents of the invention
为解决相关技术问题,本申请实施例提供一种资源分配方法、装置及网络节点。To solve related technical problems, embodiments of the present application provide a resource allocation method, device, and network node.
本申请实施例提供一种资源分配方法,应用于报文发送节点,所述方法包括:An embodiment of the present application provides a resource allocation method, which is applied to a message sending node, and the method includes:
向SRv6策略路径上发送报文;Send packets to the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述SRv6策略路径上的报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 packet header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
上述方案中,所述报文包括双向检测(Bidirectional Forwarding Detection,BFD)报文。In the above solution, the message includes a bidirectional detection (Bidirectional Forwarding Detection, BFD) message.
上述方案中,所述资源指示标志包括丢弃标志和/或资源分配标志;In the above solution, the resource indication flag includes a discard flag and/or a resource allocation flag;
所述丢弃标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时是否丢弃所述报文;The discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier;
所述资源分配标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时,是否根据所述切片标识分配对应的子链路资源。The resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
上述方案中,所述丢弃标志为第一值时,表示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;In the above solution, when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
所述丢弃标志为第二值时,表示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文。When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
上述方案中,所述资源分配标志为第一值时,表示根据所述切片标识不能获得子链路资源时,分配对应的子链路资源;In the above solution, when the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
所述资源分配标志为第二值时,表示根据所述切片标识不能获得子链路资源时,不分配子链路资源。When the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
上述方案中,所述IPv6报文头的IPv6逐跳选项头(Hop-By-hop options Header,HBH)、新HBH或者目的选项头(Destination Options Header,DOH)中包括网络切片标识选项;In the above scheme, the IPv6 header of the IPv6 packet includes a network slice identification option in the IPv6 hop-by-hop options header (Hop-By-hop options Header, HBH), new HBH or destination options header (Destination Options Header, DOH);
其中,所述网络切片标识选项中包括所述资源指示标志。Wherein, the network slice identification option includes the resource indication flag.
上述方案中,所述IPv6报文头的源地址或流标签(Flowlabel)字段中记录有所述资源指示标志,所述资源指示标志占用所述源地址或Flowlabel字段的部分指示位(英文可以表达为bit)。In the above scheme, the resource indicator is recorded in the source address or flow label (Flowlabel) field of the IPv6 message header, and the resource indicator occupies the part of the source address or the Flowlabel field (English can express for bit).
上述方案中,所述网络切片标识选项还包括:选项类型、选项数据字段长度和所示切片标识。In the above solution, the network slice identification option further includes: option type, option data field length and slice identification.
上述方案中,所述资源指示标志包括丢弃标志和资源分配标志,所述丢弃标志和所述资源分配标志分别为不同值时的指示含义包括:In the above solution, the resource indication flag includes a discard flag and a resource allocation flag, and the indication meanings when the discard flag and the resource allocation flag are different values include:
所述丢弃标志为第二值,且所述资源分配标志为第二值,用于指示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文;The discarding flag is a second value, and the resource allocation flag is a second value, which is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forward the message along a preset default path;
所述丢弃标志为第二值,且所述资源分配标志为第一值,用于指示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源;The discard flag is a second value, and the resource allocation flag is a first value, which is used to indicate that when sublink resources cannot be obtained according to the slice identifier, forward the message along a preset default path, and Allocating corresponding sub-link resources according to resource requirements corresponding to the slice identifier;
所述丢弃标志为第一值,且所述资源分配标志为第二值,用于指示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;The discarding flag is a first value, and the resource allocation flag is a second value, which is used to indicate that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
所述丢弃标志为第一值,且所述资源分配标志为第一值,用于指示在根据所述切片标识不能获得子链路资源时,丢弃所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源。The discarding flag is a first value, and the resource allocation flag is a first value, which is used to indicate that when sublink resources cannot be obtained according to the slice identifier, the message is discarded, and according to the slice identifier, the corresponding resource requirements, allocate corresponding sub-link resources.
上述方案中,所述报文发送节点为SRv6策略路径的头节点时,所述向SRv6策略路径上发送报文,包括:In the above solution, when the message sending node is the head node of the SRv6 policy path, the sending of the message to the SRv6 policy path includes:
向SRv6策略路径上发送前N个报文;其中,前N个报文中的所述资源指示标志用于触发所述SRv6策略路径上的各个报文接收节点进行对所述切片标识对应的子链路资源的动态分配;Sending the first N messages on the SRv6 policy path; wherein, the resource indication flags in the first N messages are used to trigger each message receiving node on the SRv6 policy path to carry out subsections corresponding to the slice identifiers. Dynamic allocation of link resources;
向SRv6策略路径上发送第N+1个报文至第M个报文;其中,第N+1个报文至第M个报文中的所述资源指示标志用于检测所述SRv6策略路径上的各个报文接收节点是否完成了对所述切片标识所对应子链路资源的动态分配;其中,M大于N,且M与N均为正整数;Send the N+1th message to the Mth message on the SRv6 policy path; wherein, the resource indicator in the N+1th message to the Mth message is used to detect the SRv6 policy path Whether each message receiving node on the network has completed the dynamic allocation of sublink resources corresponding to the slice identifier; wherein, M is greater than N, and M and N are both positive integers;
向SRv6策略路径上发送第M个报文之后的报文;其中,第M个报文之后的报文中的所述资源指示标志用于指示各个报文接收节点,在根据所述切片标识不能获得子链路资源时,丢弃所述报文。Send the message after the Mth message to the SRv6 policy path; wherein, the resource indicator in the message after the Mth message is used to indicate each message receiving node, and the slice identifier cannot When sublink resources are obtained, the message is discarded.
上述方案中,所述资源指示标志包括丢弃标志和资源分配标志,所述丢弃标志和所述资源分配标志分别为第一值或第二值时:In the above solution, the resource indication flag includes a discard flag and a resource allocation flag, and when the discard flag and the resource allocation flag are respectively the first value or the second value:
前N个报文中的所述资源指示标志为:所述丢弃标志为第二值,所述资源分配标志为第一值;The resource indication flags in the first N packets are: the discard flag is a second value, and the resource allocation flag is a first value;
第N+1个报文至第M个报文中的所述资源指示标志为:所述丢弃标志为第一值,所述资源分配标志为第一值;The resource indication flags in the N+1th message to the Mth message are: the discarding flag is the first value, and the resource allocation flag is the first value;
第M个报文之后的报文中的所述资源指示标志:所述丢弃标志为第一值,所述资源分配标志为第二值。The resource indication flag in the packets after the Mth packet: the discard flag is a first value, and the resource allocation flag is a second value.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
向SRv6策略路径上发送第N+1个报文及第N+1个报文之后的报文的过程中,若接收到报文的回程报文,且所接收的回程报文中的丢弃标志为第一值,资源分配标志为第一值,则确定第M个报文已被发送,下一个发送的报文为第M+1个报文。During the process of sending the N+1th packet and the packets after the N+1th packet to the SRv6 policy path, if the return packet of the packet is received, and the discard flag in the received return packet is the first value, and the resource allocation flag is the first value, it is determined that the Mth message has been sent, and the next sent message is the M+1th message.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
向SRv6策略路径上发送第N+1个报文及第N+1个报文之后的报文的过程中,若接收到报文的回程报文,且所接收的回程报文中的丢弃标志为第一值,资源分配标志为第一值,则确定所述SRv6策略路径的每一节点完成了子链路资源的分配。During the process of sending the N+1th packet and the packets after the N+1th packet to the SRv6 policy path, if the return packet of the packet is received, and the discard flag in the received return packet is the first value, and the resource allocation flag is the first value, it is determined that each node of the SRv6 policy path has completed the allocation of sub-link resources.
本申请实施例还提供一种资源分配方法,应用于报文接收节点,所述方法包括:The embodiment of the present application also provides a resource allocation method, which is applied to a message receiving node, and the method includes:
接收SRv6策略路径上的报文;Receive packets on the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
上述方案中,所述报文包括BFD报文。In the above solution, the message includes a BFD message.
上述方案中,所述资源指示标志包括丢弃标志和/或资源分配标志;In the above solution, the resource indication flag includes a discard flag and/or a resource allocation flag;
所述丢弃标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时是否丢弃所述报文;The discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier;
所述资源分配标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时,是否根据所述切片标识分配对应的子链路资源。The resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
上述方案中,所述丢弃标志为第一值时,表示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;In the above solution, when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
所述丢弃标志为第二值时,表示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文。When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
上述方案中,所述资源分配标志为第一值时,表示根据所述切片标识不能获得子链路资源时,分配对应的子链路资源;In the above solution, when the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
所述资源分配标志为第二值时,表示根据所述切片标识不能获得子链路资源时,不分配子链路资源。When the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
上述方案中,所述IPv6报文头的IPv6HBH、新HBH或者DOH中包括网络切片标识选项;In the above scheme, the IPv6HBH, new HBH or DOH of the IPv6 message header includes a network slice identification option;
其中,所述网络切片标识选项中包括所述资源指示标志。Wherein, the network slice identification option includes the resource indication flag.
上述方案中,所述IPv6报文头的源地址或Flowlabel字段中记录有所述资源指示标志,所述资源指示标志占用所述源地址或Flowlabel字段的部分指示位。In the above solution, the resource indication flag is recorded in the source address or Flowlabel field of the IPv6 packet header, and the resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
上述方案中,所述网络切片标识选项还包括:选项类型、选项数据字段长度和所述切片标识。In the above solution, the network slice identification option further includes: option type, option data field length, and the slice identification.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
在根据所述切片标识不能获得子链路资源的情况下,根据所述资源指示标志所指示的数值,执行对所述报文的处理。In the case that the sublink resource cannot be obtained according to the slice identifier, the message is processed according to the value indicated by the resource indication flag.
上述方案中,所述资源指示标志包括丢弃标志和资源分配标志时,所述根据所述资源指示标志所指示的数值,执行对所述报文的处理,包括:In the above solution, when the resource indication flag includes a discard flag and a resource allocation flag, the processing of the message is performed according to the value indicated by the resource indication flag, including:
所述丢弃标志为第二值,且所述资源分配标志为第二值时,沿预设缺省路径转发所述报文;When the discarding flag is a second value, and the resource allocation flag is a second value, forwarding the message along a preset default path;
所述丢弃标志为第二值,且所述资源分配标志为第一值时,沿预设缺省路径转发所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源;When the discard flag is the second value and the resource allocation flag is the first value, forward the message along a preset default path, and allocate the corresponding sub-link according to the resource requirement corresponding to the slice identifier resource;
所述丢弃标志为第一值,且所述资源分配标志为第二值时,丢弃所述报文;When the discarding flag is a first value and the resource allocation flag is a second value, discarding the message;
所述丢弃标志为第一值,且所述资源分配标志为第一值时,丢弃所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源。When the discard flag is the first value and the resource allocation flag is the first value, discard the message, and allocate corresponding sublink resources according to the resource requirement corresponding to the slice identifier.
本申请实施例还提供一种网络节点,所述网络节点为报文发送节点,包括:收发机,其中,所述收发机配置为:The embodiment of the present application also provides a network node, the network node is a message sending node, including: a transceiver, wherein the transceiver is configured as:
向SRv6策略路径上发送报文;Send packets to the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述SRv6策略路径上的报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 packet header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
本申请实施例还提供一种网络节点,所述网络节点为报文接收节点,包括:收发机,其中,所述收发机配置为:The embodiment of the present application also provides a network node, the network node is a message receiving node, including: a transceiver, wherein the transceiver is configured as:
接收SRv6策略路径上的报文;Receive packets on the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
本申请实施例还提供一种资源分配装置,应用于报文发送节点,包括:The embodiment of the present application also provides a resource allocation device, which is applied to a message sending node, including:
报文发送单元,配置为向SRv6策略路径上发送报文;A packet sending unit configured to send packets to the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述SRv6策略路径上的报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 packet header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
本申请实施例还提供一种资源分配装置,应用于报文接收节点,包括:The embodiment of the present application also provides a resource allocation device, which is applied to a message receiving node, including:
报文接收单元,配置为接收SRv6策略路径上的报文;A packet receiving unit configured to receive packets on the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
本申请实施例还提供一种网络节点,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现上述报文发送节点侧任一方法的步骤,或者实现上述报文接收节点侧任一方法的步骤。The embodiment of the present application also provides a network node, including: a processor, a memory, and a program stored on the memory and operable on the processor, and when the program is executed by the processor, the above message The steps of any method on the side of the sending node, or the steps of any method on the side of the above message receiving node.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序,所述程序被处理器执行时实现上述报文发送节点侧任一方法的步骤,或者实现上述报文接收节点侧任一方法的步骤。The embodiment of the present application also provides a readable storage medium, where a program is stored on the readable storage medium, and when the program is executed by a processor, the steps of any method on the side of the message sending node are implemented, or the above message sending node is implemented. Steps of either method on the receiving node side.
本申请实施例提供的技术方案具有以下有益效果:The technical solutions provided by the embodiments of the present application have the following beneficial effects:
本申请实施例提供的资源分配方法、装置及网络节点,SRv6策略路径的报文中包括资源指示标志,用于触发SRv6策略路径的资源动态分配,以使得在SRv6策略路径上,每一报文接收节点根据该资源指示标志实现该切片标识对应的子链路资源的动态分配,并使所分配子链路资源与切片标识 相关联,确保后续的切片业务能够根据该切片标识沿动态分配的子链路资源进行转发,以能够拥有独享的切片资源,从而至少能够解决相关技术中SRv6报文发送时采用切片资源静态分配的方式造成的资源浪费的问题。In the resource allocation method, device, and network node provided by the embodiments of the present application, the message of the SRv6 policy path includes a resource indication flag, which is used to trigger the dynamic resource allocation of the SRv6 policy path, so that on the SRv6 policy path, each message The receiving node realizes the dynamic allocation of sub-link resources corresponding to the slice ID according to the resource indication flag, and associates the allocated sub-link resources with the slice ID to ensure that subsequent slice services can be dynamically allocated along the sub-link resources according to the slice ID. Link resources are forwarded so as to have exclusive slice resources, so as to at least solve the problem of waste of resources caused by static allocation of slice resources when sending SRv6 packets in related technologies.
附图说明Description of drawings
图1为本申请实施例一种资源分配方法的流程示意图;FIG. 1 is a schematic flowchart of a resource allocation method according to an embodiment of the present application;
图2为本申请实施例用于携带资源指示标志的网络切片标识选项的结构示意图;FIG. 2 is a schematic structural diagram of a network slice identification option for carrying a resource indication flag according to an embodiment of the present application;
图3为本申请实施例资源指示标志的结构示意图;FIG. 3 is a schematic structural diagram of a resource indication flag in an embodiment of the present application;
图4为本申请应用示例系统结构示意图;Fig. 4 is a schematic structural diagram of the application example system of the present application;
图5为本申请应用示例策略路径示意图;Fig. 5 is a schematic diagram of the strategy path of the application example;
图6为本申请实施例另一种资源分配方法的流程示意图;FIG. 6 is a schematic flowchart of another resource allocation method according to an embodiment of the present application;
图7为本申请实施例报文发送节点的结构示意图;FIG. 7 is a schematic structural diagram of a message sending node in an embodiment of the present application;
图8为本申请实施例报文接收节点的结构示意图;FIG. 8 is a schematic structural diagram of a message receiving node according to an embodiment of the present application;
图9为本申请实施例一种资源分配装置的结构示意图;FIG. 9 is a schematic structural diagram of a resource allocation device according to an embodiment of the present application;
图10为本申请实施例另一种资源分配装置的结构示意图。FIG. 10 is a schematic structural diagram of another resource allocation device according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved in this application clearer, the following will describe in detail with reference to the drawings and specific embodiments.
由于支持大规模切片的数据承载网中,切片用户的SRv6策略路径是控制器根据SLA需求实时计算出来的,而且基于目前的切片资源静态分配方式,需要在全网所有链路上均为每个切片标识均预留资源,因此使得切片用户对应的SRv6策略路径未经过的链路也需要预留资源,从而造成全网资源的极大浪费,为解决该技术问题,本申请实施例提供一种资源分配方法,在SRv6策略路径上发送的报文中,包括资源指示标志,通过资源指示标志实现转发面切片物理资源的实时动态分配,解决切片资源静态分配方式带来的资源极大浪费的问题。In a data bearer network that supports large-scale slicing, the SRv6 policy paths of slicing users are calculated in real time by the controller based on SLA requirements, and based on the current static allocation of slicing resources, each All slice identifiers reserve resources, so the links that the SRv6 policy path corresponding to the slice user does not pass also need to reserve resources, resulting in a great waste of resources in the entire network. To solve this technical problem, the embodiment of this application provides a The resource allocation method, in the message sent on the SRv6 policy path, includes the resource indication flag, through which the real-time dynamic allocation of slice physical resources on the forwarding plane can be realized, and the problem of huge waste of resources caused by the static allocation of slice resources can be solved .
本申请实施例提供一种资源分配方法,应用于报文发送节点,如图1所示,该方法包括:The embodiment of the present application provides a resource allocation method, which is applied to a message sending node, as shown in FIG. 1, the method includes:
S110,向SRv6策略路径上发送报文;S110, sending a message to the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识(比如ID,具体可以表达为Slice ID)以及资源指示标志(英文可以表达为Flags),资源指示标志用于向所述SRv6策略路径上的报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 packet header of the message includes a slice identifier (such as ID, which can be specifically expressed as Slice ID) and a resource indication flag (which can be expressed as Flags in English), and the resource indication flag is used to send information to the SRv6 policy path. The message receiving node indicates the dynamic allocation of sub-link resources corresponding to the slice identifier.
实际应用时,发送的报文可以包括BFD报文,或者可以包括用户的业务报文,或者可以包括新定义的报文。In actual application, the sent message may include a BFD message, or may include a user's service message, or may include a newly defined message.
所述切片标识也可以称为网络切片标识(英文可以表达为Network Slice Selector),本申请实施例对所述切片标识的名称不作限定,只要实现其功能即可。The slice identifier can also be called a network slice identifier (in English, it can be expressed as Network Slice Selector). The embodiment of the present application does not limit the name of the slice identifier, as long as its function is realized.
采用该实施例所述资源分配方法,资源指示标志用于向所述SRv6策略路径上的报文接收节点指示所述切片标识对应子链路资源的动态分配,以使得在SRv6策略路径上,每一报文接收节点根据该资源指示标志实现该切片标识对应的子链路资源的动态分配,并使所分配子链路资源与切片标识相关联,确保后续的切片业务能够根据该切片标识沿动态分配的子链路资源进行转发,以能够拥有独享的切片资源。Using the resource allocation method described in this embodiment, the resource indication flag is used to indicate to the packet receiving node on the SRv6 policy path the dynamic allocation of sub-link resources corresponding to the slice identifier, so that on the SRv6 policy path, each A message receiving node implements dynamic allocation of sub-link resources corresponding to the slice ID according to the resource indication flag, and associates the allocated sub-link resources with the slice ID to ensure that subsequent slice services can be dynamically allocated according to the slice ID. The allocated sub-link resources are forwarded to have exclusive slice resources.
本申请实施例中,对于步骤S110,SRv6策略路径上发送的报文可以包括用于检测SRv6策略路径连通性的BFD报文,该BFD报文可以从SRv6策略路径的头节点触发。In this embodiment of the application, for step S110, the message sent on the SRv6 policy path may include a BFD message for detecting the connectivity of the SRv6 policy path, and the BFD message may be triggered from the head node of the SRv6 policy path.
本申请实施例中,步骤S110的具体实现可以包括:向SRv6策略路径上发送BFD报文,即通过切片用户的SRv6策略候选路径(Candidate Path,CP)(可以简称为SRv6策略路径)的BFD连接建立过程触发子链路资源的动态分配。具体地,对应于切片用户的切片链路资源需求,软件定义网络(Software Defined Network,SDN)控制器可以为切片用户计算SRv6策略主CP和备CP的段列表(segmentlist)路径,并使用各链路的End.X分段标示符(Segment ID,SID)进行路径的编排。In the embodiment of the present application, the specific implementation of step S110 may include: sending a BFD message to the SRv6 policy path, that is, the BFD connection through the slice user's SRv6 policy candidate path (Candidate Path, CP) (which may be referred to as the SRv6 policy path for short) The establishment process triggers the dynamic allocation of sub-link resources. Specifically, corresponding to the slice link resource requirements of the slice user, the software defined network (Software Defined Network, SDN) controller can calculate the segment list (segmentlist) path of the SRv6 policy primary CP and standby CP for the slice user, and use each link The End.X segment identifier (Segment ID, SID) of the road is used to arrange the path.
实际应用时,根据SDN控制器所计算的SRv6策略的主CP或各备CP,可以触发SRv6策略路径的资源动态分配,在SRv6策略的主CP或各备CP上,首节点(也可称为头节点,对应为报文发送节点)周期地发送报文,报文中包括切片标识以及资源指示标志,这样通过转发面携带切片标识,指示报文所需要的资源信息,以及通过携带资源指示标志,指示该切片标识对应子链路资源的动态分配。In actual application, according to the active CP or each standby CP of the SRv6 policy calculated by the SDN controller, the dynamic resource allocation of the SRv6 policy path can be triggered. On the active CP or each standby CP of the SRv6 policy, the head node (also called The head node (corresponding to the message sending node) periodically sends a message, and the message includes a slice identifier and a resource indication flag, so that the forwarding plane carries the slice identifier to indicate the resource information required by the message, and carries the resource indication flag , indicating that the slice identifies the dynamic allocation of sub-link resources.
本申请实施例中,所述资源指示标志可以包括丢弃标志和/或资源分配标志;In this embodiment of the present application, the resource indication flag may include a discard flag and/or a resource allocation flag;
所述丢弃标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时是否丢弃所述报文;The discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier;
所述资源分配标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时,是否根据所述切片标识分配对应的子链路资源。The resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
实际应用时,丢弃标志可以表示为D-flag,资源分配标志可以表示为A-flag。In actual application, the discard flag may be expressed as D-flag, and the resource allocation flag may be expressed as A-flag.
本申请实施例中,所述子链路资源可以包括底层物理子链路资源,如包括G.mtn子接口、信道化子接口和QoS队列中的一个或多个。In this embodiment of the present application, the sub-link resources may include underlying physical sub-link resources, such as including one or more of a G.mtn sub-interface, a channelization sub-interface, and a QoS queue.
本申请实施例中,报文中资源指示标志包括的资源分配标志用于指示在根据所述切片标识不能获得子链路资源时,是否触发根据切片标识分配对应的子链路资源;资源指示标志包括的丢弃标志用于指示在根据所述切 片标识不能获得子链路资源时,是否丢弃报文,如此,通过资源分配标志和丢弃标志,能够实现SRv6策略路径上的每一报文接收节点的出接口上底层物理子链路资源的实时动态分配,以及将子链路资源与切片标识相关联,确保后续的切片业务流量能够根据切片标识沿着动态分配好的子链路资源进行转发,从而确保该切片标识所对应业务拥有独享的切片资源。In this embodiment of the present application, the resource allocation flag included in the resource indication flag in the message is used to indicate whether to trigger the allocation of the corresponding sub-link resource according to the slice identifier when the sub-link resource cannot be obtained according to the slice identifier; the resource indication flag The discarding flag included is used to indicate whether to discard the message when the sub-link resource cannot be obtained according to the slice identifier. In this way, through the resource allocation flag and the discarding flag, each packet receiving node on the SRv6 policy path can realize The real-time dynamic allocation of underlying physical sub-link resources on the outbound interface and the association of sub-link resources with slice identifiers ensure that subsequent slice service traffic can be forwarded along the dynamically allocated sub-link resources according to slice identifiers, thereby Make sure that the business corresponding to the slice ID has exclusive slice resources.
本申请实施例中,所述丢弃标志为第一值时,如为1时,可以表示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;In the embodiment of the present application, when the discard flag is the first value, for example, 1, it may indicate that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
所述丢弃标志为第二值时,如为0时,可以表示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文。When the discarding flag is the second value, for example, 0, it may indicate that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
本申请实施例中,所述资源分配标志为第一值时,如为1时,可以表示根据所述切片标识不能获得子链路资源时,分配对应的子链路资源;In this embodiment of the application, when the resource allocation flag is the first value, such as 1, it may indicate that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
所述资源分配标志为第二值时,如为0时,可以表示根据所述切片标识不能获得子链路资源时,不分配子链路资源。When the resource allocation flag is the second value, such as 0, it may indicate that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
本申请实施例中,可以通过报文的IPv6报文头中的网络切片标识选项(英文可以表达为Network Slice Selector Option)携带资源指示标志,换句话说,所述IPv6报文头的IPv6HBH、新HBH或者DOH中可以包括网络切片标识选项;In the embodiment of this application, the network slice identification option (English can be expressed as Network Slice Selector Option) in the IPv6 message header of the message can carry the resource indication flag. In other words, the IPv6HBH, new HBH or DOH can include network slice identification options;
其中,所述网络切片标识选项中可以包括所述资源指示标志。Wherein, the resource indication flag may be included in the network slice identification option.
实际应用时,所述IPv6报文头的IPv6HBH、新HBH或者DOH中可以包括网络切片标识选项,是指可以在IPv6报文头中的HBH、新HBH或者DOH头中定义网络切片标识选项,所述网络切片标识选项用于封装IPv6数据平面中的切片标识以及携带丢弃标志和/或资源分配标志,所述切片标识用于标识数据包所属的切片。In actual application, the IPv6HBH, new HBH or DOH of the IPv6 message header may include a network slice identification option, which means that the network slice identification option may be defined in the HBH, new HBH or DOH header in the IPv6 message header, so The network slice identifier option is used to encapsulate the slice identifier in the IPv6 data plane and carry a discard flag and/or a resource allocation flag, and the slice identifier is used to identify the slice to which the data packet belongs.
实际应用时,所述网络切片标识选项的格式可以如图2所示,所述网络切片标识选项可以包括选项类型(英文可以表达为Option Type)、选项数据字段长度(英文可以表达为Opt Data Len)、所述资源指示标志和所述切片标识。In actual application, the format of the network slice identification option can be as shown in Figure 2, and the network slice identification option can include option type (English can be expressed as Option Type), option data field length (English can be expressed as Opt Data Len ), the resource indication flag and the slice identifier.
其中,该网络切片标识选项包括的选项类型、选项数据字段长度、资源指示标志和切片标识的表示方式(即表现形式)和含义分别如下:Wherein, the network slice identification option includes the option type, option data field length, resource indication flag and slice identification representation (i.e. expression form) and their meanings are as follows:
选项类型:可以包括8位标识符,且该8位标识符的具体数值可以由互联网数字分配机构(The internet Assigned Numbers Authority,IANA)分配;示例性地,该8位标识符中,最高阶的前2位可以被设置为00,用于指示不能识别该选项类型的报文接收节点可以跳过该网络切片标识选项,继续处理IPv6报头;处于最高阶前3位的第3位可以被设置为0,表示网络切片标识选项中的选项数据在报文传输过程中不会改变。Option type: can include an 8-bit identifier, and the specific value of the 8-bit identifier can be assigned by the Internet Assigned Numbers Authority (IANA); for example, among the 8-bit identifiers, the highest The first 2 bits can be set to 00, which is used to indicate that the message receiving node that cannot recognize the option type can skip the network slice identification option and continue to process the IPv6 header; the third bit in the highest order of the first 3 bits can be set to 0, indicating that the option data in the network slice identification option will not change during packet transmission.
选项数据字段长度:可以包括8位标识符,此时该选项数据字段长度所记录的数据长度以八位数计,具体数值用于指示网络切片标识选项内,选项数据字段长度之后所携带数据的数据长度。示例性地,该字段长度具 体所指示数值为6时,指示选项数据字段长度之后所携带数据的数据长度为6个字节。Option data field length: can include an 8-bit identifier. At this time, the data length recorded in the option data field length is in eight digits. The specific value is used to indicate the length of the data carried after the option data field length in the network slice identification option. Data length. Exemplarily, when the specific value indicated by the field length is 6, the data length of the data carried after the indicated option data field length is 6 bytes.
网络切片标识:用于指示数据包所属的网络切片的标识(比如ID),也即为本申请中的切片标识。Network slice identifier: an identifier (such as ID) used to indicate the network slice to which the data packet belongs, that is, the slice identifier in this application.
资源指示标志:可以包括16位标识符,如图3所示。示例性地,资源指示标志中的第1位标识符可以为丢弃标志位,用于记录丢弃标识;该丢弃标志设置为1时,可以表示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;该丢弃标志设置为0时,可以表示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文。资源指示标志中的第2位标识符可以为资源分配标志位,用于记录资源分配标志;该资源分配标志设置为1时,可以表示根据所述切片标识不能获得子链路资源时,分配对应的子链路资源;所述资源分配标志设置为0时,可以表示根据所述切片标识不能获得子链路资源时,不分配子链路资源。如图3所示,资源指示标志中除第1位和第2位之外的标识符可以表示为R,用于表示该标识符没有被使用,可以供将来使用。示例性地,报文传输时,对应R位的标识符的数值可以记录为0,用于指示对应该标识符的数值可以忽略不计。Resource indication flag: may include a 16-bit identifier, as shown in FIG. 3 . Exemplarily, the first bit identifier in the resource indication flag may be a discarding flag bit, which is used to record the discarding flag; when the discarding flag is set to 1, it may indicate that when sub-link resources cannot be obtained according to the slice flag, Discarding the message; when the discarding flag is set to 0, it may indicate that the message is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier. The second identifier in the resource indication flag can be a resource allocation flag bit, which is used to record the resource allocation flag; when the resource allocation flag is set to 1, it can indicate that when the sub-link resource cannot be obtained according to the slice identifier, the allocation corresponding When the resource allocation flag is set to 0, it may indicate that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier. As shown in FIG. 3 , the identifiers other than the first and second digits in the resource indication flag can be represented as R, which is used to indicate that the identifier is not used and can be used in the future. Exemplarily, when the message is transmitted, the value of the identifier corresponding to the R bit may be recorded as 0, which is used to indicate that the value corresponding to the identifier is negligible.
本申请实施例中,可以通过报文的IPv6报文头的源地址或Flowlabel字段携带资源指示标志,换句话说,IPv6报文头的源地址或Flowlabel字段中记录有所述资源指示标志,所述资源指示标志占用所述源地址或Flowlabel字段的部分指示位。In the embodiment of the present application, the source address or the Flowlabel field of the IPv6 message header of the message may carry the resource indicator. In other words, the resource indicator is recorded in the source address or the Flowlabel field of the IPv6 message header, so The resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
具体地,当IPv6报文头的源地址或Flowlabel字段中记录有资源指示标志,且该资源指示标志包括资源分配标志和丢弃标志时,源地址或Flowlabel字段中的两个指示位可以分别用于携带资源分配标志和丢弃标志。Specifically, when a resource indication flag is recorded in the source address or Flowlabel field of the IPv6 packet header, and the resource indication flag includes a resource allocation flag and a discard flag, the source address or the two indication bits in the Flowlabel field can be used for Carries resource allocation flags and discard flags.
本申请实施例中,资源指示标志可以包括丢弃标志和资源分配标志,所述丢弃标志和所述资源分配标志分别为不同值时的指示含义可以包括:In this embodiment of the present application, the resource indication flag may include a discard flag and a resource allocation flag, and the indication meanings of the discard flag and the resource allocation flag when they are different values may include:
所述丢弃标志为第二值(如为0),且所述资源分配标志为第二值(如为0)时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文;When the discarding flag is a second value (for example, 0), and the resource allocation flag is a second value (for example, 0), the resource indication flag is used to indicate that the sublink cannot be obtained according to the slice identifier resources, forwarding the message along the preset default path;
所述丢弃标志为第二值(如为0),且所述资源分配标志为第一值(如为1)时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源;When the discarding flag is a second value (for example, 0), and the resource allocation flag is a first value (for example, 1), the resource indication flag is used to indicate that the sublink cannot be obtained according to the slice identifier For resources, forward the message along a preset default path, and allocate corresponding sub-link resources according to the resource requirements corresponding to the slice identifier;
所述丢弃标志为第一值(如为1),且所述资源分配标志为第二值(如为0)时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;When the discarding flag is a first value (for example, 1), and the resource allocation flag is a second value (for example, 0), the resource indication flag is used to indicate that the sublink cannot be obtained according to the slice identifier resources, discard the message;
所述丢弃标志为第一值(如为1),且所述资源分配标志为第一值(如为1)时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路 资源时,丢弃所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源。When the discarding flag is the first value (eg, 1), and the resource allocation flag is the first value (eg, 1), the resource indication flag is used to indicate that the sublink cannot be obtained according to the slice identifier resources, discard the packet, and allocate corresponding sub-link resources according to the resource requirement corresponding to the slice identifier.
实际应用时,针对为切片用户的SRv6策略CP的BFD建立过程发送的BFD报文,SRv6策略路径上的各报文接收节点接收到包括资源指示标志的BFD报文时,可以根据所述资源指示标志所指示的数值,执行对所述BFD报文的处理。具体地,所述报文接收节点可以根据上述丢弃标志和资源分配标志分别为不同值时所述资源指示标志的指示含义,执行对所述BFD报文的处理。In actual application, for the BFD packet sent by the BFD establishment process of the SRv6 policy CP of the slice user, when each packet receiving node on the SRv6 policy path receives the BFD packet including the resource indication flag, it can The value indicated by the flag is used to process the BFD message. Specifically, the packet receiving node may process the BFD packet according to the indication meaning of the resource indication flag when the discarding flag and the resource allocation flag are respectively different values.
本申请实施例中,在报文发送节点为SRv6策略路径的头节点时,所述向SRv6策略路径上发送报文,可以包括:In the embodiment of the present application, when the message sending node is the head node of the SRv6 policy path, the sending the message to the SRv6 policy path may include:
向SRv6策略路径上发送前N个报文;其中,前N个报文中的所述资源指示标志用于触发所述SRv6策略路径上的各个报文接收节点进行对所述切片标识对应的子链路资源的动态分配;Sending the first N messages on the SRv6 policy path; wherein, the resource indication flags in the first N messages are used to trigger each message receiving node on the SRv6 policy path to carry out subsections corresponding to the slice identifiers. Dynamic allocation of link resources;
其中,当所述资源指示标志包括丢弃标志和资源分配标志,且所述丢弃标志和所述资源分配标志分别为第一值或第二值时,前N个报文中的所述资源指示标志中,所述丢弃标志为第二值,所述资源分配标志为第一值;第一值可以为1,第二值可以为0,则前N个报文中,D-Flag的标志位为0,A-Flag的标志位为1;这样,通过D-Flag的标志位为0,A-Flag的标志位为1,能够使得接收该报文的各个报文接收节点根据D-Flag和A-Flag,在根据所述切片标识不能获得子链路资源时,向控制面上报信息,同时将报文从出接口对应的物理口或出接口的非切片共享子链路资源转发(也即,通过所述切片标识对应的子链路转发该报文);控制面可以根据切片标识对应的资源需求,下发数据面创建或占用对应资源的物理子链路接口资源(也即,分配对应的子链路资源);本申请实施例中,N的值可以通过预配置确定,如为大于或等于1的整数。Wherein, when the resource indication flag includes a discard flag and a resource allocation flag, and the discard flag and the resource allocation flag are respectively the first value or the second value, the resource indication flags in the first N packets , the discarding flag is the second value, and the resource allocation flag is the first value; the first value can be 1, and the second value can be 0, then in the first N messages, the flag bit of D-Flag is 0, the flag bit of A-Flag is 1; in this way, the flag bit of D-Flag is 0, and the flag bit of A-Flag is 1, which can make each message receiving node receiving the message according to D-Flag and A -Flag, when the sub-link resource cannot be obtained according to the slice identifier, report the information to the control plane, and simultaneously forward the message from the physical interface corresponding to the outgoing interface or the non-slicing shared sub-link resource of the outgoing interface (that is, The message is forwarded through the sub-link corresponding to the slice identifier); the control plane can send the data plane to create or occupy the physical sub-link interface resource corresponding to the resource according to the resource requirement corresponding to the slice identifier (that is, allocate the corresponding sub-link resources); in this embodiment of the application, the value of N can be determined through pre-configuration, for example, it is an integer greater than or equal to 1.
本申请实施例中,通过发送的前N个报文,使得报文能够触发沿SRv6策略路径的每一节点上的动态资源分配,并使所分配的子链路资源与报文中的切片标识相关联。In this embodiment of the application, through the first N packets sent, the packets can trigger the dynamic resource allocation on each node along the SRv6 policy path, and the allocated sub-link resources are consistent with the slice identifier in the packet Associated.
本申请实施例中,在发送前N个报文之后,可以向SRv6策略路径上发送第N+1个报文至第M个报文;其中,第N+1个报文至第M个报文中的所述资源指示标志用于检测所述SRv6策略路径上的各个报文接收节点是否完成了对所述切片标识所对应子链路资源的动态分配;其中,M大于N,且M与N均为正整数;In this embodiment of the application, after sending the first N messages, the N+1th message to the Mth message can be sent to the SRv6 policy path; wherein, the N+1th message to the Mth message The resource indication flag in this document is used to detect whether each message receiving node on the SRv6 policy path has completed the dynamic allocation of sub-link resources corresponding to the slice identifier; wherein, M is greater than N, and M and N are all positive integers;
其中,第N+1个报文至第M个报文中的所述资源指示标志中,所述丢弃标志为第一值,所述资源分配标志为第一值,第一值可以为1,则第N+1个报文至第M个报文中,D-Flag的标志位为1,A-Flag的标志位为1;这样,通过D-Flag的标志位为1,A-Flag的标志位为1,使得接收该报文的各个报文接收节点根据D-Flag和A-Flag,在根据所述切片标识不能获得子 链路资源时,向控制面上报信息,同时将报文丢弃;控制面可以根据切片标识对应的资源需求,下发数据面创建或占用对应带宽的物理子链路接口资源(也即,分配对应的子链路资源)。Wherein, among the resource indication flags in the N+1th message to the Mth message, the discarding flag is the first value, the resource allocation flag is the first value, and the first value may be 1, Then in the N+1th message to the Mth message, the flag bit of D-Flag is 1, and the flag bit of A-Flag is 1; thus, the flag bit of D-Flag is 1, and the flag bit of A-Flag is 1. The flag bit is 1, so that each message receiving node receiving the message reports the information to the control plane when the sub-link resource cannot be obtained according to the slice identifier according to the D-Flag and A-Flag, and discards the message at the same time ; The control plane may send the data plane to create or occupy the physical sub-link interface resources of the corresponding bandwidth according to the resource requirements corresponding to the slice identifier (that is, allocate the corresponding sub-link resources).
本申请实施例中,向SRv6策略路径上发送第N+1个报文及第N+1个报文之后的报文的过程中,若接收到报文的回程报文,且所接收的回程报文中的丢弃标志为第一值,资源分配标志为第一值,则确定第M个报文已被发送,下一个发送的报文为第M+1个报文。In the embodiment of this application, during the process of sending the N+1th message and the messages after the N+1th message to the SRv6 policy path, if the return message of the message is received, and the received return If the discarding flag in the message is the first value, and the resource allocation flag is the first value, it is determined that the Mth message has been sent, and the next sent message is the M+1th message.
本申请实施例中,向SRv6策略路径上发送第N+1个报文及第N+1个报文之后的报文的过程中,若接收到报文的回程报文,且所接收的回程报文中的丢弃标志为第一值,资源分配标志为第一值,则确定所述SRv6策略路径的每一节点均完成了子链路资源的分配(可以理解为确定所述SRv6策略路径的每一节点完成了该切片标识所对应子链路资源的动态分配和关联)。In the embodiment of this application, during the process of sending the N+1th message and the messages after the N+1th message to the SRv6 policy path, if the return message of the message is received, and the received return If the discard flag in the message is the first value, and the resource allocation flag is the first value, it is determined that each node of the SRv6 policy path has completed the allocation of sub-link resources (it can be understood as determining the SRv6 policy path Each node completes the dynamic allocation and association of sub-link resources corresponding to the slice identifier).
具体地,实际应用时,在SRv6策略路径上传输BFD报文时,各个报文接收节点根据BFD报文中的切片标识,能够获得子链路资源时,则根据切片标识在对应的子链路资源上转发该BFD报文;在不能够获得子链路资源时,则向控制面上报信息,同时将报文丢弃,使控制面根据所述切片标识对应的资源需求,分配对应的子链路资源。这样,在发送第N+1个BFD报文至第M个BFD报文,直至接收到BFD报文的回程报文的过程中,若所接收的BFD报文的回程报文中的丢弃标志为第一值,且资源分配标志为第一值,则可以确定SRv6策略路径检测完成,SRv6策略路径的每一节点均完成了该切片标识所对应子链路资源的动态分配和关联,BFD状态连通(英文可以表达为UP),从而进一步确定第M个BFD报文已被发送,下一个发送的BFD报文为第M+1个BFD报文,改变资源指示标志所指示数值。Specifically, in practical applications, when transmitting BFD packets on the SRv6 policy path, each packet receiving node can obtain sublink resources according to the slice identifier in the BFD packet, and then according to the slice identifier in the corresponding Forward the BFD message on the resource; when the sub-link resource cannot be obtained, report the information to the control plane and discard the message at the same time, so that the control plane allocates the corresponding sub-link according to the resource requirement corresponding to the slice identifier resource. In this way, during the process of sending the N+1th BFD packet to the Mth BFD packet until the return packet of the BFD packet is received, if the discard flag in the return packet of the received BFD packet is The first value, and the resource allocation flag is the first value, it can be determined that the detection of the SRv6 policy path is completed, each node of the SRv6 policy path has completed the dynamic allocation and association of the sub-link resources corresponding to the slice identifier, and the BFD state is connected (English can be expressed as UP), so as to further determine that the Mth BFD packet has been sent, the next BFD packet to be sent is the M+1th BFD packet, and change the value indicated by the resource indication flag.
本申请实施例中,在根据第M个报文的回程报文,确认所述SRv6策略路径上的各个报文接收节点已完成了对所述切片标识所对应子链路资源的动态分配的情况下,之后可以向SRv6策略路径上发送第M个报文之后的报文;其中,第M个报文之后的报文中的所述资源指示标志用于指示各个报文接收节点,在根据所述切片标识不能获得子链路资源时,丢弃所述报文。In the embodiment of the present application, according to the return message of the Mth message, it is confirmed that each message receiving node on the SRv6 policy path has completed the dynamic allocation of sub-link resources corresponding to the slice identifier Next, the message after the Mth message can be sent to the SRv6 policy path; wherein, the resource indicator in the message after the Mth message is used to indicate each message receiving node, according to the When the sublink resource cannot be obtained by the slice identifier, the message is discarded.
其中,第M个报文之后的报文中的所述资源指示标志中,所述丢弃标志为第一值,所述资源分配标志为第二值。第一值可以为1,第二值可以为0,则第M个报文之后的报文中,D-Flag的标志位为1,A-Flag的标志位为0;这样,通过D-Flag的标志位为1,A-Flag的标志位为0,使得接收该报文的各个报文接收节点可以根据D-Flag和A-Flag,将报文丢弃。Wherein, among the resource indication flags in the packets after the Mth packet, the discard flag is a first value, and the resource allocation flag is a second value. The first value can be 1, and the second value can be 0, then in the message after the Mth message, the flag bit of D-Flag is 1, and the flag bit of A-Flag is 0; thus, through D-Flag The flag bit of A-Flag is 1, and the flag bit of A-Flag is 0, so that each message receiving node receiving the message can discard the message according to the D-Flag and A-Flag.
本申请实施例中,对BFD报文,可以在切片策略路径对应的BFD会话(session)状态连通后,发送周期性检测BFD报文,如果设备数据面在出接口找不到切片标识对应的物理子链路接口,则可以丢弃该BFD报文。In the embodiment of this application, for BFD packets, after the BFD session (session) state corresponding to the slice policy path is connected, the periodic detection BFD packets can be sent. If the device data plane cannot find the physical If the sublink interface is used, the BFD packet can be discarded.
需要说明的是,本申请实施例中,BFD报文可以为静态BFD、动态BFD和SBFD中的至少之一,以用于检测SRv6策略CP的通断性。It should be noted that, in the embodiment of the present application, the BFD message may be at least one of static BFD, dynamic BFD, and SBFD, so as to detect the continuity of the SRv6 policy CP.
本申请实施例中,利用切片用户的SRv6策略CP的BFD建立过程发送的BFD报文,触发SRv6策略CP的资源动态分配、关联的具体方式可以包括:In this embodiment of the application, the specific methods for triggering the dynamic allocation and association of resources of the SRv6 policy CP by using the BFD message sent during the BFD establishment process of the SRv6 policy CP of the slice user may include:
在为SRv6策略CP建立BFD session时,SRv6策略路径的头节点在发送的前N个BFD报文中(N值可配置),清零资源指示标志(如携带于HBH头)中的D-flag标记(也即将D-flag置为0),并置位A-flag标记(也即将A-flag置为1);通过该指示方式,前N个BFD报文中的所述资源指示标志触发所述SRv6策略路径上的各个报文接收节点进行对所述切片标识对应的子链路资源的动态分配;When establishing a BFD session for the SRv6 policy CP, the head node of the SRv6 policy path clears the D-flag in the resource indication flag (such as carried in the HBH header) in the first N BFD packets sent (N value is configurable) mark (that is, set the D-flag to 0), and set the A-flag mark (that is, set the A-flag to 1); through this indication method, the resource indication flag in the first N BFD messages triggers all Each message receiving node on the SRv6 policy path dynamically allocates the sub-link resource corresponding to the slice identifier;
头节点在后续(第N个BFD报文以后)发送的BFD报文中,置位HBH头中的D-flag标记(也即将D-flag置为1)和A-flag标记(也即将A-flag置为1);通过该指示方式,第N个BFD报文之后发送的BFD报文用于检测SRv6策略路径上的各个报文接收节点是否完成了对所述切片标识所对应子链路资源的动态分配,直至头节点接收到D-flag标记和A-flag标记分别为1的BFD报文的回程报文;The head node sets the D-flag (that is, D-flag is set to 1) and A-flag (that is, A- flag is set to 1); through this indication method, the BFD message sent after the Nth BFD message is used to detect whether each message receiving node on the SRv6 policy path has completed the sub-link resource corresponding to the slice identifier Dynamic allocation until the head node receives the return message of the BFD message whose D-flag mark and A-flag mark are 1 respectively;
基于此,在头节点接收到的BFD报文的回程报文时,若所接收回程报文的BFD报文中,资源指示标志的D-flag为1,且A-flag为1,则确定SRv6策略路径的每一节点均完成了该切片标识所对应子链路资源的动态分配和关联,BFD状态连通;同时清零HBH头中的A-flag标记(也即将A-flag置为0);并发送后续的周期性检测BFD报文;其中,后续的周期性检测BFD报文中,BFD报文中的所述资源指示标志用于指示各个报文接收节点,在根据所述切片标识不能获得子链路资源时,丢弃所述BFD报文。Based on this, when the return packet of the BFD packet received by the head node, if the D-flag of the resource indication flag is 1 and the A-flag is 1 in the BFD packet of the received return packet, then the SRv6 Each node of the policy path has completed the dynamic allocation and association of sub-link resources corresponding to the slice identifier, and the BFD state is connected; at the same time, the A-flag in the HBH header is cleared (that is, the A-flag is set to 0); And send a subsequent periodic detection BFD message; wherein, in the subsequent periodic detection BFD message, the resource indication flag in the BFD message is used to indicate each message receiving node, when the slice identifier cannot obtain When sub-link resources are used, the BFD message is discarded.
实际应用时,当切片SRv6策略CP对应的BFD session状态连通后,发送的周期性检测BFD报文,可以通过置位D-flag标记,并清零A-flag标记,来指示当数据面转发BFD报文在出接口找不到切片标识对应的物理子链路接口时,丢弃该BFD报文;In actual application, when the BFD session state corresponding to the SRv6 policy CP of the slice is connected, the periodic detection BFD message sent can be set by setting the D-flag flag and clearing the A-flag flag to indicate when the data plane forwards BFD When the packet cannot find the physical sublink interface corresponding to the slice identifier on the outbound interface, the BFD packet is discarded;
此外,切片SRv6策略CP对应的BFD session状态连通后,该SRv6策略的状态才能连通,以能够将业务引流至该SRv6策略。In addition, the state of the SRv6 policy can only be connected after the BFD session state corresponding to the CP of the slice SRv6 policy is connected, so that services can be diverted to the SRv6 policy.
在SRv6策略路径上,当采用资源指示标志进行指示时,对于接收报文的每一报文接收节点,当数据面在出接口找到报文所指示切片标识对应的子链路资源时,则通过所述切片标识对应的子链路资源转发该报文,当数据面在出接口找不到切片标识对应的子链路资源时,则根据报文的资源指示标志中的D-flag标记和A-flag标记位,执行如下不同的动作:On the SRv6 policy path, when the resource indication flag is used for indication, for each message receiving node receiving the message, when the data plane finds the sub-link resource corresponding to the slice identifier indicated by the message on the outbound interface, it will pass The sub-link resource corresponding to the slice identifier forwards the message, and when the data plane cannot find the sub-link resource corresponding to the slice identifier on the outbound interface, according to the D-flag and A in the resource indicator of the message -flag mark bit, perform the following different actions:
D-flag标记的值为0,且A-flag标记的值也为0:将报文从出接口对应的物理口或出接口的非切片共享子链路资源转发(也即,通过缺省的子链路转发该BFD报文);The value of the D-flag is 0, and the value of the A-flag is also 0: the packet is forwarded from the physical interface corresponding to the outbound interface or the non-slice shared sublink resource of the outbound interface (that is, through the default The sub-link forwards the BFD message);
D-flag标记的值为0,A-flag标记的值为1:向控制面上报信息,同时将报文从出接口对应的物理口或出接口的非切片共享子链路资源转发(也即,通过缺省的子链路转发该BFD报文);控制面根据切片标识对应的资源需求,下发数据面创建或占用对应带宽的物理子链路接口资源(也即,分配对应的子链路资源);The value of the D-flag mark is 0, and the value of the A-flag mark is 1: report the information to the control plane, and at the same time forward the message from the physical interface corresponding to the outgoing interface or the non-slicing shared sub-link resource of the outgoing interface (that is, , forward the BFD message through the default sub-link); the control plane sends the data plane to create or occupy the physical sub-link interface resources of the corresponding bandwidth according to the resource requirements corresponding to the slice identifier (that is, allocate the corresponding sub-link road resources);
D-flag标记的值为1,A-flag标记的值为0:将报文丢弃;The value of the D-flag is 1, and the value of the A-flag is 0: the packet is discarded;
D-flag标记的值为1,A-flag标记的值为1:向控制面上报信息,同时将报文丢弃;控制面根据切片标识对应的资源需求,下发数据面创建或占用对应带宽的物理子链路接口资源(也即,分配对应的子链路资源)。The value of the D-flag is 1, and the value of the A-flag is 1: report the information to the control plane and discard the message at the same time; the control plane sends the data plane to create or occupy the corresponding bandwidth according to the resource requirements corresponding to the slice identifier Physical sub-link interface resources (that is, allocation of corresponding sub-link resources).
下面结合应用示例,对本申请实施例所述资源分配方法的具体实施过程进行说明。The specific implementation process of the resource allocation method described in the embodiment of the present application will be described below in combination with application examples.
如图4所示,本应用示例提供了针对所述资源分配方法的网络架构,该架构可以包括节点设备A、B、C、D、E、F、G及H,这八个节点设备运行ISIS动态路由协议,且都在同一个中间系统到中间系统(Intermediate system to intermediate system,ISIS)域中,所有设备均支持切片能力,此外SDN控制器与转发设备之间建立边界网关协议(Border Gateway Protocol,BGP)-连接状态(Link-State,LS)连接。As shown in Figure 4, this application example provides a network architecture for the resource allocation method, which may include node devices A, B, C, D, E, F, G, and H, and these eight node devices run ISIS Dynamic routing protocol, and all in the same intermediate system to intermediate system (ISIS) domain, all devices support slicing capabilities, in addition, a Border Gateway Protocol (Border Gateway Protocol) is established between the SDN controller and the forwarding device , BGP)-Link-State (Link-State, LS) connection.
其中,网络架构中各设备的End SID和End.X SID的分配如图5所示。Among them, the allocation of End SID and End.X SID of each device in the network architecture is shown in Figure 5.
基于该网络架构,假设当前网络中切片用户1,需要一条从节点A到节点E的100兆比特每秒(Mbps)带宽独享的切片链路资源。Based on this network architecture, it is assumed that slice user 1 in the current network needs an exclusive slice link resource with a bandwidth of 100 megabits per second (Mbps) from node A to node E.
其中,SDN控制器根据切片用户1的该切片需求,为切片用户1分配切片标识资源,举例说明,所分配的切片标识为1,对应的资源信息为100M带宽,则所分配切片标识与切片用户之间的关系为如下表1所示:Wherein, the SDN controller allocates slice identification resources for slice user 1 according to the slice requirement of slice user 1. For example, if the allocated slice identification is 1, and the corresponding resource information is 100M bandwidth, then the allocated slice identification and slice user The relationship between them is shown in Table 1 below:
Figure PCTCN2022112283-appb-000001
Figure PCTCN2022112283-appb-000001
表1Table 1
在分配上述切片标识资源的情况下,SDN控制器将该切片标识资源同步至网络中的各个节点。In the case of allocating the slice identifier resource, the SDN controller synchronizes the slice identifier resource to each node in the network.
在所分配上述切片标识资源的基础上,控制器或头节点根据切片用户1的需求,计算出一条从A到E带宽资源满足100M需求的SRv6策略主CP和备CP的segmentlist路径,并使用各链路的End.X SID进行路径的编排。其中,End.X表示为各节点的节点类型,End.X SID表示为各节点之间链路的链路类型。On the basis of the above-mentioned slice identification resources allocated, the controller or head node calculates a segmentlist path of the SRv6 strategy primary CP and standby CP with bandwidth resources from A to E meeting the 100M requirement according to the requirements of slice user 1, and uses each The End.X SID of the link is used to arrange the path. Among them, End.X represents the node type of each node, and End.X SID represents the link type of the link between each node.
所计算的主CP和备CP可以分别表示为:The calculated active CP and standby CP can be expressed as:
主CP:<X3:1::100,X3:2::100,X3:3::100,X3:4::100>;Main CP: <X3:1::100, X3:2::100, X3:3::100, X3:4::100>;
备CP:<X3:5::100,X3:6::100,X3:7::100,X3:8::100>。Backup CP: <X3:5::100, X3:6::100, X3:7::100, X3:8::100>.
在建立该主CP和备CP的基础上,将标识为“1”的切片标识与该SRv6 策略路径(包括主CP和备CP)关联。On the basis of establishing the active CP and the standby CP, associate the slice identifier marked as "1" with the SRv6 policy path (including the active CP and the standby CP).
在SDN控制器计算路径的情况下,SDN控制器将上述路径通过BGP SRv6策略下发至头节点A。When the SDN controller calculates the path, the SDN controller sends the above path to the head node A through the BGP SRv6 policy.
根据为切片用户1所计算的主CP和备CP,利用其对应BFD连接建立过程发送的BFD报文,触发SRv6策略CP上的资源动态分配、关联,各节点设备上的子接口链路资源以QoS队列为例,沿上述切片用户1对应的SRv6策略路径(包括主CP和备CP),该切片标识对应的子链路资源动态分配的过程如下:According to the active CP and standby CP calculated for slice user 1, the BFD packets sent during the corresponding BFD connection establishment process are used to trigger the dynamic allocation and association of resources on the CP in the SRv6 policy. The sub-interface link resources on each node device are The QoS queue is taken as an example. Along the SRv6 policy path (including the active CP and the standby CP) corresponding to the above-mentioned slice user 1, the dynamic allocation process of the sub-link resource corresponding to the slice identifier is as follows:
SRv6策略路径的头节点A收到控制器下发的BGP SRv6策略路径(包括主CP和备CP)和切片标识SliceID1后,根据该SRv6策略路径对应的BFD配置,为该SRv6策略路径(包括主CP和备CP)启用BFD;After the head node A of the SRv6 policy path receives the BGP SRv6 policy path (including the active CP and standby CP) and the slice ID SliceID1 issued by the controller, according to the BFD configuration corresponding to the SRv6 CP and standby CP) enable BFD;
以主CP的BFD队列session建立为例,头节点A在沿主CP发送的前N个BFD报文中,将转发面报文中携带的D-flag置为0,A-flag置为1;Taking the establishment of the BFD queue session of the main CP as an example, the head node A sets the D-flag carried in the forwarding plane message to 0 and the A-flag to 1 in the first N BFD messages sent along the main CP;
BFD报文沿主CP<X3:1::100,X3:2::100,X3:3::100,X3:4::100>转发,在头节点A根据X3:1::100找到出端口0/0/1,在出端口0/0/1上再根据转发面报文头中携带的SliceID1在数据面找不到对应的QoS队列的情况下,根据D-flag为0,A-flag为1的指示,向控制面上报信息,同时将BFD报文从出接口对应的物理口或出接口的非切片共享子链路资源转发;控制面根据BFD报文的报文头中携带的SliceID1获知资源需求为100M带宽,于是下发数据面为其创建100M带宽的QoS队列,并关联到SliceID1,在本地保存对应关系;The BFD message is forwarded along the main CP<X3:1::100, X3:2::100, X3:3::100, X3:4::100>, and the head node A finds out Port 0/0/1, on the outbound port 0/0/1, according to the SliceID1 carried in the packet header of the forwarding plane, if the corresponding QoS queue cannot be found on the data plane, according to D-flag is 0, A- flag is 1, report information to the control plane, and at the same time forward the BFD message from the physical interface corresponding to the outbound interface or the non-slice shared sub-link resource of the outbound interface; SliceID1 knows that the resource requirement is 100M bandwidth, so it creates a QoS queue with 100M bandwidth for it on the delivery data plane, associates it with SliceID1, and saves the corresponding relationship locally;
BFD报文沿主CP继续转发至B、C、D设备,这样主CP上的每一节点A、B、C、D,根据BFD报文中D-flag为0、A-flag为1的指示,在对应出接口上开始为SliceID1分配100M带宽的QoS队列;The BFD message is forwarded to devices B, C, and D along the main CP, so that each node A, B, C, and D on the main CP, according to the indication that D-flag is 0 and A-flag is 1 in the BFD message , start to allocate a QoS queue with 100M bandwidth for SliceID1 on the corresponding outbound interface;
头节点A在后续发送的BFD报文(即第N个报文之后的报文,也即第N+1个BFD报文及第N+1个BFD报文之后的BFD报文)中,将转发面报文中携带的D-flag置为1,A-flag置为1,用于检测主CP上的各个节点是否完成了对SliceID1所对应子链路资源的动态分配;Head node A will send The D-flag carried in the forwarding plane message is set to 1, and the A-flag is set to 1, which is used to detect whether each node on the main CP has completed the dynamic allocation of sub-link resources corresponding to SliceID1;
若主CP上沿途A、B、C、D设备对应出接口上的SliceID1的100M带宽QoS队列资源分配成功,则BFD报文在A、B、C、D设备上从对应出接口的SliceID1关联的QoS队列转发出去;If the 100M bandwidth QoS queue resources corresponding to SliceID1 on the outgoing interface of devices A, B, C, and D along the route on the active CP are allocated successfully, the BFD packets will be associated with SliceID1 on the corresponding outgoing interface on devices A, B, C, and D. The QoS queue is forwarded;
若沿途A、B、C、D设备对应出接口上的100M带宽QoS队列资源分配和关联尚未结束,数据面找不到SliceID1关联的QoS队列,则根据D-flag为1且A-flag为1的指示,向控制面上送信息,同时将BFD报文丢弃;设备控制面根据SliceID1获知资源需求为100M带宽,于是下发数据面为其创建100M带宽的QoS队列,并关联到SliceID1,在本地保存对应关系;If the resource allocation and association of 100M bandwidth QoS queue resources on the outbound interfaces of devices A, B, C, and D along the route has not been completed, and the QoS queue associated with SliceID1 cannot be found on the data plane, then D-flag is 1 and A-flag is 1. The device sends information to the control plane and discards the BFD packet at the same time; the control plane of the device learns that the resource requirement is 100M bandwidth according to SliceID1, so it sends the data plane to create a QoS queue with 100M bandwidth for it, and associates it with SliceID1. Save the corresponding relationship;
在上述的过程中,SRv6策略CP上的BFD状态保持未连通(英文可以表达为Down)状态;In the above process, the BFD state on the SRv6 policy CP remains disconnected (English can be expressed as Down) state;
当SRv6策略路径的头节点A收到D-flag为1且A-flag为1的BFD报文的回程报文时,表明主CP沿途所有节点对应出接口上均已完成SliceID1对应100M带宽QoS队列资源分配和关联,则BFD状态连通;同时清零转发面报文中携带的A-flag标记(A-flag=0),持续发送后续的周期性检测BFD报文。When the head node A of the SRv6 policy path receives the return packet of the BFD packet whose D-flag is 1 and A-flag is 1, it indicates that the QoS queue corresponding to SliceID1 corresponding to 100M bandwidth has been completed on the outbound interfaces of all nodes along the path of the main CP. After resource allocation and association, the BFD state is connected; at the same time, the A-flag (A-flag=0) carried in the forwarding plane message is cleared, and subsequent periodic detection BFD messages are continuously sent.
同理,所计算的SRv6策略路径的备CP上,BFD队列的连通过程同上(与主CP的BFD session的建立过程同时进行),在此不再详细说明。Similarly, on the standby CP of the calculated SRv6 policy path, the connection process of the BFD queue is the same as above (simultaneously with the establishment process of the BFD session of the active CP), and will not be described in detail here.
基于上述的过程,当主CP和备CP的BFD session的状态都连通之后,该SRv6策略的状态才连通,将切片用户1的业务流量引入该SRv6策略承载,这样就确保了切片用户1的流量在SRv6策略转发路径的每条链路上均可获得100M的QoS队列的独享物理资源保障。Based on the above process, when the states of the BFD sessions of the active CP and the standby CP are both connected, the state of the SRv6 policy is connected, and the service traffic of slice user 1 is introduced into the SRv6 policy to bear, thus ensuring that the traffic of slice user 1 is Each link of the SRv6 policy forwarding path can obtain the exclusive physical resource guarantee of 100M QoS queue.
通过上述描述可以看出,本申请实施例提供的资源分配方法,通过资源指示标志向SRv6策略路径上的报文接收节点指示切片标识对应子链路资源的动态分配,实现承载网SRv6策略路径上切片所需物理资源的实时动态分配和关联,可解决切片资源静态分配方案带来的资源极大浪费、不适合在现网大规模部署的问题。It can be seen from the above description that the resource allocation method provided by the embodiment of the present application uses the resource indication flag to indicate to the message receiving node on the SRv6 policy path the dynamic allocation of sub-link resources corresponding to the slice identifier, so as to realize the dynamic allocation of sub-link resources on the bearer network SRv6 policy path. The real-time dynamic allocation and association of the physical resources required by slices can solve the problem of great waste of resources caused by the static slice resource allocation scheme, which is not suitable for large-scale deployment on the live network.
相应地,本申请实施例还提供一种资源分配方法,应用于报文接收节点,如图6所示,所述方法包括:Correspondingly, the embodiment of the present application also provides a resource allocation method, which is applied to a message receiving node, as shown in FIG. 6, the method includes:
S610,接收SRv6策略路径上的报文;S610, receiving a message on the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
其中,接收的报文可以包括BFD报文,或者可以包括用户的业务报文,或者可以包括新定义的报文。Wherein, the received message may include a BFD message, or may include a service message of a user, or may include a newly defined message.
本申请实施例提供的资源分配方法,在报文中,通过资源指示标志指示所述切片标识对应子链路资源的动态分配,以使得在SRv6策略路径上,每一报文接收节点根据该资源指示标志实现该切片标识对应的子链路资源的动态分配,并使所分配子链路资源与切片标识相关联,确保后续的切片业务能够根据该切片标识沿动态分配的子链路资源进行转发,以能够拥有独享的切片资源。In the resource allocation method provided by the embodiment of the present application, in the message, the resource indication flag is used to indicate the dynamic allocation of sub-link resources corresponding to the slice identifier, so that on the SRv6 policy path, each message receiving node The indication flag realizes the dynamic allocation of sub-link resources corresponding to the slice ID, and associates the allocated sub-link resources with the slice ID, so as to ensure that subsequent slice services can be forwarded along the dynamically allocated sub-link resources according to the slice ID , to be able to have exclusive slice resources.
本申请实施例中,所述资源指示标志可以包括丢弃标志和/或资源分配标志;In this embodiment of the present application, the resource indication flag may include a discard flag and/or a resource allocation flag;
所述丢弃标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时是否丢弃所述报文;The discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier;
所述资源分配标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时,是否根据所述切片标识分配对应的子链路资源。The resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
本申请实施例中,所述丢弃标志为第一值时,可以表示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;In this embodiment of the present application, when the discard flag is the first value, it may indicate that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
所述丢弃标志为第二值时,可以表示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文。When the discarding flag is the second value, it may indicate that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
本申请实施例中,所述资源分配标志为第一值时,可以表示根据所述切片标识不能获得子链路资源时,分配对应的子链路资源;In the embodiment of the present application, when the resource allocation flag is the first value, it may indicate that when sub-link resources cannot be obtained according to the slice identifier, corresponding sub-link resources are allocated;
所述资源分配标志为第二值时,可以表示根据所述切片标识不能获得子链路资源时,不分配子链路资源。When the resource allocation flag is the second value, it may indicate that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
本申请实施例中,所述IPv6报文头的IPv6HBH、新HBH或者DOH中可以包括网络切片标识选项;In the embodiment of the present application, the IPv6 HBH, new HBH or DOH of the IPv6 packet header may include a network slice identification option;
其中,所述网络切片标识选项中可以包括所述资源指示标志。Wherein, the resource indication flag may be included in the network slice identification option.
本申请实施例中,所述IPv6报文头的源地址或Flowlabel字段中可以记录有所述资源指示标志,所述资源指示标志可以占用所述源地址或Flowlabel字段的部分指示位。In the embodiment of the present application, the source address or Flowlabel field of the IPv6 packet header may record the resource indication flag, and the resource indication flag may occupy part of the indication bits of the source address or Flowlabel field.
本申请实施例中,所述网络切片标识选项还可以包括:选项类型、选项数据字段长度和所述切片标识。In this embodiment of the present application, the network slice identification option may further include: option type, option data field length, and the slice identification.
本申请实施例中,所述方法还可以包括:In the embodiment of the present application, the method may also include:
在根据所述切片标识不能获得子链路资源的情况下,根据所述资源指示标志所指示的数值,执行对所述报文的处理。In the case that the sublink resource cannot be obtained according to the slice identifier, the message is processed according to the value indicated by the resource indication flag.
本申请实施例中,所述资源指示标志包括丢弃标志和资源分配标志时,所述根据所述资源指示标志所指示的数值,执行对所述报文的处理,可以包括:In this embodiment of the present application, when the resource indication flag includes a discard flag and a resource allocation flag, the processing of the message according to the value indicated by the resource indication flag may include:
所述丢弃标志为第二值,且所述资源分配标志为第二值时,沿预设缺省路径转发所述报文;When the discarding flag is a second value, and the resource allocation flag is a second value, forwarding the message along a preset default path;
所述丢弃标志为第二值,且所述资源分配标志为第一值时,沿预设缺省路径转发所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源;When the discard flag is the second value and the resource allocation flag is the first value, forward the message along a preset default path, and allocate the corresponding sub-link according to the resource requirement corresponding to the slice identifier resource;
所述丢弃标志为第一值,且所述资源分配标志为第二值时,丢弃所述报文;When the discarding flag is a first value and the resource allocation flag is a second value, discarding the message;
所述丢弃标志为第一值,且所述资源分配标志为第一值时,丢弃所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源。When the discard flag is the first value and the resource allocation flag is the first value, discard the message, and allocate corresponding sublink resources according to the resource requirement corresponding to the slice identifier.
本申请实施例提供的资源分配方法在应用于报文接收节点时,资源指示标志的指示方式、具体指示内容、以及根据该资源指示标志进行切片标识相对应子链路资源的实时动态分配和关联的具体方式,可以参阅以上所述方法应用于报文发送节点的详细描述,在此不再说明。When the resource allocation method provided by the embodiment of the present application is applied to the message receiving node, the indication mode of the resource indication flag, the specific indication content, and the real-time dynamic allocation and association of sub-link resources corresponding to the slice identifier according to the resource indication flag For the specific way, you can refer to the detailed description of the above method applied to the message sending node, which will not be described here.
本申请实施例还提供一种网络节点,所述网络节点为报文发送节点,如图7所示,该报文发送节点700包括:收发机710,其中,所述收发机710配置为:The embodiment of the present application also provides a network node. The network node is a message sending node. As shown in FIG. 7, the message sending node 700 includes: a transceiver 710, wherein the transceiver 710 is configured as:
向SRv6策略路径上发送报文;Send packets to the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所 述资源指示标志用于向所述SRv6策略路径上的报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 packet header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
本申请实施例中,所述报文可以包括BFD报文,或者可以包括用户的业务报文,或者可以包括新定义的报文。In this embodiment of the present application, the message may include a BFD message, or may include a service message of a user, or may include a newly defined message.
本申请实施例中,所述资源指示标志包括丢弃标志和/或资源分配标志;In this embodiment of the present application, the resource indication flag includes a discard flag and/or a resource allocation flag;
所述丢弃标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时是否丢弃所述报文;The discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier;
所述资源分配标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时,是否根据所述切片标识分配对应的子链路资源。The resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
本申请实施例中,所述丢弃标志为第一值时,表示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;In the embodiment of the present application, when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
所述丢弃标志为第二值时,表示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文。When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
本申请实施例中,所述资源分配标志为第一值时,表示根据所述切片标识不能获得子链路资源时,分配对应的子链路资源;In the embodiment of the present application, when the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
所述资源分配标志为第二值时,表示根据所述切片标识不能获得子链路资源时,不分配子链路资源。When the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
本申请实施例中,所述IPv6报文头的IPv6HBH、新HBH或者DOH中包括网络切片标识选项;In the embodiment of the present application, the IPv6HBH, new HBH or DOH of the IPv6 message header includes a network slice identification option;
其中,所述网络切片标识选项中包括所述资源指示标志。Wherein, the network slice identification option includes the resource indication flag.
本申请实施例中,所述IPv6报文头的源地址或Flowlabel字段中记录有所述资源指示标志,所述资源指示标志占用所述源地址或Flowlabel字段的部分指示位。In this embodiment of the present application, the resource indication flag is recorded in the source address or Flowlabel field of the IPv6 packet header, and the resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
本申请实施例中,所述网络切片标识选项还包括:选项类型、选项数据字段长度和所述切片标识。In this embodiment of the present application, the network slice identification option further includes: option type, option data field length, and the slice identification.
本申请实施例中,所述资源指示标志包括丢弃标志和资源分配标志;In the embodiment of the present application, the resource indication flag includes a discard flag and a resource allocation flag;
所述丢弃标志为第二值,且所述资源分配标志为第二值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文;When the discarding flag is the second value, and the resource allocation flag is the second value, the resource indication flag is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forwarding along the preset default path said message;
所述丢弃标志为第二值,且所述资源分配标志为第一值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源;When the discarding flag is the second value and the resource allocation flag is the first value, the resource indication flag is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forwarding along the preset default path The message, and according to the resource requirements corresponding to the slice identifier, allocate corresponding sub-link resources;
所述丢弃标志为第一值,且所述资源分配标志为第二值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;When the discarding flag is the first value, and the resource allocation flag is the second value, the resource indication flag is used to indicate that the packet is discarded when sub-link resources cannot be obtained according to the slice identifier;
所述丢弃标志为第一值,且所述资源分配标志为第一值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,丢弃所述 报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源。When the discard flag is the first value, and the resource allocation flag is the first value, the resource indication flag is used to indicate that the packet is discarded when the sub-link resource cannot be obtained according to the slice identifier, and According to the resource requirements corresponding to the slice identifiers, corresponding sub-link resources are allocated.
本申请实施例中,所述收发机710还配置为:In the embodiment of the present application, the transceiver 710 is further configured as:
向SRv6策略路径上发送前N个报文;其中,前N个报文中的所述资源指示标志用于触发所述SRv6策略路径上的各个报文接收节点进行对所述切片标识对应的子链路资源的动态分配;Sending the first N messages on the SRv6 policy path; wherein, the resource indication flags in the first N messages are used to trigger each message receiving node on the SRv6 policy path to carry out subsections corresponding to the slice identifiers. Dynamic allocation of link resources;
向SRv6策略路径上发送第N+1个报文至第M个报文;其中,第N+1个报文至第M个报文中的所述资源指示标志用于检测所述SRv6策略路径上的各个报文接收节点是否完成了对所述切片标识所对应子链路资源的动态分配;其中,M大于N,且M与N均为正整数;Send the N+1th message to the Mth message on the SRv6 policy path; wherein, the resource indicator in the N+1th message to the Mth message is used to detect the SRv6 policy path Whether each message receiving node on the network has completed the dynamic allocation of sublink resources corresponding to the slice identifier; wherein, M is greater than N, and M and N are both positive integers;
向SRv6策略路径上发送第M个报文之后的报文;其中,第M个报文之后的报文中的所述资源指示标志用于指示各个报文接收节点,在根据所述切片标识不能获得子链路资源时,丢弃所述报文。Send the message after the Mth message to the SRv6 policy path; wherein, the resource indicator in the message after the Mth message is used to indicate each message receiving node, and the slice identifier cannot When sublink resources are obtained, the message is discarded.
本申请实施例中,所述资源指示标志包括丢弃标志和资源分配标志,所述丢弃标志和所述资源分配标志分别为第一值或第二值时:In this embodiment of the present application, the resource indication flag includes a discard flag and a resource allocation flag, and when the discard flag and the resource allocation flag are respectively the first value or the second value:
前N个报文中的所述资源指示标志为:所述丢弃标志为第二值,所述资源分配标志为第一值;The resource indication flags in the first N packets are: the discard flag is a second value, and the resource allocation flag is a first value;
第N+1个报文至第M个报文中的所述资源指示标志为:所述丢弃标志为第一值,所述资源分配标志为第一值;The resource indication flags in the N+1th message to the Mth message are: the discarding flag is the first value, and the resource allocation flag is the first value;
第M个报文之后的报文中的所述资源指示标志:所述丢弃标志为第一值,所述资源分配标志为第二值。The resource indication flag in the packets after the Mth packet: the discard flag is a first value, and the resource allocation flag is a second value.
本申请实施例中,所述收发机710还配置为:In the embodiment of the present application, the transceiver 710 is further configured as:
向SRv6策略路径上发送第N+1个报文及第N+1个报文之后的报文的过程中,若接收到报文的回程报文,且所接收的回程报文中的丢弃标志为第一值,资源分配标志为第一值,则确定第M个报文已被发送,下一个发送的报文为第M+1个报文。During the process of sending the N+1th packet and the packets after the N+1th packet to the SRv6 policy path, if the return packet of the packet is received, and the discard flag in the received return packet is the first value, and the resource allocation flag is the first value, it is determined that the Mth message has been sent, and the next sent message is the M+1th message.
本申请实施例中,所述收发机710还配置为:In the embodiment of the present application, the transceiver 710 is further configured as:
向SRv6策略路径上发送第N+1个报文及第N+1个报文之后的报文的过程中,若接收到报文的回程报文,且所接收的回程报文中的丢弃标志为第一值,资源分配标志为第一值,则确定所述SRv6策略路径的每一节点完成了子链路资源的分配。During the process of sending the N+1th packet and the packets after the N+1th packet to the SRv6 policy path, if the return packet of the packet is received, and the discard flag in the received return packet is the first value, and the resource allocation flag is the first value, it is determined that each node of the SRv6 policy path has completed the allocation of sub-link resources.
本申请实施例还提供一种网络节点,所述网络节点为报文接收节点,如图8所示,该报文接收节点800包括:收发机810,其中,所述收发机810配置为:The embodiment of the present application also provides a network node. The network node is a message receiving node. As shown in FIG. 8, the message receiving node 800 includes: a transceiver 810, wherein the transceiver 810 is configured as:
接收SRv6策略路径上的报文;Receive packets on the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
本申请实施例中,所述报文可以包括BFD报文,或者可以包括用户的 业务报文,或者可以包括新定义的报文。In this embodiment of the application, the message may include a BFD message, or may include a user's service message, or may include a newly defined message.
本申请实施例中,所述资源指示标志包括丢弃标志和/或资源分配标志;In this embodiment of the present application, the resource indication flag includes a discard flag and/or a resource allocation flag;
所述丢弃标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时是否丢弃所述报文;The discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier;
所述资源分配标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时,是否根据所述切片标识分配对应的子链路资源。The resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
本申请实施例中,所述丢弃标志为第一值时,表示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;In the embodiment of the present application, when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
所述丢弃标志为第二值时,表示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文。When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
本申请实施例中,所述资源分配标志为第一值时,表示根据所述切片标识不能获得子链路资源时,分配对应的子链路资源;In the embodiment of the present application, when the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
所述资源分配标志为第二值时,表示根据所述切片标识不能获得子链路资源时,不分配子链路资源。When the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
本申请实施例中,所述IPv6报文头的IPv6HBH、新HBH或者DOH中包括网络切片标识选项;In the embodiment of the present application, the IPv6HBH, new HBH or DOH of the IPv6 message header includes a network slice identification option;
其中,所述网络切片标识选项中包括所述资源指示标志。Wherein, the network slice identification option includes the resource indication flag.
本申请实施例中,所述IPv6报文头的源地址或Flowlabel字段中记录有所述资源指示标志,所述资源指示标志占用所述源地址或Flowlabel字段的部分指示位。In this embodiment of the present application, the resource indication flag is recorded in the source address or Flowlabel field of the IPv6 packet header, and the resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
本申请实施例中,所述网络切片标识选项还包括:选项类型、选项数据字段长度和所述切片标识。In this embodiment of the present application, the network slice identification option further includes: option type, option data field length, and the slice identification.
本申请实施例中,所述收发机810还配置为:In the embodiment of the present application, the transceiver 810 is further configured as:
在根据所述切片标识不能获得子链路资源的情况下,根据所述资源指示标志所指示的数值,执行对所述报文的处理。In the case that the sublink resource cannot be obtained according to the slice identifier, the message is processed according to the value indicated by the resource indication flag.
本申请实施例中,所述资源指示标志包括丢弃标志和资源分配标志时,所述收发机810,还配置为:In this embodiment of the present application, when the resource indication flag includes a discard flag and a resource allocation flag, the transceiver 810 is further configured to:
所述丢弃标志为第二值,且所述资源分配标志为第二值时,沿预设缺省路径转发所述报文;When the discarding flag is a second value, and the resource allocation flag is a second value, forwarding the message along a preset default path;
所述丢弃标志为第二值,且所述资源分配标志为第一值时,沿预设缺省路径转发所述报文,且向控制面上报信息,使控制面根据所述切片标识对应的资源需求,分配对应的子链路资源;When the discard flag is the second value and the resource allocation flag is the first value, forward the packet along the preset default path, and report information to the control plane, so that the control plane identifies the Resource requirements, allocate corresponding sub-link resources;
所述丢弃标志为第一值,且所述资源分配标志为第二值时,丢弃所述报文;When the discarding flag is a first value and the resource allocation flag is a second value, discarding the message;
所述丢弃标志为第一值,且所述资源分配标志为第一值时,丢弃所述报文,且向控制面上报信息,使控制面根据所述切片标识对应的资源需求,分配对应的子链路资源。When the discard flag is the first value and the resource allocation flag is the first value, discard the message, and report information to the control plane, so that the control plane allocates the corresponding resource requirements according to the resource requirements corresponding to the slice identifier sublink resource.
本申请实施例还提供一种资源分配装置,应用于报文发送节点,如图9 所示,该报文发送节点900包括:The embodiment of the present application also provides a resource allocation device, which is applied to a message sending node. As shown in FIG. 9, the message sending node 900 includes:
报文发送单元910,配置为向SRv6策略路径上发送报文;A message sending unit 910, configured to send a message to the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述SRv6策略路径上的报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 packet header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
本申请实施例中,所述报文可以包括BFD报文,或者可以包括用户的业务报文,或者可以包括新定义的报文。In this embodiment of the present application, the message may include a BFD message, or may include a service message of a user, or may include a newly defined message.
本申请实施例中,所述资源指示标志包括丢弃标志和/或资源分配标志;In this embodiment of the present application, the resource indication flag includes a discard flag and/or a resource allocation flag;
所述丢弃标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时是否丢弃所述报文;The discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier;
所述资源分配标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时,是否根据所述切片标识分配对应的子链路资源。The resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
本申请实施例中,所述丢弃标志为第一值时,表示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;In the embodiment of the present application, when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
所述丢弃标志为第二值时,表示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文。When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
本申请实施例中,所述资源分配标志为第一值时,表示根据所述切片标识不能获得子链路资源时,分配对应的子链路资源;In the embodiment of the present application, when the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
所述资源分配标志为第二值时,表示根据所述切片标识不能获得子链路资源时,不分配子链路资源。When the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
本申请实施例中,所述IPv6报文头的IPv6HBH、新HBH或者DOH中包括网络切片标识选项;In the embodiment of the present application, the IPv6HBH, new HBH or DOH of the IPv6 message header includes a network slice identification option;
其中,所述网络切片标识选项中包括所述资源指示标志。Wherein, the network slice identification option includes the resource indication flag.
本申请实施例中,所述IPv6报文头的源地址或Flowlabel字段中记录有所述资源指示标志,所述资源指示标志占用所述源地址或Flowlabel字段的部分指示位。In this embodiment of the present application, the resource indication flag is recorded in the source address or Flowlabel field of the IPv6 packet header, and the resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
本申请实施例中,所述网络切片标识选项还包括:选项类型、选项数据字段长度和所述切片标识。In this embodiment of the present application, the network slice identification option further includes: option type, option data field length, and the slice identification.
本申请实施例中,所述资源指示标志包括丢弃标志和资源分配标志;In the embodiment of the present application, the resource indication flag includes a discard flag and a resource allocation flag;
所述丢弃标志为第二值,且所述资源分配标志为第二值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文;When the discarding flag is the second value, and the resource allocation flag is the second value, the resource indication flag is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forwarding along the preset default path said message;
所述丢弃标志为第二值,且所述资源分配标志为第一值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源;When the discarding flag is the second value and the resource allocation flag is the first value, the resource indication flag is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forwarding along the preset default path The message, and according to the resource requirements corresponding to the slice identifier, allocate corresponding sub-link resources;
所述丢弃标志为第一值,且所述资源分配标志为第二值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,丢弃所述 报文;When the discarding flag is the first value, and the resource allocation flag is the second value, the resource indication flag is used to indicate that the packet is discarded when sub-link resources cannot be obtained according to the slice identifier;
所述丢弃标志为第一值,且所述资源分配标志为第一值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,丢弃所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源。When the discard flag is the first value, and the resource allocation flag is the first value, the resource indication flag is used to indicate that the packet is discarded when the sub-link resource cannot be obtained according to the slice identifier, and According to the resource requirements corresponding to the slice identifiers, corresponding sub-link resources are allocated.
本申请实施例中,所述报文发送节点为SRv6策略路径的头节点时,所述报文发送单元910,还配置为:In the embodiment of the present application, when the message sending node is the head node of the SRv6 policy path, the message sending unit 910 is further configured as:
向SRv6策略路径上发送前N个报文;其中,前N个报文中的所述资源指示标志用于触发所述SRv6策略路径上的各个报文接收节点进行对所述切片标识对应的子链路资源的动态分配;Sending the first N messages on the SRv6 policy path; wherein, the resource indication flags in the first N messages are used to trigger each message receiving node on the SRv6 policy path to carry out subsections corresponding to the slice identifiers. Dynamic allocation of link resources;
向SRv6策略路径上发送第N+1个报文至第M个报文;其中,第N+1个报文至第M个报文中的所述资源指示标志用于检测所述SRv6策略路径上的各个报文接收节点是否完成了对所述切片标识所对应子链路资源的动态分配;其中,M大于N,且M与N均为正整数;Send the N+1th message to the Mth message on the SRv6 policy path; wherein, the resource indicator in the N+1th message to the Mth message is used to detect the SRv6 policy path Whether each message receiving node on the network has completed the dynamic allocation of sublink resources corresponding to the slice identifier; wherein, M is greater than N, and M and N are both positive integers;
向SRv6策略路径上发送第M个报文之后的报文;其中,第M个报文之后的报文中的所述资源指示标志用于指示各个报文接收节点,在根据所述切片标识不能获得子链路资源时,丢弃所述报文。Send the message after the Mth message to the SRv6 policy path; wherein, the resource indicator in the message after the Mth message is used to indicate each message receiving node, and the slice identifier cannot When sublink resources are obtained, the message is discarded.
本申请实施例中,所述资源指示标志包括丢弃标志和资源分配标志,所述丢弃标志和所述资源分配标志分别为第一值或第二值时:In this embodiment of the present application, the resource indication flag includes a discard flag and a resource allocation flag, and when the discard flag and the resource allocation flag are respectively the first value or the second value:
前N个报文中的所述资源指示标志为:所述丢弃标志为第二值,所述资源分配标志为第一值;The resource indication flags in the first N packets are: the discard flag is a second value, and the resource allocation flag is a first value;
第N+1个报文至第M个报文中的所述资源指示标志为:所述丢弃标志为第一值,所述资源分配标志为第一值;The resource indication flags in the N+1th message to the Mth message are: the discarding flag is the first value, and the resource allocation flag is the first value;
第M个报文之后的报文中的所述资源指示标志:所述丢弃标志为第一值,所述资源分配标志为第二值。The resource indication flag in the packets after the Mth packet: the discard flag is a first value, and the resource allocation flag is a second value.
本申请实施例中,所述报文发送单元910,还配置为:In the embodiment of the present application, the message sending unit 910 is further configured as:
向SRv6策略路径上发送第N+1个报文及第N+1个报文之后的报文的过程中,若接收到报文的回程报文,且所接收的回程报文中的丢弃标志为第一值,资源分配标志为第一值,则确定第M个报文已被发送,下一个发送的报文为第M+1个报文。During the process of sending the N+1th packet and the packets after the N+1th packet to the SRv6 policy path, if the return packet of the packet is received, and the discard flag in the received return packet is the first value, and the resource allocation flag is the first value, it is determined that the Mth message has been sent, and the next sent message is the M+1th message.
本申请实施例中,所述报文发送单元910,还配置为:In the embodiment of the present application, the message sending unit 910 is further configured as:
向SRv6策略路径上发送第N+1个报文及第N+1个报文之后的报文的过程中,若接收到报文的回程报文,且所接收的回程报文中的丢弃标志为第一值,资源分配标志为第一值,则确定所述SRv6策略路径的每一节点完成了子链路资源的分配。During the process of sending the N+1th packet and the packets after the N+1th packet to the SRv6 policy path, if the return packet of the packet is received, and the discard flag in the received return packet is the first value, and the resource allocation flag is the first value, it is determined that each node of the SRv6 policy path has completed the allocation of sub-link resources.
实际应用时,所述报文发送单元910可由报文发送节点中的收发机实现。In practical applications, the packet sending unit 910 may be implemented by a transceiver in the packet sending node.
本申请实施例还提供一种资源分配装置,应用于报文接收节点,如图10所示,该报文接收节点1000包括:The embodiment of the present application also provides a resource allocation device, which is applied to a message receiving node. As shown in FIG. 10, the message receiving node 1000 includes:
报文接收单元1010,配置为接收SRv6策略路径上的报文;A packet receiving unit 1010 configured to receive packets on the SRv6 policy path;
其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
本申请实施例中,所述报文可以包括BFD报文,或者可以包括用户的业务报文,或者可以包括新定义的报文。In this embodiment of the present application, the message may include a BFD message, or may include a service message of a user, or may include a newly defined message.
本申请实施例中,所述资源指示标志包括丢弃标志和/或资源分配标志;In this embodiment of the present application, the resource indication flag includes a discard flag and/or a resource allocation flag;
所述丢弃标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时是否丢弃所述报文;The discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier;
所述资源分配标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时,是否根据所述切片标识分配对应的子链路资源。The resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
本申请实施例中,所述丢弃标志为第一值时,表示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;In the embodiment of the present application, when the discard flag is the first value, it means that the message is discarded when the sub-link resource cannot be obtained according to the slice identifier;
所述丢弃标志为第二值时,表示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文。When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
本申请实施例中,所述资源分配标志为第一值时,表示根据所述切片标识不能获得子链路资源时,分配对应的子链路资源;In the embodiment of the present application, when the resource allocation flag is the first value, it means that when the sub-link resource cannot be obtained according to the slice identifier, the corresponding sub-link resource is allocated;
所述资源分配标志为第二值时,表示根据所述切片标识不能获得子链路资源时,不分配子链路资源。When the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
本申请实施例中,所述IPv6报文头的IPv6HBH、新HBH或者DOH中包括网络切片标识选项;In the embodiment of the present application, the IPv6HBH, new HBH or DOH of the IPv6 message header includes a network slice identification option;
其中,所述网络切片标识选项中包括所述资源指示标志。Wherein, the network slice identification option includes the resource indication flag.
本申请实施例中,所述IPv6报文头的源地址或Flowlabel字段中记录有所述资源指示标志,所述资源指示标志占用所述源地址或Flowlabel字段的部分指示位。In this embodiment of the present application, the resource indication flag is recorded in the source address or Flowlabel field of the IPv6 packet header, and the resource indication flag occupies part of the indication bits of the source address or Flowlabel field.
本申请实施例中,所述网络切片标识选项还包括:选项类型、选项数据字段长度和所述切片标识。In this embodiment of the present application, the network slice identification option further includes: option type, option data field length, and the slice identification.
本申请实施例中,所述报文接收单元1010,还配置为:In the embodiment of the present application, the message receiving unit 1010 is further configured as:
在根据所述切片标识不能获得子链路资源的情况下,根据所述资源指示标志所指示的数值,执行对所述报文的处理。In the case that the sublink resource cannot be obtained according to the slice identifier, the message is processed according to the value indicated by the resource indication flag.
本申请实施例中,所述资源指示标志包括丢弃标志和资源分配标志时,所述报文接收单元1010,还配置为:In this embodiment of the present application, when the resource indication flag includes a discard flag and a resource allocation flag, the message receiving unit 1010 is further configured to:
所述丢弃标志为第二值,且所述资源分配标志为第二值时,沿预设缺省路径转发所述报文;When the discarding flag is a second value, and the resource allocation flag is a second value, forwarding the message along a preset default path;
所述丢弃标志为第二值,且所述资源分配标志为第一值时,沿预设缺省路径转发所述报文,且向控制面上报信息,使控制面根据所述切片标识对应的资源需求,分配对应的子链路资源;When the discard flag is the second value and the resource allocation flag is the first value, forward the packet along the preset default path, and report information to the control plane, so that the control plane identifies the Resource requirements, allocate corresponding sub-link resources;
所述丢弃标志为第一值,且所述资源分配标志为第二值时,丢弃所述 报文;When the discarding flag is a first value and the resource allocation flag is a second value, discarding the message;
所述丢弃标志为第一值,且所述资源分配标志为第一值时,丢弃所述报文,且向控制面上报信息,使控制面根据所述切片标识对应的资源需求,分配对应的子链路资源。When the discard flag is the first value and the resource allocation flag is the first value, discard the message, and report information to the control plane, so that the control plane allocates the corresponding resource requirements according to the resource requirements corresponding to the slice identifier sublink resource.
实际应用时,所述报文接收单元1010可由报文接收节点中的收发机实现。In practical applications, the message receiving unit 1010 may be implemented by a transceiver in a message receiving node.
本申请实施例还提供一种网络节点,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现前述报文发送节点侧方法所述步骤,或者实现前述报文接收节点侧方法所述步骤。The embodiment of the present application also provides a network node, including: a processor, a memory, and a program stored on the memory and operable on the processor. When the program is executed by the processor, the aforementioned message The steps described in the method on the side of the sending node, or the steps described in the method on the side of the message receiving node are implemented.
其中,网络节点可以包括上述的报文发送节点或者为报文接收节点,在报文发送节点和报文接收节点上,所述程序被处理器执行时实现前述资源分配方法实施例的具体实施过程可以参阅上述的详细描述,在此不再说明。Wherein, the network node may include the above-mentioned message sending node or a message receiving node. On the message sending node and the message receiving node, when the program is executed by the processor, the specific implementation process of the foregoing resource allocation method embodiment is realized. Reference may be made to the above detailed description, and no further description is given here.
另外,本申请具体实施例还提供一种可读存储介质,其上存储有程序,该程序被处理器执行时实现前述报文发送节点侧方法所述步骤,或者实现前述报文接收节点侧方法所述步骤。In addition, the specific embodiment of the present application also provides a readable storage medium on which a program is stored, and when the program is executed by a processor, the steps described in the aforementioned message sending node side method are implemented, or the aforementioned message receiving node side method is implemented. the steps.
具体地,该计算机可读存储介质应用于上述的报文发送节点或报文接收节点,在应用于报文发送节点或报文接收节点时,其对应资源分配方法中的执行步骤详见方法实施例,在此不再赘述。Specifically, the computer-readable storage medium is applied to the above-mentioned message sending node or message receiving node. When it is applied to the message sending node or message receiving node, the execution steps in the corresponding resource allocation method are detailed in Method Implementation example, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed methods and devices may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述收发方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the sending and receiving methods described in various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), magnetic disk or optical disc, etc., which can store program codes. medium.
以上所述的是本申请的一些实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本申请所述原理前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。What have been described above are some embodiments of the present application, and it should be pointed out that those skilled in the art can make some improvements and modifications without departing from the principles described in the application, and these improvements and modifications should also be regarded as For the scope of protection of this application.

Claims (29)

  1. 一种资源分配方法,应用于报文发送节点,所述方法包括:A resource allocation method applied to a message sending node, the method comprising:
    向SRv6策略路径上发送报文;Send packets to the SRv6 policy path;
    其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述SRv6策略路径上的报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 packet header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
  2. 根据权利要求1所述的资源分配方法,其中,所述报文包括双向检测BFD报文。The resource allocation method according to claim 1, wherein the message includes a bidirectional detection (BFD) message.
  3. 根据权利要求1所述的资源分配方法,其中,所述资源指示标志包括丢弃标志和/或资源分配标志;The resource allocation method according to claim 1, wherein the resource indication flag comprises a discard flag and/or a resource allocation flag;
    所述丢弃标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时是否丢弃所述报文;The discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier;
    所述资源分配标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时,是否根据所述切片标识分配对应的子链路资源。The resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
  4. 根据权利求3所述的资源分配方法,其中,所述丢弃标志为第一值时,表示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;The resource allocation method according to claim 3, wherein, when the discard flag is a first value, it means that the message is discarded when sub-link resources cannot be obtained according to the slice identifier;
    所述丢弃标志为第二值时,表示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文。When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
  5. 根据权利要求3所述的资源分配方法,其中,所述资源分配标志为第一值时,表示根据所述切片标识不能获得子链路资源时,分配对应的子链路资源;The resource allocation method according to claim 3, wherein when the resource allocation flag is a first value, it indicates that when sub-link resources cannot be obtained according to the slice identifier, corresponding sub-link resources are allocated;
    所述资源分配标志为第二值时,表示根据所述切片标识不能获得子链路资源时,不分配子链路资源。When the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
  6. 根据权利要求1所述的资源分配方法,其中,所述IPv6报文头的IPv6逐跳选项头HBH、新HBH或者目的选项头DOH中包括网络切片标识选项;The resource allocation method according to claim 1, wherein the IPv6 hop-by-hop option header HBH, new HBH or destination option header DOH of the IPv6 message header includes a network slice identification option;
    其中,所述网络切片标识选项中包括所述资源指示标志。Wherein, the network slice identification option includes the resource indication flag.
  7. 根据权利要求1所述的资源分配方法,其中,所述IPv6报文头的源地址或流标签字段中记录有所述资源指示标志,所述资源指示标志占用所述源地址或流标签字段的部分指示位。The resource allocation method according to claim 1, wherein the resource indication flag is recorded in the source address or flow label field of the IPv6 message header, and the resource indication flag occupies a portion of the source address or flow label field Partial indicator.
  8. 根据权利要求6所述的资源分配方法,其中,所述网络切片标识选项还包括:选项类型、选项数据字段长度和所述切片标识。The resource allocation method according to claim 6, wherein the network slice identification option further includes: option type, option data field length and the slice identification.
  9. 根据权利要求5所述的资源分配方法,其中,所述资源指示标志包括丢弃标志和资源分配标志;The resource allocation method according to claim 5, wherein the resource indication flag includes a discard flag and a resource allocation flag;
    所述丢弃标志为第二值,且所述资源分配标志为第二值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,沿预 设缺省路径转发所述报文;When the discarding flag is the second value, and the resource allocation flag is the second value, the resource indication flag is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forwarding along the preset default path said message;
    所述丢弃标志为第二值,且所述资源分配标志为第一值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源;When the discarding flag is the second value and the resource allocation flag is the first value, the resource indication flag is used to indicate that when sub-link resources cannot be obtained according to the slice identifier, forwarding along the preset default path The message, and according to the resource requirements corresponding to the slice identifier, allocate corresponding sub-link resources;
    所述丢弃标志为第一值,且所述资源分配标志为第二值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;When the discarding flag is the first value, and the resource allocation flag is the second value, the resource indication flag is used to indicate that the packet is discarded when sub-link resources cannot be obtained according to the slice identifier;
    所述丢弃标志为第一值,且所述资源分配标志为第一值时,所述资源指示标志用于指示在根据所述切片标识不能获得子链路资源时,丢弃所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源。When the discard flag is the first value, and the resource allocation flag is the first value, the resource indication flag is used to indicate that the packet is discarded when the sub-link resource cannot be obtained according to the slice identifier, and According to the resource requirements corresponding to the slice identifiers, corresponding sub-link resources are allocated.
  10. 根据权利要求1至9任一项所述的资源分配方法,其中,所述报文发送节点为SRv6策略路径的头节点时,所述向SRv6策略路径上发送报文,包括:The resource allocation method according to any one of claims 1 to 9, wherein, when the message sending node is the head node of the SRv6 policy path, sending the message to the SRv6 policy path includes:
    向SRv6策略路径上发送前N个报文;其中,前N个报文中的所述资源指示标志用于触发所述SRv6策略路径上的各个报文接收节点进行对所述切片标识对应的子链路资源的动态分配;Sending the first N messages on the SRv6 policy path; wherein, the resource indication flags in the first N messages are used to trigger each message receiving node on the SRv6 policy path to carry out subsections corresponding to the slice identifiers. Dynamic allocation of link resources;
    向SRv6策略路径上发送第N+1个报文至第M个报文;其中,第N+1个报文至第M个报文中的所述资源指示标志用于检测所述SRv6策略路径上的各个报文接收节点是否完成了对所述切片标识所对应子链路资源的动态分配;其中,M大于N,且M与N均为正整数;Send the N+1th message to the Mth message on the SRv6 policy path; wherein, the resource indicator in the N+1th message to the Mth message is used to detect the SRv6 policy path Whether each message receiving node on the network has completed the dynamic allocation of sublink resources corresponding to the slice identifier; wherein, M is greater than N, and M and N are both positive integers;
    向SRv6策略路径上发送第M个报文之后的报文;其中,第M个报文之后的报文中的所述资源指示标志用于指示各个报文接收节点,在根据所述切片标识不能获得子链路资源时,丢弃所述报文。Send the message after the Mth message to the SRv6 policy path; wherein, the resource indicator in the message after the Mth message is used to indicate each message receiving node, and the slice identifier cannot When sublink resources are obtained, the message is discarded.
  11. 根据权利要求10所述的资源分配方法,其中,所述资源指示标志包括丢弃标志和资源分配标志,所述丢弃标志和所述资源分配标志分别为第一值或第二值时:The resource allocation method according to claim 10, wherein the resource indication flag includes a discard flag and a resource allocation flag, and when the discard flag and the resource allocation flag are respectively the first value or the second value:
    前N个报文中的所述资源指示标志为:所述丢弃标志为第二值,所述资源分配标志为第一值;The resource indication flags in the first N packets are: the discard flag is a second value, and the resource allocation flag is a first value;
    第N+1个报文至第M个报文中的所述资源指示标志为:所述丢弃标志为第一值,所述资源分配标志为第一值;The resource indication flags in the N+1th message to the Mth message are: the discarding flag is the first value, and the resource allocation flag is the first value;
    第M个报文之后的报文中的所述资源指示标志:所述丢弃标志为第一值,所述资源分配标志为第二值。The resource indication flag in the packets after the Mth packet: the discard flag is a first value, and the resource allocation flag is a second value.
  12. 根据权利要求11所述的资源分配方法,其中,所述方法还包括:The resource allocation method according to claim 11, wherein the method further comprises:
    向SRv6策略路径上发送第N+1个报文及第N+1个报文之后的报文的过程中,若接收到报文的回程报文,且所接收的回程报文中的丢弃标志为第一值,资源分配标志为第一值,则确定第M个报文已被发送,下 一个发送的报文为第M+1个报文。During the process of sending the N+1th packet and the packets after the N+1th packet to the SRv6 policy path, if the return packet of the packet is received, and the discard flag in the received return packet is the first value, and the resource allocation flag is the first value, it is determined that the Mth message has been sent, and the next sent message is the M+1th message.
  13. 根据权利要求11所述的资源分配方法,其中,所述方法还包括:The resource allocation method according to claim 11, wherein the method further comprises:
    向SRv6策略路径上发送第N+1个报文及第N+1个报文之后的报文的过程中,若接收到报文的回程报文,且所接收的回程报文中的丢弃标志为第一值,资源分配标志为第一值,则确定所述SRv6策略路径的每一节点完成了子链路资源的分配。During the process of sending the N+1th packet and the packets after the N+1th packet to the SRv6 policy path, if the return packet of the packet is received, and the discard flag in the received return packet is the first value, and the resource allocation flag is the first value, it is determined that each node of the SRv6 policy path has completed the allocation of sub-link resources.
  14. 一种资源分配方法,应用于报文接收节点,所述方法包括:A resource allocation method applied to a message receiving node, the method comprising:
    接收SRv6策略路径上的报文;Receive packets on the SRv6 policy path;
    其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
  15. 根据权利要求14所述的资源分配方法,其中,所述报文包括BFD报文。The resource allocation method according to claim 14, wherein the message includes a BFD message.
  16. 根据权利要求14所述的资源分配方法,其中,所述资源指示标志包括丢弃标志和/或资源分配标志;The resource allocation method according to claim 14, wherein the resource indication flag comprises a discard flag and/or a resource allocation flag;
    所述丢弃标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时是否丢弃所述报文;The discard flag is used to indicate whether to discard the message when the message receiving node cannot obtain sub-link resources according to the slice identifier;
    所述资源分配标志用于指示所述报文接收节点根据所述切片标识不能获得子链路资源时,是否根据所述切片标识分配对应的子链路资源。The resource allocation flag is used to indicate whether the packet receiving node allocates the corresponding sub-link resource according to the slice ID when it cannot obtain the sub-link resource according to the slice ID.
  17. 根据权利要求16所述的资源分配方法,其中,所述丢弃标志为第一值时,表示在根据所述切片标识不能获得子链路资源时,丢弃所述报文;The resource allocation method according to claim 16, wherein, when the discard flag is a first value, it means that the message is discarded when sub-link resources cannot be obtained according to the slice identifier;
    所述丢弃标志为第二值时,表示在根据所述切片标识不能获得子链路资源时,沿预设缺省路径转发所述报文。When the discarding flag is the second value, it indicates that the packet is forwarded along a preset default path when sub-link resources cannot be obtained according to the slice identifier.
  18. 根据权利要求16所述的资源分配方法,其中,所述资源分配标志为第一值时,表示根据所述切片标识不能获得子链路资源时,分配对应的子链路资源;The resource allocation method according to claim 16, wherein when the resource allocation flag is a first value, it indicates that when sub-link resources cannot be obtained according to the slice identifier, corresponding sub-link resources are allocated;
    所述资源分配标志为第二值时,表示根据所述切片标识不能获得子链路资源时,不分配子链路资源。When the resource allocation flag is the second value, it indicates that no sub-link resource is allocated when the sub-link resource cannot be obtained according to the slice identifier.
  19. 根据权利要求14所述的资源分配方法,其中,所述IPv6报文头的IPv6 HBH、新HBH或者DOH中包括网络切片标识选项;The resource allocation method according to claim 14, wherein the IPv6 HBH, the new HBH or the DOH of the IPv6 message header include a network slice identification option;
    其中,所述网络切片标识选项中包括所述资源指示标志。Wherein, the network slice identification option includes the resource indication flag.
  20. 根据权利要求14所述的资源分配方法,其中,所述IPv6报文头的源地址或流标签字段中记录有所述资源指示标志,所述资源指示标志占用所述源地址或流标签字段的部分指示位。The resource allocation method according to claim 14, wherein the resource indication flag is recorded in the source address or flow label field of the IPv6 message header, and the resource indication flag occupies a portion of the source address or flow label field Partial indicator.
  21. 根据权利要求19所述的资源分配方法,其中,所述网络切片标识选项还包括:选项类型、选项数据字段长度和所述切片标识。The resource allocation method according to claim 19, wherein the network slice identification option further includes: option type, option data field length and the slice identification.
  22. 根据权利要求14至21任一项所述的资源分配方法,其中,所述 方法还包括:The resource allocation method according to any one of claims 14 to 21, wherein the method further comprises:
    在根据所述切片标识不能获得子链路资源的情况下,根据所述资源指示标志所指示的数值,执行对所述报文的处理。In the case that the sublink resource cannot be obtained according to the slice identifier, the message is processed according to the value indicated by the resource indication flag.
  23. 根据权利要求22所述的资源分配方法,其中,所述资源指示标志包括丢弃标志和资源分配标志时,所述根据所述资源指示标志所指示的数值,执行对所述报文的处理,包括:The resource allocation method according to claim 22, wherein when the resource indication flag includes a discard flag and a resource allocation flag, the processing of the message is performed according to the value indicated by the resource indication flag, including :
    所述丢弃标志为第二值,且所述资源分配标志为第二值时,沿预设缺省路径转发所述报文;When the discarding flag is a second value, and the resource allocation flag is a second value, forwarding the message along a preset default path;
    所述丢弃标志为第二值,且所述资源分配标志为第一值时,沿预设缺省路径转发所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源;When the discard flag is the second value and the resource allocation flag is the first value, forward the message along a preset default path, and allocate the corresponding sub-link according to the resource requirement corresponding to the slice identifier resource;
    所述丢弃标志为第一值,且所述资源分配标志为第二值时,丢弃所述报文;When the discarding flag is a first value and the resource allocation flag is a second value, discarding the message;
    所述丢弃标志为第一值,且所述资源分配标志为第一值时,丢弃所述报文,且根据所述切片标识对应的资源需求,分配对应的子链路资源。When the discard flag is the first value and the resource allocation flag is the first value, discard the message, and allocate corresponding sublink resources according to the resource requirement corresponding to the slice identifier.
  24. 一种网络节点,所述网络节点为报文发送节点,包括:收发机,其中,所述收发机配置为:A network node, the network node is a message sending node, including: a transceiver, wherein the transceiver is configured as:
    向SRv6策略路径上发送报文;Send packets to the SRv6 policy path;
    其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述SRv6策略路径上的报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 packet header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
  25. 一种网络节点,所述网络节点为报文接收节点,包括:收发机,其中,所述收发机配置为:A network node, the network node is a message receiving node, including: a transceiver, wherein the transceiver is configured as:
    接收SRv6策略路径上的报文;Receive packets on the SRv6 policy path;
    其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
  26. 一种资源分配装置,应用于报文发送节点,包括:A resource allocation device, applied to a message sending node, comprising:
    报文发送单元,配置为向SRv6策略路径上发送报文;A packet sending unit configured to send packets to the SRv6 policy path;
    其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述SRv6策略路径上的报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 packet header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node on the SRv6 policy path the sublink resource corresponding to the slice identifier Dynamic allocation.
  27. 一种资源分配装置,应用于报文接收节点,包括:A resource allocation device, applied to a message receiving node, comprising:
    报文接收单元,配置为接收SRv6策略路径上的报文;A packet receiving unit configured to receive packets on the SRv6 policy path;
    其中,所述报文的IPv6报文头中包括切片标识以及资源指示标志,所述资源指示标志用于向所述报文接收节点指示所述切片标识对应子链路资源的动态分配。Wherein, the IPv6 header of the message includes a slice identifier and a resource indication flag, and the resource indication flag is used to indicate to the message receiving node the dynamic allocation of sub-link resources corresponding to the slice identifier.
  28. 一种网络节点,包括:处理器、存储器及存储在所述存储器上并 可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如权利要求1至13任一项所述的资源分配方法,或者实现如权利要求14至23任一项所述的资源分配方法。A network node, comprising: a processor, a memory, and a program stored on the memory and operable on the processor, when the program is executed by the processor, any one of claims 1 to 13 is implemented The resource allocation method, or implement the resource allocation method according to any one of claims 14 to 23.
  29. 一种可读存储介质,所述可读存储介质上存储有程序,所述程序被处理器执行时实现如权利要求1至13任一项所述的资源分配方法中的步骤,或者实现如权利要求14至23任一项所述的资源分配方法中的步骤。A readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps in the resource allocation method according to any one of claims 1 to 13 are realized, or the steps in the resource allocation method according to any one of claims 1 to 13 are realized, or the The steps in the resource allocation method described in any one of requirements 14 to 23.
PCT/CN2022/112283 2021-08-13 2022-08-12 Resource allocation method and apparatus, and network node WO2023016566A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110932008 2021-08-13
CN202110932008.1 2021-08-13
CN202210946390.6 2022-08-08
CN202210946390.6A CN115941623A (en) 2021-08-13 2022-08-08 Resource allocation method, device and network node

Publications (1)

Publication Number Publication Date
WO2023016566A1 true WO2023016566A1 (en) 2023-02-16

Family

ID=85199848

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112283 WO2023016566A1 (en) 2021-08-13 2022-08-12 Resource allocation method and apparatus, and network node

Country Status (1)

Country Link
WO (1) WO2023016566A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116319549A (en) * 2023-05-18 2023-06-23 新华三技术有限公司 Distributed flow scheduling method and device
CN116527559A (en) * 2023-07-03 2023-08-01 中国电信股份有限公司 Message forwarding processing and sending method, device, equipment and medium for network slice
US11870690B2 (en) * 2020-03-17 2024-01-09 Huawei Technologies Co., Ltd. Packet processing method and apparatus, device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109842910A (en) * 2017-11-28 2019-06-04 中国移动通信有限公司研究院 A kind of processing method and access network elements of network slice
CN110912795A (en) * 2018-09-14 2020-03-24 中兴通讯股份有限公司 Transmission control method, node, network system and storage medium
CN111835637A (en) * 2019-04-15 2020-10-27 华为技术有限公司 Data processing method based on SRv6 and related network equipment
CN112119653A (en) * 2018-05-16 2020-12-22 高通股份有限公司 Resource fragmentation over a side link interface
US20200404718A1 (en) * 2019-06-19 2020-12-24 Cisco Technology, Inc. Network slice support of respective transport protocols
CN113055202A (en) * 2019-12-26 2021-06-29 华为技术有限公司 Method, device and system for transmitting data message
CN113411834A (en) * 2020-03-17 2021-09-17 华为技术有限公司 Message processing method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109842910A (en) * 2017-11-28 2019-06-04 中国移动通信有限公司研究院 A kind of processing method and access network elements of network slice
CN112119653A (en) * 2018-05-16 2020-12-22 高通股份有限公司 Resource fragmentation over a side link interface
CN110912795A (en) * 2018-09-14 2020-03-24 中兴通讯股份有限公司 Transmission control method, node, network system and storage medium
CN111835637A (en) * 2019-04-15 2020-10-27 华为技术有限公司 Data processing method based on SRv6 and related network equipment
US20200404718A1 (en) * 2019-06-19 2020-12-24 Cisco Technology, Inc. Network slice support of respective transport protocols
CN113055202A (en) * 2019-12-26 2021-06-29 华为技术有限公司 Method, device and system for transmitting data message
CN113411834A (en) * 2020-03-17 2021-09-17 华为技术有限公司 Message processing method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WANG CHENXI;GU RUI;XIAO YAQUN;WANG WEIBO;WANG XIAOFEI;LIU YUE: "IPv6+ Based Intelligent IP Network Solution", TELECOMMUNICATIONS SCIENCE, no. 8, 17 August 2020 (2020-08-17), pages 66 - 80, XP093034917, ISSN: 1000-0801, DOI: 10.11959/j.issn.1000−0801.2020255 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11870690B2 (en) * 2020-03-17 2024-01-09 Huawei Technologies Co., Ltd. Packet processing method and apparatus, device, and storage medium
CN116319549A (en) * 2023-05-18 2023-06-23 新华三技术有限公司 Distributed flow scheduling method and device
CN116319549B (en) * 2023-05-18 2023-08-18 新华三技术有限公司 Distributed flow scheduling method and device
CN116527559A (en) * 2023-07-03 2023-08-01 中国电信股份有限公司 Message forwarding processing and sending method, device, equipment and medium for network slice
CN116527559B (en) * 2023-07-03 2023-09-29 中国电信股份有限公司 Message forwarding processing and sending method, device, equipment and medium for network slice

Similar Documents

Publication Publication Date Title
WO2023016566A1 (en) Resource allocation method and apparatus, and network node
US10554542B2 (en) Label distribution method and device
US9124504B2 (en) System and method for implementing label switch router (LSR) overload protection
US8599685B2 (en) Snooping of on-path IP reservation protocols for layer 2 nodes
US9787593B2 (en) Performing path-oriented systems management
US8605723B2 (en) MPLS traffic engineering for point-to-multipoint label switched paths
JP4109692B2 (en) Session establishment method and label switch node in label switch network
US8005090B2 (en) QoS information notification method, communication apparatus and inter-domain signaling apparatus for transmitting QoS information over a multi-domain network
EP2475133B1 (en) Network system and network apparatus
US20080310428A1 (en) Method for Identifying Real-Time Traffic Hop by Hop in an Internet Network
WO2009071030A1 (en) Method for reporting device information, system and device for obtaining device information
US8767750B2 (en) Method and node device for negotiating associated channel capability between nodes
US9294416B2 (en) Method of and apparatus for configuring quality of service
EP2239956A1 (en) Method, apparatus and system for ip/optical convergence
CN115941623A (en) Resource allocation method, device and network node
JP4209340B2 (en) Multiplexer discovery and parameter exchange.
WO2014059570A1 (en) Method, device and system for establishing label switched path
CN114079583A (en) Method for sending multicast message, method and device for obtaining forwarding table item
WO2022033449A1 (en) Method for sending multicast message, and method and apparatus for acquiring forwarding table entry
KR101209215B1 (en) Method for changing route distinguisher in network
CN115643201A (en) Source routing compression
JP4308385B2 (en) Label distribution method and label switching apparatus using the method
CN117643038A (en) Method for referencing local resources in a UE routing policy (urs p) in a telecommunication system and system thereof

Legal Events

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

Ref document number: 22855546

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE