WO2024040884A1 - Service processing method, apparatus and system - Google Patents

Service processing method, apparatus and system Download PDF

Info

Publication number
WO2024040884A1
WO2024040884A1 PCT/CN2023/076359 CN2023076359W WO2024040884A1 WO 2024040884 A1 WO2024040884 A1 WO 2024040884A1 CN 2023076359 W CN2023076359 W CN 2023076359W WO 2024040884 A1 WO2024040884 A1 WO 2024040884A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
subfield
length
flag bit
option field
Prior art date
Application number
PCT/CN2023/076359
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 CN202211456091.0A external-priority patent/CN117640791A/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024040884A1 publication Critical patent/WO2024040884A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Definitions

  • the present application relates to the field of network technology, and in particular to a business processing method, device and system.
  • IPv6 Internet Protocol version 6
  • these services include flow detection services, slice services, deterministic network (DetNet) services, application-aware networking (APN) services, and service function chaining (SFC) Business etc.
  • the IPv6 extension header of an IPv6 message is usually extended with different option (option) fields for each of the above services to carry the service information of the corresponding service.
  • option for each of the above services to carry the service information of the corresponding service.
  • the IPv6 extension header of the IPv6 packet needs to extend two option fields for the slicing service and the SFC service, and add the two option fields to the slicing service and the accompanying flow header.
  • the corresponding option fields of each detection service carry the service information of the corresponding service.
  • the option field should include a type (type) subfield, a length (length) subfield and other fixed contents used to describe the option field.
  • type type
  • length length
  • other fixed contents used to describe the option field.
  • This application provides a business processing method, device and system.
  • the technical solution of this application is as follows:
  • a service processing method includes: a network device receives a message including an option field, where the option field includes a first service subfield, a second service subfield, a first length subfield and a second Length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the The second length subfield is used to indicate the length of the second service subfield; the network device processes the message according to the first service subfield.
  • the first service subfield is used to carry the service information of the first service
  • the second service subfield is used to carry the service information of the second service.
  • an option field of the message includes a first service subfield and a second service subfield
  • the first service subfield corresponds to the first service
  • the second service subfield corresponds to the second service
  • the first service subfield corresponds to the second service.
  • the service is different from the second service. Therefore, the one option field can carry the service information of the first service and the service information of the second service. That is, the one option field can carry the service information of at least two different services.
  • the same option field in the same message can carry the business information of at least two different services. Therefore, there is no need to expand the option field separately for each service.
  • each option field usually also includes some optional subfields for alignment or future expansion. These optional subfields can also easily lead to higher message overhead.
  • the technical solution provided by this application can also save the overhead caused by some optional sub-fields and reduce message overhead.
  • a network device After a network device obtains (for example, receives or generates) a packet, it usually needs to process the packet, such as forwarding the packet or performing some business processing on the packet.
  • the length of the message is relatively large, resulting in high complexity of network equipment processing the message and low forwarding performance of the network equipment.
  • the same option field of the same message can carry the business information of at least two different services, thus reducing the length of the message and helping to simplify the complexity of network equipment processing messages. Improve the forwarding performance of network equipment.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield Used to indicate the length of the second service subfield. Therefore, when the network device processes a message including this option field, the network device can determine the length of the first service subfield based on the first length subfield. According to the length carried by the first service subfield process the message according to the service information or skip the first service subfield, and the network device can determine the length of the second service subfield according to the second length subfield to process the message according to the service information carried by the second service subfield. Or skip the second business subfield.
  • the option field includes a length subfield used to indicate the length of each service subfield (such as the first service subfield and the second service subfield), the lengths of different service subfields may be equal or unequal, The length of each service subfield can be flexibly set according to actual needs, and will not affect the network device's processing of messages containing this option field.
  • the option field also includes a flag subfield, which is used to indicate that the option field includes a first service subfield and a second service subfield.
  • the technical solution provided by this application is to set a flag subfield in the option field and use the flag subfield to indicate that the option field includes a first service subfield and a second service subfield, so that the network device can learn the option based on the flag subfield.
  • the field includes a first service subfield corresponding to the first service and a second service subfield corresponding to the second service.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield. This option field includes the second service subfield.
  • the technical solution provided by this application facilitates the network device to learn that the option field includes the first service corresponding to the first service based on the first service flag bit by setting the first service flag bit and the second service flag bit in the flag subfield. subfield, and, according to the second service flag bit, it is known that the option field includes a second service subfield corresponding to the second service.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the second service subfield
  • the first service flag bit is used to indicate that the option field includes the second service subfield.
  • the length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit. Therefore, when the network device processes a message including the option field, the network device can determine the option based on the first service flag bit.
  • the field includes the first service subfield, and then determines the length of the first service subfield according to the first length subfield, and determines that the option field includes the second service subfield according to the second service flag bit, and further determines according to the second length
  • the subfield determines the length of the second service subfield.
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, and the order of the first length subfield and the second length subfield is the same as that of the first length subfield and the second length subfield.
  • the arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
  • the network device can be configured according to the first service flag bit. and the order of the second service flag bits to determine the first length subfield and the second length subfield.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, and the order of the first service subfield and the second service subfield is the same as that of the first service subfield.
  • the arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
  • the network device can, according to the first service flag bit, and the order of the second service flag bits to determine the first service subfield and the second service subfield.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each service flag bit in the m service flag bits Used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service.
  • the second business, m ⁇ 2, and m is an integer.
  • the flag subfield corresponds to m services through bit mapping.
  • the value in each service flag bit is 0 or 1.
  • "1" is used to indicate that the option field includes the service corresponding to each service flag bit.
  • the service subfield, "0" is used to indicate that the option field does not include the service subfield of the service corresponding to each service flag bit.
  • the technical solution provided by this application by setting a flag subfield in the option field, and setting the m service flag bits of the flag subfield to correspond to m services one-to-one, can facilitate the network device to respond to each of the m service flag bits.
  • Each service flag bit determines whether the option field includes the service subfield of the service corresponding to each service flag bit, thereby facilitating the network device to learn which service subfields are included in the option field.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the service length subfield corresponding to the any service flag bit is used for Indicates the length of the service subfield
  • the k service length subfields include a first length subfield and a second length subfield
  • the k service flag bits include a first service flag bit and a second service flag bit.
  • k service length subfields are set in the option field to correspond to k services, and each service length subfield is used to indicate the length of the service subfield of the corresponding service.
  • the k service flag bits indicate that the option field includes k service subfields, and the k service length subfields are used to indicate the lengths of the k service subfields one by one.
  • the technical solution provided by this application is to set k service length subfields in the option field to correspond to k services, and use each service length subfield to indicate the length of the service subfield of the corresponding service, which facilitates the network equipment to adjust the k services according to the Each service length subfield in the length subfield determines the length of the service subfield corresponding to each service length subfield.
  • This setting method allows the length of each service subfield to be set according to actual needs, which can meet actual needs.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, and the third service flag bit.
  • the second service subfield and the third service subfield are arranged in order.
  • the third service flag bit and the third service subfield both correspond to the third service.
  • the first service, the second service and the third service subfield are arranged in sequence.
  • the services are different from each other, and the m services include the third service; the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the third service subfield may be the last service subfield in the option field.
  • the m service flag bits are arranged in order, and the third service subfield is one of the m service flag bits.
  • Each service subfield in the option field corresponds to a service length subfield.
  • each service length subfield is used to indicate the length of the corresponding service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service subfield , the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the second service and the third service are different from each other, the m
  • Each service includes the third service; the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the length of the second service subfield.
  • the length is determined.
  • the length of the third service subfield is determined based on the length of the option field and the length of the subfields in the option field other than the third service subfield (such as the length of the first service subfield and the second service subfield).
  • the third service subfield may be the last service subfield in the option field.
  • the m service flag bits are arranged in order, and the third service subfield is one of the m service flag bits.
  • the number of service length subfields in the option field is one less than the number of service flag bits included in the flag subfield in the option field.
  • the third service subfield also That is, each service subfield except the last service subfield
  • the service length subfield corresponding to each service subfield except the third service subfield is used to indicate each service subfield.
  • the length of the field is used to indicate each service subfield.
  • the network device determines each service subfield based on the service length subfield corresponding to each service subfield. length, when the network device does not support the service corresponding to each service subfield, the network device can directly skip each service subfield, simplifying the processing logic of the network device; for the third service subfield (that is, the last Service subfield), the network device determines the third service subfield based on the length of the option field and the length of the subfields in the option field except the third service subfield. When the network device does not support the third service, the network device You can directly skip the third service subfield to simplify the processing logic of the network device.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the length of the flag subfield is 8 bits, and the total length of the k service length subfields is 24 bits.
  • the flag subfield and the k service length subfields form a 4-byte field, and the flag subfield is The first byte field in the 4-byte field and the k service length subfields are the remaining 3 byte fields in the 4-byte field.
  • the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs.
  • the network device processes the message according to the first service subfield, including: the network device processes the message according to the first service subfield.
  • the flow indication subfield and the first service subfield process the message.
  • the flow indication subfield is used to carry flow indication information, and the flow indication information is used to indicate the data flow to which the message belongs.
  • the flow indication information may be a data flow identifier.
  • the application-aware network All or part of the (application-aware networking, APN) identification (ID) is used as the data flow identification.
  • the technical solution provided by this application can carry out multiple services for the same packet of the same data flow.
  • the services carried out for the packets of different data flows can be the same or different, and the business information of the same business carried out for different data flows can be carried out. different.
  • the slice service, the flow detection service and the deterministic network (DetNet) service are carried out for the same packet of the first data flow
  • the slice service, Application-aware networking (APN) business and service function chaining (SFC) business the business information of the slice service carried out for the packets of the first data flow and the packets carried out for the second data flow
  • the business information of the slice service can be different (for example, the business information of the slice service carried out for the packets of the first data flow is slice ID 1, and the business information of the slice service carried out for the packets of the second data flow is slice ID 2) .
  • the network device has different processing behaviors for the option fields included in the packets of different data flows.
  • the network device processes the message including the option field, it also refers to the local configuration information.
  • This application sets a flow indicator subfield in the option field to indicate the data flow to which the message including the option field belongs, so that the network device can according to The flow indication subfield determines the data flow to which the message belongs, and then processes the message according to the local configuration information associated with both the data flow and the service information carried by the option field.
  • Such a setting method can enable the network device to Achieve differentiated processing of different data streams.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit, and the flow flag bit is used to indicate that the option field includes the Stream indication subfield. That is, a flag bit in the flag subfield is used to indicate whether the option field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order. That is, the option field includes the flow indication subfield, but does not use the flag bit in the flag subfield to indicate the flow indication subfield.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield. That is, the first length subfield is part of the first service subfield, the second length subfield is part of the second service subfield, the first length subfield is also called the first length space, and the second length subfield is also called the first length space.
  • the field is also called the second length space.
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the second type space is used to indicate the second service. That is, the first type space in the first service subfield is used to indicate that the first service subfield corresponds to the first service, and the second type space in the second service subfield is used to indicate that the second service subfield corresponds to the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, and the second data space is used to indicate the first service.
  • the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs.
  • the network device processes the message according to the first service subfield, including: the network device processes the message according to the first service subfield.
  • the flow indication subfield and the first service subfield process the message.
  • the flow indication subfield is used to carry flow indication information, and the flow indication information is used to indicate the data flow to which the message belongs.
  • the flow indication information may be a flow identifier.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers. p and q may be equal or unequal.
  • the message is an Internet protocol version 6 (IPv6) message
  • IPv6 Internet protocol version 6
  • the message includes an IPv6 extension header, and the IPv6 extension header includes the option field.
  • the technical solution provided by this application carries the business information of at least two different services in the same option field of the IPv6 extension header of the same message. Compared with the solution of separately extending the option field for each service, it can save options.
  • the overhead caused by some fixed content in the field helps to reduce the length of the IPv6 extension header and reduce the overhead of the IPv6 extension header.
  • the IPv6 extension header includes any one of a hop by hop header (HBH) and a destination options header (Destination options header, DOH).
  • HBH hop by hop header
  • DOH destination options header
  • the first service includes slice service, flow detection service, application-aware network (APN) service, deterministic network (DetNet) service, service function chaining (service function chaining) , any one of the SFC) service and the path segment service; or, the second service includes any one of the slicing service, the flow-following detection service, the APN service, the DetNet service, the SFC service and the path segment service.
  • API application-aware network
  • DetNet deterministic network
  • service function chaining service function chaining
  • the network device supports the first service and the second service, and the method further includes: the network device processes the message according to the second service subfield.
  • the network device processes the message according to the flow indication subfield and the second service subfield.
  • the network device supports the first service but does not support the second service.
  • the method further includes: the network device skips the second service subfield. For example, the network device skips the second service subfield according to the second length subfield.
  • a service processing method includes: the network device generates a message including an option field, where the option field includes a first service subfield, a second service subfield, a first length subfield and a second Length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the The second length subfield is used to indicate the length of the second service subfield; the network device sends the message.
  • the first service subfield is used to carry the service information of the first service
  • the second service subfield is used to carry the service information of the second service.
  • the option field also includes a flag subfield, which is used to indicate that the option field includes a first service subfield and a second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate This option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, and the order of the first length subfield and the second length subfield is the same as that of the first length subfield and the second length subfield.
  • the arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, and the order of the first service subfield and the second service subfield is the same as that of the first service subfield.
  • the arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each service flag bit in the m service flag bits Used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service.
  • the second business, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the service length subfield corresponding to the any service flag bit is used for Indicates the length of the service subfield
  • the k service length subfields include a first length subfield and a second length subfield
  • the k service flag bits include a first service flag bit and a second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, and the third service flag bit.
  • the second service subfield and the third service subfield are arranged in sequence.
  • the third service flag bit and the third service subfield both correspond to the third service.
  • the first service, the second service and the third service are different from each other.
  • the m services Including the third service; the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service subfield , the second business subfield and the third business subfield are arranged in order, the third business flag bit and the third business subfield both correspond to the third business, the first business, the second business and the third business are different from each other, the m
  • Each service includes the third service; the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the length of the second service subfield. The length is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs.
  • the network device processes the message according to the first service subfield, including: the network device processes the message according to the first service subfield.
  • the flow indication subfield and the first service subfield process the message.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit, and the flow flag bit is used to indicate that the option field includes the Stream indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, and the second data space is used to indicate the first service.
  • the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs.
  • the network device processes the message according to the first service subfield, including: the network device processes the message according to the first service subfield.
  • the flow indication subfield and the first service subfield process the message.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the packet is an IPv6 packet
  • the packet includes an IPv6 extension header
  • the IPv6 extension header includes the option field.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the flow-following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service, the following-flow detection service, the APN service, Any one of DetNet service, SFC service and path segment service.
  • the network device supports the first service and the second service, and the method further includes: the network device processes the message according to the second service subfield.
  • the network device processes the message according to the flow indication subfield and the second service subfield.
  • the network device supports the first service but does not support the second service.
  • the method further includes: the network device skips the second service subfield. For example, the network device skips the second service subfield according to the second length subfield.
  • the method further includes: the network device receiving instruction information sent by the controller, the instruction information being used to instruct the network device to generate a message including the option field; and the network device generating a message including the option field.
  • the message includes: the network device generates a message including the option field according to the instruction information.
  • a service processing method includes: the controller sends instruction information to a head node, the instruction information is used to instruct the head node to generate a message including an option field, where the option field includes a first service sub- field, the second service subfield, the first length subfield and the second length subfield.
  • the first service subfield corresponds to the first service
  • the second service subfield corresponds to the second service.
  • the first service is different from the second service.
  • a length subfield is used to indicate the length of the first service subfield
  • a second length subfield is used to indicate the length of the second service subfield.
  • the option field also includes a flag subfield, which is used to indicate that the option field includes a first service subfield and a second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield. This option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, and the order of the first length subfield and the second length subfield is the same as that of the first length subfield and the second length subfield.
  • the arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, and the order of the first service subfield and the second service subfield is the same as that of the first service subfield.
  • the arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each service flag bit in the m service flag bits Used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service.
  • the second business, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the service length subfield corresponding to the any service flag bit is used for Indicates the length of the service subfield
  • the k service length subfields include a first length subfield and a second length subfield
  • the k service flag bits include a first service flag bit and a second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, and the third service flag bit.
  • the second service subfield and the third service subfield are arranged in sequence.
  • the third service flag bit and the third service subfield both correspond to the third service.
  • the first service, the second service and the third service are different from each other.
  • the m services Including the third service; the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service subfield , the second business subfield and the third business subfield are arranged in order, the third business flag bit and the third business subfield both correspond to the third business, the first business, the second business and the third business are different from each other, the m
  • Each service includes the third service; the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the length of the second service subfield. The length is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit, and the flow flag bit is used to indicate that the option field includes the Stream indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, and the second data space is used to indicate the first service.
  • the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs.
  • the flow indication subfield, the first service subfield, and the second service subfield are sequentially arrangement.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the flow-following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service, the following-flow detection service, the APN service, Any one of DetNet service, SFC service and path segment service.
  • a service processing method includes: a head node receiving instruction information sent by a controller, the instruction information being used to instruct the head node to generate a message including an option field, the option field including the first service subfield, second service subfield, first length subfield and second length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield; the head node generates a message including the option field according to the indication information.
  • the option field also includes a flag subfield, which is used to indicate that the option field includes a first service subfield and a second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield. This option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, and the order of the first length subfield and the second length subfield is the same as that of the first length subfield and the second length subfield.
  • the arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, and the order of the first service subfield and the second service subfield is the same as that of the first service subfield.
  • the arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each service flag bit in the m service flag bits Used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service.
  • the second business, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the service length subfield corresponding to the any service flag bit is used for Indicates the length of the service subfield
  • the k service length subfields include a first length subfield and a second length subfield
  • the k service flag bits include a first service flag bit and a second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, and the third service flag bit.
  • the second service subfield and the third service subfield are arranged in sequence.
  • the third service flag bit and the third service subfield both correspond to the third service.
  • the first service, the second service and the third service are different from each other.
  • the m services Including the third service; the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service subfield , the second business subfield and the third business subfield are arranged in order, the third business flag bit and the third business subfield both correspond to the third business, the first business, the second business and the third business are different from each other, the m
  • Each service includes the third service; the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the length of the second service subfield. The length is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit, which is used to indicate that the option field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, and the second data space is used to indicate the first service.
  • the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs.
  • the flow indication subfield, the first service subfield, and the second service subfield are sequentially arrangement.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, the IPv6 extension header includes the option field, and the head node generates a message including the option field according to the instruction information. , including: the head node generates an IPv6 message including the IPv6 extension header according to the indication information.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the flow-following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service, the following-flow detection service, the APN service, Any one of DetNet service, SFC service and path segment service.
  • a service processing device which is applied to network equipment.
  • the service processing device includes a transceiver module and a processing module.
  • the transceiver module is used to perform the above-mentioned first aspect or any optional method of the first aspect.
  • the processing module is configured to perform operations other than the sending and receiving operations in the method provided by the above-mentioned first aspect or any optional manner of the first aspect.
  • the transceiver operation may be a receive and/or send operation.
  • the transceiver module is configured to receive a message including an option field.
  • the option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield.
  • the first service subfield The field corresponds to the first service
  • the second service subfield corresponds to the second service
  • the first service is different from the second service
  • the first length subfield is used to indicate the length of the first service subfield.
  • the second length subfield is used to indicate the length of the second service subfield;
  • the processing module is configured to process the message according to the first service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield
  • the k service length subfields include the first length subfield and the second length subfield
  • the k service flag bits include the A service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, and the processing module is configured to determine the data flow according to the flow indication subfield and the The first service subfield processes the message.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first A service;
  • the second service subfield also includes a second type space, and the second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, and the processing module is configured to determine the data flow according to the flow indication subfield and the The first service subfield processes the message.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the message is an IPv6 message
  • the message includes an IPv6 extension header
  • the IPv6 extension header includes the option field.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • the network device supports the first service and the second service
  • the processing module is further configured to process the message according to the second service subfield.
  • the network device supports the first service but does not support the second service
  • the processing module is further configured to skip the second service subfield.
  • a sixth aspect provides a service processing device, which is applied to network equipment.
  • the service processing device includes a transceiver module and a processing module.
  • the transceiver module is used to perform the above-mentioned second aspect or any optional method of the second aspect.
  • the processing module is configured to perform operations other than the sending and receiving operations in the method provided by the above-mentioned second aspect or any optional manner of the second aspect.
  • the transceiver operation may be a receive and/or send operation.
  • the processing module is configured to generate a message including an option field.
  • the option field includes a first service subfield, a second service subfield, a first length subfield and a second length subfield.
  • the first service subfield The field corresponds to the first service
  • the second service subfield corresponds to the second service
  • the first service is different from the second service
  • the first length subfield is used to indicate the length of the first service subfield.
  • the second length subfield is used to indicate the length of the second service subfield;
  • the transceiver module is used to send the message.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, and the first length subfield and The second length subfields are arranged in order, and the arrangement order of the first length subfield and the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield
  • the k service length subfields include the first length subfield and the second length subfield
  • the k service flag bits include the A service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service subfield, the The second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the second service and The third services are different from each other, and the m services include the third services;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service subfield, the The second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the second service and The third services are different from each other, and the m services include the third services;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, and the processing module is configured to determine the data flow according to the flow indication subfield and the The first service subfield processes the message.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the first service subfield.
  • the second business subfield In the second business subfield.
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, and the processing module is configured to determine the data flow according to the flow indication subfield and the The first service subfield processes the message.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the message is an IPv6 message
  • the message includes an IPv6 extension header
  • the IPv6 extension header includes the option field.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • the network device supports the first service and the second service
  • the processing module is further configured to process the message according to the second service subfield.
  • the network device supports the first service but does not support the second service
  • the processing module is further configured to skip the second service subfield.
  • the transceiver module is also configured to receive instruction information sent by the controller, where the instruction information is used to instruct the network device to generate a message including the option field;
  • the processing module is configured to generate the message including the option field according to the indication information.
  • a business processing device is provided, applied to a controller.
  • the business processing device includes a transceiver module and a processing module.
  • the transceiver module is used to perform the above-mentioned third aspect or any optional method of the third aspect.
  • the processing module is configured to perform operations other than the transceiver operation in the method provided by the above-mentioned third aspect or any optional manner of the third aspect.
  • the transceiver operation may be a receive and/or send operation.
  • the transceiver module is configured to send indication information to the head node.
  • the indication information is used to instruct the head node to generate a message including an option field.
  • the option field includes a first service subfield, a second service subfield, A first length subfield and a second length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, so The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the business flag bit is used to indicate the option The second service subfield is included in the field.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield
  • the k service length subfields include the first length subfield and the second length subfield
  • the k service flag bits include the A service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the option field also includes a flow indication subfield, and the flow indication subfield is used to indicate the data flow to which the message belongs.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit.
  • the flow flag bits used to indicate that the options field includes The flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, the flow indication subfield, the first service subfield and the The second business subfields are arranged in sequence.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • a service processing device is provided, applied to a head node.
  • the service processing device includes a transceiver module and a processing module.
  • the transceiver module is used to perform the above-mentioned fourth aspect or any optional method of the fourth aspect.
  • the processing module is configured to perform operations other than the sending and receiving operations in the method provided by the above-mentioned fourth aspect or any optional manner of the fourth aspect.
  • the transceiver operation may be a receive and/or send operation.
  • the transceiver module is configured to receive instruction information sent by the controller.
  • the instruction information is used to instruct the head node to generate a message including an option field.
  • the option field includes a first service subfield and a second service subfield. , a first length subfield and a second length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service,
  • the first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield;
  • the processing module is configured to generate a message including the option field according to the indication information.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield
  • the k service length subfields include the first length subfield and the second length subfield
  • the k service flag bits include the A service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the option field also includes a flow indication subfield, and the flow indication subfield is used to indicate the data flow to which the message belongs.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, the flow indication subfield, the first service subfield and the The second business subfields are arranged in sequence.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field, and the processing module is configured to generate an IPv6 message including: The IPv6 extension header of the IPv6 message.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • a ninth aspect provides a business processing device, including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device performs the above-mentioned first aspect Or the business processing method provided by any optional method in the first aspect.
  • a business processing device including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device performs the above-mentioned second aspect Or the business processing method provided by any optional method in the second aspect.
  • a business processing device including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device executes the above-mentioned The business processing methods provided by the three aspects.
  • a business processing device including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device executes the above-mentioned The business processing methods provided by the four aspects.
  • a business processing system including a first network device and a second network device;
  • the first network device is configured to generate a message including an option field and send the message to the second network device.
  • the option field includes a first service subfield, a second service subfield, a first length subfield and a second Length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the The second length subfield is used to indicate the length of the second service subfield;
  • the second network device is used to receive the message and process the message according to the first service subfield.
  • the service processing system also includes a third network device, and the second network device is also used to send a message to the third network device. Send the message; the third network device is used to receive the message and process the message according to the second service subfield.
  • the service processing system further includes a controller configured to send instruction information to the first network device, where the instruction information is used to instruct the first network device to generate a message including the option field; correspondingly, the first network device The device is used to generate a message including the option field based on the indication information.
  • the first network device is the head node on the forwarding path of the message
  • the second network device is the intermediate node on the forwarding path
  • the third network device is the intermediate node or tail node on the forwarding path.
  • the service processing device provided by the fifth aspect or any optional implementation of the fifth aspect may serve as an intermediate node or tail node on the forwarding path of the message.
  • the sixth aspect or the sixth aspect may The service processing device provided by any optional implementation of the seventh aspect can be used as the head node on the forwarding path of the message, and the service processing device provided by any optional implementation of the seventh aspect or the seventh aspect can be used as the controller. .
  • the service processing device provided by the above-mentioned seventh aspect or any optional implementation of the seventh aspect can be used as a controller, and the service processing device provided by the above-mentioned eighth aspect or any optional implementation of the eighth aspect.
  • Devices can serve as head nodes.
  • the service processing device provided in the ninth aspect can be used as an intermediate node or tail node on the forwarding path of the message
  • the service processing device provided in the tenth aspect can be used as the head node on the forwarding path of the message.
  • the business processing device provided in the eleventh aspect above can serve as a controller.
  • the service processing device provided in the eleventh aspect may serve as a controller, and the service processing device provided in the twelfth aspect may serve as a head node on the forwarding path of the message.
  • a computer-readable storage medium is provided.
  • a computer program is stored in the computer-readable storage medium.
  • the above-mentioned first aspect or any optional method of the first aspect is implemented.
  • the provided business processing method either implements the business processing method provided by the above-mentioned second aspect or any optional method of the second aspect, or implements the business processing method provided by the above-mentioned third aspect or any optional method of the third aspect.
  • a fifteenth aspect provides a computer program product.
  • the computer program product includes a program or code.
  • the business provided by the above-mentioned first aspect or any optional method of the first aspect is implemented.
  • a sixteenth aspect provides a chip.
  • the chip includes programmable logic circuits and/or program instructions. When the chip is run, it implements the business processing provided by the above-mentioned first aspect or any optional method of the first aspect.
  • method, or implement the business processing method as provided in the above second aspect or any optional manner of the second aspect or implement the provided services as provided in the above third aspect or any optional manner of the third aspect.
  • processing method, or implement the provided business processing method as provided in the above fourth aspect or any optional manner of the fourth aspect are examples of the fourth aspect.
  • a data structure in a seventeenth aspect, includes an option field, the option field includes a first service subfield, a second service subfield, a first length subfield and a second length subfield, so The first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the first length subfield is used to indicate the first The length of the service subfield, and the second length subfield is used to indicate the length of the second service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield
  • the k service length subfields include the first length subfield and the second length subfield
  • the k service flag bits include the A service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the option field also includes a flow indication subfield, and the flow indication subfield is used to indicate the data flow to which the message belongs.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, the flow indication subfield, the first service subfield and the The second business subfields are arranged in sequence.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • a business processing method includes:
  • the network device receives a message including an option field.
  • the option field includes a first service subfield, a second service subfield and a flow indication subfield.
  • the first service subfield corresponds to the first service
  • the second service subfield The field corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs;
  • the network device processes the message according to the flow indication subfield and the first service subfield.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, and the first length subfield and The second length subfields are arranged in order, and the arrangement order of the first length subfield and the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield
  • the k service length subfields include the first length subfield and the second length subfield
  • the k service flag bits include the A service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first A service;
  • the second service subfield also includes a second type space, and the second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the message is an IPv6 message
  • the message includes an IPv6 extension header
  • the IPv6 extension header includes the option field.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • the network device supports the first service and the second service, and the method further includes: the network device processes the packet according to the flow indication subfield and the second service subfield. arts.
  • the network device supports the first service but does not support the second service, and the method further includes: the network device skips the second service subfield.
  • a business processing method includes:
  • the network device generates a message including an option field.
  • the option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield.
  • the first service subfield corresponds to the first service.
  • the second service subfield corresponds to a second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the second The length subfield is used to indicate the length of the second service subfield;
  • the network device sends the message.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, and the first service subfield and The second service subfields are arranged in sequence, and the arrangement order of the first service subfield and the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield
  • the k service length subfields include the first length subfield and the second length subfield
  • the k service flag bits include the A service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the first Service information of a service;
  • the second service subfield also includes a second data space, and the second data space is used to indicate the service information of the second service.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the message is an IPv6 message
  • the message includes an IPv6 extension header
  • the IPv6 extension header includes the option field.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • the network device supports the first service and the second service, and the method further includes: the network device processes the packet according to the flow indication subfield and the second service subfield. arts.
  • the network device supports the first service but does not support the second service, and the method further includes: the network device skips the second service subfield.
  • the network device receives instruction information sent by the controller, and the instruction information is used to instruct the network device to generate a message including the option field; accordingly, the network device generates a message including the option field.
  • the message includes: the network device generates the message including the option field according to the indication information.
  • a business processing method includes:
  • the controller sends instruction information to the head node, where the instruction information is used to instruct the head node to generate a message including an option field, where the option field includes a first service subfield, a second service subfield and a flow indication subfield, The first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to indicate the message The data stream it belongs to.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second business subfield is consistent with the The first service flag bit and the second service flag bit are arranged in a corresponding order.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield
  • the k service length subfields include the first length subfield and the second length subfield
  • the k service flag bits include the A service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate The service information of the second service.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • a business processing method includes:
  • the head node receives the instruction information sent by the controller.
  • the instruction information is used to instruct the head node to generate a message including an option field.
  • the option field includes a first service subfield, a second service subfield and a flow indication subfield. , the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to indicate the report The data stream to which the document belongs;
  • the head node generates a message including the option field according to the indication information.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields are consistent with the m
  • the k service flag bits in the service flag bits correspond one to one, 1 ⁇ k ⁇ m, and k is an integer. Any one of the k service flag bits indicates that the option field includes any of the
  • the service flag bit corresponds to the service subfield of the service
  • the service length subfield corresponding to any of the service flag bits is used to indicate the length of the service subfield
  • the k service length subfields include the first length subfield.
  • the k service flag bits include the first service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field, and the head node generates an IPv6 message including the option field according to the instruction information.
  • the message of the field includes: the head node generates an IPv6 message including the IPv6 extension header according to the indication information.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • a twenty-second aspect provides a service processing device applied to network equipment.
  • the service processing device includes a transceiver module and a processing module.
  • the transceiver module is used to perform any one of the eighteenth aspect or the eighteenth aspect.
  • the processing module is configured to perform operations other than the transceiver operation in the method provided by the eighteenth aspect or any optional method of the eighteenth aspect.
  • the transceiver operation may be a receive and/or send operation.
  • the transceiver module is configured to receive a message including an option field.
  • the option field includes a first service subfield, a second service subfield and a flow indication subfield.
  • the first service subfield corresponds to the first service, so
  • the second service subfield corresponds to a second service, the first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs;
  • the processing module is configured to process the message according to the flow indication subfield and the first service subfield.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, and the k services
  • the length subfield includes the first length subfield and the second length subfield, and the k service flag bits include the first service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the message is an IPv6 message
  • the message includes an IPv6 extension header
  • the IPv6 extension header includes the option field.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • the network device supports the first service and the second service
  • the processing module is further configured to process the message according to the flow indication subfield and the second service subfield.
  • the network device supports the first service but does not support the second service
  • the processing module is further configured to skip the second service subfield.
  • a service processing device which is applied to network equipment.
  • the service processing device includes a transceiver module and a processing module.
  • the transceiver module is used to perform any one of the above-mentioned nineteenth or nineteenth aspects.
  • the processing module is configured to perform operations other than the transceiver operation in the method provided by the above-mentioned nineteenth aspect or any optional manner of the nineteenth aspect.
  • the transceiver operation may be a receive and/or send operation.
  • the processing module is configured to generate a message including an option field.
  • the option field includes a first service subfield, a second service subfield and a flow indication subfield.
  • the first service subfield corresponds to the first service, so
  • the second service subfield corresponds to a second service, the first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs;
  • the transceiver module is used to send the message.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, and the k services
  • the length subfield includes the first length subfield and the second length subfield, and the k service flag bits include the first service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the message is an IPv6 message
  • the message includes an IPv6 extension header
  • the IPv6 extension header includes the option field.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • the network device supports the first service and the second service
  • the processing module is further configured to process the message according to the flow indication subfield and the second service subfield.
  • the network device supports the first service but does not support the second service
  • the processing module is further configured to skip the second service subfield.
  • the transceiver module is also configured to receive instruction information sent by the controller, where the instruction information is used to instruct the network device to generate a message including the option field; correspondingly, the processing module uses Generate the message including the option field according to the instruction information.
  • a business processing device is provided, applied to a controller.
  • the business processing device includes a transceiver module and a processing module.
  • the transceiver module is used to perform any one of the twentieth aspect or the twentieth aspect.
  • the processing module is configured to perform operations other than the transceiver operation in the method provided by the above-mentioned twentieth aspect or any optional manner of the twentieth aspect.
  • the transceiver operation may be a receive and/or send operation.
  • the transceiver module is configured to send indication information to the head node.
  • the indication information is used to instruct the head node to generate a message including an option field.
  • the option field includes a first service subfield, a second service subfield and Flow indication subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to Indicates the data flow to which the packet belongs.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer, in the k service flag bits
  • the service length subfield corresponding to any of the service flag bits is used to indicate the length of the service subfield.
  • the k service length subfields include the first length subfield and the second length subfield
  • the k service flag bits include the first service flag bit and the second service flag bit .
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes slicing service, flow detection service, APN service, DetNet service, SFC service Any one of the service and the path segment service; or the second service includes any one of the slicing service, the flow detection service, the APN service, the DetNet service, the SFC service and the path segment service.
  • a business processing device which is applied to the head node.
  • the business processing device includes a transceiver module and a processing module.
  • the transceiver module is used to perform the above-mentioned twenty-first aspect or the twenty-first aspect.
  • the processing module is used to perform the transceiver operation in the method provided by any optional method, the processing module is used to perform the transceiver operation in the method provided by any optional method of the twenty-first aspect or the twenty-first aspect, except for the transceiver operation. operation.
  • Transceiver operations may be receive and/or send operations.
  • the transceiver module is configured to receive instruction information sent by the controller.
  • the instruction information is used to instruct the head node to generate a message including an option field.
  • the option field includes a first service subfield and a second service subfield. and flow indication subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is To indicate the data flow to which the message belongs;
  • the processing module is configured to generate a message including the option field according to the indication information.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield
  • the k service length subfields include the first length subfield and the second length subfield
  • the k service flag bits include the A service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field, and the processing module is configured to generate an IPv6 message including: The IPv6 extension header of the IPv6 message.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • a business processing device including a memory and a processor; the memory is used to store calculations. a computer program; the processor is configured to execute the computer program stored in the memory so that the business processing device executes the business processing method provided in the eighteenth aspect or any optional manner of the eighteenth aspect.
  • a business processing device including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device executes the above-mentioned first step.
  • the business processing method provided by the 19th aspect or any optional method of the 19th aspect.
  • a business processing device including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device performs the above
  • the business processing methods provided in the twentieth aspect including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device performs the above
  • the business processing methods provided in the twentieth aspect including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device performs the above
  • the business processing methods provided in the twentieth aspect including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device performs the above
  • the business processing methods provided in the twentieth aspect including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer
  • a business processing device including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device executes the above The business processing method provided in the twenty-first aspect.
  • a business processing system including a first network device and a second network device;
  • the first network device is configured to generate a message including an option field and send the message to the second network device.
  • the option field includes a first service subfield, a second service subfield and a flow indication subfield.
  • the first service corresponds to the first service
  • the second service subfield corresponds to the second service.
  • the first service is different from the second service.
  • the flow indication subfield is used to indicate the data flow to which the message belongs;
  • the second network device is configured to receive the message and process the message according to the flow indication subfield and the first service subfield.
  • the service processing system also includes a third network device.
  • the second network device is also used to send the message to the third network device;
  • the third network device is used to receive the message and use the flow indication subfield to and the second business subfield to process the message.
  • the service processing system further includes a controller configured to send instruction information to the first network device, where the instruction information is used to instruct the first network device to generate a message including the option field; correspondingly, the first network device The device is used to generate a message including the option field based on the indication information.
  • the first network device is the head node on the forwarding path of the message
  • the second network device is the intermediate node on the forwarding path
  • the third network device is the intermediate node or tail node on the forwarding path.
  • the service processing device provided by the above-mentioned aspect 22 or any optional implementation of the twenty-second aspect can be used as an intermediate node or tail node on the forwarding path of the message.
  • the above-mentioned twenty-third aspect Or the service processing device provided by any optional implementation of the twenty-third aspect can be used as the head node on the forwarding path of the message.
  • the provided service processing device can serve as a controller.
  • the service processing device provided by the above-mentioned twenty-fourth aspect or any optional implementation of the twenty-fourth aspect can be used as a controller, and the above-mentioned twenty-fifth aspect or any one of the twenty-fifth aspect can be used as a controller.
  • the service processing device provided by the selected implementation mode can serve as the head node.
  • the service processing device provided in the twenty-sixth aspect can be used as an intermediate node or tail node on the forwarding path of the message, and the service processing device provided in the twenty-seventh aspect can be used as the forwarding path of the message.
  • the service processing device provided in the twenty-eighth aspect above can serve as a controller.
  • the service processing device provided in the twenty-eighth aspect may serve as a controller, and the service processing device provided in the twenty-ninth aspect may serve as a head node on the forwarding path of the message.
  • a computer-readable storage medium stores computer A computer program that, when executed, implements the business processing method provided by the eighteenth aspect or any optional method of the eighteenth aspect, or implements any of the nineteenth aspect or the nineteenth aspect.
  • a thirty-second aspect provides a computer program product.
  • the computer program product includes a program or code. When the program or code is executed, it implements the above-mentioned eighteenth aspect or any optional method of the eighteenth aspect.
  • Provided business processing method, or implement the business processing method provided by the above-mentioned nineteenth aspect or any optional method of the nineteenth aspect, or implement the above-mentioned twentieth aspect or any optional method of the twentieth aspect The provided business processing method provided by the method, or the provided business processing method provided by the above-mentioned twenty-first aspect or any optional method of the twenty-first aspect.
  • a chip in a thirty-third aspect, includes a programmable logic circuit and/or program instructions. When the chip is run, the chip implements the above-mentioned eighteenth aspect or any of the optional methods provided in the eighteenth aspect.
  • the business processing method, or the business processing method provided by the nineteenth aspect or any optional method of the nineteenth aspect, or the business processing method provided by the twentieth aspect or any optional method of the twentieth aspect The provided business processing method is provided, or the provided business processing method is implemented as provided in the twenty-first aspect or any optional manner of the twenty-first aspect.
  • a data structure in a thirty-fourth aspect, includes an option field.
  • the option field includes a first service subfield, a second service subfield, and a flow indication subfield.
  • the first service subfield Corresponding to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield.
  • the service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits
  • the service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit, and the m service flag bits include the A service flag bit and the second service flag bit, the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1 ⁇ k ⁇ m, and k is an integer.
  • the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield
  • the k service length subfields include the first length subfield and the second length subfield
  • the k service flag bits include the A service flag bit and the second service flag bit.
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
  • the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • a service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
  • the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield
  • the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service;
  • the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
  • Figure 1 is a schematic structural diagram of an option field
  • Figure 2 is a schematic structural diagram of another option field
  • Figure 3 is a schematic structural diagram of the option data subfield in the option field shown in Figure 2;
  • Figure 4 is another structural schematic diagram of the option data subfield in the option field shown in Figure 2;
  • Figure 5 is another structural schematic diagram of the option data subfield in the option field shown in Figure 2;
  • Figure 6 is another structural schematic diagram of the option data subfield in the option field shown in Figure 2;
  • Figure 7 is a schematic structural diagram of yet another option field
  • Figure 8 is a schematic structural diagram of another option field
  • Figure 9 is a schematic structural diagram of another option field.
  • Figure 10 is a schematic structural diagram of another option field
  • Figure 11 is a schematic structural diagram of another option field
  • Figure 12 is a schematic structural diagram of the context header subfield in the option field shown in Figure 11;
  • Figure 13 is a schematic diagram of an application scenario provided by the embodiment of the present application.
  • Figure 14 is a schematic diagram of another application scenario provided by the embodiment of the present application.
  • Figure 15 is a flow chart of a business processing method provided by an embodiment of the present application.
  • Figure 16 is a schematic structural diagram of an option field provided by an embodiment of the present application.
  • Figure 17 is a schematic structural diagram of another option field provided by an embodiment of the present application.
  • Figure 18 is a schematic structural diagram of yet another option field provided by an embodiment of the present application.
  • Figure 19 is a flow chart of another business processing method provided by an embodiment of the present application.
  • Figure 20 is a flow chart of yet another business processing method provided by an embodiment of the present application.
  • Figure 21 is a flow chart of yet another business processing method provided by an embodiment of the present application.
  • Figure 22 is a flow chart of yet another business processing method provided by an embodiment of the present application.
  • Figure 23 is a schematic diagram of a business processing method provided by an embodiment of the present application.
  • Figure 24 is a schematic diagram of a service processing device provided by an embodiment of the present application.
  • Figure 25 is a schematic diagram of another service processing device provided by an embodiment of the present application.
  • Figure 26 is a schematic diagram of a business processing system provided by an embodiment of the present application.
  • IPv6 messages multiple services can be carried out for IPv6 messages.
  • these services include flow detection services, slicing services, DetNet services, APN services, and SFC services.
  • flow detection services include flow detection services, slicing services, DetNet services, APN services, and SFC services.
  • option fields are usually extended for each of the above services in the IPv6 extension header of the IPv6 message to carry the service information of the corresponding service, so that IPv6 packets can support each of the above services.
  • the option fields for different business extensions are independent of each other.
  • the flow-following detection service refers to the flow-following detection-related services.
  • Slicing services refer to network slicing related services.
  • DetNet services refer to deterministic network-related services.
  • APN services refer to application-aware network-related services.
  • SFC business refers to the business related to service function links.
  • the in-situ flow detection service can include in-situ flow information telemetry (IFIT) service or in-band operations management and maintenance (in-suitoam operations administration and maintenance, IOAM) service, etc.
  • IFIT in-situ flow information telemetry
  • IOAM in-band operations management and maintenance
  • the names of the flow detection service, slicing service, DetNet service, APN service and SFC service may be different.
  • slicing services are also called virtual transport network (VTN) services.
  • VTN virtual transport network
  • the business information of the IFIT service includes flow identification (flow ID), packet loss measurement (packet loss measurement) identification, delay measurement (packet delay measurement) identification, detection type indication information, detection cycle, etc.
  • Flow identification can also be called flow label, flow monitoring identification (flow monitoring identification, FMonID), etc., indicating the service flow to be measured.
  • the detection type indication information is used to indicate the detection type, which can be an end-to-end (E2E) detection type or a hop-by-hop detection type.
  • the current option fields for IFIT business expansion are shown in Figure 1. This option field includes flow instruction indicator (FII), flow instruction header (flow instruction header, FIH) and flow instruction extension header (flow instruction extension header, FIEH). FIEH is an optional part of the IFIT header.
  • FII includes a type (type) subfield, a length (length) subfield and a reserved (reserved) subfield.
  • the type subfield is used to indicate this IFIT header.
  • the length subfield is used to indicate the total length of FIH and FIEH.
  • FIH includes flow identification subfield, L subfield, D subfield, reserved (reserved, R) subfield and header type indicator (header type indicator, HTI) subfield.
  • the flow identification subfield is used to carry the flow identification.
  • the L subfield is used to carry the packet loss measurement identifier.
  • the D subfield is used to carry the delay measurement identifier.
  • the HTI subfield is used to indicate the type of FIH. The value of the HTI subfield is 0, 1, 2, 3 or 4.
  • FIEH includes flow identification extension (flowID Ext) subfield, V subfield, P subfield, destination internet protocol (destination internet protocol, DIP) mask (mask) subfield, source internet protocol (source internet protocol, SIP) mask subfield fields and reserved subfields.
  • the flow identification extension subfield is used to carry the extended flow identification.
  • the V subfield is used to carry the reverse flow learning enable flag.
  • the P subfield indicates the detection period.
  • the value of the P subfield is 0, 1, 2, 3, 4 or 5. 0 and 1 are both reserved values. 2 indicates that the detection period is 10 seconds, 3 indicates that the detection period is 30 seconds, and 4 It means the detection period is 60 seconds, 5 means the detection period is 300 seconds.
  • the DIP mask subfield is used to carry the DIP mask length for automatic reverse flow learning.
  • the SIP mask subfield is used to carry the SIP mask length for automatic reverse flow learning.
  • the service information of the IOAM service includes a flow identifier, indicating the flow to be measured.
  • the current option fields for IOAM business expansion are shown in Figure 2.
  • the option field includes a type subfield, a length subfield, a reserved subfield, an IOAM type subfield and an option data subfield.
  • the type subfield is used to indicate the type of this option field.
  • the length subfield is used to indicate the length of the option data subfield.
  • the IOAM type subfield is used to indicate the type of the option data subfield.
  • the length of the option data subfield is variable, and the option data subfield is used to carry IOAM data.
  • IOAM data may include flow identifiers, message identifiers, IOAM data of IOAM nodes (referring to nodes that support IOAM) on the forwarding path of the message, etc.
  • the IOAM data of any IOAM node can include the node identifier of the IOAM node, the ingress port of the message entering the IOAM node, the egress port of the message output from the IOAM node, the entry timestamp of the message entering the IOAM node, and the message From the IOAM The egress timestamp output by the node, the transmission delay of the message at the IOAM node, etc.
  • the type of option data subfield can include IOAM pre-allocated trace option-type (IOAM pre-allocated trace option-type), IOAM incremental trace option type (IOAM incremental trace option-type), IOAM transmission verification option type (IOAM proof of transit option-type, IOAM POT option-type), IOAM end-to-end option type (IOAM edge-to-edge option-type, IOAM E2E option-type) and IOAM direct export option-type (IOAM direct export option-Type, IOAM DEX option-type).
  • Different types of option data subfields have different formats.
  • the format of the option data subfield is as shown in Figure 3.
  • the format of the option data subfield is as shown in Figure 4.
  • the format of the option data subfield is as shown in Figure 5.
  • the format of the option data subfield is as shown in Figure 6.
  • the option data subfield when the type of the option data subfield is the IOAM pre-allocation tracking option type or the IOAM incremental tracking option type, the option data subfield includes the namespace (namespace) ID subfield, the node length (nodelen) subfield, Flags subfield, remaining length subfield, IOAM tracking type subfield, reserved subfield and p node data list subfields.
  • the namespace ID subfield is used to carry the namespace ID.
  • the node length subfield is used to instruct the IOAM node to add data in the option data subfield in multiples of 4 bytes.
  • the remaining length subfield is used to instruct the IOAM node to add data in the option data subfield in multiples of the remaining 4 bytes.
  • the IOAM trace type subfield is used to indicate the data type in the node data table.
  • the p node data table subfields correspond to p IOAM nodes.
  • Each node data table subfield is used to carry the IOAM data of the corresponding IOAM node.
  • the IOAM data includes the node identification, the entry timestamp of the message entering the IOAM node, and the source of the message. The exit timestamp output by the IOAM node, etc.
  • the option data subfield when the type of the option data subfield is the IOAM POT option type, the option data subfield includes the namespace ID subfield, the IOAM POT type subfield, the IOAM POT flag subfield and the POT option data subfield.
  • the namespace ID subfield is used to carry the namespace ID.
  • the IOAM POT type subfield is used to carry the IOAM POT type.
  • the IOAM POT flag subfield is used to carry the IOAM POT flag.
  • the length of the POT option data subfield is variable.
  • the POT option data subfield is used to carry IOAM POT data.
  • IOAM POT data includes message identification, etc.
  • the option data subfield when the type of the option data subfield is the IOAM E2E option type, the option data subfield includes the namespace ID subfield, the IOAM E2E type subfield and the E2E option data subfield.
  • the namespace ID subfield is used to carry the namespace ID.
  • the IOAM E2E type subfield is used to carry the IOAM E2E type.
  • the E2E option data subfield is used to carry IOAM E2E data.
  • IOAM E2E data includes packet group sequence number (sequence number) for detecting packet loss, packet reordering or packet duplication within the group.
  • IOAM E2E data can also include packets entering IOAM.
  • the entry timestamp of the node, the exit timestamp of the message output from the IOAM node, etc. are used to detect the message transmission delay.
  • the option data subfield when the type of option data subfield is IOAM DEX option type, the option data subfield includes namespace ID subfield, flag subfield, IOAM tracking type subfield, reserved subfield, flow identification subfield and Serial number subfield.
  • the namespace ID subfield is used to carry the IOAM namespace.
  • the flag subfield is used to carry the IOAM DEX flag.
  • the IOAM type subfield is used to indicate which data fields should be output.
  • the flow identification field is used to carry the flow identification.
  • the sequence number subfield is used to carry the packet group sequence number for detecting packet loss, packet reordering, packet duplication within the group, etc.
  • the service information of the slice service includes slice identification (slice ID).
  • slice ID slice ID
  • the current option fields for slicing business expansion are shown in Figure 7.
  • This option field includes type subfield, length subfield, and flags Subfield, reserved subfield and slice identification subfield.
  • the type subfield is used to indicate the type of this option field.
  • the length subfield is used to indicate the length of the data field of the option field (that is, the total length of the subfields in the option field except the type subfield and the length subfield).
  • the slice identification subfield is used to carry the slice ID.
  • the service information of the DetNet service includes a path identification (path ID), which indicates the forwarding path that the packet must pass through.
  • path ID path identification
  • the option field shown in Figure 8 is the DetNet strict path option field.
  • the option field includes a type subfield, a length subfield and a path identification subfield; the type subfield is used to indicate the type of the option field; the length subfield Used to indicate the length of the option field; the path identification subfield is used to carry the path identification, which indicates a strict path.
  • the option field shown in Figure 9 is the DetNet loose path option field.
  • the option field includes a type subfield, a length subfield, a source autonomous system (autonomous system, AS) subfield and a path identification subfield; the type subfield Used to indicate the type of the option field; the length subfield is used to indicate the length of the option field; the source AS subfield is used to indicate the AS from which the path originates; the path identification subfield is used to carry the path identifier, which indicates a loose path. .
  • AS autonomous system
  • the service information of the APN service includes APN attributes.
  • APN attributes include APN ID and APN parameters.
  • APN ID includes user group identification (user group identification, user group ID) and application group identification (application group identification, APP group ID).
  • the APN parameters include network performance parameters, which may include at least one of a bandwidth requirement parameter, a delay requirement parameter, a jitter requirement parameter, and a packet loss rate requirement parameter. Taking the APN parameters including bandwidth requirement parameters, delay requirement parameters, jitter requirement parameters and packet loss rate requirement parameters as an example, the current option fields for APN service expansion are shown in Figure 10.
  • This option field includes type subfield, length subfield, APN ID type subfield, flag subfield, APN parameter type subfield, APN ID subfield, intent subfield, bandwidth requirement parameter subfield, and delay requirement parameter. subfield, jitter requirement parameter subfield and packet loss rate requirement parameter subfield.
  • the length of the APN ID subfield is 32 bits or 128 bits, the length of the intent subfield, the length of the bandwidth requirement parameter subfield, the length of the delay requirement parameter subfield, the length of the jitter requirement parameter subfield and the packet loss rate requirement parameter subfield.
  • the length of the fields is 32 bits.
  • the type subfield is used to indicate the type of the option field.
  • the length subfield is used to indicate the length of this option field.
  • the APN ID type subfield is used to indicate the type of APN ID.
  • the types of APN ID include short APN ID and long APN ID.
  • the length of the APN ID subfield carrying the short APN ID is 32 bits.
  • the length of the APN ID subfield carrying the long APN ID is 32 bits.
  • the length is 128 bits.
  • the APN parameter type subfield is used to indicate which APN parameters are carried in the option field; for example, among the bits arranged from high to low in the APN parameter type subfield, the first bit corresponds to the bandwidth requirement, and the second bit bit corresponds to the delay requirement, the 3rd bit corresponds to the jitter requirement, and the 4th bit corresponds to the packet loss rate requirement; when the first bit is set to 1, it indicates that the option field carries the bandwidth requirement parameter; when When the 2nd bit is set to 1, it indicates that the option field carries the delay requirement parameter; when the 3rd bit is set to 1, it indicates that the option field carries the jitter requirement parameter; when the 4th bit is set to 1, it indicates that the option field carries the jitter requirement parameter.
  • the APN ID subfield is used to carry the APN ID; the APN ID subfield can include an application group identification space and a user group identification space, and can also include a reserved space.
  • the application group identification space is used to carry the application group identification.
  • the user group The identity space is used to carry the user group identity.
  • the length of the application group identity space and the length of the user group identity space are both variable.
  • the intent subfield is an optional subfield that indicates a set of service requirements for the network.
  • the bandwidth requirement parameter subfield is used to carry the bandwidth requirement parameter.
  • the delay requirement parameter subfield is used to carry the delay requirement parameter.
  • the jitter requirement parameter subfield is used to carry jitter requirement parameters.
  • the packet loss rate requirement parameter subfield is used to carry the packet loss rate requirement parameter.
  • the business information of the SFC service includes a service path identifier (SPI) and a service request.
  • Service index (SI) identifier SPI is used to indicate the service function path (SFP).
  • the SI identifier is used to indicate the location of the packet in the SFP.
  • the current option fields for SFC business expansion are shown in Figure 11.
  • the option field includes type subfield, length subfield, version (version) subfield, O flag, undefined (unassigned, U) flag, time to live (TTL) subfield, length subfield, element Data (metadata, MD) type subfield, next protocol (next protocol) subfield, SPI subfield, SI subfield and context header (context header) subfield.
  • the type subfield is used to indicate the type of this option field.
  • the length subfield is used to indicate the length of this option field.
  • the version subfield is used to ensure backward compatibility of this option field with future network service header (NSH) specification updates.
  • the O flag bit is used to indicate whether the message including this option field is an operations administration and maintenance (OAM) message.
  • the U flag is for future use.
  • the TTL subfield is used to indicate the maximum service function forwarder (SFF) hop count of SFP.
  • the length subfield is used to indicate the length of this option field.
  • the MD type subfield is used to indicate the type of metadata carried by this option field.
  • the next protocol subfield is used to indicate the protocol type of the data encapsulated in this option field.
  • the context header subfield is used to carry metadata along the SFP indicated by the SPI subfield.
  • the length of the context header subfield can be fixed or variable.
  • the context header subfield includes a metadata class (metadata class) subfield, a type subfield, and undefined (unassigned, U) Flag bit, length subfield and variable-length metadata subfield;
  • the metadata class subfield is used to define the range of the type subfield to provide a hierarchical namespace;
  • the variable-length metadata subfield is used to carry the length Variable metadata;
  • the type subfield is used to indicate the explicit type of metadata to be carried by the variable-length metadata subfield;
  • the length subfield is used to indicate the length of the variable-length metadata subfield, and the U flag is for future use .
  • IPv6 extension header of the IPv6 packet needs to support slicing services, IFIT services, DetNet services, and APN services.
  • the service and SFC services respectively expand the option fields (for example, five option fields need to be expanded, and the five option fields correspond to the five services: slice service, IFIT service, DetNet service, APN service and SFC service), and in the slice
  • the option field corresponding to the service carries the business information of the slice service
  • the option field corresponding to the IFIT service carries the business information of the IFIT service
  • the option field corresponding to the DetNet service carries the business information of the DetNet service
  • the option field corresponding to the APN service carries
  • the option field of carries the service information of the APN service
  • the option field corresponding to the SFC service carries the service information of the SFC service.
  • the option field shown in Figure 7 is extended for the slice service
  • the option field shown in Figure 1 is extended for the IFIT service
  • the option field shown in Figure 8 or 9 is extended for the DetNet service
  • the option field shown in Figure 9 is extended for the APN service.
  • the option fields shown in Figure 10 are expanded to the option fields shown in Figure 11 for the SFC business.
  • the option field should include type subfield, length subfield and other fixed content used to describe the option field (for example, the option fields shown in Figures 1 to 2 and 7 to 11 all include type subfield and length subfield).
  • each expanded option field includes these fixed contents, resulting in a larger length of the IPv6 extension header, a larger overhead of the IPv6 extension header, and a larger overhead of the IPv6 message.
  • the option field usually also includes some optional subfields for alignment or future expansion (for example, the option fields shown in Figure 1, Figure 2, and Figure 7 all include reserved subfields, and the option field shown in Figure 11 (These reserved subfields and U flag bits are used for alignment or future expansion).
  • IPv6 extension header will also cause the length of the IPv6 extension header to be larger, resulting in larger overhead of IPv6 messages.
  • the network device needs to process the IPv6 message when forwarding the IPv6 message.
  • the increased length of the IPv6 extension header easily increases the complexity of the network device in processing the IPv6 message, resulting in poor forwarding performance of the network device. decline.
  • the embodiments of this application provide a technical solution.
  • the same option field can carry business information of at least two different services. Compared with the solution of separately expanding the option field for each service expansion, some fixed content in the option field can be saved. (such as type subfield, length subfield), which helps to reduce message overhead. Moreover, you can also save the overhead caused by some optional subfields in the option field.
  • the technical solutions of the embodiments of the present application can reduce the length of messages, simplify the complexity of message processing by network devices, and improve the forwarding performance of network devices.
  • the same option field can carry business information of the following services, slicing services, DetNet services, APN services, SFC services, etc.
  • the technical solution provided by the embodiment of the present application can reduce at least 7 types.
  • the overhead of subfields and 7-length subfields can also reduce the overhead of reserved subfields in the option fields shown in Figures 1, 2, and 7, and the U flag bits in the option fields shown in Figure 11.
  • the option fields shown in Figures 1 to 2 and Figures 7 to 11 are only exemplary and are for extended option fields such as flow detection services, slicing services, DetNet services, APN services, and SFC services.
  • the structure can also be other structures.
  • the technical solution of this application is adapted to the transformation of the option fields shown in Figures 1 to 2 and Figures 7 to 11, and can also be applied to any possible options defined in the future for carrying business information. Transformation of fields.
  • FIG. 13 shows a schematic diagram of an application scenario provided by the embodiment of the present application.
  • This application scenario provides a communication network.
  • the communication network is an IPv6 network.
  • the communication network includes a plurality of network devices 101 to 106, and the network devices 101 to 106 are connected in sequence.
  • Network devices 101 to 106 can be used to forward messages.
  • the network devices 101 to 106 include edge network devices.
  • the edge network devices can be used for workstations to access the communication network.
  • the network devices 101 to 106 can be used to forward messages between different workstations accessing the communication network. Enable communication between the different workstations.
  • the network device may be a switch, a router, a virtual switch or a virtual router.
  • the network devices 101 to 106 may be the same network device.
  • the network devices 101 to 106 are all routers.
  • at least two of the network devices 101 to 106 are different network devices.
  • some of the network devices 101 to 106 are routers and another part is a switch.
  • Workstations connected to the above communication network can be hosts, servers, base stations, virtual machines (VMs), etc.
  • the hosts can be smartphones, tablets, desktop computers or Internet of Things (IoT) devices, etc.
  • IoT Internet of Things
  • the communication network includes a forwarding path for forwarding messages, and the forwarding path may include multiple network devices.
  • network devices on the forwarding path include an ingress device, an egress device, and at least one transit device located between the ingress device and the egress device. Packets flow into the forwarding path through the ingress device and out of the forwarding path through the egress device. Depending on the length of the forwarding path, the number of transit devices on the forwarding path is different, or the forwarding path only includes ingress devices and egress devices, but not transit devices.
  • network devices are also called network nodes, gateway devices, routing nodes or routing devices, etc.; ingress devices are also called first nodes, first node devices, head nodes, head node devices, etc.; egress devices are also called tail nodes. , tail node equipment, etc.; the transit equipment is also called a transit node, an intermediate node or an intermediate node equipment, etc.; the forwarding path can also be called a transmission path, communication link, communication channel, communication tunnel or tunnel channel, etc.
  • the communication network includes a forwarding path P, which is: network device 101—>network device 102—>network device 103—>network device 104—>network device 105—>network device 106.
  • Network device 101 is the head node of the forwarding path P
  • network device 106 is the tail node of the forwarding path P
  • network devices 102 to 105 are all intermediate nodes of the forwarding path P.
  • the same option field includes service subfields corresponding to at least two different services, so that the same option field can carry the service information of the at least two different services
  • the network device on the forwarding path can Generate a message including this option field.
  • the head node on the forwarding path adds the option field to the initial message to obtain a message including the option field, or the intermediate node on the forwarding path receives the message including the option field, and the intermediate node modifies the option field.
  • Message gets the message that includes this option field.
  • the head node generates a message including this option field as an example. After the head node generates a message including this option field, it can send the message to the next hop device of the head node.
  • the next-hop device After receiving the message including the option field, the next-hop device can process the message according to the service information carried in the option field to obtain a processed message, and the processed message includes the option field. After obtaining the processed message, the next-hop device can send the processed message to the next-hop device of the next-hop device. After receiving the message including the option field, the next-hop device of the next-hop device can process the message according to the service information carried in the option field. This is repeated until the message including the option field is forwarded to the tail node. The tail node can process the message according to the service information carried in the option field in the received message, and the tail node can also remove the option field in the message. For example, as shown in FIG.
  • the network device 101 can generate a message including the option field and send the message to the network device 102 . After that, the message including the option field is forwarded to the network device 106 through the network device 102, the network device 103, the network device 104 and the network device 105 in sequence.
  • the network devices 101 to 106 can all use the option in the received message.
  • the service information carried in the field is used to process the message.
  • the network device 106 serving as the tail node can also remove the option field in the message.
  • the head node maintains the option field, and the head node generates a message including the option field based on the option field. In another implementation manner, the head node generates a message including the option field according to the instruction information sent by the controller.
  • the application scenario provided by the embodiment of the present application also includes a controller.
  • the controller is connected to the head node.
  • the controller can send instruction information to the head node to instruct the head node to generate a message including the option field.
  • FIG. 14 shows a schematic diagram of another application scenario provided by an embodiment of the present application.
  • the communication network provided by this application scenario also includes a controller 100 , and the controller 100 is connected to the network device 101 .
  • the controller 100 may also be connected to at least one of the network devices 102 to 106 (not shown in FIG. 14 ), which is not limited in the embodiment of the present application.
  • the controller 100 integrates functions such as network management, service control, and network analysis.
  • the controller 100 may be a functional module deployed in a server, or a server, or a server cluster composed of several servers, or a cloud computing service center, or other devices or modules with network control functions.
  • the controller 100 may generate indication information and send the indication information to the network device 101, and the network device 101 generates a message including the option field according to the indication information.
  • the indication information is indication information of the option field (for example, the identification of the option field).
  • the network device 101 can maintain multiple option fields, and the network device 101 determines the option field in the multiple option fields based on the indication information. Indicates the option field indicated by the information, and then generates a message including the option field.
  • the indication information includes configuration information of the option field, and the network device 101 generates the option field according to the indication information, and then generates a message including the option field.
  • the indication information includes the option field, and the network device 101 generates a message including the option field according to the indication information, which is not limited in the embodiment of the present application.
  • the controller can also be integrated in the network device, for example, the controller is integrated in the head node.
  • Pass The communication network may include more or less devices than those shown in Figures 13 and 14, and the number of network devices and the number of controllers can be configured as needed, which is not limited in the embodiments of this application.
  • Figure 15 shows a flow chart of a business processing method provided by an embodiment of the present application.
  • This method can be applied to a service processing system including network device A and network device B.
  • the business processing system is the communication network shown in Figure 13 or Figure 14
  • network device A is the network device 101
  • network device B is any one of the network devices 102 to 106.
  • the method includes the following steps S501 to S504.
  • Network device A generates message A including an option field.
  • the option field includes a first service subfield, a second service subfield, a first length subfield and a second length subfield.
  • the first service subfield corresponds to the first Service
  • the second service subfield corresponds to the second service
  • the first service is different from the second service
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the second service subfield length.
  • network device A is the head node.
  • Network device A receives an initial message from a workstation (such as a host).
  • Network device A adds an option field to the initial message to obtain message A including the option field.
  • network device A is an intermediate node.
  • Network device A receives message B from the previous hop device of network device A.
  • Message B includes the option field.
  • Network device A modifies the message B to include the option field.
  • Message A of option field For example, network device A modifies the information carried in the option field included in message B, which is not limited in this embodiment of the present application.
  • message A may be an IPv6 message
  • message A may include an IPv6 extension header
  • the option field may be located in the IPv6 extension header.
  • network device A is the head node, and network device A encapsulates the IPv6 extension header including the option field in the initial message to obtain message A; or, the initial message includes the IPv6 extension header, and network device A encapsulates the IPv6 extension header in the initial message.
  • the option field is added to the IPv6 extension header of the initial message to obtain message A.
  • network device A is an intermediate node.
  • the message B received by network device A from the previous hop device of network device A includes an IPv6 extension header.
  • the IPv6 extension header includes the option field.
  • Network device A modifies The IPv6 extension header gets message A.
  • IPv6 extension headers can include hop by hop header (HBH), destination options header (DOH), segment routing header (segment routing header, SRH), fragment header (fragment header, FH) etc.
  • an IPv6 message may include at least one IPv6 extension header.
  • the IPv6 extension header including the option field may be HBH or DOH. That is, the option field may be located in HBH or DOH.
  • message A includes HBH, and the option field is located in the HBH.
  • message A includes DOH, and the option field is located in the DOH.
  • message A includes SRH and two DOHs.
  • DOH1 DOH1
  • DOH2 DOH2
  • DOH1 DOH1
  • DOH2 DOH2
  • the option field can be located in DOH1 or DOH2. If the option field is located in the HBH, each network device that receives message A can process message A according to the option field. If the option field is located in DOH1, each network device that receives message A and hits the destination address of message A can process message A according to the option field. If the option field is located in DOH2, usually only the tail node needs to process message A according to the option field.
  • the option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield.
  • the first service subfield corresponds to the first service
  • the second service subfield The subfield corresponds to the second service.
  • the first service subfield is used to carry the service information of the first service.
  • the second service subfield is used to carry the service information of the second service.
  • Information, the first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield.
  • the first business and the second business are different from each other.
  • the length of the first service subfield is equal to or not equal to the length of the second service subfield.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive integers
  • p and q are equal or unequal.
  • the first length subfield indicates the length of the first service subfield
  • the value in the first length subfield indicates the length of the first service subfield
  • the second length subfield indicates the length of the second service subfield.
  • the value in the second length subfield indicates the length of the second service subfield.
  • the length of the first length subfield is equal to or not equal to the length of the second length subfield.
  • the option field includes a flag subfield, and the flag subfield is used to indicate that the option field includes a first service subfield and a second service subfield.
  • the option field includes a type space corresponding to the first business subfield (for example, called the first type space) and a type space corresponding to the second business subfield (for example, called the second type space).
  • the first type The space is used to indicate that the option field includes the first service subfield
  • the second type space is used to indicate that the option field includes the second service subfield. For this reason, this option field includes the following two possible implementations.
  • the option field includes a flag subfield
  • the flag subfield is used to indicate that the option field includes a first service subfield and a second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit.
  • the first service flag bit is used to indicate that the option field includes the first service subfield
  • the second service flag bit is used to indicate that the option field includes the first service subfield. Includes the second business subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order
  • the first length subfield and the second length subfield are arranged in order
  • the first length subfield and the second length subfield are arranged in the same order as the first service
  • the order of the flag bits and the second service flag bits corresponds to each other. That is, through the correspondence of the arrangement sequence, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
  • the first service subfield and the second service subfield are also arranged in order, and the order of the first service subfield and the second service subfield corresponds to the order of the first service flag bit and the second service flag bit. . That is, through the correspondence of the arrangement order, the first service subfield corresponds to the first service flag bit, and the second service subfield corresponds to the second service flag bit.
  • the network device can determine the first length subfield, the second length subfield, and the first service subfield according to the order of the first service flag bit and the second service flag bit. and the second service subfield, and the network device determines the length of the first service subfield according to the first length subfield, and determines the length of the second service subfield according to the second length subfield.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each service flag in the m service flag bits
  • the bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service flag bit.
  • the m services include the first service flag bit.
  • any service flag bit is used to indicate whether the option field includes the service subfield corresponding to the any service flag bit.
  • the value in the any service flag bit is used to indicate whether the option field includes the service subfield.
  • Any service flag bit corresponds to the service subfield of the service.
  • the value in any service flag bit is 0 or 1
  • "1" is used to indicate that the option field includes the service subfield of the service corresponding to any service flag bit.
  • "0" is used to indicate that the option field does not include the service subfield of the service corresponding to any service flag bit.
  • the m service flag bits are arranged in order.
  • the m service flag bits are arranged in order from high bit to low bit, or in order from low bit to high bit.
  • the option field includes k service length subfields, the k service length subfields and the k services in the m service flag bits.
  • the flag bits have a one-to-one correspondence.
  • the k service length subfields correspond to the first k service flag bits among the m service flag bits. 1 ⁇ k ⁇ m, and k is an integer.
  • the service length subfield corresponding to the any service flag bit is used to indicate the length of the service subfield.
  • the k service length subfields include a first length subfield and a second length subfield, and the k service flag bits include a first service flag bit and a second service flag bit.
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the flag subfield is adjacent to the high bits of the k service length subfields (that is, the flag subfield is in the k business length subfields before).
  • the k service length subfields can be arranged in order, and the order of the k service length subfields corresponds to the order of the k service flag bits.
  • the k service length subfields are in order from high to low. Arrange them in order from lowest to highest.
  • the m service flag bits further include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield.
  • the first service subfield, the second service subfield and the third service subfield are arranged in order.
  • the third service flag bit and the third service subfield all correspond to the third service.
  • the first service, the second service and the third service are mutually exclusive.
  • the m services include the third service.
  • the third service subfield may be the last service subfield in the option field.
  • the m service flag bits are arranged in order, and the third service subfield is the last service flag bit among the m service flag bits. Indicated business subfield.
  • the service length subfield can be set in the option field (for example, the service length subfield is called the third length subfield) to indicate the length of the third service subfield, or it can be based on the length of the option field. and the length of the subfields in the option field except the third service subfield determine the length of the third service subfield.
  • the first implementation includes the following two possible situations.
  • the option field includes a third service subfield and a third length subfield
  • the third length subfield is used to indicate the length of the third service subfield.
  • the number of service length subfields is also m
  • m service flag bits correspond to m service length subfields one-to-one.
  • the service length subfield corresponding to the any service flag bit is used to indicate the service subfield. The length of the field.
  • the option field includes a third service subfield
  • the service flag bits include a third service flag bit used to indicate the third service subfield, but the option field does not include a service length subfield used to indicate the length of the third service subfield).
  • the option field further includes a flow indication subfield, which is used to indicate the data flow to which message A belongs.
  • the flow indication subfield is used to carry flow indication information, and the flow indication information is used to indicate the data flow to which message A belongs.
  • the flow indication information may be a flow identifier.
  • the APN ID can be used as the flow identifier, or all or part of the application group identification (APP-Group-ID) in the APN ID, and/or the user group identification (USER -Group-ID) as the flow identifier.
  • APP-Group-ID application group identification
  • USER -Group-ID user group identification
  • other identification information may also be used as the flow identification.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order (for example, the flow indication subfield is after the flag subfield), and the flag subfield is also used to indicate the option field.
  • the flow indication subfield is included in When the network device determines that the option field includes the flow indication subfield, the network device determines that the flow indication subfield is included according to the flow indication subfield. segment handles packets that include this option field.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order (for example, the flow indication subfield is before the flag subfield).
  • the option field includes the flow indication by default. subfield, there is no need to set the flow flag bit in the flag subfield to indicate the flow indication subfield. The network device processes packets including the option field based on the flow indication subfield without referring to the value of the flow flag bit.
  • Figure 16 and Figure 17 show a schematic structural diagram of two option fields provided by the embodiment of this application.
  • the option field includes a type subfield, a length subfield, a flag subfield, k service length subfields, a flow indication subfield and n service subfields.
  • the flag subfield includes m service flag bits.
  • the m service flag bits correspond to m services one by one.
  • the n service subfields correspond to n service flag bits among the m service flag bits.
  • the type subfield is used to indicate the type of the option field.
  • the length subfield is used to indicate the length of the data field of the option field (that is, the total length of the subfields in the option field except the type subfield and the length subfield).
  • the flag subfield, the k service length subfields, the flow indication subfield and the n service subfields are arranged in order.
  • the flag subfield also includes a flow flag bit, which is used to indicate the option.
  • the flow indication subfield is included in the field. As shown in Figure 17, the flow indication subfield, the flag subfield, the k service length subfields and the n service subfields are arranged in order.
  • k m
  • the k service length subfields correspond to the m service flag bits one-to-one
  • each of the m service flag bits is used to indicate the Whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • each service flag bit indicates that the option field includes the service subfield of the service corresponding to each service flag bit
  • each service flag The service length subfield corresponding to the bit is used to indicate the length of the service subfield.
  • service length subfield 1 and service subfield 1 both correspond to service flag bit 1.
  • Service flag bit 1 is used to indicate that the option field includes service subfield 1
  • service length subfield 1 is used to indicate the length of service subfield 1. .
  • the service length subfield 2 and the service subfield 2 both correspond to the service flag bit 2.
  • the service flag bit 2 is used to indicate that the option field includes the service subfield 2
  • the service length subfield 2 is used to indicate the service subfield 2. length.
  • the service length subfield k and the service subfield n both correspond to the service flag bit m
  • the service flag bit m is used to indicate that the option field includes the service subfield n
  • the service length subfield k is used to indicate the service subfield n length.
  • the k service length subfields correspond to the k service flag bits among the m service flag bits, for example, the k service length subfields
  • the subfield has a one-to-one correspondence with the first k service flag bits among the m service flag bits.
  • Each service flag bit among the k service flag bits is used to indicate whether the option field includes the corresponding service flag bit.
  • the service subfield of the service When each service flag bit indicates that the option field includes the service subfield of the service corresponding to each service flag bit, the service length subfield corresponding to each service flag bit is used to indicate the service.
  • the length of the subfield; the mth service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to the mth service flag bit, and the mth service flag bit indicates that the option field includes the service subfield.
  • the length of the service subfield corresponding to the mth service flag bit is based on the length of the option field and the total length of the subfields in the option field except the service subfield. The length is determined. For example, service length subfield 1 and service subfield 1 both correspond to service flag bit 1. Service flag bit 1 is used to indicate that the option field includes service subfield 1, and service length subfield 1 is used to indicate the length of service subfield 1. .
  • the service length subfield 2 and the service subfield 2 both correspond to the service flag bit 2.
  • the service flag bit 2 is used to indicate that the option field includes the service subfield 2
  • the service length subfield 2 is used to indicate the service subfield 2. length.
  • the service length subfield k and the service subfield n-1 both correspond to the service flag bit m-1
  • the service flag bit m-1 is used to indicate that the option field includes the service subfield n-1
  • the service length subfield k is used to indicate the length of the service subfield n-1.
  • the service subfield n corresponds to the service flag bit m.
  • the service flag bit m is used to indicate that the option field includes the service subfield n.
  • the length of the service subfield n is equal to the length of the option field and the length of the option field except the service subfield.
  • the difference in length of the subfields other than field n; that is, the length of the service subfield n is equal to the length of the option field and the type subfield, length subfield, flag subfield, service length subfield 1 to k, flow Indicates the difference between the total lengths of the indication subfield and service subfields 1 to n-1.
  • the first service subfield, the second service subfield and the third service subfield described above are any three service subfields arranged in sequence in the option fields shown in Figures 16 and 17.
  • the first service subfield is service subfield 1, the second service subfield is service subfield 2, and the third service subfield is service subfield 3.
  • the first service subfield is service subfield 1, the second service subfield is service subfield 3, and the third service subfield is service subfield n.
  • the first service subfield is service subfield 2, the second service subfield is service subfield 3, and the third service subfield is service subfield n.
  • the length of each service length subfield may be 3 bits.
  • Figure 16 illustrates that the flow flag bit is located at the highest bit of the flag subfield.
  • the flow flag bit can be any flag bit in the flag subfield.
  • Figure 16 and Figure 17 illustrate that the service flag bits 1 ⁇ m are arranged in the order from high bit to low bit.
  • the service flag bits 1 ⁇ m can also be arranged in the order from low high bit to high bit, or arranged in other ways.
  • the flag subfield can also be arranged in order.
  • the m services can be mapped to the m services in other ways.
  • the second implementation mode the option field includes a first type space and a second type space.
  • the first type space is used to indicate that the option field includes the first business subfield
  • the second type space is used to indicate that the option field includes The second business subfield.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield. That is, the first length subfield is part of the first service subfield, and the second length subfield is part of the second service subfield.
  • the first length subfield is also called the first length space
  • the second length subfield is also called the second length space.
  • the first service subfield also includes a first type space
  • the second service subfield also includes a second type space.
  • the first type space is used to indicate the first service (that is, the first type space is used to indicate The first service subfield corresponds to the first service), and the second type space is used to indicate the second service (that is, the second type space is used to indicate that the second service subfield corresponds to the second service).
  • the first service subfield also includes a first data space
  • the second service subfield also includes a second data space.
  • the first data space is used to carry the service information of the first service
  • the second data space is used to carry the service information of the first service. Carrying the service information of the second service
  • the first length subfield is used to indicate the length of the first data space
  • the second length subfield is used to indicate the length of the second data space.
  • the option field also includes a flow indication subfield, which is used to indicate the data flow to which message A belongs.
  • the flow indication subfield is used to carry flow indication information, and the flow indication information is used to indicate the data flow to which message A belongs.
  • the flow indication information may be a flow identifier.
  • the option field includes a flow indication subfield and n service subfields.
  • the flow indication subfield and the n service subfields are arranged in sequence.
  • the n service subfields correspond to n services one by one.
  • Each of the n service subfields includes a type space, a service length subfield (or service length space) and a data space.
  • the type space in each service subfield is used to indicate each service.
  • the data space in each service subfield is used to carry the service information of the corresponding service.
  • the service length subfield in each service subfield is used to indicate the length of the data space in each service subfield.
  • the structure of the option field is shown in Figure 18.
  • the option field includes a type subfield, a length subfield, a flow indication subfield and n service subfields.
  • the type subfield indicates the type of this option field.
  • This length subfield is used to indicate the length of the data field of the option field (that is, the length of the data field in the option field except the The total length of the type subfield and subfields other than the length subfield).
  • Service subfield 1 includes type space 1, service length subfield 1 and data space 1.
  • Type space 1 is used to indicate that service subfield 1 corresponds to service 1.
  • Service length subfield 1 is used to indicate the length of data space 1.
  • Data space 1 is used to carry the business information of business 1.
  • the service subfield 2 includes a type space 2, a service length subfield 2 and a data space 2.
  • the type space 2 is used to indicate that the service subfield 2 corresponds to the service 2
  • the service length subfield 2 is used to indicate the data space 2.
  • length, data space 2 is used to carry the service information of service 2, and so on.
  • the first service subfield, the second service subfield and the third service subfield described above are any three service subfields arranged in sequence in the option field shown in Figure 18.
  • the first service subfield is service subfield 1
  • the second service subfield is service subfield 2
  • the third service subfield is service subfield n.
  • the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service
  • the second service includes the slicing service, the following detection service and the APN service.
  • DetNet service, SFC service and path segment service any one.
  • the third service includes any one of slicing service, flow detection service, APN service, DetNet service, SFC service and path segment service.
  • the first service is the slicing service
  • the second service is the APN service
  • the third service is the SFC service.
  • the flow-following detection service includes the IFIT service or the IOAM service, and may also be other flow-following detection services.
  • the business information of any business includes information related to the business.
  • the business information of any business includes the business information of the business carried in the option field when the option field is independently expanded for the business. It may also include information related to the business. of other information.
  • the service information of the slice service includes the slice identifier.
  • the business information of the flow-following detection service includes flow identification, etc.
  • the business information of the APN service includes an APN ID and may also include APN parameters.
  • the APN ID includes at least one of a user group identifier and an application group identifier.
  • the APN parameters include bandwidth requirement parameters, delay requirement parameters, packet loss rate requirement parameters, Dithering requires at least one of the parameters.
  • the service information of DetNet service includes path identification.
  • the business information of the SFC service includes service path identification, service index identification, etc.
  • the business information of the path segment service includes the path segment ID.
  • the path segment ID is used to indicate a path segment.
  • the path segment ID corresponds to a segment list (segment list).
  • the segment list includes each path segment on the path segment indicated by the path segment ID.
  • the segment identifier (SID) corresponding to the network device.
  • the path segment service is the segment routing internet protocol version 6 (SRv6) path segment service.
  • the service information of the SRv6 path segment service is the SRv6 path segment ID.
  • the SRv6 path segment ID is usually located in the segment routing The last entry in the segment list (segment list) of the segment routing header (SRH).
  • Network device A sends message A to network device B.
  • network device B is the next hop device of network device A.
  • Network device A searches the routing table of network device A according to the destination address of message A to determine the egress port corresponding to message A in network device A.
  • Network device A sends message A to network device B through the egress port corresponding to message A.
  • network device A is network device 101
  • network device B is network device 102
  • network device 101 sends message A to network device 102 through the egress port corresponding to message A.
  • network device A is network device 102
  • network device B is network device 103
  • network device 102 sends message A to network device 103 through the egress port corresponding to message A.
  • network device B is not the next hop device of network device A.
  • Network device B is connected to network device A through other network devices, and network device A sends message A to network device B through the other network devices.
  • network device A is network device 101
  • network device B is network device 103
  • network device 101 sends message A to network device 103 through network device 102, that is, network device 101 sends message A Forwarded to network device 102
  • network device 102 forwards message A to network device 103.
  • network device A is network device 102
  • network Device B is network device 104.
  • Network device 102 sends message A to network device 104 through network device 103. That is, network device 102 forwards message A to network device 103, and network device 103 forwards message A to network device 104. .
  • Network device B receives message A.
  • network device B receives message A.
  • Network device B processes message A according to the first service subfield included in the option field of message A.
  • Network device B may be an intermediate node or tail node on the forwarding path of message A.
  • the option field may be located in HBH, DOH1 or DOH2 of message A. If this option field is located in the HBH, each network device that receives message A can process message A based on this option field. If this option field is located in DOH1, each network device that receives message A and hits the destination address of message A can process message A according to this option field. If the option field is located in DOH2, only the tail node needs to process message A according to the option field.
  • network device B is an intermediate node. If the option field is located in the HBH of message A, network device B processes message A according to the option field. If this option field is located in DOH1 of message A, network device B determines whether network device B hits the destination address of message A. If network device B hits the destination address of message A, network device B processes the message according to this option field. A. If network device B does not match the destination address of message A, network device B does not process message A according to this option field. If this option field is located in DOH2 of message A, network device B does not process message A based on this option field. In another embodiment, network device B is the tail node. If the option field is located in the HBH of message A, network device B processes message A according to the option field.
  • network device B determines whether network device B hits the destination address of message A. If network device B hits the destination address of message A, network device B processes the message according to this option field. A. If network device B does not match the destination address of message A, network device B does not process message A according to this option field. If the option field is located in DOH2 of message A, network device B processes message A based on the option field. In a specific implementation manner, network device B as the tail node can also remove the option field in message A, which is not limited in the embodiment of the present application.
  • This embodiment of the present application takes network device B as an example to process message A according to the option field.
  • This option field includes n service subfields corresponding to n services one-to-one.
  • the n service subfields are arranged in order.
  • Network device B processes the n service subfields in sequence according to the order of the n service subfields.
  • Message A For example, the n services include a first service and a second service, and the n service subfields include a first service subfield corresponding to the first service and a second service subfield corresponding to the second service.
  • the first service subfield The fields and the second service subfield are arranged in order, and the network device B processes the message A according to the first service subfield and the second service subfield in turn.
  • network device B may support all of the n services, or may not support at least one of the n services.
  • network device B processes message A according to this option field, if the network Device B supports a certain service, and network device B processes message A according to the service subfield of the certain service. If network device B does not support a certain service, network device B skips the service subfield of the certain service.
  • the option field includes n service length subfields corresponding to the n services one-to-one. For each of the n services, network device B determines the length of the service according to the service length subfield corresponding to each service. Determine the length of the service subfield for each service. If network device B supports each service, network device B obtains the service information carried in the service subfield of each service according to the length of the service subfield, and then obtains the service information carried in the service subfield according to the length of the service subfield. Process message A. If network device B does not support each service, network device B skips the service subfield of each service according to the length of the service subfield of each service.
  • the n services include a first service and a second service
  • the n service length subfields include a first length subfield corresponding to the first service and a first length subfield corresponding to the second service.
  • Network device B determines the length of the first service subfield based on the first length subfield; if network device B supports the first service, network device B obtains the service information carried in the first service subfield based on the length of the first service subfield (That is, the service information of the first service), and then processes message A according to the service information of the first service; if network device B does not support the first service, network device B skips the first service subfield according to the length of the first service subfield. field.
  • network device B determines the length of the second service subfield based on the second length subfield; if network device B supports the second service, network device B obtains the length of the second service subfield based on the length of the second service subfield.
  • service information that is, the service information of the second service
  • process message A according to the service information of the second service
  • network device B skips the second service subfield according to the length of the second service.
  • the option field includes n-1 service length subfields corresponding to the first n-1 services among the n services. For each service in the first n-1 services, network device B determines the length of the service subfield of each service according to the service length subfield corresponding to each service; if network device B supports each service, Network device B obtains the service information carried in the service subfield according to the length of the service subfield of each service, and then processes message A according to the service information carried in the service subfield; if network device B does not support each service service, network device B skips the service subfield of each service according to the length of the service subfield of each service.
  • network device B divides the service subfield of the nth service according to the length of the option field and the service subfield of the option field (for convenience of description, the service subfield of the nth service is The length of subfields other than the nth service subfield determines the length of the nth service subfield; if network device B supports the nth service, network device B determines the length of the nth service subfield according to the nth service subfield.
  • the n services include a first service and a second service
  • the n-1 service length subfields include a first length subfield corresponding to the first service
  • the second service is the nth service.
  • Network device B determines the length of the first service subfield based on the first length subfield; if network device B supports the first service, network device B obtains the first service carried in the first service subfield based on the length of the first service subfield.
  • Network device B determines the length of the second service subfield based on the length of the option field and the length of the subfields in the option field except the second service subfield; if network device B supports the second service, network device B determines the length of the second service subfield based on the length of the option field.
  • the length of the second service subfield is used to obtain the service information of the second service carried in the second service subfield, and then the message A is processed according to the service information of the second service; if network device B does not support the second service, network device B processes message A according to the second service subfield.
  • the length of the second service subfield skips the second service subfield.
  • network device B can also first determine whether network device B supports the n-th service. If network device B supports the n-th service, network device B determines whether network device B supports the n-th service according to the length and sum of the option fields.
  • the length of the subfields in this option field except the nth service subfield determines the length of the nth service subfield; if network device B does not support the nth service, network device B directly skips this option. Field, the embodiment of this application does not limit this.
  • the option field also includes a flow indication subfield.
  • the flow indication subfield is used to indicate the data flow to which message A belongs (for example, data flow A to which message A belongs).
  • Network device B responds according to the flow indication subfield.
  • the flow indication subfield and the n service subfields process message A. For example, network device B determines the data flow A to which message A belongs based on the flow indication subfield.
  • For each of the n services if network device B supports each service, network device B determines the data flow A to which the message A belongs.
  • Flow A is associated (or simultaneously associated) with the local configuration information of each service.
  • Network device B is based on the local configuration information of each service.
  • the service information carried in the service subfield of the service and the local configuration information are processed in message A.
  • the embodiment of this application takes network device B supporting the first service as an example.
  • Network device B processes the report according to the flow indication subfield and the first service subfield (that is, the service subfield of the first service) included in the option field.
  • Text A is a description of the service subfield of the service.
  • network device B determines that message A belongs to data flow A based on the flow indication information carried in the flow indication subfield, and network device B obtains the service information of the first service from the first service subfield, Network device B determines local configuration information associated with both data flow A and the first service (for example, the local configuration information associated with both data flow A and the first service is called first local configuration information), and network device B determines the local configuration information associated with both data flow A and the first service.
  • the local configuration information and the service information of the first service are processed in message A.
  • the first local configuration information includes program instructions in network device B that are associated with both data flow A and the first service.
  • Network device B executes the program instructions to process message A.
  • the program instruction includes at least one processing action (action).
  • the at least one processing action may include, for example, statistical actions, detection actions, forwarding actions, etc.
  • the first local configuration information may also include data flow A and data flow A in network device B. Other configuration information associated with the first service is not limited in this application.
  • the first service is a slice service
  • the first local configuration information includes resource configuration information, program instructions, etc. in network device B that are associated with both data flow A and the slice service.
  • the resource configuration information may include the slice identifier of the slice service, the slice interface in network device B that carries the slice service, the correspondence between the slice identifier of the slice service and the slice interface in network device B that carries the slice service, etc.
  • the program instructions may include the slice identifier of the slice service and the processing action in network device B that is associated with both data flow A and the slice service.
  • the processing action includes a forwarding action and a slice interface corresponding to the forwarding action.
  • the service information of the first service carried in message A is the slice identifier of the slice service.
  • Network device B determines the program associated with both data flow A and the slice service from the first local configuration information based on the slice identifier. instruction, and then executes the program instruction to process message A. For example, network device B executes the program instruction to forward message A through the slice interface associated with the slice service.
  • the first service is an accompanying detection service
  • the first local configuration information includes program instructions in network device B that are associated with both data flow A and the accompanying detection service.
  • the program instructions may include the flow identifier of the flow detection service and the processing actions in network device B that are associated with both the data flow A and the flow detection service. These processing actions may include statistical actions, detection actions, etc.
  • the statistical actions may be Including what statistics are included. For example, statistics are collected on the reception timestamps of packets that network device B receives that belong to data flow A and belong to the flow-following detection service, and statistics are collected on the sending of packets that network device B sends that belong to data flow A and belong to the flow-following detection service.
  • the flow-following detection service includes IFIT service or IOAM service.
  • the first service is an IFIT service
  • the service information of the first service carried in message A is the flow identifier of the IFIT service
  • network device B determines from the first local configuration information according to the flow identifier of the IFIT service.
  • Data flow A and the IFIT service are both associated with program instructions, and then the program instructions are executed to process message A.
  • network device B executes the processing actions included in the program instructions to collect statistics on the reception timestamp of message A received by network device B, the sending timestamp of message A sent by network device B, the message sequence of message A, etc. Quality information, network device B can also report these transmission quality information and the flow identifier of the IFIT service to the controller, so that the controller determines the transmission quality of the IFIT service based on the transmission quality information of the IFIT service sent by multiple network devices.
  • the first service is an IOAM service.
  • the service information of the first service carried in message A is the flow identifier of the IOAM service.
  • Network device B determines from the first local configuration information based on the flow identifier of the IOAM service.
  • Program instructions associated with both data flow A and the IOAM service and then execute the program instructions to process message A.
  • network device B executes the processing actions included in the program instructions to perform service level processing based on message A.
  • Detection processing such as agreement (service-level agreement, SLA) detection and path verification may specifically include network device B adding the reception timestamp of message A when network device B receives message A, and the time stamp of network device B sending message A. Sending timestamp, transmission delay of message A in network device B, metadata (MD) of network device B, etc.
  • the first service is an APN service
  • the first local configuration information includes resource configuration information, program instructions, etc. in network device B that are associated with both data flow A and the APN service.
  • the resource configuration information may include the forwarding interface allocated by network device B for the APN service, the bandwidth allocated by network device B for the APN service, etc. to ensure the bandwidth, delay, jitter, packet loss rate and other requirements of the APN service.
  • the program instructions may include the APN attribute of the APN service and the processing actions associated with the data flow A and the APN service in network device B, such as forwarding actions and forwarding interfaces corresponding to the forwarding actions.
  • the service information of the first service carried in message A is the APN attribute of the APN service.
  • the APN attribute includes the APN ID and APN parameters.
  • Network device B determines the data from the first local configuration information based on the APN attribute. Both flow A and the APN service are associated with program instructions, and then the program instructions are executed to process message A. For example, network device B forwards message A through the forwarding interface associated with the APN service.
  • the first service is a DetNet service
  • the first local configuration information includes resource configuration information, program instructions, etc. in network device B that are associated with both data flow A and the DetNet service.
  • the resource configuration information may include the path identifier of the DetNet service, the path resources in network device B corresponding to the forwarding path indicated by the path identifier (for example, the interface corresponding to the forwarding path, the interface bandwidth corresponding to the forwarding path, the corresponding the interface rate of the forwarding path, etc.).
  • the program instructions may include the path identifier of the DetNet service and the processing actions associated with the data flow A and the DetNet service in network device B, such as forwarding actions and forwarding interfaces corresponding to the forwarding actions.
  • the service information of the first service carried in message A is the path identifier of the DetNet service.
  • Network device B determines from the first local configuration information according to the path identifier of the DetNet service that the data stream A and the DetNet service are both connected. The associated program instruction is then executed to process message A. For example, network device B determines the path resource of the forwarding path indicated by the path identifier in network device B based on the path identifier of the DetNet service, and network device B forwards message A through the path resource.
  • the first service is an SFC service
  • the first local configuration information includes resource configuration information, program instructions, etc. in network device B that are associated with both data flow A and the SFC service.
  • the resource configuration information may include a service path identifier (SPI) of the SFC service and a path resource in network device B corresponding to the service function path (SFP) indicated by the SPI.
  • the program instructions may include the SPI of the SFC service and the processing actions in network device B that are associated with both data flow A and the SFC service, such as forwarding actions and forwarding interfaces corresponding to the forwarding actions.
  • the service information of the first service carried in message A is the SPI of the SFC service
  • network device B determines from the first local configuration information based on the SPI of the SFC service that it is associated with both data flow A and the SFC service. program instruction, and then execute the program instruction to process message A.
  • network device B determines the path resource of the SFP indicated by the SPI in network device B based on the SPI of the SFC service, and forwards message A through the path resource.
  • the first service is a path segment service
  • network device B is the tail node
  • the first local configuration information includes path segment configuration information and program instructions in network device B that are associated with both data flow A and the path segment service. wait.
  • the path segment configuration information may include the path segment ID of the path segment service, and the processing policy information corresponding to the path segment ID in network device B; the path segment ID is used to indicate a path segment, and the processing policy information is used to indicate a path segment.
  • the processing strategy of the path segment for example, the processing strategy information includes path statistical information, and the path statistical information is used to indicate statistics on the performance of the path segment (packet loss, delay, etc.).
  • the program instructions may include the path segment ID of the path segment service and processing actions in network device B that are associated with both data flow A and the path segment service, for example, including statistical actions, and the statistical actions may indicate that the network Device B collects statistics on the performance (packet loss, delay, etc.) of the path segment indicated by the path segment ID.
  • the service information of the first service carried in message A is the path segment ID of the path segment service.
  • Network device B determines the path segment ID of the path segment service from the first local configuration information and is related to data flow A and The program instructions associated with the path segment services are then executed to collect statistics on the performance of the path segment indicated by the path segment ID based on message A.
  • the path segment ID corresponds to a segment list (segment list), and the segment list includes segment identifiers (SIDs) corresponding to each network device on the path segment indicated by the path segment ID.
  • the path segment service is an SRv6 path segment service
  • the path segment ID is an SRv6 SID
  • the segment list is an SRv6 segment list
  • each SID in the segment list is an SRv6 SID.
  • the above description about the service information of the first service, the first local configuration information, and the network device B processing the message A according to the first local configuration information and the service information of the first service are only exemplary. According to the service information of the first service and the first local configuration information, network device B performs different processing according to the first local configuration information and the service information of the first service. Moreover, in addition to processing message A according to the service information included in the option field of message A, network device B can also process message A according to other information included in message A, which information may carry In the option field, it may also be outside the option field, which is not limited in the embodiment of the present application. In addition, the local configuration information associated with both data flow A and the first service in different network devices is the same or different.
  • the processing behaviors associated with the first service performed on different network devices are different.
  • the program instructions associated with the first service in some network devices include the first service information and the statistical actions associated with the first service
  • the program instructions associated with the first service in other network devices include the first service information and the first service
  • the associated detection action, and the program instructions associated with the first service in some network devices include the first service information and the forwarding action associated with the first service, etc., which are not limited in the embodiments of the present application.
  • an option field of the message since an option field of the message includes a first service subfield corresponding to the first service and a second service subfield corresponding to the second service, therefore, The one option field can carry the service information of the first service and the service information of the second service. That is, the one option field can carry the service information of at least two different services. Therefore, there is no need to separately expand the option field for each service. Compared with the current solution of separately extending the option field for each service, the overhead caused by some fixed content in the option field can be saved, which helps to reduce message overhead. In the current solution to expand the option field separately for each service, each option field usually also includes some optional subfields for alignment or future expansion.
  • the option field provided by this application also includes a first length subfield corresponding to the first service and a second length subfield corresponding to the second service.
  • the first length subfield is used to indicate the length of the first service subfield.
  • the second length subfield is used to indicate the length of the second service subfield.
  • the option field includes a length subfield used to indicate the length of each service subfield (such as the first service subfield and the second service subfield)
  • the lengths of different service subfields may be equal or unequal, Can be flexible according to actual needs Setting the length of each service subfield will not affect the network device's processing of packets containing this option field.
  • multiple services can be carried out for the same message of the same data flow
  • the services carried out for the packets of different data flows can be the same or different
  • the same business carried out for different data flows can be carried out.
  • Business information can be different.
  • the slicing service, flow detection service and DetNet service are carried out; for the same packet of the second data flow, the slicing service, APN service and SFC service are carried out; for the packet of the first data flow
  • the business information of the slicing service carried out may be different from the business information of the slicing service carried out for the packets of the second data flow (for example, the business information of the slicing service carried out for the packets of the first data flow is slice identification 1, and the business information of the slicing service carried out for the packets of the second data flow is slice identification 1,
  • the business information of the slice service carried out by the packets of the data flow is the slice identifier 2).
  • the network device may have different processing behaviors for the option fields included in the packets of different data flows.
  • the network device processes the message including the option field, it also refers to the local configuration information.
  • This application sets a flow indicator subfield in the option field to indicate the data flow to which the message including the option field belongs, so that the network device can according to The flow indication subfield determines the data flow to which the message belongs, and then processes the message according to the local configuration information associated with both the data flow and the service information carried by the option field.
  • Such a setting method can enable the network device to Achieve differentiated processing of different data streams.
  • network device B supports the first service and the second service, and network device B also processes message A according to the second service subfield included in the option field of message A. As shown in Figure 19, the method also includes the following step S505a.
  • Network device B processes message A according to the second service subfield included in the option field of message A.
  • the implementation process of S505a can refer to the implementation process of S504, and will not be described again here.
  • network device B supports the first service but does not support the second service, and network device B skips the second service subfield included in the option field of message A. As shown in Figure 20, the method also includes the following step S505b.
  • Network device B skips the second service subfield included in the option field of message A.
  • Network device B skips the second service subfield, that is, network device B does not process message A according to the second service subfield.
  • the option field includes a second length subfield
  • the second length subfield is used to indicate the length of the second service subfield
  • network device B determines the length of the second service subfield according to the second length subfield.
  • network device B skips the second service subfield according to the length of the second service subfield.
  • the second service subfield is the last service subfield in the option field, for example, the service subfield indicated by the last service flag bit in the option field, and the second service subfield is not included in the option field.
  • the service length subfield corresponding to the service subfield.
  • Network device B determines the length of the second service subfield according to the length of the option field and the length of the subfields in the option field except the second service subfield.
  • Network device B determines the length of the second service subfield according to the length of the option field. The length of the second service subfield skips the second service subfield.
  • network device B forwards message A to network device C.
  • Network device C may be the next hop device of network device B, or network device B may forward message A through other networks.
  • the device is connected to network device C.
  • network device C can process message A according to the option field in message A.
  • network device A may also process message A according to the option field in message A.
  • the process of network device A and network device C processing message A according to the option field can refer to the process of network device B processing message A according to the option field, which will not be described again in this embodiment of the present application.
  • network device A generates message A including the option field under the instruction of the controller.
  • the controller may be controller 100 shown in FIG. 14 .
  • FIG. 21 shows a flow chart of yet another business processing method provided by an embodiment of the present application. The method includes the following steps S2101 to S2106.
  • the controller sends instruction information to network device A.
  • the instruction information is used to instruct network device A to generate
  • the option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield.
  • the first service subfield corresponds to the first service
  • the second service subfield corresponds to For the second service, the first service is different from the second service.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the second service subfield.
  • the controller first generates indication information, and then sends the indication information to network device A.
  • the controller sends instruction information to network device A through a border gateway protocol (BGP) message, a network configuration protocol (NETCONF) message, or other private protocol message.
  • BGP border gateway protocol
  • NETCONF network configuration protocol
  • the instruction information includes configuration information of the option field to instruct network device A to generate a message including the option field.
  • the indication information includes the option field to instruct network device A to generate a message including the option field.
  • the indication information is an identifier of the option field, and network device A includes the configuration information of the option field.
  • the indication information instructs network device A to generate a report including the option field based on the configuration information of the option field in network device A. arts.
  • the indication information is an identification of the option field, the option field is included in the network device A, and the indication information instructs the network device A to generate a message including the option field according to the option field in the network device A.
  • the configuration information of the option field may include the subfields in the option field and the structural information of the option field.
  • the structural information may include the positions of the subfields in the option field.
  • Network device A receives the instruction information sent by the controller.
  • network device A receives a BGP message, NETCONF message or other private protocol message carrying the indication information sent by the controller, and obtains the indication information from the received message.
  • Network device A generates message A including the option field according to the instruction information.
  • the indication information includes configuration information of the option field
  • network device A generates the option field according to the configuration information of the option field, and then generates message A including the option field.
  • the indication information includes the option field
  • network device A obtains the option field from the indication information, and then generates message A including the option field.
  • the indication information includes an identification of the option field
  • network device A determines the configuration information of the option field in network device A based on the indication information
  • network device A generates the option field based on the configuration information of the option field. , and then generate message A including the option field.
  • the indication information includes an identifier of the option field
  • network device A determines the option field in network device A based on the indication information, and then generates message A including the option field.
  • Network device A sends message A to network device B.
  • Network device B receives message A.
  • Network device B processes message A according to the first service subfield included in the option field of message A.
  • the implementation process of S2103 to S2106 may refer to the implementation process of S501 to S504 mentioned above, and will not be described again here.
  • the embodiment shown in Figure 21 takes network device A as an example to generate a message A including the option field according to the instructions of the controller.
  • the option field can be statically configured in network device A, and then the network Device A may generate a message including the option field, which is not limited in the embodiment of this application.
  • FIG 22 shows a flow chart of yet another business processing method provided by an embodiment of the present application. This method is applied to a business processing system including network device A and network device B. The method includes the following steps S2201 to S2204.
  • Network device A generates message A that includes an option field.
  • the option field includes a first service subfield, a second service subfield, and a flow indication subfield.
  • the first service subfield corresponds to the first service
  • the second service subfield Corresponding to the second service, the first service is different from the second service.
  • the flow indication subfield is used to indicate the data flow to which message A belongs.
  • network device A receives the instruction information sent by the controller, and network device A generates message A according to the instruction information.
  • network device A receives the instruction information sent by the controller, and network device A generates message A according to the instruction information.
  • this option field please refer to the related description in S501 and Figures 16 to 18.
  • Network device A sends message A to network device B.
  • Network device B receives message A.
  • Network device B processes message A according to the flow indication subfield and the first service subfield included in the option field of message A.
  • network device B supports the first service and the second service, and network device B also processes message A according to the flow indication subfield and the second service subfield included in the option field.
  • network device B supports the first service but does not support the second service, and network device B skips the second service subfield included in the option field of message A.
  • Network device B can also forward message A to network device C, and network device C can process message A according to the option field in message A.
  • Network device A may also process message A according to the option field in message A.
  • the process of processing message A according to the option field by network devices A, B, and C can refer to the description in the embodiment shown in Figure 15, and will not be described again here.
  • Figure 23 shows a schematic diagram of a service processing method provided by an embodiment of the present application.
  • Figure 23 shows the process of the message being transmitted on the forwarding path P (the forwarding path P is: network device 101->network device 102->network device 103->network device 104->network device 105->network device 106),
  • the network device on the forwarding path P processes the packet as an example.
  • the message includes payload, IPv6 header, HBH and media access control (media access control, MAC) header (it may also include other contents, which will not be described here).
  • the HBH includes an option field, which includes a flow indication subfield, a flag subfield and five service subfields (respectively, the slice service subfield, the SFC service subfield, the APN service subfield, the DetNet service subfield and the IFIT business subfield).
  • the flag subfield includes 8 service flag bits. Among the 8 service flag bits, the third service flag bit arranged from high to low corresponds to the slice service, the fifth service flag bit corresponds to the SFC service, and the sixth service flag bit corresponds to the APN service, the 7th service flag bit corresponds to the DetNet service, and the 8th service flag bit corresponds to the IFIT service.
  • the value in the flag subfield is 00101111.
  • the network device 101 as the head node first generates a message including the option field, and then processes the message according to the option field. Specifically, the network device 101 determines that the option field includes the slice service subfield, the SFC service subfield, the APN service subfield, the DetNet service subfield and the IFIT service subfield according to the value in the flag subfield, and determines the slice service subfield. , SFC service subfield, APN service subfield, DetNet service subfield and IFIT service subfield are arranged in order. The network device 101 traverses the five service subfields in the order in which they are arranged, and processes the message according to the flow indication subfield and the five service subfields in sequence.
  • the network device 101 traverses to the slice service subfield; if the network device 101 supports the slice service, the network device 101 processes the message according to the flow indication subfield and the slice service subfield; if the network device 101 does not support the slice service, the network device 101 Device 101 skips this slice service subfield. Then, the network device 101 traverses to the SFC service subfield; if the network device 101 supports the SFC service, the network device 101 processes the message according to the flow indication subfield and the SFC service subfield; if the network device 101 does not support SFC service, the network device 101 skips the SFC service subfield.
  • the network device 101 traverses to the APN service subfield; if the network device 101 supports the APN service, the network device 101 processes the message according to the flow indication subfield and the APN service subfield; if the network device 101 does not support the APN service, the network device 101 Device 101 skips this APN service subfield.
  • the network device 101 traverses to the DetNet service subfield; if the network device 101 supports the DetNet service, the network device 101 processes the message according to the flow indication subfield and the DetNet service subfield; if the network device 101 does not support the DetNet service, the network device 101 Device 101 skips this DetNet service subfield.
  • the network device 101 traverses to the IFIT service subfield; if the network device 101 supports the IFIT service, the network device 101 processes the message according to the flow indication subfield and the IFIT service subfield; if the network device 101 does not support the IFIT service, the network device 101 The device 101 skips the IFIT service subfield, for example, the network device 101 skips the option field.
  • Network device 101 obtains message 1 after processing the message.
  • Network device 101 sends message 1 to network device 102.
  • Network device 102 processes message 1 according to the option field in message 1.
  • the network device 102 obtains the message 2.
  • the network device 102 sends the message 2 to the network device 103.
  • the network device 103 processes the message 2 according to the option field in the message 2.
  • the network device 103 obtains the message 3.
  • the network device 103 sends the message 3 to the network device 104.
  • the network device 104 processes the message 3 according to the option field in the message 3.
  • network device 104 obtains message 4
  • network device 105 processes message 4 according to the option field in message 4.
  • the network device 105 After the network device 105 processes the message 4, the network device 105 obtains the message 5. The network device 105 sends the message 5 to the network device 106. The network device 106 processes the message 5 according to the option field in the message 5. The process of the network devices 102 to 106 processing the corresponding message according to the option field is similar to the process of the network device 101 processing the message according to the option field, which will not be described again here. As the tail node, the network device 106 can also remove the option field in the message 5, which is not limited in this application.
  • Figure 24 shows a schematic structural diagram of a service processing device 2400 provided by an embodiment of the present application.
  • the service processing device 2400 is applied to network equipment or controllers.
  • the service processing device 2400 is a network device, a functional component in the network device, a controller, or a functional component in the controller.
  • the network device may be a head node, an intermediate node or a tail node, and the network device may be network device A or network device B described in the above method embodiment.
  • the service processing device 2400 includes a transceiver module 2410 and a processing module 2420.
  • the service processing device 2400 is applied to network device B.
  • the transceiver module 2410 is configured to receive a message including an option field.
  • the option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield.
  • the first service subfield corresponds to the first Service
  • the second service subfield corresponds to the second service
  • the first service is different from the second service
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the second service subfield length.
  • the processing module 2420 is used to process the message according to the first service subfield.
  • the option field also includes a flow indication subfield.
  • the flow indication subfield is used to indicate the data flow to which the message belongs.
  • the processing module 2420 is used to determine the data flow based on the flow indication subfield and the third A service subfield processes the message.
  • network device B supports the first service and the second service
  • the processing module 2420 is also configured to process the message according to the second service subfield.
  • the processing module 2420 is also configured to process the message according to the flow indication subfield and the second service subfield.
  • network device B supports the first service but does not support the second service, and the processing module 2420, Also used to skip the second business subfield.
  • the service processing device 2400 is applied to network equipment A.
  • the processing module 2420 is configured to generate a message including an option field.
  • the option field includes a first service subfield, a second service subfield, a first length subfield and a second length subfield.
  • the first service subfield corresponds to the first Service
  • the second service subfield corresponds to the second service
  • the first service is different from the second service
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the second service subfield length.
  • Transceiver module 2410 is used to send the message.
  • the option field also includes a flow indication subfield.
  • the flow indication subfield is used to indicate the data flow to which the message belongs.
  • the processing module 2420 is used to determine the flow indication subfield according to the flow indication subfield and The first service subfield processes the message.
  • network device A supports the first service and the second service
  • the processing module 2420 is also configured to process the message according to the second service subfield.
  • the processing module 2420 is also configured to process the message according to the flow indication subfield and the second service subfield.
  • network device A supports the first service but does not support the second service.
  • the processing module 2420 is also configured to skip the second service subfield.
  • the transceiver module 2410 is also configured to receive instruction information sent by the controller, where the instruction information is used to instruct network device A to generate a message including an option field.
  • the processing module 2420 is configured to generate a message including the option field according to the indication information.
  • the service processing device 2400 is applied to the controller.
  • the transceiver module 2410 is configured to send instruction information to the head node.
  • the instruction information is used to instruct the head node to generate a message including an option field.
  • the option field includes a first service subfield, a second service subfield, and a first length subfield. and a second length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the first length subfield is used to indicate the first service subfield Length, the second length subfield is used to indicate the length of the second service subfield.
  • the option field also includes a flow indication subfield, and the flow indication subfield is used to indicate the data flow to which the message belongs.
  • the indication information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, and the IPv6 extension header includes the option field.
  • the business processing device 2400 is applied to the head node, and the transceiver module 2410 is used to receive instruction information sent by the controller.
  • the instruction information is used to instruct the head node to generate a message including an option field.
  • the option field It includes a first service subfield, a second service subfield, a first length subfield and a second length subfield.
  • the first service subfield corresponds to the first service
  • the second service subfield corresponds to the second service
  • the first service and the second length subfield The two services are different.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the second service subfield.
  • the processing module 2420 is configured to generate a message including the option field according to the indication information.
  • the indication information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header
  • the IPv6 extension header includes the option field
  • the processing module 2420 is used to generate an IPv6 packet including the IPv6 extension header according to the indication information. IPv6 packet with this IPv6 extension header.
  • the service processing device 2400 is applied to network device B.
  • Transceiver module 2410 configured to receive a message including an option field.
  • the option field includes a first service subfield, a second service subfield, and a flow indication subfield.
  • the first service subfield corresponds to the first service
  • the second service subfield Corresponding to the second business, the first business is different from the second business
  • the The flow indication subfield is used to indicate the data flow to which the packet belongs.
  • the processing module 2420 is configured to process the message according to the flow indication subfield and the first service subfield.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield.
  • network device B supports the first service and the second service
  • the processing module 2420 is also configured to process the message according to the flow indication subfield and the second service subfield.
  • network device B supports the first service but does not support the second service.
  • the processing module 2420 is also configured to skip the second service subfield.
  • the service processing device 2400 is applied to network equipment A.
  • the processing module 2420 is configured to generate a message including an option field.
  • the option field includes a first service subfield, a second service subfield, and a flow indication subfield.
  • the first service subfield corresponds to the first service
  • the second service subfield Corresponding to the second service, the first service is different from the second service
  • the flow indication subfield is used to indicate the data flow to which the message belongs.
  • Transceiver module 2410 is used to send the message.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield.
  • network device A supports the first service and the second service
  • the processing module 2420 is also configured to process the message according to the flow indication subfield and the second service subfield.
  • the network device supports the first service but does not support the second service.
  • the processing module 2420 is also configured to skip the second service subfield.
  • the transceiver module 2410 is also used to receive the instruction information sent by the controller.
  • the instruction information is used to instruct the network device to generate a message including the option field; accordingly, the processing module 2420 uses A message including the option field is generated based on the instruction information.
  • the business processing device 2400 is applied to the controller.
  • the transceiver module 2410 is configured to send indication information to the head node.
  • the indication information is used to instruct the head node to generate a message including an option field.
  • the option field includes a first service subfield, a second service subfield and a flow indication subfield.
  • the first service subfield corresponds to the first service
  • the second service subfield corresponds to the second service.
  • the first service is different from the second service
  • the flow indication subfield is used to indicate the data flow to which the message belongs.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield. Indicates the length of the second service subfield.
  • the indication information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, and the IPv6 extension header includes the option field.
  • the service processing device 2400 is applied to the head node.
  • the transceiver module 2410 is configured to receive instruction information sent by the controller.
  • the instruction information is used to instruct the head node to generate a message including an option field.
  • the option field includes a first service subfield, a second service subfield and a flow indicator subfield. field, the first service subfield corresponds to the first service, and the second service subfield corresponds to the second service.
  • the first service is different from the second service.
  • the flow indication subfield is used to indicate the data flow to which the message belongs.
  • the processing module 2420 is configured to generate a message including the option field according to the indication information.
  • the option field also includes a first length subfield and a second length subfield.
  • the first length subfield is used to indicate the length of the first service subfield
  • the second length subfield is used to indicate the length of the first service subfield. Indicates the length of the second service subfield.
  • the indication information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, and the IPv6 extension header includes the option field, and the processing module 2420 is used to generate an IPv6 message including IPv6 packet with this IPv6 extension header.
  • the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes a first service subfield and a second service subfield.
  • the flag subfield includes a first service flag bit and a second service flag bit
  • the first service flag bit is used to indicate that the option field includes the first service subfield.
  • the second service flag bit is used to indicate that the option field includes the second service subfield.
  • the first length subfield corresponds to the first service flag bit
  • the second length subfield corresponds to the second service flag bit
  • the first service flag bit and the second service flag bit are arranged in order
  • the first length subfield and the second length subfield are arranged in order
  • the first length subfield is arranged in order
  • the arrangement order of the field and the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the first service flag bit and the second service flag bit are arranged in order
  • the first service subfield and the second service subfield are arranged in order
  • the first service subfield is arranged in order
  • the arrangement order of the field and the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  • the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, and the m services are different from each other.
  • Each of the m service flag bits is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit.
  • the m service flag bits include the first service flag bit and the second service Flag bit, the m services include the first service and the second service, m ⁇ 2, and m is an integer.
  • the option field includes k service length subfields, and the k service length subfields are consistent with k service flag bits among the m service flag bits.
  • k is an integer.
  • any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits
  • any one of the service flag bits shall The service length subfield corresponding to the service flag bit is used to indicate the length of the service subfield.
  • the k service length subfields include the first length subfield and the second length subfield.
  • the k service flag bits include the first service flag. bit and the second business flag bit.
  • k m
  • the k service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, the third service subfield, and the third service flag bit.
  • the second service subfield and the third service subfield are arranged in sequence.
  • the third service flag bit and the third service subfield both correspond to the third service.
  • the first service, the second service and the third service are different from each other.
  • the m services include Third service; the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  • the m service flag bits also include a third service flag bit
  • the third service flag bit is used to indicate that the option field also includes a third service subfield
  • the first service subfield field, the second service subfield and the third service subfield are arranged in order.
  • the third service flag bit and the third service subfield both correspond to the third service.
  • the first service, the second service and the third service are different from each other.
  • the m services include the third service; the k service flag bits do not include the third service flag bit, and the length of the third service subfield is determined according to the length of the option field, the length of the first service subfield, and the length of the second service subfield. .
  • the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  • the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order, and the flag subfield also includes a flow flag bit, the The flow flag bit is used to indicate that the option field includes the flow indication subfield.
  • the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
  • the first length subfield is in the first service subfield
  • the second length subfield is in the second service subfield.
  • the first service subfield also includes a first type space, which is used to indicate the first service
  • the second service subfield also includes a second type space, which is used to indicate the second service.
  • the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service
  • the second service subfield also includes a second data space, and the second data space is used to indicate the first service. 2.
  • Business information of the business
  • the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
  • the length of the first service subfield is 4 ⁇ p bytes
  • the length of the second service subfield is 4 ⁇ q bytes
  • p and q are both positive. integer.
  • the packet is an IPv6 packet
  • the packet includes an IPv6 extension header
  • the IPv6 extension header includes the option field.
  • the IPv6 extension header includes either HBH or DOH.
  • the first service includes any one of the slicing service, the flow detection service, the APN service, the DetNet service, the SFC service and the path segment service; or, the second service Including any one of slicing services, flow detection services, APN services, DetNet services, SFC services and path segment services.
  • the service processing device provided by the embodiment of the present application can also be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD).
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above-mentioned PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
  • CPLD complex programmable logical device
  • FPGA field-programmable gate array
  • GAL general array logic
  • the business processing method provided in the above method embodiment can also be implemented through software.
  • each module in the business processing device can also be a software module.
  • FIG 25 shows a schematic structural diagram of another service processing device 2500 provided by an embodiment of the present application.
  • the service processing device 2500 is a network device or a functional component in the network device.
  • the network device may be network device A, network device B or the head node in the above method embodiment.
  • the business processing device 2500 includes a main control board 2510, an interface board 2530 and an interface board 2540.
  • a switching network board (not shown in Figure 25) may be included.
  • the switching network board is used to complete data exchange between interface boards (interface boards are also called line cards or service boards).
  • the main control board 2510 is used to complete functions such as system management, equipment maintenance, and protocol processing.
  • the interface board 2530 and the interface board 2540 are used to provide various service interfaces (for example, POS interface, GE interface, ATM interface, etc.) and implement packet forwarding.
  • the main control board 2510, the interface board 2530 and the interface board 2540 are connected to the system backplane through a system bus to achieve intercommunication.
  • Interface board 2530 includes one or more processors 2531.
  • the processor 2531 is used to control and manage the interface board 2530 and communicate with the central processor 2512 on the main control board 2510 .
  • the memory 2532 on the interface board 2530 is used to store forwarding tables, local configuration information, etc. If the service processing device 2500 is the aforementioned network device A, the memory 2532 is also used to store the option field or the configuration information of the option field, the processor 2531 is used to generate a message including the option field, and the processor 2531 is used to The message is processed according to this option field. If the service processing device 2500 is the aforementioned network device B, the processor 2531 processes the message according to the option field in the message. As shown in Figure 25, the main control board 2510 includes a memory 2514. The memory 2514 can also be used to store local configuration information about services, option fields or configuration information of option fields, etc.
  • the interface board 2530 includes one or more network interfaces 2533 for sending and receiving messages, and the processor 2531 processes the message according to the option field in the message received by the network interface 2533.
  • this embodiment includes multiple interface boards and adopts a distributed forwarding mechanism.
  • the operations on the interface board 2540 are basically similar to the operations on the interface board 2530.
  • the interface board 2540 includes one or more network interfaces 2543 for sending and receiving messages, a memory 2542 for storing forwarding tables, local configuration information, etc., and a processor 2541 for controlling the interface board 2540 Manage and communicate with the central processor 2512 on the main control board 2510.
  • the interface board 2540 will not be described in detail here.
  • the processor 2531 in the interface board 2530 and/or the processor 2541 in the interface board 2540 in Figure 25 can be dedicated hardware or chips, such as a network processor or an application specific integrated circuit, to implement the above functions.
  • the implementation method is the so-called forwarding plane using dedicated hardware or chip processing.
  • the processor 2531 in the interface board 2530 and/or the processor 2541 in the interface board 2540 can also use a general-purpose processor, such as a general-purpose central processing unit (CPU) to implement the above. described function.
  • CPU central processing unit
  • main control boards there may be one or more main control boards, and when there are multiple main control boards, they can include the main main control board and the backup main control board.
  • the multiple interface boards can communicate with each other through one or more switching network boards. When there are multiple interface boards, they can jointly achieve load sharing and redundant backup.
  • the network equipment does not need a switching network board, and the interface board is responsible for processing the business data of the entire system.
  • the network equipment includes multiple interface boards, which can realize data exchange between multiple interface boards through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network equipment with a distributed architecture are greater than those with a centralized architecture.
  • the specific architecture used depends on the network deployment scenario and is not limited here.
  • memory 2532 and/or memory 2542 may be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM) or other types of dynamic storage devices that can store information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory, CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disks or other magnetic storage devices, or can be used to carry or store instructions or data structures.
  • the desired program code and any other medium capable of being accessed by a computer without limitation.
  • the memory 2532 may exist independently and be connected to the processor 2531 through a communication bus, or may be integrated with the processor 2531.
  • the memory 2542 may exist independently and be connected to the processor 2541 through a communication bus, or may be integrated with the processor 2541.
  • the memory 2532 is used to store program codes, and is controlled by the processor 2531 to execute part or all of the steps of the business processing method provided by the above embodiments.
  • the program code may include one or more software modules, and the one or more software modules may be the functional modules provided in the embodiment shown in FIG. 24 .
  • the memory 2542 can also be used to store program codes, and the execution is controlled by the processor 2541 to execute part or all of the steps of the business processing method provided by the above embodiments.
  • the memory 2514 can also be used to store program codes, and the central processor 2512 controls the execution. to execute part or all of the steps of the business processing method provided by the above embodiment.
  • the network interface 2533 and the network interface 2543 can be any transceiver-like device used to communicate with other devices or communication networks, such as Ethernet, radio access network (radio access network, RAN), Wireless local area networks (WLAN), etc.
  • Ethernet radio access network
  • RAN radio access network
  • WLAN Wireless local area networks
  • FIG. 26 shows a schematic structural diagram of a business processing system 2600 provided by an embodiment of the present application.
  • the business processing system 2600 includes a first network device 2610 and a second network device 2620.
  • the first network device 2610 is used to generate a message including an option field and send the message to the second network device 2620.
  • the option field includes a first service subfield and a second service subfield. , the first length subfield and the second length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, the first length subfield is used to indicate The length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield; the second network device 2620 is used to receive the message and process the message according to the first service subfield.
  • the business processing system 2600 also includes: a third network device 2630. The second network device 2620 is also used to send the message to the third network device 2630; the third network device 2630 is used to receive the message, and The message is processed according to the second service subfield.
  • the first network device 2610 is configured to generate a message including an option field and send the message to the second network device 2620.
  • the option field includes a first service subfield, a second service subfield and The flow indication subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs;
  • the second network device 2620 is configured to receive the message and process the message according to the flow indication subfield and the first service subfield.
  • the business processing system 2600 also includes: a third network device 2630, the second network device 2620 is also used to send the message to the third network device 2630; the third network device 2630 is used to receive the message, and according to The flow indication subfield and the second service subfield process the message.
  • the business processing system 2600 also includes: a controller 2640.
  • the controller 2640 is configured to send instruction information to the first network device 2610.
  • the instruction information is used to instruct the first network device 2610 to generate a message including the option field.
  • the first network device 2610 is configured to generate a message including the option field according to the indication information.
  • the first network device 2610 is the head node on the forwarding path of the message
  • the second network device 2620 is an intermediate node on the forwarding path
  • the third network device 2630 is an intermediate node on the forwarding path or tail node.
  • the first network device 2610 is the network device A described in the above method embodiment
  • the second network device 2620 is the network device B described in the above method embodiment
  • the third network device 2630 is the network device B described in the above method embodiment.
  • the network device C is the network device A described in the above method embodiment
  • the second network device 2620 is the network device B described in the above method embodiment
  • the third network device 2630 is the network device B described in the above method embodiment.
  • the network device C is the network device A described in the above method embodiment
  • the second network device 2620 is the network device B described in the above method embodiment
  • the third network device 2630 is the network device B described in the above method embodiment.
  • the embodiment of the present application provides a data structure, which includes the option field provided by the above-mentioned embodiment of the present application.
  • the option field provided by the above-mentioned embodiment of the present application.
  • the option field may be an option field as shown in any one of Figures 16 to 18.
  • Embodiments of the present application provide a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program is executed (for example, by a business processing device, a network device, a controller, one or more processes When the server is executed), all or part of the steps of the business processing method provided by the above method embodiment are implemented.
  • Embodiments of the present application provide a computer program product.
  • the computer program product includes a program or code, and the program or code is executed (for example, executed by a business processing device, a network device, a controller, one or more processors, etc.) At this time, all or part of the steps of the business processing method provided by the above method embodiment are implemented.
  • Embodiments of the present application provide a chip that includes programmable logic circuits and/or program instructions. When the chip is run, it is used to implement all or part of the steps of the business processing method provided by the above method embodiments.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product including one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
  • the computer may be a general purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, the computer instructions may be transferred from a website, computer, server, or data
  • the center transmits to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, data center, or the like that includes one or more available media integrated therein.
  • the available media may be magnetic media (eg, floppy disks, hard disks, tapes), optical media, or semiconductor media (eg, solid state drives), etc.
  • the disclosed devices can be implemented in other configurations.
  • the device embodiments described above are only illustrative.
  • the division of modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components may be combined or integrated into Another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical or other forms.
  • Modules described as separate components may or may not be physically separate.
  • Components described as modules may or may not be physical units that may be located in one place or distributed across multiple devices (such as network devices). . Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A service processing method, apparatus and system, relating to the technical field of networks. The method comprises: a network device receives a packet comprising an option field, the option field comprising a first service sub-field, a second service sub-field, a first length sub-field and a second length sub-field, the first service sub-field corresponding to a first service, the second service sub-field corresponding to a second service, the first service being different from the second service, the first length sub-field being used for indicating the length of the first service sub-field, and the second length sub-field being used for indicating the length of the second service sub-field; and the network device processes the packet according to the first service sub-field. In the present application, the same option field of the same packet can carry service information of at least two different services, so that the packet overhead can be reduced.

Description

业务处理方法、装置及系统Business processing methods, devices and systems
本申请要求申请日为2022年08月26日、申请号为202211032270.1、申请名称为“一种(IPv6+)多业务一体化封装的方法”的中国专利申请,以及,申请日为2022年11月21日、申请号为202211456091.0、申请名称为“业务处理方法、装置及系统”的中国专利申请的优先权,这两件专利申请的全部内容通过引用结合在本申请中。This application requires a Chinese patent application with an application date of August 26, 2022, an application number of 202211032270.1, and an application name of "A (IPv6+) multi-service integrated encapsulation method", and the application date is November 21, 2022 Priority is granted to the Chinese patent application with the application number 202211456091.0 and the application title "Business Processing Method, Device and System". The entire contents of these two patent applications are incorporated into this application by reference.
技术领域Technical field
本申请涉及网络技术领域,特别涉及一种业务处理方法、装置及系统。The present application relates to the field of network technology, and in particular to a business processing method, device and system.
背景技术Background technique
在目前的网络技术中,能够针对互联网协议第6版(internet protocol version 6,IPv6)报文开展多个业务。例如,这些业务包括随流检测业务、切片(slice)业务、确定性网络(deterministic networking,DetNet)业务、应用感知网络(application-aware networking,APN)业务、服务功能链接(service function chaining,SFC)业务等。In current network technology, multiple services can be carried out for Internet Protocol version 6 (IPv6) messages. For example, these services include flow detection services, slice services, deterministic network (DetNet) services, application-aware networking (APN) services, and service function chaining (SFC) Business etc.
目前,通常在IPv6报文的IPv6扩展头中针对上述各个业务分别扩展不同的选项(option)字段来携带对应业务的业务信息。示例的,当某一IPv6报文需要同时支持切片业务和SFC业务时,需要在该IPv6报文的IPv6扩展头中,针对切片业务和SFC业务扩展两个选项字段,并在切片业务和随流检测业务各自对应的选项字段中携带对应业务的业务信息。Currently, the IPv6 extension header of an IPv6 message is usually extended with different option (option) fields for each of the above services to carry the service information of the corresponding service. For example, when an IPv6 packet needs to support both the slicing service and the SFC service, the IPv6 extension header of the IPv6 packet needs to extend two option fields for the slicing service and the SFC service, and add the two option fields to the slicing service and the accompanying flow header. The corresponding option fields of each detection service carry the service information of the corresponding service.
但是,根据协议规定,选项字段中应当包括类型(type)子字段、长度(length)子字段等用于描述该选项字段的固定内容。针对每个业务扩展选项字段时,扩展的每个选项字段中均包括这些固定内容,导致IPv6扩展头的长度较大,IPv6扩展头的开销较大,报文开销较大。However, according to the protocol, the option field should include a type (type) subfield, a length (length) subfield and other fixed contents used to describe the option field. When the option field is expanded for each service, each expanded option field includes these fixed contents, resulting in a larger IPv6 extension header length, larger IPv6 extension header overhead, and larger message overhead.
发明内容Contents of the invention
本申请提供了一种业务处理方法、装置及系统。本申请的技术方案如下:This application provides a business processing method, device and system. The technical solution of this application is as follows:
第一方面,提供了一种业务处理方法,该方法包括:网络设备接收包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度;该网络设备根据第一业务子字段处理该报文。其中,第一业务子字段用于携带第一业务的业务信息,第二业务子字段用于携带第二业务的业务信息。In a first aspect, a service processing method is provided. The method includes: a network device receives a message including an option field, where the option field includes a first service subfield, a second service subfield, a first length subfield and a second Length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the The second length subfield is used to indicate the length of the second service subfield; the network device processes the message according to the first service subfield. The first service subfield is used to carry the service information of the first service, and the second service subfield is used to carry the service information of the second service.
本申请提供的技术方案,由于报文的一个选项字段中包括第一业务子字段和第二业务子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,因此,该一个选项字段能够携带第一业务的业务信息和第二业务的业务信息,也即,该一个选项字段能够携带至少两个不同业务的业务信息。换句话说,同一个报文的同一个选项字段能够携带至少两个不同业务的业务信息,所以,无需针对每个业务分别扩展选项字段, 相比于目前针对每个业务分别扩展选项字段的方案,本申请提供的技术方案可以节省选项字段中的一些固定内容所带来的开销,有助于降低报文开销。此外,目前针对每个业务分别扩展选项字段的方案中,每个选项字段中通常还包括一些用于对齐或未来扩展的可选子字段,这些可选子字段也容易导致报文的开销较大,相比于目前针对每个业务分别扩展选项字段的方案,本申请提供的技术方案还可以节省一些可选子字段所带来的开销,降低报文开销。In the technical solution provided by this application, since an option field of the message includes a first service subfield and a second service subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, and the first service subfield corresponds to the second service. The service is different from the second service. Therefore, the one option field can carry the service information of the first service and the service information of the second service. That is, the one option field can carry the service information of at least two different services. In other words, the same option field in the same message can carry the business information of at least two different services. Therefore, there is no need to expand the option field separately for each service. Compared with the current solution of separately extending the option field for each service, the technical solution provided by this application can save the overhead caused by some fixed content in the option field and help reduce message overhead. In addition, in the current solution to separately expand the option field for each service, each option field usually also includes some optional subfields for alignment or future expansion. These optional subfields can also easily lead to higher message overhead. , Compared with the current solution of separately extending option fields for each service, the technical solution provided by this application can also save the overhead caused by some optional sub-fields and reduce message overhead.
此外,网络设备获取(例如接收或生成)报文之后,通常需要处理报文,例如转发报文或者针对报文执行一些业务处理。目前针对每个业务分别扩展选项字段的方案中,报文的长度较大,导致网络设备处理报文的复杂度较高,网络设备的转发性能较低。本申请提供的技术方案中,同一个报文的同一个选项字段能够携带至少两个不同业务的业务信息,因此能够减小报文的长度,有助于简化网络设备处理报文的复杂度,提升网络设备的转发性能。In addition, after a network device obtains (for example, receives or generates) a packet, it usually needs to process the packet, such as forwarding the packet or performing some business processing on the packet. In the current solution of separately extending the option field for each service, the length of the message is relatively large, resulting in high complexity of network equipment processing the message and low forwarding performance of the network equipment. In the technical solution provided by this application, the same option field of the same message can carry the business information of at least two different services, thus reducing the length of the message and helping to simplify the complexity of network equipment processing messages. Improve the forwarding performance of network equipment.
此外,本申请提供的技术方案中,所述选项字段中还包括第一长度子字段和第二长度子字段,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度,因此,网络设备处理包括该选项字段的报文时,网络设备可以根据第一长度子字段确定第一业务子字段的长度,根据第一业务子字段携带的业务信息处理该报文或者跳过第一业务子字段,以及,网络设备可以根据第二长度子字段确定第二业务子字段的长度以根据第二业务子字段携带的业务信息处理该报文或者跳过第二业务子字段。由于该选项字段中包括用于指示各个业务子字段(例如第一业务子字段、第二业务子字段)的长度的长度子字段,因此,不同业务子字段的长度可以相等,也可以不相等,可以根据实际需要灵活设置各个业务子字段的长度,不会影响网络设备对包括该选项字段的报文的处理。In addition, in the technical solution provided by this application, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield Used to indicate the length of the second service subfield. Therefore, when the network device processes a message including this option field, the network device can determine the length of the first service subfield based on the first length subfield. According to the length carried by the first service subfield process the message according to the service information or skip the first service subfield, and the network device can determine the length of the second service subfield according to the second length subfield to process the message according to the service information carried by the second service subfield. Or skip the second business subfield. Since the option field includes a length subfield used to indicate the length of each service subfield (such as the first service subfield and the second service subfield), the lengths of different service subfields may be equal or unequal, The length of each service subfield can be flexibly set according to actual needs, and will not affect the network device's processing of messages containing this option field.
可选的,所述选项字段还包括标志子字段,该标志子字段用于指示该选项字段包括第一业务子字段和第二业务子字段。Optionally, the option field also includes a flag subfield, which is used to indicate that the option field includes a first service subfield and a second service subfield.
本申请提供的技术方案,通过在选项字段中设置标志子字段,采用该标志子字段指示该选项字段包括第一业务子字段和第二业务子字段,便于网络设备根据该标志子字段获知该选项字段中包括对应于第一业务的第一业务子字段和对应于第二业务的第二业务子字段。The technical solution provided by this application is to set a flag subfield in the option field and use the flag subfield to indicate that the option field includes a first service subfield and a second service subfield, so that the network device can learn the option based on the flag subfield. The field includes a first service subfield corresponding to the first service and a second service subfield corresponding to the second service.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,第一业务标志位用于指示所述选项字段中包括第一业务子字段,第二业务标志位用于指示该选项字段中包括第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. This option field includes the second service subfield.
本申请提供的技术方案,通过在标志子字段中设置第一业务标志位和第二业务标志位,便于网络设备根据第一业务标志位获知该选项字段中包括对应于第一业务的第一业务子字段,以及,根据第二业务标志位获知该选项字段中包括对应于第二业务的第二业务子字段。The technical solution provided by this application facilitates the network device to learn that the option field includes the first service corresponding to the first service based on the first service flag bit by setting the first service flag bit and the second service flag bit in the flag subfield. subfield, and, according to the second service flag bit, it is known that the option field includes a second service subfield corresponding to the second service.
可选的,第一长度子字段与第一业务标志位对应,第二长度子字段与第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
本申请提供的技术方案,由于第一业务标志位用于指示所述选项字段中包括第一业务子字段,第二业务标志位用于指示该选项字段中包括第二业务子字段,且第一长度子字段与第一业务标志位对应,第二长度子字段与第二业务标志位对应,因此,网络设备处理包括该选项字段的报文时,网络设备可以根据第一业务标志位确定该选项字段中包括第一业务子字段,进而根据第一长度子字段确定第一业务子字段的长度,以及,根据第二业务标志位确定该选项字段中包括第二业务子字段,进而根据第二长度子字段确定第二业务子字段的长度。 In the technical solution provided by this application, the first service flag bit is used to indicate that the option field includes the first service subfield, the second service flag bit is used to indicate that the option field includes the second service subfield, and the first service flag bit is used to indicate that the option field includes the second service subfield. The length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit. Therefore, when the network device processes a message including the option field, the network device can determine the option based on the first service flag bit. The field includes the first service subfield, and then determines the length of the first service subfield according to the first length subfield, and determines that the option field includes the second service subfield according to the second service flag bit, and further determines according to the second length The subfield determines the length of the second service subfield.
可选的,第一业务标志位和第二业务标志位按序排列,第一长度子字段和第二长度子字段按序排列,第一长度子字段和第二长度子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, and the order of the first length subfield and the second length subfield is the same as that of the first length subfield and the second length subfield. The arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
本申请提供的技术方案,由于第一长度子字段和第二长度子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应,因此,网络设备可以根据第一业务标志位和第二业务标志位的排列顺序,确定第一长度子字段和第二长度子字段。In the technical solution provided by this application, since the arrangement order of the first length subfield and the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit, the network device can be configured according to the first service flag bit. and the order of the second service flag bits to determine the first length subfield and the second length subfield.
可选的,第一业务标志位和第二业务标志位按序排列,第一业务子字段和第二业务子字段按序排列,第一业务子字段和第二业务子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, and the order of the first service subfield and the second service subfield is the same as that of the first service subfield. The arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
本申请提供的技术方案,由于第一业务子字段和第二业务子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应,因此,网络设备可以根据第一业务标志位和第二业务标志位的排列顺序,确定第一业务子字段和第二业务子字段。In the technical solution provided by this application, since the arrangement order of the first service subfield and the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit, the network device can, according to the first service flag bit, and the order of the second service flag bits to determine the first service subfield and the second service subfield.
可选的,所述标志子字段包括m个业务标志位,该m个业务标志位一一对应m个业务,该m个业务互不相同,该m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括该每个业务标志位对应业务的业务子字段,该m个业务标志位包括第一业务标志位和第二业务标志位,该m个业务包括第一业务和第二业务,m≥2,且m为整数。示例的,所述标志子字段通过比特映射的方式对应m个业务,每个业务标志位中的值是0或1,“1”用于指示该选项字段中包括该每个业务标志位对应业务的业务子字段,“0”用于指示该选项字段中不包括该每个业务标志位对应业务的业务子字段。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each service flag bit in the m service flag bits Used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. The m services include the first service. And the second business, m≥2, and m is an integer. For example, the flag subfield corresponds to m services through bit mapping. The value in each service flag bit is 0 or 1. "1" is used to indicate that the option field includes the service corresponding to each service flag bit. The service subfield, "0" is used to indicate that the option field does not include the service subfield of the service corresponding to each service flag bit.
本申请提供的技术方案,通过在选项字段中设置标志子字段,并设置该标志子字段的m个业务标志位一一对应m个业务,可以便于网络设备根据该m个业务标志位中的每个业务标志位获知该选项字段中是否包括该每个业务标志位对应业务的业务子字段,从而便于网络设备获知该选项字段中包括哪些业务的业务子字段。The technical solution provided by this application, by setting a flag subfield in the option field, and setting the m service flag bits of the flag subfield to correspond to m services one-to-one, can facilitate the network device to respond to each of the m service flag bits. Each service flag bit determines whether the option field includes the service subfield of the service corresponding to each service flag bit, thereby facilitating the network device to learn which service subfields are included in the option field.
可选的,所述选项字段包括k个业务长度子字段,该k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在该k个业务标志位中的任一业务标志位指示该选项字段包括该任一业务标志位对应业务的业务子字段时,该任一业务标志位对应的业务长度子字段用于指示该业务子字段的长度,该k个业务长度子字段包括第一长度子字段和第二长度子字段,该k个业务标志位包括第一业务标志位和第二业务标志位。也即,在选项字段中设置k个业务长度子字段对应k个业务,使用每个业务长度子字段指示对应业务的业务子字段的长度。例如,该k个业务标志位指示该选项字段中包括k个业务子字段,该k个业务长度子字段一一对应用于指示该k个业务子字段的长度。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to the any service flag bit, the service length subfield corresponding to the any service flag bit is used for Indicates the length of the service subfield, the k service length subfields include a first length subfield and a second length subfield, and the k service flag bits include a first service flag bit and a second service flag bit. That is, k service length subfields are set in the option field to correspond to k services, and each service length subfield is used to indicate the length of the service subfield of the corresponding service. For example, the k service flag bits indicate that the option field includes k service subfields, and the k service length subfields are used to indicate the lengths of the k service subfields one by one.
本申请提供的技术方案,通过在选项字段中设置k个业务长度子字段来对应k个业务,使用每个业务长度子字段指示对应业务的业务子字段的长度,便于网络设备根据该k个业务长度子字段中的每个业务长度子字段确定该每个业务长度子字段对应的业务子字段的长度,这样的设置方式,使得可以根据实际需要设置各个业务子字段的长度,能够满足实际需要。The technical solution provided by this application is to set k service length subfields in the option field to correspond to k services, and use each service length subfield to indicate the length of the service subfield of the corresponding service, which facilitates the network equipment to adjust the k services according to the Each service length subfield in the length subfield determines the length of the service subfield corresponding to each service length subfield. This setting method allows the length of each service subfield to be set according to actual needs, which can meet actual needs.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,第三业务标志位用于指示所述选项字段还包括第三业务子字段,第一业务子字段、第二业务子字段和第三业务子字段依次排列,第三业务标志位和第三业务子字段均对应第三业务,第一业务、第二业务和第三 业务互不相同,所述m个业务包括第三业务;所述k个业务长度子字段还包括第三长度子字段,第三长度子字段用于指示第三业务子字段的长度。Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, and the third service flag bit. The second service subfield and the third service subfield are arranged in order. The third service flag bit and the third service subfield both correspond to the third service. The first service, the second service and the third service subfield are arranged in sequence. The services are different from each other, and the m services include the third service; the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
本申请提供的技术方案,第三业务子字段可以是选项字段中的最后一个业务子字段,例如,所述m个业务标志位按序排列,第三业务子字段是该m个业务标志位中的最后一个业务标志位指示的业务子字段。当k=m时,该选项字段中的业务长度子字段的数量等于该选项字段中的标志子字段包括的业务标志位的数量,该选项字段中的每个业务子字段对应一个业务长度子字段,每个业务长度子字段用于指示对应的业务子字段的长度,网络设备处理包括该选项字段的报文时,网络设备可以根据每个业务长度子字段确定对应的业务子字段的长度,当网络设备不支持该业务子字段对应的业务时,网络设备可以直接跳过该业务子字段,简化网络设备的处理逻辑。In the technical solution provided by this application, the third service subfield may be the last service subfield in the option field. For example, the m service flag bits are arranged in order, and the third service subfield is one of the m service flag bits. The service subfield indicated by the last service flag bit. When k=m, the number of service length subfields in the option field is equal to the number of service flag bits included in the flag subfield in the option field. Each service subfield in the option field corresponds to a service length subfield. , each service length subfield is used to indicate the length of the corresponding service subfield. When the network device processes a message including this option field, the network device can determine the length of the corresponding service subfield based on each service length subfield. When When the network device does not support the service corresponding to the service subfield, the network device can directly skip the service subfield to simplify the processing logic of the network device.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,第三业务标志位用于指示所述选项字段还包括第三业务子字段,第一业务子字段、第二业务子字段和第三业务子字段依次排列,第三业务标志位和第三业务子字段均对应第三业务,第一业务、第二业务和第三业务互不相同,所述m个业务包括第三业务;所述k个业务标志位不包括第三业务标志位,第三业务子字段的长度根据该选项字段的长度、第一业务子字段的长度和第二业务子字段的长度确定。例如,第三业务子字段的长度根据该选项字段的长度和该选项字段中除第三业务子字段之外的子字段(例如第一业务子字段的长度和第二业务子字段)的长度确定。Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service subfield , the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the second service and the third service are different from each other, the m Each service includes the third service; the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the length of the second service subfield. The length is determined. For example, the length of the third service subfield is determined based on the length of the option field and the length of the subfields in the option field other than the third service subfield (such as the length of the first service subfield and the second service subfield). .
本申请提供的技术方案,第三业务子字段可以是选项字段中的最后一个业务子字段,例如,所述m个业务标志位按序排列,第三业务子字段是该m个业务标志位中的最后一个业务标志位指示的业务子字段。当k=m-1时,该选项字段中的业务长度子字段的数量比该选项字段中的标志子字段包括的业务标志位的数量少一个,该选项字段中除第三业务子字段(也即最后一个业务子字段)之外的每个业务子字段对应一个业务长度子字段,除第三业务子字段之外的每个业务子字段对应的业务长度子字段用于指示该每个业务子字段的长度。网络设备处理包括该选项字段的报文时:对于除第三业务子字段之外的每个业务子字段,网络设备根据该每个业务子字段对应的业务长度子字段确定该每个业务子字段的长度,当网络设备不支持该每个业务子字段对应的业务时,网络设备可以直接跳过该每个业务子字段,简化网络设备的处理逻辑;对于第三业务子字段(也即最后一个业务子字段),网络设备根据该选项字段的长度和该选项字段中除第三业务子字段之外的子字段的长度确定第三业务子字段,当网络设备不支持第三业务时,网络设备可以直接跳过第三业务子字段,简化网络设备的处理逻辑。In the technical solution provided by this application, the third service subfield may be the last service subfield in the option field. For example, the m service flag bits are arranged in order, and the third service subfield is one of the m service flag bits. The service subfield indicated by the last service flag bit. When k=m-1, the number of service length subfields in the option field is one less than the number of service flag bits included in the flag subfield in the option field. Except for the third service subfield (also That is, each service subfield except the last service subfield) corresponds to a service length subfield, and the service length subfield corresponding to each service subfield except the third service subfield is used to indicate each service subfield. The length of the field. When the network device processes a message including this option field: for each service subfield except the third service subfield, the network device determines each service subfield based on the service length subfield corresponding to each service subfield. length, when the network device does not support the service corresponding to each service subfield, the network device can directly skip each service subfield, simplifying the processing logic of the network device; for the third service subfield (that is, the last Service subfield), the network device determines the third service subfield based on the length of the option field and the length of the subfields in the option field except the third service subfield. When the network device does not support the third service, the network device You can directly skip the third service subfield to simplify the processing logic of the network device.
可选的,所述k个业务长度子字段相邻,所述标志子字段与该k个业务长度子字段相邻。例如,该标志子字段的长度为8比特,该k个业务长度子字段的总长度为24比特,该标志子字段与该k个业务长度子字段构成一个4字节字段,该标志子字段是该4字节字段中的第1个字节字段,该k个业务长度子字段是该4字节字段中的剩余3个字节字段。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields. For example, the length of the flag subfield is 8 bits, and the total length of the k service length subfields is 24 bits. The flag subfield and the k service length subfields form a 4-byte field, and the flag subfield is The first byte field in the 4-byte field and the k service length subfields are the remaining 3 byte fields in the 4-byte field.
可选的,所述选项字段还包括流指示子字段,该流指示子字段用于指示所述报文所属的数据流,网络设备根据第一业务子字段处理报文,包括:网络设备根据该流指示子字段和第一业务子字段处理该报文。其中,该流指示子字段用于携带流指示信息,该流指示信息用于指示该报文所属的数据流。该流指示信息可以是数据流标识,例如,可以将应用感知网络 (application-aware networking,APN)标识(identification,ID)的全部或部分作为该数据流标识。Optionally, the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs. The network device processes the message according to the first service subfield, including: the network device processes the message according to the first service subfield. The flow indication subfield and the first service subfield process the message. The flow indication subfield is used to carry flow indication information, and the flow indication information is used to indicate the data flow to which the message belongs. The flow indication information may be a data flow identifier. For example, the application-aware network All or part of the (application-aware networking, APN) identification (ID) is used as the data flow identification.
本申请提供的技术方案,针对同一条数据流的同一报文可以开展多个业务,针对不同数据流的报文开展的业务可以相同或不同,且针对不同数据流开展的相同业务的业务信息可以不同。例如,针对第一数据流的同一报文开展切片(slice)业务、随流检测业务和确定性网络(deterministic networking,DetNet)业务,针对第二数据流的同一报文开展切片(slice)业务、应用感知网络(application-aware networking,APN)业务和服务功能链接(service function chaining,SFC)业务,针对第一数据流的报文开展的切片业务的业务信息与针对第二数据流的报文开展的切片业务的业务信息可以不同(例如针对第一数据流的报文开展的切片业务的业务信息为切片标识1,针对第二数据流的报文开展的切片业务的业务信息为切片标识2)。基于此,网络设备针对不同数据流的报文包括的所述选项字段的处理行为不同。网络设备处理包括所述选项字段的报文时还参考本地配置信息,本申请在所述选项字段中设置流指示子字段来指示包括该选项字段的报文所属的数据流,使得网络设备可以根据该流指示子字段来确定该报文所属的数据流,进而根据与该数据流和该选项字段携带的业务信息均关联的本地配置信息以处理该报文,这样的设置方式,可以使得网络设备实现对不同数据流的差异化处理。The technical solution provided by this application can carry out multiple services for the same packet of the same data flow. The services carried out for the packets of different data flows can be the same or different, and the business information of the same business carried out for different data flows can be carried out. different. For example, the slice service, the flow detection service and the deterministic network (DetNet) service are carried out for the same packet of the first data flow, and the slice service, Application-aware networking (APN) business and service function chaining (SFC) business, the business information of the slice service carried out for the packets of the first data flow and the packets carried out for the second data flow The business information of the slice service can be different (for example, the business information of the slice service carried out for the packets of the first data flow is slice ID 1, and the business information of the slice service carried out for the packets of the second data flow is slice ID 2) . Based on this, the network device has different processing behaviors for the option fields included in the packets of different data flows. When the network device processes the message including the option field, it also refers to the local configuration information. This application sets a flow indicator subfield in the option field to indicate the data flow to which the message including the option field belongs, so that the network device can according to The flow indication subfield determines the data flow to which the message belongs, and then processes the message according to the local configuration information associated with both the data flow and the service information carried by the option field. Such a setting method can enable the network device to Achieve differentiated processing of different data streams.
可选的,标志子字段、流指示子字段、第一业务子字段和第二业务子字段依次排列,该标志子字段还包括流标志位,该流标志位用于指示所述选项字段包括该流指示子字段。也即,使用标志子字段中的一个标志位指示该选项字段中是否包括该流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit, and the flow flag bit is used to indicate that the option field includes the Stream indication subfield. That is, a flag bit in the flag subfield is used to indicate whether the option field includes the flow indication subfield.
可选的,流指示子字段、标志子字段、第一业务子字段和第二业务子字段依次排列。也即,选项字段包括该流指示子字段,但是不使用标志子字段中的标志位指示该流指示子字段。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order. That is, the option field includes the flow indication subfield, but does not use the flag bit in the flag subfield to indicate the flow indication subfield.
可选的,第一长度子字段在第一业务子字段中,第二长度子字段在第二业务子字段中。也即,第一长度子字段是第一业务子字段中的一部分,第二长度子字段是第二业务子字段中的一部分,第一长度子字段也称为第一长度空间,第二长度子字段也称为第二长度空间。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield. That is, the first length subfield is part of the first service subfield, the second length subfield is part of the second service subfield, the first length subfield is also called the first length space, and the second length subfield is also called the first length space. The field is also called the second length space.
可选的,第一业务子字段还包括第一类型空间,第一类型空间用于指示第一业务;第二业务子字段还包括第二类型空间,第二类型空间用于指示第二业务。也即,使用第一业务子字段中的第一类型空间指示第一业务子字段对应第一业务,使用第二业务子字段中的第二类型空间指示第二业务子字段对应第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the second type space is used to indicate the second service. That is, the first type space in the first service subfield is used to indicate that the first service subfield corresponds to the first service, and the second type space in the second service subfield is used to indicate that the second service subfield corresponds to the second service.
可选的,第一业务子字段还包括第一数据空间,第一数据空间用于携带第一业务的业务信息;第二业务子字段还包括第二数据空间,第二数据空间用于指示第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, and the second data space is used to indicate the first service. 2. Business information of the business.
可选的,所述选项字段还包括流指示子字段,该流指示子字段用于指示所述报文所属的数据流,网络设备根据第一业务子字段处理该报文,包括:网络设备根据该流指示子字段和第一业务子字段处理该报文。其中,该流指示子字段用于携带流指示信息,该流指示信息用于指示所述报文所属的数据流。该流指示信息可以是流标识。Optionally, the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs. The network device processes the message according to the first service subfield, including: the network device processes the message according to the first service subfield. The flow indication subfield and the first service subfield process the message. The flow indication subfield is used to carry flow indication information, and the flow indication information is used to indicate the data flow to which the message belongs. The flow indication information may be a flow identifier.
可选的,流指示子字段、第一业务子字段和第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,第一业务子字段的长度为4×p字节,第二业务子字段的长度为4×q字节,p和q均为正整数。p和q可以相等,也可以不相等。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers. p and q may be equal or unequal.
可选的,所述报文为互联网协议第6版(internet protocol version 6,IPv6)报文,所述报 文包括IPv6扩展头,该IPv6扩展头包括所述选项字段。Optionally, the message is an Internet protocol version 6 (IPv6) message, and the message The packet includes an IPv6 extension header, and the IPv6 extension header includes the option field.
本申请提供的技术方案,将至少两个不同业务的业务信息携带在同一个报文的IPv6扩展头的同一个选项字段中,相比于针对每个业务分别扩展选项字段的方案,可以节省选项字段中的一些固定内容所带来的开销,有助于减小IPv6扩展头的长度,降低IPv6扩展头的开销。The technical solution provided by this application carries the business information of at least two different services in the same option field of the IPv6 extension header of the same message. Compared with the solution of separately extending the option field for each service, it can save options. The overhead caused by some fixed content in the field helps to reduce the length of the IPv6 extension header and reduce the overhead of the IPv6 extension header.
可选的,所述IPv6扩展头包括逐跳头(hop by hop header,HBH)和目的选项头(destination options header,DOH)中的任意一种。这样一来,本申请有助于减小HBH或DOH的长度。Optionally, the IPv6 extension header includes any one of a hop by hop header (HBH) and a destination options header (Destination options header, DOH). In this way, the present application helps reduce the length of HBH or DOH.
可选的,第一业务包括切片(slice)业务、随流检测业务、应用感知网络(application-aware networking,APN)业务、确定性网络(deterministic networking,DetNet)业务、服务功能链接(service function chaining,SFC)业务和路径段(path segment)业务中的任意一个;或者,第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes slice service, flow detection service, application-aware network (APN) service, deterministic network (DetNet) service, service function chaining (service function chaining) , any one of the SFC) service and the path segment service; or, the second service includes any one of the slicing service, the flow-following detection service, the APN service, the DetNet service, the SFC service and the path segment service.
可选的,所述网络设备支持第一业务和第二业务,该方法还包括:该网络设备根据第二业务子字段处理报文。例如,该网络设备根据流指示子字段和第二业务子字段处理该报文。Optionally, the network device supports the first service and the second service, and the method further includes: the network device processes the message according to the second service subfield. For example, the network device processes the message according to the flow indication subfield and the second service subfield.
可选的,所述网络设备支持第一业务但不支持第二业务,该方法还包括:该网络设备跳过第二业务子字段。例如,该网络设备根据第二长度子字段跳过第二业务子字段。Optionally, the network device supports the first service but does not support the second service. The method further includes: the network device skips the second service subfield. For example, the network device skips the second service subfield according to the second length subfield.
第二方面,提供了一种业务处理方法,该方法包括:网络设备生成包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度;该网络设备发送该报文。其中,第一业务子字段用于携带第一业务的业务信息,第二业务子字段用于携带第二业务的业务信息。In a second aspect, a service processing method is provided. The method includes: the network device generates a message including an option field, where the option field includes a first service subfield, a second service subfield, a first length subfield and a second Length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the The second length subfield is used to indicate the length of the second service subfield; the network device sends the message. The first service subfield is used to carry the service information of the first service, and the second service subfield is used to carry the service information of the second service.
可选的,所述选项字段还包括标志子字段,该标志子字段用于指示该选项字段包括第一业务子字段和第二业务子字段。Optionally, the option field also includes a flag subfield, which is used to indicate that the option field includes a first service subfield and a second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,第一业务标志位用于指示所述选项字段中包括第一业务子字段,第二业务标志位用于指示该选项字段中包括第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit, the first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate This option field includes the second service subfield.
可选的,第一长度子字段与第一业务标志位对应,第二长度子字段与第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,第一业务标志位和第二业务标志位按序排列,第一长度子字段和第二长度子字段按序排列,第一长度子字段和第二长度子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, and the order of the first length subfield and the second length subfield is the same as that of the first length subfield and the second length subfield. The arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
可选的,第一业务标志位和第二业务标志位按序排列,第一业务子字段和第二业务子字段按序排列,第一业务子字段和第二业务子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, and the order of the first service subfield and the second service subfield is the same as that of the first service subfield. The arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
可选的,所述标志子字段包括m个业务标志位,该m个业务标志位一一对应m个业务,该m个业务互不相同,该m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括该每个业务标志位对应业务的业务子字段,该m个业务标志位包括第一业务标志位和第二业务标志位,该m个业务包括第一业务和第二业务,m≥2,且m为整数。 Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each service flag bit in the m service flag bits Used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. The m services include the first service. And the second business, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,该k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在该k个业务标志位中的任一业务标志位指示该选项字段包括该任一业务标志位对应业务的业务子字段时,该任一业务标志位对应的业务长度子字段用于指示该业务子字段的长度,该k个业务长度子字段包括第一长度子字段和第二长度子字段,该k个业务标志位包括第一业务标志位和第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to the any service flag bit, the service length subfield corresponding to the any service flag bit is used for Indicates the length of the service subfield, the k service length subfields include a first length subfield and a second length subfield, and the k service flag bits include a first service flag bit and a second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,第三业务标志位用于指示所述选项字段还包括第三业务子字段,第一业务子字段、第二业务子字段和第三业务子字段依次排列,第三业务标志位和第三业务子字段均对应第三业务,第一业务、第二业务和第三业务互不相同,所述m个业务包括第三业务;所述k个业务长度子字段还包括第三长度子字段,第三长度子字段用于指示第三业务子字段的长度。Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, and the third service flag bit. The second service subfield and the third service subfield are arranged in sequence. The third service flag bit and the third service subfield both correspond to the third service. The first service, the second service and the third service are different from each other. The m services Including the third service; the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,第三业务标志位用于指示所述选项字段还包括第三业务子字段,第一业务子字段、第二业务子字段和第三业务子字段依次排列,第三业务标志位和第三业务子字段均对应第三业务,第一业务、第二业务和第三业务互不相同,所述m个业务包括第三业务;所述k个业务标志位不包括第三业务标志位,第三业务子字段的长度根据该选项字段的长度、第一业务子字段的长度和第二业务子字段的长度确定。Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service subfield , the second business subfield and the third business subfield are arranged in order, the third business flag bit and the third business subfield both correspond to the third business, the first business, the second business and the third business are different from each other, the m Each service includes the third service; the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the length of the second service subfield. The length is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与该k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述选项字段还包括流指示子字段,该流指示子字段用于指示所述报文所属的数据流,网络设备根据第一业务子字段处理报文,包括:网络设备根据该流指示子字段和第一业务子字段处理该报文。Optionally, the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs. The network device processes the message according to the first service subfield, including: the network device processes the message according to the first service subfield. The flow indication subfield and the first service subfield process the message.
可选的,标志子字段、流指示子字段、第一业务子字段和第二业务子字段依次排列,该标志子字段还包括流标志位,该流标志位用于指示所述选项字段包括该流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit, and the flow flag bit is used to indicate that the option field includes the Stream indication subfield.
可选的,流指示子字段、标志子字段、第一业务子字段和第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,第一长度子字段在第一业务子字段中,第二长度子字段在第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,第一业务子字段还包括第一类型空间,第一类型空间用于指示第一业务;第二业务子字段还包括第二类型空间,第二类型空间用于指示第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the second type space is used to indicate the second service.
可选的,第一业务子字段还包括第一数据空间,第一数据空间用于携带第一业务的业务信息;第二业务子字段还包括第二数据空间,第二数据空间用于指示第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, and the second data space is used to indicate the first service. 2. Business information of the business.
可选的,所述选项字段还包括流指示子字段,该流指示子字段用于指示所述报文所属的数据流,网络设备根据第一业务子字段处理该报文,包括:网络设备根据该流指示子字段和第一业务子字段处理该报文。Optionally, the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs. The network device processes the message according to the first service subfield, including: the network device processes the message according to the first service subfield. The flow indication subfield and the first service subfield process the message.
可选的,流指示子字段、第一业务子字段和第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,第一业务子字段的长度为4×p字节,第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述报文为IPv6报文,该报文包括IPv6扩展头,该IPv6扩展头包括所述选项字段。Optionally, the packet is an IPv6 packet, the packet includes an IPv6 extension header, and the IPv6 extension header includes the option field.
可选的,该IPv6扩展头包括HBH和DOH中的任意一种。 Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the flow-following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service, the following-flow detection service, the APN service, Any one of DetNet service, SFC service and path segment service.
可选的,所述网络设备支持第一业务和第二业务,该方法还包括:该网络设备根据第二业务子字段处理报文。例如,该网络设备根据流指示子字段和第二业务子字段处理该报文。Optionally, the network device supports the first service and the second service, and the method further includes: the network device processes the message according to the second service subfield. For example, the network device processes the message according to the flow indication subfield and the second service subfield.
可选的,所述网络设备支持第一业务但不支持第二业务,该方法还包括:该网络设备跳过第二业务子字段。例如,该网络设备根据第二长度子字段跳过第二业务子字段。Optionally, the network device supports the first service but does not support the second service. The method further includes: the network device skips the second service subfield. For example, the network device skips the second service subfield according to the second length subfield.
可选的,该方法还包括:所述网络设备接收控制器发送的指示信息,该指示信息用于指示该网络设备生成包括所述选项字段的报文;该网络设备生成包括该选项字段的报文,包括:该网络设备根据该指示信息生成包括该选项字段的报文。Optionally, the method further includes: the network device receiving instruction information sent by the controller, the instruction information being used to instruct the network device to generate a message including the option field; and the network device generating a message including the option field. The message includes: the network device generates a message including the option field according to the instruction information.
第三方面,提供了一种业务处理方法,该方法包括:控制器向头节点发送指示信息,该指示信息用于指示该头节点生成包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。In a third aspect, a service processing method is provided, which method includes: the controller sends instruction information to a head node, the instruction information is used to instruct the head node to generate a message including an option field, where the option field includes a first service sub- field, the second service subfield, the first length subfield and the second length subfield. The first service subfield corresponds to the first service, and the second service subfield corresponds to the second service. The first service is different from the second service. A length subfield is used to indicate the length of the first service subfield, and a second length subfield is used to indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,该标志子字段用于指示该选项字段包括第一业务子字段和第二业务子字段。Optionally, the option field also includes a flag subfield, which is used to indicate that the option field includes a first service subfield and a second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,第一业务标志位用于指示所述选项字段中包括第一业务子字段,第二业务标志位用于指示该选项字段中包括第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. This option field includes the second service subfield.
可选的,第一长度子字段与第一业务标志位对应,第二长度子字段与第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,第一业务标志位和第二业务标志位按序排列,第一长度子字段和第二长度子字段按序排列,第一长度子字段和第二长度子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, and the order of the first length subfield and the second length subfield is the same as that of the first length subfield and the second length subfield. The arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
可选的,第一业务标志位和第二业务标志位按序排列,第一业务子字段和第二业务子字段按序排列,第一业务子字段和第二业务子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, and the order of the first service subfield and the second service subfield is the same as that of the first service subfield. The arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
可选的,所述标志子字段包括m个业务标志位,该m个业务标志位一一对应m个业务,该m个业务互不相同,该m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括该每个业务标志位对应业务的业务子字段,该m个业务标志位包括第一业务标志位和第二业务标志位,该m个业务包括第一业务和第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each service flag bit in the m service flag bits Used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. The m services include the first service. And the second business, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,该k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在该k个业务标志位中的任一业务标志位指示该选项字段包括该任一业务标志位对应业务的业务子字段时,该任一业务标志位对应的业务长度子字段用于指示该业务子字段的长度,该k个业务长度子字段包括第一长度子字段和第二长度子字段,该k个业务标志位包括第一业务标志位和第二业务标志位。 Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to the any service flag bit, the service length subfield corresponding to the any service flag bit is used for Indicates the length of the service subfield, the k service length subfields include a first length subfield and a second length subfield, and the k service flag bits include a first service flag bit and a second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,第三业务标志位用于指示所述选项字段还包括第三业务子字段,第一业务子字段、第二业务子字段和第三业务子字段依次排列,第三业务标志位和第三业务子字段均对应第三业务,第一业务、第二业务和第三业务互不相同,所述m个业务包括第三业务;所述k个业务长度子字段还包括第三长度子字段,第三长度子字段用于指示第三业务子字段的长度。Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, and the third service flag bit. The second service subfield and the third service subfield are arranged in sequence. The third service flag bit and the third service subfield both correspond to the third service. The first service, the second service and the third service are different from each other. The m services Including the third service; the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,第三业务标志位用于指示所述选项字段还包括第三业务子字段,第一业务子字段、第二业务子字段和第三业务子字段依次排列,第三业务标志位和第三业务子字段均对应第三业务,第一业务、第二业务和第三业务互不相同,所述m个业务包括第三业务;所述k个业务标志位不包括第三业务标志位,第三业务子字段的长度根据该选项字段的长度、第一业务子字段的长度和第二业务子字段的长度确定。Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service subfield , the second business subfield and the third business subfield are arranged in order, the third business flag bit and the third business subfield both correspond to the third business, the first business, the second business and the third business are different from each other, the m Each service includes the third service; the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the length of the second service subfield. The length is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与该k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述选项字段还包括流指示子字段,该流指示子字段用于指示所述报文所属的数据流。Optionally, the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs.
可选的,标志子字段、流指示子字段、第一业务子字段和第二业务子字段依次排列,该标志子字段还包括流标志位,该流标志位用于指示所述选项字段包括该流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit, and the flow flag bit is used to indicate that the option field includes the Stream indication subfield.
可选的,流指示子字段、标志子字段、第一业务子字段和第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,第一长度子字段在第一业务子字段中,第二长度子字段在第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,第一业务子字段还包括第一类型空间,第一类型空间用于指示第一业务;第二业务子字段还包括第二类型空间,第二类型空间用于指示第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the second type space is used to indicate the second service.
可选的,第一业务子字段还包括第一数据空间,第一数据空间用于携带第一业务的业务信息;第二业务子字段还包括第二数据空间,第二数据空间用于指示第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, and the second data space is used to indicate the first service. 2. Business information of the business.
可选的,所述选项字段还包括流指示子字段,该流指示子字段用于指示所述报文所属的数据流,该流指示子字段、第一业务子字段和第二业务子字段依次排列。Optionally, the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs. The flow indication subfield, the first service subfield, and the second service subfield are sequentially arrangement.
可选的,第一业务子字段的长度为4×p字节,第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述指示信息用于指示所述头节点生成包括IPv6扩展头的IPv6报文,该IPv6扩展头包括所述选项字段。Optionally, the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field.
可选的,该IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the flow-following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service, the following-flow detection service, the APN service, Any one of DetNet service, SFC service and path segment service.
第四方面,提供了一种业务处理方法,该方法包括:头节点接收控制器发送的指示信息,该指示信息用于指示该头节点生成包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度;该头节点根据该指示信息生成包括该选项字段的报文。 In a fourth aspect, a service processing method is provided, which method includes: a head node receiving instruction information sent by a controller, the instruction information being used to instruct the head node to generate a message including an option field, the option field including the first service subfield, second service subfield, first length subfield and second length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield; the head node generates a message including the option field according to the indication information.
可选的,所述选项字段还包括标志子字段,该标志子字段用于指示该选项字段包括第一业务子字段和第二业务子字段。Optionally, the option field also includes a flag subfield, which is used to indicate that the option field includes a first service subfield and a second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,第一业务标志位用于指示所述选项字段中包括第一业务子字段,第二业务标志位用于指示该选项字段中包括第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. This option field includes the second service subfield.
可选的,第一长度子字段与第一业务标志位对应,第二长度子字段与第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,第一业务标志位和第二业务标志位按序排列,第一长度子字段和第二长度子字段按序排列,第一长度子字段和第二长度子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, and the order of the first length subfield and the second length subfield is the same as that of the first length subfield and the second length subfield. The arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
可选的,第一业务标志位和第二业务标志位按序排列,第一业务子字段和第二业务子字段按序排列,第一业务子字段和第二业务子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, and the order of the first service subfield and the second service subfield is the same as that of the first service subfield. The arrangement sequence of the first service flag bit and the second service flag bit corresponds to each other.
可选的,所述标志子字段包括m个业务标志位,该m个业务标志位一一对应m个业务,该m个业务互不相同,该m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括该每个业务标志位对应业务的业务子字段,该m个业务标志位包括第一业务标志位和第二业务标志位,该m个业务包括第一业务和第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each service flag bit in the m service flag bits Used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. The m services include the first service. And the second business, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,该k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在k个业务标志位中的任一业务标志位指示所述选项字段包括该任一业务标志位对应业务的业务子字段时,该任一业务标志位对应的业务长度子字段用于指示该业务子字段的长度,该k个业务长度子字段包括第一长度子字段和第二长度子字段,该k个业务标志位包括第一业务标志位和第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to the any service flag bit, the service length subfield corresponding to the any service flag bit is used for Indicates the length of the service subfield, the k service length subfields include a first length subfield and a second length subfield, and the k service flag bits include a first service flag bit and a second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,第三业务标志位用于指示所述选项字段还包括第三业务子字段,第一业务子字段、第二业务子字段和第三业务子字段依次排列,第三业务标志位和第三业务子字段均对应第三业务,第一业务、第二业务和第三业务互不相同,所述m个业务包括第三业务;所述k个业务长度子字段还包括第三长度子字段,第三长度子字段用于指示第三业务子字段的长度。Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, and the third service flag bit. The second service subfield and the third service subfield are arranged in sequence. The third service flag bit and the third service subfield both correspond to the third service. The first service, the second service and the third service are different from each other. The m services Including the third service; the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,第三业务标志位用于指示所述选项字段还包括第三业务子字段,第一业务子字段、第二业务子字段和第三业务子字段依次排列,第三业务标志位和第三业务子字段均对应第三业务,第一业务、第二业务和第三业务互不相同,所述m个业务包括第三业务;所述k个业务标志位不包括第三业务标志位,第三业务子字段的长度根据该选项字段的长度、第一业务子字段的长度和第二业务子字段的长度确定。Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service subfield , the second business subfield and the third business subfield are arranged in order, the third business flag bit and the third business subfield both correspond to the third business, the first business, the second business and the third business are different from each other, the m Each service includes the third service; the k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the length of the second service subfield. The length is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与该k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述选项字段还包括流指示子字段,该流指示子字段用于指示所述报文所属的数据流。Optionally, the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs.
可选的,标志子字段、流指示子字段、第一业务子字段和第二业务子字段依次排列,该 标志子字段还包括流标志位,该流标志位用于指示选项字段包括该流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit, which is used to indicate that the option field includes the flow indication subfield.
可选的,流指示子字段、标志子字段、第一业务子字段和第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,第一长度子字段在第一业务子字段中,第二长度子字段在第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,第一业务子字段还包括第一类型空间,第一类型空间用于指示第一业务;第二业务子字段还包括第二类型空间,第二类型空间用于指示第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the second type space is used to indicate the second service.
可选的,第一业务子字段还包括第一数据空间,第一数据空间用于携带第一业务的业务信息;第二业务子字段还包括第二数据空间,第二数据空间用于指示第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, and the second data space is used to indicate the first service. 2. Business information of the business.
可选的,所述选项字段还包括流指示子字段,该流指示子字段用于指示所述报文所属的数据流,该流指示子字段、第一业务子字段和第二业务子字段依次排列。Optionally, the option field also includes a flow indication subfield, which is used to indicate the data flow to which the message belongs. The flow indication subfield, the first service subfield, and the second service subfield are sequentially arrangement.
可选的,第一业务子字段的长度为4×p字节,第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述指示信息用于指示所述头节点生成包括IPv6扩展头的IPv6报文,该IPv6扩展头包括所述选项字段,该头节点根据该指示信息生成包括该选项字段的报文,包括:该头节点根据该指示信息生成包括该IPv6扩展头的IPv6报文。Optionally, the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, the IPv6 extension header includes the option field, and the head node generates a message including the option field according to the instruction information. , including: the head node generates an IPv6 message including the IPv6 extension header according to the indication information.
可选的,该IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the flow-following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service, the following-flow detection service, the APN service, Any one of DetNet service, SFC service and path segment service.
第五方面,提供了一种业务处理装置,应用于网络设备,该业务处理装置包括收发模块和处理模块,该收发模块用于执行如上述第一方面或第一方面的任一可选方式所提供的方法中的收发操作,该处理模块用于执行如上述第一方面或第一方面的任一可选方式所提供的方法中的除收发操作之外的操作。其中,收发操作可以是接收和/或发送操作。In a fifth aspect, a service processing device is provided, which is applied to network equipment. The service processing device includes a transceiver module and a processing module. The transceiver module is used to perform the above-mentioned first aspect or any optional method of the first aspect. The processing module is configured to perform operations other than the sending and receiving operations in the method provided by the above-mentioned first aspect or any optional manner of the first aspect. The transceiver operation may be a receive and/or send operation.
所述收发模块,用于接收包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度;The transceiver module is configured to receive a message including an option field. The option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield. The first service subfield The field corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the first length subfield is used to indicate the length of the first service subfield. , the second length subfield is used to indicate the length of the second service subfield;
所述处理模块,用于根据所述第一业务子字段处理所述报文。The processing module is configured to process the message according to the first service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。 Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, the k service length subfields include the first length subfield and the second length subfield, and the k service flag bits include the A service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流,所述处理模块,用于根据所述流指示子字段和所述第一业务子字段处理所述报文。Optionally, the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, and the processing module is configured to determine the data flow according to the flow indication subfield and the The first service subfield processes the message.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第 一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first A service; the second service subfield also includes a second type space, and the second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流,所述处理模块,用于根据所述流指示子字段和所述第一业务子字段处理所述报文。Optionally, the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, and the processing module is configured to determine the data flow according to the flow indication subfield and the The first service subfield processes the message.
可选的,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述报文为IPv6报文,所述报文包括IPv6扩展头,所述IPv6扩展头包括所述选项字段。Optionally, the message is an IPv6 message, the message includes an IPv6 extension header, and the IPv6 extension header includes the option field.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
可选的,所述网络设备支持所述第一业务和所述第二业务,所述处理模块,还用于根据所述第二业务子字段处理所述报文。Optionally, the network device supports the first service and the second service, and the processing module is further configured to process the message according to the second service subfield.
可选的,所述网络设备支持所述第一业务但不支持所述第二业务,所述处理模块,还用于跳过第二业务子字段。Optionally, the network device supports the first service but does not support the second service, and the processing module is further configured to skip the second service subfield.
第六方面,提供了一种业务处理装置,应用于网络设备,该业务处理装置包括收发模块和处理模块,该收发模块用于执行如上述第二方面或第二方面的任一可选方式所提供的方法中的收发操作,该处理模块用于执行如上述第二方面或第二方面的任一可选方式所提供的方法中的除收发操作之外的操作。其中,收发操作可以是接收和/或发送操作。A sixth aspect provides a service processing device, which is applied to network equipment. The service processing device includes a transceiver module and a processing module. The transceiver module is used to perform the above-mentioned second aspect or any optional method of the second aspect. The processing module is configured to perform operations other than the sending and receiving operations in the method provided by the above-mentioned second aspect or any optional manner of the second aspect. The transceiver operation may be a receive and/or send operation.
所述处理模块,用于生成包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度;The processing module is configured to generate a message including an option field. The option field includes a first service subfield, a second service subfield, a first length subfield and a second length subfield. The first service subfield The field corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the first length subfield is used to indicate the length of the first service subfield. , the second length subfield is used to indicate the length of the second service subfield;
所述收发模块,用于发送所述报文。The transceiver module is used to send the message.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和 所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, and the first length subfield and The second length subfields are arranged in order, and the arrangement order of the first length subfield and the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, the k service length subfields include the first length subfield and the second length subfield, and the k service flag bits include the A service flag bit and the second service flag bit.
可选的,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service subfield, the The second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the second service and The third services are different from each other, and the m services include the third services;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service subfield, the The second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the second service and The third services are different from each other, and the m services include the third services;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流,所述处理模块,用于根据所述流指示子字段和所述第一业务子字段处理所述报文。Optionally, the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, and the processing module is configured to determine the data flow according to the flow indication subfield and the The first service subfield processes the message.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第 二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the first service subfield. In the second business subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流,所述处理模块,用于根据所述流指示子字段和所述第一业务子字段处理所述报文。Optionally, the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, and the processing module is configured to determine the data flow according to the flow indication subfield and the The first service subfield processes the message.
可选的,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述报文为IPv6报文,所述报文包括IPv6扩展头,所述IPv6扩展头包括所述选项字段。Optionally, the message is an IPv6 message, the message includes an IPv6 extension header, and the IPv6 extension header includes the option field.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
可选的,所述网络设备支持所述第一业务和所述第二业务,所述处理模块,还用于根据所述第二业务子字段处理所述报文。Optionally, the network device supports the first service and the second service, and the processing module is further configured to process the message according to the second service subfield.
可选的,所述网络设备支持所述第一业务但不支持所述第二业务,所述处理模块,还用于跳过所述第二业务子字段。Optionally, the network device supports the first service but does not support the second service, and the processing module is further configured to skip the second service subfield.
可选的,所述收发模块,还用于接收控制器发送的指示信息,所述指示信息用于指示所述网络设备生成包括所述选项字段的报文;Optionally, the transceiver module is also configured to receive instruction information sent by the controller, where the instruction information is used to instruct the network device to generate a message including the option field;
所述处理模块,用于根据所述指示信息生成包括所述选项字段的所述报文。The processing module is configured to generate the message including the option field according to the indication information.
第七方面,提供了一种业务处理装置,应用于控制器,该业务处理装置包括收发模块和处理模块,该收发模块用于执行如上述第三方面或第三方面的任一可选方式所提供的方法中的收发操作,该处理模块用于执行如上述第三方面或第三方面的任一可选方式所提供的方法中的除收发操作之外的操作。其中,收发操作可以是接收和/或发送操作。In a seventh aspect, a business processing device is provided, applied to a controller. The business processing device includes a transceiver module and a processing module. The transceiver module is used to perform the above-mentioned third aspect or any optional method of the third aspect. For the transceiver operation in the method provided, the processing module is configured to perform operations other than the transceiver operation in the method provided by the above-mentioned third aspect or any optional manner of the third aspect. The transceiver operation may be a receive and/or send operation.
所述收发模块,用于向头节点发送指示信息,所述指示信息用于指示所述头节点生成包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度。The transceiver module is configured to send indication information to the head node. The indication information is used to instruct the head node to generate a message including an option field. The option field includes a first service subfield, a second service subfield, A first length subfield and a second length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, so The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项 字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The business flag bit is used to indicate the option The second service subfield is included in the field.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, the k service length subfields include the first length subfield and the second length subfield, and the k service flag bits include the A service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流。Optionally, the option field also includes a flow indication subfield, and the flow indication subfield is used to indicate the data flow to which the message belongs.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括 所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bits used to indicate that the options field includes The flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, the flow indication subfield, the first service subfield and the The second business subfields are arranged in sequence.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述指示信息用于指示所述头节点生成包括IPv6扩展头的IPv6报文,所述IPv6扩展头包括所述选项字段。Optionally, the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
第八方面,提供了一种业务处理装置,应用于头节点,该业务处理装置包括收发模块和处理模块,该收发模块用于执行如上述第四方面或第四方面的任一可选方式所提供的方法中的收发操作,该处理模块用于执行如上述第四方面或第四方面的任一可选方式所提供的方法中的除收发操作之外的操作。其中,收发操作可以是接收和/或发送操作。In an eighth aspect, a service processing device is provided, applied to a head node. The service processing device includes a transceiver module and a processing module. The transceiver module is used to perform the above-mentioned fourth aspect or any optional method of the fourth aspect. The processing module is configured to perform operations other than the sending and receiving operations in the method provided by the above-mentioned fourth aspect or any optional manner of the fourth aspect. The transceiver operation may be a receive and/or send operation.
所述收发模块,用于接收控制器发送的指示信息,所述指示信息用于指示所述头节点生成包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度;The transceiver module is configured to receive instruction information sent by the controller. The instruction information is used to instruct the head node to generate a message including an option field. The option field includes a first service subfield and a second service subfield. , a first length subfield and a second length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield;
所述处理模块,用于根据所述指示信息生成包括所述选项字段的报文。The processing module is configured to generate a message including the option field according to the indication information.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。 Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, the k service length subfields include the first length subfield and the second length subfield, and the k service flag bits include the A service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流。Optionally, the option field also includes a flow indication subfield, and the flow indication subfield is used to indicate the data flow to which the message belongs.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。 Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, the flow indication subfield, the first service subfield and the The second business subfields are arranged in sequence.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述指示信息用于指示所述头节点生成包括IPv6扩展头的IPv6报文,所述IPv6扩展头包括所述选项字段,所述处理模块,用于根据所述指示信息生成包括所述IPv6扩展头的IPv6报文。Optionally, the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field, and the processing module is configured to generate an IPv6 message including: The IPv6 extension header of the IPv6 message.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
第九方面,提供了一种业务处理装置,包括存储器和处理器;该存储器用于存储计算机程序;该处理器用于执行该存储器中存储的计算机程序以使得该业务处理装置执行如上述第一方面或第一方面的任一可选方式所提供的业务处理方法。A ninth aspect provides a business processing device, including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device performs the above-mentioned first aspect Or the business processing method provided by any optional method in the first aspect.
第十方面,提供了一种业务处理装置,包括存储器和处理器;该存储器用于存储计算机程序;该处理器用于执行该存储器中存储的计算机程序以使得该业务处理装置执行如上述第二方面或第二方面的任一可选方式所提供的业务处理方法。In a tenth aspect, a business processing device is provided, including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device performs the above-mentioned second aspect Or the business processing method provided by any optional method in the second aspect.
第十一方面,提供了一种业务处理装置,包括:存储器和处理器;该存储器用于存储计算机程序;该处理器用于执行该存储器中存储的计算机程序以使得该业务处理装置执行如上述第三方面所提供的业务处理方法。In an eleventh aspect, a business processing device is provided, including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device executes the above-mentioned The business processing methods provided by the three aspects.
第十二方面,提供了一种业务处理装置,包括:存储器和处理器;该存储器用于存储计算机程序;该处理器用于执行该存储器中存储的计算机程序以使得该业务处理装置执行如上述第四方面所提供的业务处理方法。In a twelfth aspect, a business processing device is provided, including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device executes the above-mentioned The business processing methods provided by the four aspects.
第十三方面,提供了一种业务处理系统,包括第一网络设备和第二网络设备;In a thirteenth aspect, a business processing system is provided, including a first network device and a second network device;
第一网络设备,用于生成包括选项字段的报文,并向第二网络设备发送该报文,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度;The first network device is configured to generate a message including an option field and send the message to the second network device. The option field includes a first service subfield, a second service subfield, a first length subfield and a second Length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the The second length subfield is used to indicate the length of the second service subfield;
第二网络设备,用于接收该报文,并根据第一业务子字段处理该报文。The second network device is used to receive the message and process the message according to the first service subfield.
可选的,该业务处理系统还包括第三网络设备,第二网络设备还用于向第三网络设备发 送该报文;第三网络设备用于接收该报文,并根据第二业务子字段处理该报文。Optionally, the service processing system also includes a third network device, and the second network device is also used to send a message to the third network device. Send the message; the third network device is used to receive the message and process the message according to the second service subfield.
可选的,该业务处理系统还包括控制器,用于向第一网络设备发送指示信息,该指示信息用于指示第一网络设备生成包括所述选项字段的报文;对应的,第一网络设备,用于根据该指示信息生成包括该选项字段的报文。Optionally, the service processing system further includes a controller configured to send instruction information to the first network device, where the instruction information is used to instruct the first network device to generate a message including the option field; correspondingly, the first network device The device is used to generate a message including the option field based on the indication information.
可选的,第一网络设备是该报文的转发路径上的头节点,第二网络设备是该转发路径上的中间节点,第三网络设备是该转发路径上的中间节点或尾节点。Optionally, the first network device is the head node on the forwarding path of the message, the second network device is the intermediate node on the forwarding path, and the third network device is the intermediate node or tail node on the forwarding path.
可选的,上述第五方面或第五方面的任一可选实现方式所提供的业务处理装置可以作为所述报文的转发路径上的中间节点或尾节点,上述第六方面或第六方面的任一可选实现方式所提供的业务处理装置可以作为报文的转发路径上的头节点,上述第七方面或第七方面的任一可选实现方式所提供的业务处理装置可以作为控制器。Optionally, the service processing device provided by the fifth aspect or any optional implementation of the fifth aspect may serve as an intermediate node or tail node on the forwarding path of the message. The sixth aspect or the sixth aspect may The service processing device provided by any optional implementation of the seventh aspect can be used as the head node on the forwarding path of the message, and the service processing device provided by any optional implementation of the seventh aspect or the seventh aspect can be used as the controller. .
可选的,上述第七方面或第七方面的任一可选实现方式所提供的业务处理装置可以作为控制器,上述第八方面或第八方面的任一可选实现方式所提供的业务处理装置可以作为头节点。Optionally, the service processing device provided by the above-mentioned seventh aspect or any optional implementation of the seventh aspect can be used as a controller, and the service processing device provided by the above-mentioned eighth aspect or any optional implementation of the eighth aspect. Devices can serve as head nodes.
可选的,上述第九方面所提供的业务处理装置可以作为报文的转发路径上的中间节点或尾节点,上述第十方面所提供的业务处理装置可以作为报文的转发路径上的头节点,上述第十一方面所提供的业务处理装置可以作为控制器。Optionally, the service processing device provided in the ninth aspect can be used as an intermediate node or tail node on the forwarding path of the message, and the service processing device provided in the tenth aspect can be used as the head node on the forwarding path of the message. , the business processing device provided in the eleventh aspect above can serve as a controller.
可选的,上述第十一方面所提供的业务处理装置可以作为控制器,上述第十二方面所提供的业务处理装置可以作为报文的转发路径上的头节点。Optionally, the service processing device provided in the eleventh aspect may serve as a controller, and the service processing device provided in the twelfth aspect may serve as a head node on the forwarding path of the message.
第十四方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,该计算机程序被执行时,实现如上述第一方面或第一方面的任一可选方式所提供的业务处理方法,或者实现如上述第二方面或第二方面的任一可选方式所提供的业务处理方法,或者实现如上述第三方面或第三方面的任一可选方式所提供的所提供的业务处理方法,或者实现如上述第四方面或第四方面的任一可选方式所提供的所提供的业务处理方法。In a fourteenth aspect, a computer-readable storage medium is provided. A computer program is stored in the computer-readable storage medium. When the computer program is executed, the above-mentioned first aspect or any optional method of the first aspect is implemented. The provided business processing method either implements the business processing method provided by the above-mentioned second aspect or any optional method of the second aspect, or implements the business processing method provided by the above-mentioned third aspect or any optional method of the third aspect. The provided business processing method, or implement the provided business processing method as provided in the above fourth aspect or any optional manner of the fourth aspect.
第十五方面,提供了一种计算机程序产品,该计算机程序产品包括程序或代码,该程序或代码被执行时,实现如上述第一方面或第一方面的任一可选方式所提供的业务处理方法,或者实现如上述第二方面或第二方面的任一可选方式所提供的业务处理方法,或者实现如上述第三方面或第三方面的任一可选方式所提供的所提供的业务处理方法,或者实现如上述第四方面或第四方面的任一可选方式所提供的所提供的业务处理方法。A fifteenth aspect provides a computer program product. The computer program product includes a program or code. When the program or code is executed, the business provided by the above-mentioned first aspect or any optional method of the first aspect is implemented. The processing method, or implements the business processing method provided by the above second aspect or any optional method of the second aspect, or implements the service processing method provided by the above third aspect or any optional method of the third aspect. Business processing method, or implement the business processing method provided as provided in the above fourth aspect or any optional method of the fourth aspect.
第十六方面,提供了一种芯片,该芯片包括可编程逻辑电路和/或程序指令,该芯片运行时,实现如上述第一方面或第一方面的任一可选方式所提供的业务处理方法,或者实现如上述第二方面或第二方面的任一可选方式所提供的业务处理方法,或者实现如上述第三方面或第三方面的任一可选方式所提供的所提供的业务处理方法,或者实现如上述第四方面或第四方面的任一可选方式所提供的所提供的业务处理方法。A sixteenth aspect provides a chip. The chip includes programmable logic circuits and/or program instructions. When the chip is run, it implements the business processing provided by the above-mentioned first aspect or any optional method of the first aspect. method, or implement the business processing method as provided in the above second aspect or any optional manner of the second aspect, or implement the provided services as provided in the above third aspect or any optional manner of the third aspect. processing method, or implement the provided business processing method as provided in the above fourth aspect or any optional manner of the fourth aspect.
第十七方面,提供了一种数据结构,所述数据结构包括选项字段,所述选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度。 In a seventeenth aspect, a data structure is provided, the data structure includes an option field, the option field includes a first service subfield, a second service subfield, a first length subfield and a second length subfield, so The first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the first length subfield is used to indicate the first The length of the service subfield, and the second length subfield is used to indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, the k service length subfields include the first length subfield and the second length subfield, and the k service flag bits include the A service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。 Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流。Optionally, the option field also includes a flow indication subfield, and the flow indication subfield is used to indicate the data flow to which the message belongs.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the option field also includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, the flow indication subfield, the first service subfield and the The second business subfields are arranged in sequence.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
第十八方面,提供了一种业务处理方法,所述方法包括:In an eighteenth aspect, a business processing method is provided, and the method includes:
网络设备接收包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段和流指示子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述流指示子字段用于指示所述报文所属的数据流;The network device receives a message including an option field. The option field includes a first service subfield, a second service subfield and a flow indication subfield. The first service subfield corresponds to the first service, and the second service subfield The field corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs;
所述网络设备根据所述流指示子字段和所述第一业务子字段处理所述报文。The network device processes the message according to the flow indication subfield and the first service subfield.
可选的,所述选项字段还包括第一长度子字段和第二长度子字段,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度。Optionally, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. To indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和 所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, and the first length subfield and The second length subfields are arranged in order, and the arrangement order of the first length subfield and the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, the k service length subfields include the first length subfield and the second length subfield, and the k service flag bits include the A service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第 一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first A service; the second service subfield also includes a second type space, and the second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述报文为IPv6报文,所述报文包括IPv6扩展头,所述IPv6扩展头包括所述选项字段。Optionally, the message is an IPv6 message, the message includes an IPv6 extension header, and the IPv6 extension header includes the option field.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
可选的,所述网络设备支持所述第一业务和所述第二业务,所述方法还包括:所述网络设备根据所述流指示子字段和所述第二业务子字段处理所述报文。Optionally, the network device supports the first service and the second service, and the method further includes: the network device processes the packet according to the flow indication subfield and the second service subfield. arts.
可选的,所述网络设备支持所述第一业务但不支持所述第二业务,所述方法还包括:所述网络设备跳过所述第二业务子字段。Optionally, the network device supports the first service but does not support the second service, and the method further includes: the network device skips the second service subfield.
第十九方面,提供了一种业务处理方法,所述方法包括:In a nineteenth aspect, a business processing method is provided, and the method includes:
网络设备生成包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度;The network device generates a message including an option field. The option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield. The first service subfield corresponds to the first service. , the second service subfield corresponds to a second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the second The length subfield is used to indicate the length of the second service subfield;
所述网络设备发送所述报文。The network device sends the message.
可选的,所述选项字段还包括第一长度子字段和第二长度子字段,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度。Optionally, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. To indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和 所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, and the first service subfield and The second service subfields are arranged in sequence, and the arrangement order of the first service subfield and the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, the k service length subfields include the first length subfield and the second length subfield, and the k service flag bits include the A service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第 一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the first Service information of a service; the second service subfield also includes a second data space, and the second data space is used to indicate the service information of the second service.
可选的,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述报文为IPv6报文,所述报文包括IPv6扩展头,所述IPv6扩展头包括所述选项字段。Optionally, the message is an IPv6 message, the message includes an IPv6 extension header, and the IPv6 extension header includes the option field.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
可选的,所述网络设备支持所述第一业务和所述第二业务,所述方法还包括:所述网络设备根据所述流指示子字段和所述第二业务子字段处理所述报文。Optionally, the network device supports the first service and the second service, and the method further includes: the network device processes the packet according to the flow indication subfield and the second service subfield. arts.
可选的,所述网络设备支持所述第一业务但不支持所述第二业务,所述方法还包括:所述网络设备跳过所述第二业务子字段。Optionally, the network device supports the first service but does not support the second service, and the method further includes: the network device skips the second service subfield.
可选的,所述网络设备接收控制器发送的指示信息,所述指示信息用于指示所述网络设备生成包括所述选项字段的报文;相应的,所述网络设备生成包括选项字段的报文,包括:所述网络设备根据所述指示信息生成包括所述选项字段的所述报文。Optionally, the network device receives instruction information sent by the controller, and the instruction information is used to instruct the network device to generate a message including the option field; accordingly, the network device generates a message including the option field. The message includes: the network device generates the message including the option field according to the indication information.
第二十方面,提供了一种业务处理方法,所述方法包括:In a twentieth aspect, a business processing method is provided, and the method includes:
控制器向头节点发送指示信息,所述指示信息用于指示所述头节点生成包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段和流指示子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述流指示子字段用于指示所述报文所属的数据流。The controller sends instruction information to the head node, where the instruction information is used to instruct the head node to generate a message including an option field, where the option field includes a first service subfield, a second service subfield and a flow indication subfield, The first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to indicate the message The data stream it belongs to.
可选的,所述选项字段还包括第一长度子字段和第二长度子字段,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度。Optionally, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. To indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所 述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second business subfield is consistent with the The first service flag bit and the second service flag bit are arranged in a corresponding order.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, the k service length subfields include the first length subfield and the second length subfield, and the k service flag bits include the A service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示 所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate The service information of the second service.
可选的,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述指示信息用于指示所述头节点生成包括IPv6扩展头的IPv6报文,所述IPv6扩展头包括所述选项字段。Optionally, the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
第二十一方面,提供了一种业务处理方法,所述方法包括:In a twenty-first aspect, a business processing method is provided, and the method includes:
头节点接收控制器发送的指示信息,所述指示信息用于指示所述头节点生成包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段和流指示子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述流指示子字段用于指示所述报文所属的数据流;The head node receives the instruction information sent by the controller. The instruction information is used to instruct the head node to generate a message including an option field. The option field includes a first service subfield, a second service subfield and a flow indication subfield. , the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to indicate the report The data stream to which the document belongs;
所述头节点根据所述指示信息生成包括所述选项字段的报文。The head node generates a message including the option field according to the indication information.
可选的,所述选项字段还包括第一长度子字段和第二长度子字段,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度。Optionally, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. To indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个 业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields are consistent with the m The k service flag bits in the service flag bits correspond one to one, 1≤k≤m, and k is an integer. Any one of the k service flag bits indicates that the option field includes any of the When the service flag bit corresponds to the service subfield of the service, the service length subfield corresponding to any of the service flag bits is used to indicate the length of the service subfield, and the k service length subfields include the first length subfield. field and the second length subfield, the k service flag bits include the first service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述指示信息用于指示所述头节点生成包括IPv6扩展头的IPv6报文,所述IPv6扩展头包括所述选项字段,所述头节点根据所述指示信息生成包括所述选项字段的报文,包括:所述头节点根据所述指示信息生成包括所述IPv6扩展头的IPv6报文。 Optionally, the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field, and the head node generates an IPv6 message including the option field according to the instruction information. The message of the field includes: the head node generates an IPv6 message including the IPv6 extension header according to the indication information.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
第二十二方面,提供了一种业务处理装置,应用于网络设备,该业务处理装置包括收发模块和处理模块,该收发模块用于执行如上述第十八方面或第十八方面的任一可选方式所提供的方法中的收发操作,该处理模块用于执行如上述第十八方面或第十八方面的任一可选方式所提供的方法中的除收发操作之外的操作。其中,收发操作可以是接收和/或发送操作。A twenty-second aspect provides a service processing device applied to network equipment. The service processing device includes a transceiver module and a processing module. The transceiver module is used to perform any one of the eighteenth aspect or the eighteenth aspect. For the transceiver operation in the method provided in the optional manner, the processing module is configured to perform operations other than the transceiver operation in the method provided by the eighteenth aspect or any optional method of the eighteenth aspect. The transceiver operation may be a receive and/or send operation.
所述收发模块,用于接收包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段和流指示子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述流指示子字段用于指示所述报文所属的数据流;The transceiver module is configured to receive a message including an option field. The option field includes a first service subfield, a second service subfield and a flow indication subfield. The first service subfield corresponds to the first service, so The second service subfield corresponds to a second service, the first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs;
所述处理模块,用于根据所述流指示子字段和所述第一业务子字段处理所述报文。The processing module is configured to process the message according to the flow indication subfield and the first service subfield.
可选的,所述选项字段还包括第一长度子字段和第二长度子字段,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度。Optionally, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. To indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务 长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, and the k services The length subfield includes the first length subfield and the second length subfield, and the k service flag bits include the first service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述报文为IPv6报文,所述报文包括IPv6扩展头,所述IPv6扩展头包括所述选项字段。Optionally, the message is an IPv6 message, the message includes an IPv6 extension header, and the IPv6 extension header includes the option field.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。 Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
可选的,所述网络设备支持所述第一业务和所述第二业务,所述处理模块,还用于根据所述流指示子字段和所述第二业务子字段处理所述报文。Optionally, the network device supports the first service and the second service, and the processing module is further configured to process the message according to the flow indication subfield and the second service subfield.
可选的,所述网络设备支持所述第一业务但不支持所述第二业务,所述处理模块,还用于跳过所述第二业务子字段。Optionally, the network device supports the first service but does not support the second service, and the processing module is further configured to skip the second service subfield.
第二十三方面,提供了一种业务处理装置,应用于网络设备,该业务处理装置包括收发模块和处理模块,该收发模块用于执行如上述第十九方面或第十九方面的任一可选方式所提供的方法中的收发操作,该处理模块用于执行如上述第十九方面或第十九方面的任一可选方式所提供的方法中的除收发操作之外的操作。其中,收发操作可以是接收和/或发送操作。In a twenty-third aspect, a service processing device is provided, which is applied to network equipment. The service processing device includes a transceiver module and a processing module. The transceiver module is used to perform any one of the above-mentioned nineteenth or nineteenth aspects. For the transceiver operation in the method provided in the optional manner, the processing module is configured to perform operations other than the transceiver operation in the method provided by the above-mentioned nineteenth aspect or any optional manner of the nineteenth aspect. The transceiver operation may be a receive and/or send operation.
所述处理模块,用于生成包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段和流指示子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述流指示子字段用于指示所述报文所属的数据流;The processing module is configured to generate a message including an option field. The option field includes a first service subfield, a second service subfield and a flow indication subfield. The first service subfield corresponds to the first service, so The second service subfield corresponds to a second service, the first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs;
所述收发模块,用于发送所述报文。The transceiver module is used to send the message.
可选的,所述选项字段还包括第一长度子字段和第二长度子字段,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度。Optionally, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. To indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务 长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, and the k services The length subfield includes the first length subfield and the second length subfield, and the k service flag bits include the first service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述报文为IPv6报文,所述报文包括IPv6扩展头,所述IPv6扩展头包括所述选项字段。Optionally, the message is an IPv6 message, the message includes an IPv6 extension header, and the IPv6 extension header includes the option field.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。 Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
可选的,所述网络设备支持所述第一业务和所述第二业务,所述处理模块,还用于根据所述流指示子字段和所述第二业务子字段处理所述报文。Optionally, the network device supports the first service and the second service, and the processing module is further configured to process the message according to the flow indication subfield and the second service subfield.
可选的,所述网络设备支持所述第一业务但不支持所述第二业务,所述处理模块,还用于跳过所述第二业务子字段。Optionally, the network device supports the first service but does not support the second service, and the processing module is further configured to skip the second service subfield.
可选的,所述收发模块,还用于接收控制器发送的指示信息,所述指示信息用于指示所述网络设备生成包括所述选项字段的报文;相应的,所述处理模块,用于根据所述指示信息生成包括所述选项字段的所述报文。Optionally, the transceiver module is also configured to receive instruction information sent by the controller, where the instruction information is used to instruct the network device to generate a message including the option field; correspondingly, the processing module uses Generate the message including the option field according to the instruction information.
第二十四方面,提供了一种业务处理装置,应用于控制器,该业务处理装置包括收发模块和处理模块,该收发模块用于执行如上述第二十方面或第二十方面的任一可选方式所提供的方法中的收发操作,该处理模块用于执行如上述第二十方面或第二十方面的任一可选方式所提供的方法中的除收发操作之外的操作。其中,收发操作可以是接收和/或发送操作。In the twenty-fourth aspect, a business processing device is provided, applied to a controller. The business processing device includes a transceiver module and a processing module. The transceiver module is used to perform any one of the twentieth aspect or the twentieth aspect. For the transceiver operation in the method provided in the optional manner, the processing module is configured to perform operations other than the transceiver operation in the method provided by the above-mentioned twentieth aspect or any optional manner of the twentieth aspect. The transceiver operation may be a receive and/or send operation.
所述收发模块,用于向头节点发送指示信息,所述指示信息用于指示所述头节点生成包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段和流指示子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述流指示子字段用于指示所述报文所属的数据流。The transceiver module is configured to send indication information to the head node. The indication information is used to instruct the head node to generate a message including an option field. The option field includes a first service subfield, a second service subfield and Flow indication subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to Indicates the data flow to which the packet belongs.
可选的,所述选项字段还包括第一长度子字段和第二长度子字段,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度。Optionally, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. To indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位 中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer, in the k service flag bits When any one of the service flag bits indicates that the option field includes a service subfield of the service corresponding to any of the service flag bits, the service length subfield corresponding to any of the service flag bits is used to indicate the length of the service subfield. Length, the k service length subfields include the first length subfield and the second length subfield, and the k service flag bits include the first service flag bit and the second service flag bit .
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述指示信息用于指示所述头节点生成包括IPv6扩展头的IPv6报文,所述IPv6扩展头包括所述选项字段。Optionally, the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业 务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes slicing service, flow detection service, APN service, DetNet service, SFC service Any one of the service and the path segment service; or the second service includes any one of the slicing service, the flow detection service, the APN service, the DetNet service, the SFC service and the path segment service.
第二十五方面,提供了一种业务处理装置,应用于头节点,该业务处理装置包括收发模块和处理模块,该收发模块用于执行如上述第二十一方面或第二十一方面的任一可选方式所提供的方法中的收发操作,该处理模块用于执行如上述第二十一方面或第二十一方面的任一可选方式所提供的方法中的除收发操作之外的操作。收发操作可以是接收和/或发送操作。In the twenty-fifth aspect, a business processing device is provided, which is applied to the head node. The business processing device includes a transceiver module and a processing module. The transceiver module is used to perform the above-mentioned twenty-first aspect or the twenty-first aspect. The processing module is used to perform the transceiver operation in the method provided by any optional method, the processing module is used to perform the transceiver operation in the method provided by any optional method of the twenty-first aspect or the twenty-first aspect, except for the transceiver operation. operation. Transceiver operations may be receive and/or send operations.
所述收发模块,用于接收控制器发送的指示信息,所述指示信息用于指示所述头节点生成包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段和流指示子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述流指示子字段用于指示所述报文所属的数据流;The transceiver module is configured to receive instruction information sent by the controller. The instruction information is used to instruct the head node to generate a message including an option field. The option field includes a first service subfield and a second service subfield. and flow indication subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is To indicate the data flow to which the message belongs;
所述处理模块,用于根据所述指示信息生成包括所述选项字段的报文。The processing module is configured to generate a message including the option field according to the indication information.
可选的,所述选项字段还包括第一长度子字段和第二长度子字段,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度。Optionally, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. To indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. , the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。 Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, the k service length subfields include the first length subfield and the second length subfield, and the k service flag bits include the A service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述指示信息用于指示所述头节点生成包括IPv6扩展头的IPv6报文,所述IPv6扩展头包括所述选项字段,所述处理模块,用于根据所述指示信息生成包括所述IPv6扩展头的IPv6报文。Optionally, the instruction information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, where the IPv6 extension header includes the option field, and the processing module is configured to generate an IPv6 message including: The IPv6 extension header of the IPv6 message.
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。Optionally, the IPv6 extension header includes any one of HBH and DOH.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
第二十六方面,提供了一种业务处理装置,包括存储器和处理器;该存储器用于存储计 算机程序;该处理器用于执行该存储器中存储的计算机程序以使得该业务处理装置执行如上述第十八方面或第十八方面的任一可选方式所提供的业务处理方法。In a twenty-sixth aspect, a business processing device is provided, including a memory and a processor; the memory is used to store calculations. a computer program; the processor is configured to execute the computer program stored in the memory so that the business processing device executes the business processing method provided in the eighteenth aspect or any optional manner of the eighteenth aspect.
第二十七方面,提供了一种业务处理装置,包括存储器和处理器;该存储器用于存储计算机程序;该处理器用于执行该存储器中存储的计算机程序以使得该业务处理装置执行如上述第十九方面或第十九方面的任一可选方式所提供的业务处理方法。In a twenty-seventh aspect, a business processing device is provided, including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device executes the above-mentioned first step. The business processing method provided by the 19th aspect or any optional method of the 19th aspect.
第二十八方面,提供了一种业务处理装置,包括:存储器和处理器;该存储器用于存储计算机程序;该处理器用于执行该存储器中存储的计算机程序以使得该业务处理装置执行如上述第二十方面所提供的业务处理方法。In the twenty-eighth aspect, a business processing device is provided, including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device performs the above The business processing methods provided in the twentieth aspect.
第二十九方面,提供了一种业务处理装置,包括:存储器和处理器;该存储器用于存储计算机程序;该处理器用于执行该存储器中存储的计算机程序以使得该业务处理装置执行如上述第二十一方面所提供的业务处理方法。In a twenty-ninth aspect, a business processing device is provided, including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the business processing device executes the above The business processing method provided in the twenty-first aspect.
第三十方面,提供了一种业务处理系统,包括第一网络设备和第二网络设备;In a thirtieth aspect, a business processing system is provided, including a first network device and a second network device;
第一网络设备,用于生成包括选项字段的报文,并向第二网络设备发送该报文,该选项字段包括第一业务子字段、第二业务子字段和流指示子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,该流指示子字段用于指示该报文所属的数据流;The first network device is configured to generate a message including an option field and send the message to the second network device. The option field includes a first service subfield, a second service subfield and a flow indication subfield. The first service The subfield corresponds to the first service, and the second service subfield corresponds to the second service. The first service is different from the second service. The flow indication subfield is used to indicate the data flow to which the message belongs;
第二网络设备,用于接收该报文,并根据该流指示子字段和第一业务子字段处理该报文。The second network device is configured to receive the message and process the message according to the flow indication subfield and the first service subfield.
可选的,该业务处理系统还包括第三网络设备,第二网络设备还用于向第三网络设备发送该报文;第三网络设备用于接收该报文,并根据该流指示子字段和第二业务子字段处理报文。Optionally, the service processing system also includes a third network device. The second network device is also used to send the message to the third network device; the third network device is used to receive the message and use the flow indication subfield to and the second business subfield to process the message.
可选的,该业务处理系统还包括控制器,用于向第一网络设备发送指示信息,该指示信息用于指示第一网络设备生成包括所述选项字段的报文;对应的,第一网络设备,用于根据该指示信息生成包括该选项字段的报文。Optionally, the service processing system further includes a controller configured to send instruction information to the first network device, where the instruction information is used to instruct the first network device to generate a message including the option field; correspondingly, the first network device The device is used to generate a message including the option field based on the indication information.
可选的,第一网络设备是该报文的转发路径上的头节点,第二网络设备是该转发路径上的中间节点,第三网络设备是该转发路径上的中间节点或尾节点。Optionally, the first network device is the head node on the forwarding path of the message, the second network device is the intermediate node on the forwarding path, and the third network device is the intermediate node or tail node on the forwarding path.
可选的,上述第二十二方面或第二十二方面的任一可选实现方式所提供的业务处理装置可以作为报文的转发路径上的中间节点或尾节点,上述第二十三方面或第二十三方面的任一可选实现方式所提供的业务处理装置可以作为报文的转发路径上的头节点,上述第二十四方面或第二十四方面的任一可选实现方式所提供的业务处理装置可以作为控制器。Optionally, the service processing device provided by the above-mentioned aspect 22 or any optional implementation of the twenty-second aspect can be used as an intermediate node or tail node on the forwarding path of the message. The above-mentioned twenty-third aspect Or the service processing device provided by any optional implementation of the twenty-third aspect can be used as the head node on the forwarding path of the message. The above-mentioned twenty-fourth aspect or any optional implementation of the twenty-fourth aspect The provided service processing device can serve as a controller.
可选的,上述第二十四方面或第二十四方面的任一可选实现方式所提供的业务处理装置可以作为控制器,上述第二十五方面或第二十五方面的任一可选实现方式所提供的业务处理装置可以作为头节点。Optionally, the service processing device provided by the above-mentioned twenty-fourth aspect or any optional implementation of the twenty-fourth aspect can be used as a controller, and the above-mentioned twenty-fifth aspect or any one of the twenty-fifth aspect can be used as a controller. The service processing device provided by the selected implementation mode can serve as the head node.
可选的,上述第二十六方面所提供的业务处理装置可以作为报文的转发路径上的中间节点或尾节点,上述第二十七方面所提供的业务处理装置可以作为报文的转发路径上的头节点,上述第二十八方面所提供的业务处理装置可以作为控制器。Optionally, the service processing device provided in the twenty-sixth aspect can be used as an intermediate node or tail node on the forwarding path of the message, and the service processing device provided in the twenty-seventh aspect can be used as the forwarding path of the message. On the head node, the service processing device provided in the twenty-eighth aspect above can serve as a controller.
可选的,上述第二十八方面所提供的业务处理装置可以作为控制器,上述第二十九方面所提供的业务处理装置可以作为报文的转发路径上的头节点。Optionally, the service processing device provided in the twenty-eighth aspect may serve as a controller, and the service processing device provided in the twenty-ninth aspect may serve as a head node on the forwarding path of the message.
第三十一方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算 机程序,该计算机程序被执行时,实现如上述第十八方面或第十八方面的任一可选方式所提供的业务处理方法,或者实现如上述第十九方面或第十九方面的任一可选方式所提供的业务处理方法,或者实现如上述第二十方面或第二十方面的任一可选方式所提供的所提供的业务处理方法,或者实现如上述第二十一方面或第二十一方面的任一可选方式所提供的所提供的业务处理方法。In a thirty-first aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores computer A computer program that, when executed, implements the business processing method provided by the eighteenth aspect or any optional method of the eighteenth aspect, or implements any of the nineteenth aspect or the nineteenth aspect. A business processing method provided by an optional method, or implementing the business processing method provided by the above-mentioned twentieth aspect or any optional method of the twentieth aspect, or implementing the above-mentioned twenty-first aspect or The business processing method provided by any optional method of aspect 21.
第三十二方面,提供了一种计算机程序产品,该计算机程序产品包括程序或代码,该程序或代码被执行时,实现如上述第十八方面或第十八方面的任一可选方式所提供的业务处理方法,或者实现如上述第十九方面或第十九方面的任一可选方式所提供的业务处理方法,或者实现如上述第二十方面或第二十方面的任一可选方式所提供的所提供的业务处理方法,或者实现如上述第二十一方面或第二十一方面的任一可选方式所提供的所提供的业务处理方法。A thirty-second aspect provides a computer program product. The computer program product includes a program or code. When the program or code is executed, it implements the above-mentioned eighteenth aspect or any optional method of the eighteenth aspect. Provided business processing method, or implement the business processing method provided by the above-mentioned nineteenth aspect or any optional method of the nineteenth aspect, or implement the above-mentioned twentieth aspect or any optional method of the twentieth aspect The provided business processing method provided by the method, or the provided business processing method provided by the above-mentioned twenty-first aspect or any optional method of the twenty-first aspect.
第三十三方面,提供了一种芯片,该芯片包括可编程逻辑电路和/或程序指令,该芯片运行时,实现如上述第十八方面或第十八方面的任一可选方式所提供的业务处理方法,或者实现如上述第十九方面或第十九方面的任一可选方式所提供的业务处理方法,或者实现如上述第二十方面或第二十方面的任一可选方式所提供的所提供的业务处理方法,或者实现如上述第二十一方面或第二十一方面的任一可选方式所提供的所提供的业务处理方法。In a thirty-third aspect, a chip is provided. The chip includes a programmable logic circuit and/or program instructions. When the chip is run, the chip implements the above-mentioned eighteenth aspect or any of the optional methods provided in the eighteenth aspect. The business processing method, or the business processing method provided by the nineteenth aspect or any optional method of the nineteenth aspect, or the business processing method provided by the twentieth aspect or any optional method of the twentieth aspect The provided business processing method is provided, or the provided business processing method is implemented as provided in the twenty-first aspect or any optional manner of the twenty-first aspect.
第三十四方面,提供了一种数据结构,所述数据结构包括选项字段,所述选项字段包括第一业务子字段、第二业务子字段和流指示子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述流指示子字段用于指示所述报文所属的数据流。In a thirty-fourth aspect, a data structure is provided. The data structure includes an option field. The option field includes a first service subfield, a second service subfield, and a flow indication subfield. The first service subfield Corresponding to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs.
可选的,所述选项字段还包括第一长度子字段和第二长度子字段,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度。Optionally, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. To indicate the length of the second service subfield.
可选的,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。Optionally, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield.
可选的,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。Optionally, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. The service flag bit is used to indicate that the option field includes the second service subfield.
可选的,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。Optionally, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, the first length subfield and The arrangement order of the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。Optionally, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, the first service subfield and The arrangement order of the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务的业务子字段,所述m个业务标志位包括所述第 一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。Optionally, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each of the m service flag bits The service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit, and the m service flag bits include the A service flag bit and the second service flag bit, the m services include the first service and the second service, m≥2, and m is an integer.
可选的,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。Optionally, the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the service corresponding to any one of the service flag bits The length subfield is used to indicate the length of the service subfield, the k service length subfields include the first length subfield and the second length subfield, and the k service flag bits include the A service flag bit and the second service flag bit.
可选的,k=m,所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service flag bit The subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, the The second service and the third service are different from each other, and the m services include the third service;
所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
可选的,k=m-1,所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;Optionally, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the third service flag bit is used to indicate that the option field also includes a third service subfield. A service subfield, the second service subfield and the third service subfield are arranged in order, the third service flag bit and the third service subfield both correspond to the third service, the first service, The second service and the third service are different from each other, and the m services include the third service;
所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
可选的,所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。Optionally, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。Optionally, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order. The flag subfield also includes a flow flag bit. The flow flag bit is used to indicate that the options field includes the flow indication subfield.
可选的,所述流指示子字段、所述标志子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。Optionally, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
可选的,所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。Optionally, the first service subfield also includes a first type space, and the first type space is used to indicate the first service; the second service subfield also includes a second type space, and the first type space is used to indicate the first service. The second type space is used to indicate the second service.
可选的,所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, The second data space is used to indicate service information of the second service.
可选的,所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。 Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive integers.
可选的,所述第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service; or the second service includes the slicing service and the following detection service. , APN service, DetNet service, SFC service and path segment service.
上述第二方面至第三十四方面的技术效果可以参考第一方面,在此不再赘述。For the technical effects of the above-mentioned second aspect to the thirty-fourth aspect, reference can be made to the first aspect and will not be described again here.
附图说明Description of drawings
图1是一种选项字段的结构示意图;Figure 1 is a schematic structural diagram of an option field;
图2是另一种选项字段的结构示意图;Figure 2 is a schematic structural diagram of another option field;
图3是图2所示的选项字段中的选项数据子字段的一种结构示意图;Figure 3 is a schematic structural diagram of the option data subfield in the option field shown in Figure 2;
图4是图2所示的选项字段中的选项数据子字段的另一种结构示意图;Figure 4 is another structural schematic diagram of the option data subfield in the option field shown in Figure 2;
图5是图2所示的选项字段中的选项数据子字段的再一种结构示意图;Figure 5 is another structural schematic diagram of the option data subfield in the option field shown in Figure 2;
图6是图2所示的选项字段中的选项数据子字段的又一种结构示意图;Figure 6 is another structural schematic diagram of the option data subfield in the option field shown in Figure 2;
图7是再一种选项字段的结构示意图;Figure 7 is a schematic structural diagram of yet another option field;
图8是又一种选项字段的结构示意图;Figure 8 is a schematic structural diagram of another option field;
图9是又一种选项字段的结构示意图;Figure 9 is a schematic structural diagram of another option field;
图10是又一种选项字段的结构示意图;Figure 10 is a schematic structural diagram of another option field;
图11是又一种选项字段的结构示意图;Figure 11 is a schematic structural diagram of another option field;
图12是图11所示的选项字段中的上下文头子字段的结构示意图;Figure 12 is a schematic structural diagram of the context header subfield in the option field shown in Figure 11;
图13是本申请实施例提供的一种应用场景的示意图;Figure 13 is a schematic diagram of an application scenario provided by the embodiment of the present application;
图14是本申请实施例提供的另一种应用场景的示意图;Figure 14 is a schematic diagram of another application scenario provided by the embodiment of the present application;
图15是本申请实施例提供的一种业务处理方法的流程图;Figure 15 is a flow chart of a business processing method provided by an embodiment of the present application;
图16是本申请实施例提供的一种选项字段的结构示意图;Figure 16 is a schematic structural diagram of an option field provided by an embodiment of the present application;
图17是本申请实施例提供的另一种选项字段的结构示意图;Figure 17 is a schematic structural diagram of another option field provided by an embodiment of the present application;
图18是本申请实施例提供的再一种选项字段的结构示意图;Figure 18 is a schematic structural diagram of yet another option field provided by an embodiment of the present application;
图19是本申请实施例提供的另一种业务处理方法的流程图;Figure 19 is a flow chart of another business processing method provided by an embodiment of the present application;
图20是本申请实施例提供的再一种业务处理方法的流程图;Figure 20 is a flow chart of yet another business processing method provided by an embodiment of the present application;
图21是本申请实施例提供的又一种业务处理方法的流程图;Figure 21 is a flow chart of yet another business processing method provided by an embodiment of the present application;
图22是本申请实施例提供的又一种业务处理方法的流程图;Figure 22 is a flow chart of yet another business processing method provided by an embodiment of the present application;
图23是本申请实施例提供的一种业务处理方法的示意图;Figure 23 is a schematic diagram of a business processing method provided by an embodiment of the present application;
图24是本申请实施例提供的一种业务处理装置的示意图;Figure 24 is a schematic diagram of a service processing device provided by an embodiment of the present application;
图25是本申请实施例提供的另一种业务处理装置的示意图;Figure 25 is a schematic diagram of another service processing device provided by an embodiment of the present application;
图26是本申请实施例提供的一种业务处理系统的示意图。Figure 26 is a schematic diagram of a business processing system provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图对本申请实施方式作进一步地详细描述。The embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
在目前的网络技术发展中,能够针对IPv6报文开展多个业务。例如,这些业务包括随流检测业务、切片业务、DetNet业务、APN业务以及SFC业务等。目前,通常在IPv6报文的IPv6扩展头中针对上述各个业务分别扩展不同的选项字段来携带对应业务的业务信息,使得 IPv6报文能够支持上述各个业务。其中,针对不同业务扩展的选项字段相互独立。In the current development of network technology, multiple services can be carried out for IPv6 messages. For example, these services include flow detection services, slicing services, DetNet services, APN services, and SFC services. Currently, different option fields are usually extended for each of the above services in the IPv6 extension header of the IPv6 message to carry the service information of the corresponding service, so that IPv6 packets can support each of the above services. Among them, the option fields for different business extensions are independent of each other.
需要说明的是,在本申请中,随流检测业务指的是随流检测相关的业务。切片业务指的是网络切片相关的业务。DetNet业务指的是确定性网络相关的业务。APN业务指的是应用感知网络相关的业务。SFC业务指的是服务功能链接相关的业务。其中,随流检测业务可以包括随流信息遥测(in-situ flow information telemetry,IFIT)业务或带内操作管理维护(in-suitoam operations administration and maintenance,IOAM)业务等。在不同的网络场景中,随流检测业务、切片业务、DetNet业务、APN业务以及SFC业务的称呼可能不同。例如,在一些网络场景中,切片业务也称为虚拟传输网络(virtual transport network,VTN)业务。It should be noted that in this application, the flow-following detection service refers to the flow-following detection-related services. Slicing services refer to network slicing related services. DetNet services refer to deterministic network-related services. APN services refer to application-aware network-related services. SFC business refers to the business related to service function links. Among them, the in-situ flow detection service can include in-situ flow information telemetry (IFIT) service or in-band operations management and maintenance (in-suitoam operations administration and maintenance, IOAM) service, etc. In different network scenarios, the names of the flow detection service, slicing service, DetNet service, APN service and SFC service may be different. For example, in some network scenarios, slicing services are also called virtual transport network (VTN) services.
下面对上述业务的业务信息,以及目前携带上述业务的业务信息的选项字段进行介绍。The service information of the above services and the option fields currently carrying the service information of the above services are introduced below.
示例的,IFIT业务的业务信息包括流标识(flow identification,flow ID)、丢包测量(packet loss measurement)标识、时延测量(packet delay measurement)标识、检测类型指示信息、检测周期等。流标识也可以称为流标签、流监测标识(flow monitoring identification,FMonID)等,指示要测量的业务流。检测类型指示信息用于指示检测类型,检测类型可以是端到端(end to end,E2E)检测类型或逐跳检测类型。目前针对IFIT业务扩展的选项字段如图1所示。该选项字段包括流指令指示(flow instruction indicator,FII)、流指令头(flow instruction header,FIH)和流指令扩展头(flow instruction extension header,FIEH),FIEH是该IFIT报头的可选部分。FII包括类型(type)子字段、长度(length)子字段和预留(reserved)子字段。类型子字段用于指示该IFIT报头。长度子字段用于指示FIH和FIEH的总长度。FIH包括流标识子字段、L子字段、D子字段、预留(reserved,R)子字段和头类型指示(header type indicator,HTI)子字段。流标识子字段用于携带流标识。L子字段用于携带丢包测量标识。D子字段用于携带时延测量标识。HTI子字段用于指示FIH的类型,HTI子字段的值是0、1、2、3或4,0为保留值,1和3均指示FIH为E2E FIH,并且HTI子字段的值为1时FIEH无效,HTI子字段的值为3时FIEH有效,2和4指示FIH为逐跳FIH,并且HTI子字段的值为2时FIEH无效,HTI子字段的值为4时FIEH有效。FIEH包括流标识扩展(flowID Ext)子字段、V子字段、P子字段、目的互联网协议(destination internet protocol,DIP)掩码(mask)子字段、源互联网协议(source internet protocol,SIP)掩码子字段和预留子字段。流标识扩展子字段用于携带扩展的流标识。V子字段用于携带反向流学习使能标记。P子字段指示检测周期,P子字段的值是0、1、2、3、4或5,0和1均为保留值,2表示检测周期为10秒,3表示检测周期为30秒,4表示检测周期为60秒,5表示检测周期为300秒。DIP掩码子字段用于携带自动反向流学习的DIP掩码长度。SIP掩码子字段用于携带自动反向流学习的SIP掩码长度。For example, the business information of the IFIT service includes flow identification (flow ID), packet loss measurement (packet loss measurement) identification, delay measurement (packet delay measurement) identification, detection type indication information, detection cycle, etc. Flow identification can also be called flow label, flow monitoring identification (flow monitoring identification, FMonID), etc., indicating the service flow to be measured. The detection type indication information is used to indicate the detection type, which can be an end-to-end (E2E) detection type or a hop-by-hop detection type. The current option fields for IFIT business expansion are shown in Figure 1. This option field includes flow instruction indicator (FII), flow instruction header (flow instruction header, FIH) and flow instruction extension header (flow instruction extension header, FIEH). FIEH is an optional part of the IFIT header. FII includes a type (type) subfield, a length (length) subfield and a reserved (reserved) subfield. The type subfield is used to indicate this IFIT header. The length subfield is used to indicate the total length of FIH and FIEH. FIH includes flow identification subfield, L subfield, D subfield, reserved (reserved, R) subfield and header type indicator (header type indicator, HTI) subfield. The flow identification subfield is used to carry the flow identification. The L subfield is used to carry the packet loss measurement identifier. The D subfield is used to carry the delay measurement identifier. The HTI subfield is used to indicate the type of FIH. The value of the HTI subfield is 0, 1, 2, 3 or 4. 0 is a reserved value. Both 1 and 3 indicate that the FIH is E2E FIH, and the value of the HTI subfield is 1. FIEH is invalid. FIEH is valid when the value of the HTI subfield is 3. 2 and 4 indicate that the FIH is hop-by-hop FIH. FIEH is invalid when the value of the HTI subfield is 2. FIEH is valid when the value of the HTI subfield is 4. FIEH includes flow identification extension (flowID Ext) subfield, V subfield, P subfield, destination internet protocol (destination internet protocol, DIP) mask (mask) subfield, source internet protocol (source internet protocol, SIP) mask subfield fields and reserved subfields. The flow identification extension subfield is used to carry the extended flow identification. The V subfield is used to carry the reverse flow learning enable flag. The P subfield indicates the detection period. The value of the P subfield is 0, 1, 2, 3, 4 or 5. 0 and 1 are both reserved values. 2 indicates that the detection period is 10 seconds, 3 indicates that the detection period is 30 seconds, and 4 It means the detection period is 60 seconds, 5 means the detection period is 300 seconds. The DIP mask subfield is used to carry the DIP mask length for automatic reverse flow learning. The SIP mask subfield is used to carry the SIP mask length for automatic reverse flow learning.
示例的,IOAM业务的业务信息包括流标识,指示要测量的流。目前针对IOAM业务扩展的选项字段如图2所示。该选项字段包括类型子字段、长度子字段、预留子字段、IOAM类型子字段和选项数据子字段。类型子字段用于指示该选项字段的类型。长度子字段用于指示选项数据子字段的长度。IOAM类型子字段用于指示选项数据子字段的类型。选项数据子字段的长度可变,选项数据子字段用于携带IOAM数据。IOAM数据可以包括流标识、报文标识、报文的转发路径上的IOAM节点(指的是支持IOAM的节点)的IOAM数据等。任一IOAM节点的IOAM数据可以包括该IOAM节点的节点标识、报文进入该IOAM节点的入端口、报文从该IOAM节点输出的出端口、报文进入该IOAM节点的入口时间戳、报文从该IOAM 节点输出的出口时间戳、报文在该IOAM节点的传输时延等。For example, the service information of the IOAM service includes a flow identifier, indicating the flow to be measured. The current option fields for IOAM business expansion are shown in Figure 2. The option field includes a type subfield, a length subfield, a reserved subfield, an IOAM type subfield and an option data subfield. The type subfield is used to indicate the type of this option field. The length subfield is used to indicate the length of the option data subfield. The IOAM type subfield is used to indicate the type of the option data subfield. The length of the option data subfield is variable, and the option data subfield is used to carry IOAM data. IOAM data may include flow identifiers, message identifiers, IOAM data of IOAM nodes (referring to nodes that support IOAM) on the forwarding path of the message, etc. The IOAM data of any IOAM node can include the node identifier of the IOAM node, the ingress port of the message entering the IOAM node, the egress port of the message output from the IOAM node, the entry timestamp of the message entering the IOAM node, and the message From the IOAM The egress timestamp output by the node, the transmission delay of the message at the IOAM node, etc.
其中,选项数据子字段的类型可以包括IOAM预分配跟踪选项类型(IOAM pre-allocated trace option-type)、IOAM增量跟踪选项类型(IOAM incremental trace option-type)、IOAM传输验证选项类型(IOAM proof of transit option-type,IOAM POT option-type)、IOAM端到端选项类型(IOAM edge-to-edge option-type,IOAM E2E option-type)和IOAM直接输出选项类型(IOAM direct export option-Type,IOAM DEX option-type)。不同类型的选项数据子字段的格式不同。例如,当选项数据子字段的类型为IOAM预分配跟踪选项类型或IOAM增量跟踪选项类型时,该选项数据子字段的格式如图3所示。当选项数据子字段的类型为IOAM POT选项类型时,该选项数据子字段的格式如图4所示。当选项数据子字段的类型为IOAM E2E选项类型时,该选项数据子字段的格式如图5所示。当选项数据子字段的类型为IOAM DEX选项类型时,该选项数据子字段的格式如图6所示。Among them, the type of option data subfield can include IOAM pre-allocated trace option-type (IOAM pre-allocated trace option-type), IOAM incremental trace option type (IOAM incremental trace option-type), IOAM transmission verification option type (IOAM proof of transit option-type, IOAM POT option-type), IOAM end-to-end option type (IOAM edge-to-edge option-type, IOAM E2E option-type) and IOAM direct export option-type (IOAM direct export option-Type, IOAM DEX option-type). Different types of option data subfields have different formats. For example, when the type of the option data subfield is the IOAM preallocation tracking option type or the IOAM incremental tracking option type, the format of the option data subfield is as shown in Figure 3. When the option data subfield type is IOAM POT option type, the format of the option data subfield is as shown in Figure 4. When the option data subfield type is IOAM E2E option type, the format of the option data subfield is as shown in Figure 5. When the option data subfield type is IOAM DEX option type, the format of the option data subfield is as shown in Figure 6.
参考图3,当选项数据子字段的类型为IOAM预分配跟踪选项类型或IOAM增量跟踪选项类型时,该选项数据子字段包括名称空间(namespace)ID子字段、节点长度(nodelen)子字段、标志(flags)子字段、剩余长度(remaininglen)子字段、IOAM跟踪类型子字段、预留子字段和p个节点数据表(node data list)子字段。名称空间ID子字段用于携带名称空间ID。节点长度子字段用于指示IOAM节点以4字节的倍数在该选项数据子字段中添加数据。剩余长度子字段用于指示IOAM节点以剩余4字节的倍数在该选项数据子字段中添加数据。IOAM跟踪类型子字段用于指示节点数据表中的数据类型。p个节点数据表子字段对应p个IOAM节点,每个节点数据表子字段用于携带对应的IOAM节点的IOAM数据,IOAM数据包括节点标识、报文进入IOAM节点的入口时间戳、报文从IOAM节点输出的出口时间戳等。Referring to Figure 3, when the type of the option data subfield is the IOAM pre-allocation tracking option type or the IOAM incremental tracking option type, the option data subfield includes the namespace (namespace) ID subfield, the node length (nodelen) subfield, Flags subfield, remaining length subfield, IOAM tracking type subfield, reserved subfield and p node data list subfields. The namespace ID subfield is used to carry the namespace ID. The node length subfield is used to instruct the IOAM node to add data in the option data subfield in multiples of 4 bytes. The remaining length subfield is used to instruct the IOAM node to add data in the option data subfield in multiples of the remaining 4 bytes. The IOAM trace type subfield is used to indicate the data type in the node data table. The p node data table subfields correspond to p IOAM nodes. Each node data table subfield is used to carry the IOAM data of the corresponding IOAM node. The IOAM data includes the node identification, the entry timestamp of the message entering the IOAM node, and the source of the message. The exit timestamp output by the IOAM node, etc.
参考图4,当选项数据子字段的类型为IOAM POT选项类型时,该选项数据子字段包括名称空间ID子字段、IOAM POT类型子字段、IOAM POT标志子字段和POT选项数据子字段。名称空间ID子字段用于携带名称空间ID。IOAM POT类型子字段用于携带IOAM POT类型。IOAM POT标志子字段用于携带IOAM POT标志。POT选项数据子字段的长度可变,POT选项数据子字段用于携带IOAM POT数据,IOAM POT数据包括报文标识等。Referring to Figure 4, when the type of the option data subfield is the IOAM POT option type, the option data subfield includes the namespace ID subfield, the IOAM POT type subfield, the IOAM POT flag subfield and the POT option data subfield. The namespace ID subfield is used to carry the namespace ID. The IOAM POT type subfield is used to carry the IOAM POT type. The IOAM POT flag subfield is used to carry the IOAM POT flag. The length of the POT option data subfield is variable. The POT option data subfield is used to carry IOAM POT data. IOAM POT data includes message identification, etc.
参考图5,当选项数据子字段的类型为IOAM E2E选项类型时,该选项数据子字段包括名称空间ID子字段、IOAM E2E类型子字段和E2E选项数据子字段。名称空间ID子字段用于携带名称空间ID。IOAM E2E类型子字段用于携带IOAM E2E类型。E2E选项数据子字段用于携带IOAM E2E数据,IOAM E2E数据包括包组序列号(sequence numbe)以用于检测丢包,包重新排序或组内包重复等,IOAM E2E数据还可以包括报文进入IOAM节点的入口时间戳、报文从IOAM节点输出的出口时间戳等以用于检测报文传输时延。Referring to Figure 5, when the type of the option data subfield is the IOAM E2E option type, the option data subfield includes the namespace ID subfield, the IOAM E2E type subfield and the E2E option data subfield. The namespace ID subfield is used to carry the namespace ID. The IOAM E2E type subfield is used to carry the IOAM E2E type. The E2E option data subfield is used to carry IOAM E2E data. IOAM E2E data includes packet group sequence number (sequence number) for detecting packet loss, packet reordering or packet duplication within the group. IOAM E2E data can also include packets entering IOAM. The entry timestamp of the node, the exit timestamp of the message output from the IOAM node, etc. are used to detect the message transmission delay.
参考图6,当选项数据子字段的类型为IOAM DEX选项类型时,该选项数据子字段包括名称空间ID子字段、标志子字段、IOAM跟踪类型子字段、预留子字段、流标识子字段和序列号子字段。名称空间ID子字段用于携带IOAM名称空间。标志子字段用于携带IOAM DEX标志。IOAM类型子字段用于指示哪些数据字段应该被输出。流标识字段用于携带流标识。序列号子字段用于携带包组序列号以用于检测丢包,包重新排序,组内包重复等。Referring to Figure 6, when the type of option data subfield is IOAM DEX option type, the option data subfield includes namespace ID subfield, flag subfield, IOAM tracking type subfield, reserved subfield, flow identification subfield and Serial number subfield. The namespace ID subfield is used to carry the IOAM namespace. The flag subfield is used to carry the IOAM DEX flag. The IOAM type subfield is used to indicate which data fields should be output. The flow identification field is used to carry the flow identification. The sequence number subfield is used to carry the packet group sequence number for detecting packet loss, packet reordering, packet duplication within the group, etc.
示例的,切片业务的业务信息包括切片标识(slice identification,slice ID)。目前针对切片业务扩展的选项字段如图7所示。该选项字段包括类型子字段、长度子字段、标志(flags) 子字段、预留子字段和切片标识子字段。类型子字段用于指示该选项字段的类型。长度子字段用于指示该选项字段的数据字段的长度(也即该选项字段中除该类型子字段和该长度子字段之外的子字段的总长度)。切片标识子字段用于携带切片ID。For example, the service information of the slice service includes slice identification (slice ID). The current option fields for slicing business expansion are shown in Figure 7. This option field includes type subfield, length subfield, and flags Subfield, reserved subfield and slice identification subfield. The type subfield is used to indicate the type of this option field. The length subfield is used to indicate the length of the data field of the option field (that is, the total length of the subfields in the option field except the type subfield and the length subfield). The slice identification subfield is used to carry the slice ID.
示例的,DetNet业务的业务信息包括路径标识(path identification,path ID),指示报文所要经过的转发路径。目前针对DetNet业务扩展的选项字段可以参考图8或图9。图8所示的选项字段为DetNet严格路径(strict path)选项字段,该选项字段包括类型子字段、长度子字段和路径标识子字段;类型子字段用于指示该选项字段的类型;长度子字段用于指示该选项字段的长度;路径标识子字段用于携带路径标识,该路径标识指示一严格路径。图9所示的选项字段为DetNet松散路径(loose path)选项字段,该选项字段包括类型子字段、长度子字段、源自治系统(autonomous system,AS)子字段和路径标识子字段;类型子字段用于指示该选项字段的类型;长度子字段用于指示该选项字段的长度;源AS子字段用于指示路径起源的AS;路径标识子字段用于携带路径标识,该路径标识指示一松散路径。For example, the service information of the DetNet service includes a path identification (path ID), which indicates the forwarding path that the packet must pass through. For the current option fields for DetNet business expansion, please refer to Figure 8 or Figure 9. The option field shown in Figure 8 is the DetNet strict path option field. The option field includes a type subfield, a length subfield and a path identification subfield; the type subfield is used to indicate the type of the option field; the length subfield Used to indicate the length of the option field; the path identification subfield is used to carry the path identification, which indicates a strict path. The option field shown in Figure 9 is the DetNet loose path option field. The option field includes a type subfield, a length subfield, a source autonomous system (autonomous system, AS) subfield and a path identification subfield; the type subfield Used to indicate the type of the option field; the length subfield is used to indicate the length of the option field; the source AS subfield is used to indicate the AS from which the path originates; the path identification subfield is used to carry the path identifier, which indicates a loose path. .
示例的,APN业务的业务信息包括APN属性(attribute)。APN属性包括APN ID和APN参数(parameters)。APN ID包括用户组标识(user group identification,user group ID)和应用组标识(application group identification,APP group ID)。APN参数包括网络性能参数,该网络性能参数可以包括带宽要求参数、时延要求参数、抖动要求参数和丢包率要求参数中的至少一个。以APN参数包括带宽要求参数、时延要求参数、抖动要求参数和丢包率要求参数为例说明,目前针对APN业务扩展的选项字段如图10所示。该选项字段包括类型子字段、长度子字段、APN ID类型子字段、标志子字段、APN参数类型子字段、APN ID子字段、意图(intent)子字段、带宽要求参数子字段、时延要求参数子字段、抖动要求参数子字段和丢包率要求参数子字段。APN ID子字段的长度为32比特或128比特,意图子字段的长度、带宽要求参数子字段的长度、时延要求参数子字段的长度、抖动要求参数子字段的长度和丢包率要求参数子字段的长度均为32比特。其中,类型子字段用于指示该选项字段的类型。长度子字段用于指示该选项字段的长度。APN ID类型子字段用于指示APN ID的类型,APN ID的类型包括短APN ID和长APN ID,携带短APN ID的APN ID子字段的长度为32比特,携带长APN ID的APN ID子字段的长度为128比特。APN参数类型子字段用于指示该选项字段中携带哪些APN参数;比如,该APN参数类型子字段中从高位到低位排布的比特位中,第1个比特位对应带宽要求,第2个比特位对应时延要求,第3个比特位对应抖动要求,第4个比特位对应丢包率要求;当该第1个比特位被置为1时,指示该选项字段中携带带宽要求参数;当该第2个比特位被置为1时,指示该选项字段中携带时延要求参数;当该第3个比特位被置为1时,指示该选项字段中携带抖动要求参数;当该第4个比特位被置为1时,指示该选项字段中携带丢包率要求参数。APN ID子字段用于携带APN ID;该APN ID子字段中可以包括应用组标识空间和用户组标识空间,还可以包括预留空间,该应用组标识空间用于携带应用组标识,该用户组标识空间用于携带用户组标识,应用组标识空间的长度和用户组标识空间的长度均可变。意图子字段为可选子字段,指示对网络的一组服务需求。带宽要求参数子字段用于携带带宽要求参数。时延要求参数子字段用于携带时延要求参数。抖动要求参数子字段用于携带抖动要求参数。丢包率要求参数子字段用于携带丢包率要求参数。For example, the service information of the APN service includes APN attributes. APN attributes include APN ID and APN parameters. APN ID includes user group identification (user group identification, user group ID) and application group identification (application group identification, APP group ID). The APN parameters include network performance parameters, which may include at least one of a bandwidth requirement parameter, a delay requirement parameter, a jitter requirement parameter, and a packet loss rate requirement parameter. Taking the APN parameters including bandwidth requirement parameters, delay requirement parameters, jitter requirement parameters and packet loss rate requirement parameters as an example, the current option fields for APN service expansion are shown in Figure 10. This option field includes type subfield, length subfield, APN ID type subfield, flag subfield, APN parameter type subfield, APN ID subfield, intent subfield, bandwidth requirement parameter subfield, and delay requirement parameter. subfield, jitter requirement parameter subfield and packet loss rate requirement parameter subfield. The length of the APN ID subfield is 32 bits or 128 bits, the length of the intent subfield, the length of the bandwidth requirement parameter subfield, the length of the delay requirement parameter subfield, the length of the jitter requirement parameter subfield and the packet loss rate requirement parameter subfield. The length of the fields is 32 bits. Among them, the type subfield is used to indicate the type of the option field. The length subfield is used to indicate the length of this option field. The APN ID type subfield is used to indicate the type of APN ID. The types of APN ID include short APN ID and long APN ID. The length of the APN ID subfield carrying the short APN ID is 32 bits. The length of the APN ID subfield carrying the long APN ID is 32 bits. The length is 128 bits. The APN parameter type subfield is used to indicate which APN parameters are carried in the option field; for example, among the bits arranged from high to low in the APN parameter type subfield, the first bit corresponds to the bandwidth requirement, and the second bit bit corresponds to the delay requirement, the 3rd bit corresponds to the jitter requirement, and the 4th bit corresponds to the packet loss rate requirement; when the first bit is set to 1, it indicates that the option field carries the bandwidth requirement parameter; when When the 2nd bit is set to 1, it indicates that the option field carries the delay requirement parameter; when the 3rd bit is set to 1, it indicates that the option field carries the jitter requirement parameter; when the 4th bit is set to 1, it indicates that the option field carries the jitter requirement parameter. When a bit is set to 1, it indicates that the option field carries the packet loss rate requirement parameter. The APN ID subfield is used to carry the APN ID; the APN ID subfield can include an application group identification space and a user group identification space, and can also include a reserved space. The application group identification space is used to carry the application group identification. The user group The identity space is used to carry the user group identity. The length of the application group identity space and the length of the user group identity space are both variable. The intent subfield is an optional subfield that indicates a set of service requirements for the network. The bandwidth requirement parameter subfield is used to carry the bandwidth requirement parameter. The delay requirement parameter subfield is used to carry the delay requirement parameter. The jitter requirement parameter subfield is used to carry jitter requirement parameters. The packet loss rate requirement parameter subfield is used to carry the packet loss rate requirement parameter.
示例的,SFC业务的业务信息包括服务路径标识(service path identifier,SPI)和服务索 引(service index,SI)标识。SPI用于指示服务功能路径(service function path,SFP)。SI标识用于指示报文在SFP中的位置。目前针对SFC业务扩展的选项字段如图11所示。该选项字段包括类型子字段、长度子字段、版本(version)子字段、O标志位、未定义(unassigned,U)标志位、生存时间(time to live,TTL)子字段、长度子字段、元数据(metadata,MD)类型子字段、下一个协议(next protocol)子字段、SPI子字段、SI子字段和上下文头(context header)子字段。类型子字段用于指示该选项字段的类型。长度子字段用于指示该选项字段的长度。版本子字段用于确保该选项字段与未来网络服务头(network service header,NSH)规范更新的向后兼容性。O标志位用于指示包括该选项字段的报文是否为操作管理维护(operations administration and maintenance,OAM)报文。U标志位供未来使用。TTL子字段用于指示SFP的最大服务转发器(service function forwarder,SFF)跳数。长度子字段用于指示该选项字段的长度。MD类型子字段用于指示该选项字段携带的元数据的类型。下一个协议子字段用于指示该选项字段封装数据的协议类型。上下文头子字段用于携带SPI子字段指示的SFP沿途的元数据。上下文头子字段的长度可以是定长或者可变长度。当该上下文头子字段的长度可变时,该上下文头子字段的结构如图12所示,该上下文头子字段中包括元数据类(metadata class)子字段、类型子字段、未定义(unassigned,U)标志位、长度子字段和变长元数据(variable-length metadata)子字段;元数据类子字段用于定义类型子字段的范围以提供分层命名空间;变长元数据子字段用于携带长度可变的元数据;类型子字段用于指示该变长元数据子字段要携带的元数据的显式类型;长度子字段用于指示变长元数据子字段的长度,U标志位供未来使用。For example, the business information of the SFC service includes a service path identifier (SPI) and a service request. Service index (SI) identifier. SPI is used to indicate the service function path (SFP). The SI identifier is used to indicate the location of the packet in the SFP. The current option fields for SFC business expansion are shown in Figure 11. The option field includes type subfield, length subfield, version (version) subfield, O flag, undefined (unassigned, U) flag, time to live (TTL) subfield, length subfield, element Data (metadata, MD) type subfield, next protocol (next protocol) subfield, SPI subfield, SI subfield and context header (context header) subfield. The type subfield is used to indicate the type of this option field. The length subfield is used to indicate the length of this option field. The version subfield is used to ensure backward compatibility of this option field with future network service header (NSH) specification updates. The O flag bit is used to indicate whether the message including this option field is an operations administration and maintenance (OAM) message. The U flag is for future use. The TTL subfield is used to indicate the maximum service function forwarder (SFF) hop count of SFP. The length subfield is used to indicate the length of this option field. The MD type subfield is used to indicate the type of metadata carried by this option field. The next protocol subfield is used to indicate the protocol type of the data encapsulated in this option field. The context header subfield is used to carry metadata along the SFP indicated by the SPI subfield. The length of the context header subfield can be fixed or variable. When the length of the context header subfield is variable, the structure of the context header subfield is as shown in Figure 12. The context header subfield includes a metadata class (metadata class) subfield, a type subfield, and undefined (unassigned, U) Flag bit, length subfield and variable-length metadata subfield; the metadata class subfield is used to define the range of the type subfield to provide a hierarchical namespace; the variable-length metadata subfield is used to carry the length Variable metadata; the type subfield is used to indicate the explicit type of metadata to be carried by the variable-length metadata subfield; the length subfield is used to indicate the length of the variable-length metadata subfield, and the U flag is for future use .
目前,当某一IPv6报文需要同时支持切片业务、IFIT业务、DetNet业务、APN业务和SFC业务时,需要在该IPv6报文的IPv6扩展头中,针对切片业务、IFIT业务、DetNet业务、APN业务和SFC业务分别扩展选项字段(例如,需要扩展五个选项字段,该五个选项字段与切片业务、IFIT业务、DetNet业务、APN业务和SFC业务这五个业务一一对应),并在切片业务对应的选项字段中携带该切片业务的业务信息,在IFIT业务对应的选项字段中携带该IFIT业务的业务信息,在DetNet业务对应的选项字段中携带该DetNet业务的业务信息,在APN业务对应的选项字段中携带该APN业务的业务信息,在SFC业务对应的选项字段中携带该SFC业务的业务信息。例如,针对切片业务扩展如图7所示的选项字段,针对IFIT业务扩展如图1所示的选项字段,针对DetNet业务扩展如图8或图9所示的选项字段,针对APN业务扩展如图10所示的选项字段,针对SFC业务扩展如图11所示的选项字段。Currently, when an IPv6 packet needs to support slicing services, IFIT services, DetNet services, APN services, and SFC services at the same time, the IPv6 extension header of the IPv6 packet needs to support slicing services, IFIT services, DetNet services, and APN services. The service and SFC services respectively expand the option fields (for example, five option fields need to be expanded, and the five option fields correspond to the five services: slice service, IFIT service, DetNet service, APN service and SFC service), and in the slice The option field corresponding to the service carries the business information of the slice service, the option field corresponding to the IFIT service carries the business information of the IFIT service, the option field corresponding to the DetNet service carries the business information of the DetNet service, and the option field corresponding to the APN service carries The option field of carries the service information of the APN service, and the option field corresponding to the SFC service carries the service information of the SFC service. For example, the option field shown in Figure 7 is extended for the slice service, the option field shown in Figure 1 is extended for the IFIT service, the option field shown in Figure 8 or 9 is extended for the DetNet service, and the option field shown in Figure 9 is extended for the APN service. The option fields shown in Figure 10 are expanded to the option fields shown in Figure 11 for the SFC business.
但是,根据协议规定,选项字段中应当包括类型子字段、长度子字段等用于描述该选项字段的固定内容(例如图1至图2、图7至图11所示的选项字段中均包括类型子字段和长度子字段)。在针对每个业务分别扩展选项字段时,扩展的每个选项字段中均包括这些固定内容,导致IPv6扩展头的长度较大,IPv6扩展头的开销较大,IPv6报文的开销较大。此外,选项字段中通常还包括一些用于对齐或未来扩展的可选子字段(例如图1、图2、图7所示的选项字段中均包括预留子字段,图11所示的选项字段中均包括U标志位,这些预留子字段和U标志位用于对齐或未来扩展),这些可选子字段也会导致IPv6扩展头的长度较大,从而导致IPv6报文的开销较大。网络设备在转发IPv6报文的过程中需要处理该IPv6报文,IPv6扩展头的长度增大,容易增加网络设备处理该IPv6报文的复杂度,导致网络设备的转发性能 下降。However, according to the protocol, the option field should include type subfield, length subfield and other fixed content used to describe the option field (for example, the option fields shown in Figures 1 to 2 and 7 to 11 all include type subfield and length subfield). When the option field is expanded separately for each service, each expanded option field includes these fixed contents, resulting in a larger length of the IPv6 extension header, a larger overhead of the IPv6 extension header, and a larger overhead of the IPv6 message. In addition, the option field usually also includes some optional subfields for alignment or future expansion (for example, the option fields shown in Figure 1, Figure 2, and Figure 7 all include reserved subfields, and the option field shown in Figure 11 (These reserved subfields and U flag bits are used for alignment or future expansion). These optional subfields will also cause the length of the IPv6 extension header to be larger, resulting in larger overhead of IPv6 messages. The network device needs to process the IPv6 message when forwarding the IPv6 message. The increased length of the IPv6 extension header easily increases the complexity of the network device in processing the IPv6 message, resulting in poor forwarding performance of the network device. decline.
本申请实施例提供了一种技术方案,同一个选项字段能够携带至少两个不同业务的业务信息,相比于针对每个业务扩展分别扩展选项字段的方案,可以节省选项字段中的一些固定内容(例如类型子字段、长度子字段)所带来的开销,有助于降低报文开销。并且,还可以节省选项字段中的一些可选子字段所带来的开销。本申请实施例的技术方案能够减小报文的长度,简化网络设备处理报文的复杂度,提升网络设备的转发性能。例如,本申请实施例提供的技术方案中,同一个选项字段可以携带随流检测业务、切片业务、DetNet业务、APN业务、SFC业务等业务的业务信息,相比于针对随流检测业务、切片业务、DetNet业务、APN业务、SFC业务分别扩展选项字段(例如图1至图2、图7至图11所示的选项字段)的方案,本申请实施例提供的技术方案可以至少减少7个类型子字段和7个长度子字段的开销,还可以减少图1、图2、图7所示的选项字段中的预留子字段以及图11所示的选项字段中的U标志位的开销。需要说明的是,图1至图2、图7至图11所示的选项字段仅仅是示例性的,针对随流检测业务、切片业务、DetNet业务、APN业务、SFC业务等扩展的选项字段的结构还可以是其他结构,本申请的技术方案适应于图1至图2、图7至图11所示的选项字段的改造,也可以适用于未来定义的用于携带业务信息的任何可能的选项字段的改造。The embodiments of this application provide a technical solution. The same option field can carry business information of at least two different services. Compared with the solution of separately expanding the option field for each service expansion, some fixed content in the option field can be saved. (such as type subfield, length subfield), which helps to reduce message overhead. Moreover, you can also save the overhead caused by some optional subfields in the option field. The technical solutions of the embodiments of the present application can reduce the length of messages, simplify the complexity of message processing by network devices, and improve the forwarding performance of network devices. For example, in the technical solution provided by the embodiments of this application, the same option field can carry business information of the following services, slicing services, DetNet services, APN services, SFC services, etc. Compared with following the following detection services and slicing services, Services, DetNet services, APN services, and SFC services respectively extend the option fields (such as the option fields shown in Figures 1 to 2, and Figures 7 to 11). The technical solution provided by the embodiment of the present application can reduce at least 7 types. The overhead of subfields and 7-length subfields can also reduce the overhead of reserved subfields in the option fields shown in Figures 1, 2, and 7, and the U flag bits in the option fields shown in Figure 11. It should be noted that the option fields shown in Figures 1 to 2 and Figures 7 to 11 are only exemplary and are for extended option fields such as flow detection services, slicing services, DetNet services, APN services, and SFC services. The structure can also be other structures. The technical solution of this application is adapted to the transformation of the option fields shown in Figures 1 to 2 and Figures 7 to 11, and can also be applied to any possible options defined in the future for carrying business information. Transformation of fields.
下面对本申请实施例的技术方案进行介绍。首先介绍本申请实施例的应用场景。The technical solutions of the embodiments of this application are introduced below. First, the application scenarios of the embodiments of this application are introduced.
请参考图13,其示出了本申请实施例提供的一种应用场景的示意图。该应用场景提供一种通信网络,例如该通信网络是IPv6网络。该通信网络包括多个网络设备101~106,网络设备101~106依次连接。网络设备101~106可以用于转发报文。例如,网络设备101~106中包括边缘网络设备,边缘网络设备可以用于工作站接入该通信网络,网络设备101~106可以用于在接入该通信网络的不同工作站之间进行转发报文,实现该不同工作站之间的通信。Please refer to Figure 13, which shows a schematic diagram of an application scenario provided by the embodiment of the present application. This application scenario provides a communication network. For example, the communication network is an IPv6 network. The communication network includes a plurality of network devices 101 to 106, and the network devices 101 to 106 are connected in sequence. Network devices 101 to 106 can be used to forward messages. For example, the network devices 101 to 106 include edge network devices. The edge network devices can be used for workstations to access the communication network. The network devices 101 to 106 can be used to forward messages between different workstations accessing the communication network. Enable communication between the different workstations.
其中,网络设备可以是交换机、路由器(router)、虚拟交换机或虚拟路由器等设备。网络设备101~106可以是相同的网络设备,例如,网络设备101~106均是路由器。或者,网络设备101~106中的至少两个是不同的网络设备,例如,网络设备101~106中的一部分为路由器,另一部分为交换机。接入上述通信网络的工作站可以是主机、服务器、基站、虚拟机(virtual machine,VM)等,主机可以是智能手机、平板电脑、台式计算机或物联网(internet of things,IoT)设备等,本申请实施例对此不作限定。The network device may be a switch, a router, a virtual switch or a virtual router. The network devices 101 to 106 may be the same network device. For example, the network devices 101 to 106 are all routers. Alternatively, at least two of the network devices 101 to 106 are different network devices. For example, some of the network devices 101 to 106 are routers and another part is a switch. Workstations connected to the above communication network can be hosts, servers, base stations, virtual machines (VMs), etc. The hosts can be smartphones, tablets, desktop computers or Internet of Things (IoT) devices, etc. The application examples do not limit this.
通信网络中包括用于转发报文的转发路径,转发路径上可以包括多个网络设备。按照报文的转发方向,转发路径上的网络设备包括入口(ingress)设备、出口(egress)设备以及位于入口设备与出口设备之间的至少一个中转(transit)设备。报文通过入口设备流入转发路径,通过出口设备流出转发路径。根据转发路径的长短,转发路径上的中转设备的数量不同,或者转发路径上仅包括入口设备和出口设备,而不包括中转设备。在一些实施场景中,网络设备又称为网络节点、网关设备、路由节点或路由设备等;入口设备又称为首节点、首节点设备、头节点、头节点设备等;出口设备又称为尾节点、尾节点设备等;中转设备又称为中转节点、中间节点或中间节点设备等;转发路径也可以称为传输路径、通信链路、通信通路、通信隧道或隧道通路等。如图13所示,该通信网络中包括转发路径P,该转发路径P为:网络设备101—>网络设备102—>网络设备103—>网络设备104—>网络设备105—>网络设备 106。网络设备101是该转发路径P的头节点,网络设备106是该转发路径P的尾节点,网络设备102~网络设备105均是该转发路径P的中间节点。The communication network includes a forwarding path for forwarding messages, and the forwarding path may include multiple network devices. According to the forwarding direction of the packet, network devices on the forwarding path include an ingress device, an egress device, and at least one transit device located between the ingress device and the egress device. Packets flow into the forwarding path through the ingress device and out of the forwarding path through the egress device. Depending on the length of the forwarding path, the number of transit devices on the forwarding path is different, or the forwarding path only includes ingress devices and egress devices, but not transit devices. In some implementation scenarios, network devices are also called network nodes, gateway devices, routing nodes or routing devices, etc.; ingress devices are also called first nodes, first node devices, head nodes, head node devices, etc.; egress devices are also called tail nodes. , tail node equipment, etc.; the transit equipment is also called a transit node, an intermediate node or an intermediate node equipment, etc.; the forwarding path can also be called a transmission path, communication link, communication channel, communication tunnel or tunnel channel, etc. As shown in Figure 13, the communication network includes a forwarding path P, which is: network device 101—>network device 102—>network device 103—>network device 104—>network device 105—>network device 106. Network device 101 is the head node of the forwarding path P, network device 106 is the tail node of the forwarding path P, and network devices 102 to 105 are all intermediate nodes of the forwarding path P.
在本申请实施例中,同一个选项字段中包括至少两个不同业务对应的业务子字段,以使得该同一个选项字段能够携带该至少两个不同业务的业务信息,转发路径上的网络设备可以生成包括该选项字段的报文。例如,转发路径上的头节点在初始报文中添加该选项字段得到包括该选项字段的报文,或者,转发路径上的中间节点接收到的报文中包括该选项字段,该中间节点修改该报文得到包括该选项字段的报文。这里以头节点生成包括该选项字段的报文为例说明。头节点生成包括该选项字段的报文之后可以向该头节点的下一跳设备发送该报文。该下一跳设备接收到包括该选项字段的报文之后可以根据该选项字段中携带的业务信息处理该报文得到处理后的报文,该处理后的报文中包括该选项字段。该下一跳设备得到处理后的报文之后可以向该下一跳设备的下一跳设备发送该处理后的报文。该下一跳设备的下一跳设备接收到包括该选项字段的报文之后,可以根据该选项字段中携带的业务信息处理该报文。如此重复,直至包括该选项字段的报文被转发至尾节点。尾节点可以根据接收到的报文中的该选项字段中携带的业务信息处理该报文,尾节点还可以去除该报文中的该选项字段。例如图13所示,网络设备101可以生成包括该选项字段的报文,并向网络设备102发送该报文。之后,包括该选项字段的报文依次经过网络设备102、网络设备103、网络设备104和网络设备105被转发至网络设备106,网络设备101~106均可以根据接收到的报文中的该选项字段中携带的业务信息处理该报文。作为尾节点的网络设备106还可以去除该报文中的该选项字段。In this embodiment of the present application, the same option field includes service subfields corresponding to at least two different services, so that the same option field can carry the service information of the at least two different services, and the network device on the forwarding path can Generate a message including this option field. For example, the head node on the forwarding path adds the option field to the initial message to obtain a message including the option field, or the intermediate node on the forwarding path receives the message including the option field, and the intermediate node modifies the option field. Message gets the message that includes this option field. Here, the head node generates a message including this option field as an example. After the head node generates a message including this option field, it can send the message to the next hop device of the head node. After receiving the message including the option field, the next-hop device can process the message according to the service information carried in the option field to obtain a processed message, and the processed message includes the option field. After obtaining the processed message, the next-hop device can send the processed message to the next-hop device of the next-hop device. After receiving the message including the option field, the next-hop device of the next-hop device can process the message according to the service information carried in the option field. This is repeated until the message including the option field is forwarded to the tail node. The tail node can process the message according to the service information carried in the option field in the received message, and the tail node can also remove the option field in the message. For example, as shown in FIG. 13 , the network device 101 can generate a message including the option field and send the message to the network device 102 . After that, the message including the option field is forwarded to the network device 106 through the network device 102, the network device 103, the network device 104 and the network device 105 in sequence. The network devices 101 to 106 can all use the option in the received message. The service information carried in the field is used to process the message. The network device 106 serving as the tail node can also remove the option field in the message.
在一种实施方式中,头节点维护有所述选项字段,头节点根据所述选项字段生成包括所述选项字段的报文。在另一种实施方式中,头节点根据控制器发送的指示信息生成包括所述选项字段的报文。可选的,本申请实施例提供的应用场景中还包括控制器,控制器与头节点连接,控制器可以向头节点发送指示信息,以指示头节点生成包括所述选项字段的报文。示例的,请参考图14,其示出了本申请实施例提供的另一种应用场景的示意图,该应用场景提供的通信网络还包括控制器100,控制器100与网络设备101连接。控制器100还可以与网络设备102~106中的至少一个(图14中未示出)连接,本申请实施例对此不作限定。In one implementation, the head node maintains the option field, and the head node generates a message including the option field based on the option field. In another implementation manner, the head node generates a message including the option field according to the instruction information sent by the controller. Optionally, the application scenario provided by the embodiment of the present application also includes a controller. The controller is connected to the head node. The controller can send instruction information to the head node to instruct the head node to generate a message including the option field. For example, please refer to FIG. 14 , which shows a schematic diagram of another application scenario provided by an embodiment of the present application. The communication network provided by this application scenario also includes a controller 100 , and the controller 100 is connected to the network device 101 . The controller 100 may also be connected to at least one of the network devices 102 to 106 (not shown in FIG. 14 ), which is not limited in the embodiment of the present application.
其中,控制器100融合网络管理、业务控制和网络分析等功能。控制器100可以是部署在服务器中的功能模块,或者是一台服务器,或者是由若干台服务器组成的服务器集群,或者是一个云计算服务中心,或者是其他具备网络控制功能的设备或模块。控制器100可以生成指示信息,并向网络设备101发送该指示信息,网络设备101根据该指示信息生成包括所述选项字段的报文。可选的,该指示信息是该选项字段的指示信息(例如是该选项字段的标识),网络设备101可以维护多个选项字段,网络设备101根据该指示信息在该多个选项字段中确定该指示信息所指示的选项字段,进而生成包括该选项字段的报文。或者,该指示信息包括该选项字段的配置信息,网络设备101根据该指示信息生成该选项字段,进而生成包括该选项字段的报文。或者,该指示信息包括该选项字段,网络设备101根据该指示信息生成包括该选项字段的报文,本申请实施例对此不作限定。Among them, the controller 100 integrates functions such as network management, service control, and network analysis. The controller 100 may be a functional module deployed in a server, or a server, or a server cluster composed of several servers, or a cloud computing service center, or other devices or modules with network control functions. The controller 100 may generate indication information and send the indication information to the network device 101, and the network device 101 generates a message including the option field according to the indication information. Optionally, the indication information is indication information of the option field (for example, the identification of the option field). The network device 101 can maintain multiple option fields, and the network device 101 determines the option field in the multiple option fields based on the indication information. Indicates the option field indicated by the information, and then generates a message including the option field. Alternatively, the indication information includes configuration information of the option field, and the network device 101 generates the option field according to the indication information, and then generates a message including the option field. Alternatively, the indication information includes the option field, and the network device 101 generates a message including the option field according to the indication information, which is not limited in the embodiment of the present application.
需要指出的是,图13和图14所示的应用场景仅用于举例,并非用于限制本申请的技术方案。在实现过程中,控制器也可以集成在网络设备中,例如,控制器集成在头节点中。通 信网络可能包括比图13和图14所示更多或更少的设备,可以根据需要配置网络设备的数量以及控制器的数量,本申请实施例对此不作限定。It should be noted that the application scenarios shown in Figures 13 and 14 are only examples and are not used to limit the technical solutions of this application. During the implementation process, the controller can also be integrated in the network device, for example, the controller is integrated in the head node. Pass The communication network may include more or less devices than those shown in Figures 13 and 14, and the number of network devices and the number of controllers can be configured as needed, which is not limited in the embodiments of this application.
以上是对本申请应用场景的介绍,下面介绍本申请的业务处理方法的实施例。The above is an introduction to the application scenarios of this application. The following introduces embodiments of the business processing method of this application.
请参考图15,其示出了本申请实施例提供的一种业务处理方法的流程图。该方法可以应用于包括网络设备A和网络设备B的业务处理系统。示例的,该业务处理系统是图13或图14所示的通信网络,网络设备A是网络设备101,网络设备B是网络设备102~106中的任意一个。如图15所示,该方法包括如下步骤S501至S504。Please refer to Figure 15, which shows a flow chart of a business processing method provided by an embodiment of the present application. This method can be applied to a service processing system including network device A and network device B. For example, the business processing system is the communication network shown in Figure 13 or Figure 14, network device A is the network device 101, and network device B is any one of the network devices 102 to 106. As shown in Figure 15, the method includes the following steps S501 to S504.
S501.网络设备A生成包括选项字段的报文A,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。S501. Network device A generates message A including an option field. The option field includes a first service subfield, a second service subfield, a first length subfield and a second length subfield. The first service subfield corresponds to the first Service, the second service subfield corresponds to the second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the second service subfield length.
一个实施例中,网络设备A是头节点,网络设备A接收来自工作站(例如主机)的初始报文,网络设备A在该初始报文中添加选项字段得到包括该选项字段的报文A。另一个实施例中,网络设备A是中间节点,网络设备A从网络设备A的上一跳设备接收报文B,报文B中包括该选项字段,网络设备A修改该报文B得到包括该选项字段的报文A。例如,网络设备A修改报文B包括的该选项字段中携带的信息,本申请实施例对此不作限定。In one embodiment, network device A is the head node. Network device A receives an initial message from a workstation (such as a host). Network device A adds an option field to the initial message to obtain message A including the option field. In another embodiment, network device A is an intermediate node. Network device A receives message B from the previous hop device of network device A. Message B includes the option field. Network device A modifies the message B to include the option field. Message A of option field. For example, network device A modifies the information carried in the option field included in message B, which is not limited in this embodiment of the present application.
在本申请实施例中,报文A可以为IPv6报文,报文A中包括IPv6扩展头,该选项字段可以位于该IPv6扩展头中。一个示例中,网络设备A是头节点,网络设备A在初始报文中封装包括该选项字段的IPv6扩展头得到报文A;或者,该初始报文中包括IPv6扩展头,网络设备A在该初始报文的该IPv6扩展头中添加该选项字段得到报文A。另一个示例中,网络设备A是中间节点,网络设备A从网络设备A的上一跳设备接收到的报文B中包括IPv6扩展头,该IPv6扩展头中包括该选项字段,网络设备A修改该IPv6扩展头得到报文A。In this embodiment of the present application, message A may be an IPv6 message, message A may include an IPv6 extension header, and the option field may be located in the IPv6 extension header. In one example, network device A is the head node, and network device A encapsulates the IPv6 extension header including the option field in the initial message to obtain message A; or, the initial message includes the IPv6 extension header, and network device A encapsulates the IPv6 extension header in the initial message. The option field is added to the IPv6 extension header of the initial message to obtain message A. In another example, network device A is an intermediate node. The message B received by network device A from the previous hop device of network device A includes an IPv6 extension header. The IPv6 extension header includes the option field. Network device A modifies The IPv6 extension header gets message A.
在IPv6技术中,IPv6扩展头可以包括逐跳头(hop by hop header,HBH)、目的选项头(destination options header,DOH)、段路由报头(segment routing header,SRH)、分片头(fragment header,FH)等。根据业务需要,一个IPv6报文中可以包括至少一个IPv6扩展头。包括所述选项字段的IPv6扩展头可以为HBH或DOH。也即是,所述选项字段可以位于HBH或DOH中。例如,报文A中包括HBH,所述选项字段位于该HBH中。或者,报文A中包括DOH,所述选项字段位于该DOH中。一个示例中,报文A中包括SRH和两个DOH,该两个DOH中的一个DOH位于SRH之前,另一个DOH位于SRH之后(例如位于SRH之前的DOH称为DOH1,位于SRH之后的DOH称为DOH2),所述选项字段可以位于DOH1中,也可以位于DOH2中。如果所述选项字段位于HBH中,接收到报文A的每个网络设备都可以根据所述选项字段处理报文A。如果所述选项字段位于DOH1中,接收到报文A且命中报文A的目的地址的每个网络设备都可以根据所述选项字段处理报文A。如果所述选项字段位于DOH2中,通常只需尾节点根据所述选项字段处理报文A。In IPv6 technology, IPv6 extension headers can include hop by hop header (HBH), destination options header (DOH), segment routing header (segment routing header, SRH), fragment header (fragment header, FH) etc. According to business needs, an IPv6 message may include at least one IPv6 extension header. The IPv6 extension header including the option field may be HBH or DOH. That is, the option field may be located in HBH or DOH. For example, message A includes HBH, and the option field is located in the HBH. Alternatively, message A includes DOH, and the option field is located in the DOH. In an example, message A includes SRH and two DOHs. One of the two DOHs is DOH located before SRH, and the other DOH is located after SRH (for example, the DOH located before SRH is called DOH1, and the DOH located after SRH is called DOH1. (DOH2), the option field can be located in DOH1 or DOH2. If the option field is located in the HBH, each network device that receives message A can process message A according to the option field. If the option field is located in DOH1, each network device that receives message A and hits the destination address of message A can process message A according to the option field. If the option field is located in DOH2, usually only the tail node needs to process message A according to the option field.
在本申请实施例中,所述选项字段中包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务子字段用于携带第一业务的业务信息,第二业务子字段用于携带第二业务的业务信 息,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。其中,第一业务和第二业务互不相同。第一业务子字段的长度与第二业务子字段的长度相等或不相等。可选的,第一业务子字段的长度为4×p字节,第二业务子字段的长度为4×q字节,p和q均为正整数,且p和q相等或不相等。其中,第一长度子字段指示第一业务子字段的长度指的是第一长度子字段中的值指示第一业务子字段的长度,第二长度子字段指示第二业务子字段的长度指的是第二长度子字段中的值指示第二业务子字段的长度。第一长度子字段的长度与第二长度子字段的长度相等或不相等。In this embodiment of the present application, the option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield. The first service subfield corresponds to the first service, and the second service subfield The subfield corresponds to the second service. The first service subfield is used to carry the service information of the first service. The second service subfield is used to carry the service information of the second service. Information, the first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield. Among them, the first business and the second business are different from each other. The length of the first service subfield is equal to or not equal to the length of the second service subfield. Optionally, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, p and q are both positive integers, and p and q are equal or unequal. Wherein, the first length subfield indicates the length of the first service subfield, and the value in the first length subfield indicates the length of the first service subfield, and the second length subfield indicates the length of the second service subfield. The value in the second length subfield indicates the length of the second service subfield. The length of the first length subfield is equal to or not equal to the length of the second length subfield.
在本申请实施例中,所述选项字段中包括标志子字段,该标志子字段用于指示该选项字段包括第一业务子字段和第二业务子字段。或者,该选项字段中包括对应于第一业务子字段的类型空间(例如称为第一类型空间)和对应于第二业务子字段的类型空间(例如称为第二类型空间),第一类型空间用于指示该选项字段中包括第一业务子字段,第二类型空间用于指示该选项字段中包括第二业务子字段。鉴于此,该选项字段包括以下两种可能的实现方式。In this embodiment of the present application, the option field includes a flag subfield, and the flag subfield is used to indicate that the option field includes a first service subfield and a second service subfield. Alternatively, the option field includes a type space corresponding to the first business subfield (for example, called the first type space) and a type space corresponding to the second business subfield (for example, called the second type space). The first type The space is used to indicate that the option field includes the first service subfield, and the second type space is used to indicate that the option field includes the second service subfield. For this reason, this option field includes the following two possible implementations.
第一种实现方式:所述选项字段中包括标志子字段,该标志子字段用于指示该选项字段包括第一业务子字段和第二业务子字段。例如,该标志子字段包括第一业务标志位和第二业务标志位,第一业务标志位用于指示该选项字段中包括第一业务子字段,第二业务标志位用于指示该选项字段中包括第二业务子字段。A first implementation manner: the option field includes a flag subfield, and the flag subfield is used to indicate that the option field includes a first service subfield and a second service subfield. For example, the flag subfield includes a first service flag bit and a second service flag bit. The first service flag bit is used to indicate that the option field includes the first service subfield, and the second service flag bit is used to indicate that the option field includes the first service subfield. Includes the second business subfield.
可选的实施例中,第一长度子字段与第一业务标志位对应,第二长度子字段与第二业务标志位对应。例如,第一业务标志位和第二业务标志位按序排列,第一长度子字段和第二长度子字段按序排列,第一长度子字段和第二长度子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。也即,通过排列顺序的对应,实现第一长度子字段与第一业务标志位对应,第二长度子字段与第二业务标志位对应。可选的,第一业务子字段和第二业务子字段也按序排列,第一业务子字段和第二业务子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。也即,通过排列顺序的对应,实现第一业务子字段与第一业务标志位对应,第二业务子字段与第二业务标志位对应。网络设备处理包括该选项字段的报文A时,网络设备可以根据第一业务标志位和第二业务标志位的排列顺序,确定第一长度子字段、第二长度子字段、第一业务子字段和第二业务子字段,以及,网络设备根据第一长度子字段确定第一业务子字段的长度,根据第二长度子字段确定第二业务子字段的长度。In an optional embodiment, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit. For example, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, and the first length subfield and the second length subfield are arranged in the same order as the first service The order of the flag bits and the second service flag bits corresponds to each other. That is, through the correspondence of the arrangement sequence, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit. Optionally, the first service subfield and the second service subfield are also arranged in order, and the order of the first service subfield and the second service subfield corresponds to the order of the first service flag bit and the second service flag bit. . That is, through the correspondence of the arrangement order, the first service subfield corresponds to the first service flag bit, and the second service subfield corresponds to the second service flag bit. When the network device processes the message A including the option field, the network device can determine the first length subfield, the second length subfield, and the first service subfield according to the order of the first service flag bit and the second service flag bit. and the second service subfield, and the network device determines the length of the first service subfield according to the first length subfield, and determines the length of the second service subfield according to the second length subfield.
具体实施方式中,所述标志子字段包括m个业务标志位,该m个业务标志位一一对应m个业务,该m个业务互不相同,该m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括该每个业务标志位对应业务的业务子字段,该m个业务标志位包括第一业务标志位和第二业务标志位,该m个业务包括第一业务和第二业务,m≥2,且m为整数,例如m=8。其中,任一业务标志位用于指示该选项字段中是否包括该任一业务标志位对应业务的业务子字段指的是该任一业务标志位中的值用于指示该选项字段中是否包括该任一业务标志位对应业务的业务子字段,例如,任一业务标志位中的值是0或1,“1”用于指示该选项字段中包括该任一业务标志位对应业务的业务子字段,“0”用于指示该选项字段中不包括该任一业务标志位对应业务的业务子字段。其中,该m个业务标志位按序排列。例如,该m个业务标志位按照从高位到低位的顺序排列,或者按照从低位到高位的顺序排列。可选的,该选项字段包括k个业务长度子字段,该k个业务长度子字段与该m个业务标志位中的k个业务 标志位一一对应,例如,该k个业务长度子字段与该m个业务标志位中的前k个业务标志位一一对应,1≤k≤m,且k为整数,在该k个业务标志位中的任一业务标志位指示该选项字段包括该任一业务标志位对应业务的业务子字段时,该任一业务标志位对应的业务长度子字段用于指示该业务子字段的长度,该k个业务长度子字段包括第一长度子字段和第二长度子字段,该k个业务标志位包括第一业务标志位和第二业务标志位。该k个业务长度子字段相邻,标志子字段与该k个业务长度子字段相邻,例如,该标志子字段与该k个业务长度子字段的高位相邻(也即标志子字段在该k个业务长度子字段之前)。该k个业务长度子字段可以按序排列,该k个业务长度子字段的排列顺序与该k个业务标志位的排列顺序对应,例如,该k个业务长度子字段按照从高位到低位的顺序排列,或者按照从低位到高位的顺序排列。In a specific implementation, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, the m services are different from each other, and each service flag in the m service flag bits The bit is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service flag bit. The m services include the first service flag bit. Service and second service, m≥2, and m is an integer, for example, m=8. Wherein, any service flag bit is used to indicate whether the option field includes the service subfield corresponding to the any service flag bit. The value in the any service flag bit is used to indicate whether the option field includes the service subfield. Any service flag bit corresponds to the service subfield of the service. For example, the value in any service flag bit is 0 or 1, and "1" is used to indicate that the option field includes the service subfield of the service corresponding to any service flag bit. , "0" is used to indicate that the option field does not include the service subfield of the service corresponding to any service flag bit. Among them, the m service flag bits are arranged in order. For example, the m service flag bits are arranged in order from high bit to low bit, or in order from low bit to high bit. Optionally, the option field includes k service length subfields, the k service length subfields and the k services in the m service flag bits. The flag bits have a one-to-one correspondence. For example, the k service length subfields correspond to the first k service flag bits among the m service flag bits. 1≤k≤m, and k is an integer. In the k service flag bits, When any service flag bit in the flag bit indicates that the option field includes the service subfield of the service corresponding to the any service flag bit, the service length subfield corresponding to the any service flag bit is used to indicate the length of the service subfield, The k service length subfields include a first length subfield and a second length subfield, and the k service flag bits include a first service flag bit and a second service flag bit. The k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields. For example, the flag subfield is adjacent to the high bits of the k service length subfields (that is, the flag subfield is in the k business length subfields before). The k service length subfields can be arranged in order, and the order of the k service length subfields corresponds to the order of the k service flag bits. For example, the k service length subfields are in order from high to low. Arrange them in order from lowest to highest.
可选的实施例中,所述m个业务标志位还包括第三业务标志位,第三业务标志位用于指示所述选项字段还包括第三业务子字段。第一业务子字段、第二业务子字段和第三业务子字段依次排列,第三业务标志位和第三业务子字段均对应第三业务,第一业务、第二业务和第三业务互不相同,所述m个业务包括第三业务。第三业务子字段可以是该选项字段中的最后一个业务子字段,例如,所述m个业务标志位按序排列,第三业务子字段是该m个业务标志位中的最后一个业务标志位指示的业务子字段。在本申请中,可以在该选项字段中设置业务长度子字段(例如将该业务长度子字段称为第三长度子字段)来指示第三业务子字段的长度,也可以根据该选项字段的长度和该选项字段中除第三业务子字段之外的子字段的长度确定第三业务子字段的长度。基于此,该第一种实现方式包括以下两种可能的情况。In an optional embodiment, the m service flag bits further include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield. The first service subfield, the second service subfield and the third service subfield are arranged in order. The third service flag bit and the third service subfield all correspond to the third service. The first service, the second service and the third service are mutually exclusive. Similarly, the m services include the third service. The third service subfield may be the last service subfield in the option field. For example, the m service flag bits are arranged in order, and the third service subfield is the last service flag bit among the m service flag bits. Indicated business subfield. In this application, the service length subfield can be set in the option field (for example, the service length subfield is called the third length subfield) to indicate the length of the third service subfield, or it can be based on the length of the option field. and the length of the subfields in the option field except the third service subfield determine the length of the third service subfield. Based on this, the first implementation includes the following two possible situations.
第一种情况:所述选项字段中包括第三业务子字段和第三长度子字段,第三长度子字段用于指示第三业务子字段的长度。示例的,k=m,也即业务长度子字段的数量与业务标志位的数量相等,业务长度子字段的数量也为m,m个业务标志位与m个业务长度子字段一一对应,在该m个业务标志位中的任一业务标志位指示该选项字段包括该任一业务标志位对应业务的业务子字段时,该任一业务标志位对应的业务长度子字段用于指示该业务子字段的长度。The first case: the option field includes a third service subfield and a third length subfield, and the third length subfield is used to indicate the length of the third service subfield. For example, k=m, that is, the number of service length subfields is equal to the number of service flag bits, the number of service length subfields is also m, and m service flag bits correspond to m service length subfields one-to-one. In When any one of the m service flag bits indicates that the option field includes the service subfield of the service corresponding to the any service flag bit, the service length subfield corresponding to the any service flag bit is used to indicate the service subfield. The length of the field.
第二种情况:所述选项字段中包括第三业务子字段,第三业务子字段根据该选项字段的长度和该选项字段中除第三业务子字段之外的子字段的长度确定。示例的,k=m-1,也即,业务长度子字段的数量与业务标志位的数量的差值为1,所述k个业务标志位不包括第三业务标志位(也即所述m个业务标志位包括用于指示第三业务子字段的第三业务标志位,但该选项字段中不包括用于指示第三业务子字段的长度的业务长度子字段)。The second case: the option field includes a third service subfield, and the third service subfield is determined according to the length of the option field and the length of the subfields in the option field except the third service subfield. For example, k=m-1, that is, the difference between the number of service length subfields and the number of service flag bits is 1, and the k service flag bits do not include the third service flag bit (that is, the m The service flag bits include a third service flag bit used to indicate the third service subfield, but the option field does not include a service length subfield used to indicate the length of the third service subfield).
可选的实施例中,所述选项字段还包括流指示子字段,该流指示子字段用于指示报文A所属的数据流。示例的,该流指示子字段用于携带流指示信息,该流指示信息用于指示报文A所属的数据流。该流指示信息可以是流标识。例如,可以将APN ID作为该流标识,或者,将APN ID中的应用组标识(application group identification,APP-Group-ID)的全部或部分,和/或,用户组标识(user group identification,USER-Group-ID)的全部或部分作为该流标识。在其他实施例中,也可以将其他标识信息作为该流标识。一个示例中,标志子字段、流指示子字段、第一业务子字段和第二业务子字段依次排列(例如流指示子字段在标志子字段之后),该标志子字段还用于指示该选项字段中包括该流指示子字段,例如,该标志子字段中还包括流标志位,该流标志位用于指示该选项字段中包括该流指示子字段;在该示例中,当该流标志位置1时,网络设备确定该选项字段中包括该流指示子字段,网络设备根据该流指示子字 段处理包括该选项字段的报文。另一个示例中,流指示子字段、标志子字段、第一业务子字段和第二业务子字段依次排列(例如流指示子字段在标志子字段之前),一般默认该选项字段中包括该流指示子字段,无需在标志子字段中设置流标志位来指示该流指示子字段,网络设备根据该流指示子字段处理包括该选项字段的报文,无需参考流标志位的值。In an optional embodiment, the option field further includes a flow indication subfield, which is used to indicate the data flow to which message A belongs. For example, the flow indication subfield is used to carry flow indication information, and the flow indication information is used to indicate the data flow to which message A belongs. The flow indication information may be a flow identifier. For example, the APN ID can be used as the flow identifier, or all or part of the application group identification (APP-Group-ID) in the APN ID, and/or the user group identification (USER -Group-ID) as the flow identifier. In other embodiments, other identification information may also be used as the flow identification. In one example, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order (for example, the flow indication subfield is after the flag subfield), and the flag subfield is also used to indicate the option field. The flow indication subfield is included in When the network device determines that the option field includes the flow indication subfield, the network device determines that the flow indication subfield is included according to the flow indication subfield. segment handles packets that include this option field. In another example, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order (for example, the flow indication subfield is before the flag subfield). Generally, the option field includes the flow indication by default. subfield, there is no need to set the flow flag bit in the flag subfield to indicate the flow indication subfield. The network device processes packets including the option field based on the flow indication subfield without referring to the value of the flow flag bit.
作为本申请的示例,图16和图17示出了本申请实施例提供的两种选项字段的结构示意图。如图16和图17所示,该选项字段中包括类型子字段、长度子字段、标志子字段、k个业务长度子字段、流指示子字段和n个业务子字段。该标志子字段中包括m个业务标志位,该m个业务标志位一一对应m个业务,该n个业务子字段一一对应该m个业务标志位中的n个业务标志位,k=m或k=m-1,n≤m,且m、k和n均为正整数。其中,该类型子字段用于指示该选项字段的类型。该长度子字段用于指示该选项字段的数据字段的长度(也即该选项字段中除该类型子字段和该长度子字段之外的子字段的总长度)。参考图16,标志子字段、该k个业务长度子字段、流指示子字段和该n个业务子字段依次排列,该标志子字段中还包括流标志位,该流标志位用于指示该选项字段中包括该流指示子字段。如图17所示,流指示子字段、标志子字段、该k个业务长度子字段和该n个业务子字段依次排列。As an example of this application, Figure 16 and Figure 17 show a schematic structural diagram of two option fields provided by the embodiment of this application. As shown in Figures 16 and 17, the option field includes a type subfield, a length subfield, a flag subfield, k service length subfields, a flow indication subfield and n service subfields. The flag subfield includes m service flag bits. The m service flag bits correspond to m services one by one. The n service subfields correspond to n service flag bits among the m service flag bits. k= m or k=m-1, n≤m, and m, k and n are all positive integers. Among them, the type subfield is used to indicate the type of the option field. The length subfield is used to indicate the length of the data field of the option field (that is, the total length of the subfields in the option field except the type subfield and the length subfield). Referring to Figure 16, the flag subfield, the k service length subfields, the flow indication subfield and the n service subfields are arranged in order. The flag subfield also includes a flow flag bit, which is used to indicate the option. The flow indication subfield is included in the field. As shown in Figure 17, the flow indication subfield, the flag subfield, the k service length subfields and the n service subfields are arranged in order.
参考图16和图17,一个示例中,k=m,该k个业务长度子字段与该m个业务标志位一一对应,该m个业务标志位中的每个业务标志位用于指示该选项字段中是否包括该每个业务标志位对应业务的业务子字段,在该每个业务标志位指示该选项字段中包括该每个业务标志位对应业务的业务子字段时,该每个业务标志位对应的业务长度子字段用于指示该业务子字段的长度。例如,业务长度子字段1和业务子字段1均对应业务标志位1,业务标志位1用于指示该选项字段中包括业务子字段1,业务长度子字段1用于指示业务子字段1的长度。再例如,业务长度子字段2和业务子字段2均对应业务标志位2,业务标志位2用于指示该选项字段中包括业务子字段2,业务长度子字段2用于指示业务子字段2的长度。依次类推,假设业务长度子字段k和业务子字段n均对应业务标志位m,业务标志位m用于指示该选项字段中包括业务子字段n,业务长度子字段k用于指示业务子字段n的长度。Referring to Figure 16 and Figure 17, in an example, k=m, the k service length subfields correspond to the m service flag bits one-to-one, and each of the m service flag bits is used to indicate the Whether the option field includes the service subfield of the service corresponding to each service flag bit. When each service flag bit indicates that the option field includes the service subfield of the service corresponding to each service flag bit, each service flag The service length subfield corresponding to the bit is used to indicate the length of the service subfield. For example, service length subfield 1 and service subfield 1 both correspond to service flag bit 1. Service flag bit 1 is used to indicate that the option field includes service subfield 1, and service length subfield 1 is used to indicate the length of service subfield 1. . For another example, the service length subfield 2 and the service subfield 2 both correspond to the service flag bit 2. The service flag bit 2 is used to indicate that the option field includes the service subfield 2, and the service length subfield 2 is used to indicate the service subfield 2. length. By analogy, it is assumed that the service length subfield k and the service subfield n both correspond to the service flag bit m, the service flag bit m is used to indicate that the option field includes the service subfield n, and the service length subfield k is used to indicate the service subfield n length.
参考图16和图17,另一个示例中,k=m-1,该k个业务长度子字段与该m个业务标志位中的k个业务标志位一一对应,例如,该k个业务长度子字段与该m个业务标志位中的前k个业务标志位一一对应,该k个业务标志位中的每个业务标志位用于指示该选项字段中是否包括该每个业务标志位对应业务的业务子字段,在该每个业务标志位指示该选项字段中包括该每个业务标志位对应业务的业务子字段时,该每个业务标志位对应的业务长度子字段用于指示该业务子字段的长度;第m个业务标志位用于指示该选项字段中是否包括该第m个业务标志位对应业务的业务子字段,在该第m个业务标志位指示该选项字段中包括该第m个业务标志位对应业务的业务子字段时,该第m个业务标志位对应的业务子字段的长度根据该选项字段的长度和该选项字段中除该业务子字段之外的子字段的总长度确定。例如,业务长度子字段1和业务子字段1均对应业务标志位1,业务标志位1用于指示该选项字段中包括业务子字段1,业务长度子字段1用于指示业务子字段1的长度。再例如,业务长度子字段2和业务子字段2均对应业务标志位2,业务标志位2用于指示该选项字段中包括业务子字段2,业务长度子字段2用于指示业务子字段2的长度。依次类推,假设业务长度子字段k和业务子字段n-1均对应业务标志位m-1,业务标志位m-1用于指示该选项字段中包括业务子字段 n-1,业务长度子字段k用于指示业务子字段n-1的长度。再假设,业务子字段n对应业务标志位m,业务标志位m用于指示该选项字段中包括业务子字段n,业务子字段n的长度等于该选项字段的长度与该选项字段中除业务子字段n之外的子字段的长度的差值;也即,业务子字段n的长度等于该选项字段的长度与类型子字段、长度子字段、标志子字段、业务长度子字段1~k、流指示子字段、业务子字段1~n-1的总长度的差值。Referring to Figure 16 and Figure 17, in another example, k=m-1, the k service length subfields correspond to the k service flag bits among the m service flag bits, for example, the k service length subfields The subfield has a one-to-one correspondence with the first k service flag bits among the m service flag bits. Each service flag bit among the k service flag bits is used to indicate whether the option field includes the corresponding service flag bit. The service subfield of the service. When each service flag bit indicates that the option field includes the service subfield of the service corresponding to each service flag bit, the service length subfield corresponding to each service flag bit is used to indicate the service. The length of the subfield; the mth service flag bit is used to indicate whether the option field includes the service subfield of the service corresponding to the mth service flag bit, and the mth service flag bit indicates that the option field includes the service subfield. When m service flag bits correspond to the service subfield of the service, the length of the service subfield corresponding to the mth service flag bit is based on the length of the option field and the total length of the subfields in the option field except the service subfield. The length is determined. For example, service length subfield 1 and service subfield 1 both correspond to service flag bit 1. Service flag bit 1 is used to indicate that the option field includes service subfield 1, and service length subfield 1 is used to indicate the length of service subfield 1. . For another example, the service length subfield 2 and the service subfield 2 both correspond to the service flag bit 2. The service flag bit 2 is used to indicate that the option field includes the service subfield 2, and the service length subfield 2 is used to indicate the service subfield 2. length. By analogy, it is assumed that the service length subfield k and the service subfield n-1 both correspond to the service flag bit m-1, and the service flag bit m-1 is used to indicate that the option field includes the service subfield n-1, the service length subfield k is used to indicate the length of the service subfield n-1. Assume further that the service subfield n corresponds to the service flag bit m. The service flag bit m is used to indicate that the option field includes the service subfield n. The length of the service subfield n is equal to the length of the option field and the length of the option field except the service subfield. The difference in length of the subfields other than field n; that is, the length of the service subfield n is equal to the length of the option field and the type subfield, length subfield, flag subfield, service length subfield 1 to k, flow Indicates the difference between the total lengths of the indication subfield and service subfields 1 to n-1.
前述描述的第一业务子字段、第二业务子字段和第三业务子字段是图16和图17所示的选项字段中依次排列的任意3个业务子字段。一个示例中,第一业务子字段是业务子字段1,第二业务子字段是业务子字段2,第三业务子字段是业务子字段3。另一个示例中,第一业务子字段是业务子字段1,第二业务子字段是业务子字段3,第三业务子字段是业务子字段n。再一个示例中,第一业务子字段是业务子字段2,第二业务子字段是业务子字段3,第三业务子字段是业务子字段n。示例的,在图16和图17所示的选项字段中,m=k=8。对于图17所示的选项字段,每个业务长度子字段的长度可以为3比特。图16以流标志位位于标志子字段的最高位说明,流标志位可以是该标志子字段中的任意一个标志位。图16和图17以业务标志位1~m按照从高位到低位的顺序排列说明,业务标志位1~m也可以按照从低高位到高位的顺序排列,或者按照其他方式排列,标志子字段也可以通过其他方式对应到所述m个业务。The first service subfield, the second service subfield and the third service subfield described above are any three service subfields arranged in sequence in the option fields shown in Figures 16 and 17. In an example, the first service subfield is service subfield 1, the second service subfield is service subfield 2, and the third service subfield is service subfield 3. In another example, the first service subfield is service subfield 1, the second service subfield is service subfield 3, and the third service subfield is service subfield n. In another example, the first service subfield is service subfield 2, the second service subfield is service subfield 3, and the third service subfield is service subfield n. For example, in the option fields shown in Figures 16 and 17, m=k=8. For the option field shown in Figure 17, the length of each service length subfield may be 3 bits. Figure 16 illustrates that the flow flag bit is located at the highest bit of the flag subfield. The flow flag bit can be any flag bit in the flag subfield. Figure 16 and Figure 17 illustrate that the service flag bits 1~m are arranged in the order from high bit to low bit. The service flag bits 1~m can also be arranged in the order from low high bit to high bit, or arranged in other ways. The flag subfield can also be arranged in order. The m services can be mapped to the m services in other ways.
第二种实现方式:选项字段中包括第一类型空间和第二类型空间,第一类型空间用于指示该选项字段中包括第一业务子字段,第二类型空间用于指示该选项字段中包括第二业务子字段。The second implementation mode: the option field includes a first type space and a second type space. The first type space is used to indicate that the option field includes the first business subfield, and the second type space is used to indicate that the option field includes The second business subfield.
在该第二种实现方式中,第一长度子字段在第一业务子字段中,第二长度子字段在第二业务子字段中。也即,第一长度子字段是第一业务子字段中的一部分,第二长度子字段是第二业务子字段中的一部分。在这一实施例中,第一长度子字段也称为第一长度空间,第二长度子字段也称为第二长度空间。可选的,第一业务子字段中还包括第一类型空间,第二业务子字段中还包括第二类型空间,第一类型空间用于指示第一业务(也即第一类型空间用于指示第一业务子字段对应第一业务),第二类型空间用于指示第二业务(也即第二类型空间用于指示第二业务子字段对应第二业务)。可选的,第一业务子字段中还包括第一数据空间,第二业务子字段中还包括第二数据空间,第一数据空间用于携带第一业务的业务信息,第二数据空间用于携带第二业务的业务信息,第一长度子字段用于指示第一数据空间的长度,第二长度子字段用于指示第二数据空间的长度。可选的,所述选项字段中还包括流指示子字段,该流指示子字段用于指示报文A所属的数据流。例如,该流指示子字段用于携带流指示信息,该流指示信息用于指示报文A所属的数据流,该流指示信息可以是流标识。In this second implementation manner, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield. That is, the first length subfield is part of the first service subfield, and the second length subfield is part of the second service subfield. In this embodiment, the first length subfield is also called the first length space, and the second length subfield is also called the second length space. Optionally, the first service subfield also includes a first type space, and the second service subfield also includes a second type space. The first type space is used to indicate the first service (that is, the first type space is used to indicate The first service subfield corresponds to the first service), and the second type space is used to indicate the second service (that is, the second type space is used to indicate that the second service subfield corresponds to the second service). Optionally, the first service subfield also includes a first data space, and the second service subfield also includes a second data space. The first data space is used to carry the service information of the first service, and the second data space is used to carry the service information of the first service. Carrying the service information of the second service, the first length subfield is used to indicate the length of the first data space, and the second length subfield is used to indicate the length of the second data space. Optionally, the option field also includes a flow indication subfield, which is used to indicate the data flow to which message A belongs. For example, the flow indication subfield is used to carry flow indication information, and the flow indication information is used to indicate the data flow to which message A belongs. The flow indication information may be a flow identifier.
具体的实施例中,该选项字段中包括流指示子字段和n个业务子字段,该流指示子字段与该n个业务子字段依次排列,该n个业务子字段一一对应n个业务,该n个业务子字段中的每个业务子字段中包括类型空间、业务长度子字段(或称为业务长度空间)和数据空间,每个业务子字段中的类型空间用于指示该每个业务子字段对应的业务,每个业务子字段中的数据空间用于携带对应业务的业务信息,每个业务子字段中的业务长度子字段用于指示该每个业务子字段中的数据空间的长度。示例的,该选项字段的结构如图18所示,该选项字段中包括类型子字段、长度子字段、流指示子字段和n个业务子字段。该类型子字段指示该选项字段的类型。该长度子字段用于指示该选项字段的数据字段的长度(也即该选项字段中除该 类型子字段和该长度子字段之外的子字段的总长度)。业务子字段1中包括类型空间1、业务长度子字段1和数据空间1,类型空间1用于指示业务子字段1对应业务1,业务长度子字段1用于指示数据空间1的长度,数据空间1用于携带业务1的业务信息。再示例的,业务子字段2中包括类型空间2、业务长度子字段2和数据空间2,类型空间2用于指示业务子字段2对应业务2,业务长度子字段2用于指示数据空间2的长度,数据空间2用于携带业务2的业务信息,以此类推。前述描述的第一业务子字段、第二业务子字段和第三业务子字段是图18所示的选项字段中依次排列的任意3个业务子字段。例如,一个示例中,第一业务子字段是业务子字段1,第二业务子字段是业务子字段2,第三业务子字段是业务子字段n。In a specific embodiment, the option field includes a flow indication subfield and n service subfields. The flow indication subfield and the n service subfields are arranged in sequence. The n service subfields correspond to n services one by one. Each of the n service subfields includes a type space, a service length subfield (or service length space) and a data space. The type space in each service subfield is used to indicate each service. The service corresponding to the subfield. The data space in each service subfield is used to carry the service information of the corresponding service. The service length subfield in each service subfield is used to indicate the length of the data space in each service subfield. . For example, the structure of the option field is shown in Figure 18. The option field includes a type subfield, a length subfield, a flow indication subfield and n service subfields. The type subfield indicates the type of this option field. This length subfield is used to indicate the length of the data field of the option field (that is, the length of the data field in the option field except the The total length of the type subfield and subfields other than the length subfield). Service subfield 1 includes type space 1, service length subfield 1 and data space 1. Type space 1 is used to indicate that service subfield 1 corresponds to service 1. Service length subfield 1 is used to indicate the length of data space 1. Data space 1 is used to carry the business information of business 1. As another example, the service subfield 2 includes a type space 2, a service length subfield 2 and a data space 2. The type space 2 is used to indicate that the service subfield 2 corresponds to the service 2, and the service length subfield 2 is used to indicate the data space 2. length, data space 2 is used to carry the service information of service 2, and so on. The first service subfield, the second service subfield and the third service subfield described above are any three service subfields arranged in sequence in the option field shown in Figure 18. For example, in one example, the first service subfield is service subfield 1, the second service subfield is service subfield 2, and the third service subfield is service subfield n.
在本申请实施例中,第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个,第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。第三业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。例如,第一业务是切片业务,第二业务是APN业务,第三业务是SFC业务。其中,随流检测业务包括IFIT业务或IOAM业务,也可以是其他的随流检测业务。任一业务的业务信息包括与该业务相关的信息,例如任一业务的业务信息包括目前针对该业务独立扩展选项字段时该选项字段中携带的该业务的业务信息,还可能包括与该业务相关的其他信息。示例的,切片业务的业务信息包括切片标识。随流检测业务的业务信息包括流标识等。APN业务的业务信息包括APN ID,还可以包括APN参数,该APN ID包括用户组标识和应用组标识中的至少一个,该APN参数包括带宽要求参数、时延要求参数、丢包率要求参数、抖动要求参数中的至少一个。DetNet业务的业务信息包括路径标识。SFC业务的业务信息包括服务路径标识、服务索引标识等。路径段业务的业务信息包括路径段ID,路径段ID用于指示一个路径段,该路径段ID对应一个段列表(segment list),该段列表中包括该路径段ID指示的路径段上的各个网络设备对应的段标识(segment identifier,SID)。示例的,路径段业务是分段路由互联网协议第6版(segment routing internet protocol version 6,SRv6)路径段业务,SRv6路径段业务的业务信息是SRv6路径段ID,SRv6路径段ID通常位于段路由头(segment routing header,SRH)的段列表(segment list)的最后一个表项中。In the embodiment of this application, the first service includes any one of the slicing service, the following detection service, the APN service, the DetNet service, the SFC service and the path segment service, and the second service includes the slicing service, the following detection service and the APN service. , DetNet service, SFC service and path segment service any one. The third service includes any one of slicing service, flow detection service, APN service, DetNet service, SFC service and path segment service. For example, the first service is the slicing service, the second service is the APN service, and the third service is the SFC service. Among them, the flow-following detection service includes the IFIT service or the IOAM service, and may also be other flow-following detection services. The business information of any business includes information related to the business. For example, the business information of any business includes the business information of the business carried in the option field when the option field is independently expanded for the business. It may also include information related to the business. of other information. For example, the service information of the slice service includes the slice identifier. The business information of the flow-following detection service includes flow identification, etc. The business information of the APN service includes an APN ID and may also include APN parameters. The APN ID includes at least one of a user group identifier and an application group identifier. The APN parameters include bandwidth requirement parameters, delay requirement parameters, packet loss rate requirement parameters, Dithering requires at least one of the parameters. The service information of DetNet service includes path identification. The business information of the SFC service includes service path identification, service index identification, etc. The business information of the path segment service includes the path segment ID. The path segment ID is used to indicate a path segment. The path segment ID corresponds to a segment list (segment list). The segment list includes each path segment on the path segment indicated by the path segment ID. The segment identifier (SID) corresponding to the network device. For example, the path segment service is the segment routing internet protocol version 6 (SRv6) path segment service. The service information of the SRv6 path segment service is the SRv6 path segment ID. The SRv6 path segment ID is usually located in the segment routing The last entry in the segment list (segment list) of the segment routing header (SRH).
S502.网络设备A向网络设备B发送报文A。S502. Network device A sends message A to network device B.
一个实施例中,网络设备B是网络设备A的下一跳设备,网络设备A根据报文A的目的地址查找网络设备A的路由表,以在网络设备A中确定报文A对应的出端口,网络设备A通过该报文A对应的出端口向网络设备B发送报文A。例如图13和图14所示,网络设备A是网络设备101,网络设备B是网络设备102,网络设备101通过该报文A对应的出端口向网络设备102发送报文A。或者,网络设备A是网络设备102,网络设备B是网络设备103,网络设备102通过该报文A对应的出端口向网络设备103发送报文A。In one embodiment, network device B is the next hop device of network device A. Network device A searches the routing table of network device A according to the destination address of message A to determine the egress port corresponding to message A in network device A. , Network device A sends message A to network device B through the egress port corresponding to message A. For example, as shown in Figures 13 and 14, network device A is network device 101, network device B is network device 102, and network device 101 sends message A to network device 102 through the egress port corresponding to message A. Alternatively, network device A is network device 102, network device B is network device 103, and network device 102 sends message A to network device 103 through the egress port corresponding to message A.
另一个实施例中,网络设备B不是网络设备A的下一跳设备,网络设备B通过其他网络设备与网络设备A连接,网络设备A通过该其他网络设备向网络设备B发送报文A。例如图13和图14所示,网络设备A是网络设备101,网络设备B是网络设备103,网络设备101通过网络设备102向网络设备103发送报文A,即,网络设备101将报文A转发给网络设备102,网络设备102将报文A转发给网络设备103。或者,网络设备A是网络设备102,网络 设备B是网络设备104,网络设备102通过网络设备103向网络设备104发送报文A,即,网络设备102将报文A转发给网络设备103,网络设备103将报文A转发给网络设备104。In another embodiment, network device B is not the next hop device of network device A. Network device B is connected to network device A through other network devices, and network device A sends message A to network device B through the other network devices. For example, as shown in Figure 13 and Figure 14, network device A is network device 101, network device B is network device 103, network device 101 sends message A to network device 103 through network device 102, that is, network device 101 sends message A Forwarded to network device 102, network device 102 forwards message A to network device 103. Or, network device A is network device 102, network Device B is network device 104. Network device 102 sends message A to network device 104 through network device 103. That is, network device 102 forwards message A to network device 103, and network device 103 forwards message A to network device 104. .
S503.网络设备B接收报文A。S503. Network device B receives message A.
对应于网络设备A向网络设备B发送报文A,网络设备B接收报文A。Corresponding to network device A sending message A to network device B, network device B receives message A.
S504.网络设备B根据报文A的选项字段中包括的第一业务子字段处理报文A。S504. Network device B processes message A according to the first service subfield included in the option field of message A.
网络设备B可以是报文A的转发路径上的中间节点或尾节点。根据S501可知,所述选项字段可以位于报文A的HBH、DOH1或DOH2中。如果该选项字段位于HBH中,接收到报文A的每个网络设备都可以根据该选项字段处理报文A。如果该选项字段位于DOH1中,接收到报文A且命中报文A的目的地址的每个网络设备都可以根据该选项字段处理报文A。如果该选项字段位于DOH2中,只需尾节点根据该选项字段处理报文A。Network device B may be an intermediate node or tail node on the forwarding path of message A. According to S501, the option field may be located in HBH, DOH1 or DOH2 of message A. If this option field is located in the HBH, each network device that receives message A can process message A based on this option field. If this option field is located in DOH1, each network device that receives message A and hits the destination address of message A can process message A according to this option field. If the option field is located in DOH2, only the tail node needs to process message A according to the option field.
一个实施例中,网络设备B是中间节点。如果所述选项字段位于报文A的HBH中,网络设备B根据该选项字段处理报文A。如果该选项字段位于报文A的DOH1中,网络设备B判断网络设备B是否命中报文A的目的地址,如果网络设备B命中报文A的目的地址,网络设备B根据该选项字段处理报文A,如果网络设备B未命中报文A的目的地址,网络设备B不根据该选项字段处理报文A。如果该选项字段位于报文A的DOH2中,网络设备B不根据该选项字段处理报文A。另一个实施例中,网络设备B是尾节点。如果所述选项字段位于报文A的HBH中,网络设备B根据该选项字段处理报文A。如果该选项字段位于报文A的DOH1中,网络设备B判断网络设备B是否命中报文A的目的地址,如果网络设备B命中报文A的目的地址,网络设备B根据该选项字段处理报文A,如果网络设备B未命中报文A的目的地址,网络设备B不根据该选项字段处理报文A。如果该选项字段位于报文A的DOH2中,网络设备B根据该选项字段处理报文A。具体实施方式中,作为尾节点的网络设备B还可以去除报文A中的所述选项字段,本申请实施例对此不作限定。In one embodiment, network device B is an intermediate node. If the option field is located in the HBH of message A, network device B processes message A according to the option field. If this option field is located in DOH1 of message A, network device B determines whether network device B hits the destination address of message A. If network device B hits the destination address of message A, network device B processes the message according to this option field. A. If network device B does not match the destination address of message A, network device B does not process message A according to this option field. If this option field is located in DOH2 of message A, network device B does not process message A based on this option field. In another embodiment, network device B is the tail node. If the option field is located in the HBH of message A, network device B processes message A according to the option field. If this option field is located in DOH1 of message A, network device B determines whether network device B hits the destination address of message A. If network device B hits the destination address of message A, network device B processes the message according to this option field. A. If network device B does not match the destination address of message A, network device B does not process message A according to this option field. If the option field is located in DOH2 of message A, network device B processes message A based on the option field. In a specific implementation manner, network device B as the tail node can also remove the option field in message A, which is not limited in the embodiment of the present application.
本申请实施例以网络设备B根据所述选项字段处理报文A为例说明。该选项字段中包括n个业务一一对应的n个业务子字段,该n个业务子字段按序排列,网络设备B按照该n个业务子字段的排列顺序依次根据该n个业务子字段处理报文A。例如,该n个业务包括第一业务和第二业务,该n个业务子字段包括对应于第一业务的第一业务子字段和对应于第二业务的第二业务子字段,第一业务子字段和第二业务子字段按序排列,网络设备B依次根据第一业务子字段和第二业务子字段处理报文A。在本申请中,网络设备B可以支持该n个业务中的所有业务,也可以不支持该n个业务中的至少一个业务,网络设备B根据该选项字段处理报文A的过程中,如果网络设备B支持某一业务,网络设备B根据该某一业务的业务子字段处理报文A,如果网络设备B不支持某一业务,网络设备B跳过该某一业务的业务子字段。This embodiment of the present application takes network device B as an example to process message A according to the option field. This option field includes n service subfields corresponding to n services one-to-one. The n service subfields are arranged in order. Network device B processes the n service subfields in sequence according to the order of the n service subfields. Message A. For example, the n services include a first service and a second service, and the n service subfields include a first service subfield corresponding to the first service and a second service subfield corresponding to the second service. The first service subfield The fields and the second service subfield are arranged in order, and the network device B processes the message A according to the first service subfield and the second service subfield in turn. In this application, network device B may support all of the n services, or may not support at least one of the n services. When network device B processes message A according to this option field, if the network Device B supports a certain service, and network device B processes message A according to the service subfield of the certain service. If network device B does not support a certain service, network device B skips the service subfield of the certain service.
一个实施例中,该选项字段中包括该n个业务一一对应的n个业务长度子字段,对于该n个业务中的每个业务,网络设备B根据该每个业务对应的业务长度子字段确定该每个业务的业务子字段的长度。如果网络设备B支持该每个业务,网络设备B根据该每个业务的业务子字段的长度获取该每个业务的业务子字段中携带的业务信息,进而根据该业务子字段中携带的业务信息处理报文A。如果网络设备B不支持该每个业务,网络设备B根据该每个业务的业务子字段的长度跳过该每个业务的业务子字段。示例的,该n个业务包括第一业务和第二业务,该n个业务长度子字段包括对应于第一业务的第一长度子字段和对应于第二业务的 第二长度子字段。网络设备B根据第一长度子字段确定第一业务子字段的长度;如果网络设备B支持第一业务,网络设备B根据第一业务子字段的长度获取第一业务子字段中携带的业务信息(也即第一业务的业务信息),进而根据第一业务的业务信息处理报文A;如果网络设备B不支持第一业务,网络设备B根据第一业务子字段的长度跳过第一业务子字段。同理,网络设备B根据第二长度子字段确定第二业务子字段的长度;如果网络设备B支持第二业务,网络设备B根据第二业务子字段的长度获取第二业务子字段中携带的业务信息(也即第二业务的业务信息),进而根据第二业务的业务信息处理报文A;如果网络设备B不支持第二业务,网络设备B根据第二业务子字段的长度跳过第二业务子字段。In one embodiment, the option field includes n service length subfields corresponding to the n services one-to-one. For each of the n services, network device B determines the length of the service according to the service length subfield corresponding to each service. Determine the length of the service subfield for each service. If network device B supports each service, network device B obtains the service information carried in the service subfield of each service according to the length of the service subfield, and then obtains the service information carried in the service subfield according to the length of the service subfield. Process message A. If network device B does not support each service, network device B skips the service subfield of each service according to the length of the service subfield of each service. For example, the n services include a first service and a second service, and the n service length subfields include a first length subfield corresponding to the first service and a first length subfield corresponding to the second service. Second length subfield. Network device B determines the length of the first service subfield based on the first length subfield; if network device B supports the first service, network device B obtains the service information carried in the first service subfield based on the length of the first service subfield ( That is, the service information of the first service), and then processes message A according to the service information of the first service; if network device B does not support the first service, network device B skips the first service subfield according to the length of the first service subfield. field. Similarly, network device B determines the length of the second service subfield based on the second length subfield; if network device B supports the second service, network device B obtains the length of the second service subfield based on the length of the second service subfield. service information (that is, the service information of the second service), and then process message A according to the service information of the second service; if network device B does not support the second service, network device B skips the second service subfield according to the length of the second service. 2. Business subfield.
另一个实施例中,该选项字段中包括该n个业务中的前n-1个业务一一对应的n-1个业务长度子字段。对于该前n-1个业务中的每个业务,网络设备B根据该每个业务对应的业务长度子字段确定该每个业务的业务子字段的长度;如果网络设备B支持该每个业务,网络设备B根据该每个业务的业务子字段的长度获取该业务子字段中携带的业务信息,进而根据该业务子字段中携带的业务信息处理报文A;如果网络设备B不支持该每个业务,网络设备B根据该每个业务的业务子字段的长度跳过该每个业务的业务子字段。对于该n个业务中的第n个业务,网络设备B根据该选项字段的长度和该选项字段中除该第n个业务的业务子字段(为了便于描述,将该第n个业务的业务子字段称为第n个业务子字段)之外的子字段的长度确定该第n个业务子字段的长度;如果网络设备B支持该第n个业务,网络设备B根据该第n个业务子字段的长度获取该第n个业务子字段中携带的业务信息,进而根据该第n个业务子字段中携带的业务信息处理该报文A;如果网络设备B不支持该第n个业务,网络设备B根据该第n个业务子字段的长度跳过该第n个业务子字段。示例的,该n个业务包括第一业务和第二业务,该n-1个业务长度子字段包括对应于第一业务的第一长度子字段,第二业务是该第n个业务。网络设备B根据第一长度子字段确定第一业务子字段的长度;如果网络设备B支持第一业务,网络设备B根据第一业务子字段的长度获取第一业务子字段中携带的第一业务的业务信息,进而根据第一业务的业务信息处理报文A;如果网络设备B不支持第一业务,网络设备B根据第一业务子字段的长度跳过第一业务子字段。网络设备B根据该选项字段的长度和该选项字段中除第二业务子字段之外的子字段的长度确定第二业务子字段的长度;如果网络设备B支持第二业务,网络设备B根据第二业务子字段的长度获取第二业务子字段中携带的第二业务的业务信息,进而根据第二业务的业务信息处理报文A;如果网络设备B不支持第二业务,网络设备B根据第二业务子字段的长度跳过第二业务子字段。可选的,对于该第n个业务,网络设备B也可以先确定网络设备B是否支持该第n个业务,如果网络设备B支持该第n个业务,网络设备B根据该选项字段的长度和该选项字段中除该第n个业务子字段之外的子字段的长度确定该第n个业务子字段的长度;如果网络设备B不支持该第n个业务,网络设备B直接跳过该选项字段,本申请实施例对此不作限定。In another embodiment, the option field includes n-1 service length subfields corresponding to the first n-1 services among the n services. For each service in the first n-1 services, network device B determines the length of the service subfield of each service according to the service length subfield corresponding to each service; if network device B supports each service, Network device B obtains the service information carried in the service subfield according to the length of the service subfield of each service, and then processes message A according to the service information carried in the service subfield; if network device B does not support each service service, network device B skips the service subfield of each service according to the length of the service subfield of each service. For the nth service among the n services, network device B divides the service subfield of the nth service according to the length of the option field and the service subfield of the option field (for convenience of description, the service subfield of the nth service is The length of subfields other than the nth service subfield determines the length of the nth service subfield; if network device B supports the nth service, network device B determines the length of the nth service subfield according to the nth service subfield. length to obtain the service information carried in the nth service subfield, and then process the message A according to the service information carried in the nth service subfield; if network device B does not support the nth service, the network device B skips the n-th service subfield according to the length of the n-th service subfield. For example, the n services include a first service and a second service, the n-1 service length subfields include a first length subfield corresponding to the first service, and the second service is the nth service. Network device B determines the length of the first service subfield based on the first length subfield; if network device B supports the first service, network device B obtains the first service carried in the first service subfield based on the length of the first service subfield. service information, and then processes message A according to the service information of the first service; if network device B does not support the first service, network device B skips the first service subfield according to the length of the first service subfield. Network device B determines the length of the second service subfield based on the length of the option field and the length of the subfields in the option field except the second service subfield; if network device B supports the second service, network device B determines the length of the second service subfield based on the length of the option field. The length of the second service subfield is used to obtain the service information of the second service carried in the second service subfield, and then the message A is processed according to the service information of the second service; if network device B does not support the second service, network device B processes message A according to the second service subfield. The length of the second service subfield skips the second service subfield. Optionally, for the n-th service, network device B can also first determine whether network device B supports the n-th service. If network device B supports the n-th service, network device B determines whether network device B supports the n-th service according to the length and sum of the option fields. The length of the subfields in this option field except the nth service subfield determines the length of the nth service subfield; if network device B does not support the nth service, network device B directly skips this option. Field, the embodiment of this application does not limit this.
可选的实施例中,所述选项字段还包括流指示子字段,该流指示子字段用于指示报文A所属的数据流(例如报文A所属的数据流A),网络设备B根据该流指示子字段和所述n个业务子字段处理报文A。示例的,网络设备B根据该流指示子字段确定报文A所属的数据流A,对于所述n个业务中的每个业务,如果网络设备B支持该每个业务,网络设备B确定与数据流A和该每个业务均关联(或者说同时关联)的本地配置信息,网络设备B根据该每个 业务的业务子字段携带的业务信息和该本地配置信息处理报文A。本申请实施例以网络设备B支持第一业务为例说明,网络设备B根据该选项字段中包括的流指示子字段和第一业务子字段(也即是第一业务的业务子字段)处理报文A。具体的实施方式中,网络设备B根据该流指示子字段中携带的流指示信息确定报文A属于数据流A,以及,网络设备B从第一业务子字段中获取第一业务的业务信息,网络设备B确定与数据流A和第一业务均关联的本地配置信息(例如将与数据流A和第一业务均关联的本地配置信息称为第一本地配置信息),网络设备B根据第一本地配置信息和第一业务的业务信息处理报文A。示例的,第一本地配置信息包括网络设备B中与数据流A和第一业务均关联的程序指令,网络设备B执行该程序指令以处理报文A。其中,该程序指令包括至少一个处理动作(action),该至少一个处理动作可以包括例如统计动作、检测动作、转发动作等等,第一本地配置信息还可以包括网络设备B中与数据流A和第一业务关联的其他配置信息,本申请对此不作限定。In an optional embodiment, the option field also includes a flow indication subfield. The flow indication subfield is used to indicate the data flow to which message A belongs (for example, data flow A to which message A belongs). Network device B responds according to the flow indication subfield. The flow indication subfield and the n service subfields process message A. For example, network device B determines the data flow A to which message A belongs based on the flow indication subfield. For each of the n services, if network device B supports each service, network device B determines the data flow A to which the message A belongs. Flow A is associated (or simultaneously associated) with the local configuration information of each service. Network device B is based on the local configuration information of each service. The service information carried in the service subfield of the service and the local configuration information are processed in message A. The embodiment of this application takes network device B supporting the first service as an example. Network device B processes the report according to the flow indication subfield and the first service subfield (that is, the service subfield of the first service) included in the option field. Text A. In a specific implementation, network device B determines that message A belongs to data flow A based on the flow indication information carried in the flow indication subfield, and network device B obtains the service information of the first service from the first service subfield, Network device B determines local configuration information associated with both data flow A and the first service (for example, the local configuration information associated with both data flow A and the first service is called first local configuration information), and network device B determines the local configuration information associated with both data flow A and the first service. The local configuration information and the service information of the first service are processed in message A. For example, the first local configuration information includes program instructions in network device B that are associated with both data flow A and the first service. Network device B executes the program instructions to process message A. Wherein, the program instruction includes at least one processing action (action). The at least one processing action may include, for example, statistical actions, detection actions, forwarding actions, etc. The first local configuration information may also include data flow A and data flow A in network device B. Other configuration information associated with the first service is not limited in this application.
一个实施例中,第一业务是切片业务,第一本地配置信息包括网络设备B中与数据流A和该切片业务均关联的资源配置信息、程序指令等。该资源配置信息可以包括该切片业务的切片标识、网络设备B中承载该切片业务的切片接口、该切片业务的切片标识与网络设备B中承载该切片业务的切片接口的对应关系等。该程序指令可以包括该切片业务的切片标识以及网络设备B中与数据流A和该切片业务均关联的处理动作,例如该处理动作包括转发动作以及该转发动作对应的切片接口等。示例的,报文A中携带的第一业务的业务信息是该切片业务的切片标识,网络设备B根据该切片标识从第一本地配置信息中确定与数据流A和该切片业务均关联的程序指令,然后执行该程序指令以处理报文A,例如,网络设备B执行该程序指令以通过该切片业务关联的切片接口转发报文A。In one embodiment, the first service is a slice service, and the first local configuration information includes resource configuration information, program instructions, etc. in network device B that are associated with both data flow A and the slice service. The resource configuration information may include the slice identifier of the slice service, the slice interface in network device B that carries the slice service, the correspondence between the slice identifier of the slice service and the slice interface in network device B that carries the slice service, etc. The program instructions may include the slice identifier of the slice service and the processing action in network device B that is associated with both data flow A and the slice service. For example, the processing action includes a forwarding action and a slice interface corresponding to the forwarding action. For example, the service information of the first service carried in message A is the slice identifier of the slice service. Network device B determines the program associated with both data flow A and the slice service from the first local configuration information based on the slice identifier. instruction, and then executes the program instruction to process message A. For example, network device B executes the program instruction to forward message A through the slice interface associated with the slice service.
另一个实施例中,第一业务是随流检测业务,第一本地配置信息包括网络设备B中与数据流A和该随流检测业务均关联的程序指令。该程序指令可以包括该随流检测业务的流标识以及网络设备B中与数据流A和该随流检测业务均关联的处理动作,这些处理动作例如统计动作,检测动作等,该统计动作具体可以包括统计哪些内容。例如统计网络设备B接收到属于该数据流A且属于该随流检测业务的报文的接收时间戳,统计网络设备B发送的属于该数据流A且属于该随流检测业务的报文的发送时间戳,统计属于该数据流A且属于该随流检测业务的报文的报文序号,统计属于该数据流A且属于该随流检测业务的报文在网络设备B中的传输时延等。其中,该随流检测业务包括IFIT业务或IOAM业务。一个示例中,第一业务是IFIT业务,报文A中携带的第一业务的业务信息是该IFIT业务的流标识,网络设备B根据该IFIT业务的流标识从第一本地配置信息中确定与数据流A和该IFIT业务均关联的程序指令,然后执行该程序指令以处理报文A。例如,网络设备B执行该程序指令中包括的处理动作以统计网络设备B接收到报文A的接收时间戳、网络设备B发送报文A的发送时间戳、报文A的报文序列等传输质量信息,网络设备B还可以将这些传输质量信息以及该IFIT业务的流标识上报给控制器,使控制器根据多个网络设备发送的该IFIT业务的传输质量信息确定该IFIT业务的传输质量。另一个示例中,第一业务是IOAM业务,报文A中携带的第一业务的业务信息是该IOAM业务的流标识,网络设备B根据该IOAM业务的流标识从第一本地配置信息中确定与数据流A和该IOAM业务均关联的程序指令,然后执行该程序指令以处理报文A。例如,网络设备B执行该程序指令中包括的处理动作以根据报文A进行服务等级 协议(service-level agreement,SLA)检测、路径验证等检测处理,具体可以包括网络设备B在报文A中添加网络设备B接收到报文A的接收时间戳、网络设备B发送报文A的发送时间戳、报文A在网络设备B中的传输时延、网络设备B的元数据(metadata,MD)等。In another embodiment, the first service is an accompanying detection service, and the first local configuration information includes program instructions in network device B that are associated with both data flow A and the accompanying detection service. The program instructions may include the flow identifier of the flow detection service and the processing actions in network device B that are associated with both the data flow A and the flow detection service. These processing actions may include statistical actions, detection actions, etc. The statistical actions may be Including what statistics are included. For example, statistics are collected on the reception timestamps of packets that network device B receives that belong to data flow A and belong to the flow-following detection service, and statistics are collected on the sending of packets that network device B sends that belong to data flow A and belong to the flow-following detection service. Timestamp, statistics of the packet sequence number of the packets belonging to the data flow A and the flow-following detection service, statistics of the transmission delay of the packets belonging to the data flow A and the flow-following detection service in network device B, etc. . Among them, the flow-following detection service includes IFIT service or IOAM service. In one example, the first service is an IFIT service, the service information of the first service carried in message A is the flow identifier of the IFIT service, and network device B determines from the first local configuration information according to the flow identifier of the IFIT service. Data flow A and the IFIT service are both associated with program instructions, and then the program instructions are executed to process message A. For example, network device B executes the processing actions included in the program instructions to collect statistics on the reception timestamp of message A received by network device B, the sending timestamp of message A sent by network device B, the message sequence of message A, etc. Quality information, network device B can also report these transmission quality information and the flow identifier of the IFIT service to the controller, so that the controller determines the transmission quality of the IFIT service based on the transmission quality information of the IFIT service sent by multiple network devices. In another example, the first service is an IOAM service. The service information of the first service carried in message A is the flow identifier of the IOAM service. Network device B determines from the first local configuration information based on the flow identifier of the IOAM service. Program instructions associated with both data flow A and the IOAM service, and then execute the program instructions to process message A. For example, network device B executes the processing actions included in the program instructions to perform service level processing based on message A. Detection processing such as agreement (service-level agreement, SLA) detection and path verification may specifically include network device B adding the reception timestamp of message A when network device B receives message A, and the time stamp of network device B sending message A. Sending timestamp, transmission delay of message A in network device B, metadata (MD) of network device B, etc.
再一个实施例中,第一业务是APN业务,第一本地配置信息包括网络设备B中与数据流A和该APN业务均关联的资源配置信息、程序指令等。该资源配置信息可以包括网络设备B为该APN业务分配的转发接口、网络设备B为该APN业务分配的带宽等以保证该APN业务的带宽、时延、抖动、丢包率等要求。该程序指令可以包括该APN业务的APN属性以及网络设备B中与数据流A和该APN业务关联的处理动作,例如包括转发动作以及该转发动作对应的转发接口等。示例的,报文A中携带的第一业务的业务信息是该APN业务的APN属性,该APN属性包括APN ID和APN参数,网络设备B根据该APN属性从第一本地配置信息中确定与数据流A和该APN业务均关联的程序指令,然后执行该程序指令以处理报文A。例如,网络设备B通过该APN业务关联的转发接口转发报文A。In another embodiment, the first service is an APN service, and the first local configuration information includes resource configuration information, program instructions, etc. in network device B that are associated with both data flow A and the APN service. The resource configuration information may include the forwarding interface allocated by network device B for the APN service, the bandwidth allocated by network device B for the APN service, etc. to ensure the bandwidth, delay, jitter, packet loss rate and other requirements of the APN service. The program instructions may include the APN attribute of the APN service and the processing actions associated with the data flow A and the APN service in network device B, such as forwarding actions and forwarding interfaces corresponding to the forwarding actions. For example, the service information of the first service carried in message A is the APN attribute of the APN service. The APN attribute includes the APN ID and APN parameters. Network device B determines the data from the first local configuration information based on the APN attribute. Both flow A and the APN service are associated with program instructions, and then the program instructions are executed to process message A. For example, network device B forwards message A through the forwarding interface associated with the APN service.
又一个实施例中,第一业务是DetNet业务,第一本地配置信息包括网络设备B中与数据流A和该DetNet业务均关联的资源配置信息、程序指令等。该资源配置信息可以包括该DetNet业务的路径标识、网络设备B中对应于该路径标识指示的转发路径的路径资源(例如,对应于该转发路径的接口、对应于该转发路径的接口带宽、对应于该转发路径的接口速率等)。该程序指令可以包括该DetNet业务的路径标识以及网络设备B中与数据流A和该DetNet业务关联的处理动作,例如包括转发动作、该转发动作对应的转发接口等。示例的,报文A中携带的第一业务的业务信息是该DetNet业务的路径标识,网络设备B根据该DetNet业务的路径标识从第一本地配置信息中确定与数据流A和该DetNet业务均关联的程序指令,然后执行该程序指令以处理报文A。例如,网络设备B根据该DetNet业务的路径标识在网络设备B中确定该路径标识指示的转发路径的路径资源,网络设备B通过该路径资源转发报文A。In another embodiment, the first service is a DetNet service, and the first local configuration information includes resource configuration information, program instructions, etc. in network device B that are associated with both data flow A and the DetNet service. The resource configuration information may include the path identifier of the DetNet service, the path resources in network device B corresponding to the forwarding path indicated by the path identifier (for example, the interface corresponding to the forwarding path, the interface bandwidth corresponding to the forwarding path, the corresponding the interface rate of the forwarding path, etc.). The program instructions may include the path identifier of the DetNet service and the processing actions associated with the data flow A and the DetNet service in network device B, such as forwarding actions and forwarding interfaces corresponding to the forwarding actions. For example, the service information of the first service carried in message A is the path identifier of the DetNet service. Network device B determines from the first local configuration information according to the path identifier of the DetNet service that the data stream A and the DetNet service are both connected. The associated program instruction is then executed to process message A. For example, network device B determines the path resource of the forwarding path indicated by the path identifier in network device B based on the path identifier of the DetNet service, and network device B forwards message A through the path resource.
又一个实施例中,第一业务是SFC业务,第一本地配置信息包括网络设备B中与数据流A和该SFC业务均关联的资源配置信息、程序指令等。该资源配置信息可以包括该SFC业务的服务路径标识(service path identifier,SPI)、网络设备B中对应于该SPI指示的服务功能路径(service function path,SFP)的路径资源。该程序指令可以包括该SFC业务的SPI以及网络设备B中与数据流A和该SFC业务均关联的处理动作,例如包括转发动作、该转发动作对应的转发接口等。示例的,报文A中携带的第一业务的业务信息是该SFC业务的SPI,网络设备B根据该SFC业务的SPI从第一本地配置信息中确定与数据流A和该SFC业务均关联的程序指令,然后执行该程序指令以处理报文A。例如,网络设备B根据该SFC业务的SPI在网络设备B中确定该SPI指示的SFP的路径资源,并通过该路径资源转发报文A。In another embodiment, the first service is an SFC service, and the first local configuration information includes resource configuration information, program instructions, etc. in network device B that are associated with both data flow A and the SFC service. The resource configuration information may include a service path identifier (SPI) of the SFC service and a path resource in network device B corresponding to the service function path (SFP) indicated by the SPI. The program instructions may include the SPI of the SFC service and the processing actions in network device B that are associated with both data flow A and the SFC service, such as forwarding actions and forwarding interfaces corresponding to the forwarding actions. For example, the service information of the first service carried in message A is the SPI of the SFC service, and network device B determines from the first local configuration information based on the SPI of the SFC service that it is associated with both data flow A and the SFC service. program instruction, and then execute the program instruction to process message A. For example, network device B determines the path resource of the SFP indicated by the SPI in network device B based on the SPI of the SFC service, and forwards message A through the path resource.
又一个实施例中,第一业务是路径段业务,网络设备B是尾节点,第一本地配置信息包括网络设备B中与数据流A和该路径段业务均关联的路径段配置信息、程序指令等。该路径段配置信息可以包括该路径段业务的路径段ID、网络设备B中对应于该路径段ID的处理策略信息;该路径段ID用于指示一个路径段,该处理策略信息用于指示针对该路径段的处理策略,例如,该处理策略信息包括路径统计信息,该路径统计信息用于指示统计该路径段的性能(丢包、时延等)。该程序指令可以包括该路径段业务的路径段ID以及网络设备B中与数据流A和该路径段业务均关联的处理动作,例如包括统计动作,该统计动作可以指示网络 设备B统计该路径段ID指示的路径段的性能(丢包、时延等)。示例的,报文A中携带的第一业务的业务信息是该路径段业务的路径段ID,网络设备B根据该路径段业务的路径段ID从第一本地配置信息中确定与数据流A和该路径段业务均关联的程序指令,然后执行该程序指令以基于报文A统计该路径段ID指示的路径段的性能。其中,该路径段ID对应一个段列表(segment list),该段列表中包括该路径段ID指示的路径段上的各个网络设备对应的段标识(segment identifier,SID)。一个示例中,该路径段业务是SRv6路径段业务,该路径段ID是一个SRv6SID,该段列表是SRv6segment list,该段列表中的每个SID是一个SRv6SID。In another embodiment, the first service is a path segment service, network device B is the tail node, and the first local configuration information includes path segment configuration information and program instructions in network device B that are associated with both data flow A and the path segment service. wait. The path segment configuration information may include the path segment ID of the path segment service, and the processing policy information corresponding to the path segment ID in network device B; the path segment ID is used to indicate a path segment, and the processing policy information is used to indicate a path segment. The processing strategy of the path segment, for example, the processing strategy information includes path statistical information, and the path statistical information is used to indicate statistics on the performance of the path segment (packet loss, delay, etc.). The program instructions may include the path segment ID of the path segment service and processing actions in network device B that are associated with both data flow A and the path segment service, for example, including statistical actions, and the statistical actions may indicate that the network Device B collects statistics on the performance (packet loss, delay, etc.) of the path segment indicated by the path segment ID. For example, the service information of the first service carried in message A is the path segment ID of the path segment service. Network device B determines the path segment ID of the path segment service from the first local configuration information and is related to data flow A and The program instructions associated with the path segment services are then executed to collect statistics on the performance of the path segment indicated by the path segment ID based on message A. The path segment ID corresponds to a segment list (segment list), and the segment list includes segment identifiers (SIDs) corresponding to each network device on the path segment indicated by the path segment ID. In an example, the path segment service is an SRv6 path segment service, the path segment ID is an SRv6 SID, the segment list is an SRv6 segment list, and each SID in the segment list is an SRv6 SID.
以上关于第一业务的业务信息、第一本地配置信息以及网络设备B根据第一本地配置信息和第一业务的业务信息处理报文A的描述仅仅是示例性的,根据第一业务的业务信息的不同以及第一本地配置信息的不同,网络设备B根据第一本地配置信息和第一业务的业务信息执行的处理不同。并且,网络设备B除了根据报文A的所述选项字段中包括的业务信息处理报文A之外,网络设备B还可以根据报文A中包括的其他信息处理报文A,这些信息可能携带在所述选项字段中,也可能在所述选项字段外,本申请实施例对此不作限定。此外,不同网络设备中与数据流A和第一业务均关联的本地配置信息相同或不同。也就是说,针对报文A中携带的相同的第一业务信息(也即第一业务的业务信息),在不同网络设备上执行的第一业务关联的处理行为不同。例如,一些网络设备中与第一业务关联的程序指令包括第一业务信息以及第一业务关联的统计动作,另一些网络设备中与第一业务关联的程序指令包括第一业务信息以及第一业务关联的检测动作,还有一些网络设备中与第一业务关联的程序指令包括第一业务信息以及第一业务关联的转发动作等,本申请实施例对此不作限定。The above description about the service information of the first service, the first local configuration information, and the network device B processing the message A according to the first local configuration information and the service information of the first service are only exemplary. According to the service information of the first service and the first local configuration information, network device B performs different processing according to the first local configuration information and the service information of the first service. Moreover, in addition to processing message A according to the service information included in the option field of message A, network device B can also process message A according to other information included in message A, which information may carry In the option field, it may also be outside the option field, which is not limited in the embodiment of the present application. In addition, the local configuration information associated with both data flow A and the first service in different network devices is the same or different. That is to say, for the same first service information (that is, the service information of the first service) carried in the message A, the processing behaviors associated with the first service performed on different network devices are different. For example, the program instructions associated with the first service in some network devices include the first service information and the statistical actions associated with the first service, and the program instructions associated with the first service in other network devices include the first service information and the first service The associated detection action, and the program instructions associated with the first service in some network devices include the first service information and the forwarding action associated with the first service, etc., which are not limited in the embodiments of the present application.
综上所述,本申请实施例提供的业务处理方法,由于报文的一个选项字段中包括对应于第一业务的第一业务子字段和对应于第二业务的第二业务子字段,因此,该一个选项字段能够携带第一业务的业务信息和第二业务的业务信息,也即,该一个选项字段能够携带至少两个不同业务的业务信息。所以,无需针对每个业务分别扩展选项字段,相比于目前针对每个业务分别扩展选项字段的方案,可以节省选项字段中的一些固定内容所带来的开销,有助于降低报文开销。目前针对每个业务分别扩展选项字段的方案中,每个选项字段中通常还包括一些用于对齐或未来扩展的可选子字段,这些可选子字段也容易导致报文的开销较大,相比于目前针对每个业务分别扩展选项字段的方案,本申请还可以节省一些可选子字段所带来的开销,进一步降低报文开销。目前针对每个业务分别扩展选项字段的方案中,报文的长度较大,导致网络设备处理报文的复杂度较高,网络设备的转发性能较低。本申请提供的技术方案可以减小报文长度,有助于简化网络设备处理报文的复杂度,提升网络设备的转发性能。To sum up, in the service processing method provided by the embodiment of the present application, since an option field of the message includes a first service subfield corresponding to the first service and a second service subfield corresponding to the second service, therefore, The one option field can carry the service information of the first service and the service information of the second service. That is, the one option field can carry the service information of at least two different services. Therefore, there is no need to separately expand the option field for each service. Compared with the current solution of separately extending the option field for each service, the overhead caused by some fixed content in the option field can be saved, which helps to reduce message overhead. In the current solution to expand the option field separately for each service, each option field usually also includes some optional subfields for alignment or future expansion. These optional subfields can also easily lead to larger message overhead, which is relatively Compared with the current solution of separately extending the option fields for each service, this application can also save the overhead caused by some optional sub-fields and further reduce the message overhead. In the current solution of separately extending the option field for each service, the length of the message is relatively large, resulting in high complexity of network equipment processing the message and low forwarding performance of the network equipment. The technical solution provided by this application can reduce the length of packets, help simplify the complexity of packet processing by network equipment, and improve the forwarding performance of network equipment.
本申请提供的选项字段中还包括对应于第一业务的第一长度子字段和对应于第二业务的第二长度子字段,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度,网络设备处理包括该选项字段的报文时,网络设备可以根据第一长度子字段确定第一业务子字段的长度,根据第一业务子字段携带的业务信息处理该报文或者跳过第一业务子字段,以及,网络设备可以根据第二长度子字段确定第二业务子字段的长度以根据第二业务子字段携带的业务信息处理该报文或者跳过第二业务子字段。由于该选项字段中包括用于指示各个业务子字段(例如第一业务子字段、第二业务子字段)的长度的长度子字段,因此,不同业务子字段的长度可以相等,也可以不相等,可以根据实际需要灵活 设置各个业务子字段的长度,不会影响网络设备对包括该选项字段的报文的处理。The option field provided by this application also includes a first length subfield corresponding to the first service and a second length subfield corresponding to the second service. The first length subfield is used to indicate the length of the first service subfield. The second length subfield is used to indicate the length of the second service subfield. When the network device processes a message including this option field, the network device can determine the length of the first service subfield based on the first length subfield. The service information carried in the field processes the message or skips the first service subfield, and the network device can determine the length of the second service subfield according to the second length subfield to process the message according to the service information carried in the second service subfield. message or skip the second service subfield. Since the option field includes a length subfield used to indicate the length of each service subfield (such as the first service subfield and the second service subfield), the lengths of different service subfields may be equal or unequal, Can be flexible according to actual needs Setting the length of each service subfield will not affect the network device's processing of packets containing this option field.
另外,本申请提供的技术方案中,针对同一条数据流的同一报文可以开展多个业务,针对不同数据流的报文开展的业务可以相同或不同,且针对不同数据流开展的相同业务的业务信息可以不同。例如,针对第一数据流的同一报文开展切片业务、随流检测业务和DetNet业务,针对第二数据流的同一报文开展切片业务、APN业务和SFC业务,针对第一数据流的报文开展的切片业务的业务信息与针对第二数据流的报文开展的切片业务的业务信息可以不同(例如针对第一数据流的报文开展的切片业务的业务信息为切片标识1,针对第二数据流的报文开展的切片业务的业务信息为切片标识2)。基于此,网络设备针对不同数据流的报文包括的所述选项字段的处理行为可以不同。网络设备处理包括所述选项字段的报文时还参考本地配置信息,本申请在所述选项字段中设置流指示子字段来指示包括该选项字段的报文所属的数据流,使得网络设备可以根据该流指示子字段来确定该报文所属的数据流,进而根据与该数据流和该选项字段携带的业务信息均关联的本地配置信息以处理该报文,这样的设置方式,可以使得网络设备实现对不同数据流的差异化处理。In addition, in the technical solution provided by this application, multiple services can be carried out for the same message of the same data flow, the services carried out for the packets of different data flows can be the same or different, and the same business carried out for different data flows can be carried out. Business information can be different. For example, for the same packet of the first data flow, the slicing service, flow detection service and DetNet service are carried out; for the same packet of the second data flow, the slicing service, APN service and SFC service are carried out; for the packet of the first data flow The business information of the slicing service carried out may be different from the business information of the slicing service carried out for the packets of the second data flow (for example, the business information of the slicing service carried out for the packets of the first data flow is slice identification 1, and the business information of the slicing service carried out for the packets of the second data flow is slice identification 1, The business information of the slice service carried out by the packets of the data flow is the slice identifier 2). Based on this, the network device may have different processing behaviors for the option fields included in the packets of different data flows. When the network device processes the message including the option field, it also refers to the local configuration information. This application sets a flow indicator subfield in the option field to indicate the data flow to which the message including the option field belongs, so that the network device can according to The flow indication subfield determines the data flow to which the message belongs, and then processes the message according to the local configuration information associated with both the data flow and the service information carried by the option field. Such a setting method can enable the network device to Achieve differentiated processing of different data streams.
可选的实施例中,网络设备B支持第一业务和第二业务,网络设备B还根据报文A的选项字段中包括的第二业务子字段处理报文A。如图19所示,该方法还包括如下步骤S505a。In an optional embodiment, network device B supports the first service and the second service, and network device B also processes message A according to the second service subfield included in the option field of message A. As shown in Figure 19, the method also includes the following step S505a.
S505a.网络设备B根据报文A的选项字段中包括的第二业务子字段处理报文A。S505a. Network device B processes message A according to the second service subfield included in the option field of message A.
S505a的实现过程可以参考S504的实现过程,这里不再赘述。The implementation process of S505a can refer to the implementation process of S504, and will not be described again here.
可选的实施例中,网络设备B支持第一业务但不支持第二业务,网络设备B跳过报文A的选项字段中包括的第二业务子字段。如图20所示,该方法还包括如下步骤S505b。In an optional embodiment, network device B supports the first service but does not support the second service, and network device B skips the second service subfield included in the option field of message A. As shown in Figure 20, the method also includes the following step S505b.
S505b.网络设备B跳过报文A的选项字段中包括的第二业务子字段。S505b. Network device B skips the second service subfield included in the option field of message A.
网络设备B跳过第二业务子字段也即是网络设备B不根据第二业务子字段处理报文A。Network device B skips the second service subfield, that is, network device B does not process message A according to the second service subfield.
一个实施例中,所述选项字段中包括第二长度子字段,第二长度子字段用于指示第二业务子字段的长度,网络设备B根据第二长度子字段确定第二业务子字段的长度,网络设备B根据第二业务子字段的长度跳过第二业务子字段。另一个实施例中,第二业务子字段是该选项字段中的最后一个业务子字段,例如是该选项字段中的最后一个业务标志位指示的业务子字段,该选项字段中不包括该第二业务子字段对应的业务长度子字段,网络设备B根据该选项字段的长度和该选项字段中除第二业务子字段之外的子字段的长度确定第二业务子字段的长度,网络设备B根据第二业务子字段的长度跳过第二业务子字段。In one embodiment, the option field includes a second length subfield, the second length subfield is used to indicate the length of the second service subfield, and network device B determines the length of the second service subfield according to the second length subfield. , network device B skips the second service subfield according to the length of the second service subfield. In another embodiment, the second service subfield is the last service subfield in the option field, for example, the service subfield indicated by the last service flag bit in the option field, and the second service subfield is not included in the option field. The service length subfield corresponding to the service subfield. Network device B determines the length of the second service subfield according to the length of the option field and the length of the subfields in the option field except the second service subfield. Network device B determines the length of the second service subfield according to the length of the option field. The length of the second service subfield skips the second service subfield.
可选的实施例中,网络设备B处理报文A之后,网络设备B向网络设备C转发报文A,网络设备C可以是网络设备B的下一跳设备,或者,网络设备B通过其他网络设备与网络设备C连接。网络设备C接收到报文A之后,网络设备C可以根据报文A中的所述选项字段处理报文A。此外,网络设备A也可以根据报文A中的所述选项字段处理报文A。网络设备A和网络设备C根据所述选项字段处理报文A的过程均可以参考网络设备B根据所述选项字段处理报文A的过程,本申请实施例在此不再赘述。In an optional embodiment, after network device B processes message A, network device B forwards message A to network device C. Network device C may be the next hop device of network device B, or network device B may forward message A through other networks. The device is connected to network device C. After network device C receives message A, network device C can process message A according to the option field in message A. In addition, network device A may also process message A according to the option field in message A. The process of network device A and network device C processing message A according to the option field can refer to the process of network device B processing message A according to the option field, which will not be described again in this embodiment of the present application.
可选的实施例中,网络设备A在控制器的指示下生成包括所述选项字段的报文A。控制器可以是图14中所示的控制器100。示例的,请参考图21,其示出了本申请实施例提供的又一种业务处理方法的流程图。该方法包括如下步骤S2101至S2106。In an optional embodiment, network device A generates message A including the option field under the instruction of the controller. The controller may be controller 100 shown in FIG. 14 . For example, please refer to FIG. 21 , which shows a flow chart of yet another business processing method provided by an embodiment of the present application. The method includes the following steps S2101 to S2106.
S2101.控制器向网络设备A发送指示信息,该指示信息用于指示网络设备A生成包括选 项字段的报文,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。S2101. The controller sends instruction information to network device A. The instruction information is used to instruct network device A to generate The option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield. The first service subfield corresponds to the first service, and the second service subfield corresponds to For the second service, the first service is different from the second service. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield.
可选的,控制器首先生成指示信息,然后向网络设备A发送该指示信息。例如,控制器通过边界网关协议(border gateway protocol,BGP)报文、网络配置协议(network configuration protocol,NETCONF)报文或其他私有协议报文向网络设备A发送指示信息。Optionally, the controller first generates indication information, and then sends the indication information to network device A. For example, the controller sends instruction information to network device A through a border gateway protocol (BGP) message, a network configuration protocol (NETCONF) message, or other private protocol message.
具体实施方式中,该指示信息包括该选项字段的配置信息,以指示网络设备A生成包括该选项字段的报文。或者,该指示信息包括该选项字段,以指示网络设备A生成包括该选项字段的报文。或者,该指示信息为该选项字段的标识,网络设备A中包括该选项字段的配置信息,该指示信息指示网络设备A根据网络设备A中的该选项字段的配置信息生成包括该选项字段的报文。或者,该指示信息为该选项字段的标识,网络设备A中包括该选项字段,该指示信息指示网络设备A根据网络设备A中的该选项字段生成包括该选项字段的报文。其中,该选项字段的配置信息可以包括该选项字段中的子字段以及该选项字段的结构信息,该结构信息可以包括该选项字段中的子字段在该选项字段中的位置,本申请实施例对此不作限定。In a specific implementation manner, the instruction information includes configuration information of the option field to instruct network device A to generate a message including the option field. Alternatively, the indication information includes the option field to instruct network device A to generate a message including the option field. Alternatively, the indication information is an identifier of the option field, and network device A includes the configuration information of the option field. The indication information instructs network device A to generate a report including the option field based on the configuration information of the option field in network device A. arts. Alternatively, the indication information is an identification of the option field, the option field is included in the network device A, and the indication information instructs the network device A to generate a message including the option field according to the option field in the network device A. The configuration information of the option field may include the subfields in the option field and the structural information of the option field. The structural information may include the positions of the subfields in the option field. The embodiment of the present application provides This is not a limitation.
S2102.网络设备A接收控制器发送的指示信息。S2102. Network device A receives the instruction information sent by the controller.
例如,网络设备A接收控制器发送的携带该指示信息的BGP报文、NETCONF报文或其他私有协议报文,并从接收到的报文中获取该指示信息。For example, network device A receives a BGP message, NETCONF message or other private protocol message carrying the indication information sent by the controller, and obtains the indication information from the received message.
S2103.网络设备A根据指示信息生成包括所述选项字段的报文A。S2103. Network device A generates message A including the option field according to the instruction information.
一个实施例中,该指示信息包括该选项字段的配置信息,网络设备A根据该选项字段的配置信息生成该选项字段,进而生成包括该选项字段的报文A。In one embodiment, the indication information includes configuration information of the option field, and network device A generates the option field according to the configuration information of the option field, and then generates message A including the option field.
另一个实施例中,该指示信息包括该选项字段,网络设备A从该指示信息中获取该选项字段,进而生成包括该选项字段的报文A。In another embodiment, the indication information includes the option field, and network device A obtains the option field from the indication information, and then generates message A including the option field.
再一个实施例中,该指示信息包括该选项字段的标识,网络设备A根据该指示信息在网络设备A中确定该选项字段的配置信息,网络设备A根据该选项字段的配置信息生成该选项字段,进而生成包括该选项字段的报文A。In yet another embodiment, the indication information includes an identification of the option field, network device A determines the configuration information of the option field in network device A based on the indication information, and network device A generates the option field based on the configuration information of the option field. , and then generate message A including the option field.
又一个实施例中,该指示信息包括该选项字段的标识,网络设备A根据该指示信息在网络设备A中确定该选项字段,进而生成包括该选项字段的报文A。In yet another embodiment, the indication information includes an identifier of the option field, and network device A determines the option field in network device A based on the indication information, and then generates message A including the option field.
S2104.网络设备A向网络设备B发送报文A。S2104. Network device A sends message A to network device B.
S2105.网络设备B接收报文A。S2105. Network device B receives message A.
S2106.网络设备B根据报文A的选项字段中包括的第一业务子字段处理报文A。S2106. Network device B processes message A according to the first service subfield included in the option field of message A.
S2103至S2106的实现过程可以参考上述S501至S504的实现过程,这里不再赘述。The implementation process of S2103 to S2106 may refer to the implementation process of S501 to S504 mentioned above, and will not be described again here.
图21所示实施例以网络设备A根据控制器的指示生成包括所述选项字段的报文A为例说明,在其他实施方式中,可以在网络设备A中静态配置所述选项字段,进而网络设备A可以生成包括所述选项字段的报文,本申请实施例对此不作限定。The embodiment shown in Figure 21 takes network device A as an example to generate a message A including the option field according to the instructions of the controller. In other embodiments, the option field can be statically configured in network device A, and then the network Device A may generate a message including the option field, which is not limited in the embodiment of this application.
请参考图22,其示出了本申请实施例提供的又一种业务处理方法的流程图。该方法应用于包括网络设备A和网络设备B的业务处理系统。该方法包括如下步骤S2201至S2204。 Please refer to Figure 22, which shows a flow chart of yet another business processing method provided by an embodiment of the present application. This method is applied to a business processing system including network device A and network device B. The method includes the following steps S2201 to S2204.
S2201.网络设备A生成包括选项字段的报文A,该选项字段包括第一业务子字段、第二业务子字段和流指示子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,该流指示子字段用于指示报文A所属的数据流。S2201. Network device A generates message A that includes an option field. The option field includes a first service subfield, a second service subfield, and a flow indication subfield. The first service subfield corresponds to the first service, and the second service subfield Corresponding to the second service, the first service is different from the second service. The flow indication subfield is used to indicate the data flow to which message A belongs.
示例的,网络设备A接收控制器发送的指示信息,网络设备A根据该指示信息生成报文A。该选项字段的结构以及相关描述可以参考S501中的相关描述以及图16至18。For example, network device A receives the instruction information sent by the controller, and network device A generates message A according to the instruction information. For the structure and related description of this option field, please refer to the related description in S501 and Figures 16 to 18.
S2202.网络设备A向网络设备B发送报文A。S2202. Network device A sends message A to network device B.
S2203.网络设备B接收报文A。S2203. Network device B receives message A.
S2204.网络设备B根据报文A的选项字段中包括的流指示子字段和第一业务子字段处理报文A。S2204. Network device B processes message A according to the flow indication subfield and the first service subfield included in the option field of message A.
S2202至S2204的实现过程可以参考S502至S504的实现过程,这里不再赘述。For the implementation process of S2202 to S2204, please refer to the implementation process of S502 to S504, which will not be described again here.
可选的实施例中,网络设备B支持第一业务和第二业务,网络设备B还根据所述选项字段中包括的流指示子字段和第二业务子字段处理报文A。或者,网络设备B支持第一业务但不支持第二业务,网络设备B跳过报文A的所述选项字段中包括的第二业务子字段。网络设备B还可以向网络设备C转发报文A,网络设备C可以根据报文A中的所述选项字段处理报文A。网络设备A也可以根据报文A中的所述选项字段处理报文A。网络设备A、B、C根据所述选项字段处理报文A的过程均可以参考图15所示实施例中的描述,这里不再赘述。In an optional embodiment, network device B supports the first service and the second service, and network device B also processes message A according to the flow indication subfield and the second service subfield included in the option field. Alternatively, network device B supports the first service but does not support the second service, and network device B skips the second service subfield included in the option field of message A. Network device B can also forward message A to network device C, and network device C can process message A according to the option field in message A. Network device A may also process message A according to the option field in message A. The process of processing message A according to the option field by network devices A, B, and C can refer to the description in the embodiment shown in Figure 15, and will not be described again here.
为了便于理解本申请的技术方案,下面以一个具体示例介绍本申请的业务处理方法。In order to facilitate understanding of the technical solution of this application, the business processing method of this application is introduced below with a specific example.
请参考图23,其示出了本申请实施例提供的一种业务处理方法的示意图。图23以报文在转发路径P(转发路径P为:网络设备101—>网络设备102—>网络设备103—>网络设备104—>网络设备105—>网络设备106)上传输的过程中,该转发路径P上的网络设备处理该报文为例说明。该报文中包括有效载荷(payload)、IPv6头、HBH和媒体访问控制(media access control,MAC)头(还可能包括其他内容,这里不再赘述)。该HBH中包括选项字段,该选项字段中包括流指示子字段、标志子字段和五个业务子字段(分别为切片业务子字段、SFC业务子字段、APN业务子字段、DetNet业务子字段和IFIT业务子字段)。该标志子字段中包括8个业务标志位,该8个业务标志位中从高位到低位排列的第3个业务标志位对应切片业务,第5个业务标志位对应SFC业务,第6个业务标志位对应APN业务,第7个业务标志位对应DetNet业务,第8个业务标志位对应IFIT业务,该标志子字段中的值为00101111。Please refer to Figure 23, which shows a schematic diagram of a service processing method provided by an embodiment of the present application. Figure 23 shows the process of the message being transmitted on the forwarding path P (the forwarding path P is: network device 101->network device 102->network device 103->network device 104->network device 105->network device 106), The network device on the forwarding path P processes the packet as an example. The message includes payload, IPv6 header, HBH and media access control (media access control, MAC) header (it may also include other contents, which will not be described here). The HBH includes an option field, which includes a flow indication subfield, a flag subfield and five service subfields (respectively, the slice service subfield, the SFC service subfield, the APN service subfield, the DetNet service subfield and the IFIT business subfield). The flag subfield includes 8 service flag bits. Among the 8 service flag bits, the third service flag bit arranged from high to low corresponds to the slice service, the fifth service flag bit corresponds to the SFC service, and the sixth service flag bit corresponds to the APN service, the 7th service flag bit corresponds to the DetNet service, and the 8th service flag bit corresponds to the IFIT service. The value in the flag subfield is 00101111.
参考图23,作为头节点的网络设备101首先生成包括该选项字段的报文,然后根据该选项字段处理该报文。具体的,网络设备101根据标志子字段中的值确定该选项字段中包括切片业务子字段、SFC业务子字段、APN业务子字段,DetNet业务子字段和IFIT业务子字段,且确定切片业务子字段、SFC业务子字段、APN业务子字段,DetNet业务子字段和IFIT业务子字段依次排列。网络设备101按照该五个业务子字段的排列顺序遍历该五个业务子字段,依次根据流指示子字段和该五个业务子字段处理该报文。首先,网络设备101遍历到切片业务子字段;如果网络设备101支持切片业务,网络设备101根据该流指示子字段和该切片业务子字段处理该报文;如果网络设备101不支持切片业务,网络设备101跳过该切片业务子字段。然后,网络设备101遍历到SFC业务子字段;如果网络设备101支持SFC业务,网络设备101根据该流指示子字段和该SFC业务子字段处理该报文;如果网络设备101不支持SFC 业务,网络设备101跳过该SFC业务子字段。接着,网络设备101遍历到APN业务子字段;如果网络设备101支持APN业务,网络设备101根据该流指示子字段和该APN业务子字段处理该报文;如果网络设备101不支持APN业务,网络设备101跳过该APN业务子字段。之后,网络设备101遍历到DetNet业务子字段;如果网络设备101支持DetNet业务,网络设备101根据该流指示子字段和该DetNet业务子字段处理该报文;如果网络设备101不支持DetNet业务,网络设备101跳过该DetNet业务子字段。最后,网络设备101遍历到IFIT业务子字段;如果网络设备101支持IFIT业务,网络设备101根据该流指示子字段和该IFIT业务子字段处理该报文;如果网络设备101不支持IFIT业务,网络设备101跳过该IFIT业务子字段,例如,网络设备101跳过所述选项字段。Referring to Figure 23, the network device 101 as the head node first generates a message including the option field, and then processes the message according to the option field. Specifically, the network device 101 determines that the option field includes the slice service subfield, the SFC service subfield, the APN service subfield, the DetNet service subfield and the IFIT service subfield according to the value in the flag subfield, and determines the slice service subfield. , SFC service subfield, APN service subfield, DetNet service subfield and IFIT service subfield are arranged in order. The network device 101 traverses the five service subfields in the order in which they are arranged, and processes the message according to the flow indication subfield and the five service subfields in sequence. First, the network device 101 traverses to the slice service subfield; if the network device 101 supports the slice service, the network device 101 processes the message according to the flow indication subfield and the slice service subfield; if the network device 101 does not support the slice service, the network device 101 Device 101 skips this slice service subfield. Then, the network device 101 traverses to the SFC service subfield; if the network device 101 supports the SFC service, the network device 101 processes the message according to the flow indication subfield and the SFC service subfield; if the network device 101 does not support SFC service, the network device 101 skips the SFC service subfield. Next, the network device 101 traverses to the APN service subfield; if the network device 101 supports the APN service, the network device 101 processes the message according to the flow indication subfield and the APN service subfield; if the network device 101 does not support the APN service, the network device 101 Device 101 skips this APN service subfield. After that, the network device 101 traverses to the DetNet service subfield; if the network device 101 supports the DetNet service, the network device 101 processes the message according to the flow indication subfield and the DetNet service subfield; if the network device 101 does not support the DetNet service, the network device 101 Device 101 skips this DetNet service subfield. Finally, the network device 101 traverses to the IFIT service subfield; if the network device 101 supports the IFIT service, the network device 101 processes the message according to the flow indication subfield and the IFIT service subfield; if the network device 101 does not support the IFIT service, the network device 101 The device 101 skips the IFIT service subfield, for example, the network device 101 skips the option field.
网络设备101处理该报文之后得到报文1,网络设备101将报文1发送给网络设备102,网络设备102根据报文1中的该选项字段处理报文1。网络设备102处理报文1之后得到报文2,网络设备102将报文2发送给网络设备103,网络设备103根据报文2中的该选项字段处理报文2。网络设备103处理报文2之后得到报文3,网络设备103将报文3发送给网络设备104,网络设备104根据报文3中的该选项字段处理报文3。网络设备104处理报文3之后得到报文4,网络设备104将报文4发送给网络设备105。网络设备105根据报文4中的该选项字段处理报文4。网络设备105处理报文4之后得到报文5,网络设备105将报文5发送给网络设备106,网络设备106根据报文5中的该选项字段处理报文5。网络设备102~106根据选项字段处理对应报文的过程与网络设备101根据该选项字段处理报文的过程类似,这里不再赘述。网络设备106作为尾节点还可以去除报文5中的选项字段,本申请此不作限定。Network device 101 obtains message 1 after processing the message. Network device 101 sends message 1 to network device 102. Network device 102 processes message 1 according to the option field in message 1. After the network device 102 processes the message 1, the network device 102 obtains the message 2. The network device 102 sends the message 2 to the network device 103. The network device 103 processes the message 2 according to the option field in the message 2. After the network device 103 processes the message 2, the network device 103 obtains the message 3. The network device 103 sends the message 3 to the network device 104. The network device 104 processes the message 3 according to the option field in the message 3. After processing message 3, network device 104 obtains message 4, and network device 104 sends message 4 to network device 105. Network device 105 processes message 4 according to the option field in message 4. After the network device 105 processes the message 4, the network device 105 obtains the message 5. The network device 105 sends the message 5 to the network device 106. The network device 106 processes the message 5 according to the option field in the message 5. The process of the network devices 102 to 106 processing the corresponding message according to the option field is similar to the process of the network device 101 processing the message according to the option field, which will not be described again here. As the tail node, the network device 106 can also remove the option field in the message 5, which is not limited in this application.
以上是对本申请方法实施例的介绍。下面介绍本申请装置实施例,本申请的装置可以用于执行本申请的方法。对于本申请装置实施例中未披露的细节,请参照方法实施例。The above is an introduction to the method embodiments of the present application. The following introduces embodiments of the device of the present application. The device of the present application can be used to execute the method of the present application. For details not disclosed in the device embodiments of this application, please refer to the method embodiments.
请参考图24,其示出了本申请实施例提供的一种业务处理装置2400的结构示意图。业务处理装置2400应用于网络设备或控制器。例如,业务处理装置2400是网络设备、该网络设备中的功能组件、控制器或该控制器中的功能组件。该网络设备可以是头节点、中间节点或尾节点,且该网络设备可以是上述方法实施例中所述的网络设备A或网络设备B。如图24所示,业务处理装置2400包括收发模块2410和处理模块2420。Please refer to Figure 24, which shows a schematic structural diagram of a service processing device 2400 provided by an embodiment of the present application. The service processing device 2400 is applied to network equipment or controllers. For example, the service processing device 2400 is a network device, a functional component in the network device, a controller, or a functional component in the controller. The network device may be a head node, an intermediate node or a tail node, and the network device may be network device A or network device B described in the above method embodiment. As shown in Figure 24, the service processing device 2400 includes a transceiver module 2410 and a processing module 2420.
第一个实施例中,业务处理装置2400应用于网络设备B。收发模块2410,用于接收包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。处理模块2420,用于根据第一业务子字段处理报文。In the first embodiment, the service processing device 2400 is applied to network device B. The transceiver module 2410 is configured to receive a message including an option field. The option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield. The first service subfield corresponds to the first Service, the second service subfield corresponds to the second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the second service subfield length. The processing module 2420 is used to process the message according to the first service subfield.
可选的,第一个实施例中,选项字段还包括流指示子字段,该流指示子字段用于指示该报文所属的数据流,处理模块2420,用于根据该流指示子字段和第一业务子字段处理该报文。Optionally, in the first embodiment, the option field also includes a flow indication subfield. The flow indication subfield is used to indicate the data flow to which the message belongs. The processing module 2420 is used to determine the data flow based on the flow indication subfield and the third A service subfield processes the message.
可选的,第一个实施例中,网络设备B支持第一业务和第二业务,处理模块2420,还用于根据第二业务子字段处理该报文。例如,处理模块2420,还用于根据该流指示子字段和第二业务子字段处理该报文。Optionally, in the first embodiment, network device B supports the first service and the second service, and the processing module 2420 is also configured to process the message according to the second service subfield. For example, the processing module 2420 is also configured to process the message according to the flow indication subfield and the second service subfield.
可选的,第一个实施例中,网络设备B支持第一业务但不支持第二业务,处理模块2420, 还用于跳过第二业务子字段。Optionally, in the first embodiment, network device B supports the first service but does not support the second service, and the processing module 2420, Also used to skip the second business subfield.
第二个实施例中,业务处理装置2400应用于网络设备A。处理模块2420,用于生成包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。收发模块2410,用于发送该报文。In the second embodiment, the service processing device 2400 is applied to network equipment A. The processing module 2420 is configured to generate a message including an option field. The option field includes a first service subfield, a second service subfield, a first length subfield and a second length subfield. The first service subfield corresponds to the first Service, the second service subfield corresponds to the second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the second service subfield length. Transceiver module 2410 is used to send the message.
可选的,第二个实施例中,该选项字段还包括流指示子字段,该流指示子字段用于指示该报文所属的数据流,处理模块2420,用于根据该流指示子字段和第一业务子字段处理该报文。Optionally, in the second embodiment, the option field also includes a flow indication subfield. The flow indication subfield is used to indicate the data flow to which the message belongs. The processing module 2420 is used to determine the flow indication subfield according to the flow indication subfield and The first service subfield processes the message.
可选的,第二个实施例中,网络设备A支持第一业务和第二业务,处理模块2420,还用于根据第二业务子字段处理该报文。例如,处理模块2420,还用于根据该流指示子字段和第二业务子字段处理该报文。Optionally, in the second embodiment, network device A supports the first service and the second service, and the processing module 2420 is also configured to process the message according to the second service subfield. For example, the processing module 2420 is also configured to process the message according to the flow indication subfield and the second service subfield.
可选的,第二个实施例中,网络设备A支持第一业务但不支持第二业务,处理模块2420,还用于跳过第二业务子字段。Optionally, in the second embodiment, network device A supports the first service but does not support the second service. The processing module 2420 is also configured to skip the second service subfield.
可选的,第二个实施例中,收发模块2410,还用于接收控制器发送的指示信息,该指示信息用于指示网络设备A生成包括选项字段的报文。Optionally, in the second embodiment, the transceiver module 2410 is also configured to receive instruction information sent by the controller, where the instruction information is used to instruct network device A to generate a message including an option field.
相应的,处理模块2420,用于根据该指示信息生成包括该选项字段的报文。Correspondingly, the processing module 2420 is configured to generate a message including the option field according to the indication information.
第三个实施例中,业务处理装置2400应用于控制器。收发模块2410,用于向头节点发送指示信息,该指示信息用于指示头节点生成包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。In the third embodiment, the service processing device 2400 is applied to the controller. The transceiver module 2410 is configured to send instruction information to the head node. The instruction information is used to instruct the head node to generate a message including an option field. The option field includes a first service subfield, a second service subfield, and a first length subfield. and a second length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the first length subfield is used to indicate the first service subfield Length, the second length subfield is used to indicate the length of the second service subfield.
可选的,第三个实施例中,该选项字段还包括流指示子字段,该流指示子字段用于指示该报文所属的数据流。Optionally, in the third embodiment, the option field also includes a flow indication subfield, and the flow indication subfield is used to indicate the data flow to which the message belongs.
可选的,第三个实施例中,该指示信息用于指示头节点生成包括IPv6扩展头的IPv6报文,该IPv6扩展头包括该选项字段。Optionally, in the third embodiment, the indication information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, and the IPv6 extension header includes the option field.
第四个实施例中,业务处理装置2400应用于头节点,收发模块2410,用于接收控制器发送的指示信息,该指示信息用于指示该头节点生成包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。处理模块2420,用于根据该指示信息生成包括该选项字段的报文。In the fourth embodiment, the business processing device 2400 is applied to the head node, and the transceiver module 2410 is used to receive instruction information sent by the controller. The instruction information is used to instruct the head node to generate a message including an option field. The option field It includes a first service subfield, a second service subfield, a first length subfield and a second length subfield. The first service subfield corresponds to the first service, the second service subfield corresponds to the second service, and the first service and the second length subfield The two services are different. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield. The processing module 2420 is configured to generate a message including the option field according to the indication information.
可选的,第四个实施例中,该指示信息用于指示头节点生成包括IPv6扩展头的IPv6报文,该IPv6扩展头包括该选项字段,处理模块2420,用于根据该指示信息生成包括该IPv6扩展头的IPv6报文。Optionally, in the fourth embodiment, the indication information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, the IPv6 extension header includes the option field, and the processing module 2420 is used to generate an IPv6 packet including the IPv6 extension header according to the indication information. IPv6 packet with this IPv6 extension header.
第五个实施例中,业务处理装置2400应用于网络设备B。收发模块2410,用于接收包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段和流指示子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,该 流指示子字段用于指示该报文所属的数据流。处理模块2420,用于根据该流指示子字段和第一业务子字段处理报文。In the fifth embodiment, the service processing device 2400 is applied to network device B. Transceiver module 2410, configured to receive a message including an option field. The option field includes a first service subfield, a second service subfield, and a flow indication subfield. The first service subfield corresponds to the first service, and the second service subfield Corresponding to the second business, the first business is different from the second business, the The flow indication subfield is used to indicate the data flow to which the packet belongs. The processing module 2420 is configured to process the message according to the flow indication subfield and the first service subfield.
可选的,第五个实施例中,该选项字段还包括第一长度子字段和第二长度子字段,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。Optionally, in the fifth embodiment, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. To indicate the length of the second service subfield.
可选的,第五个实施例中,网络设备B支持第一业务和第二业务,处理模块2420,还用于根据该流指示子字段和第二业务子字段处理该报文。Optionally, in the fifth embodiment, network device B supports the first service and the second service, and the processing module 2420 is also configured to process the message according to the flow indication subfield and the second service subfield.
可选的,第五个实施例中,网络设备B支持第一业务但不支持第二业务,处理模块2420,还用于跳过第二业务子字段。Optionally, in the fifth embodiment, network device B supports the first service but does not support the second service. The processing module 2420 is also configured to skip the second service subfield.
第六个实施例中,业务处理装置2400应用于网络设备A。处理模块2420,用于生成包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段和流指示子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,该流指示子字段用于指示该报文所属的数据流。收发模块2410,用于发送该报文。In the sixth embodiment, the service processing device 2400 is applied to network equipment A. The processing module 2420 is configured to generate a message including an option field. The option field includes a first service subfield, a second service subfield, and a flow indication subfield. The first service subfield corresponds to the first service, and the second service subfield Corresponding to the second service, the first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs. Transceiver module 2410 is used to send the message.
可选的,第六个实施例中,该选项字段还包括第一长度子字段和第二长度子字段,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。Optionally, in the sixth embodiment, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. To indicate the length of the second service subfield.
可选的,第六个实施例中,网络设备A支持第一业务和第二业务,处理模块2420,还用于根据该流指示子字段和第二业务子字段处理该报文。Optionally, in the sixth embodiment, network device A supports the first service and the second service, and the processing module 2420 is also configured to process the message according to the flow indication subfield and the second service subfield.
可选的,第六个实施例中,网络设备支持第一业务但不支持第二业务,处理模块2420,还用于跳过第二业务子字段。Optionally, in the sixth embodiment, the network device supports the first service but does not support the second service. The processing module 2420 is also configured to skip the second service subfield.
可选的,第六个实施例中,收发模块2410,还用于接收控制器发送的指示信息,该指示信息用于指示网络设备生成包括选项字段的报文;相应的,处理模块2420,用于根据该指示信息生成包括该选项字段的报文。Optionally, in the sixth embodiment, the transceiver module 2410 is also used to receive the instruction information sent by the controller. The instruction information is used to instruct the network device to generate a message including the option field; accordingly, the processing module 2420 uses A message including the option field is generated based on the instruction information.
第七个实施例中,业务处理装置2400应用于控制器。收发模块2410,用于向头节点发送指示信息,该指示信息用于指示头节点生成包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段和流指示子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,该流指示子字段用于指示报文所属的数据流。In the seventh embodiment, the business processing device 2400 is applied to the controller. The transceiver module 2410 is configured to send indication information to the head node. The indication information is used to instruct the head node to generate a message including an option field. The option field includes a first service subfield, a second service subfield and a flow indication subfield. The first service subfield corresponds to the first service, and the second service subfield corresponds to the second service. The first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs.
可选的,第七个实施例中,选项字段还包括第一长度子字段和第二长度子字段,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。Optionally, in the seventh embodiment, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. Indicates the length of the second service subfield.
可选的,第七个实施例中,该指示信息用于指示头节点生成包括IPv6扩展头的IPv6报文,该IPv6扩展头包括该选项字段。Optionally, in the seventh embodiment, the indication information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, and the IPv6 extension header includes the option field.
第八个实施例中,业务处理装置2400应用于头节点。收发模块2410,用于接收控制器发送的指示信息,该指示信息用于指示该头节点生成包括选项字段的报文,该选项字段包括第一业务子字段、第二业务子字段和流指示子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,该流指示子字段用于指示该报文所属的数据流。处理模块2420,用于根据该指示信息生成包括该选项字段的报文。In the eighth embodiment, the service processing device 2400 is applied to the head node. The transceiver module 2410 is configured to receive instruction information sent by the controller. The instruction information is used to instruct the head node to generate a message including an option field. The option field includes a first service subfield, a second service subfield and a flow indicator subfield. field, the first service subfield corresponds to the first service, and the second service subfield corresponds to the second service. The first service is different from the second service. The flow indication subfield is used to indicate the data flow to which the message belongs. The processing module 2420 is configured to generate a message including the option field according to the indication information.
可选的,第八个实施例中,选项字段还包括第一长度子字段和第二长度子字段,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度。 Optionally, in the eighth embodiment, the option field also includes a first length subfield and a second length subfield. The first length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the first service subfield. Indicates the length of the second service subfield.
可选的,第八个实施例中,该指示信息用于指示头节点生成包括IPv6扩展头的IPv6报文,该IPv6扩展头包括该选项字段,处理模块2420,用于根据该指示信息生成包括该IPv6扩展头的IPv6报文。Optionally, in the eighth embodiment, the indication information is used to instruct the head node to generate an IPv6 message including an IPv6 extension header, and the IPv6 extension header includes the option field, and the processing module 2420 is used to generate an IPv6 message including IPv6 packet with this IPv6 extension header.
可选的,在上述第一至第八个实施例中,所述选项字段还包括标志子字段,该标志子字段用于指示该选项字段包括第一业务子字段和第二业务子字段。Optionally, in the above-mentioned first to eighth embodiments, the option field further includes a flag subfield, and the flag subfield is used to indicate that the option field includes a first service subfield and a second service subfield.
可选的,在上述第一至第八个实施例中,该标志子字段包括第一业务标志位和第二业务标志位,第一业务标志位用于指示该选项字段中包括第一业务子字段,第二业务标志位用于指示该选项字段中包括第二业务子字段。Optionally, in the above-mentioned first to eighth embodiments, the flag subfield includes a first service flag bit and a second service flag bit, and the first service flag bit is used to indicate that the option field includes the first service subfield. field, the second service flag bit is used to indicate that the option field includes the second service subfield.
可选的,在上述第一至第八个实施例中,第一长度子字段与第一业务标志位对应,第二长度子字段与第二业务标志位对应。Optionally, in the above-mentioned first to eighth embodiments, the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
可选的,在上述第一至第八个实施例中,第一业务标志位和第二业务标志位按序排列,第一长度子字段和第二长度子字段按序排列,第一长度子字段和第二长度子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。Optionally, in the above-mentioned first to eighth embodiments, the first service flag bit and the second service flag bit are arranged in order, the first length subfield and the second length subfield are arranged in order, and the first length subfield is arranged in order. The arrangement order of the field and the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,在上述第一至第八个实施例中,第一业务标志位和第二业务标志位按序排列,第一业务子字段和第二业务子字段按序排列,第一业务子字段和第二业务子字段的排列顺序与第一业务标志位和第二业务标志位的排列顺序对应。Optionally, in the above-mentioned first to eighth embodiments, the first service flag bit and the second service flag bit are arranged in order, the first service subfield and the second service subfield are arranged in order, and the first service subfield is arranged in order. The arrangement order of the field and the second service subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
可选的,在上述第一至第八个实施例中,所述标志子字段包括m个业务标志位,该m个业务标志位一一对应m个业务,该m个业务互不相同,该m个业务标志位中的每个业务标志位用于指示该选项字段中是否包括该每个业务标志位对应业务的业务子字段,该m个业务标志位包括第一业务标志位和第二业务标志位,该m个业务包括第一业务和第二业务,m≥2,且m为整数。Optionally, in the above-mentioned first to eighth embodiments, the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, and the m services are different from each other. Each of the m service flag bits is used to indicate whether the option field includes the service subfield of the service corresponding to each service flag bit. The m service flag bits include the first service flag bit and the second service Flag bit, the m services include the first service and the second service, m≥2, and m is an integer.
可选的,在上述第一至第八个实施例中,所述选项字段包括k个业务长度子字段,该k个业务长度子字段与该m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在该k个业务标志位中的任一业务标志位指示该选项字段包括该任一业务标志位对应业务的业务子字段时,该任一业务标志位对应的业务长度子字段用于指示该业务子字段的长度,该k个业务长度子字段包括第一长度子字段和第二长度子字段,该k个业务标志位包括第一业务标志位和第二业务标志位。一种实现方式中,k=m,该k个业务标志位还包括第三业务标志位,第三业务标志位用于指示该选项字段还包括第三业务子字段,第一业务子字段、第二业务子字段和第三业务子字段依次排列,第三业务标志位和第三业务子字段均对应第三业务,第一业务、第二业务和第三业务互不相同,该m个业务包括第三业务;该k个业务长度子字段还包括第三长度子字段,第三长度子字段用于指示第三业务子字段的长度。另一种实现方式中,k=m-1,该m个业务标志位还包括第三业务标志位,第三业务标志位用于指示该选项字段还包括第三业务子字段,第一业务子字段、第二业务子字段和第三业务子字段依次排列,第三业务标志位和第三业务子字段均对应第三业务,第一业务、第二业务和第三业务互不相同,该m个业务包括第三业务;该k个业务标志位不包括第三业务标志位,第三业务子字段的长度根据选项字段的长度、第一业务子字段的长度和第二业务子字段的长度确定。Optionally, in the above-mentioned first to eighth embodiments, the option field includes k service length subfields, and the k service length subfields are consistent with k service flag bits among the m service flag bits. One correspondence, 1 ≤ k ≤ m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, any one of the service flag bits shall The service length subfield corresponding to the service flag bit is used to indicate the length of the service subfield. The k service length subfields include the first length subfield and the second length subfield. The k service flag bits include the first service flag. bit and the second business flag bit. In one implementation, k=m, the k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, the third service subfield, and the third service flag bit. The second service subfield and the third service subfield are arranged in sequence. The third service flag bit and the third service subfield both correspond to the third service. The first service, the second service and the third service are different from each other. The m services include Third service; the k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield. In another implementation manner, k=m-1, the m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, and the first service subfield field, the second service subfield and the third service subfield are arranged in order. The third service flag bit and the third service subfield both correspond to the third service. The first service, the second service and the third service are different from each other. The m services include the third service; the k service flag bits do not include the third service flag bit, and the length of the third service subfield is determined according to the length of the option field, the length of the first service subfield, and the length of the second service subfield. .
可选的,在上述第一至第八个实施例中,该k个业务长度子字段相邻,标志子字段与该k个业务长度子字段相邻。 Optionally, in the above-mentioned first to eighth embodiments, the k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
可选的,在上述第一至第八个实施例中,标志子字段、流指示子字段、第一业务子字段和第二业务子字段依次排列,该标志子字段还包括流标志位,该流标志位用于指示该选项字段包括该流指示子字段。Optionally, in the above-mentioned first to eighth embodiments, the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order, and the flag subfield also includes a flow flag bit, the The flow flag bit is used to indicate that the option field includes the flow indication subfield.
可选的,在上述第一至第八个实施例中,流指示子字段、标志子字段、第一业务子字段和第二业务子字段依次排列。Optionally, in the above-mentioned first to eighth embodiments, the flow indication subfield, the flag subfield, the first service subfield and the second service subfield are arranged in order.
可选的,在上述第一至第八个实施例中,第一长度子字段在第一业务子字段中,第二长度子字段在第二业务子字段中。第一业务子字段还包括第一类型空间,第一类型空间用于指示第一业务;第二业务子字段还包括第二类型空间,第二类型空间用于指示第二业务。可选的,第一业务子字段还包括第一数据空间,第一数据空间用于携带第一业务的业务信息;第二业务子字段还包括第二数据空间,第二数据空间用于指示第二业务的业务信息。可选的,该流指示子字段、第一业务子字段和第二业务子字段依次排列。Optionally, in the above-mentioned first to eighth embodiments, the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield. The first service subfield also includes a first type space, which is used to indicate the first service; the second service subfield also includes a second type space, which is used to indicate the second service. Optionally, the first service subfield also includes a first data space, and the first data space is used to carry the service information of the first service; the second service subfield also includes a second data space, and the second data space is used to indicate the first service. 2. Business information of the business. Optionally, the flow indication subfield, the first service subfield and the second service subfield are arranged in order.
可选的,在上述第一至第八个实施例中,第一业务子字段的长度为4×p字节,第二业务子字段的长度为4×q字节,p和q均为正整数。Optionally, in the above-mentioned first to eighth embodiments, the length of the first service subfield is 4×p bytes, the length of the second service subfield is 4×q bytes, and p and q are both positive. integer.
可选的,在上述第一至第八个实施例中,所述报文为IPv6报文,该报文包括IPv6扩展头,该IPv6扩展头包括所述选项字段。该IPv6扩展头包括HBH和DOH中的任意一种。Optionally, in the above-mentioned first to eighth embodiments, the packet is an IPv6 packet, the packet includes an IPv6 extension header, and the IPv6 extension header includes the option field. The IPv6 extension header includes either HBH or DOH.
可选的,在上述第一至第八个实施例中,第一业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个;或者,第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。Optionally, in the above-mentioned first to eighth embodiments, the first service includes any one of the slicing service, the flow detection service, the APN service, the DetNet service, the SFC service and the path segment service; or, the second service Including any one of slicing services, flow detection services, APN services, DetNet services, SFC services and path segment services.
应理解的是,本申请实施例提供的业务处理装置还可以用专用集成电路(application-specific integrated circuit,ASIC)或可编程逻辑器件(programmable logic device,PLD)实现。上述PLD可以是复杂程序逻辑器件(complex programmable logical device,CPLD),现场可编程门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。也可以通过软件实现上述方法实施例提供的业务处理方法,当通过软件实现该业务处理方法时,该业务处理装置中的各个模块也可以为软件模块。It should be understood that the service processing device provided by the embodiment of the present application can also be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The above-mentioned PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a general array logic (generic array logic, GAL) or any combination thereof. The business processing method provided in the above method embodiment can also be implemented through software. When the business processing method is implemented through software, each module in the business processing device can also be a software module.
请参考图25,其示出了本申请实施例提供的另一种业务处理装置2500的结构示意图。业务处理装置2500是网络设备或者该网络设备中的功能组件。该网络设备可以是上述方法实施例中的网络设备A、网络设备B或头节点。业务处理装置2500包括主控板2510、接口板2530和接口板2540。多个接口板的情况下可以包括交换网板(图25中未示出),交换网板用于完成各接口板(接口板也称为线卡或业务板)间的数据交换。Please refer to Figure 25, which shows a schematic structural diagram of another service processing device 2500 provided by an embodiment of the present application. The service processing device 2500 is a network device or a functional component in the network device. The network device may be network device A, network device B or the head node in the above method embodiment. The business processing device 2500 includes a main control board 2510, an interface board 2530 and an interface board 2540. In the case of multiple interface boards, a switching network board (not shown in Figure 25) may be included. The switching network board is used to complete data exchange between interface boards (interface boards are also called line cards or service boards).
主控板2510用于完成系统管理、设备维护、协议处理等功能。接口板2530和接口板2540用于提供各个业务接口(例如,POS接口、GE接口、ATM接口等),并实现报文转发。主控板2510上主要有3类功能单元:系统管理控制单元、系统时钟单元和系统维护单元。主控板2510、接口板2530以及接口板2540之间通过系统总线与系统背板相连实现互通。接口板2530包括一个或多个处理器2531。处理器2531用于对接口板2530进行控制管理并与主控板2510上的中央处理器2512进行通信。接口板2530上的存储器2532用于存储转发表、本地配置信息等。如果业务处理装置2500是前述网络设备A,存储器2532还用于存储选项字段或选项字段的配置信息,处理器2531用于生成包括选项字段的报文,以及处理器2531用于 根据该选项字段处理所述报文。如果业务处理装置2500是前述网络设备B,处理器2531根据报文中的选项字段处理该报文。如图25所示,主控板2510包括存储器2514,存储器2514也可以用于存储关于业务的本地配置信息、选项字段或选项字段的配置信息等。接口板2530包括一个或多个网络接口2533用于收发报文,处理器2531根据网络接口2533接收到的报文中的选项字段处理该报文。The main control board 2510 is used to complete functions such as system management, equipment maintenance, and protocol processing. The interface board 2530 and the interface board 2540 are used to provide various service interfaces (for example, POS interface, GE interface, ATM interface, etc.) and implement packet forwarding. There are three main types of functional units on the main control board 2510: system management control unit, system clock unit and system maintenance unit. The main control board 2510, the interface board 2530 and the interface board 2540 are connected to the system backplane through a system bus to achieve intercommunication. Interface board 2530 includes one or more processors 2531. The processor 2531 is used to control and manage the interface board 2530 and communicate with the central processor 2512 on the main control board 2510 . The memory 2532 on the interface board 2530 is used to store forwarding tables, local configuration information, etc. If the service processing device 2500 is the aforementioned network device A, the memory 2532 is also used to store the option field or the configuration information of the option field, the processor 2531 is used to generate a message including the option field, and the processor 2531 is used to The message is processed according to this option field. If the service processing device 2500 is the aforementioned network device B, the processor 2531 processes the message according to the option field in the message. As shown in Figure 25, the main control board 2510 includes a memory 2514. The memory 2514 can also be used to store local configuration information about services, option fields or configuration information of option fields, etc. The interface board 2530 includes one or more network interfaces 2533 for sending and receiving messages, and the processor 2531 processes the message according to the option field in the message received by the network interface 2533.
如图25所示,本实施例中包括多个接口板,采用分布式的转发机制,这种机制下,接口板2540上的操作与接口板2530的操作基本相似。例如,接口板2540包括一个或多个网络接口2543以用于收发报文,包括存储器2542以用于存储转发表、本地配置信息等,以及,包括处理器2541以用于对接口板2540进行控制管理并与主控板2510上的中央处理器2512进行通信。为了简洁,这里不再对接口板2540进行赘述。As shown in Figure 25, this embodiment includes multiple interface boards and adopts a distributed forwarding mechanism. Under this mechanism, the operations on the interface board 2540 are basically similar to the operations on the interface board 2530. For example, the interface board 2540 includes one or more network interfaces 2543 for sending and receiving messages, a memory 2542 for storing forwarding tables, local configuration information, etc., and a processor 2541 for controlling the interface board 2540 Manage and communicate with the central processor 2512 on the main control board 2510. For the sake of simplicity, the interface board 2540 will not be described in detail here.
可以理解的是,图25中的接口板2530中的处理器2531和/或接口板2540中的处理器2541可以是专用硬件或芯片,如网络处理器或者专用集成电路来实现上述功能,这种实现方式即为通常所说的转发面采用专用硬件或芯片处理的方式。在另外的实施方式中,接口板2530中的处理器2531和/或接口板2540中的处理器2541也可以采用通用的处理器,如通用的中央处理器(central processing unit,CPU)来实现以上描述的功能。It can be understood that the processor 2531 in the interface board 2530 and/or the processor 2541 in the interface board 2540 in Figure 25 can be dedicated hardware or chips, such as a network processor or an application specific integrated circuit, to implement the above functions. The implementation method is the so-called forwarding plane using dedicated hardware or chip processing. In other embodiments, the processor 2531 in the interface board 2530 and/or the processor 2541 in the interface board 2540 can also use a general-purpose processor, such as a general-purpose central processing unit (CPU) to implement the above. described function.
此外,需要指出的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,网络设备的数据处理能力越强,提供的接口板越多。多块接口板的情况下,该多块接口板之间可以通过一块或多块交换网板通信,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,该网络设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,该网络设备包括多块接口板,可以通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的网络设备的数据接入和处理能力要大于集中式架构的设备。具体采用哪种架构取决于组网部署场景,此处不做任何限定。In addition, it should be pointed out that there may be one or more main control boards, and when there are multiple main control boards, they can include the main main control board and the backup main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. In the case of multiple interface boards, the multiple interface boards can communicate with each other through one or more switching network boards. When there are multiple interface boards, they can jointly achieve load sharing and redundant backup. Under the centralized forwarding architecture, the network equipment does not need a switching network board, and the interface board is responsible for processing the business data of the entire system. Under the distributed forwarding architecture, the network equipment includes multiple interface boards, which can realize data exchange between multiple interface boards through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network equipment with a distributed architecture are greater than those with a centralized architecture. The specific architecture used depends on the network deployment scenario and is not limited here.
具体的实施方式中,存储器2532和/或存储器2542可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器2532可以是独立存在,通过通信总线与处理器2531相连接,也可以和处理器2531集成在一起。存储器2542可以是独立存在,通过通信总线与处理器2541相连接,也可以和处理器2541集成在一起。In specific implementations, memory 2532 and/or memory 2542 may be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM) or other types of dynamic storage devices that can store information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory, CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disks or other magnetic storage devices, or can be used to carry or store instructions or data structures. The desired program code and any other medium capable of being accessed by a computer, without limitation. The memory 2532 may exist independently and be connected to the processor 2531 through a communication bus, or may be integrated with the processor 2531. The memory 2542 may exist independently and be connected to the processor 2541 through a communication bus, or may be integrated with the processor 2541.
存储器2532用于存储程序代码,并由处理器2531来控制执行,以执行上述实施例提供的业务处理方法的部分或者全部步骤。该程序代码中可以包括一个或多个软件模块,这一个或多个软件模块可以为上述图24所示实施例中提供的功能模块。存储器2542也可以用于存储程序代码,并由处理器2541来控制执行,以执行上述实施例提供的业务处理方法的部分或者全部步骤。同理,存储器2514也可以用于存储程序代码,并由中央处理器2512来控制执 行,以执行上述实施例提供的业务处理方法的部分或者全部步骤。The memory 2532 is used to store program codes, and is controlled by the processor 2531 to execute part or all of the steps of the business processing method provided by the above embodiments. The program code may include one or more software modules, and the one or more software modules may be the functional modules provided in the embodiment shown in FIG. 24 . The memory 2542 can also be used to store program codes, and the execution is controlled by the processor 2541 to execute part or all of the steps of the business processing method provided by the above embodiments. Similarly, the memory 2514 can also be used to store program codes, and the central processor 2512 controls the execution. to execute part or all of the steps of the business processing method provided by the above embodiment.
具体的实施方式中,网络接口2533、网络接口2543可以是使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。In a specific implementation, the network interface 2533 and the network interface 2543 can be any transceiver-like device used to communicate with other devices or communication networks, such as Ethernet, radio access network (radio access network, RAN), Wireless local area networks (WLAN), etc.
请参考图26,其示出了本申请实施例提供的一种业务处理系统2600的结构示意图。业务处理系统2600包括第一网络设备2610和第二网络设备2620。Please refer to Figure 26, which shows a schematic structural diagram of a business processing system 2600 provided by an embodiment of the present application. The business processing system 2600 includes a first network device 2610 and a second network device 2620.
第一个实施例中:第一网络设备2610,用于生成包括选项字段的报文,并向第二网络设备2620发送该报文,该选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,第一长度子字段用于指示第一业务子字段的长度,第二长度子字段用于指示第二业务子字段的长度;第二网络设备2620,用于接收该报文,并根据第一业务子字段处理该报文。可选的,该业务处理系统2600还包括:第三网络设备2630,第二网络设备2620还用于向第三网络设备2630发送该报文;第三网络设备2630用于接收该报文,并根据第二业务子字段处理该报文。In the first embodiment: the first network device 2610 is used to generate a message including an option field and send the message to the second network device 2620. The option field includes a first service subfield and a second service subfield. , the first length subfield and the second length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, the first length subfield is used to indicate The length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield; the second network device 2620 is used to receive the message and process the message according to the first service subfield. Optionally, the business processing system 2600 also includes: a third network device 2630. The second network device 2620 is also used to send the message to the third network device 2630; the third network device 2630 is used to receive the message, and The message is processed according to the second service subfield.
另一个实施例中:第一网络设备2610,用于生成包括选项字段的报文,并向第二网络设备2620发送该报文,该选项字段包括第一业务子字段、第二业务子字段和流指示子字段,第一业务子字段对应第一业务,第二业务子字段对应第二业务,第一业务与第二业务不同,该流指示子字段用于指示该报文所属的数据流;第二网络设备2620,用于接收该报文,并根据该流指示子字段和第一业务子字段处理该报文。可选的,业务处理系统2600还包括:第三网络设备2630,第二网络设备2620还用于向第三网络设备2630发送该报文;第三网络设备2630用于接收该报文,并根据该流指示子字段和第二业务子字段处理报文。In another embodiment: the first network device 2610 is configured to generate a message including an option field and send the message to the second network device 2620. The option field includes a first service subfield, a second service subfield and The flow indication subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the flow indication subfield is used to indicate the data flow to which the message belongs; The second network device 2620 is configured to receive the message and process the message according to the flow indication subfield and the first service subfield. Optionally, the business processing system 2600 also includes: a third network device 2630, the second network device 2620 is also used to send the message to the third network device 2630; the third network device 2630 is used to receive the message, and according to The flow indication subfield and the second service subfield process the message.
可选的,业务处理系统2600还包括:控制器2640,控制器2640用于向第一网络设备2610发送指示信息,该指示信息用于指示第一网络设备2610生成包括所述选项字段的报文;对应的,第一网络设备2610,用于根据该指示信息生成包括该选项字段的报文。Optionally, the business processing system 2600 also includes: a controller 2640. The controller 2640 is configured to send instruction information to the first network device 2610. The instruction information is used to instruct the first network device 2610 to generate a message including the option field. ; Correspondingly, the first network device 2610 is configured to generate a message including the option field according to the indication information.
可选的,第一网络设备2610是所述报文的转发路径上的头节点,第二网络设备2620是该转发路径上的中间节点,第三网络设备2630是该转发路径上的中间节点或尾节点。示例的,第一网络设备2610是上述方法实施例中所述的网络设备A,第二网络设备2620是上述方法实施例中所述的网络设备B,第三网络设备2630是上述方法实施例中所述的网络设备C。Optionally, the first network device 2610 is the head node on the forwarding path of the message, the second network device 2620 is an intermediate node on the forwarding path, and the third network device 2630 is an intermediate node on the forwarding path or tail node. For example, the first network device 2610 is the network device A described in the above method embodiment, the second network device 2620 is the network device B described in the above method embodiment, and the third network device 2630 is the network device B described in the above method embodiment. The network device C.
选项字段的结构以及第一网络设备2610、第二网络设备2620和第三网络设备2630根据该选项字段处理包括该选项字段的报文的实现过程请参考上述方法实施例,这里不做赘述。For the structure of the option field and the implementation process of the first network device 2610, the second network device 2620, and the third network device 2630 processing the message including the option field according to the option field, please refer to the above method embodiment, and will not be described again here.
本申请实施例提供了一种数据结构,该数据结构包括本申请的上述实施例提供的选项字段。关于该选项字段的描述请参考本申请的上述实施例中的相关描述,这里不再赘述。The embodiment of the present application provides a data structure, which includes the option field provided by the above-mentioned embodiment of the present application. For descriptions of this option field, please refer to the relevant descriptions in the above embodiments of this application, and will not be described again here.
例如,该选项字段可以是如图16至图18任一所示的选项字段。For example, the option field may be an option field as shown in any one of Figures 16 to 18.
本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,该计算机程序被执行(例如,被业务处理装置、网络设备、控制器、一个或多个处理 器等执行)时,实现如上述方法实施例提供的业务处理方法的全部或部分步骤。Embodiments of the present application provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. The computer program is executed (for example, by a business processing device, a network device, a controller, one or more processes When the server is executed), all or part of the steps of the business processing method provided by the above method embodiment are implemented.
本申请实施例提供了一种计算机程序产品,该计算机程序产品包括程序或代码,该程序或代码被执行(例如,被业务处理装置、网络设备、控制器、一个或多个处理器等执行)时,实现如上述方法实施例提供的业务处理方法的全部或部分步骤。Embodiments of the present application provide a computer program product. The computer program product includes a program or code, and the program or code is executed (for example, executed by a business processing device, a network device, a controller, one or more processors, etc.) At this time, all or part of the steps of the business processing method provided by the above method embodiment are implemented.
本申请实施例提供了一种芯片,该芯片包括可编程逻辑电路和/或程序指令,该芯片运行时用于实现如上述方法实施例提供的业务处理方法的全部或部分步骤。Embodiments of the present application provide a chip that includes programmable logic circuits and/or program instructions. When the chip is run, it is used to implement all or part of the steps of the business processing method provided by the above method embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现,所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机的可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者包含一个或多个可用介质集成的服务器、数据中心等数据存储装置。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质,或者半导体介质(例如固态硬盘)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product including one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, the computer instructions may be transferred from a website, computer, server, or data The center transmits to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, data center, or the like that includes one or more available media integrated therein. The available media may be magnetic media (eg, floppy disks, hard disks, tapes), optical media, or semiconductor media (eg, solid state drives), etc.
应当理解的是,本申请中的“至少一个”指一个或多个,“多个”指两个或两个以上。“至少两个”指两个或两个以上,在本申请中,除非另有说明,符号“/”表示或的意思,例如,A/B可以表示A或B。本申请中的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,为了便于清楚描述,在本申请中,采用了“第一”、“第二”、“第三”、“第四”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”、“第三”、“第四”等字不对数量和执行次序进行限定。It should be understood that “at least one” in this application refers to one or more, and “plurality” refers to two or more. "At least two" means two or more. In this application, unless otherwise stated, the symbol "/" means or, for example, A/B can mean A or B. The term "and/or" in this application is only an association relationship describing related objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist simultaneously, alone There are three situations B. In addition, in order to facilitate clear description, in this application, words such as “first”, “second”, “third” and “fourth” are used to distinguish the same or similar items with basically the same functions and effects. Those skilled in the art can understand that words such as "first", "second", "third", and "fourth" do not limit the number or execution order.
本申请实施例提供的方法实施例和装置实施例等不同类型的实施例均可以相互参考,本申请实施例对此不作限定。本申请实施例提供的方法实施例操作的先后顺序能够适当调整,操作也能够根据情况进行响应增减,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,因此不再赘述。Different types of embodiments such as method embodiments and device embodiments provided in the embodiments of this application can all refer to each other, and the embodiments of this application do not limit this. The sequence of operations of the method embodiments provided by the embodiments of this application can be adjusted appropriately, and the operations can also be increased or decreased in response to the situation. Any person familiar with the technical field can easily think of changing methods within the technical scope disclosed in this application. , are all covered by the protection scope of this application, and therefore will not be described again.
在本申请提供的相应实施例中,所揭露的装置等可以通过其它的构成方式实现。例如,以上描述的装置实施例仅仅是示意性的,例如,模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性或其它的形式。In the corresponding embodiments provided in this application, the disclosed devices can be implemented in other configurations. For example, the device embodiments described above are only illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into Another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical or other forms.
作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块描述的部件可以是或者也可以不是物理单元,既可以位于一个地方,也可以分布到多个设备(例如网络设备)上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。Modules described as separate components may or may not be physically separate. Components described as modules may or may not be physical units that may be located in one place or distributed across multiple devices (such as network devices). . Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
以上所述,仅为本申请的示例性实施方式,本申请的保护范围并不局限于此,任何熟悉 本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。 The above are only exemplary embodiments of the present application, and the protection scope of the present application is not limited thereto. Any familiar Those skilled in the art can easily imagine that various equivalent modifications or substitutions should be included within the protection scope of this application within the technical scope disclosed in this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (35)

  1. 一种业务处理方法,其特征在于,所述方法包括:A business processing method, characterized in that the method includes:
    网络设备接收包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度;The network device receives a message including an option field. The option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield. The first service subfield corresponds to the first service. , the second service subfield corresponds to a second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the second The length subfield is used to indicate the length of the second service subfield;
    所述网络设备根据所述第一业务子字段处理所述报文。The network device processes the message according to the first service subfield.
  2. 一种业务处理方法,其特征在于,所述方法包括:A business processing method, characterized in that the method includes:
    网络设备生成包括选项字段的报文,所述选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度;The network device generates a message including an option field. The option field includes a first service subfield, a second service subfield, a first length subfield, and a second length subfield. The first service subfield corresponds to the first service. , the second service subfield corresponds to a second service, the first service is different from the second service, the first length subfield is used to indicate the length of the first service subfield, and the second The length subfield is used to indicate the length of the second service subfield;
    所述网络设备发送所述报文。The network device sends the message.
  3. 根据权利要求1或2所述的方法,其特征在于,所述选项字段还包括标志子字段,所述标志子字段用于指示所述选项字段包括所述第一业务子字段和所述第二业务子字段。The method according to claim 1 or 2, characterized in that the option field further includes a flag subfield, the flag subfield is used to indicate that the option field includes the first service subfield and the second service subfield. Business subfield.
  4. 根据权利要求3所述的方法,其特征在于,所述标志子字段包括第一业务标志位和第二业务标志位,所述第一业务标志位用于指示所述选项字段中包括所述第一业务子字段,所述第二业务标志位用于指示所述选项字段中包括所述第二业务子字段。The method according to claim 3, characterized in that the flag subfield includes a first service flag bit and a second service flag bit, and the first service flag bit is used to indicate that the option field includes the third service flag bit. A service subfield, the second service flag bit is used to indicate that the option field includes the second service subfield.
  5. 根据权利要求4所述的方法,其特征在于,所述第一长度子字段与所述第一业务标志位对应,所述第二长度子字段与所述第二业务标志位对应。The method according to claim 4, characterized in that the first length subfield corresponds to the first service flag bit, and the second length subfield corresponds to the second service flag bit.
  6. 根据权利要求5所述的方法,其特征在于,所述第一业务标志位和所述第二业务标志位按序排列,所述第一长度子字段和所述第二长度子字段按序排列,所述第一长度子字段和所述第二长度子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。The method according to claim 5, characterized in that the first service flag bit and the second service flag bit are arranged in order, and the first length subfield and the second length subfield are arranged in order. , the arrangement order of the first length subfield and the second length subfield corresponds to the arrangement order of the first service flag bit and the second service flag bit.
  7. 根据权利要求4至6任一项所述的方法,其特征在于,所述第一业务标志位和所述第二业务标志位按序排列,所述第一业务子字段和所述第二业务子字段按序排列,所述第一业务子字段和所述第二业务子字段的排列顺序与所述第一业务标志位和所述第二业务标志位的排列顺序对应。The method according to any one of claims 4 to 6, characterized in that the first service flag bit and the second service flag bit are arranged in order, and the first service subfield and the second service flag bit are arranged in order. The subfields are arranged in order, and the order in which the first service subfield and the second service subfield are arranged corresponds to the order in which the first service flag bit and the second service flag bit are arranged.
  8. 根据权利要求4至7任一项所述的方法,其特征在于,所述标志子字段包括m个业务标志位,所述m个业务标志位一一对应m个业务,所述m个业务互不相同,所述m个业务标志位中的每个业务标志位用于指示所述选项字段中是否包括所述每个业务标志位对应业务 的业务子字段,所述m个业务标志位包括所述第一业务标志位和所述第二业务标志位,所述m个业务包括所述第一业务和所述第二业务,m≥2,且m为整数。The method according to any one of claims 4 to 7, characterized in that the flag subfield includes m service flag bits, the m service flag bits correspond to m services one-to-one, and the m services are mutually exclusive. are not the same, each service flag bit among the m service flag bits is used to indicate whether the option field includes the service corresponding to each service flag bit. The service subfield, the m service flag bits include the first service flag bit and the second service flag bit, the m services include the first service and the second service, m≥2 , and m is an integer.
  9. 根据权利要求8所述的方法,其特征在于,所述选项字段包括k个业务长度子字段,所述k个业务长度子字段与所述m个业务标志位中的k个业务标志位一一对应,1≤k≤m,且k为整数,在所述k个业务标志位中的任一业务标志位指示所述选项字段包括所述任一业务标志位对应业务的业务子字段时,所述任一业务标志位对应的业务长度子字段用于指示所述业务子字段的长度,所述k个业务长度子字段包括所述第一长度子字段和所述第二长度子字段,所述k个业务标志位包括所述第一业务标志位和所述第二业务标志位。The method according to claim 8, characterized in that the option field includes k service length subfields, and the k service length subfields correspond to k service flag bits among the m service flag bits. Correspondingly, 1≤k≤m, and k is an integer. When any one of the k service flag bits indicates that the option field includes the service subfield of the service corresponding to any one of the service flag bits, the The service length subfield corresponding to any of the service flag bits is used to indicate the length of the service subfield, and the k service length subfields include the first length subfield and the second length subfield, and the The k service flag bits include the first service flag bit and the second service flag bit.
  10. 根据权利要求9所述的方法,其特征在于,k=m,The method according to claim 9, characterized in that, k=m,
    所述k个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;The k service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, the second service subfield The subfields and the third service subfield are arranged in order, the third service flag bit and the third service subfield all correspond to the third service, the first service, the second service and the third service The services are different from each other, and the m services include the third service;
    所述k个业务长度子字段还包括第三长度子字段,所述第三长度子字段用于指示所述第三业务子字段的长度。The k service length subfields also include a third length subfield, and the third length subfield is used to indicate the length of the third service subfield.
  11. 根据权利要求9所述的方法,其特征在于,k=m-1,The method according to claim 9, characterized in that, k=m-1,
    所述m个业务标志位还包括第三业务标志位,所述第三业务标志位用于指示所述选项字段还包括第三业务子字段,所述第一业务子字段、所述第二业务子字段和所述第三业务子字段依次排列,所述第三业务标志位和所述第三业务子字段均对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同,所述m个业务包括所述第三业务;The m service flag bits also include a third service flag bit, and the third service flag bit is used to indicate that the option field also includes a third service subfield, the first service subfield, the second service subfield, and the third service flag bit. The subfields and the third service subfield are arranged in sequence, the third service flag bit and the third service subfield all correspond to the third service, the first service, the second service and the third service The services are different from each other, and the m services include the third service;
    所述k个业务标志位不包括所述第三业务标志位,所述第三业务子字段的长度根据所述选项字段的长度、所述第一业务子字段的长度和所述第二业务子字段的长度确定。The k service flag bits do not include the third service flag bit, and the length of the third service subfield is based on the length of the option field, the length of the first service subfield and the second service subfield. The length of the field is determined.
  12. 根据权利要求9至11任一项所述的方法,其特征在于,The method according to any one of claims 9 to 11, characterized in that,
    所述k个业务长度子字段相邻,所述标志子字段与所述k个业务长度子字段相邻。The k service length subfields are adjacent, and the flag subfield is adjacent to the k service length subfields.
  13. 根据权利要求3至12任一项所述的方法,其特征在于,所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流,所述网络设备根据所述第一业务子字段处理所述报文,包括:The method according to any one of claims 3 to 12, characterized in that the option field further includes a flow indication subfield, the flow indication subfield is used to indicate the data flow to which the message belongs, and the network The device processes the message according to the first service subfield, including:
    所述网络设备根据所述流指示子字段和所述第一业务子字段处理所述报文。The network device processes the message according to the flow indication subfield and the first service subfield.
  14. 根据权利要求13所述的方法,其特征在于,所述标志子字段、所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列,所述标志子字段还包括流标志位,所述流标志位用于指示所述选项字段包括所述流指示子字段。The method according to claim 13, characterized in that the flag subfield, the flow indication subfield, the first service subfield and the second service subfield are arranged in order, and the flag subfield further A flow flag bit is included, and the flow flag bit is used to indicate that the option field includes the flow indication subfield.
  15. 根据权利要求13所述的方法,其特征在于,所述流指示子字段、所述标志子字段、 所述第一业务子字段和所述第二业务子字段依次排列。The method according to claim 13, characterized in that the flow indication subfield, the flag subfield, The first service subfield and the second service subfield are arranged in sequence.
  16. 根据权利要求1或2所述的方法,其特征在于,所述第一长度子字段在所述第一业务子字段中,所述第二长度子字段在所述第二业务子字段中。The method according to claim 1 or 2, characterized in that the first length subfield is in the first service subfield, and the second length subfield is in the second service subfield.
  17. 根据权利要求16所述的方法,其特征在于,The method according to claim 16, characterized in that:
    所述第一业务子字段还包括第一类型空间,所述第一类型空间用于指示所述第一业务;The first service subfield also includes a first type space, and the first type space is used to indicate the first service;
    所述第二业务子字段还包括第二类型空间,所述第二类型空间用于指示所述第二业务。The second service subfield also includes a second type space, and the second type space is used to indicate the second service.
  18. 根据权利要求16或17所述的方法,其特征在于,The method according to claim 16 or 17, characterized in that,
    所述第一业务子字段还包括第一数据空间,所述第一数据空间用于携带所述第一业务的业务信息;The first service subfield also includes a first data space, and the first data space is used to carry service information of the first service;
    所述第二业务子字段还包括第二数据空间,所述第二数据空间用于指示所述第二业务的业务信息。The second service subfield also includes a second data space, and the second data space is used to indicate service information of the second service.
  19. 根据权利要求16至18任一项所述的方法,其特征在于,The method according to any one of claims 16 to 18, characterized in that,
    所述选项字段还包括流指示子字段,所述流指示子字段用于指示所述报文所属的数据流,所述网络设备根据所述第一业务子字段处理所述报文,包括:The option field also includes a flow indication subfield. The flow indication subfield is used to indicate the data flow to which the message belongs. The network device processes the message according to the first service subfield, including:
    所述网络设备根据所述流指示子字段和所述第一业务子字段处理所述报文。The network device processes the message according to the flow indication subfield and the first service subfield.
  20. 根据权利要求19所述的方法,其特征在于,The method according to claim 19, characterized in that:
    所述流指示子字段、所述第一业务子字段和所述第二业务子字段依次排列。The flow indication subfield, the first service subfield and the second service subfield are arranged in sequence.
  21. 根据权利要求1至20任一项所述的方法,其特征在于,所述第一业务子字段的长度为4×p字节,所述第二业务子字段的长度为4×q字节,p和q均为正整数。The method according to any one of claims 1 to 20, characterized in that the length of the first service subfield is 4×p bytes, and the length of the second service subfield is 4×q bytes, Both p and q are positive integers.
  22. 根据权利要求1至21任一项所述的方法,其特征在于,所述报文为互联网协议第6版IPv6报文,所述报文包括IPv6扩展头,所述IPv6扩展头包括所述选项字段。The method according to any one of claims 1 to 21, characterized in that the message is an Internet Protocol version 6 IPv6 message, the message includes an IPv6 extension header, and the IPv6 extension header includes the option field.
  23. 根据权利要求22所述的方法,其特征在于,The method according to claim 22, characterized in that:
    所述IPv6扩展头包括逐跳头HBH和目的选项头DOH中的任意一种。The IPv6 extension header includes any one of a hop-by-hop header HBH and a destination option header DOH.
  24. 根据权利要求1至23任一项所述的方法,其特征在于,The method according to any one of claims 1 to 23, characterized in that,
    所述第一业务包括切片业务、随流检测业务、应用感知网络APN业务、确定性网络DetNet业务、服务功能链接SFC业务和路径段业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务、DetNet业务、SFC业务和路径段业务中的任意一个。The first service includes any one of a slicing service, a flow detection service, an application aware network APN service, a deterministic network DetNet service, a service function link SFC service and a path segment service; or the second service includes a slicing service , any one of the flow detection service, APN service, DetNet service, SFC service and path segment service.
  25. 根据权利要求1、3至24任一项所述的方法,其特征在于,所述网络设备支持所述第一业务和所述第二业务,所述方法还包括: The method according to any one of claims 1 and 3 to 24, characterized in that the network device supports the first service and the second service, and the method further includes:
    所述网络设备根据所述第二业务子字段处理所述报文。The network device processes the message according to the second service subfield.
  26. 根据权利要求1、3至24任一项所述的方法,其特征在于,所述网络设备支持所述第一业务但不支持所述第二业务,所述方法还包括:The method according to any one of claims 1 and 3 to 24, characterized in that the network device supports the first service but does not support the second service, and the method further includes:
    所述网络设备跳过所述第二业务子字段。The network device skips the second service subfield.
  27. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, further comprising:
    所述网络设备接收控制器发送的指示信息,所述指示信息用于指示所述网络设备生成包括所述选项字段的报文;The network device receives instruction information sent by the controller, where the instruction information is used to instruct the network device to generate a message including the option field;
    所述网络设备生成包括选项字段的报文,包括:所述网络设备根据所述指示信息生成包括所述选项字段的所述报文。The network device generating a message including an option field includes: the network device generating the message including the option field according to the indication information.
  28. 一种业务处理装置,其特征在于,包括:收发模块和处理模块;A business processing device, characterized in that it includes: a transceiver module and a processing module;
    所述收发模块用于执行如权利要求1至27任一项中所述的方法中的收发操作,所述处理模块用于执行如权利要求1至27任一项所述的方法中除所述收发操作之外的操作。The transceiver module is used to perform transceiver operations in the method as described in any one of claims 1 to 27, and the processing module is used to perform the method as described in any one of claims 1 to 27. Operations other than send and receive operations.
  29. 一种业务处理系统,其特征在于,包括第一网络设备和第二网络设备;A business processing system, characterized by including a first network device and a second network device;
    所述第一网络设备,用于生成包括选项字段的报文,并向所述第二网络设备发送所述报文,所述选项字段包括第一业务子字段、第二业务子字段、第一长度子字段和第二长度子字段,所述第一业务子字段对应第一业务,所述第二业务子字段对应第二业务,所述第一业务与所述第二业务不同,所述第一长度子字段用于指示所述第一业务子字段的长度,所述第二长度子字段用于指示所述第二业务子字段的长度;The first network device is configured to generate a message including an option field, and send the message to the second network device. The option field includes a first service subfield, a second service subfield, a first service subfield, and a first service subfield. A length subfield and a second length subfield, the first service subfield corresponds to the first service, the second service subfield corresponds to the second service, the first service is different from the second service, and the third service A length subfield is used to indicate the length of the first service subfield, and the second length subfield is used to indicate the length of the second service subfield;
    所述第二网络设备,用于接收所述报文,并根据所述第一业务子字段处理所述报文。The second network device is configured to receive the message and process the message according to the first service subfield.
  30. 根据权利要求29所述的系统,其特征在于,所述系统还包括第三网络设备;The system according to claim 29, characterized in that the system further includes a third network device;
    所述第二网络设备,还用于向所述第三网络设备发送所述报文;The second network device is also configured to send the message to the third network device;
    所述第三网络设备,用于接收所述报文,并根据所述第二业务子字段处理所述报文。The third network device is configured to receive the message and process the message according to the second service subfield.
  31. 根据权利要求29或30所述的系统,其特征在于,所述系统还包括控制器;The system according to claim 29 or 30, characterized in that the system further includes a controller;
    所述控制器,用于向所述第一网络设备发送指示信息,所述指示信息用于指示所述第一网络设备生成包括所述选项字段的报文;The controller is configured to send instruction information to the first network device, where the instruction information is used to instruct the first network device to generate a message including the option field;
    所述第一网络设备,用于根据所述指示信息生成包括所述选项字段的所述报文。The first network device is configured to generate the message including the option field according to the indication information.
  32. 根据权利要求29至31任一项所述的系统,其特征在于,The system according to any one of claims 29 to 31, characterized in that,
    所述第一网络设备是所述报文的转发路径上的头节点;The first network device is the head node on the forwarding path of the message;
    所述第二网络设备是所述转发路径上的中间节点或尾节点。The second network device is an intermediate node or a tail node on the forwarding path.
  33. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被执行时实现如权利要求1至27任一项所述的方法。 A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed, the method according to any one of claims 1 to 27 is implemented.
  34. 一种计算机程序产品,其特征在于,所述计算机程序产品包括程序或代码,所述程序或代码被执行时实现如权利要求1至27任一项所述的方法。A computer program product, characterized in that the computer program product includes a program or code, and when the program or code is executed, the method according to any one of claims 1 to 27 is implemented.
  35. 一种芯片,其特征在于,所述芯片包括可编程逻辑电路和/或程序指令,所述芯片运行时实现如权利要求1至27任一项所述的方法。 A chip, characterized in that the chip includes programmable logic circuits and/or program instructions, and when the chip is running, the method according to any one of claims 1 to 27 is implemented.
PCT/CN2023/076359 2022-08-26 2023-02-16 Service processing method, apparatus and system WO2024040884A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202211032270.1 2022-08-26
CN202211032270 2022-08-26
CN202211456091.0 2022-11-21
CN202211456091.0A CN117640791A (en) 2022-08-26 2022-11-21 Service processing method, device and system

Publications (1)

Publication Number Publication Date
WO2024040884A1 true WO2024040884A1 (en) 2024-02-29

Family

ID=90012278

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/076359 WO2024040884A1 (en) 2022-08-26 2023-02-16 Service processing method, apparatus and system

Country Status (1)

Country Link
WO (1) WO2024040884A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168553A (en) * 2014-08-29 2014-11-26 大唐移动通信设备有限公司 Sending and charging method and device for service messages
US20200076733A1 (en) * 2018-08-29 2020-03-05 Colortokens,Inc Computer implemented system and method for preserving mapping information in ip-options
CN112437127A (en) * 2020-11-10 2021-03-02 新华三大数据技术有限公司 Message processing method and device, load balancer and server
CN114697403A (en) * 2020-12-31 2022-07-01 华为技术有限公司 Method, device, equipment, system and storage medium for processing service message
CN114745302A (en) * 2022-03-30 2022-07-12 新华三技术有限公司 Communication method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168553A (en) * 2014-08-29 2014-11-26 大唐移动通信设备有限公司 Sending and charging method and device for service messages
US20200076733A1 (en) * 2018-08-29 2020-03-05 Colortokens,Inc Computer implemented system and method for preserving mapping information in ip-options
CN112437127A (en) * 2020-11-10 2021-03-02 新华三大数据技术有限公司 Message processing method and device, load balancer and server
CN114697403A (en) * 2020-12-31 2022-07-01 华为技术有限公司 Method, device, equipment, system and storage medium for processing service message
CN114745302A (en) * 2022-03-30 2022-07-12 新华三技术有限公司 Communication method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BERNARDOS C J, MOURAD A: "SFC function mobility with Mobile IPv6 draft-bernardos-dmm-sfc-mobility-01", 109TH IETF, 18 November 2020 (2020-11-18), pages 1 - 8, XP093142383, [retrieved on 20240318] *

Similar Documents

Publication Publication Date Title
KR100567326B1 (en) Apparatus for switching and transferring SONET/SDH, PDH, Ethernet signals and method thereof
US11722407B2 (en) Packet processing method and apparatus
US20050190773A1 (en) Sub-rate transmission method for user data services in transmission devices of a metropolitan area network
US9360885B2 (en) Fabric multipathing based on dynamic latency-based calculations
IL230406A (en) Method and cloud computing system for implementing a 3g packet core in a cloud computer with openflow data and control planes
US10868716B1 (en) Hierarchical resource groups for providing segregated management access to a distributed switch
CN113328902B (en) Network performance detection method and device and network equipment
WO2022222750A1 (en) Packet forwarding method and apparatus, network device, and storage medium
US8619811B2 (en) Apparatus, system and method for forwarding user plane data
JP2024504466A (en) Packet forwarding methods, packet processing methods, and devices
WO2024040884A1 (en) Service processing method, apparatus and system
EP4325800A1 (en) Packet forwarding method and apparatus
EP3691210B1 (en) Flexible ethernet message forwarding method and apparatus
US11916768B2 (en) Information sharing method and apparatus in redundancy network, and computer storage medium
WO2022117047A1 (en) Communication method and apparatus
CN106712983B (en) OAM message processing method and device for operation, management and maintenance
CN116346716A (en) Message processing method and device and communication system
CN117640791A (en) Service processing method, device and system
WO2023109672A1 (en) Service processing method, apparatus, and system
CN115242699A (en) Message transmission method, slice generation method, device and system
US7558260B2 (en) Byte-timeslot-synchronous, dynamically switched multi-source-node data transport bus system
CN114629843A (en) Message processing method and device
US7009973B2 (en) Switch using a segmented ring
US20060233169A1 (en) Residential ethernet switching apparatus capable of performing time-slot switching and time-slot switching method thereof
CN117527618A (en) Transmission detection method, device and system

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: 23855981

Country of ref document: EP

Kind code of ref document: A1