WO2023109672A1 - 业务处理方法、装置及系统 - Google Patents

业务处理方法、装置及系统 Download PDF

Info

Publication number
WO2023109672A1
WO2023109672A1 PCT/CN2022/137895 CN2022137895W WO2023109672A1 WO 2023109672 A1 WO2023109672 A1 WO 2023109672A1 CN 2022137895 W CN2022137895 W CN 2022137895W WO 2023109672 A1 WO2023109672 A1 WO 2023109672A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
subfield
network device
option field
information
Prior art date
Application number
PCT/CN2022/137895
Other languages
English (en)
French (fr)
Inventor
李呈
夏阳
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023109672A1 publication Critical patent/WO2023109672A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • 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/22Parsing or analysis of headers

Definitions

  • the present application relates to the field of network technology, in particular to a service processing method, device and system.
  • IPv6 Internet protocol version 6
  • these services may include a slice (slice) service, a flow detection service, an application-aware networking (application-aware networking, APN) service, a deterministic networking (deterministic networking, DetNet) service, and the like.
  • IFIT in-situ flow information telemetry
  • IOAM in-suitoam operations administration and maintenance
  • option (option) fields are respectively extended for each of the above-mentioned services to carry service information of the corresponding service.
  • option fields are respectively extended for each of the above-mentioned services to carry service information of the corresponding service.
  • two option fields should be extended for slice service and IFIT service, and Each corresponding option field carries the service information of the corresponding service.
  • the option field should include a type (type) subfield, a length (length) subfield, etc. to describe the fixed content of the option field. Therefore, when the option field is extended for each service, each extended option field includes these fixed contents, thus resulting in a larger length of the IPv6 extension header, a larger overhead of the IPv6 extension header, and a larger message overhead .
  • the present application provides a service processing method, device and system.
  • the technical scheme of the application is as follows:
  • a service processing method comprising: a network device receiving a message including an option field, the option field carrying first service information and second service information, the first service information corresponding to the first service , the second service information corresponds to the second service, and the first service is different from the second service; the network device processes the packet according to the first service information. For example, the network device processes the message according to the option field.
  • the first service information and the second service information are carried in the same option field of the message, the first service information corresponds to the first service, the second service information corresponds to the second service, and the first service and the second service information correspond to the second service.
  • the second business is different. That is, the same option field of the same message carries service information of at least two different services. In other words, the same option field in the same packet can carry service information of at least two different services. Therefore, there is no need to expand the option field for each service. Compared with the current solution of expanding the option field for each service separately, the overhead caused by some fixed content in the option field can be saved, which helps to reduce message overhead.
  • each option field usually includes some optional subfields for alignment or future expansion, and these optional subfields are likely to cause large packet overhead .
  • the same option field of the same message can carry business information of at least two different services. The overhead brought by the field reduces the message overhead.
  • a network device After a network device acquires (for example, receives or generates) a packet, it usually needs to process the packet, for example, forward the packet or perform some service processing on the packet.
  • the length of the message In the current scheme of separately expanding the option field for each service, the length of the message is relatively large, which results in high complexity for the network device to process the message and low forwarding performance of the network device.
  • the same option field of the same message can carry business information of at least two different services, so the length of the message can be reduced, and the complexity of message processing by network equipment can be simplified. Improve the forwarding performance of network devices.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information.
  • both the first subfield and the second subfield can be called service subfields, the first subfield can correspond to the first service, and the second subfield can correspond to the second service.
  • the first subfield can carry the first service information
  • the second subfield may carry the second service information.
  • the subfield carries the second service information, so that the option field can carry service information of at least two different services.
  • the length of the first subfield is the same as the length of the second subfield.
  • the network device since in the same option field, the length of the first subfield corresponding to the first service is the same as the length of the second subfield corresponding to the second service, therefore, the network device includes In the process of processing the message in the option field, if the network device does not support the first service and/or the second service, the network device can directly skip the first subfield and/or the second subfield, which helps Simplify the processing logic of the network device.
  • the length of the first subfield is the same as that of the second subfield, which facilitates the alignment of the first subfield and the second subfield.
  • the option field further includes a third subfield, the third subfield carries third service information, the third service information corresponds to the third service, and the first service, the second service, and the third service are different from each other.
  • the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the third subfield may be called a service subfield, and the third subfield corresponds to the third service. In this way, the third subfield may carry third service information.
  • multiple business subfields can be included in the same option field, and the length of the business subfields in the multiple business subfields is the same except for the last business subfield, and the length of the last business subfield is the same as The rest of the business subfields have different lengths.
  • the first subfield, the second subfield, and the third subfield are all business subfields.
  • the length of the first subfield is the same as that of the second subfield.
  • the network device In the process of processing the message in the option field included in the message, if the network device does not support the first service and/or the second service, the network device may skip the first subfield and/or the second subfield, and directly Processing the message according to the service information carried in the next subfield (for example, the third subfield) helps to simplify the processing logic of the network device. Since the third subfield is arranged after the second subfield, the third subfield may be the last service subfield in the option field. Therefore, in the process of the network device processing the message according to the option field included in the message, If the network device does not support the third service, the network device can directly skip the option field. Therefore, the application can set the length of the third subfield to be different from the length of the first subfield, that is, there is no need to limit the length of the third subfield. The length of the field is convenient for this option field to flexibly support various services.
  • the length of the third subfield is greater than the length of the first subfield.
  • the third subfield is the last business subfield in the option field. That is, the length of the last service subfield is greater than the lengths of the remaining service subfields.
  • the service with relatively long service information can be used as the third service, and the service information of the third service can be carried through the third subfield .
  • the service information of the IFIT service is usually relatively long, and the third service may be the IFIT service.
  • the length of the third subfield is shorter than the length of the first subfield.
  • the third subfield is the last business subfield in the option field. That is, the length of the last service subfield is smaller than the lengths of the remaining service subfields.
  • the service with relatively short service information can be used as the third service, and the service information of the third service can be carried through the third subfield .
  • the length of the third subfield is equal to the length of the first subfield.
  • both the length of the first subfield and the length of the second subfield are 2n bits, and n is an integer greater than or equal to 3.
  • the length of the first subfield and the length of the second subfield are both 2n bits, it can facilitate the alignment of the first subfield and the second subfield, and facilitate the first subfield, the second subfield The second subfield aligns with other subfields in the option field.
  • both the length of the first subfield and the length of the second subfield are 8 bits, 16 bits, 32 bits or 64 bits.
  • the length of the first subfield and the length of the second subfield are both 32 bits.
  • the length of the first subfield and the length of the second subfield are both 8 bits, 16 bits, 32 bits or 64 bits, it can facilitate the alignment of the first subfield and the second subfield, And, it is convenient to align the first subfield and the second subfield with other subfields in the option field.
  • the option field further includes a fourth subfield, where the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the fourth subfield indicates that both the length of the first subfield and the length of the second subfield are 32 bits.
  • the fourth subfield may also be called a length flag subfield or a length indication subfield.
  • the fourth subfield indicates the length of the first subfield and the length of the second subfield in the option field, so that the network device can know the length of the first subfield.
  • the length of the field and the length of the second subfield Therefore, when the network device supports the first service and/or the second service, the network device obtains the first service information from the first subfield according to the length of the first subfield, and/or, according to the length of the second subfield Obtain the second service information from the second subfield; when the network device does not support the first service and/or the second service, the network device skips the The first subfield and/or the second subfield.
  • the option field includes a business flag subfield, the business flag subfield corresponds to m services, the m businesses are different from each other, the m businesses include the first business and the second business, and the business flag subfield
  • the field indicates that the option field carries the first service information and the second service information, and m is an integer greater than or equal to 2.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, the k services include the first service and the second service, k is less than or equal to m, and k is a positive integer .
  • the service flag subfield may also be called a service indication subfield.
  • the network device by setting the service flag subfield in the option field and setting the service flag subfield to correspond to m services, it is convenient for the network device to know that the option field carries the m services according to the service flag subfield The business information of which business in . For example, the network device learns from the service identifier subfield that the option field carries first service information corresponding to the first service and second service information corresponding to the second service.
  • the service identifier subfield corresponds to m services in a bit-mapping manner.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to m services one by one.
  • each flag bit in the m flag bits indicates whether the option field carries the service information of the service corresponding to the flag bit, and the value in each flag bit can be 0 or 1, and "1" indicates that in the option field Carry the service information of the service corresponding to the flag bit, and "0" indicates that the option field does not carry the service information of the service corresponding to the flag bit.
  • the first flag among the m flags corresponds to the first service
  • the second flag among the m flags corresponds to the second service
  • the first flag indicates that the option field carries the first
  • the second flag bit indicates that the option field carries the second service information.
  • Both the value in the first flag bit and the value in the second flag bit can be 1.
  • the network device by setting the service flag subfield to include m flag bits corresponding to m business one-to-one, it is convenient for the network device to know whether the option field carries the service corresponding to the flag bit according to each flag bit information, so as to process the message according to the service information carried in the option field included in the message.
  • the first flag bit and the second flag bit are arranged in order, the first business information and the second business information are arranged in sequence, the first business information and the second business information are arranged in the same order as the first flag bit and the second business information
  • the arrangement order of the two flag bits corresponds.
  • the first business information is carried in the first subfield
  • the second business information is carried in the second subfield
  • the arrangement order of the first subfield and the second subfield is the same as that of the first flag bit and the second flag bit Corresponding, so that the arrangement order of the first service information and the second service information corresponds to the arrangement order of the first flag bit and the second flag bit.
  • both the first subfield and the second subfield are business subfields
  • the option field may include k business subfields
  • the k business subfields correspond to k business one by one
  • each business subfield carries There is business information of the business corresponding to the business subfield.
  • the m flag bits are arranged in sequence
  • the k service subfields are arranged in sequence
  • the arrangement order of the k subfields corresponds to the arrangement order of the k flag bits corresponding to the k services.
  • the option field includes a business flag subfield, a first subfield corresponding to the first business, and a second subfield corresponding to the second business
  • the business flag subfield includes the first subfield corresponding to the first business
  • the arrangement order of the first subfield and the second subfield corresponds to the arrangement order of the first flag bit and the second flag bit, therefore, it is convenient for the network device to follow the first
  • the arrangement sequence of the flag bit and the second flag bit determines the first subfield and the second subfield, thereby determining the first service information and the second service information.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m businesses
  • the m businesses are different from each other
  • the m businesses include the second business
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer
  • the first service information is basic service information
  • the first service is a basic service.
  • the first service is different from the m services. That is, the basic service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic business information in the option field is a basic subfield
  • the option field includes k business subfields corresponding to the k business one-to-one, and the k business subfields are located in the basic subfield after the field.
  • the length of the basic subfield is a fixed value.
  • the length of the basic subfield is 8 bits, 16 bits, 32 bits or 64 bits.
  • the option field can carry the basic service information.
  • the message including the option field can support at least 4 services.
  • the option field further includes a reserved subfield, and the reserved subfield is adjacent to the service flag subfield.
  • the reserved subfield since the reserved subfield is adjacent to the service flag subfield, the reserved subfield can support the length extension of the service flag subfield, thereby supporting the extension of the service subfield in the option field.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field includes k service subfields corresponding to k services in the m services, and the k service subfields are arranged in sequence, Among the k service subfields, the lengths of the first k-1 service subfields are the same, and the length of the last service subfield is different from that of the first k-1 service subfields. Expanding the business subfield before the 1st business subfield makes less changes to the option field than extending the business subfield after the last business subfield, and extending the business subfield before the 1st business subfield is more convenient. Therefore, this application sets the lowest bit of the reserved subfield to be adjacent to the highest bit of the service flag subfield. In this way, if the service subfield needs to be extended in the option field, the first service subfield In the extended service subfield, bits are extended from the high bit of the service flag subfield, which helps to improve the convenience of extending the service subfield.
  • the option field further includes a type subfield and a length subfield, the type subfield indicates the type of the option field, and the length subfield indicates the length of the option field.
  • the packet is an IPv6 packet, and the packet includes an IPv6 extension header, and the IPv6 extension header includes the option field.
  • the technical solution provided by this application carries the service information of at least two different services in the same option field of the IPv6 extension header of the same message, which can save options compared to the solution of expanding the option field for each service separately.
  • the overhead brought 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 (DOH).
  • HBH hop by hop header
  • DOH destination options header
  • the first service includes any one of slice service, flow detection service, APN service and DetNet service; or, the second service includes any one of slice service, flow detection service, APN service and DetNet service.
  • the streaming detection service may include an IFIT service or an IOAM service.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • the first service information includes a path identifier, and the first service is a path-oriented service.
  • the first service is a path-oriented operation management and maintenance (operations administration and maintenance, OAM) service, a path-oriented visualization service, a path-oriented traffic statistics service, a path-oriented performance measurement service, and the like.
  • OAM operations administration and maintenance
  • 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 information.
  • the second service information is carried in the second subfield, and the network device first obtains the second service information from the second subfield, and then processes the message according to the second service information.
  • 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 information.
  • the second service information is carried in the second subfield, and the network device skips the second subfield.
  • the network device processes the message according to the first service information, including at least one of the following: the network device counts the message according to the first service information; the network device forwards the message according to the first service information arts.
  • the network device processing the packet according to the first service information includes: the network device processing the packet according to the first service information and local configuration information associated with the first service.
  • the local configuration information may be program instructions.
  • the first service information and the second service information are arranged in sequence, and the network device processes the message according to the order in which the first service information and the second service information are arranged.
  • the network device since the first service information and the second service information are arranged in order, therefore, in the process of processing the message by the network device according to the option field included in the message, if the network device does not support the first service and/or the second service, the network device may skip the first service information and/or the second service information, and directly process the message according to the next service information, which helps to simplify the processing logic of the network device.
  • a service processing method comprising: a network device generates a message including an option field, the option field carries first service information and second service information, and the first service information corresponds to the first service , the second service information corresponds to the second service, and the first service is different from the second service; the network device sends the message.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information.
  • the length of the first subfield is the same as the length of the second subfield.
  • the option field also includes a third subfield, the third subfield carries third service information, the third service information corresponds to the third service, and the first service, the second service and the third service are different from each other ;
  • the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the third subfield is shorter than the length of the first subfield.
  • the length of the third subfield is equal to the length of the first subfield.
  • both the length of the first subfield and the length of the second subfield are 2n bits, and n is an integer greater than or equal to 3.
  • both the length of the first subfield and the length of the second subfield are 8 bits, 16 bits, 32 bits or 64 bits.
  • the option field further includes a fourth subfield, where the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service flag subfield
  • the business flag subfield corresponds to m services
  • the m businesses are different from each other
  • the m services include the first business and the second business
  • the service flag subfield Indicates that the option field carries the first service information and the second service information
  • m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to m services one by one; the first flag bit in the m flag bits corresponds to the first business, and the m flag bits The second flag bit corresponds to the second service, the first flag bit indicates that the option field carries the first service information, and the second flag bit indicates that the option field carries the second service information.
  • the first flag bit and the second flag bit are arranged in order, the first business information and the second business information are arranged in sequence, the first business information and the second business information are arranged in the same order as the first flag bit and the second business information
  • the arrangement order of the two flag bits corresponds.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m businesses
  • the m businesses are different from each other
  • the m businesses include the second business
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic business information in the option field is a basic subfield
  • the option field includes k business subfields corresponding to the k business one-to-one, and the k business subfields are located in the basic subfield after the field.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field includes a type subfield and a length subfield
  • the type subfield indicates the type of the option field
  • the length subfield indicates the length of the option field
  • the packet is an IPv6 packet, and the packet includes an IPv6 extension header, and 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 slice service, flow detection service, APN service and DetNet service; or, the second service includes any one of slice service, flow detection service, APN service and DetNet service.
  • the streaming detection service may include an IFIT service or an IOAM service.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • the first service information includes a path identifier, and the first service is a path-oriented service.
  • the first service is a path-oriented OAM service, a path-oriented visualization service, a path-oriented traffic statistics service, a path-oriented performance measurement service, and the like.
  • the network device supports the first service, and the method further includes: the network device processes the message according to the first service information.
  • the network device also supports a second service, and the method further includes: the network device processes the message according to the second service information.
  • the network device does not support the second service, and the method further includes: the network device skips the second service information.
  • the network device processes the message according to the first service information, including at least one of the following: the network device counts the message according to the first service information; the network device forwards the message according to the first service information arts.
  • the network device processing the packet according to the first service information includes: the network device processing the packet according to the first service information and local configuration information associated with the first service.
  • the local configuration information may be program instructions.
  • the first service information and the second service information are arranged in sequence, and the network device processes the message according to the arrangement order of the first service information and the second service information.
  • the method further includes: the network device receives instruction information sent by the controller, and the instruction information is used to instruct the network device to generate the message including the option field
  • the network device generating the message including the option field includes: the network device generating the message including the option field according to the indication information.
  • a service processing method comprising: the controller sends instruction information to the head node, the instruction information is used to instruct the head node to generate a message including an option field, and the option field carries the first service information and second service information, the first service information corresponds to the first service, the second service information corresponds to the second service, and the first service is different from the second service.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information.
  • the length of the first subfield is the same as the length of the second subfield.
  • the option field also includes a third subfield, the third subfield carries third service information, the third service information corresponds to the third service, and the first service, the second service and the third service are different from each other ;
  • the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the third subfield is shorter than the length of the first subfield.
  • the length of the third subfield is equal to the length of the first subfield.
  • both the length of the first subfield and the length of the second subfield are 2n bits, and n is an integer greater than or equal to 3.
  • the option field further includes a fourth subfield, where the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service flag subfield
  • the business flag subfield corresponds to m services
  • the m businesses are different from each other
  • the m services include the first business and the second business
  • the service flag subfield Indicates that the option field carries the first service information and the second service information
  • m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to m services one by one; the first flag bit in the m flag bits corresponds to the first business, and the m flag bits The second flag bit corresponds to the second service, the first flag bit indicates that the option field carries the first service information, and the second flag bit indicates that the option field carries the second service information.
  • the first flag bit and the second flag bit are arranged in order, the first business information and the second business information are arranged in sequence, the first business information and the second business information are arranged in the same order as the first flag bit and the second business information
  • the arrangement order of the two flag bits corresponds.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m businesses
  • the m businesses are different from each other
  • the m businesses include the second business
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic business information in the option field is a basic subfield
  • the option field includes k business subfields corresponding to the k business one-to-one, and the k business subfields are located in the basic subfield after the field.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field includes a type subfield and a length subfield
  • the type subfield indicates the type of the option field
  • the length subfield indicates the length of the option field
  • the instruction 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 IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of the slicing service, the on-stream detection service, the APN service, and the DetNet service; or, the second service includes any one of the slicing service, the on-stream detection service, the APN service, and the DetNet service.
  • the streaming detection service may include an IFIT service or an IOAM service.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • the first service information includes a path identifier, and the first service is a path-oriented service.
  • the first service is a path-oriented OAM service, a path-oriented visualization service, a path-oriented traffic statistics service, a path-oriented performance measurement service, and the like.
  • a service processing method includes: a head node receives instruction information sent by a controller, the instruction information is used to instruct the head node to generate a message including an option field, and the option field carries the first One business information and second business information, the first business information corresponds to the first business, the second business information corresponds to the second business, the first business is different from the second business; the head node generates a report including the option field according to the indication information arts.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information.
  • the length of the first subfield is the same as the length of the second subfield.
  • the option field also includes a third subfield, the third subfield carries third service information, the third service information corresponds to the third service, and the first service, the second service and the third service are different from each other ;
  • the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the third subfield is shorter than the length of the first subfield.
  • the length of the third subfield is equal to the length of the first subfield.
  • both the length of the first subfield and the length of the second subfield are 2n bits, and n is an integer greater than or equal to 3.
  • the option field further includes a fourth subfield, where the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service flag subfield
  • the business flag subfield corresponds to m services
  • the m businesses are different from each other
  • the m services include the first business and the second business
  • the service flag subfield Indicates that the option field carries the first service information and the second service information
  • m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to m services one by one; the first flag bit in the m flag bits corresponds to the first business, and the m flag bits The second flag bit corresponds to the second service, the first flag bit indicates that the option field carries the first service information, and the second flag bit indicates that the option field carries the second service information.
  • the first flag bit and the second flag bit are arranged in order, the first business information and the second business information are arranged in sequence, the first business information and the second business information are arranged in the same order as the first flag bit and the second business information
  • the arrangement order of the two flag bits corresponds.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m businesses
  • the m businesses are different from each other
  • the m businesses include the second business
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic business information in the option field is a basic subfield
  • the option field includes k business subfields corresponding to the k business one-to-one, and the k business subfields are located in the basic subfield after the field.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field includes a type subfield and a length subfield
  • the type subfield indicates the type of the option field
  • the length subfield indicates the length of the option field
  • 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 head node generates a message including the option field according to the indication 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 slice service, flow detection service, APN service and DetNet service; or, the second service includes any one of slice service, flow detection service, APN service and DetNet service.
  • the streaming detection service may include an IFIT service or an IOAM service.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • the first service information includes a path identifier, and the first service is a path-oriented service.
  • the first service is a path-oriented OAM service, a path-oriented visualization service, a path-oriented traffic statistics service, a path-oriented performance measurement service, and the like.
  • a service processing device which is applied to network equipment, and includes a transceiver module and a processing module, and the transceiver module is used to implement the first aspect to the fourth aspect above, or any possible one of the first aspect to the fourth aspect
  • the transceiving operation in the method provided by the optional method, the processing module is used to perform the above-mentioned first aspect to the fourth aspect, or any optional method provided by the first aspect to the fourth aspect except for the transceiving operation operation.
  • the transceiving operation may be a receiving and/or sending operation.
  • the devices include:
  • a transceiver module configured to receive a message including an option field, where the option field carries first service information and second service information, the first service information corresponds to the first service, and the second service information corresponds to the second service information business, the first business is different from the second business;
  • a processing module configured to process the message according to the first service information.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information information.
  • the length of the first subfield is the same as the length of the second subfield.
  • the option field further includes a third subfield, the third subfield carries third service information, the third service information corresponds to a third service, the first service, the first The second service and the third service are different from each other; the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is the same as that of the first subfield of different lengths.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the third subfield is smaller than the length of the first subfield.
  • the length of the third subfield is equal to the length of the first subfield.
  • the length of the first subfield and the length of the second subfield are both 2n bits, and n is an integer greater than or equal to 3.
  • the option field further includes a fourth subfield, where the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service identifier subfield, the service identifier subfield corresponds to m services, the m services are different from each other, and the m services include the first service and the second service.
  • the service flag subfield indicates that the option field carries the first service information and the second service information, and m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to the m services one by one; the first flag bit among the m flag bits corresponds to the first business , the second flag bit among the m flag bits corresponds to the second service, the first flag bit indicates that the first service information is carried in the option field, and the second flag bit indicates that the The option field carries the second service information.
  • the first flag bit and the second flag bit are arranged in sequence, the first service information and the second service information are arranged in sequence, the first service information and the second The order in which the service information is arranged corresponds to the order in which the first flag bits and the second flag bits are arranged.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m services
  • the m services are different from each other
  • the service includes the second service
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer.
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic service information in the option field is a basic subfield
  • the option field includes k service subfields corresponding to the k services one-to-one, and the k service subfields field after the base subfield.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield, and the reserved subfield is adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field further includes a type subfield and a length subfield, the type subfield indicates the type of the option field, and the length subfield indicates the length of the option field.
  • the message is an IPv6 message, and the message includes an IPv6 extension header, and 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 slice service, flow detection service, APN service and DetNet service; or, the second service includes slice service, flow detection service, APN service and DetNet service any of the .
  • the streaming detection service includes IFIT service or IOAM service.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • 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 information.
  • the network device supports the first service but does not support the second service
  • the processing module is further configured to skip information about the second service.
  • the processing module is configured to perform at least one of the following: counting the packets according to the first service information; forwarding the packets according to the first service information.
  • the processing module is specifically configured to process the message according to the first service information and local configuration information associated with the first service.
  • the first business information and the second business information are arranged in order, and the processing module is specifically configured to process the report according to the order in which the first business information and the second business information are arranged. arts.
  • a service processing device which is applied to a network device, and the device includes:
  • a processing module configured to generate a message including an option field, where the option field carries first service information and second service information, the first service information corresponds to the first service, and the second service information corresponds to the second service information business, the first business is different from the second business;
  • a transceiver module configured to send the message.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information information.
  • the length of the first subfield is the same as the length of the second subfield.
  • the option field further includes a third subfield, the third subfield carries third service information, the third service information corresponds to a third service, the first service, the first The second business is different from the third business;
  • the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the third subfield is smaller than the length of the first subfield.
  • the length of the third subfield is equal to the length of the first subfield.
  • the length of the first subfield and the length of the second subfield are both 2n bits, and n is an integer greater than or equal to 3.
  • the length of the first subfield and the length of the second subfield are both 8 bits, 16 bits, 32 bits or 64 bits.
  • the option field further includes a fourth subfield, and the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service identifier subfield, the service identifier subfield corresponds to m services, the m services are different from each other, and the m services include the first service and the second service.
  • the service flag subfield indicates that the option field carries the first service information and the second service information, and m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to the m services one by one; the first flag bit among the m flag bits corresponds to the first business , the second flag bit among the m flag bits corresponds to the second service, the first flag bit indicates that the first service information is carried in the option field, and the second flag bit indicates that the The option field carries the second service information.
  • the first flag bit and the second flag bit are arranged in sequence, the first service information and the second service information are arranged in sequence, the first service information and the second The order in which the service information is arranged corresponds to the order in which the first flag bits and the second flag bits are arranged.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m services
  • the m services are different from each other
  • the service includes the second service
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer.
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic service information in the option field is a basic subfield
  • the option field includes k service subfields corresponding to the k services one-to-one, and the k service subfields field after the base subfield.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield, and the reserved subfield is adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field includes a type subfield and a length subfield
  • the type subfield indicates the type of the option field
  • the length subfield indicates the length of the option field
  • the message is an IPv6 message, and the message includes an IPv6 extension header, and 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 slice service, flow detection service, APN service and DetNet service; or, the second service includes slice service, flow detection service, APN service and DetNet service any of the .
  • the streaming detection service includes IFIT service or IOAM service.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • the network device supports the first service
  • the processing module is further configured to process the message according to the first service information.
  • the network device also supports the second service, and the processing module is further configured to process the message according to the second service information.
  • the network device does not support the second service
  • the processing module is further configured to skip the second service information.
  • the processing module is configured to perform at least one of the following: counting the packets according to the first service information; forwarding the packets according to the first service information.
  • the processing module is specifically configured to process the message according to the first service information and local configuration information associated with the first service.
  • the first business information and the second business information are arranged in order, and the processing module is specifically configured to process the report according to the order in which the first business information and the second business information are arranged. arts.
  • the transceiver module is further 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 specifically configured to generate the message including the option field according to the indication information.
  • a service processing device which is applied to a controller, and the device includes:
  • a transceiver module configured to send indication information to the head node, where the indication information is used to instruct the head node to generate a message including an option field, the option field carrying first service information and second service information, the The first service information corresponds to a first service, the second service information corresponds to a second service, and the first service is different from the second service.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information information.
  • the length of the first subfield is the same as the length of the second subfield.
  • the option field further includes a third subfield, the third subfield carries third service information, the third service information corresponds to a third service, the first service, the first The second business is different from the third business;
  • the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the third subfield is smaller than the length of the first subfield.
  • the length of the third subfield is equal to the length of the first subfield.
  • the length of the first subfield and the length of the second subfield are both 2n bits, and n is an integer greater than or equal to 3.
  • the option field further includes a fourth subfield, where the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service identifier subfield, the service identifier subfield corresponds to m services, the m services are different from each other, and the m services include the first service and the second service.
  • the service flag subfield indicates that the option field carries the first service information and the second service information, and m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to the m services one by one; the first flag bit among the m flag bits corresponds to the first business , the second flag bit among the m flag bits corresponds to the second service, the first flag bit indicates that the first service information is carried in the option field, and the second flag bit indicates that the The option field carries the second service information.
  • the first flag bit and the second flag bit are arranged in sequence, the first service information and the second service information are arranged in sequence, the first service information and the second The arrangement order of the service information corresponds to the arrangement order of the first flag bit and the second flag bit.
  • the first service information is basic service information
  • the option field includes a service identifier subfield
  • the service identifier subfield corresponds to m services
  • the m services are different from each other
  • the service includes the second service
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic service information in the option field is a basic subfield
  • the option field includes k service subfields corresponding to the k services one-to-one, and the k service subfields field after the base subfield.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield, and the reserved subfield is adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field includes a type subfield and a length subfield
  • the type subfield indicates the type of the option field
  • the length subfield indicates the length of the option field
  • 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 IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of slice service, flow detection service, APN service and DetNet service; or, the second service includes slice service, flow detection service, APN service and DetNet service any of the .
  • the streaming detection service includes IFIT service or IOAM service.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • a service processing device which is applied to a head node, and the device includes:
  • the transceiver module is configured to receive indication information sent by the controller, the indication information is used to instruct the head node to generate a message including an option field, and the option field carries the first service information and the second service information, so The first service information corresponds to a first service, the second service information corresponds to a second service, and the first service is different from the second service;
  • a processing module configured to generate a message including the option field according to the indication information.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information information.
  • the length of the first subfield is the same as the length of the second subfield.
  • the option field further includes a third subfield, the third subfield carries third service information, the third service information corresponds to a third service, the first service, the first The second business is different from the third business;
  • the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the third subfield is smaller than the length of the first subfield.
  • the length of the third subfield is equal to the length of the first subfield.
  • the length of the first subfield and the length of the second subfield are both 2n bits, and n is an integer greater than or equal to 3.
  • the option field further includes a fourth subfield, where the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service identifier subfield, the service identifier subfield corresponds to m services, the m services are different from each other, and the m services include the first service and the second service.
  • the service flag subfield indicates that the option field carries the first service information and the second service information, and m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to the m services one by one; the first flag bit among the m flag bits corresponds to the first business , the second flag bit among the m flag bits corresponds to the second service, the first flag bit indicates that the first service information is carried in the option field, and the second flag bit indicates that the The option field carries the second service information.
  • the first flag bit and the second flag bit are arranged in sequence, the first service information and the second service information are arranged in sequence, the first service information and the second The order in which the service information is arranged corresponds to the order in which the first flag bits and the second flag bits are arranged.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m services
  • the m services are different from each other
  • the service includes the second service
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer.
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic service information in the option field is a basic subfield
  • the option field includes k service subfields corresponding to the k services one-to-one, and the k service subfields field after the base subfield.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield, and the reserved subfield is adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field includes a type subfield and a length subfield
  • the type subfield indicates the type of the option field
  • the length subfield indicates the length of the option field
  • 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 is configured to generate an IPv6 packet according to the indication information An IPv6 message including the IPv6 extension header.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of slice service, flow detection service, APN service and DetNet service; or, the second service includes slice service, flow detection service, APN service and DetNet service any of the .
  • the streaming detection service includes IFIT service or IOAM service.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • the modules in the fifth aspect to the eighth aspect above can be implemented based on software, hardware or a combination of software and hardware, and the modules can be combined or divided arbitrarily based on the specific implementation.
  • a service processing device including a memory and a processor
  • the processor is configured to execute the computer program stored in the memory so that the service processing device executes the service processing method provided in the first aspect or any optional manner of the first aspect.
  • a service processing device including a memory and a processor
  • the processor is configured to execute the computer program stored in the memory so that the service processing device executes the service processing method provided in the second aspect or any optional manner of the second aspect.
  • a service processing device including: a memory and a processor;
  • the processor is used to execute the computer program stored in the memory so that the business processing device executes the business processing method provided in the third aspect above.
  • a service processing device including: a memory and a processor;
  • the processor is used to execute the computer program stored in the memory so that the service processing device executes the service processing method provided in the fourth aspect above.
  • a thirteenth aspect provides a service 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 carries first service information and second service information, and the first service information corresponds to the first service , the second service information corresponds to the second service, and the first service is different from the second service;
  • the second network device is configured to receive the packet and process the packet according to the first service information.
  • 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 an option field;
  • the first network device is configured to generate a message including the option field according to the indication information.
  • the first network device is a head node on the forwarding path of the message
  • the second network device is an intermediate node or an end node on the forwarding path.
  • the first network device is a head node or an intermediate node on the forwarding path of the message
  • the second network device is an tail node on the forwarding path.
  • the service processing device provided in the fifth aspect or any optional implementation manner of the fifth aspect may be used as an intermediate node or tail node on the forwarding path of the message, and any of the sixth aspect or the sixth aspect
  • the service processing device provided by an optional implementation manner may serve as the head node on the packet forwarding path
  • the service processing device provided by the seventh aspect or any optional implementation manner of the seventh aspect may serve as a controller.
  • the service processing device provided in the fifth aspect or any optional implementation manner of the fifth aspect can be used as a tail node
  • the business processing device provided in the sixth aspect or any optional implementation manner of the sixth aspect The device may serve as a head node or an intermediate node
  • the service processing device provided in the seventh aspect or any optional implementation manner of the seventh aspect may serve as a controller.
  • the business processing device provided in the seventh aspect or any optional implementation manner of the seventh aspect can be used as a controller, and the business processing device provided in the eighth aspect or any optional implementation manner of the eighth aspect A device can act as a head node.
  • the service processing device provided in the above-mentioned ninth aspect can be used as an intermediate node or an end node on the forwarding path of the message, and in the service processing device provided in the above-mentioned tenth aspect, the controller includes the above-mentioned eleventh aspect
  • the provided service processing device can be used as the head node on the forwarding path of the message.
  • the service processing device provided in the above-mentioned ninth aspect can be used as the tail node on the message forwarding path
  • the service processing device provided in the above-mentioned tenth aspect can be used as the head node or intermediate node on the message forwarding path
  • the service processing device provided in the eleventh aspect above can be used as a controller.
  • the service processing device provided in the eleventh aspect above may be used as a controller, and the service processing device provided in the twelfth aspect above may be used as a head node on a message forwarding path.
  • a computer-readable storage medium is provided, and a computer program is stored in the computer-readable storage medium.
  • the computer program is executed, the above-mentioned first aspect or any optional method of the first aspect is implemented.
  • a computer program product includes a program or code, and when the program or code is executed, it can realize the service provided in the first aspect or any optional mode of the first aspect
  • the processing method, or realize the business processing method provided in the second aspect or any optional method of the second aspect, or realize the business processing method provided in the third aspect or any optional method of the third aspect A business processing method, or implement the business processing method provided in the fourth aspect or any optional manner of the fourth aspect.
  • a chip in a sixteenth aspect, includes programmable logic circuits and/or program instructions, and when the chip is running, it realizes the business processing provided in the first aspect or any optional method of the first aspect method, or implement the business processing method provided in the above second aspect or any optional manner of the second aspect, or realize the provided business as provided in the above third aspect or any optional manner of the third aspect A processing method, or implement the service processing method provided in the fourth aspect or any optional manner of the fourth aspect.
  • a data structure in a seventeenth aspect, includes an option field, the option field carries first business information and second business information, the first business information corresponds to the first business, and the second business information corresponds to the second business information For the second business, the first business is different from the second business. That is, the same option field carries service information of at least two different services.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information.
  • the length of the first subfield is the same as the length of the second subfield.
  • the option field also includes a third subfield, the third subfield carries third service information, the third service information corresponds to the third service, and the first service, the second service and the third service are different from each other ;
  • the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the third subfield is shorter than the length of the first subfield.
  • the length of the third subfield is equal to the length of the first subfield.
  • both the length of the first subfield and the length of the second subfield are 2n bits, and n is an integer greater than or equal to 3.
  • the option field further includes a fourth subfield, where the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service flag subfield
  • the business flag subfield corresponds to m services
  • the m businesses are different from each other
  • the m services include the first business and the second business
  • the service flag subfield Indicates that the option field carries the first service information and the second service information
  • m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to m services one by one; the first flag bit in the m flag bits corresponds to the first business, and the m flag bits The second flag bit corresponds to the second service, the first flag bit indicates that the option field carries the first service information, and the second flag bit indicates that the option field carries the second service information.
  • the first flag bit and the second flag bit are arranged in order, the first business information and the second business information are arranged in sequence, the first business information and the second business information are arranged in the same order as the first flag bit and the second business information
  • the arrangement order of the two flag bits corresponds.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m businesses
  • the m businesses are different from each other
  • the m businesses include the second business
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic business information in the option field is a basic subfield
  • the option field includes k business subfields corresponding to the k business one-to-one, and the k business subfields are located in the basic subfield after the field.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field includes a type subfield and a length subfield
  • the type subfield indicates the type of the option field
  • the length subfield indicates the length of the option field
  • the first service information and the second service information are carried in the same option field of the message, the first service information corresponds to the first service, the second service information corresponds to the second service, and the first service and the second service information correspond to the second service.
  • the second business is different. That is, the same option field of the same message carries service information of at least two different services. In other words, the same option field in the same packet can carry service information of at least two different services. Therefore, there is no need to expand the option field for each service. Compared with the current solution of expanding the option field for each service separately, the overhead caused by some fixed content in the option field can be saved, which helps to reduce message overhead.
  • each option field usually includes some optional subfields for alignment or future expansion, and these optional subfields are likely to cause large packet overhead .
  • the same option field of the same message can carry business information of at least two different services. The overhead brought by the field reduces the message overhead.
  • a network device After a network device acquires (for example, receives or generates) a packet, it usually needs to process the packet, for example, forward the packet or perform some service processing on the packet.
  • the length of the message In the current scheme of separately expanding the option field for each service, the length of the message is relatively large, which results in high complexity for the network device to process the message and low forwarding performance of the network device.
  • the same option field of the same message can carry business information of at least two different services, so the length of the message can be reduced, the complexity of network equipment processing the message can be simplified, and the network equipment can be improved. forwarding performance.
  • FIG. 1 is a schematic structural diagram of an option field
  • Fig. 2 is a schematic structural diagram of another option field
  • FIG. 3 is a schematic structural diagram of yet another option field
  • Fig. 4 is a schematic structural diagram of an option data subfield in the option field shown in Fig. 3;
  • Fig. 5 is another schematic structural diagram of the option data subfield in the option field shown in Fig. 3;
  • Fig. 6 is another schematic structural diagram of the option data subfield in the option field shown in Fig. 3;
  • Fig. 7 is another schematic structural diagram of the option data subfield in the option field shown in Fig. 3;
  • FIG. 8 is a schematic structural diagram of another option field
  • FIG. 9 is a schematic structural diagram of another option field.
  • FIG. 10 is a schematic structural diagram of another option field
  • Fig. 11 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • Fig. 12 is a schematic diagram of another application scenario provided by the embodiment of the present application.
  • Fig. 13 is a flow chart of a business processing method provided by an embodiment of the present application.
  • Fig. 14 is a schematic structural diagram of an option field provided by an embodiment of the present application.
  • Fig. 15 is a schematic structural diagram of another option field provided by the embodiment of the present application.
  • Fig. 16 is a schematic structural diagram of another option field provided by the embodiment of the present application.
  • Fig. 17 is a schematic structural diagram of another option field provided by the embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of a service flag subfield provided by an embodiment of the present application.
  • FIG. 19 is a schematic structural diagram of another service flag subfield provided by the embodiment of the present application.
  • Fig. 20 is a flow chart of another business processing method provided by the embodiment of the present application.
  • Fig. 21 is a flowchart of another business processing method provided by the embodiment of the present application.
  • Fig. 22 is a flowchart of another business processing method provided by the embodiment of the present application.
  • FIG. 23 is a flow chart of a network device processing a message provided by an embodiment of the present application.
  • Fig. 24 is a schematic diagram of a business processing method provided by an embodiment of the present application.
  • Fig. 25 is a schematic structural diagram of an option field provided by an embodiment of the present application.
  • Fig. 26 is a schematic structural diagram of a service processing device provided by an embodiment of the present application.
  • Fig. 27 is a schematic structural diagram of another service processing device provided by the embodiment of the present application.
  • Fig. 28 is a schematic structural diagram of another service processing device provided by the embodiment of the present application.
  • Fig. 29 is a schematic structural diagram of another service processing device provided by the embodiment of the present application.
  • Fig. 30 is a schematic structural diagram of another service processing device provided by the embodiment of the present application.
  • Fig. 31 is a schematic structural diagram of another service processing device provided by the embodiment of the present application.
  • Fig. 32 is a schematic structural diagram of another business processing system provided by the embodiment of the present application.
  • IPv6 packets multiple services can be carried out for IPv6 packets.
  • these services may include slicing services, flow detection services, APN services, and DetNet services.
  • IPv6 extension header of the IPv6 message different option fields are respectively extended for the above-mentioned services to carry the service information of the corresponding service, so that the IPv6 message can support the above-mentioned services.
  • the option fields for different business extensions are independent of each other.
  • slicing services refer to services related to network slicing.
  • the flow detection service refers to services related to flow detection.
  • APN services refer to services related to application-aware networks.
  • DetNet services refer to services related to deterministic networks.
  • the streaming detection service may include an IFIT service or an IOAM service and the like.
  • the names of the slicing service, flow detection service, APN service, and DetNet service may be different.
  • the slicing service is also called a virtual transport network (virtual transport network, VTN) service.
  • VTN virtual transport network
  • the following introduces the service information of the above-mentioned service and the option field currently carrying the service information of the above-mentioned service.
  • the service information of the slice service may include a slice identification (slice identification, slice ID).
  • the slice identifier may be a VTN resource identifier (VTN resource ID).
  • the option field includes a type subfield, a length subfield and a VTN resource ID subfield.
  • the length of the type subfield and the length of the length subfield are 8 bits, and the length of the VTN resource ID subfield is 4 bytes.
  • 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 (for example, the VTN resource ID subfield).
  • the VTN resource ID subfield is used to carry the VTN resource ID.
  • the service information of the IFIT service may include a flow identification (flow identification, flow ID), a packet loss measurement (packet loss measurement) identification, a delay measurement (packet delay measurement) identification, etc., and the flow identification may also be called a flow label, A flow monitoring identification (FMonID), etc., indicating the flow to be measured.
  • flow identification flow identification
  • flow ID packet loss measurement
  • FMonID flow monitoring identification
  • the option field includes a type subfield, a length subfield, an FMonID subfield, an L flag, a D flag, and a reserved subfield.
  • the length of the type subfield and the length of the length subfield are 8 bits
  • the length of the FMonID subfield is 20 bits
  • the length of the reserved subfield is 10 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 (including FMonID subfield, L flag, D flag and reserved subfield) of the option field.
  • the FMonID subfield is used to carry FMonID.
  • the L flag can be used to carry the packet loss measurement flag to indicate whether to perform packet loss measurement (for example, a value of 1 in the L flag indicates that packet loss measurement is required, and a value of 0 in the L flag indicates that no packet loss measurement is required. packet loss measurement).
  • the D flag is used to carry the delay measurement flag to indicate whether to perform delay measurement (for example, a value of 1 in the D flag indicates that delay measurement is required, and a value of 1 in the D flag indicates that no time delay measurement is required. delay measurement).
  • the L flag is used to carry the packet loss measurement identifier and the delay measurement identifier, and a value of 1 in the L flag indicates that packet loss measurement and delay measurement need to be performed, and a value of 0 in the L flag It means that there is no need to perform packet loss measurement and delay measurement.
  • the service information of the IOAM service may include a flow identifier, indicating the flow to be measured.
  • the option field includes a type subfield, a length subfield, a reserved subfield, an IOAM type subfield and an option data subfield.
  • the length of the type subfield, the length of the length subfield, the length of the reserved subfield and the length of the IOAM type subfield are all 8 bits, and the length of the option data subfield is variable.
  • the type subfield is used to indicate the type of the option field.
  • the length subfield is used to indicate the length of the option field.
  • the IOAM type subfield is used to indicate the type of the option data subfield.
  • the option data subfield is used to carry IOAM data.
  • the IOAM data may include a flow identifier, a message identifier, IOAM data of an IOAM node (referring to a node supporting IOAM) on a forwarding path of the message, and the like.
  • the IOAM data of any IOAM node can comprise the node identification of this IOAM node, the ingress port that message enters this IOAM node, the output port that message is exported from this IOAM node, the entry time stamp that message enters this IOAM node, message The egress timestamp output from the IOAM node, the transmission delay of the message at the IOAM node, and the like.
  • 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 may be as shown in FIG. 4 .
  • the format of the option data subfield can be as shown in Figure 5.
  • the format of the option data subfield can be as shown in Figure 6.
  • the format of the option data subfield can be as shown in Figure 7.
  • 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 a namespace (namespace) ID subfield, a node length (nodelen) subfield, Flags (flags) subfield, remaining length (remaininglen) subfield, IOAM tracking type subfield, reserved subfield and p node data list (node data list) subfields.
  • the length of the Namespace ID subfield is 16 bits
  • the length of the Node Length subfield is 5 bits
  • the length of the Flags subfield is 4 bits
  • the length of the Remaining Length subfield is 7 bits
  • the length of the IOAM Tracking Type subfield is 24 bits
  • the length of the reserved subfield is 8 bits
  • the length of the node data table field is 32 bits.
  • 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 indicate that the IOAM node adds data in the option data subfield in multiples of the remaining 4 bytes.
  • the IOAM tracking 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, and each node data table subfield is used to carry the IOAM data of the corresponding IOAM node.
  • 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 length of the namespace ID subfield is 16 bits
  • the length of the IOAM POT type subfield and the length of the IOAM POT flag subfield are both 8 bits
  • the length of the POT option data subfield is variable.
  • 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 POT option data subfield is used to carry the IOAM POT data
  • the IOAM POT data includes message identifiers, etc.
  • the option data subfield when the type of the option data subfield is the IOAM E2E option type, the option data subfield includes a namespace ID subfield, an IOAM E2E type subfield and an E2E option data subfield.
  • the length of the namespace ID subfield and the length of the IOAM E2E type subfield are both 16 bits, and the length of the E2E option data subfield is variable.
  • 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.
  • the IOAM E2E data includes the packet group sequence number (sequence number) for detecting packet loss, packet reordering or packet duplication within the group, etc.
  • the IOAM E2E data can also include packets entering the IOAM
  • the entry time stamp of the node, the exit time stamp 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 the option data subfield is the IOAM DEX option type, the option data subfield includes the namespace ID subfield, the flag subfield, the IOAM tracking type subfield, the reserved subfield, the flow identification subfield and Serial number subfield.
  • the length of the namespace ID subfield and the length of the flag subfield are both 16 bits, the length of the IOAM tracking type subfield is 24 bits, the length of the reserved subfield is 8 bits, the length of the flow identification subfield and the sequence number subfield The length of each is 32 bits.
  • 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 detection of packet loss, packet reordering, packet duplication within the group, etc.
  • the service information of the APN service may include an APN attribute (attribute).
  • APN attributes may include APN ID and APN parameters (parameters).
  • APN ID can include 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, and the network performance parameters may include at least one of bandwidth requirement parameters, delay requirement parameters, jitter requirement parameters, and packet loss ratio requirement parameters. Taking the APN parameters including bandwidth requirement parameter, delay requirement parameter, jitter requirement parameter and packet loss rate requirement parameter as an example, please refer to Figure 8 for the current option field for APN service extension.
  • the option field includes an APN ID type subfield, a flag subfield, an APN parameter type subfield, an APN ID subfield, an intent (intent) subfield, a bandwidth requirement parameter subfield, and a delay requirement parameter subfield , jitter requirement parameter subfield and packet loss ratio requirement parameter subfield.
  • the length of the APN ID type subfield and the length of the flag subfield are both 8 bits, the length of the APN parameter type subfield is 16 bits, the length of the APN ID subfield is 32 bits or 128 bits, and the length and bandwidth requirements of the intent subfield
  • the length of the parameter subfield, the length of the delay requirement parameter subfield, the length of the jitter requirement parameter subfield, and the length of the packet loss ratio requirement parameter subfield are all 32 bits.
  • the APN ID type subfield is used to indicate the type of APN ID
  • the type of APN ID includes 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 subfield is 128 bits.
  • the flags subfield is used to carry future defined versions.
  • 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 third bit corresponds to the jitter requirement, and the fourth 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 second bit is set to 1, it indicates that the option field carries the delay requirement parameter; when the third bit is set to 1, it indicates that the option field carries the jitter requirement parameter; when the fourth 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 application group identification space and user group identification space, and can also include reserved space.
  • the application group identification space is used to carry the application group identification.
  • the identification space is used to carry the user group identification, and the lengths of the application group identification space and the user group identification space are variable.
  • the intent subfield is an optional subfield indicating 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; for example, the delay requirement parameter subfield includes a 24-bit delay requirement space and an 8-bit reserved space, and the delay requirement space is used to carry the delay requirement parameter .
  • the jitter requirement parameter subfield is used to carry the jitter requirement parameter; for example, the jitter requirement parameter subfield includes a 24-bit jitter requirement space and an 8-bit reserved space, and the jitter requirement space is used to carry the jitter requirement parameter.
  • the packet loss rate requirement parameter subfield is used to carry the packet loss rate requirement parameter; for example, the packet loss rate requirement parameter subfield includes a 24-bit packet loss rate requirement space and an 8-bit reserved space, and the packet loss rate requirement space is used for Carry the packet loss rate request parameter.
  • the service information of the DetNet service may include a path identification (path identification, path ID), indicating the forwarding path through which the message passes.
  • path identification path identification, path ID
  • path ID path identification
  • FIG. 9 the option field shown in Figure 9 is a DetNet strict path (strict path) option field.
  • the option field includes a type subfield, a length subfield and a path identification subfield; the length of the type subfield and the length of the length subfield are both 8 bits, and the length of the path identification subfield is 16 bits; the type The subfield is used to indicate the type of the option field; the length subfield is used to indicate the length of the option field; the path identifier subfield is used to carry a path identifier, and the path identifier indicates a strict path.
  • the option field shown in Figure 10 is a DetNet loose path (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 length of the type subfield and the length of the length subfield are both 8 bits , the length of the source AS subfield is 16 bits, and the length of the path identification subfield 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 the option field;
  • the source AS subfield is used To indicate the originating AS of the path;
  • the path identifier subfield is used to carry the path identifier, which indicates a loose path.
  • an IPv6 packet needs to support slice service, IFIT service and APN service at the same time, it is necessary to extend the option field for the slice service, IFIT service and APN service in the IPv6 extension header of the IPv6 message (for example, need Expand three option fields, the three option fields are one-to-one correspondence with slice business, IFIT business, and APN business), and carry the business information of the slice business in the option field corresponding to the slice business, and in the IFIT business corresponding
  • the option field of the IFIT service carries the service information of the IFIT service
  • the option field corresponding to the APN service carries the service information of the APN service.
  • it is necessary to expand the option field shown in Figure 1 for the slicing service expand the option field shown in Figure 2 for the IFIT service, and expand the option field shown in Figure 8 for the APN service.
  • the option field should include a type subfield, a length subfield, etc. to describe the fixed content of the option field (for example, the option fields shown in Figures 1 to 3, and Figures 9 to 10 all include the type subfield field and length subfield).
  • each extended 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 packet.
  • the option field usually includes some optional subfields for alignment or future expansion (for example, the option fields shown in Figure 2 and Figure 3 both include reserved subfields, which can be used for alignment or Future extensions), these optional subfields will also lead to a larger length of the IPv6 extension header, resulting in a larger overhead of the IPv6 packet.
  • some optional subfields for alignment or future expansion for example, the option fields shown in Figure 2 and Figure 3 both include reserved subfields, which can be used for alignment or Future extensions
  • these optional subfields will also lead to a larger length of the IPv6 extension header, resulting in a larger overhead of the IPv6 packet.
  • the option field when an IPv6 message needs to support slice service, IFIT service and APN service at the same time, according to the current processing method, three option fields need to be extended in the IPv6 extension header of the IPv6 message, and the length of the IPv6 extension header will be Up to at least 70 bytes.
  • the network device needs to process the IPv6 message in the process of forwarding the IPv6 message, and the length of the IPv6 extension header increases, which easily increases the complexity of the network device's processing of the IPv6 message, resulting in a decrease in the forwarding performance of the network device.
  • the embodiment of the present application provides a technical solution.
  • the same option field can carry business information of at least two different services. Compared with the solution of expanding the option field for each service extension, some fixed content in the option field can be saved. (For example, the overhead brought by the type subfield and the length subfield) helps to reduce the message overhead. Moreover, the overhead caused by some optional subfields in the option field can also be saved.
  • the technical solution of the embodiment of the present application can reduce the length of the message, simplify the complexity of processing the message by the network device, and improve the forwarding performance of the network device.
  • FIG. 11 shows a schematic diagram of an application scenario provided by an 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-106 (ie network device 101, network device 102, network device 103, network device 104, network device 105 and network device 106), and the network devices 101-106 are connected in sequence.
  • Network devices 101-106 may be used to forward packets.
  • the network devices 101-106 include edge network devices, the edge network devices can be used for workstations to access the communication network, and the network devices 101-106 can be used for forwarding messages between different workstations connected to the communication network, Communication between the different workstations is achieved.
  • each of the network devices 101-106 may be a switch, a router (router), a virtual switch or a virtual router, and the like.
  • the network devices 101-106 may be the same network device, for example, the network devices 101-106 are all routers. Alternatively, at least two of the network devices 101-106 are different network devices, for example, a part of the network devices 101-106 is a router, and the other part is a switch.
  • the workstations connected to the above-mentioned communication network may be hosts, servers, base stations, virtual machines (virtual machine, VM), etc., and the hosts may be smartphones, tablet computers, desktop computers or Internet of things (Internet of things, IoT) devices, etc. The embodiment of the application does not limit this.
  • the communication network includes a forwarding path for forwarding packets, and the forwarding path may include multiple network devices.
  • the network devices on the forwarding path include an ingress device, an egress device, and at least one transit device between the ingress device and the egress device. Packets flow into the forwarding path through the ingress device, and flow out of the forwarding path through the egress device.
  • the number of transit devices on the forwarding path is different, or the forwarding path only includes the ingress device and the egress device, but does not include the transit device.
  • network devices are also called network nodes, gateway devices, routing nodes or routing devices, etc.; ingress devices are also called head nodes, head node devices, head nodes, head node devices, etc.; exit devices are also called tail nodes , tail node device, etc.; the transit device is also called a transit node, an intermediate node, or an intermediate node device; the forwarding path can also be called a transmission path, a communication link, a communication path, a communication tunnel, or a tunnel path, etc. As shown in FIG.
  • the communication network includes a 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 101 is the head node of the forwarding path P
  • the network device 106 is the tail node of the forwarding path P
  • the network devices 102 to 105 are all intermediate nodes of the forwarding path P.
  • the same option field can carry service information of at least two different services
  • a network device on the forwarding path can generate a message including the 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 message received by the intermediate node on the forwarding path includes the option field, and the intermediate node modifies the option field.
  • the message gets the message including the option field.
  • the head node generates a message including this option field as an example.
  • the message may be sent to the next-hop device of the head node.
  • the next-hop device may 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.
  • the next-hop device may send the processed message to a next-hop device of the next-hop device.
  • the next-hop device of the next-hop device receives the message including the option field, it may 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 serving as the head node may generate a packet including the option field, and send the packet to the network device 102 .
  • the message including the option field is forwarded to the network device 106 as the tail node through the network device 102, the network device 103, the network device 104 and the network device 105 in sequence, and each network device in the network device 101 to the network device 106
  • the message may be processed according to the service information carried in the option field in the received message.
  • the network device 106 serving as the tail node may also remove the option field in the packet.
  • the head node maintains the option field, and the head node generates a message including the option field according to the option field.
  • the head node generates the message including the option field according to the indication information sent by the controller.
  • the application scenario provided by the embodiment of the present application further includes a controller, the controller is connected to the head node, and the controller can send instruction information to the head node to instruct the head node to generate field message.
  • FIG. 12 shows a schematic diagram of another application scenario provided by the embodiment of the present application.
  • the application scenario provides a communication network, and the communication network further includes a controller 100, and the controller 100 and a network device 101 connections.
  • the controller 100 may also be connected to at least one (not shown in FIG. 12 ) of the controllers 102 - 106 , which is not limited in this embodiment of the present application.
  • the controller 100 may integrate 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 .
  • the network device 101 may generate a packet including the option field according to the indication information.
  • the indication information is indication information of the option field (for example, an identifier of the option field), the indication information indicates the option field, and the network device 101 may maintain multiple option fields, and the network device 101 is in the The option field indicated by the indication information is determined among the plurality of option fields maintained by the network device 101, and then a message including the option field is generated.
  • 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 this embodiment of the present application.
  • the controller can also be integrated into the network device, for example, the controller is integrated into the head node.
  • the communication network may include more or fewer devices than those shown in FIG. 11 and FIG. 12 , and the number of network devices and the number of controllers can be configured as required, which is not limited in this embodiment of the present application.
  • FIG. 13 shows a flow chart of a service processing method provided by an embodiment of the present application.
  • the method can be applied to a service processing system including network equipment A and network equipment B.
  • the service processing system is a communication network as shown in FIG. 11 or FIG. 12
  • network device A may be network device 101
  • network device B may be any one of network device 102 - network device 106 .
  • the method includes the following steps S301 to S304.
  • Network device A generates message A including an option field, where the option field carries first service information and second service information, the first service information corresponds to the first service, the second service information corresponds to the second service, and the first service information corresponds to the second service.
  • the business is different from the second business.
  • network device A is a head node, and network device A adds an option field to an initial message from a workstation (such as a host) accessing network device A to obtain message A including the option field.
  • network device A is an intermediate node, and the message B received by network device A from the previous hop device of network device A includes the option field, and network device A can modify the message B to obtain Packet A including this option field.
  • network device A modifies the option field included in the message B, specifically, network device A modifies the information carried in the option field included in the message B, which is not limited in this embodiment of the present application.
  • message A may be an IPv6 message, and message A includes an IPv6 extension header, and 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 Add the option field to the IPv6 extension header of the message to obtain message A.
  • network device A is an intermediate node, and the packet B received by network device A from the previous hop device of network device A includes an IPv6 extension header, which includes the option field, and network device A modifies Packet A is obtained by the IPv6 extension header.
  • the IPv6 extension header can include HBH, DOH, routing header (routing header, RH), fragment header (fragment header, FH), etc., and, according to business needs, an IPv6 message can include at least one IPv6 extension head.
  • the IPv6 extension header including the option field may be HBH or DOH. That is, the option field can be located in HBH or DOH.
  • message A includes an HBH, and the option field may be located in the HBH.
  • the message A includes a DOH, and the option field may be located in the DOH.
  • message A includes RH and two DOHs, one of the two DOHs is located before the RH, and the other DOH is located after the RH (for example, the DOH located before the RH is called the first DOH, and the DOH located after the RH DOH is called the second DOH), and the option field can be located in the first DOH or in the second DOH.
  • the option field is located in the HBH
  • each network device that receives the message A can process the message A according to the option field.
  • the option field is located in the first DOH
  • each network device that receives message A and hits the destination address of message A can process message A according to the option field.
  • the option field is located in the second DOH, only the tail node needs to process message A according to the option field.
  • the option field may include a first subfield and a second subfield, the first subfield may correspond to the first service, the second subfield may correspond to the second service, and the first subfield The first service information is carried, and the second subfield carries the second service information, so that the option field carries the first service information and the second service information.
  • both the length of the first subfield and the length of the second subfield may be fixed values, and the length of the first subfield and the length of the second subfield may be the same.
  • both the length of the first subfield and the length of the second subfield are 2n bits, and n is an integer greater than or equal to 3.
  • n is equal to 3, 4, 5 or 6, correspondingly, 2n is equal to 8, 16, 32 or 64. That is, both the length of the first subfield and the length of the second subfield can be 8 bits, 16 bits, 32 bits or 64 bits. As a specific example, the length of the first subfield and the length of the second subfield are both 32 bits.
  • the option field further includes a third subfield, the third subfield carries third service information, the third service information corresponds to the third service, the first service, the second service and the second service
  • the first service is a slice service
  • the second service is an APN service
  • the third service is an IFIT service.
  • the first subfield, the second subfield and the third subfield may be arranged in sequence, the length of the third subfield may be variable, and the length of the third subfield may be different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the third subfield may also be less than or equal to the length of the first subfield, which is not limited in this embodiment of the present application.
  • the first subfield, the second subfield and the third subfield are all used to carry service information, therefore, the first subfield, the second subfield and the third subfield can all be called service subfields.
  • the business subfield is also called a space or a container.
  • the first subfield may be called a first space or a first container
  • the second subfield may be called a second space or a second container
  • the third subfield may be called a third space or a third container.
  • the option field includes k service subfields, the k service subfields correspond to k services one by one, the k services are different from each other, and k is a positive integer.
  • the k business subfields can be arranged in sequence, the lengths of the first k-1 business subfields in the k business subfields can be the same, and the length of the kth business subfield (that is, the last business subfield) is the same as The lengths of the first k-1 service subfields may be different.
  • the first subfield and the second subfield may be two service subfields in the first k-1 service subfields, and the third subfield may be the kth service subfield.
  • the option field further includes a fourth subfield, where the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the fourth subfield indicates that both the length of the first subfield and the length of the second subfield are 32 bits.
  • the fourth subfield indicates the length of the first subfield and the length of the second subfield means that the value in the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes k business subfields
  • the first k-1 business subfields of the k business subfields include the first subfield and the second subfield
  • the fourth subfield may indicate The length of the first k-1 service subfields, so that the fourth subfield can indicate the length of the first subfield and the length of the second subfield. Since the fourth subfield indicates the length of the service subfield, the fourth subfield may also be called a length flag subfield or a length indication subfield, which is not limited in this embodiment of the present application.
  • the option field includes a service identifier subfield, the service identifier subfield corresponds to m services, and the service identifier subfield indicates that the option field carries k services in the m services business information, the m businesses are different from each other, m is a positive integer, and k is an integer less than or equal to m.
  • the service flag subfield indicates that the option field includes k service subfields corresponding to the k services one-to-one, and the k service subfields carry the service information of the k services in one-to-one correspondence, Therefore, the service flag subfield indicates that the option field carries service information of the k services.
  • the lengths of the first k-1 service subfields may be the same, and the length of the last service subfield may be different from that of the first k-1 service subfields. In other implementation manners, the length of the last service subfield may also be the same as the length of the first k-1 service subfields, which is not limited in this embodiment of the present application.
  • the service flag subfield since the service flag subfield indicates that the option field carries service information, the service flag subfield may also be called a service indication subfield.
  • the service flag subfield includes m flag bits, the m flag bits correspond to the m services one by one, and each flag bit is used to indicate whether the flag is carried in the option field
  • the bit corresponds to the business information of the business.
  • the value in each flag bit can be 0 or 1, "1" indicates that the option field carries the service information corresponding to the flag bit, and "0" indicates that the option field does not carry the service information corresponding to the flag bit information.
  • the m flag bits can be arranged in order, and the service information of the k services carried in the option field can also be arranged in order, and the arrangement order of the k business information is the same as the arrangement order of the m flag bits Can correspond.
  • the service information of the k services is carried in k service subfields in one-to-one correspondence, and the k service subfields are arranged in sequence, and the arrangement order of the k service subfields corresponds to the arrangement order of the m flag bits.
  • the m flag bits may be arranged in order from high bit to low bit, or may be arranged in order from low bit to high bit.
  • the k business subfields are arranged according to the direction from close to the service flag subfield to away from the business flag subfield (for example, according to the direction from the first 32 bits close to the option field to the first 32 bits away from the option field) in order.
  • the arrangement order of the k business subfields corresponds to the arrangement order of the m flag bits, including: the arrangement order of the k business subfields corresponds to the arrangement order of the m flag bits from high to low, that is, the The k business subfields correspond to the order of the m flag bits; or, the arrangement order of the k business subfields corresponds to the arrangement order of the m flag bits from low to high, that is, the k business subfields Corresponding to the reverse order of the m flag bits, which is not limited in this embodiment of the present application.
  • the m services corresponding to the service identifier subfield include the first service and the second service
  • the service identifier subfield indicates that the option field carries the first service information and the second service information.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the k services include the first service and the second service, so the service flag subfield indicates the option field carries the first service information and the second service information.
  • the m flag bits in the service flag subfield include a first flag bit and a second flag bit, the first flag bit corresponds to the first service, the second flag bit corresponds to the second service, and the first flag bit indicates the option
  • the first service information is carried in the field
  • the second flag bit indicates that the second service information is carried in the option field.
  • the first flag bit and the second flag bit can be arranged in sequence
  • the first business information and the second business information can be arranged in sequence
  • the arrangement order of the first business information and the second business information is the same as that of the first flag bit and the second business information.
  • the arrangement order of the flag bits corresponds.
  • sequence of the first business information and the second business information corresponds to the sequence of the first flag and the second flag from high to low
  • the sequence of the first business information and the second business information corresponds to the sequence of the first flag and the second flag.
  • the first flag bit and the second flag bit correspond to each other according to the sequence from the low bit to the high bit, which is not limited in this embodiment of the present application.
  • the option field may carry basic service information, and the basic service information corresponds to the basic service. Detection may include IFIT traffic or IOAM traffic.
  • the basic service may belong to the m services corresponding to the service identifier subfield, or may not belong to the m services corresponding to the service identifier subfield.
  • the basic service belongs to the m services corresponding to the service flag subfield, and the basic service may be any one of the above k services.
  • the basic service is the above-mentioned first service
  • the basic service information is the above-mentioned first service information
  • the content of the option field can refer to the above-mentioned first specific implementation manner.
  • the basic service does not belong to the m services corresponding to the service flag subfield.
  • the basic service is the above-mentioned first service
  • the basic service information is the above-mentioned first service information
  • the first service does not belong to the m services corresponding to the service flag subfield
  • the content of the option field can refer to the following Two specific implementation methods.
  • the first service is a basic service
  • the first service information is basic service information
  • the m services corresponding to the service flag subfield include the second service
  • the service flag subfield indicates The option field carries the second service information.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the k services include the second service, so the service flag subfield indicates that the option field carries the first 2.
  • the m flag bits in the service flag subfield include a second flag bit, the second flag bit corresponds to the second service, and the second flag bit indicates that the option field carries the second service information.
  • the second service information may be located after the basic service information.
  • the service information of the k services may be located after the basic service information (that is, the first service information), and the service information of the k services is arranged in order.
  • the option field includes a basic subfield (for example, the first subfield is a basic subfield) and k business subfields corresponding to the k business one-to-one, and the basic subfield carries the basic business information, the k business subfields are arranged in sequence after the basic subfield.
  • the length of the basic subfield is a fixed value, for example, the length of the basic subfield is 8 bits, 16 bits, 32 bits or 64 bits.
  • the length of the basic subfield may be equal to the length of the first k-1 service subfields among the k service subfields, for example, the length of the basic subfield and the length of the first k-1 service subfields are both 32 bits .
  • the length of the basic subfield is variable, and the length of the basic subfield may not be equal to the length of the first k-1 service subfields, which is not limited in this embodiment of the present application.
  • the option field carries basic service information, but the basic service information is not indicated by the service flag subfield.
  • the option field usually must carry basic service information, or in other words, the option field carries basic service information by default.
  • the option field further includes a reserved (reserved) subfield, the reserved subfield is adjacent to the service flag subfield, and the reserved subfield can be used for the service flag subfield Length extension to support extending the business subfield in this option field.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield. Since the service flag subfield corresponds to m services, the option field includes k service subfields that correspond one-to-one to k services in the m services, and the first k-1 service subfields in the k service subfields The lengths of the fields may be the same, and the length of the kth service subfield may be different from the length of the first k-1 service subfields.
  • the lowest bit of the reserved subfield is set to be adjacent to the highest bit of the service flag subfield, which helps to improve the convenience of extending the service subfield.
  • the reserved subfield may also be used for other function extensions, which is not limited in this embodiment of the present application.
  • the option field further includes a type subfield and a length subfield, the type subfield indicates the type of the option field, and the length subfield indicates the length of the option field.
  • the option field can be a type length value (type lenght value, TLV) field, the above k business subfields, length flag subfield (that is, the fourth subfield), business flag subfield, basic subfield and reserved subfield Both belong to the value (value) subfield of the option field.
  • FIG. 14 is a schematic structural diagram of an option field provided by an embodiment of the present application.
  • the option field includes a type subfield, a length subfield, a reserved subfield, a service flag subfield and k service subfields (service subfield 1 to service subfield k).
  • the length of the type subfield, the length of the length subfield, the length of the reserved subfield and the length of the service flag subfield are all 8 bits.
  • the k business subfields are arranged in the order from close to the service flag subfield to far away from the business flag subfield, the length of the first k-1 business subfields in the k business subfields is 32 bits, and the kth business The length of the subfield (that is, the last service subfield) is greater than the length of the first k-1 service subfields, for example, the length of the kth service subfield is 64 bits.
  • FIG. 15 is a schematic structural diagram of another option field provided by the embodiment of the present application.
  • the option field shown in FIG. 15 further includes a length flag subfield (that is, the aforementioned fourth subfield).
  • the length flag subfield indicates the length of the first k-1 service subfields among the k service subfields.
  • the length of the length flag subfield is 2 bits
  • the length of the reserved subfield is 6 bits.
  • FIG. 16 is a schematic structural diagram of another option field provided by the embodiment of the present application. Different from the option field shown in FIG. 14, the option field shown in FIG. 16 also includes a basic subfield. The k business subfields are arranged after the basic subfield in an order from close to the basic subfield to far away from the basic subfield. The basic subfield corresponds to the basic service, and the length of the basic subfield is 32 bits.
  • FIG. 17 is a schematic structural diagram of another option field provided by the embodiment of the present application.
  • the option field shown in FIG. 17 also includes a length flag subfield (that is, the aforementioned fourth subfield) and a basic subfield.
  • the k business subfields are arranged after the basic subfield in an order from close to the basic subfield to far away from the basic subfield.
  • the length flag subfield indicates the length of the first k-1 service subfields in the k service subfields.
  • the length of the length flag subfield is 2 bits
  • the length of the reserved subfield is 6 bits
  • the length of the basic subfield is 32 bits.
  • the service flag subfield corresponds to m services (for example, business 1 to business m), and the service flag subfield indicates that k of the m services are carried in the option field Service information of a service
  • the k service subfields correspond to k services one by one.
  • service subfield 1 corresponds to service S1
  • service subfield 2 corresponds to service S2
  • service subfield 3 corresponds to service S3
  • service subfield k corresponds to service Sk
  • service S1 to service Sk are k in service 1 to service m business.
  • FIG. 18 and FIG. 19 show two structural diagrams of the service flag subfield.
  • the m flag bits include flag bit 1 to flag bit m, and flag bit 1 to flag bit m are in one-to-one correspondence with service 1 to service m.
  • flag 1 to flag m are arranged in order from high to low, and the arrangement order of the k service subfields corresponds to the order of flag 1 to flag m.
  • the flag bit 1 to the flag bit m are arranged in sequence from the low bit to the high bit, and the arrangement order of the k service subfields corresponds to the reverse order of the flag bit 1 to the flag bit m.
  • the first service and the second service may be services S1-
  • the third service may be the service Sk.
  • the first business is business S1
  • the second business is business S2
  • the first subfield corresponding to the first business is business subfield 1
  • the second subfield corresponding to the second business is business subfield 2
  • corresponding to The third subfield of the third service is the service subfield k.
  • the first business is business S2
  • the second business is business S(k-1)
  • the first subfield corresponding to the first business is business subfield 2
  • the second subfield corresponding to the second business is business In subfield k-1
  • the third subfield corresponding to the third service is the service subfield k.
  • the second service may be any one of the services S1-Sk, for example, the first service
  • the second service is service S1
  • the third service may be service Sk
  • the first subfield corresponding to the first service is the basic subfield
  • the second subfield corresponding to the second service is service subfield 1
  • the third subfield of is the business subfield k.
  • the second service is service S(k-1)
  • the third service may be service Sk
  • the first subfield corresponding to the first service is the basic subfield
  • the second subfield corresponding to the second service is the service In subfield k-1
  • the third subfield corresponding to the third service is the service subfield k.
  • the service flag subfield includes m flag bits, and the m flag bits are arranged in sequence as an example for illustration, which does not constitute a limitation on the service flag subfield.
  • the m flag bits can also be arranged in other ways, or the service flag subfield can also correspond to the m services in other ways, and the service flag subfield can also indicate in other ways that the option field carries Service information of the k services.
  • the service flag subfield includes m flag spaces corresponding to the m services one-to-one, at least one flag space in the m flag spaces has a length greater than 1 bit, and the m flag spaces are arranged in sequence,
  • the arrangement order of the m flag spaces corresponds to the arrangement order of the k service subfields (may be corresponding in sequence or in reverse order).
  • the lengths of the m flag spaces are all 2 bits.
  • the length of a part of the flag spaces in the m flag spaces is a bit (for example, 1 bit), and the length of the other part of flag spaces is b bits (for example, 2 bits).
  • the lengths of the m flag spaces are different (for example, the lengths of the m flag spaces increase sequentially). This embodiment of the present application does not limit it.
  • the length of a part of the flag spaces in the m flag spaces is a bit (such as 1 bit)
  • the length of the other part of the flag spaces is b bits (such as 2 bits)
  • the length of the flag space of a bit is the same as the length of
  • the b-bit flag spaces are arranged at intervals, and the m flag spaces correspond to the k service subfields (may be corresponding in sequence or in reverse order).
  • the k services corresponding to the k service subfields include slicing service, APN service and IFIT service, the service subfield corresponding to the slicing service, the service subfield corresponding to the APN service and the service subfield corresponding to the IFIT service Arranged in order.
  • m k
  • the length of the flag space corresponding to the slice service and the length of the flag space corresponding to the IFIT service are both a bits
  • the length of the flag space corresponding to the APN service is b bits
  • the length of the flag space corresponding to the slice service Both the length of the flag space and the length of the flag space corresponding to the IFIT service are b bits, and the length of the flag space corresponding to the APN service is a bit.
  • the length of the flag space corresponding to the slice service, the length of the flag space corresponding to the APN service, and the length of the flag space corresponding to the IFIT service are all a bits; or, the flag space corresponding to the slice service
  • the length of the flag space corresponding to the APN service and the length of the flag space corresponding to the IFIT service are all b bits; or, the lengths of the flag spaces corresponding to the two services in the slice service, the APN service, and the IFIT service are all a bits
  • the length of the flag space corresponding to the other service is b bits; or, the length of the flag space corresponding to the two services in the slice service, the APN service and the IFIT service is both b bits, and the length of the flag space corresponding to the other service is a bit.
  • the lengths of the m flag spaces are different (for example, the lengths of the m flag spaces increase sequentially), and the m flag spaces are arranged in descending order of length, or, according to the order of length from small to large Arranged sequentially, the m flag spaces correspond to the k service subfields (may be in sequential or reverse order).
  • the k services corresponding to the k service subfields include slice service, APN service, and IFIT service, and the service subfield corresponding to the slice service, the service subfield corresponding to the APN service, and the service subfield corresponding to the IFIT service are arranged in sequence.
  • the length of the flag space corresponding to the slice service is a bit
  • the length of the flag space corresponding to the APN service is b bits
  • the length of the flag space corresponding to the IFIT service is c bits, a, b, c in turn increase, or a, b, c decrease in turn.
  • the service flag subfield indicates which service information is carried in the option field through the value of the service flag subfield.
  • the value of the service flag subfield is the first value (which may be a binary value or a binary sequence), and the service flag subfield indicates that the option field carries business information of business 1, business 2 and business 3; or
  • the value of the service flag subfield is the second value (which may be a binary value or a binary sequence), and the service flag subfield indicates that the option field carries business information of business 4, business 5 and business 6; or
  • the value of the service flag subfield is the third value (which may be a binary value or a binary sequence), and the service flag subfield indicates that the option field carries service information of service 1, service 3 and service 4, etc.
  • the first service may include any one of the slicing service, the flow detection service, the APN service, and the DetNet service.
  • the second service may include any one of slice service, flow detection service, APN service and DetNet service.
  • the third service may include any one of slice service, flow detection service, APN service and DetNet service.
  • the first business, the second business, and the third business are different from each other.
  • the first service is a slicing service
  • the second service is an APN service
  • the third service is a flow detection service.
  • the streaming detection service includes an IFIT service or an IOAM service, and may also be other streaming detection services, which are not limited in this embodiment of the present application.
  • the business information of any business may include 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 , may also include other information related to the business, which is not limited in this embodiment of the application.
  • the service information of the slicing service includes the slice identifier; the service information of the follow-the-flow detection service includes the flow identifier; the service information of the APN service includes the APN attribute, and the APN attribute includes the APN ID and APN parameters, and the APN ID includes the user group identifier and the application At least one of group identifiers, the APN parameters include at least one of bandwidth requirement parameters, delay requirement parameters, packet loss rate requirement parameters, and jitter requirement parameters; the service information of the DetNet service includes path identifiers.
  • Network device A sends message A to network device B.
  • network device B is the next-hop device of network device A, and network device A searches the routing table of network device A according to the destination address of message A, so as to determine the corresponding address of message A in network device A.
  • the outbound port, network device A sends the message A to the network device B through the outbound port corresponding to the 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.
  • the network device A is the network device 102
  • the network device B is the network device 103
  • the network device 102 sends the message A to the network device 103 through the egress port corresponding to the message A.
  • the network device B is not the next-hop device of the network device A, the network device B is connected to the network device A through other network devices, and the network device A sends the message A to the 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
  • the message is forwarded to the network device 102, and the network device 102 forwards the packet A to the 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 the network Device 103 forwards packet A to network device 104 .
  • the network device B receives the packet A.
  • network device B receives packet A.
  • the network device B processes the message A according to the first service information carried in the option field of the message A.
  • network device B may be an intermediate node or an end node on the forwarding path of message A.
  • the option field may be located in the HBH, the first DOH or the second DOH of the message A. 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 the first DOH, 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 the second DOH, 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 packet A, network device B processes packet A according to the option field. If the option field is located in the first DOH of message A, network device B judges whether network device B hits the destination address of message A, and if network device B hits the destination address of message A, network device B field to process packet A, if network device B does not match the destination address of packet A, network device B will not process packet A according to the option field. If the option field is located in the second DOH of message A, network device B does not process message A according to the option field.
  • network device B is a tail node. If the option field is located in the HBH of packet A, network device B processes packet A according to the option field. If the option field is located in the first DOH of message A, network device B judges whether network device B hits the destination address of message A, and if network device B hits the destination address of message A, network device B field to process packet A, if network device B does not match the destination address of packet A, network device B will not process packet A according to the option field. If the option field is located in the second DOH of message A, network device B processes message A according to the option field. In a specific implementation manner, the network device B serving as the tail node may also remove the option field in the packet A, which is not limited in this embodiment of the present application.
  • the network device B processes the message A according to the option field as an example for illustration.
  • the option field can carry the service information of k services, and the service information of the k services can be arranged in sequence.
  • Information processing message A For example, the k services include the first service and the second service, the first service information corresponding to the first service and the second service information corresponding to the second service are arranged in sequence, and network device B The order in which the first service information and the second service information are arranged, the message A is processed sequentially according to the first service information and the second service information.
  • the network device B may support all of the k services, or may not support at least one of the k services.
  • the network device B In the process of processing the message A according to the option field, the network device B, If network device B supports a certain service, network device B processes message A according to the service information of the service included in message A; if network device B does not support a certain service, network device B skips the information contained in message A Business information for the business.
  • the option field includes a service flag field and k service subfields corresponding to the k services one-to-one.
  • network device B For any service (such as service S1) in the k services, network device B Determine the service subfield (for example, service subfield 1) corresponding to the service S1; if the network device B supports service S1, the network device obtains the service information of the service S1 from the service subfield 1 included in the message A, according to the service S1 The service information processing message A; if the network device B does not support the service S1, the network device skips the service subfield 1 included in the message A, thereby skipping the service information of the service S1.
  • service subfield for example, service subfield 1
  • network device B supports the first service as an example.
  • Network device B processes message A according to the first service information carried in the option field (that is, the service information of the first service).
  • network device B first obtains the first service information from the first subfield in the option field, and then processes message A according to the first service information and local configuration information associated with the first service.
  • the local configuration information associated with the first service may include program instructions associated with the first service in network device B, and may also include other configuration information associated with the first service in network device B.
  • the program instruction includes at least one processing action (action), and the at least one processing action may include, for example, a statistical action, a detection action, a forwarding action, and the like.
  • the processing of message A by network device B according to the first service information and the local configuration information associated with the first service may include: Determine the program instruction associated with the first service, and then execute the program instruction to process message A.
  • the first service is a slice service
  • the local configuration information associated with the first service in network device B may include resource configuration information associated with the slice service in network device B, resource configuration information associated with the slice service in network device B, Associated program instructions, etc.
  • the resource configuration information associated with the slice service in network device B may include the slice identifier of the slice service, the slice interface carrying the slice service in network device B, the slice identifier of the slice service and the Correspondence between business slice interfaces, etc.
  • the program instructions associated with the slice service in network device B may include the slice identifier of the slice service and the processing actions associated with the slice service in network device B, for example, the processing actions associated with the slice service in network device B include forwarding actions And the slice interface corresponding to the forwarding action, etc.
  • the first service is a slice service
  • the first service information is a slice identifier
  • network device B processes message A according to the first service information included in message A and the local configuration information associated with the first service, including: network device B Determine the program instruction associated with the slice service from network device B according to the slice identifier included in message A, and then execute the processing actions included in the program instruction to process message A.
  • network device B can pass the slice service
  • the associated slice interface sends the packet A to the next-hop device of the network device B.
  • the first service is a flow detection service
  • the local configuration information associated with the first service in the network device B includes program instructions in the network device B associated with the flow detection service.
  • the program instructions associated with the flow detection service in network device B may include the flow identification of the flow detection service and processing actions associated with the flow detection service in network device B, such as statistical actions, detection actions, etc.
  • the statistical action may specifically include what content to count. For example, count the receiving timestamp of the packet received by network device B for the flow detection service, count the sending timestamp of the packet sent by network device B for the flow detection service, and count the packets of the flow detection service serial number, and count the transmission delay of the packet of the flow detection service in the network device B, etc.
  • the streaming detection service may include an IFIT service or an IOAM service.
  • the first service is an IFIT service
  • the first service information is a flow identifier
  • the network device B processes the message A according to the first service information included in the message A and the local configuration information associated with the first service, including: the network device B determines the program instruction associated with the IFIT service from network device B according to the flow identifier included in the message A, and then executes the processing action included in the program instruction to process the message A.
  • network device B executes the processing actions included in the program instructions to count the receiving timestamp of packet A received by network device B, the sending timestamp of packet A sent by network device B, and the packet count of packet A.
  • the network device B can also report the transmission quality information and the flow identifier to the controller, so that the controller determines the transmission quality of the IFIT service according to the transmission quality information of the IFIT service sent by multiple network devices.
  • the first service is an IOAM service
  • the first service information is a flow identifier
  • network device B processes message A according to the first service information included in message A and the local configuration information associated with the first service, including: network Device B determines the program instruction associated with the IOAM service from network device B according to the flow identifier included in message A, and then executes the processing actions included in the program instruction to process message A.
  • network device B performs detection processing such as service-level agreement (service-level agreement, SLA) detection and path verification according to message A by executing the processing actions included in the program instruction, which may specifically include network device B in message A Add the receiving timestamp of message A received by network device B, the sending timestamp of message A sent by network device B, the transmission delay of message A in network device B, and the metadata (MD) of network device B wait.
  • the MD of network device B may include the identifier of network device B.
  • Network device B can also perform, for example, SLA quality determination, path verification, etc. according to the detection information carried in packet A (such as the identifier of the network device).
  • the first service is an APN service
  • the local configuration information associated with the first service in network device B may include resource configuration information associated with the APN service in network device B, and the resource configuration information associated with the APN service in network device B.
  • the resource configuration information associated with the APN service in the network device B may include the forwarding interface allocated by the network device B for the APN service, the bandwidth allocated by the network device B for the APN service, etc. to ensure the bandwidth and delay of the APN service , jitter, packet loss rate and other requirements.
  • the program instructions associated with the APN service in network device B may include APN attributes of the APN service and processing actions associated with the APN service in network device B, such as forwarding actions and forwarding interfaces corresponding to the forwarding actions.
  • the first service is an APN service
  • the first service information includes APN attributes
  • the APN attributes include APN ID and APN parameters, etc.
  • the APN ID includes user group identifiers and application group identifiers
  • the APN parameters include bandwidth requirement parameters, time At least one of the delay requirement parameter, the jitter requirement parameter and the packet loss rate requirement parameter
  • the network device B processes the message A according to the first service information included in the message A and the local configuration information associated with the first service, including: the network device B According to the APN attribute included in the message A, the program instruction related to the APN service is determined from the network device B, and then the processing actions included in the program instruction are executed to process the message A. For example, network device B sends the message A to the next-hop device of network device B through the
  • the first service is a DetNet service
  • the local configuration information associated with the first service in network device B includes resource configuration information associated with the DetNet service in network device B, resource configuration information associated with the DetNet service in network device B Associated program instructions, etc.
  • the resource configuration information associated with the DetNet service in network device B 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 bandwidth of the interface corresponding to the forwarding path, the rate of the interface corresponding to the forwarding path, and the like.
  • the program instructions associated with the DetNet service in network device B may include the path identifier of the DetNet service and processing actions associated with the DetNet service in network device B, such as forwarding actions and forwarding interfaces corresponding to the forwarding actions.
  • the first service is a DetNet service
  • the first service information is a path identifier
  • network device B processes message A according to the first service information included in message A and the local configuration information associated with the first service, including: network device B Determine the program instruction associated with the DetNet service from the network device B according to the path identifier included in the message A, and then execute the processing action included in the program instruction to process the message A.
  • network device B determines in network device B the path resource of the forwarding path indicated by the path identifier (for example, the interface corresponding to the forwarding path in network device B) according to the path identifier, and network device B sends information to the network device through the path resource.
  • the next-hop device of B sends the message A.
  • the above descriptions about the first service information, the local configuration information associated with the first service, and the processing of packet A by network device B according to the first service information and the local configuration information associated with the first service are only exemplary and cannot be used to limit The technical scheme of the present application. According to the difference in the first service information and the difference in the local configuration information associated with the first service, the processing performed by the network device B according to the first service information is different. Moreover, in addition to processing packet A according to the service information carried in the option field of packet A, network device B may also process packet A according to other information carried in packet A, which may be carried in the In the option field, it may also be outside the option field, which is not limited in this embodiment of the present application.
  • the first service when the first service information includes a path identifier, the first service may be a path-oriented service, such as a path-oriented OAM service, a path-oriented visualization service, a path-oriented traffic statistics service, a path-oriented Path performance measurement service, etc.
  • the first service information when the first service information includes a flow identifier, the first service may be a flow-oriented service, such as a flow-oriented OAM service, a flow-oriented visualization service, a flow-oriented traffic statistics service, and a flow-oriented performance measurement service.
  • the first service may be a service oriented to network slicing, such as an OAM service oriented to network slicing, a visualization service oriented to network slicing, a traffic statistics service oriented to network slicing, and performance measurement oriented to network slicing business etc.
  • the first service information includes the user group identifier
  • the first service may be a user group-oriented service, such as a user group-oriented OAM service, a user group-oriented visualization service, a user group-oriented traffic statistics service, and a user group-oriented performance Measurement business, etc.
  • the first service may be an application group-oriented service, such as an application group-oriented OAM service, an application group-oriented visualization service, an application group-oriented traffic statistics service, and an application group-oriented performance Measurement business, etc.
  • an application group-oriented service such as an application group-oriented OAM service, an application group-oriented visualization service, an application group-oriented traffic statistics service, and an application group-oriented performance Measurement business, etc.
  • the local configuration information associated with the first service in different network devices may be the same or different. That is to say, for the same first service information carried in message A, the processing behaviors of the first service association 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 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 some 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 this embodiment of the present application.
  • the first service is an IFIT service
  • the first service information included in the message is a flow identifier.
  • the program instructions associated with the IFIT service in the network device 101 may include: the flow of the IFIT service Identify and count the sending timestamp of the message sent by the network device 101 for the IFIT service.
  • the program instructions associated with the IFIT service in the network device 102 may include: the flow identifier of the IFIT service and the receiving time stamp of the message received by the statistical network device 102 of the IFIT service, and the message of the IFIT service sent by the statistical network device 102 The sending timestamp of .
  • the program instructions associated with the IFIT service in the network device 103 may include: the flow identifier of the IFIT service and the packet sequence numbers of the packets of the IFIT service.
  • the program instructions associated with the IFIT service in the network device 104 may include: the flow identifier of the IFIT service and statistics on the transmission delay of packets of the IFIT service in the network device 104 .
  • the program instructions associated with the IFIT service in the network device 105 may include: the flow identifier of the IFIT service and report the transmission quality information of the IFIT service to the controller, and the transmission quality information includes, for example: the forwarding path of the message of the IFIT service The sending timestamp of the packet by one or several network devices on the Internet, the receiving timestamp of the packet by one or several network devices, and the time stamp of the message in one or several network devices transmission delay, etc.
  • the first service information (such as the flow identifier of the IFIT service) included in the above-mentioned program instructions associated with the first service is used by the network device to determine the local configuration information associated with the first service according to the first service information included in the message.
  • the embodiment of the present application is described by taking the option field included in the message A as an example. If message A does not include the option field, network device B does not perform processing based on the option field on message A, and network device B may forward message A in a conventional forwarding manner.
  • packet A is an IPv6 packet and does not include the option field, and network device B forwards packet A in a conventional IPv6 forwarding manner, which is not limited in this embodiment of the present application.
  • the business processing method provided by the embodiment of the present application can save some fixed content in the option field and some
  • the overhead brought by the optional subfield helps to reduce the packet overhead, thereby simplifying the complexity of packet processing by network devices and improving the forwarding performance of network devices.
  • the lengths of the first k-1 service subfields in the k service subfields in the option field are equal, when the network device does not support a certain service, it can directly Length, skip the service subfield corresponding to the service, the message parsing logic of the network device is clear, and the chip processing performance is good.
  • network device B supports the first service and the second service.
  • network device B may also process packet A according to the second service information carried in the option field of packet A.
  • the business processing method in the embodiment of the present application further includes the following step S305a.
  • the network device B processes the message A according to the second service information carried in the option field of the message A.
  • network device B supports the first service but does not support the second service.
  • network device B may also skip the second service information carried in the option field of packet A.
  • the business processing method in the embodiment of the present application further includes the following step S305b.
  • the network device B skips the second service information carried in the option field of the packet A.
  • network device B does not process packet A according to the second service information.
  • the second service information corresponds to the second service
  • the second service information is carried in the second subfield (that is, the service subfield corresponding to the second service).
  • the network device B may determine the second subfield according to the service flag field in the option field, and the network device B skips the second subfield, thereby skipping the second service information.
  • the network device A may also process the message A according to the option field in the message A.
  • network device A supports the first service and the second service, and network device A processes packet A according to the first service information and the second service information carried in the option field.
  • network device A supports the first service but does not support the second service, network device A processes packet A according to the first service information carried in the option field, and network device A skips the second service information.
  • network device A supports the second service but does not support the first service, network device A processes packet A according to the second service information carried in the option field, and network device A skips the first service information.
  • process of network device A processing packet A according to the option field reference may be made to the process of network device B processing packet A according to the option field, which will not be repeated in this embodiment of the present application.
  • the network device A generates the message A including the option field under the instruction of the controller.
  • the controller may be the controller 100 shown in FIG. 11 or FIG. 12 .
  • FIG. 22 shows a flowchart of another business processing method provided by the embodiment of the present application. The method includes the following steps S2201 to S2206.
  • the controller sends instruction information to network device A, the instruction information is used to instruct network device A to generate a message including an option field, the option field carries first service information and second service information, and the first service information corresponds to The first service and the second service information correspond to the second service, and the first service is different from the second service.
  • 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 (border gateway protocol, BGP) message, a network configuration protocol (network configuration protocol, NETCONF) message or other private protocol messages.
  • border gateway protocol border gateway protocol, BGP
  • network configuration protocol network configuration protocol, NETCONF
  • the instruction information includes configuration information of the option field, so as to instruct network device A to generate a message including the option field.
  • the indication information includes the option field, so as to instruct network device A to generate a message including the option field.
  • the indication information is the identifier of the option field or the name of the option field, etc.
  • the network device A includes the configuration information of the option field, and the indication information indicates that the network device A according to the configuration information of the option field in the network device A Generate a message including this option field.
  • the indication information is the identifier of the option field or the name of the option field, etc.
  • the network device A includes the option field, and the indication information instructs the network device A to generate the option field including the option field according to the option field in the network device A. message.
  • the configuration information of the option field may include the information carried by the option field and the structure information of the option field, for example, the information carried by the option field includes first service information, second service information, etc., and the structure information of the option field Including the position of the first business information in the option field (such as the position of the first subfield in the option field), the position of the second business information in the option field (such as the position of the second subfield in the option field) location), etc., which are not limited in this embodiment of the present application.
  • Network device A receives the indication information sent by the controller.
  • network device A receives a BGP message, a NETCONF message or other proprietary protocol messages sent by the controller and carries the indication information, and obtains the indication information from the received message.
  • Network device A generates packet A including the option field according to the indication 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
  • the network device A determines the option field from the indication information, and then generates the message A including the option field.
  • the indication information is the identifier of the option field or the name of the option field, etc.
  • network device A determines the configuration information of the option field in network device A according to the indication information, and according to the configuration information of the option field The configuration information generates the option field, and then generates packet A including the option field.
  • the indication information is the identifier of the option field or the name of the option field, etc.
  • network device A determines the option field in network device A according to the indication information, and then generates a report including the option field. Wen A.
  • Network device A sends packet A to network device B.
  • Network device B receives packet A.
  • Network device B processes message A according to the first service information carried in the option field of message A.
  • FIG. 20 The above-mentioned embodiment shown in FIG. 20 is illustrated by taking network device A generating message A including the option field according to the instruction of the controller as an example.
  • the option field may be statically configured in network device A, and then Network device A may generate a message including the option field, which is not limited in this embodiment of the present application.
  • each network device on the forwarding path of message A can process message A, and at least one network device on the forwarding path of message A can field processing message A.
  • the forwarding path of message A is the forwarding path P in Figure 11 or Figure 12 (the forwarding path P is: network device 101—>network device 102—>network device 103—>network device 104—>network device 105—> The network device 106), the network devices 101-106 can all process the message A, and at least one of the network devices 101-106 processes the message A according to the option field in the message A.
  • the service information of which services are carried in the option field is determined through the service flag field in the option field.
  • the flag i in the service flag field corresponds to service i
  • the network device judges whether the option field carries the service i according to whether the flag i is set (that is, whether the value in the flag i is 1). business information.
  • the process of processing the message A by the network device on the forwarding path of the message A is introduced below by taking the network device 102 processing the message A as an example.
  • FIG. 23 shows a flow chart of processing packet A by the network device 102 provided by the embodiment of the present application.
  • the process includes the following steps S2301 to S2309.
  • the network device 102 determines whether the IPv6 extension header of packet A includes the option field. If yes, execute S2302 to S2308; if not, execute S2309.
  • the network device 102 After receiving the packet A, the network device 102 starts to process the packet A. The network device 102 first determines whether the IPv6 extension header of packet A includes the option field.
  • the IPv6 extension header includes, for example, HBH or DOH.
  • the option field includes a service flag subfield, and the service flag subfield includes m flag bits, the m flag bits correspond to m services one by one, and the value in each flag bit is used to indicate the value in the option field Whether to carry the service information of the service corresponding to the flag bit.
  • the function of processing the option field can be enabled on the network device 102 in advance, so that the network device 102 can execute the step S2301 after receiving the message A.
  • the network device 102 judges whether the ith flag bit in the service flag subfield included in the option field is set. If yes, execute S2304 to S2307; if not, execute S2308.
  • the network device 102 can determine whether the value in the i-th flag bit is 1. If the value of the i-th flag is 1, the network device 102 determines that the i-th flag is set. If the value of the i-th flag is 0, the network device 102 determines that the i-th flag is not set.
  • a certain flag in the service flag subfield it means that the option field carries the service information of the service corresponding to the flag; if a certain flag in the service flag subfield If the bit is not set, it means that the option field does not carry the service information of the service corresponding to the flag bit.
  • the network device 102 determines that the i-th flag is set, the network device 102 determines that the option field carries the service information corresponding to the i-th flag (such as service i), and the network device 102 executes S2304 to S2307 . If the network device 102 determines that the i-th flag is not set, the network device 102 determines that the option field does not carry the service information of the service corresponding to the i-th flag, and the network device 102 executes S2308.
  • the network device 102 judges whether the network device 102 supports the service i. If yes, execute S2305 to S2307; if not, execute S2308.
  • Service i refers to the service corresponding to the i-th flag bit. If the network device 102 does not support the service i, the network device 102 skips the service information of the service i, and the network device 102 executes S2308.
  • the network device 102 processes the packet A according to the service information of the service i carried in the option field.
  • the option field includes a service subfield corresponding to service i
  • the network device 102 acquires service information of service i from the service subfield corresponding to service i, and processes message A according to the service information of service i.
  • S304 For the process of the network device 102 processing the packet A according to the service information of the service i, reference may be made to S304, which will not be repeated here.
  • the network device 102 judges whether i is equal to m. If yes; execute S2307; if no: execute S2308.
  • Network device 102 may compare i and m to determine whether i is equal to m. If i is equal to m, it means that the i-th flag is the last flag in the service flag subfield, and after the processing of S2305, the network device 102 has processed message A according to the service information of the service corresponding to the last flag, and the network The device 102 ends the process of processing packet A according to the option field, and executes S2307. If i is less than m, it means that the i-th flag is not the last flag in the service flag subfield, and the option field may also carry unprocessed service information, so the network device 102 executes S2308.
  • the option field carries a slice identifier
  • the network device 102 determines a slice interface in the network device 102 according to the slice identifier, and forwards the packet A through the slice interface.
  • the option field carries a path identifier
  • the network device 102 determines in the network device 102 a path resource (such as an interface) of the forwarding path indicated by the path identifier according to the path identifier, and forwards the message A through the path resource.
  • the network device 102 determines that the i-th flag is not set; or, in S2304, the network device 102 determines that the network device 102 does not support service i; or, in S2306, the network device 102 determines that i is not equal to m; the network device 102 Execute S2308, and start to execute S2303 to S2307 based on i+1.
  • the network device 102 forwards the packet A in a conventional IPv6 forwarding manner.
  • FIG. 24 shows a schematic diagram of a service processing method provided by an embodiment of the present application.
  • Figure 24 shows that during the transmission of the message 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 processing of the packet by the network device on the forwarding path P is described as an example.
  • the message includes a payload (payload), an IPv6 header, an HBH, and a media access control (media access control, MAC) header (may also include other content, which will not be described here).
  • the HBH includes an option field.
  • FIG. 25 is a schematic diagram of an option field in the message shown in FIG. 24 .
  • the option field includes a type subfield, a length subfield, a reserved subfield, a service flag subfield and four service subfields.
  • the value in the service flag subfield is 00100111, and the service flag subfield includes 8 flag bits.
  • the service corresponding to the third flag arranged from high to low is slice service
  • the service corresponding to the sixth flag is APN service
  • the seventh flag The corresponding service is the DetNet service
  • the service corresponding to the eighth flag bit is the IFIT service.
  • the service corresponding to the first flag arranged from low to high is slice service
  • the service corresponding to the second flag is APN service
  • the third flag The service corresponding to the bit is the DetNet service
  • the service corresponding to the sixth flag is the IFIT service.
  • the first service subfield corresponds to slice service
  • the second service subfield corresponds to APN service
  • the third service subfield corresponds to DetNet service
  • the fourth service subfield corresponds to IFIT service.
  • the service information of the slice service (for example, information 1) is located in the first service subfield
  • the service information of the APN service (for example, information 2) is located in the second service subfield
  • the service information of the DetNet service (for example, information 3 ) is located in the third service subfield
  • the service information (such as information 4) of the IFIT service is located in the fourth service subfield.
  • the network equipment 101 as head node at first generates the message that comprises the option field shown in Fig. 25, then processes this message according to this option field. Specifically, the network device 101 determines the service information (information 1) of the slice service, the service information of the APN service (information 2), and the service information of the DetNet service (information 3) in the option field according to the value in the service flag subfield. and the service information of the IFIT service (information 4), and determine that the service information of the slice service is located in the first service subfield, the service information of the APN service is located in the second service subfield, and the service information of the DetNet service is located in the third In the service subfield, the service information of the IFIT service is located in the fourth service subfield.
  • the network device 101 traverses the four service subfields according to the arrangement order of the four service subfields, and sequentially processes the message according to the service information carried in the four service subfields. First, the network device 101 traverses to the first service subfield; if the network device 101 supports slicing service, the network device 101 processes the message according to the information 1 carried in the first service subfield; if the network device 101 does not support the slicing service , the network device 101 skips the first service subfield.
  • the network device 101 traverses to the second service subfield; if the network device 101 supports the APN service, the network device 101 processes the message according to the information 2 carried in the second service subfield; if the network device 101 does not support the APN service , the network device 101 skips the second service subfield.
  • the network device 101 traverses to the third service subfield; if the network device 101 supports the DetNet service, the network device 101 processes the message according to the information 3 carried in the third service subfield; if the network device 101 does not support the DetNet service , the network device 101 skips the third service subfield.
  • the network device 101 traverses to the fourth service subfield; if the network device 101 supports the IFIT service, the network device 101 processes the message according to the information 4 carried in the fourth service subfield; if the network device 101 does not support the IFIT service , the network device 101 skips the fourth service subfield, for example, the network device 101 skips the option field.
  • the network device 101 After processing the message, the network device 101 obtains a message 1, the message 1 includes the HBH, and the HBH includes the option field as shown in FIG. 25 .
  • Network device 101 may send packet 1 to network device 102 . Since the option field is located in the HBH, after the network device 102 receives the message 1, the network device 102 processes the message 1 according to the option field.
  • the network device 102 obtains a message 2 after processing the message 1, and the message 2 includes an HBH, and the HBH includes an option field as shown in FIG. 25 .
  • Network device 102 may send packet 2 to network device 103 . Since the option field is located in the HBH, after the network device 103 receives the message 2, the network device 103 processes the message 2 according to the option field.
  • the network device 103 obtains a message 3 after processing the message 2, and the message 3 includes an HBH, and the HBH includes an option field as shown in FIG. 25 .
  • Network device 103 may send packet 3 to network device 104 . Since the option field is located in the HBH, after the network device 104 receives the packet 3, the network device 104 processes the packet 3 according to the option field.
  • the network device 104 obtains a message 4 after processing the message 3, and the message 4 includes an HBH, and the HBH includes an option field as shown in FIG. 25 .
  • Network device 104 may send packet 4 to network device 105 . Since the option field is located in the HBH, after the network device 105 receives the message 4, the network device 105 processes the message 4 according to the option field.
  • the network device 105 obtains a message 5 after processing the message 4, and the message 5 includes an HBH, and the HBH includes an option field as shown in FIG. 25 .
  • the network device 105 may send the packet 5 to the network device 106 . Since the option field is located in the HBH, after the network device 106 receives the message 5, the network device 106 processes the message 5 according to the option field.
  • the process of the network device 102 to the network device 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, and will not be repeated here.
  • the network device 106 as the tail node may also remove the option field in the packet 5, which is not limited in this embodiment of the present application.
  • FIG. 26 shows a schematic structural diagram of a service processing device 2600 provided by an embodiment of the present application.
  • the service processing apparatus 2600 is applied to network equipment.
  • the service processing apparatus 2600 is a network device or a functional component in the network device.
  • the network device is the network device B in the foregoing method embodiments.
  • a service processing device 2600 includes a transceiver module 2610 and a processing module 2620 .
  • the transceiver module 2610 is configured to receive a message including an option field, the option field carries first service information and second service information, the first service information corresponds to the first service, the second service information corresponds to the second service, and the first service information corresponds to the second service.
  • the business is different from the second business.
  • the transceiver module 2610 reference may be made to the relevant description in S303 or S2205 above.
  • the processing module 2620 is configured to process the message according to the first service information.
  • the processing module 2620 reference may be made to the relevant descriptions in S304 or S2206 above.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information.
  • the length of the first subfield is the same as that of the second subfield.
  • the option field further includes a third subfield, the third subfield carries third service information, the third service information corresponds to the third service, and the first service, the second service, and the third service interact Not the same; the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the first subfield and the length of the second subfield are both 2n bits, and n is an integer greater than or equal to 3.
  • the option field further includes a fourth subfield, and the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service flag subfield
  • the business flag subfield corresponds to m services
  • the m businesses are different from each other
  • the m services include the first business and the second business
  • the business flag The subfield indicates that the option field carries the first service information and the second service information
  • m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to m services one by one; the first flag bit in the m flag bits corresponds to the first business, and the second flag bit Corresponding to the second service, the first flag bit indicates that the option field carries the first service information, and the second flag bit indicates that the option field carries the second service information.
  • the first flag and the second flag are arranged in order, the first business information and the second business information are arranged in sequence, and the arrangement order of the first business information and the second business information is the same as that of the first flag. Corresponds to the arrangement order of the second flag bit.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m services
  • the m services are different from each other
  • the m services include the second service
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic business information in the option field is a basic subfield
  • the option field includes k business subfields corresponding to the k business one-to-one, and the k business subfields are located in the after the underlying subfield.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield, and the reserved subfield is adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field further includes a type subfield and a length subfield, the type subfield indicates the type of the option field, and the length subfield indicates the length of the option field.
  • the message is an IPv6 message, and the message includes an IPv6 extension header, and 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 slice service, flow detection service, APN service and DetNet service; or, the second service includes any one of slice service, flow detection service, APN service and DetNet service one.
  • the flow detection service may include IFIT service or IOAM service.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • the network device supports the first service and the second service
  • the processing module 2620 is further configured to process the message according to the second service information.
  • the processing module 2620 reference may also be made to the relevant description in S305a.
  • the network device supports the first service but does not support the second service
  • the processing module 2620 is further configured to skip the second service information.
  • the processing module 2620 For the function implementation of the processing module 2620, reference may also be made to the relevant description in S305b.
  • the processing module 2620 is specifically configured to process the packet according to the first service information and the local configuration information associated with the first service.
  • the processing module 2620 For the function implementation of the processing module 2620, reference may also be made to the relevant description in S304 above.
  • the first service information and the second service information are arranged in sequence, and the processing module 2620 is specifically configured to process the message according to the order in which the first service information and the second service information are arranged.
  • the service processing device provided by the embodiment of the present application can save some fixed content in the option field and some
  • the overhead brought by the optional subfield helps to reduce the packet overhead, thereby simplifying the complexity of packet processing by network devices and improving the forwarding performance of network devices.
  • FIG. 27 shows a schematic structural diagram of another service processing device 2700 provided by the embodiment of the present application.
  • the service processing apparatus 2700 is applied to network equipment.
  • the service processing apparatus 2700 is a network device or a functional component in the network device.
  • the network device is the network device A in the foregoing method embodiments.
  • a service processing device 2700 includes a processing module 2710 and a transceiver module 2720 .
  • the processing module 2710 is configured to generate a message including an option field, the option field carries first service information and second service information, the first service information corresponds to the first service, the second service information corresponds to the second service, and the first service information corresponds to the second service.
  • the business is different from the second business.
  • the processing module 2710 reference may be made to the relevant descriptions in S301 or S2203 above.
  • the transceiver module 2720 is configured to send the message.
  • the function of the transceiver module 2720 reference may be made to the relevant description in the above S302 or S2204.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information.
  • the length of the first subfield is the same as that of the second subfield.
  • the option field further includes a third subfield, the third subfield carries third service information, the third service information corresponds to the third service, and the first service, the second service, and the third service interact Not the same; the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the first subfield and the length of the second subfield are both 2n bits, and n is an integer greater than or equal to 3.
  • the option field further includes a fourth subfield, and the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service flag subfield
  • the business flag subfield corresponds to m services
  • the m businesses are different from each other
  • the m services include the first business and the second business
  • the business flag The subfield indicates that the option field carries the first service information and the second service information
  • m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to m services one by one; the first flag bit in the m flag bits corresponds to the first business, and the second flag bit Corresponding to the second service, the first flag bit indicates that the option field carries the first service information, and the second flag bit indicates that the option field carries the second service information.
  • the first flag and the second flag are arranged in order, the first business information and the second business information are arranged in sequence, and the arrangement order of the first business information and the second business information is the same as that of the first flag. Corresponds to the arrangement order of the second flag bit.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m services
  • the m services are different from each other
  • the m services include the second service
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying basic business information in the option field is the basic subfield
  • the option field includes k business subfields corresponding to k business one-to-one, and the k business subfields are located in the basic subfield after.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield, and the reserved subfield is adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field includes a type subfield and a length subfield
  • the type subfield indicates the type of the option field
  • the length subfield indicates the length of the option field
  • 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 slice service, flow detection service, APN service and DetNet service; or, the second service includes any one of slice service, flow detection service, APN service and DetNet service one.
  • the flow detection service may include IFIT service or IOAM service.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • the network device supports the first service
  • the processing module 2710 is further configured to process the message according to the first service information.
  • the network device also supports the second service
  • the processing module 2710 is further configured to process the message according to the second service information.
  • the network device does not support the second service
  • the processing module 2710 is further configured to skip the second service information.
  • the processing module 2710 is specifically configured to process the packet according to the first service information and local configuration information associated with the first service.
  • the first service information and the second service information are arranged in sequence, and the processing module 2710 is specifically configured to process the message according to the order in which the first service information and the second service information are arranged.
  • the transceiver module 2720 is further 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 instruction information is used to instruct the network device to generate a message including the option field.
  • the processing module 2710 is specifically configured to generate a message including the option field according to the indication information.
  • the service processing device provided by the embodiment of the present application can save some fixed content in the option field and some
  • the overhead brought by the optional subfield helps to reduce the packet overhead, thereby simplifying the complexity of packet processing by network devices and improving the forwarding performance of network devices.
  • FIG. 28 shows a schematic structural diagram of another service processing device 2800 provided by the embodiment of the present application.
  • the service processing device 2800 is applied to a controller.
  • the service processing device 2800 is a controller or a functional component in the controller.
  • a service processing device 2800 includes a transceiver module 2810 .
  • the transceiver module 2810 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 carries first business information and second business information, and the first business information corresponds to The first service and the second service information correspond to the second service, and the first service is different from the second service.
  • the function implementation of the transceiver module 2810 may be described in the above S2201.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information.
  • the length of the first subfield is the same as the length of the second subfield.
  • the option field also includes a third subfield, the third subfield carries third service information, the third service information corresponds to the third service, and the first service, the second service and the third service are different from each other ;
  • the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the third subfield is shorter than the length of the first subfield.
  • the length of the third subfield is equal to the length of the first subfield.
  • both the length of the first subfield and the length of the second subfield are 2n bits, and n is an integer greater than or equal to 3.
  • the option field further includes a fourth subfield, where the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service flag subfield
  • the business flag subfield corresponds to m services
  • the m businesses are different from each other
  • the m services include the first business and the second business
  • the service flag subfield Indicates that the option field carries the first service information and the second service information
  • m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to m services one by one; the first flag bit in the m flag bits corresponds to the first business, and the second flag bit corresponds to the first business.
  • the first flag bit indicates that the option field carries the first service information, and the second flag bit indicates that the option field carries the second service information.
  • the first flag bit and the second flag bit are arranged in order, the first business information and the second business information are arranged in sequence, the first business information and the second business information are arranged in the same order as the first flag bit and the second business information
  • the arrangement order of the two flag bits corresponds.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m businesses
  • the m businesses are different from each other
  • the m businesses include the second business
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic business information in the option field is a basic subfield
  • the option field includes k business subfields corresponding to the k business one-to-one, and the k business subfields are located in the basic subfield after the field.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field includes a type subfield and a length subfield
  • the type subfield indicates the type of the option field
  • the length subfield indicates the length of the option field
  • 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 IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of slice service, flow detection service, APN service and DetNet service; or, the second service includes any one of slice service, flow detection service, APN service and DetNet service.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • the service processing device provided by the embodiment of the present application can save some fixed content in the option field and some The overhead brought by the optional subfield helps to reduce message overhead.
  • FIG. 29 shows a schematic structural diagram of another service processing device 2900 provided in the embodiment of the present application.
  • the service processing device 2900 is applied to the head node.
  • the service processing apparatus 2900 is a head node or a functional component in the head node.
  • a service processing device 2900 includes a transceiver module 2910 and a processing module 2920 .
  • the transceiver module 2910 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 carries the first service information and the second service information, the first service The information corresponds to the first service, the second service information corresponds to the second service, and the first service is different from the second service.
  • the function implementation of the transceiver module 2910 may be described in the above S2202.
  • the processing module 2920 is configured to generate a message including the option field according to the indication information.
  • the option field includes a first subfield and a second subfield, the first subfield carries the first service information, and the second subfield carries the second service information.
  • the length of the first subfield is the same as the length of the second subfield.
  • the option field also includes a third subfield, the third subfield carries third service information, the third service information corresponds to the third service, and the first service, the second service and the third service are different from each other ;
  • the first subfield, the second subfield and the third subfield are arranged in sequence, and the length of the third subfield is different from that of the first subfield.
  • the length of the third subfield is greater than the length of the first subfield.
  • the length of the third subfield is shorter than the length of the first subfield.
  • the length of the third subfield is equal to the length of the first subfield.
  • both the length of the first subfield and the length of the second subfield are 2n bits, and n is an integer greater than or equal to 3.
  • the option field further includes a fourth subfield, where the fourth subfield indicates the length of the first subfield and the length of the second subfield.
  • the option field includes a service flag subfield
  • the business flag subfield corresponds to m services
  • the m businesses are different from each other
  • the m services include the first business and the second business
  • the service flag subfield Indicates that the option field carries the first service information and the second service information
  • m is an integer greater than or equal to 2.
  • the service flag subfield includes m flag bits, and the m flag bits correspond to m services one by one; the first flag bit in the m flag bits corresponds to the first business, and the second flag bit corresponds to the first business.
  • the first flag bit indicates that the option field carries the first service information, and the second flag bit indicates that the option field carries the second service information.
  • the first flag bit and the second flag bit are arranged in order, the first business information and the second business information are arranged in sequence, the first business information and the second business information are arranged in the same order as the first flag bit and the second business information
  • the arrangement order of the two flag bits corresponds.
  • the first service information is basic service information
  • the option field includes a service flag subfield
  • the service flag subfield corresponds to m businesses
  • the m businesses are different from each other
  • the m businesses include the second business
  • the service flag subfield indicates that the option field carries the second service information
  • m is a positive integer
  • the first service is different from the m services.
  • the service flag subfield indicates that the option field carries service information of k services among the m services, and the service information of the k services is located after the basic service information.
  • the subfield carrying the basic business information in the option field is a basic subfield
  • the option field includes k business subfields corresponding to the k business one-to-one, and the k business subfields are located in the basic subfield after the field.
  • the length of the basic subfield is a fixed value.
  • the option field further includes a reserved subfield adjacent to the service flag subfield.
  • the lowest bit of the reserved subfield is adjacent to the highest bit of the service flag subfield.
  • the option field includes a type subfield and a length subfield
  • the type subfield indicates the type of the option field
  • the length subfield indicates the length of the option field
  • the indication information is used to instruct the head node to generate an IPv6 packet including the IPv6 extension header
  • the IPv6 extension header includes the option field
  • the processing module 2920 is configured to generate an IPv6 packet including the IPv6 extension header according to the indication information. IPv6 packets.
  • the IPv6 extension header includes any one of HBH and DOH.
  • the first service includes any one of slicing service, flow detection service, APN service and DetNet service; or, the second service includes any one of slicing service, flow detection service, APN service and DetNet service one.
  • the first service includes a slice service
  • the first service information includes a slice identifier
  • the first service includes a flow detection service
  • the first service information includes a flow identifier
  • the first service includes an APN service
  • the first service information includes at least one of a user group identifier and an application group identifier.
  • the first service includes a DetNet service
  • the first service information includes a path identifier
  • the service processing device provided by the embodiment of the present application can save some fixed content in the option field and some The overhead brought by the optional subfield helps to reduce message overhead.
  • the service processing device provided in the embodiment of the present application may also be implemented by an application-specific integrated circuit (application-specific integrated circuit, ASIC) or a programmable logic device (programmable logic device, PLD).
  • the aforementioned PLD may be a complex programmable logic device (complex programmable logical device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
  • the business processing method provided by the above method embodiment may also be realized by software.
  • each module in the business processing device may also be a software module.
  • FIG. 30 shows a schematic structural diagram of another service processing device 3000 provided by the embodiment of the present application.
  • the service processing apparatus 3000 may be a network device or a functional component in the network device.
  • the network device may be the network device A, the network device B or the head node in the foregoing method embodiments.
  • the service processing device 3000 includes: a main control board 3010 , an interface board 3030 and an interface board 3040 .
  • a switching fabric board (not shown in FIG. 30 ) may be included, and the switching fabric board is used to complete data exchange between interface boards (interface boards are also called line cards or service boards).
  • the main control board 3010 is used to complete functions such as system management, equipment maintenance, and protocol processing.
  • the interface board 3030 and the interface board 3040 are used to provide various service interfaces (for example, POS interface, GE interface, ATM interface, etc.), and implement packet forwarding.
  • the main control board 3010, the interface board 3030, and the interface board 3040 are connected to the system backplane through the system bus to realize intercommunication.
  • the interface board 3030 includes one or more processors 3031 .
  • the processor 3031 is used for controlling and managing the interface board 3030 and communicating with the central processing unit 3012 on the main control board 3010 .
  • the memory 3032 on the interface board 3030 is used to store forwarding tables, local configuration information about services, and the like. If the service processing device 3000 is the aforementioned network device A, the memory 3032 is also used to store the option field or the configuration information of the option field, the processor 3031 is used to generate a message including the option field, and the processor 3031 is used to Processing the message according to the option field. If the service processing apparatus 3000 is the aforementioned network device B, the processor 3031 processes the message according to the option field in the message. As shown in Figure 30, the main control board 3010 can include a memory 3014, and the memory 3014 on the main control board 3010 can also be used to store local configuration information about services, option fields or configuration information of the option fields, etc. Examples are not limited to this.
  • the interface board 3030 includes one or more network interfaces 3033 for receiving and sending packets, and the processor 3031 processes the packets according to the option fields in the packets received by the network interfaces 3033 .
  • the specific implementation process will not be described one by one here.
  • the specific functions of the processor 3031 are also not repeated here one by one.
  • the interface board 3040 includes one or more network interfaces 3043 for receiving and sending packets, includes a memory 3042 for storing forwarding tables, local configuration information about services, etc., and includes a processor 3041 for The interface board 3040 performs control management and communicates with the central processing unit 3012 on the main control board 3010 .
  • the interface board 3040 will not be described in detail here.
  • processor 3031 in the interface board 3030 and/or the processor 3041 in the interface board 3040 in FIG. The implementation method is the commonly referred to as the way that the forwarding plane is processed by dedicated hardware or chips.
  • the processor 3031 in the interface board 3030 and/or the processor 3041 in the interface board 3040 can also use a general-purpose processor, such as a general-purpose central processing unit (central processing unit, CPU) to implement the functions described above.
  • CPU central processing unit
  • main control boards there may be one or more main control boards, and when there are multiple main control boards, the main main control board and the standby main control board may be included.
  • interface boards There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards it provides. In the case of multiple interface boards, the multiple interface boards can communicate through one or more switching fabric boards, and when there are multiple interface boards, they can jointly implement load sharing and redundant backup.
  • the network device does not need a switching network board, and the interface board is responsible for processing service data of the entire system.
  • the network device includes multiple interface boards, which can realize data exchange between multiple interface boards through the switching network board, and provide large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices with a distributed architecture are greater than those with a centralized architecture. Which architecture to use depends on the networking deployment scenario, which is not limited here.
  • the memory 3032 and/or the memory 3042 can be a read-only memory (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 compact 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 in the form of structures desired program code and any other medium that can be accessed by a computer, but is not limited thereto.
  • the memory 3032 may exist independently, be connected to the processor 3031 through a communication bus, or be integrated with the processor 3031 .
  • the memory 3042 may exist independently, be connected to the processor 3041 through a communication bus, or be integrated with the processor 3041 .
  • the memory 3032 is used to store program codes, which are executed under the control of the processor 3031, so as to execute part or all of the steps of the business processing methods provided in the above-mentioned embodiments.
  • the processor 3031 is used to execute the program codes stored in the memory 3032 .
  • One or more software modules may be included in the program code.
  • the one or more software modules may be the functional modules provided in the above embodiments shown in FIG. 26 , FIG. 27 or FIG. 29 .
  • the memory 3042 may also be used to store program codes, which are executed under the control of the processor 3041, so as to execute part or all of the steps of the business processing methods provided in the above-mentioned embodiments.
  • the memory 3014 can also be used to store program codes, which are executed under the control of the central processing unit 3012, so as to execute part or all of the steps of the business processing method provided by the above-mentioned embodiments.
  • the network interface 3033 and the network interface 3043 may use any device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, radio access network (radio access network, RAN), Wireless local area networks (wireless local area networks, WLAN), etc.
  • a transceiver for communicating with other devices or communication networks, such as Ethernet, radio access network (radio access network, RAN), Wireless local area networks (wireless local area networks, WLAN), etc.
  • FIG. 31 shows a schematic structural diagram of another service processing device 3100 provided by the embodiment of the present application.
  • the service processing device 3100 may be a controller.
  • a service processing device 3100 includes: a processor 3102 , a memory 3104 , a communication interface 3106 and a bus 3108 .
  • Processor 3102 , memory 3104 , and communication interface 3106 are communicatively coupled to each other via bus 3108 .
  • the connection mode among the processor 3102, the memory 3104 and the communication interface 3106 shown in FIG. connect.
  • the memory 3104 can be used to store a computer program 31042, which can include program code.
  • Memory 3104 can be various types of storage media, such as RAM, ROM, non-volatile RAM (non-volatile RAM, NVRAM), programmable ROM (programmable ROM, PROM), erasable PROM (erasable PROM, EPROM) , Electrically erasable PROM (electrically erasable PROM, EEPROM), flash memory, optical memory and registers, etc.
  • Processor 3102 may be a general purpose processor or a special purpose processor.
  • a general-purpose processor may be a processor that performs specific steps and/or operations by reading and executing a computer program (such as a computer program 31042) stored in a memory (such as the memory 3104).
  • a computer program stored in a memory (eg, memory 3104) may be used in the process.
  • a general purpose processor can be, for example but not limited to, a CPU.
  • a special-purpose processor may be a processor specially designed to perform specific steps and/or operations, and the special-purpose processor may be, for example but not limited to, a digital signal processor (digital signal processor, DSP), an ASIC, and an FPGA.
  • the processor 3102 may also be a combination of multiple processors, such as a multi-core processor.
  • the processor 3102 may include at least one circuit to execute all or part of the steps of the service processing method provided in the foregoing embodiments.
  • the communication interface 3106 may include an input/output (input/output, I/O) interface, a physical interface and a logical interface, etc., which are used to realize the internal device interconnection of the service processing device 3100, and are used to realize the communication between the service processing device 3100 and other An interface for interconnecting communication devices.
  • the physical interface may be a gigabit Ethernet interface (gigabit Ethernet, GE), which may be used to interconnect the service processing device 3100 with other communication devices.
  • the logical interface is an internal interface of the service processing apparatus 3100 , which can be used to implement device interconnection within the service processing apparatus 3100 .
  • the communication interface 3106 can be used for sending and receiving information between the service processing device 3100 and other communication devices, and the communication interface 3106 can realize related functions of the aforementioned transceiver module 2810 .
  • the communication interface 3106 may also include a transceiver for sending and receiving information, and the transceiver may also implement related functions of the aforementioned transceiver module 2810 .
  • bus 3108 may be any type of communication bus for interconnecting the processor 3102, the memory 3104 and the communication interface 3106, such as a system bus.
  • the above-mentioned devices may be respectively arranged on independent chips, or at least partly or all of them may be arranged on the same chip. Whether each device is independently arranged on different chips or integrated and arranged on one or more chips often depends on the needs of product design.
  • the embodiment of the present application does not limit the specific implementation forms of the foregoing devices.
  • the service processing apparatus 3100 shown in FIG. 31 is only exemplary. During implementation, the service processing apparatus 3100 may also include other components, which will not be listed here.
  • the service processing apparatus 3100 shown in FIG. 31 can perform service processing by executing all or part of the steps of the service processing method provided in the above embodiments.
  • FIG. 32 shows a schematic structural diagram of a service processing system 3200 provided by an embodiment of the present application.
  • the service processing system 3200 includes a first network device 3210 and a second network device 3220 .
  • the first network device 3210 is configured to generate a message including an option field, and send the message to the second network device 3220, the option field carries first service information and second service information, and the first service information corresponds to the first service information One service, the second service information corresponds to the second service, and the first service is different from the second service.
  • the second network device 3220 is configured to receive the packet, and process the packet according to the first service information.
  • the service processing system 3200 further includes: a controller 3230, configured to send instruction information to the first network device 3210, where the instruction information is used to instruct the first network device 3210 to generate a message including an option field.
  • the first network device 3210 is specifically configured to generate a packet including the option field according to the indication information.
  • the first network device 3210 supports the first service, and the first network device 3210 is further configured to process the message according to the first service information.
  • the first network device 3210 also supports the second service, and the first network device 3210 is further configured to process the message according to the second service information.
  • the first network device 3210 does not support the second service, and the first network device 3210 is also used to skip the second service information.
  • the first network device 3210 is specifically configured to process the packet according to the first service information and local configuration information of the first network device.
  • the first service information and the second service information are arranged in sequence, and the first network device 3210 is specifically configured to process the packet according to the order in which the first service information and the second service information are arranged.
  • the second network device 3220 supports the first service and the second service, and the second network device 3220 is further configured to process the message according to the second service information.
  • the second network device 3220 supports the first service but does not support the second service, and the second network device 3220 is also used to skip the second service information.
  • the second network device 3220 is specifically configured to process the message according to the first service information and the local configuration information of the first network device.
  • the first service information and the second service information are arranged in order
  • the second network device 3220 is specifically configured to process the packet according to the order in which the first service information and the second service information are arranged.
  • the first network device 3210 is a head node on the forwarding path of the packet
  • the second network device 3220 is an intermediate node or an end node on the forwarding path.
  • the service processing device provided in Figure 27 or Figure 30 above can be used as the head node; the service processing device provided in Figure 26 or Figure 30 above can be used as the intermediate node or the tail node; the service provided in Figure 28 or Figure 31 above
  • the processing device can serve as the controller 3230 .
  • the first network device 3210 is a head node or an intermediate node on the forwarding path of the packet
  • the second network device 3220 is an tail node on the forwarding path.
  • the service processing device provided in Figure 27 or Figure 30 above can be used as the head node or the intermediate node; the service processing device provided in Figure 26 or Figure 30 above can be used as the tail node; the service processing device provided in Figure 28 or Figure 31 above
  • the processing device can serve as the controller 3230 .
  • the service processing apparatus provided in FIG. 29 above may serve as the head node.
  • the embodiment of the present application provides a data structure, and the data structure includes the option field provided in the foregoing embodiments of the present application.
  • the option field please refer to the relevant description in the above embodiments of the present application, and details are not repeated here.
  • the option field may be the option field shown in any one of FIGS. 14 to 17 .
  • the option field may be an option field as shown in FIG. 25 .
  • An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program is executed (for example, by a business processing device, a network device, a controller, one or more processing When executed by a server, etc.), all or part of the steps of the business processing method provided by the above method embodiments are realized.
  • An embodiment of the present application provides 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.) , implement all or part of the steps of the service processing method provided by the above method embodiment.
  • An embodiment of the present application provides a chip, the chip includes a programmable logic circuit and/or program instructions, and the chip is used to implement all or part of the steps of the service processing method provided in the above method embodiments when running.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product comprising one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer may be a general purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data
  • the center transmits to another website site, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.).
  • 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 or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium, or a semiconductor medium (for example, a solid-state hard disk).
  • the disclosed devices and the like may 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 can be combined or integrated into Another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical or other forms.
  • a module described as a separate component may or may not be physically separated, and a component described as a module may or may not be a physical unit, and may be located in one place or distributed to multiple devices (such as network devices) . Part 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)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种业务处理方法、装置及系统,属于网络技术领域。该方法包括:网络设备接收包括选项字段的报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同;网络设备根据第一业务信息处理该报文。本申请中,同一个报文的同一个选项字段中能够携带至少两个不同业务的业务信息,因此有助于降低报文开销。

Description

业务处理方法、装置及系统
本申请要求申请日为2021年12月14日、申请号为202111527212.1,申请名称为“一种聚合业务信息的IPv6Option”的中国专利申请,以及,申请日为2022年01月26日、申请号为202210096188.9、申请名称为“业务处理方法、装置及系统”的中国专利申请的优先权,这两件专利申请的全部内容通过引用结合在本申请中。
技术领域
本申请涉及网络技术领域,特别涉及一种业务处理方法、装置及系统。
背景技术
在目前的网络技术发展中,能够针对互联网协议第6版(internet protocol version 6,IPv6)报文开展多个业务。例如,这些业务可以包括切片(slice)业务、随流检测业务、应用感知网络(application-aware networking,APN)业务以及确定性网络(deterministic networking,DetNet)业务等。随流检测业务可以包括随流检测(in-situ flow information telemetry,IFIT)业务或带内操作管理维护(in-suitoam operations administration and maintenance,IOAM)业务。
目前,通常在IPv6报文的IPv6扩展头中针对上述各个业务分别扩展不同的选项(option)字段来携带对应业务的业务信息。示例的,当某一IPv6报文需要同时支持切片业务和IFIT业务时,需要在该IPv6报文的IPv6扩展头中,针对切片业务和IFIT业务扩展两个选项字段,并在切片业务和IFIT业务各自对应的选项字段中携带对应业务的业务信息。
但是,根据协议规定,选项字段中应当包括类型(type)子字段、长度(length)子字段等用于描述该选项字段的固定内容。因此,在针对每个业务分别扩展选项字段时,扩展的每个选项字段中均包括这些固定内容,从而,导致IPv6扩展头的长度较大,IPv6扩展头的开销较大,报文开销较大。
发明内容
本申请提供了一种业务处理方法、装置及系统。本申请的技术方案如下:
第一方面,提供了一种业务处理方法,该方法包括:网络设备接收包括选项字段的报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同;该网络设备根据第一业务信息处理该报文。例如,该网络设备根据该选项字段处理该报文。
本申请提供的技术方案,由于报文的同一个选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同。也即,同一个报文的同一个选项字段中携带有至少两个不同业务的业务信息。换句话说,同一个报文的同一个选项字段能够携带至少两个不同业务的业务信息。因此,无需针对每个业务分别扩展选项字段,相比于目前针对每个业务分别扩展选项字段的方案,可以节省选项字段中的一些固定内容所带来的开销,有助于降低报文开销。
此外,目前针对每个业务分别扩展选项字段的方案中,每个选项字段中通常还包括一些用于对齐或未来扩展的可选子字段,这些可选子字段也容易导致报文的开销较大。本申请提供的技术方案中,同一个报文的同一个选项字段能够携带至少两个不同业务的业务信息,相比于目前针对每个业务分别扩展选项字段的方案,还可以节省一些可选子字段所带来的开销,降低报文开销。
此外,网络设备获取(例如接收或生成)到报文之后,通常需要处理报文,例如转发报文或者针对报文执行一些业务处理。目前针对每个业务分别扩展选项字段的方案中,报文的长度较大,导致网络设备处理报文的复杂度较高,网络设备的转发性能较低。本申请提供的技术方案中,同一个报文的同一个选项字段能够携带至少两个不同业务的业务信息,因此能够减小报文的长度,有助于简化网络设备处理报文的复杂度,提升网络设备的转发性能。
可选的,所述选项字段中包括第一子字段和第二子字段,第一子字段中携带有第一业务信息,第二子字段中携带有第二业务信息。其中,第一子字段和第二子字段均可以称为业务子字段,第一子字段可以对应第一业务,第二子字段可以对应第二业务,这样,第一子字段可以携带第一业务信息,第二子字段可以携带第二业务信息。
本申请提供的技术方案,通过在同一个选项字段中设置对应第一业务的第一子字段和对应第二业务的第二子字段,并通过第一子字段携带第一业务信息,通过第二子字段携带第二业务信息,由此使得该选项字段能够携带至少两个不同业务的业务信息。
可选的,第一子字段的长度和第二子字段的长度相同。
本申请提供的技术方案,由于在同一个选项字段中,对应于第一业务的第一子字段的长度和对应于第二业务的第二子字段的长度相同,因此,网络设备根据报文包括的该选项字段处理该报文的过程中,如果该网络设备不支持第一业务和/或第二业务,该网络设备可以直接跳过第一子字段和/或第二子字段,有助于简化该网络设备的处理逻辑。并且,第一子字段的长度和第二子字段的长度相同,可以便于第一子字段和第二子字段对齐。
可选的,所述选项字段中还包括第三子字段,第三子字段中携带有第三业务信息,第三业务信息对应第三业务,第一业务、第二业务和第三业务互不相同;第一子字段、第二子字段和第三子字段依次排列,第三子字段的长度与第一子字段的长度不同。第三子字段可以称为业务子字段,第三子字段对应第三业务,这样,第三子字段可以携带第三业务信息。
本申请提供的技术方案,同一个选项字段中可以包括多个业务子字段,该多个业务子字段中除最后一个业务子字段之外的业务子字段长度相同,最后一个业务子字段的长度与其余业务子字段的长度不同。例如,第一子字段、第二子字段和第三子字段均为业务子字段,由于在同一个选项字段中,第一子字段的长度和第二子字段的长度相同,因此,网络设备根据报文包括的该选项字段处理该报文的过程中,如果该网络设备不支持第一业务和/或第二业务,该网络设备可以跳过第一子字段和/或第二子字段,直接根据下一个子字段(例如第三子字段)中携带的业务信息处理该报文,有助于简化该网络设备的处理逻辑。由于第三子字段排列在第二子字段之后,第三子字段可以是该选项字段中的最后一个业务子字段,因此,网络设备根据报文包括的该选项字段处理该报文的过程中,如果该网络设备不支持第三业务,该网络设备可以直接跳过该选项字段,从而,本申请可以设置第三子字段的长度与第一子字段的长度不同,也即,无需限制第三子字段的长度,便于该选项字段灵活的支持各个业务。
可选的,第三子字段的长度大于第一子字段的长度。例如,第三子字段是该选项字段中 的最后一个业务子字段。也即,最后一个业务子字段的长度大于其余业务子字段的长度。
本申请提供的技术方案,由于第三子字段的长度大于第一子字段的长度,因此,可以将业务信息相对较长的业务作为第三业务,通过第三子字段携带第三业务的业务信息。例如,IFIT业务的业务信息通常较长,第三业务可以是IFIT业务。
可选的,第三子字段的长度小于第一子字段的长度。例如,第三子字段是该选项字段中的最后一个业务子字段。也即,最后一个业务子字段的长度小于其余业务子字段的长度。
本申请提供的技术方案,由于第三子字段的长度小于第一子字段的长度,因此,可以将业务信息相对较短的业务作为第三业务,通过第三子字段携带第三业务的业务信息。
可选的,第三子字段的长度等于第一子字段的长度。
可选的,第一子字段的长度和第二子字段的长度均为2n比特,n为大于或等于3的整数。
本申请提供的技术方案,由于第一子字段的长度和第二子字段的长度均为2n比特,因此,可以便于第一子字段与第二子字段对齐,以及,便于第一子字段、第二子字段与选项字段中的其他子字段对齐。
可选的,第一子字段的长度和第二子字段的长度均为8比特、16比特、32比特或64比特。例如,第一子字段的长度和第二子字段的长度均为32比特。
本申请提供的技术方案,由于第一子字段的长度和第二子字段的长度均为8比特、16比特、32比特或64比特,因此,可以便于第一子字段与第二子字段对齐,以及,便于第一子字段、第二子字段与选项字段中的其他子字段对齐。
可选的,所述选项字段中还包括第四子字段,第四子字段指示第一子字段的长度和第二子字段的长度。例如,第四子字段指示第一子字段的长度和第二子字段的长度均为32比特。第四子字段也可以称为长度标志子字段或长度指示子字段。
本申请提供的技术方案,通过在选项字段中设置第四子字段,通过第四子字段指示该选项字段中的第一子字段的长度和第二子字段的长度,便于网络设备获知第一子字段的长度和第二子字段的长度。从而,在网络设备支持第一业务和/或第二业务时,该网络设备根据第一子字段的长度从第一子字段中获取第一业务信息,和/或,根据第二子字段的长度从第二子字段中获取第二业务信息;在网络设备不支持第一业务和/或第二业务时,该网络设备根据第一子字段的长度和/或第二子字段的长度,跳过第一子字段和/或第二子字段。
可选的,所述选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第一业务和第二业务,该业务标志子字段指示该选项字段中携带有第一业务信息和第二业务信息,m为大于或等于2的整数。例如,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务包括第一业务和第二业务,k小于或等于m,k为正整数。该业务标志子字段也可以称为业务指示子字段。
本申请提供的技术方案,通过在选项字段中设置业务标志子字段,并设置该业务标志子字段对应m个业务,可以便于网络设备根据该业务标志子字段获知该选项字段中携带该m个业务中的哪些业务的业务信息。例如,网络设备根据该业务标志子字段获知该选项字段中携带有对应于第一业务的第一业务信息和对应于第二业务的第二业务信息。
可选的,该业务标志子字段通过比特映射的方式对应m个业务。具体的,该业务标志子字段中包括m个标志位,该m个标志位一一对应该m个业务。例如,该m个标志位中的每个标志位指示该选项字段中是否携带该标志位对应业务的业务信息,每个标志位中的值可以 是0或1,“1”指示该选项字段中携带该标志位对应业务的业务信息,“0”指示该选项字段中未携带该标志位对应业务的业务信息。在本申请中,该m个标志位中的第一标志位对应第一业务,该m个标志位中的第二标志位对应第二业务,第一标志位指示该选项字段中携带有第一业务信息,第二标志位指示该选项字段中携带有第二业务信息。第一标志位中的值和第二标志位中的值均可以为1。
本申请提供的技术方案,通过设置业务标志子字段包括与m个业务一一对应的m个标志位,可以便于网络设备根据每个标志位获知该选项字段中是否携带该标志位对应业务的业务信息,从而根据报文包括的该选项字段中携带的业务信息处理该报文。
可选的,第一标志位和第二标志位按序排列,第一业务信息和第二业务信息的按序排列,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位的排列顺序对应。例如,第一业务信息携带在第一子字段中,第二业务信息携带在第二子字段,第一子字段和第二子字段的排列顺序与第一标志位和第二标志位的排列顺序对应,使得第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位的排列顺序对应。具体的,第一子字段和第二子字段均为业务子字段,该选项字段中可以包括k个业务子字段,该k个业务子字段一一对应k个业务,每个业务子字段中携带有该业务子字段对应业务的业务信息。该m个标志位按序排列,该k个业务子字段按序排列,该k个子字段的排列顺序与该k个业务对应的k个标志位的排列顺序对应。
本申请提供的技术方案,由于选项字段中包括业务标志子字段、第一业务对应的第一子字段和第二业务对应的第二子字段,该业务标志子字段中包括第一业务对应的第一标志位和第二业务对应的第二标志位,第一子字段和第二子字段的排列顺序与第一标志位和第二标志位的排列顺序对应,因此,可以便于网络设备按照第一标志位和第二标志位的排列顺序,确定第一子字段和第二子字段,从而确定第一业务信息和第二业务信息。
可选的,第一业务信息为基础业务信息,所述选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第二业务,该业务标志子字段指示该选项字段中携带有第二业务信息,m为正整数。
由于第一业务信息为基础业务信息,因此第一业务为基础业务。可选的,第一业务与该m个业务均不同。即,基础业务与该m个业务均不同。
可选的,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务的业务信息均位于该基础业务信息之后。
可选的,该选项字段中携带该基础业务信息的子字段为基础子字段,该选项字段中包括该k个业务一一对应的k个业务子字段,该k个业务子字段位于该基础子字段之后。
可选的,该基础子字段的长度为定值。例如,该基础子字段的长度为8比特、16比特、32比特或64比特。
本申请提供的技术方案,通过在选项字段中设置基础子字段,并通过基础子字段携带基础业务信息,使得该选项字段能够携带基础业务信息。
可选的,m≥4。也即,包括所述选项字段的报文可以支持至少4个业务。
可选的,所述选项字段中还包括预留子字段,该预留子字段与业务标志子字段相邻。
本申请提供的技术方案,由于预留子字段与业务标志子字段相邻,因此该预留子字段可以支持该业务标志子字段的长度扩展,从而支持在所述选项字段中扩展业务子字段。
可选的,该预留子字段的最低比特位与该业务标志子字段的最高比特位相邻。
本申请提供的技术方案,由于业务标志子字段对应m个业务,所述选项字段中包括该m个业务中的k个业务对应的k个业务子字段,该k个业务子字段按序排列,该k个业务子字段中的前k-1个业务子字段的长度相同,最后一个业务子字段的长度与前k-1个业务子字段的长度不同。相比于在最后一个业务子字段之后扩展业务子字段,在第1个业务子字段之前扩展业务子字段对该选项字段的更改较小,在第1个业务子字段之前扩展业务子字段更为便捷。因此,本申请设置预留子字段的最低比特位与业务标志子字段的最高比特位相邻,这样一来,如果需要在该选项字段中扩展业务子字段,则在第1个业务子字段之前扩展业务子字段,从业务标志子字段的高位开始扩展比特位,有助于提高扩展业务子字段的便捷性。
可选的,该选项字段中还包括类型子字段和长度子字段,该类型子字段指示该选项字段的类型,该长度子字段指示该选项字段的长度。
可选的,所述报文为IPv6报文,该报文中包括IPv6扩展头,该IPv6扩展头中包括所述选项字段。
本申请提供的技术方案,将至少两个不同业务的业务信息携带在同一个报文的IPv6扩展头的同一个选项字段中,相比于针对每个业务分别扩展选项字段的方案,可以节省选项字段中的一些固定内容所带来的开销,有助于减小IPv6扩展头的长度,降低IPv6扩展头的开销。
可选的,该IPv6扩展头包括逐跳头(hop by hop header,HBH)和目的选项头(destination options header,DOH)中的任意一种。这样一来,本申请有助于减小HBH或DOH的长度。
可选的,第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个;或者,第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。其中,该随流检测业务可以包括IFIT业务或IOAM业务。
可选的,第一业务包括切片业务,第一业务信息包括切片标识。
可选的,第一业务包括随流检测业务,第一业务信息包括流标识。
可选的,第一业务包括APN业务,第一业务信息包括用户组标识和应用组标识中的至少一个。
可选的,第一业务包括DetNet业务,第一业务信息包括路径标识。
可选的,第一业务信息包括路径标识,第一业务是面向路径的业务。例如,第一业务是面向路径的操作管理维护(operations administration and maintenance,OAM)业务、面向路径的可视化业务、面向路径的流量统计业务、面向路径的性能测量业务等。
可选的,该网络设备支持第一业务和第二业务,该方法还包括:该网络设备根据第二业务信息处理所述报文。例如第二业务信息携带在第二子字段中,该网络设备首先从第二子字段中获取第二业务信息,然后根据第二业务信息处理该报文。
可选的,该网络设备支持第一业务但不支持第二业务,该方法还包括:该网络设备跳过第二业务信息。例如第二业务信息携带在第二子字段中,该网络设备跳过第二子字段。
可选的,该网络设备根据第一业务信息处理所述报文,包括以下至少一项:该网络设备根据第一业务信息统计所述报文;该网络设备根据第一业务信息转发所述报文。
可选的,该网络设备根据第一业务信息处理所述报文,包括:该网络设备根据第一业务信息和第一业务关联的本地配置信息处理所述报文。该本地配置信息可以是程序指令。
可选的,第一业务信息和第二业务信息按序排列,该网络设备按照第一业务信息和第二 业务信息的排列顺序处理所述报文。
本申请提供的技术方案,由于第一业务信息和第二业务信息按序排列,因此,网络设备根据报文包括的该选项字段处理该报文的过程中,如果该网络设备不支持第一业务和/或第二业务,该网络设备可以跳过第一业务信息和/或第二业务信息,直接根据下一个业务信息处理该报文,有助于简化该网络设备的处理逻辑。
第二方面,提供了一种业务处理方法,该方法包括:网络设备生成包括选项字段的报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同;该网络设备发送该报文。
可选的,该选项字段中包括第一子字段和第二子字段,第一子字段中携带有第一业务信息,第二子字段中携带有第二业务信息。
可选的,第一子字段的长度和第二子字段的长度相同。
可选的,该选项字段中还包括第三子字段,第三子字段中携带有第三业务信息,第三业务信息对应第三业务,第一业务、第二业务和第三业务互不相同;第一子字段、第二子字段和第三子字段依次排列,第三子字段的长度与第一子字段的长度不同。
可选的,第三子字段的长度大于第一子字段的长度。
可选的,第三子字段的长度小于第一子字段的长度。
可选的,第三子字段的长度等于第一子字段的长度。
可选的,第一子字段的长度和第二子字段的长度均为2n比特,n为大于或等于3的整数。
可选的,第一子字段的长度和第二子字段的长度均为8比特、16比特、32比特或64比特。
可选的,该选项字段中还包括第四子字段,第四子字段指示第一子字段的长度和第二子字段的长度。
可选的,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第一业务和第二业务,该业务标志子字段指示该选项字段中携带有第一业务信息和第二业务信息,m为大于或等于2的整数。
可选的,该业务标志子字段中包括m个标志位,该m个标志位一一对应m个业务;该m个标志位中的第一标志位对应第一业务,该m个标志位中的第二标志位对应第二业务,第一标志位指示该选项字段中携带有第一业务信息,第二标志位指示该选项字段中携带有第二业务信息。
可选的,第一标志位和第二标志位按序排列,第一业务信息和第二业务信息的按序排列,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位的排列顺序对应。
可选的,第一业务信息为基础业务信息,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第二业务,该业务标志子字段指示该选项字段中携带有第二业务信息,m为正整数。
可选的,第一业务与该m个业务均不同。
可选的,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务的业务信息均位于基础业务信息之后。
可选的,该选项字段中携带该基础业务信息的子字段为基础子字段,该选项字段中包括该k个业务一一对应的k个业务子字段,该k个业务子字段位于该基础子字段之后。
可选的,该基础子字段的长度为定值。
可选的,m≥4。
可选的,该选项字段中还包括预留子字段,该预留子字段与该业务标志子字段相邻。
可选的,该预留子字段的最低比特位与该业务标志子字段的最高比特位相邻。
可选的,该选项字段中包括类型子字段和长度子字段,该类型子字段指示该选项字段的类型,该长度子字段指示该选项字段的长度。
可选的,所述报文为IPv6报文,该报文中包括IPv6扩展头,该IPv6扩展头中包括该选项字段。
可选的,该IPv6扩展头包括HBH和DOH中的任意一种。
可选的,第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个;或者,第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。其中,该随流检测业务可以包括IFIT业务或IOAM业务。
可选的,第一业务包括切片业务,第一业务信息包括切片标识。
可选的,第一业务包括随流检测业务,第一业务信息包括流标识。
可选的,第一业务包括APN业务,第一业务信息包括用户组标识和应用组标识中的至少一个。
可选的,第一业务包括DetNet业务,第一业务信息包括路径标识。
可选的,第一业务信息包括路径标识,第一业务是面向路径的业务。例如,第一业务是面向路径的OAM业务、面向路径的可视化业务、面向路径的流量统计业务、面向路径的性能测量业务等。
可选的,该网络设备支持第一业务,该方法还包括:该网络设备根据第一业务信息处理所述报文。
可选的,该网络设备还支持第二业务,该方法还包括:该网络设备根据第二业务信息处理所述报文。
可选的,该网络设备不支持第二业务,该方法还包括:该网络设备跳过第二业务信息。
可选的,该网络设备根据第一业务信息处理所述报文,包括以下至少一项:该网络设备根据第一业务信息统计所述报文;该网络设备根据第一业务信息转发所述报文。
可选的,该网络设备根据第一业务信息处理所述报文,包括:该网络设备根据第一业务信息和第一业务关联的本地配置信息处理所述报文。该本地配置信息可以是程序指令。
可选的,第一业务信息和第二业务信息按序排列,该网络设备按照第一业务信息和第二业务信息的排列顺序,根据第一业务信息和第二业务信息处理所述报文。
可选的,该网络设备生成包括选项字段的报文之前,该方法还包括:该网络设备接收控制器发送的指示信息,该指示信息用于指示该网络设备生成包括所述选项字段的报文;对应的,该网络设备生成包括选项字段的报文,包括:该网络设备根据该指示信息生成包括所述选项字段的所述报文。
第三方面,提供了一种业务处理方法,该方法包括:控制器向头节点发送指示信息,该指示信息用于指示头节点生成包括选项字段的报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同。
可选的,该选项字段中包括第一子字段和第二子字段,第一子字段中携带有第一业务信息,第二子字段中携带有第二业务信息。
可选的,第一子字段的长度和第二子字段的长度相同。
可选的,该选项字段中还包括第三子字段,第三子字段中携带有第三业务信息,第三业务信息对应第三业务,第一业务、第二业务和第三业务互不相同;第一子字段、第二子字段和第三子字段依次排列,第三子字段的长度与第一子字段的长度不同。
可选的,第三子字段的长度大于第一子字段的长度。
可选的,第三子字段的长度小于第一子字段的长度。
可选的,第三子字段的长度等于第一子字段的长度。
可选的,第一子字段的长度和第二子字段的长度均为2n比特,n为大于或等于3的整数。
可选的,该选项字段中还包括第四子字段,第四子字段指示第一子字段的长度和第二子字段的长度。
可选的,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第一业务和第二业务,该业务标志子字段指示该选项字段中携带有第一业务信息和第二业务信息,m为大于或等于2的整数。
可选的,该业务标志子字段中包括m个标志位,该m个标志位一一对应m个业务;该m个标志位中的第一标志位对应第一业务,该m个标志位中的第二标志位对应第二业务,第一标志位指示该选项字段中携带有第一业务信息,第二标志位指示该选项字段中携带有第二业务信息。
可选的,第一标志位和第二标志位按序排列,第一业务信息和第二业务信息的按序排列,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位的排列顺序对应。
可选的,第一业务信息为基础业务信息,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第二业务,该业务标志子字段指示该选项字段中携带有第二业务信息,m为正整数。
可选的,第一业务与该m个业务均不同。
可选的,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务的业务信息均位于基础业务信息之后。
可选的,该选项字段中携带该基础业务信息的子字段为基础子字段,该选项字段中包括该k个业务一一对应的k个业务子字段,该k个业务子字段位于该基础子字段之后。
可选的,该基础子字段的长度为定值。
可选的,m≥4。
可选的,该选项字段中还包括预留子字段,该预留子字段与该业务标志子字段相邻。
可选的,该预留子字段的最低比特位与该业务标志子字段的最高比特位相邻。
可选的,该选项字段中包括类型子字段和长度子字段,该类型子字段指示该选项字段的类型,该长度子字段指示该选项字段的长度。
可选的,该指示信息用于指示头节点生成包括IPv6扩展头的IPv6报文,该IPv6扩展头中包括该选项字段。
可选的,该IPv6扩展头包括HBH和DOH中的任意一种。
可选的,第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个; 或者,第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。其中,该随流检测业务可以包括IFIT业务或IOAM业务。
可选的,第一业务包括切片业务,第一业务信息包括切片标识。
可选的,第一业务包括随流检测业务,第一业务信息包括流标识。
可选的,第一业务包括APN业务,第一业务信息包括用户组标识和应用组标识中的至少一个。
可选的,第一业务包括DetNet业务,第一业务信息包括路径标识。
可选的,第一业务信息包括路径标识,第一业务是面向路径的业务。例如,第一业务是面向路径的OAM业务、面向路径的可视化业务、面向路径的流量统计业务、面向路径的性能测量业务等。
第四方面,提供了一种业务处理方法,该方法包括:头节点接收控制器发送的指示信息,该指示信息用于指示该头节点生成包括选项字段的报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同;该头节点根据该指示信息生成包括该选项字段的报文。
可选的,该选项字段中包括第一子字段和第二子字段,第一子字段中携带有第一业务信息,第二子字段中携带有第二业务信息。
可选的,第一子字段的长度和第二子字段的长度相同。
可选的,该选项字段中还包括第三子字段,第三子字段中携带有第三业务信息,第三业务信息对应第三业务,第一业务、第二业务和第三业务互不相同;第一子字段、第二子字段和第三子字段依次排列,第三子字段的长度与第一子字段的长度不同。
可选的,第三子字段的长度大于第一子字段的长度。
可选的,第三子字段的长度小于第一子字段的长度。
可选的,第三子字段的长度等于第一子字段的长度。
可选的,第一子字段的长度和第二子字段的长度均为2n比特,n为大于或等于3的整数。
可选的,该选项字段中还包括第四子字段,第四子字段指示第一子字段的长度和第二子字段的长度。
可选的,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第一业务和第二业务,该业务标志子字段指示该选项字段中携带有第一业务信息和第二业务信息,m为大于或等于2的整数。
可选的,该业务标志子字段中包括m个标志位,该m个标志位一一对应m个业务;该m个标志位中的第一标志位对应第一业务,该m个标志位中的第二标志位对应第二业务,第一标志位指示该选项字段中携带有第一业务信息,第二标志位指示该选项字段中携带有第二业务信息。
可选的,第一标志位和第二标志位按序排列,第一业务信息和第二业务信息的按序排列,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位的排列顺序对应。
可选的,第一业务信息为基础业务信息,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第二业务,该业务标志子字段指示该选项字段中携带有第二业务信息,m为正整数。
可选的,第一业务与该m个业务均不同。
可选的,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务的业务信息均位于基础业务信息之后。
可选的,该选项字段中携带该基础业务信息的子字段为基础子字段,该选项字段中包括该k个业务一一对应的k个业务子字段,该k个业务子字段位于该基础子字段之后。
可选的,该基础子字段的长度为定值。
可选的,m≥4。
可选的,该选项字段中还包括预留子字段,该预留子字段与该业务标志子字段相邻。
可选的,该预留子字段的最低比特位与该业务标志子字段的最高比特位相邻。
可选的,该选项字段中包括类型子字段和长度子字段,该类型子字段指示该选项字段的类型,该长度子字段指示该选项字段的长度。
可选的,该指示信息用于指示该头节点生成包括IPv6扩展头的IPv6报文,该IPv6扩展头中包括该选项字段,该头节点根据该指示信息生成包括该选项字段的报文,包括:该头节点根据该指示信息生成包括该IPv6扩展头的IPv6报文。
可选的,该IPv6扩展头包括HBH和DOH中的任意一种。
可选的,第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个;或者,第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。其中,该随流检测业务可以包括IFIT业务或IOAM业务。
可选的,第一业务包括切片业务,第一业务信息包括切片标识。
可选的,第一业务包括随流检测业务,第一业务信息包括流标识。
可选的,第一业务包括APN业务,第一业务信息包括用户组标识和应用组标识中的至少一个。
可选的,第一业务包括DetNet业务,第一业务信息包括路径标识。
可选的,第一业务信息包括路径标识,第一业务是面向路径的业务。例如,第一业务是面向路径的OAM业务、面向路径的可视化业务、面向路径的流量统计业务、面向路径的性能测量业务等。
第五方面,提供了一种业务处理装置,应用于网络设备,包括收发模块和处理模块,收发模块用于执行上述第一方面至第四方面,或第一方面至第四方面的任一可选方式所提供的方法中的收发操作,处理模块用于执行上述第一方面至第四方面,或第一方面至第四方面的任一可选方式所提供的方法中的除收发操作之外的操作。其中,收发操作可以是接收和/或发送操作。
所述装置包括:
收发模块,用于接收包括选项字段的报文,所述选项字段中携带有第一业务信息和第二业务信息,所述第一业务信息对应第一业务,所述第二业务信息对应第二业务,所述第一业务与所述第二业务不同;
处理模块,用于根据所述第一业务信息处理所述报文。
可选的,所述选项字段中包括第一子字段和第二子字段,所述第一子字段中携带有所述第一业务信息,所述第二子字段中携带有所述第二业务信息。
可选的,所述第一子字段的长度和所述第二子字段的长度相同。
可选的,所述选项字段中还包括第三子字段,所述第三子字段中携带有第三业务信息, 所述第三业务信息对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同;所述第一子字段、所述第二子字段和所述第三子字段依次排列,所述第三子字段的长度与所述第一子字段的长度不同。
可选的,所述第三子字段的长度大于所述第一子字段的长度。
可选的,所述第三子字段的长度小于所述第一子字段的长度。
可选的,所述第三子字段的长度等于所述第一子字段的长度。
可选的,所述第一子字段的长度和所述第二子字段的长度均为2n比特,n为大于或等于3的整数。
可选的,所述选项字段中还包括第四子字段,所述第四子字段指示所述第一子字段的长度和所述第二子字段的长度。
可选的,所述选项字段中包括业务标志子字段,所述业务标志子字段对应m个业务,所述m个业务互不相同,所述m个业务包括所述第一业务和所述第二业务,所述业务标志子字段指示所述选项字段中携带有所述第一业务信息和所述第二业务信息,m为大于或等于2的整数。
可选的,所述业务标志子字段中包括m个标志位,所述m个标志位一一对应所述m个业务;所述m个标志位中的第一标志位对应所述第一业务,所述m个标志位中的第二标志位对应所述第二业务,所述第一标志位指示所述选项字段中携带有所述第一业务信息,所述第二标志位指示所述选项字段中携带有所述第二业务信息。
可选的,所述第一标志位和所述第二标志位按序排列,所述第一业务信息和所述第二业务信息的按序排列,所述第一业务信息和所述第二业务信息的排列顺序与所述第一标志位和所述第二标志位的排列顺序对应。
可选的,所述第一业务信息为基础业务信息,所述选项字段中包括业务标志子字段,所述业务标志子字段对应m个业务,所述m个业务互不相同,所述m个业务包括所述第二业务,所述业务标志子字段指示所述选项字段中携带有所述第二业务信息,m为正整数。
可选的,所述第一业务与所述m个业务均不同。
可选的,所述业务标志子字段指示所述选项字段中携带有所述m个业务中的k个业务的业务信息,所述k个业务的业务信息均位于所述基础业务信息之后。
可选的,所述选项字段中携带所述基础业务信息的子字段为基础子字段,所述选项字段中包括所述k个业务一一对应的k个业务子字段,所述k个业务子字段位于所述基础子字段之后。
可选的,所述基础子字段的长度为定值。
可选的,m≥4。
可选的,所述选项字段中还包括预留子字段,所述预留子字段与所述业务标志子字段相邻。
可选的,所述预留子字段的最低比特位与所述业务标志子字段的最高比特位相邻。
可选的,所述选项字段中还包括类型子字段和长度子字段,所述类型子字段指示所述选项字段的类型,所述长度子字段指示所述选项字段的长度。
可选的,所述报文为IPv6报文,所述报文中包括IPv6扩展头,所述IPv6扩展头中包括所述选项字段。
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。
可选的,所述第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。其中,所述随流检测业务包括IFIT业务或IOAM业务。
可选的,所述第一业务包括切片业务,所述第一业务信息包括切片标识。
可选的,所述第一业务包括随流检测业务,所述第一业务信息包括流标识。
可选的,所述第一业务包括APN业务,所述第一业务信息包括用户组标识和应用组标识中的至少一个。
可选的,所述第一业务包括DetNet业务,所述第一业务信息包括路径标识。
可选的,所述网络设备支持所述第一业务和所述第二业务,所述处理模块,还用于根据所述第二业务信息处理所述报文。
可选的,所述网络设备支持第一业务但不支持所述第二业务,所述处理模块,还用于跳过所述第二业务信息。
可选的,所述处理模块,用于执行以下至少一项:根据所述第一业务信息统计所述报文;根据所述第一业务信息转发所述报文。
可选的,所述处理模块,具体用于根据所述第一业务信息和所述第一业务关联的本地配置信息处理所述报文。
可选的,所述第一业务信息和所述第二业务信息按序排列,所述处理模块,具体用于按照所述第一业务信息和所述第二业务信息的排列顺序处理所述报文。
第六方面,提供了一种业务处理装置,应用于网络设备,所述装置包括:
处理模块,用于生成包括选项字段的报文,所述选项字段中携带有第一业务信息和第二业务信息,所述第一业务信息对应第一业务,所述第二业务信息对应第二业务,所述第一业务与所述第二业务不同;
收发模块,用于发送所述报文。
可选的,所述选项字段中包括第一子字段和第二子字段,所述第一子字段中携带有所述第一业务信息,所述第二子字段中携带有所述第二业务信息。
可选的,所述第一子字段的长度和所述第二子字段的长度相同。
可选的,所述选项字段中还包括第三子字段,所述第三子字段中携带有第三业务信息,所述第三业务信息对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同;
所述第一子字段、所述第二子字段和所述第三子字段依次排列,所述第三子字段的长度与所述第一子字段的长度不同。
可选的,所述第三子字段的长度大于所述第一子字段的长度。
可选的,所述第三子字段的长度小于所述第一子字段的长度。
可选的,所述第三子字段的长度等于所述第一子字段的长度。
可选的,所述第一子字段的长度和所述第二子字段的长度均为2n比特,n为大于或等于3的整数。
可选的,所述第一子字段的长度和所述第二子字段的长度均为8比特、16比特、32比特或64比特。
可选的,所述选项字段中还包括第四子字段,所述第四子字段指示所述第一子字段的长 度和所述第二子字段的长度。
可选的,所述选项字段中包括业务标志子字段,所述业务标志子字段对应m个业务,所述m个业务互不相同,所述m个业务包括所述第一业务和所述第二业务,所述业务标志子字段指示所述选项字段中携带有所述第一业务信息和所述第二业务信息,m为大于或等于2的整数。
可选的,所述业务标志子字段中包括m个标志位,所述m个标志位一一对应所述m个业务;所述m个标志位中的第一标志位对应所述第一业务,所述m个标志位中的第二标志位对应所述第二业务,所述第一标志位指示所述选项字段中携带有所述第一业务信息,所述第二标志位指示所述选项字段中携带有所述第二业务信息。
可选的,所述第一标志位和所述第二标志位按序排列,所述第一业务信息和所述第二业务信息的按序排列,所述第一业务信息和所述第二业务信息的排列顺序与所述第一标志位和所述第二标志位的排列顺序对应。
可选的,所述第一业务信息为基础业务信息,所述选项字段中包括业务标志子字段,所述业务标志子字段对应m个业务,所述m个业务互不相同,所述m个业务包括所述第二业务,所述业务标志子字段指示所述选项字段中携带有所述第二业务信息,m为正整数。
可选的,所述第一业务与所述m个业务均不同。
可选的,所述业务标志子字段指示所述选项字段中携带有所述m个业务中的k个业务的业务信息,所述k个业务的业务信息均位于所述基础业务信息之后。
可选的,所述选项字段中携带所述基础业务信息的子字段为基础子字段,所述选项字段中包括所述k个业务一一对应的k个业务子字段,所述k个业务子字段位于所述基础子字段之后。
可选的,所述基础子字段的长度为定值。
可选的,m≥4。
可选的,所述选项字段中还包括预留子字段,所述预留子字段与所述业务标志子字段相邻。
可选的,所述预留子字段的最低比特位与所述业务标志子字段的最高比特位相邻。
可选的,所述选项字段中包括类型子字段和长度子字段,所述类型子字段指示所述选项字段的类型,所述长度子字段指示所述选项字段的长度。
可选的,所述报文为IPv6报文,所述报文中包括IPv6扩展头,所述IPv6扩展头中包括所述选项字段。
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。
可选的,所述第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。其中,所述随流检测业务包括IFIT业务或IOAM业务。
可选的,所述第一业务包括切片业务,所述第一业务信息包括切片标识。
可选的,所述第一业务包括随流检测业务,所述第一业务信息包括流标识。
可选的,所述第一业务包括APN业务,所述第一业务信息包括用户组标识和应用组标识中的至少一个。
可选的,所述第一业务包括DetNet业务,所述第一业务信息包括路径标识。
可选的,所述网络设备支持所述第一业务,所述处理模块,还用于根据所述第一业务信息处理所述报文。
可选的,所述网络设备还支持所述第二业务,所述处理模块,还用于根据所述第二业务信息处理所述报文。
可选的,所述网络设备不支持所述第二业务,所述处理模块,还用于跳过所述第二业务信息。
可选的,所述处理模块,用于执行以下至少一项:根据所述第一业务信息统计所述报文;根据所述第一业务信息转发所述报文。
可选的,所述处理模块,具体用于根据所述第一业务信息和所述第一业务关联的本地配置信息处理所述报文。
可选的,所述第一业务信息和所述第二业务信息按序排列,所述处理模块,具体用于按照所述第一业务信息和所述第二业务信息的排列顺序处理所述报文。
可选的,所述收发模块,还用于接收控制器发送的指示信息,所述指示信息用于指示所述网络设备生成包括所述选项字段的报文;
所述处理模块,具体用于根据所述指示信息生成包括所述选项字段的所述报文。
第七方面,提供了一种业务处理装置,应用于控制器,所述装置包括:
收发模块,用于向头节点发送指示信息,所述指示信息用于指示所述头节点生成包括选项字段的报文,所述选项字段中携带有第一业务信息和第二业务信息,所述第一业务信息对应第一业务,所述第二业务信息对应第二业务,所述第一业务与所述第二业务不同。
可选的,所述选项字段中包括第一子字段和第二子字段,所述第一子字段中携带有所述第一业务信息,所述第二子字段中携带有所述第二业务信息。
可选的,所述第一子字段的长度和所述第二子字段的长度相同。
可选的,所述选项字段中还包括第三子字段,所述第三子字段中携带有第三业务信息,所述第三业务信息对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同;
所述第一子字段、所述第二子字段和所述第三子字段依次排列,所述第三子字段的长度与所述第一子字段的长度不同。
可选的,所述第三子字段的长度大于所述第一子字段的长度。
可选的,所述第三子字段的长度小于所述第一子字段的长度。
可选的,所述第三子字段的长度等于所述第一子字段的长度。
可选的,所述第一子字段的长度和所述第二子字段的长度均为2n比特,n为大于或等于3的整数。
可选的,所述选项字段中还包括第四子字段,所述第四子字段指示所述第一子字段的长度和所述第二子字段的长度。
可选的,所述选项字段中包括业务标志子字段,所述业务标志子字段对应m个业务,所述m个业务互不相同,所述m个业务包括所述第一业务和所述第二业务,所述业务标志子字段指示所述选项字段中携带有所述第一业务信息和所述第二业务信息,m为大于或等于2的整数。
可选的,所述业务标志子字段中包括m个标志位,所述m个标志位一一对应所述m个业务;所述m个标志位中的第一标志位对应所述第一业务,所述m个标志位中的第二标志位 对应所述第二业务,所述第一标志位指示所述选项字段中携带有所述第一业务信息,所述第二标志位指示所述选项字段中携带有所述第二业务信息。
可选的,所述第一标志位和所述第二标志位按序排列,所述第一业务信息和所述第二业务信息的按序排列,所述第一业务信息和所述第二业务信息的排列顺序与所述第一标志位和所述第二标志位的排列顺序对应。
可选的,所述第一业务信息为基础业务信息,所述选项字段中包括业务标志子字段,所述业务标志子字段对应m个业务,所述m个业务互不相同,所述m个业务包括所述第二业务,所述业务标志子字段指示所述选项字段中携带有所述第二业务信息,m为正整数。
可选的,所述第一业务与所述m个业务均不同。
可选的,所述业务标志子字段指示所述选项字段中携带有所述m个业务中的k个业务的业务信息,所述k个业务的业务信息均位于所述基础业务信息之后。
可选的,所述选项字段中携带所述基础业务信息的子字段为基础子字段,所述选项字段中包括所述k个业务一一对应的k个业务子字段,所述k个业务子字段位于所述基础子字段之后。
可选的,所述基础子字段的长度为定值。
可选的,m≥4。
可选的,所述选项字段中还包括预留子字段,所述预留子字段与所述业务标志子字段相邻。
可选的,所述预留子字段的最低比特位与所述业务标志子字段的最高比特位相邻。
可选的,所述选项字段中包括类型子字段和长度子字段,所述类型子字段指示所述选项字段的类型,所述长度子字段指示所述选项字段的长度。
可选的,所述指示信息用于指示所述头节点生成包括IPv6扩展头的IPv6报文,所述IPv6扩展头中包括所述选项字段。
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。
可选的,所述第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。其中,所述随流检测业务包括IFIT业务或IOAM业务。
可选的,所述第一业务包括切片业务,所述第一业务信息包括切片标识。
可选的,所述第一业务包括随流检测业务,所述第一业务信息包括流标识。
可选的,所述第一业务包括APN业务,所述第一业务信息包括用户组标识和应用组标识中的至少一个。
可选的,所述第一业务包括DetNet业务,所述第一业务信息包括路径标识。
第八方面,提供了一种业务处理装置,应用于头节点,所述装置包括:
收发模块,用于接收控制器发送的指示信息,所述指示信息用于指示所述头节点生成包括选项字段的报文,所述选项字段中携带有第一业务信息和第二业务信息,所述第一业务信息对应第一业务,所述第二业务信息对应第二业务,所述第一业务与所述第二业务不同;
处理模块,用于根据所述指示信息生成包括所述选项字段的报文。
可选的,所述选项字段中包括第一子字段和第二子字段,所述第一子字段中携带有所述第一业务信息,所述第二子字段中携带有所述第二业务信息。
可选的,所述第一子字段的长度和所述第二子字段的长度相同。
可选的,所述选项字段中还包括第三子字段,所述第三子字段中携带有第三业务信息,所述第三业务信息对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同;
所述第一子字段、所述第二子字段和所述第三子字段依次排列,所述第三子字段的长度与所述第一子字段的长度不同。
可选的,所述第三子字段的长度大于所述第一子字段的长度。
可选的,所述第三子字段的长度小于所述第一子字段的长度。
可选的,所述第三子字段的长度等于所述第一子字段的长度。
可选的,所述第一子字段的长度和所述第二子字段的长度均为2n比特,n为大于或等于3的整数。
可选的,所述选项字段中还包括第四子字段,所述第四子字段指示所述第一子字段的长度和所述第二子字段的长度。
可选的,所述选项字段中包括业务标志子字段,所述业务标志子字段对应m个业务,所述m个业务互不相同,所述m个业务包括所述第一业务和所述第二业务,所述业务标志子字段指示所述选项字段中携带有所述第一业务信息和所述第二业务信息,m为大于或等于2的整数。
可选的,所述业务标志子字段中包括m个标志位,所述m个标志位一一对应所述m个业务;所述m个标志位中的第一标志位对应所述第一业务,所述m个标志位中的第二标志位对应所述第二业务,所述第一标志位指示所述选项字段中携带有所述第一业务信息,所述第二标志位指示所述选项字段中携带有所述第二业务信息。
可选的,所述第一标志位和所述第二标志位按序排列,所述第一业务信息和所述第二业务信息的按序排列,所述第一业务信息和所述第二业务信息的排列顺序与所述第一标志位和所述第二标志位的排列顺序对应。
可选的,所述第一业务信息为基础业务信息,所述选项字段中包括业务标志子字段,所述业务标志子字段对应m个业务,所述m个业务互不相同,所述m个业务包括所述第二业务,所述业务标志子字段指示所述选项字段中携带有所述第二业务信息,m为正整数。
可选的,所述第一业务与所述m个业务均不同。
可选的,所述业务标志子字段指示所述选项字段中携带有所述m个业务中的k个业务的业务信息,所述k个业务的业务信息均位于所述基础业务信息之后。
可选的,所述选项字段中携带所述基础业务信息的子字段为基础子字段,所述选项字段中包括所述k个业务一一对应的k个业务子字段,所述k个业务子字段位于所述基础子字段之后。
可选的,所述基础子字段的长度为定值。
可选的,m≥4。
可选的,所述选项字段中还包括预留子字段,所述预留子字段与所述业务标志子字段相邻。
可选的,所述预留子字段的最低比特位与所述业务标志子字段的最高比特位相邻。
可选的,所述选项字段中包括类型子字段和长度子字段,所述类型子字段指示所述选项字段的类型,所述长度子字段指示所述选项字段的长度。
可选的,所述指示信息用于指示所述头节点生成包括IPv6扩展头的IPv6报文,所述IPv6扩展头中包括所述选项字段,所述处理模块,用于根据所述指示信息生成包括所述IPv6扩展头的IPv6报文。
可选的,所述IPv6扩展头包括HBH和DOH中的任意一种。
可选的,所述第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个;或者,所述第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。其中,所述随流检测业务包括IFIT业务或IOAM业务。
可选的,所述第一业务包括切片业务,所述第一业务信息包括切片标识。
可选的,所述第一业务包括随流检测业务,所述第一业务信息包括流标识。
可选的,所述第一业务包括APN业务,所述第一业务信息包括用户组标识和应用组标识中的至少一个。
可选的,所述第一业务包括DetNet业务,所述第一业务信息包括路径标识。
上述第五方面至第八方面中的所述模块可以基于软件、硬件或软件和硬件的结合实现,且所述模块可以基于具体实现进行任意组合或分割。
第九方面,提供了一种业务处理装置,包括存储器和处理器;
存储器用于存储计算机程序;
处理器用于执行存储器中存储的计算机程序以使得该业务处理装置执行如上述第一方面或第一方面的任一可选方式所提供的业务处理方法。
第十方面,提供了一种业务处理装置,包括存储器和处理器;
存储器用于存储计算机程序;
处理器用于执行存储器中存储的计算机程序以使得该业务处理装置执行如上述第二方面或第二方面的任一可选方式所提供的业务处理方法。
第十一方面,提供了一种业务处理装置,包括:存储器和处理器;
存储器用于存储计算机程序;
处理器用于执行存储器中存储的计算机程序以使得该业务处理装置执行如上述第三方面所提供的业务处理方法。
第十二方面,提供了一种业务处理装置,包括:存储器和处理器;
存储器用于存储计算机程序;
处理器用于执行存储器中存储的计算机程序以使得该业务处理装置执行如上述第四方面所提供的业务处理方法。
第十三方面,提供了一种业务处理系统,包括第一网络设备和第二网络设备;
第一网络设备,用于生成包括选项字段的报文,并向第二网络设备发送该报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同;
第二网络设备,用于接收该报文,并根据第一业务信息处理该报文。
可选的,该业务处理系统还包括:控制器,用于向第一网络设备发送指示信息,该指示信息用于指示第一网络设备生成包括选项字段的报文;
对应的,第一网络设备,用于根据该指示信息生成包括该选项字段的报文。
可选的,第一网络设备是该报文的转发路径上的头节点,第二网络设备是该转发路径上 的中间节点或尾节点。
可选的,第一网络设备是该报文的转发路径上的头节点或中间节点,第二网络设备是该转发路径上的尾节点。
可选的,上述第五方面或第五方面的任一可选实现方式所提供的业务处理装置可以作为报文的转发路径上的中间节点或尾节点,上述第六方面或第六方面的任一可选实现方式所提供的业务处理装置可以作为报文的转发路径上的头节点,上述第七方面或第七方面的任一可选实现方式所提供的业务处理装置可以作为控制器。
可选的,上述第五方面或第五方面的任一可选实现方式所提供的业务处理装置可以作为尾节点,上述第六方面或第六方面的任一可选实现方式所提供的业务处理装置可以作为头节点或中间节点,上述第七方面或第七方面的任一可选实现方式所提供的业务处理装置可以作为控制器。
可选的,上述第七方面或第七方面的任一可选实现方式所提供的业务处理装置可以作为控制器,上述第八方面或第八方面的任一可选实现方式所提供的业务处理装置可以作为头节点。
可选的,上述第九方面所提供的业务处理装置可以作为报文的转发路径上的中间节点或尾节点,上述第十方面所提供的业务处理装置,该控制器包括如上述第十一方面所提供的业务处理装置可以作为报文的转发路径上的头节点。
可选的,上述第九方面所提供的业务处理装置可以作为报文的转发路径上的尾节点,上述第十方面所提供的业务处理装置可以作为报文的转发路径上的头节点或中间节点,上述第十一方面所提供的业务处理装置可以作为控制器。
可选的,上述第十一方面所提供的业务处理装置可以作为控制器,上述第十二方面所提供的业务处理装置可以作为报文的转发路径上的头节点。
第十四方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,该计算机程序被执行时,实现如上述第一方面或第一方面的任一可选方式所提供的业务处理方法,或者实现如上述第二方面或第二方面的任一可选方式所提供的业务处理方法,或者实现如上述第三方面或第三方面的任一可选方式所提供的所提供的业务处理方法,或者实现如上述第四方面或第四方面的任一可选方式所提供的所提供的业务处理方法。
第十五方面,提供了一种计算机程序产品,该计算机程序产品包括程序或代码,该程序或代码被执行时,实现如上述第一方面或第一方面的任一可选方式所提供的业务处理方法,或者实现如上述第二方面或第二方面的任一可选方式所提供的业务处理方法,或者实现如上述第三方面或第三方面的任一可选方式所提供的所提供的业务处理方法,或者实现如上述第四方面或第四方面的任一可选方式所提供的所提供的业务处理方法。
第十六方面,提供了一种芯片,该芯片包括可编程逻辑电路和/或程序指令,该芯片运行时,实现如上述第一方面或第一方面的任一可选方式所提供的业务处理方法,或者实现如上述第二方面或第二方面的任一可选方式所提供的业务处理方法,或者实现如上述第三方面或第三方面的任一可选方式所提供的所提供的业务处理方法,或者实现如上述第四方面或第四方面的任一可选方式所提供的所提供的业务处理方法。
第十七方面,提供了一种数据结构,该数据结构包括选项字段,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第 一业务与第二业务不同。也即,同一个选项字段中携带有至少两个不同业务的业务信息。
可选的,该选项字段中包括第一子字段和第二子字段,第一子字段中携带有第一业务信息,第二子字段中携带有第二业务信息。
可选的,第一子字段的长度和第二子字段的长度相同。
可选的,该选项字段中还包括第三子字段,第三子字段中携带有第三业务信息,第三业务信息对应第三业务,第一业务、第二业务和第三业务互不相同;第一子字段、第二子字段和第三子字段依次排列,第三子字段的长度与第一子字段的长度不同。
可选的,第三子字段的长度大于第一子字段的长度。
可选的,第三子字段的长度小于第一子字段的长度。
可选的,第三子字段的长度等于第一子字段的长度。
可选的,第一子字段的长度和第二子字段的长度均为2n比特,n为大于或等于3的整数。
可选的,该选项字段中还包括第四子字段,第四子字段指示第一子字段的长度和第二子字段的长度。
可选的,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第一业务和第二业务,该业务标志子字段指示该选项字段中携带有第一业务信息和第二业务信息,m为大于或等于2的整数。
可选的,该业务标志子字段中包括m个标志位,该m个标志位一一对应m个业务;该m个标志位中的第一标志位对应第一业务,该m个标志位中的第二标志位对应第二业务,第一标志位指示该选项字段中携带有第一业务信息,第二标志位指示该选项字段中携带有第二业务信息。
可选的,第一标志位和第二标志位按序排列,第一业务信息和第二业务信息的按序排列,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位的排列顺序对应。
可选的,第一业务信息为基础业务信息,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第二业务,该业务标志子字段指示该选项字段中携带有第二业务信息,m为正整数。
可选的,第一业务与该m个业务均不同。
可选的,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务的业务信息均位于基础业务信息之后。
可选的,该选项字段中携带该基础业务信息的子字段为基础子字段,该选项字段中包括该k个业务一一对应的k个业务子字段,该k个业务子字段位于该基础子字段之后。
可选的,该基础子字段的长度为定值。
可选的,m≥4。
可选的,该选项字段中还包括预留子字段,该预留子字段与该业务标志子字段相邻。
可选的,预留子字段的最低比特位与业务标志子字段的最高比特位相邻。
可选的,该选项字段中包括类型子字段和长度子字段,该类型子字段指示该选项字段的类型,该长度子字段指示该选项字段的长度。
上述第二方面至第十七方面的技术效果可以参考第一方面,在此不再赘述。
本申请提供的技术方案带来的有益效果是:
本申请提供的技术方案,由于报文的同一个选项字段中携带有第一业务信息和第二业务 信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同。也即,同一个报文的同一个选项字段中携带有至少两个不同业务的业务信息。换句话说,同一个报文的同一个选项字段能够携带至少两个不同业务的业务信息。因此,无需针对每个业务分别扩展选项字段,相比于目前针对每个业务分别扩展选项字段的方案,可以节省选项字段中的一些固定内容所带来的开销,有助于降低报文开销。
此外,目前针对每个业务分别扩展选项字段的方案中,每个选项字段中通常还包括一些用于对齐或未来扩展的可选子字段,这些可选子字段也容易导致报文的开销较大。本申请提供的技术方案中,同一个报文的同一个选项字段能够携带至少两个不同业务的业务信息,相比于目前针对每个业务分别扩展选项字段的方案,还可以节省一些可选子字段所带来的开销,降低报文开销。
此外,网络设备获取(例如接收或生成)到报文之后,通常需要处理报文,例如转发报文或者针对报文执行一些业务处理。目前针对每个业务分别扩展选项字段的方案中,报文的长度较大,导致网络设备处理报文的复杂度较高,网络设备的转发性能较低。本申请提供的技术方案中,同一个报文的同一个选项字段能够携带至少两个不同业务的业务信息,因此能够减小报文的长度,简化网络设备处理报文的复杂度,提升网络设备的转发性能。
附图说明
图1是一种选项字段的结构示意图;
图2是另一种选项字段的结构示意图;
图3是再一种选项字段的结构示意图;
图4是图3所示的选项字段中的选项数据子字段的一种结构示意图;
图5是图3所示的选项字段中的选项数据子字段的另一种结构示意图;
图6是图3所示的选项字段中的选项数据子字段的再一种结构示意图;
图7是图3所示的选项字段中的选项数据子字段的又一种结构示意图;
图8是又一种选项字段的结构示意图;
图9是又一种选项字段的结构示意图;
图10是又一种选项字段的结构示意图;
图11是本申请实施例提供的一种应用场景的示意图;
图12是本申请实施例提供的另一种应用场景的示意图;
图13是本申请实施例提供的一种业务处理方法的流程图;
图14是本申请实施例提供的一种选项字段的结构示意图;
图15是本申请实施例提供的另一种选项字段的结构示意图;
图16是本申请实施例提供的再一种选项字段的结构示意图;
图17是本申请实施例提供的又一种选项字段的结构示意图;
图18是本申请实施例提供的一种业务标志子字段的结构示意图;
图19是本申请实施例提供的另一种业务标志子字段的结构示意图;
图20是本申请实施例提供的另一种业务处理方法的流程图;
图21是本申请实施例提供的再一种业务处理方法的流程图;
图22是本申请实施例提供的又一种业务处理方法的流程图;
图23是本申请实施例提供的一种网络设备处理报文的流程图;
图24是本申请实施例提供的一种业务处理方法的示意图;
图25是本申请实施例提供的一种选项字段的具体结构示意图;
图26是本申请实施例提供的一种业务处理装置的结构示意图;
图27是本申请实施例提供的另一种业务处理装置的结构示意图;
图28是本申请实施例提供的再一种业务处理装置的结构示意图;
图29是本申请实施例提供的又一种业务处理装置的结构示意图;
图30是本申请实施例提供的又一种业务处理装置的结构示意图;
图31是本申请实施例提供的又一种业务处理装置的结构示意图;
图32是本申请实施例提供的又一种业务处理系统的结构示意图。
具体实施方式
下面将结合附图对本申请实施方式作进一步地详细描述。
在目前的网络技术发展中,能够针对IPv6报文开展多个业务。例如,这些业务可以包括切片业务、随流检测业务、APN业务以及DetNet业务等。目前,通常在IPv6报文的IPv6扩展头中针对上述各个业务分别扩展不同的选项字段来携带对应业务的业务信息,使得IPv6报文能够支持上述各个业务。其中,针对不同业务扩展的选项字段相互独立。
需要说明的是,在本申请中,切片业务指的是网络切片相关的业务。随流检测业务指的是随流检测相关的业务。APN业务指的是应用感知网络相关的业务。DetNet业务指的是确定性网络相关的业务。其中,随流检测业务可以包括IFIT业务或IOAM业务等。在不同的网络场景中,切片业务、随流检测业务、APN业务以及DetNet业务的称呼可能不同。例如,在一些网络场景中,切片业务也称为虚拟传输网络(virtual transport network,VTN)业务。
下面对上述业务的业务信息,以及目前携带上述业务的业务信息的选项字段进行介绍。
示例的,切片业务的业务信息可以包括切片标识(slice identification,slice ID)。对于VTN业务,切片标识可以是VTN资源标识(VTN resource ID)。目前针对VTN业务扩展的选项字段可以参考图1。如图1所示,该选项字段包括类型子字段、长度子字段和VTN资源ID子字段。类型子字段的长度和长度子字段的长度为8比特,VTN资源ID子字段的长度为4字节。类型子字段用于指示该选项字段的类型。长度子字段用于指示该选项字段的数据字段(例如VTN资源ID子字段)的长度。VTN资源ID子字段用于携带VTN资源ID。
示例的,IFIT业务的业务信息可以包括流标识(flow identification,flow ID)、丢包测量(packet loss measurement)标识、时延测量(packet delay measurement)标识等,流标识也可以称为流标签、流监测标识(flow monitoring identification,FMonID)等,指示要测量的流。目前针对IFIT业务扩展的选项字段可以参考图2。如图2所示,该选项字段包括类型子字段、长度子字段、FMonID子字段、L标志位、D标志位和预留子字段。类型子字段的长度和长度子字段的长度为8比特,FMonID子字段的长度为20比特,预留子字段的长度为10比特。类型子字段用于指示该选项字段的类型。长度子字段用于指示该选项字段的数据字段(包括FMonID子字段、L标志位、D标志位和预留子字段)的长度。FMonID子字段用于携带FMonID。L标志位可以用于携带丢包测量标识,以指示是否进行丢包测量(例如L标志位中的值为1则表示需要进行丢包测量,L标志位中的值为0则表示不需要进行丢包测量)。D标志位用 于携带时延测量标识,以指示是否进行时延测量(例如D标志位中的值为1则表示需要进行时延测量,D标志位中的值为1则表示不需要进行时延测量)。在一些实施例中,L标志位用于携带丢包测量标识和时延测量标识,L标志位中的值为1则表示需要进行丢包测量和时延测量,L标志位中的值为0则表示不需要进行丢包测量和时延测量。
示例的,IOAM业务的业务信息可以包括流标识,指示要测量的流。目前针对IOAM业务扩展的选项字段可以参考图3。如图3所示,该选项字段包括类型子字段、长度子字段、预留子字段、IOAM类型子字段和选项数据子字段。类型子字段的长度、长度子字段的长度、预留子字段的长度和IOAM类型子字段的长度均为8比特,选项数据子字段的长度可变。类型子字段用于指示该选项字段的类型。长度子字段用于指示该选项字段的长度。IOAM类型子字段用于指示该选项数据子字段的类型。选项数据子字段用于携带IOAM数据。IOAM数据可以包括流标识、报文标识、报文的转发路径上的IOAM节点(指的是支持IOAM的节点)的IOAM数据等。任一IOAM节点的IOAM数据可以包括该IOAM节点的节点标识、报文进入该IOAM节点的入端口、报文从该IOAM节点输出的出端口、报文进入该IOAM节点的入口时间戳、报文从该IOAM节点输出的出口时间戳、报文在该IOAM节点的传输时延等。
其中,选项数据子字段的类型可以包括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增量跟踪选项类型时,该选项数据子字段的格式可以如图4所示。当选项数据子字段的类型为IOAM POT选项类型时,该选项数据子字段的格式可以如图5所示。当选项数据子字段的类型为IOAM E2E选项类型时,该选项数据子字段的格式可以如图6所示。当选项数据子字段的类型为IOAM DEX选项类型时,该选项数据子字段的格式可以如图7所示。
参考图4,当选项数据子字段的类型为IOAM预分配跟踪选项类型或IOAM增量跟踪选项类型时,该选项数据子字段包括名称空间(namespace)ID子字段、节点长度(nodelen)子字段、标志(flags)子字段、剩余长度(remaininglen)子字段、IOAM跟踪类型子字段、预留子字段和p个节点数据表(node data list)子字段。名称空间ID子字段的长度为16比特,节点长度子字段的长度为5比特,标志子字段的长度为4比特,剩余长度子字段的长度为7比特,IOAM跟踪类型子字段的长度为24比特,预留子字段的长度为8比特,节点数据表字段的长度为32比特。其中,名称空间ID子字段用于携带名称空间ID。节点长度子字段用于指示IOAM节点以4字节的倍数在该选项数据子字段中添加数据。剩余长度子字段用于指示以IOAM节点以剩余4字节的倍数在该选项数据子字段中添加数据。IOAM跟踪类型子字段用于指示节点数据表中的数据类型。p个节点数据表子字段对应p个IOAM节点,每个节点数据表子字段用于携带对应的IOAM节点的IOAM数据,这些IOAM数据包括节点标识、报文进入该IOAM节点的入口时间戳、报文从该IOAM节点输出的出口时间戳等。
参考图5,当选项数据子字段的类型为IOAM POT选项类型时,该选项数据子字段包括名称空间ID子字段、IOAM POT类型子字段、IOAM POT标志子字段和POT选项数据子字段。名称空间ID子字段的长度为16比特,IOAM POT类型子字段的长度和IOAM POT标志 子字段的长度均为8比特,POT选项数据子字段的长度可变。其中,名称空间ID子字段用于携带名称空间ID。IOAM POT类型子字段用于携带IOAM POT类型。IOAM POT标志子字段用于携带IOAM POT标志,POT选项数据子字段用于携带IOAM POT数据,IOAM POT数据包括报文标识等。
参考图6,当选项数据子字段的类型为IOAM E2E选项类型时,该选项数据子字段包括名称空间ID子字段、IOAM E2E类型子字段和E2E选项数据子字段。名称空间ID子字段的长度和IOAM E2E类型子字段的长度均为16比特,E2E选项数据子字段的长度可变。其中,名称空间ID子字段用于携带名称空间ID。IOAM E2E类型子字段用于携带IOAM E2E类型。E2E选项数据子字段用于携带IOAM E2E数据,IOAM E2E数据包括包组序列号(sequence numbe)以用于检测丢包,包重新排序或组内包重复等,IOAM E2E数据还可以包括报文进入IOAM节点的入口时间戳、报文从IOAM节点输出的出口时间戳等以用于检测报文传输时延。
参考图7,当选项数据子字段的类型为IOAM DEX选项类型时,该选项数据子字段包括名称空间ID子字段、标志子字段、IOAM跟踪类型子字段、预留子字段、流标识子字段和序列号子字段。名称空间ID子字段的长度和标志子字段的长度均为16比特,IOAM跟踪类型子字段的长度为24比特,预留子字段的长度为8比特,流标识子字段的长度和序列号子字段的长度均为32比特。名称空间ID子字段用于携带IOAM名称空间。标志子字段用于携带IOAM DEX标志。IOAM类型子字段用于指示哪些数据字段应该被输出。流标识字段用于携带流标识。序列号子字段用于携带包组序列号以用于检测丢包,包重新排序,组内包重复等。
示例的,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业务扩展的选项字段可以参考图8。如图8所示,该选项字段包括APN ID类型子字段、标志子字段、APN参数类型子字段、APN ID子字段、意图(intent)子字段、带宽要求参数子字段、时延要求参数子字段、抖动要求参数子字段和丢包率要求参数子字段。APN ID类型子字段的长度和标志子字段的长度均为8比特,APN参数类型子字段的长度为16比特,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子字段中可以包括应用组标识空间和用 户组标识空间,还可以包括预留空间,该应用组标识空间用于携带应用组标识,该用户组标识空间用于携带用户组标识,应用组标识空间的长度和用户组标识空间的长度均可变。意图子字段为可选子字段,指示对网络的一组服务需求。带宽要求参数子字段用于携带带宽要求参数。时延要求参数子字段用于携带时延要求参数;例如,时延要求参数子字段包括24比特的时延要求空间和8比特的预留空间,该时延要求空间用于携带时延要求参数。抖动要求参数子字段用于携带抖动要求参数;例如,抖动要求参数子字段包括24比特的抖动要求空间和8比特的预留空间,该抖动要求空间用于携带抖动要求参数。丢包率要求参数子字段用于携带丢包率要求参数;例如,丢包率要求参数子字段包括24比特的丢包率要求空间和8比特的预留空间,该丢包率要求空间用于携带丢包率要求参数。
示例的,DetNet业务的业务信息可以包括路径标识(path identification,path ID),指示报文所要经过的转发路径。目前针对DetNet业务扩展的选项字段可以参考图9或图10。图9所示的选项字段为DetNet严格路径(strict path)选项字段。如图9所示,该选项字段包括类型子字段、长度子字段和路径标识子字段;类型子字段的长度和长度子字段的长度均为8比特,路径标识子字段的长度为16比特;类型子字段用于指示该选项字段的类型;长度子字段用于指示该选项字段的长度;路径标识子字段用于携带路径标识,该路径标识指示一严格路径。图10所示的选项字段为DetNet松散路径(loose path)选项字段。如图10所示,该选项字段包括类型子字段、长度子字段、源自治系统(autonomous system,AS)子字段和路径标识子字段;类型子字段的长度和长度子字段的长度均为8比特,源AS子字段的长度为16比特,路径标识子字段的长度为32比特;类型子字段用于指示该选项字段的类型;长度子字段用于指示该选项字段的长度;源AS子字段用于指示路径起源的AS;路径标识子字段用于携带路径标识,该路径标识指示一松散路径。
目前,当某一IPv6报文需要同时支持切片业务、IFIT业务和APN业务时,需要在该IPv6报文的IPv6扩展头中,针对切片业务、IFIT业务和APN业务分别扩展选项字段(例如,需要扩展三个选项字段,该三个选项字段与切片业务、IFIT业务、APN业务这三个业务一一对应),并在切片业务对应的选项字段中携带该切片业务的业务信息,在IFIT业务对应的选项字段中携带该IFIT业务的业务信息,在APN业务对应的选项字段中携带该APN业务的业务信息。例如,需要针对切片业务扩展如图1所示的选项字段,针对IFIT业务扩展如图2所示的选项字段,针对APN业务扩展如图8所示的选项字段。
但是,根据协议规定,选项字段中应当包括类型子字段、长度子字段等用于描述该选项字段的固定内容(例如图1至图3、图9至10所示的选项字段中均包括类型子字段和长度子字段)。在针对每个业务分别扩展选项字段时,扩展的每个选项字段中均包括这些固定内容,导致IPv6扩展头的长度较大,IPv6扩展头的开销较大,IPv6报文的开销较大。此外,选项字段中通常还包括一些用于对齐或未来扩展的可选子字段(例如图2和图3所示的选项字段中均包括预留子字段,该预留子字段可以用于对齐或未来扩展),这些可选子字段也会导致IPv6扩展头的长度较大,从而导致IPv6报文的开销较大。例如,当某一IPv6报文需要同时支持切片业务、IFIT业务和APN业务时,按照目前的处理方式,需要在该IPv6报文的IPv6扩展头中扩展三个选项字段,IPv6扩展头的长度将高达至少70字节。此外,网络设备在转发IPv6报文的过程中需要处理该IPv6报文,IPv6扩展头的长度增大,容易增加网络设备处理该IPv6报文的复杂度,导致网络设备的转发性能下降。
本申请实施例提供了一种技术方案,同一个选项字段能够携带至少两个不同业务的业务信息,相比于针对每个业务扩展分别扩展选项字段的方案,可以节省选项字段中的一些固定内容(例如类型子字段、长度子字段)所带来的开销,有助于降低报文开销。并且,还可以节省选项字段中的一些可选子字段所带来的开销。本申请实施例的技术方案能够减小报文的长度,简化网络设备处理报文的复杂度,提升网络设备的转发性能。
下面对本申请实施例的技术方案进行介绍。首先介绍本申请实施例的应用场景。
请参考图11,其示出了本申请实施例提供的一种应用场景的示意图。该应用场景提供一种通信网络,例如该通信网络是IPv6网络。该通信网络包括多个网络设备101~106(也即是网络设备101、网络设备102、网络设备103、网络设备104、网络设备105和网络设备106),网络设备101~106依次连接。网络设备101~106可以用于转发报文。例如,网络设备101~106中包括边缘网络设备,边缘网络设备可以用于工作站接入该通信网络,网络设备101~106可以用于在接入该通信网络的不同工作站之间进行转发报文,实现该不同工作站之间的通信。
其中,网络设备101~106中的每个网络设备可以是交换机、路由器(router)、虚拟交换机或虚拟路由器等设备。网络设备101~106可以是相同的网络设备,例如,网络设备101~106均是路由器。或者,网络设备101~106中的至少两个是不同的网络设备,例如,网络设备101~106中的一部分为路由器,另一部分为交换机。接入上述通信网络的工作站可以是主机、服务器、基站、虚拟机(virtual machine,VM)等,主机可以是智能手机、平板电脑、台式计算机或物联网(internet of things,IoT)设备等,本申请实施例对此不作限定。
通信网络中包括用于转发报文的转发路径,转发路径上可以包括多个网络设备。按照报文的转发方向,转发路径上的网络设备包括入口(ingress)设备、出口(egress)设备以及位于入口设备与出口设备之间的至少一个中转(transit)设备。报文通过入口设备流入转发路径,通过出口设备流出转发路径。根据转发路径的长短,转发路径上的中转设备的数量不同,或者转发路径上仅包括入口设备和出口设备,而不包括中转设备。在一些实施场景中,网络设备又称为网络节点、网关设备、路由节点或路由设备等;入口设备又称为首节点、首节点设备、头节点、头节点设备等;出口设备又称为尾节点、尾节点设备等;中转设备又称为中转节点、中间节点或中间节点设备等;转发路径也可以称为传输路径、通信链路、通信通路、通信隧道或隧道通路等。如图11所示,该通信网络中包括转发路径P,该转发路径P为:网络设备101—>网络设备102—>网络设备103—>网络设备104—>网络设备105—>网络设备106。网络设备101是该转发路径P的头节点,网络设备106是该转发路径P的尾节点,网络设备102~网络设备105均是该转发路径P的中间节点。
在本申请实施例中,同一个选项字段能够携带至少两个不同业务的业务信息,转发路径上的网络设备可以生成包括该选项字段的报文。例如,转发路径上的头节点在初始报文中添加该选项字段得到包括该选项字段的报文,或者,转发路径上的中间节点接收到的报文中包括该选项字段,该中间节点修改该报文得到包括该选项字段的报文。这里以头节点生成包括该选项字段的报文为例说明。头节点生成包括该选项字段的报文之后,可以向该头节点的下一跳设备发送该报文。该下一跳设备接收到包括该选项字段的报文之后,可以根据该选项字段中携带的业务信息处理该报文得到处理后的报文,该处理后的报文中包括该选项字段。该下一跳设备得到处理后的报文之后,可以向该下一跳设备的下一跳设备发送该处理后的报文。 该下一跳设备的下一跳设备接收到包括该选项字段的报文之后,可以根据该选项字段中携带的业务信息处理该报文。如此重复,直至包括该选项字段的报文被转发至尾节点。尾节点可以根据接收到的报文中的该选项字段中携带的业务信息处理该报文,尾节点还可以去除该报文中的该选项字段。例如图11所示,作为头节点的网络设备101可以生成包括该选项字段的报文,并向网络设备102发送该报文。之后,包括该选项字段的报文依次经过网络设备102、网络设备103、网络设备104和网络设备105被转发至作为尾节点的网络设备106,网络设备101~网络设备106中的每个网络设备可以根据接收到的报文中的该选项字段中携带的业务信息处理该报文。作为尾节点的网络设备106还可以去除该报文中的该选项字段。
在本申请的一种具体实施方式中,头节点维护有所述选项字段,头节点根据所述选项字段生成包括所述选项字段的报文。或者,在本申请的另一种具体实施方式中,头节点根据控制器发送的指示信息生成包括所述选项字段的报文。在该另一种具体实施方式中,本申请实施例提供的应用场景中还包括控制器,控制器与头节点连接,控制器可以向头节点发送指示信息,以指示头节点生成包括所述选项字段的报文。示例的,请参考图12,其示出了本申请实施例提供的另一种应用场景的示意图,该应用场景提供一种通信网络,该通信网络还包括控制器100,控制器100与网络设备101连接。控制器100还可以与控制器102~控制器106中的至少一个(图12中未示出)连接,本申请实施例对此不作限定。
其中,控制器100可以融合网络管理、业务控制和网络分析等功能。控制器100可以是部署在服务器中的功能模块,或者是一台服务器,或者是由若干台服务器组成的服务器集群,或者是一个云计算服务中心,或者是其他具备网络控制功能的设备或模块。
控制器100可以生成指示信息,并向网络设备101发送该指示信息。网络设备101可以根据该指示信息生成包括所述选项字段的报文。可选的,该指示信息是该选项字段的指示信息(例如是该选项字段的标识),该指示信息指示该选项字段,网络设备101可以维护多个选项字段,网络设备101根据该指示信息在网络设备101维护的多个选项字段中确定该指示信息所指示的选项字段,进而生成包括该选项字段的报文。或者,该指示信息包括该选项字段的配置信息,网络设备101根据该指示信息生成该选项字段,进而生成包括该选项字段的报文。或者,该指示信息包括该选项字段,网络设备101根据该指示信息生成包括该选项字段的报文,本申请实施例对此不作限定。
需要指出的是,图11和图12所示的应用场景仅用于举例,并非用于限制本申请的技术方案。在实现过程中,控制器也可以集成在网络设备中,例如,控制器集成在头节点中。通信网络可能包括比图11和图12所示更多或更少的设备,可以根据需要配置网络设备的数量以及控制器的数量,本申请实施例对此不作限定。
以上是对本申请应用场景的介绍,下面介绍本申请的业务处理方法的实施例。
请参考图13,其示出了本申请实施例提供的一种业务处理方法的流程图。该方法可以应用于包括网络设备A和网络设备B的业务处理系统。示例的,该业务处理系统是如图11或图12所示的通信网络,网络设备A可以是网络设备101,网络设备B可以是网络设备102~网络设备106中的任意一个。如图13所示,该方法包括如下步骤S301至S304。
S301.网络设备A生成包括选项字段的报文A,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务 不同。
在一种具体实施方式中,网络设备A是头节点,网络设备A在来自接入网络设备A的工作站(例如主机)的初始报文中添加选项字段得到包括该选项字段的报文A。在另一种具体实施方式中,网络设备A是中间节点,网络设备A从网络设备A的上一跳设备接收到的报文B中包括该选项字段,网络设备A可以修改该报文B得到包括该选项字段的报文A。例如,网络设备A修改该报文B包括的该选项字段,具体的,网络设备A修改该报文B包括的该选项字段中携带的信息,本申请实施例对此不作限定。
在本申请实施例中,报文A可以为IPv6报文,报文A中包括IPv6扩展头,该选项字段可以位于该IPv6扩展头中。作为一个示例,网络设备A是头节点,网络设备A在初始报文中封装包括该选项字段的IPv6扩展头得到报文A;或者,初始报文中包括IPv6扩展头,网络设备A在初始报文的该IPv6扩展头中添加该选项字段得到报文A。作为另一个示例,网络设备A是中间节点,网络设备A从网络设备A的上一跳设备接收到的报文B中包括IPv6扩展头,该IPv6扩展头中包括该选项字段,网络设备A修改该IPv6扩展头得到报文A。
在IPv6技术中,IPv6扩展头可以包括HBH、DOH、路由头(routing header,RH)、分片头(fragment header,FH)等,并且,根据业务需要,一个IPv6报文中可以包括至少一个IPv6扩展头。在本申请实施例中,包括所述选项字段的IPv6扩展头可以为HBH或DOH。也即是,所述选项字段可以位于HBH或DOH中。例如,报文A中包括HBH,所述选项字段可以位于该HBH中。或者,报文A中包括DOH,所述选项字段可以位于该DOH中。作为一个示例,报文A中包括RH和两个DOH,该两个DOH中的一个DOH位于RH之前,另一个DOH位于RH之后(例如位于RH之前的DOH称为第一个DOH,位于RH之后的DOH称为第二个DOH),所述选项字段可以位于第一个DOH中,也可以位于第二个DOH中。其中,如果所述选项字段位于HBH中,接收到报文A的每个网络设备都可以根据所述选项字段处理报文A。如果所述选项字段位于第一个DOH中,接收到报文A且命中报文A的目的地址的每个网络设备都可以根据所述选项字段处理报文A。如果所述选项字段位于第二个DOH中,只需尾节点根据所述选项字段处理报文A。
在一种具体实施方式中,所述选项字段中可以包括第一子字段和第二子字段,第一子字段可以对应第一业务,第二子字段可以对应第二业务,第一子字段中携带有第一业务信息,第二子字段中携带有第二业务信息,这样使得所述选项字段中携带有第一业务信息和第二业务信息。其中,第一子字段的长度和第二子字段的长度均可以为定值,第一子字段的长度和第二子字段的长度可以相同。可选的,第一子字段的长度和第二子字段的长度均为2n比特,n为大于或等于3的整数。例如,n等于3、4、5或6,对应的,2n等于8、16、32或64。也即是,第一子字段的长度和第二子字段的长度均可以为8比特、16比特、32比特或64比特。作为一个具体的示例,第一子字段的长度和第二子字段的长度均为32比特。
在一种具体实施方式中,所述选项字段中还包括第三子字段,第三子字段中携带有第三业务信息,第三业务信息对应第三业务,第一业务、第二业务和第三业务互不相同。例如,第一业务是切片业务,第二业务是APN业务,第三业务是IFIT业务。其中,第一子字段、第二子字段和第三子字段可以依次排列,第三子字段的长度可变,并且第三子字段的长度与第一子字段的长度可以不同。例如,第三子字段的长度大于第一子字段的长度。在其他实施例中,第三子字段的长度也可以小于或等于第一子字段的长度,本申请实施例对此不作限定。
根据前述描述可知,第一子字段、第二子字段和第三子字段均用于携带业务信息,因此,第一子字段、第二子字段和第三子字段均可以称为业务子字段。在一些实施例中,业务子字段也被称为空间(space)或容器(container)。例如,第一子字段可以称为第一space或第一container,第二子字段可以称为第二space或第二container,第三子字段可以称为第三space或第三container。在一种具体实施方式中,所述选项字段中包括k个业务子字段,该k个业务子字段一一对应k个业务,该k个业务互不相同,k为正整数。该k个业务子字段可以依次排列,该k个业务子字段中的前k-1个业务子字段的长度可以相同,第k个业务子字段(也即是最后一个业务子字段)的长度与前k-1个业务子字段的长度可以不同。第一子字段和第二子字段可以是该前k-1个业务子字段中的两个业务子字段,第三子字段可以是该第k个业务子字段。
在一种具体实施方式中,所述选项字段中还包括第四子字段,第四子字段指示第一子字段的长度和第二子字段的长度。例如,第四子字段指示第一子字段的长度和第二子字段的长度均为32比特。第四子字段指示第一子字段的长度和第二子字段的长度指的是第四子字段中的值指示第一子字段的长度和第二子字段的长度。可选的,所述选项字段中包括k个业务子字段,该k个业务子字段中的前k-1个业务子字段中包括第一子字段和第二子字段,第四子字段可以指示该前k-1个业务子字段的长度,从而使得该第四子字段可以指示第一子字段的长度和第二子字段的长度。由于第四子字段指示业务子字段的长度,因此,第四子字段也可以称为长度标志子字段或长度指示子字段,本申请实施例对此不作限定。
在一种具体实施方式中,所述选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该m个业务互不相同,m为正整数,k为小于或等于m的整数。可选的,m≥4,例如m=8。
在一种具体实施方式,该业务标志子字段指示该选项字段中包括该k个业务一一对应的k个业务子字段,该k个业务子字段一一对应携带该k个业务的业务信息,从而该业务标志子字段指示该选项字段中携带有该k个业务的业务信息。其中,该k个业务子字段中的前k-1个业务子字段的长度可以相同,最后一个业务子字段的长度与前k-1个业务子字段的长度可以不同。在其他实施方式中,最后一个业务子字段的长度与前k-1个业务子字段的长度也可以相同,本申请实施例对此不作限定。在本申请实施例中,由于该业务标志子字段指示该选项字段中携带有业务信息,因此该业务标志子字段也可以称为业务指示子字段。
在一种具体实施方式中,该业务标志子字段中包括m个标志位,该m个标志位一一对应所述m个业务,每个标志位用于指示所述选项字段中是否携带该标志位对应业务的业务信息。例如,每个标志位中的值可以是0或1,“1”指示该选项字段中携带该标志位对应业务的业务信息,“0”指示该选项字段中未携带该标志位对应业务的业务信息。其中,该m个标志位可以按序排列,所述选项字段中携带的k个业务的业务信息也可以按序排列,该k个业务的业务信息的排列顺序与该m个标志位的排列顺序可以对应。例如,该k个业务的业务信息一一对应携带在k个业务子字段,该k个业务子字段按序排列,该k个业务子字段的排列顺序与该m个标志位的排列顺序对应。在本申请实施例中,该m个标志位可以按照从高位到低位的顺序排列,也可以按照从低位到高位的顺序排列。该k个业务子字段按照从靠近业务标志子字段到远离该业务标志子字段的方向(例如按照从靠近该选项字段的第1个32比特到远离选项字段的第1个32比特的方向)的顺序排列。该k个业务子字段的排列顺序与该m个 标志位的排列顺序对应包括:该k个业务子字段的排列顺序与该m个标志位按照从高位到低位的排列顺序对应,也即是该k个业务子字段与该m个标志位顺序对应;或者,该k个业务子字段的排列顺序与该m个标志位按照从低位到高位的排列顺序对应,也即是该k个业务子字段与该m个标志位逆序对应,本申请实施例对此不作限定。
在本申请的第一种具体实施方式中,所述业务标志子字段对应的m个业务包括第一业务和第二业务,该业务标志子字段指示该选项字段中携带有第一业务信息和第二业务信息。例如,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务包括第一业务和第二业务,从而该业务标志子字段指示该选项字段中携带有第一业务信息和第二业务信息。示例的,该业务标志子字段中的m个标志位包括第一标志位和第二标志位,第一标志位对应第一业务,第二标志位对应第二业务,第一标志位指示该选项字段中携带有第一业务信息,第二标志位指示该选项字段中携带有第二业务信息。其中,第一标志位和第二标志位按序可以排列,第一业务信息和第二业务信息可以按序排列,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位的排列顺序对应。例如,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位按照从高位到低位的排列顺序对应,或者,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位按照从低位到高位的排列顺序对应,本申请实施例对此不作限定。
在本申请实施例中,所述选项字段中可以携带有基础业务信息,该基础业务信息对应基础业务,该基础业务可以是切片业务、随流检测业务和DetNet业务中的任意一个,该随流检测可以包括IFIT业务或IOAM业务。其中,该基础业务可以属于所述业务标志子字段对应的m个业务,也可以不属于所述业务标志子字段对应的m个业务。在一种具体实施方式中,该基础业务属于所述业务标志子字段对应的m个业务,该基础业务可以是上述k个业务中的任意一个业务。例如,该基础业务是上述第一业务,该基础业务信息是上述第一业务信息,该选项字段的内容可以参考上述第一种具体实施方式。在另一种具体实施方式,该基础业务不属于所述业务标志子字段对应的m个业务。例如,该基础业务是上述第一业务,该基础业务信息是上述第一业务信息,但是第一业务不属于所述业务标志子字段对应的m个业务,该选项字段的内容可以参考下述第二种具体实施方式。
在本申请的第二种具体实施方式中,第一业务是基础业务,第一业务信息是基础业务信息,所述业务标志子字段对应的m个业务包括第二业务,该业务标志子字段指示该选项字段中携带有第二业务信息。例如,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务包括第二业务,从而该业务标志子字段指示该选项字段中携带有第二业务信息。示例的,该业务标志子字段中的m个标志位包括第二标志位,第二标志位对应第二业务,第二标志位指示该选项字段中携带有第二业务信息。
其中,第二业务信息可以位于基础业务信息之后。例如,所述k个业务的业务信息均可以位于基础业务信息(也即是第一业务信息)之后,并且所述k个业务的业务信息按序排列。具体实施方式中,所述选项字段中包括基础子字段(例如第一子字段是基础子字段)和所述k个业务一一对应的k个业务子字段,该基础子字段中携带有基础业务信息,该k个业务子字段按序排列在该基础子字段之后。其中,基础子字段的长度为定值,例如,该基础子字段的长度为8比特、16比特、32比特或64比特。基础子字段的长度与该k个业务子字段中的前k-1个业务子字段的长度可以相等,例如,基础子字段的长度以及该前k-1个业务子字段 的长度均为32比特。在其他实施方式中,基础子字段的长度可变,基础子字段的长度与所述前k-1个业务子字段的长度也可以不相等,本申请实施例对此不作限定。
在上述第二种具体实施方式中,所述选项字段中携带有基础业务信息,但是该基础业务信息不受业务标志子字段的指示。换句话说,在上述第二具体实施方式中,所述选项字段通常必然会携带基础业务信息,或者说,默认所述选项字段携带基础业务信息。
在一种具体实施方式中,所述选项字段中还包括预留(reserved)子字段,该预留子字段与业务标志子字段相邻,该预留子字段可以用于该业务标志子字段的长度扩展,从而支持在该选项字段中扩展业务子字段。例如,该预留子字段的最低比特位与业务标志子字段的最高比特位相邻。由于该业务标志子字段对应m个业务,该选项字段中包括该m个业务中的k个业务一一对应的k个业务子字段,该k个业务子字段中的前k-1个业务子字段的长度可以相同,第k个业务子字段的长度与前k-1个业务子字段的长度可以不同。相比于在第k个业务子字段之后扩展业务子字段,在第1个业务子字段之前扩展业务子字段对该选项字段的更改较小,在第1个业务子字段之前扩展业务子字段更为便捷,因此,本申请实施例中设置预留子字段的最低比特位与业务标志子字段的最高比特位相邻,有助于提高扩展业务子字段的便捷性。该预留子字段还可以用于其他功能扩展,本申请实施例对此不作限定。
在一种具体实施方式中,所述选项字段中还包括类型子字段和长度子字段,该类型子字段指示该选项字段的类型,该长度子字段指示该选项字段的长度。该选项字段可以是类型长度值(type lenght value,TLV)字段,上述k个业务子字段、长度标志子字段(也即第四子字段)、业务标志子字段、基础子字段以及预留子字段均属于该选项字段的值(value)子字段。
作为本申请的一个示例,图14是本申请实施例提供的一种选项字段的结构示意图。该选项字段中包括类型子字段、长度子字段、预留子字段、业务标志子字段和k个业务子字段(业务子字段1~业务子字段k)。类型子字段的长度、长度子字段的长度、预留子字段的长度和业务标志子字段的长度均为8比特。该k个业务子字段按照从靠近业务标志子字段到远离业务标志子字段的顺序排列,该k个业务子字段中的前k-1个业务子字段的长度均为32比特,第k个业务子字段(也即是最后一个业务子字段)的长度大于前k-1个业务子字段的长度,例如,第k个业务子字段的长度为64比特。
作为本申请的另一个示例,图15是本申请实施例提供的另一种选项字段的结构示意图。与图14所示选项字段不同的是,图15所示的选项字段中还包括长度标志子字段(也即前述第四子字段)。该长度标志子字段指示所述k个业务子字段中的前k-1个业务子字段的长度。在图15所示的选项字段中,长度标志子字段的长度为2比特,预留子字段的长度为6比特。
作为本申请的再一个示例,图16是本申请实施例提供的再一种选项字段的结构示意图。与图14所示选项字段不同的是,图16所示的选项字段中还包括基础子字段。k个业务子字段按照从靠近基础子字段到远离该基础子字段的顺序排列在该基础子字段之后。该基础子字段对应基础业务,该基础子字段的长度为32比特。
作为本申请的又一个示例,图17是本申请实施例提供的又一种选项字段的结构示意图。与图14所示选项字段不同的是,图17所示的选项字段中还包括长度标志子字段(也即前述第四子字段)和基础子字段。k个业务子字段按照从靠近基础子字段到远离该基础子字段的顺序排列在该基础子字段之后。该长度标志子字段指示该k个业务子字段中的前k-1个业务 子字段的长度。该长度标志子字段的长度为2比特,预留子字段的长度为6比特,该基础子字段的长度为32比特。
在图14至图17所示的选项字段中,业务标志子字段对应m个业务(例如业务1~业务m),该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,所述k个业务子字段一一对应该k个业务。例如,业务子字段1对应业务S1,业务子字段2对应业务S2,业务子字段3对应业务S3...业务子字段k对应业务Sk,业务S1~业务Sk是业务1~业务m中的k个业务。示例的,图18和图19示出了业务标志子字段的两种结构示意图。该业务标志子字段中包括m个标志位(例如m=8),该m个标志位一一对应所述m个业务,该m个标志位的排列顺序与所述k个业务子字段的排列顺序对应。示例的,该m个标志位包括标志位1~标志位m,标志位1~标志位m与业务1~业务m一一对应。如图18所示,标志位1~标志位m从高位到低位按序排列,所述k个业务子字段的排列顺序与标志位1~标志位m与顺序对应。如图19所示,标志位1~标志位m从低位到高位按序排列,所述k个业务子字段的排列顺序与标志位1~标志位m与逆序对应。
示例的,参考图14至图17,对于上述第一种具体实施方式(业务标志子字段对应的m个业务包括第一业务和第二业务),第一业务和第二业务可以是业务S1~业务S(k-1)中按序排列的任意两个业务,第三业务可以是业务Sk。例如,第一业务是业务S1,第二业务是业务S2,对应于第一业务的第一子字段是业务子字段1,对应于第二业务的第二子字段是业务子字段2,对应于第三业务的第三子字段是业务子字段k。再例如,第一业务是业务S2,第二业务是业务S(k-1),对应于第一业务的第一子字段是业务子字段2,对应于第二业务的第二子字段是业务子字段k-1,对应于第三业务的第三子字段是业务子字段k。对于上述第二种具体实施方式(第一业务为基础业务,业务标志子字段对应的m个业务包括第二业务),第二业务可以是业务S1~业务Sk中的任意一个业务,例如,第二业务是业务S1,第三业务可以是业务Sk,对应于第一业务的第一子字段是基础子字段,对应于第二业务的第二子字段是业务子字段1,对应于第三业务的第三子字段是业务子字段k。再例如,第二业务是业务S(k-1),第三业务可以是业务Sk,对应于第一业务的第一子字段是基础子字段,对应于第二业务的第二子字段是业务子字段k-1,对应于第三业务的第三子字段是业务子字段k。
本申请实施例以业务标志子字段中包括m个标志位,该m个标志位按序排列为例说明,这并不构成对业务标志子字段的限制。该m个标志位还可以按照其他方式排列,或者,该业务标志子字段还可以通过其他方式对应到所述m个业务,以及,该业务标志子字段还可以通过其他方式指示该选项字段中携带所述k个业务的业务信息。例如,该业务标志子字段中包括与该m个业务的一一对应的m个标志空间,该m个标志空间中的至少一个标志空间的长度大于1比特,该m个标志空间按序排列,该m个标志空间的排列顺序与所述k个业务子字段的排列顺序对应(可以是顺序对应或逆序对应)。例如,该m个标志空间的长度均为2比特。或者,该m个标志空间中的一部分标志空间的长度为a比特(例如1比特),另一部分标志空间的长度为b比特(例如2比特)。再或者,该m个标志空间的长度各不相同(例如该m个标志空间的长度依次递增)。本申请实施例对此不作限定。
作为一个示例,该m个标志空间中的一部分标志空间的长度为a比特(例如1比特),另一部分标志空间的长度为b比特(例如2比特),长度为a比特的标志空间与长度为b比特的标志空间间隔排列,该m个标志空间与k个业务子字段对应(可以是顺序对应或逆序对 应)。例如,k=3,该k个业务子字段对应的k个业务包括切片业务、APN业务和IFIT业务,切片业务对应的业务子字段、APN业务对应的业务子字段和IFIT业务对应的业务子字段依次排列。在一种情况下,m=k,切片业务对应的标志空间的长度和IFIT业务对应的标志空间的长度均为a比特,APN业务对应的标志空间的长度为b比特;或者,切片业务对应的标志空间的长度和IFIT业务对应的标志空间的长度均为b比特,APN业务对应的标志空间的长度为a比特。在另一种情况下,m>k,切片业务对应的标志空间的长度、APN业务对应的标志空间的长度和IFIT业务对应的标志空间的长度均为a比特;或者,切片业务对应的标志空间的长度、APN业务对应的标志空间的长度和IFIT业务对应的标志空间的长度均为b比特;或者,切片业务、APN业务和IFIT业务中的两个业务对应的标志空间的长度均为a比特,另一个业务对应的标志空间的长度为b比特;或者,切片业务、APN业务和IFIT业务中的两个业务对应的标志空间的长度均为b比特,另一个业务对应的标志空间的长度为a比特。
作为一个示例,该m个标志空间的长度各不相同(例如该m个标志空间的长度依次递增),该m个标志空间按照长度从大到小的顺序排列,或者,按照长度从小到大的顺序排列,该m个标志空间与k个业务子字段对应(可以是顺序对应或逆序对应)。例如,该k个业务子字段对应的k个业务包括切片业务、APN业务和IFIT业务,切片业务对应的业务子字段、APN业务对应的业务子字段和IFIT业务对应的业务子字段依次排列,该m个标志空间中与切片业务对应的标志空间的长度为a比特,与APN业务对应的标志空间的长度为b比特,与IFIT业务对应的标志空间的长度为c比特,a、b、c依次增大,或者,a、b、c依次减小。
作为一个示例,该业务标志子字段通过该业务标志子字段的取值指示该选项字段中携带哪些业务的业务信息。例如,该业务标志子字段的取值为第一取值(可以是二进制数值或二进制序列),该业务标志子字段指示该选项字段中携带有业务1、业务2和业务3的业务信息;或者,该业务标志子字段的取值为第二取值(可以是二进制数值或二进制序列),该业务标志子字段指示该选项字段中携带有业务4、业务5和业务6的业务信息;或者,该业务标志子字段的取值为第三取值(可以是二进制数值或二进制序列),该业务标志子字段指示该选项字段中携带有业务1、业务3和业务4的业务信息等等。
在本申请实施例中,第一业务可以包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。第二业务可以包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。第三业务可以包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。并且,第一业务、第二业务和第三业务互不相同。例如,第一业务是切片业务,第二业务是APN业务,第三业务是随流检测业务。其中,随流检测业务包括IFIT业务或IOAM业务,也可以是其他的随流检测业务,本申请实施例对此不作限定。
在本申请实施例中,任一业务的业务信息可以包括与该业务相关的信息,例如任一业务的业务信息包括目前针对该业务独立扩展选项字段时该选项字段中携带的该业务的业务信息,还可能包括与该业务相关的其他信息,本申请实施例对此不作限定。示例的,切片业务的业务信息包括切片标识;随流检测业务的业务信息包括流标识;APN业务的业务信息包括APN属性,APN属性包括APN ID和APN参数,该APN ID包括用户组标识和应用组标识中的至少一个,该APN参数包括带宽要求参数、时延要求参数、丢包率要求参数、抖动要求参数中的至少一个;DetNet业务的业务信息包括路径标识。
S302.网络设备A向网络设备B发送报文A。
一种具体实施方式中,网络设备B是网络设备A的下一跳设备,网络设备A根据报文A的目的地址查找网络设备A的路由表,以在网络设备A中确定报文A对应的出端口,网络设备A通过该报文A对应的出端口向网络设备B发送报文A。例如图11和图12所示,网络设备A是网络设备101,网络设备B是网络设备102,网络设备101通过该报文A对应的出端口向网络设备102发送报文A。或者,网络设备A是网络设备102,网络设备B是网络设备103,网络设备102通过该报文A对应的出端口向网络设备103发送报文A。
另一种具体实施方式中,网络设备B不是网络设备A的下一跳设备,网络设备B通过其他网络设备与网络设备A连接,网络设备A通过该其他网络设备向网络设备B发送报文A。例如图11和图12所示,网络设备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。
S303.网络设备B接收报文A。
对应于网络设备A向网络设备B发送报文A,网络设备B接收报文A。
S304.网络设备B根据报文A的选项字段中携带的第一业务信息处理报文A。
在本申请实施例中,网络设备B可以是报文A的转发路径上的中间节点或尾节点。根据S301可知,所述选项字段可以位于报文A的HBH中、第一个DOH中或第二个DOH中。如果所述选项字段位于HBH中,接收到报文A的每个网络设备都可以根据所述选项字段处理报文A。如果所述选项字段位于第一个DOH中,接收到报文A且命中报文A的目的地址的每个网络设备都可以根据所述选项字段处理报文A。如果所述选项字段位于第二个DOH中,只需尾节点根据所述选项字段处理报文A。
在一种具体实施方式中,网络设备B是中间节点。如果所述选项字段位于报文A的HBH中,网络设备B根据该选项字段处理报文A。如果所述选项字段位于报文A的第一个DOH中,网络设备B判断网络设备B是否命中报文A的目的地址,如果网络设备B命中报文A的目的地址,网络设备B根据该选项字段处理报文A,如果网络设备B未命中报文A的目的地址,网络设备B不根据该选项字段处理报文A。如果所述选项字段位于报文A的第二个DOH中,网络设备B不根据该选项字段处理报文A。
在另一种具体实施方式中,网络设备B是尾节点。如果所述选项字段位于报文A的HBH中,网络设备B根据该选项字段处理报文A。如果所述选项字段位于报文A的第一个DOH中,网络设备B判断网络设备B是否命中报文A的目的地址,如果网络设备B命中报文A的目的地址,网络设备B根据该选项字段处理报文A,如果网络设备B未命中报文A的目的地址,网络设备B不根据该选项字段处理报文A。如果所述选项字段位于报文A的第二个DOH中,网络设备B根据该选项字段处理报文A。具体实施方式中,作为尾节点的网络设备B还可以去除报文A中的所述选项字段,本申请实施例对此不作限定。
本申请实施例以网络设备B根据所述选项字段处理报文A为例说明。该选项字段中可以携带有k个业务的业务信息,该k个业务的业务信息可以按序排列,网络设备B可以按照该k个业务的业务信息的排列顺序,依次根据该k个业务的业务信息处理报文A。例如,该k个业务包括第一业务和第二业务,对应于第一业务的第一业务信息和对应于第二业务的第二 业务信息按序排列,网络设备B按照报文A中包括的第一业务信息和第二业务信息的排列顺序,依次根据该第一业务信息和该第二业务信息处理报文A。在本申请实施例中,网络设备B可以支持该k个业务中的所有业务,也可以不支持该k个业务中的至少一个业务,网络设备B根据该选项字段处理报文A的过程中,如果网络设备B支持某一业务,网络设备B根据报文A中包括的该业务的业务信息处理报文A,如果网络设备B不支持某一业务,网络设备B跳过报文A中包括的该业务的业务信息。例如,该选项字段中包括业务标志字段以及与该k个业务一一对应的k个业务子字段,对于该k个业务中的任一业务(例如业务S1),网络设备B根据该业务标志字段确定对应于该业务S1的业务子字段(例如业务子字段1);如果网络设备B支持业务S1,网络设备从报文A中包括的业务子字段1中获取业务S1的业务信息,根据业务S1的业务信息处理报文A;如果网络设备B不支持业务S1,网络设备跳过报文A中包括的业务子字段1,从而跳过业务S1的业务信息。
本申请实施例以网络设备B支持第一业务为例说明,网络设备B根据所述选项字段中携带的第一业务信息(也即是第一业务的业务信息)处理报文A。具体的实施方式中,网络设备B首先从所述选项字段中的第一子字段中获取第一业务信息,然后根据第一业务信息和第一业务关联的本地配置信息处理报文A。第一业务关联的本地配置信息可以包括网络设备B中与第一业务关联的程序指令,还可以包括网络设备B中与第一业务关联的其他配置信息。其中,该程序指令包括至少一个处理动作(action),该至少一个处理动作可以包括例如统计动作、检测动作、转发动作等等。在本申请实施例中,网络设备B根据第一业务信息和第一业务关联的本地配置信息处理报文A可以包括:网络设备B根据报文A中包括的第一业务信息从网络设备B中确定第一业务关联的程序指令,然后执行该程序指令以处理报文A。
一个具体实施方式中,第一业务是切片业务,网络设备B中与第一业务关联的本地配置信息可以包括网络设备B中与该切片业务关联的资源配置信息、网络设备B中与该切片业务关联的程序指令等。其中,网络设备B中与该切片业务关联的资源配置信息可以包括该切片业务的切片标识、网络设备B中承载该切片业务的切片接口、该切片业务的切片标识与网络设备B中承载该切片业务的切片接口的对应关系等。网络设备B中与该切片业务关联的程序指令可以包括该切片业务的切片标识以及网络设备B中与该切片业务关联的处理动作,例如网络设备B中与该切片业务关联的处理动作包括转发动作以及该转发动作对应的切片接口等。示例的,第一业务是切片业务,第一业务信息是切片标识,网络设备B根据报文A中包括的第一业务信息和第一业务关联的本地配置信息处理报文A包括:网络设备B根据报文A中包括的该切片标识从网络设备B中确定该切片业务关联的程序指令,然后执行该程序指令中包括的处理动作以处理报文A,例如,网络设备B可以通过该切片业务关联的切片接口向网络设备B的下一跳设备发送该报文A。
另一个具体实施方式中,第一业务是随流检测业务,网络设备B中与第一业务关联的本地配置信息包括网络设备B中与该随流检测业务关联的程序指令。网络设备B中与该随流检测业务关联的程序指令可以包括该随流检测业务的流标识以及网络设备B中与该随流检测业务关联的处理动作,这些处理动作例如统计动作,检测动作等,该统计动作具体可以包括统计哪些内容。例如统计网络设备B接收到该随流检测业务的报文的接收时间戳,统计网络设备B发送该随流检测业务的报文的发送时间戳,统计该随流检测业务的报文的报文序号,统计该随流检测业务的报文在网络设备B中的传输时延等。其中,该随流检测业务可以包括IFIT 业务或IOAM业务。作为一个示例,第一业务是IFIT业务,第一业务信息是流标识,网络设备B根据报文A中包括的第一业务信息和第一业务关联的本地配置信息处理报文A包括:网络设备B根据报文A中包括的该流标识从网络设备B中确定该IFIT业务关联的程序指令,然后执行该程序指令中包括的处理动作以处理报文A。例如,网络设备B通过执行该程序指令中包括的处理动作以统计网络设备B接收到报文A的接收时间戳、统计网络设备B发送报文A的发送时间戳、统计报文A的报文序列等传输质量信息,网络设备B还可以将这些传输质量信息以及该流标识上报给控制器,使控制器根据多个网络设备发送的该IFIT业务的传输质量信息确定该IFIT业务的传输质量。作为另一个示例,第一业务是IOAM业务,第一业务信息是流标识,网络设备B根据报文A中包括的第一业务信息和第一业务关联的本地配置信息处理报文A包括:网络设备B根据报文A中包括的该流标识从网络设备B中确定该IOAM业务关联的程序指令,然后执行该程序指令中包括的处理动作以处理报文A。例如,网络设备B通过执行该程序指令中包括的处理动作以根据报文A进行服务等级协议(service-levelagreement,SLA)检测、路径验证等检测处理,具体可以包括网络设备B在报文A中添加网络设备B接收到报文A的接收时间戳、网络设备B发送报文A的发送时间戳、报文A在网络设备B中的传输时延、网络设备B的元数据(metadata,MD)等。网络设备B的MD可以包括网络设备B的标识。网络设备B还可以根据报文A中携带的检测信息(例如网络设备的标识)进行例如SLA质量确定,路径验证等。
再一个具体实施方式中,第一业务是APN业务,网络设备B中与第一业务关联的本地配置信息可以包括网络设备B中与该APN业务关联的资源配置信息,网络设备B中与该APN业务关联的程序指令等。其中,网络设备B中与该APN业务关联的资源配置信息可以包括网络设备B为该APN业务分配的转发接口、网络设备B为该APN业务分配的带宽等以保证该APN业务的带宽、时延、抖动、丢包率等要求。网络设备B中与该APN业务关联的程序指令可以包括该APN业务的APN属性以及网络设备B中与该APN业务关联的处理动作,例如包括转发动作以及该转发动作对应的转发接口等。示例的,第一业务是APN业务,第一业务信息包括APN属性,该APN属性包括APN ID和APN参数等,该APN ID包括用户组标识和应用组标识,该APN参数包括带宽要求参数、时延要求参数、抖动要求参数和丢包率要求参数中的至少一个,网络设备B根据报文A中包括的第一业务信息和第一业务关联的本地配置信息处理报文A包括:网络设备B根据报文A中包括的APN属性从网络设备B中确定该APN业务关联的程序指令,然后执行该程序指令中包括的处理动作以处理报文A。例如,网络设备B通过该APN业务关联的转发接口向网络设备B的下一跳设备发送该报文A。
又一个具体实施方式中,第一业务是DetNet业务,网络设备B中与第一业务关联的本地配置信息包括网络设备B中与该DetNet业务关联的资源配置信息、网络设备B中与该DetNet业务关联的程序指令等。其中,网络设备B中与该DetNet业务关联的资源配置信息可以包括该DetNet业务的路径标识、网络设备B中对应于该路径标识指示的转发路径的路径资源,例如,对应于该转发路径的接口、对应于该转发路径的接口带宽、对应于该转发路径的接口速率等。网络设备B中与该DetNet业务关联的程序指令可以包括该DetNet业务的路径标识以及网络设备B中与该DetNet业务关联的处理动作,例如包括转发动作、该转发动作对应的转发接口等。示例的,第一业务是DetNet业务,第一业务信息是路径标识,网络设备B根据报文A中包括的第一业务信息和第一业务关联的本地配置信息处理报文A包括:网络设备B根 据报文A中包括的该路径标识从网络设备B中确定该DetNet业务关联的程序指令,然后执行该程序指令中包括的处理动作以处理报文A。例如,网络设备B根据该路径标识在网络设备B中确定该路径标识指示的转发路径的路径资源(例如网络设备B中对应于该转发路径的接口),网络设备B通过该路径资源向网络设备B的下一跳设备发送该报文A。
以上关于第一业务信息、第一业务关联的本地配置信息以及网络设备B根据第一业务信息和第一业务关联的本地配置信息处理报文A的描述仅仅是示例性的,并不能用于限制本申请的技术方案。根据第一业务信息的不同以及第一业务关联的本地配置信息的不同,网络设备B根据第一业务信息执行的处理不同。并且,网络设备B除了根据报文A的所述选项字段中携带的业务信息处理报文A之外,还可以根据报文A中携带的其他信息处理报文A,这些信息可能携带在所述选项字段中,也可能在所述选项字段外,本申请实施例对此不作限定。此外,在其他实施例中,当第一业务信息包括路径标识时,第一业务可以是面向路径的业务,例如是面向路径的OAM业务、面向路径的可视化业务、面向路径的流量统计业务、面向路径的性能测量业务等。当第一业务信息包括流标识时,第一业务可以是面向流的业务,例如是面向流的OAM业务、面向流的可视化业务、面向流的流量统计业务、面向流的性能测量业务等。当第一业务信息包括切片标识,第一业务可以是面向网络切片的业务,例如是面向网络切片的OAM业务、面向网络切片的可视化业务、面向网络切片的流量统计业务、面向网络切片的性能测量业务等。当第一业务信息包括用户组标识,第一业务可以是面向用户组的业务,例如是面向用户组的OAM业务、面向用户组的可视化业务、面向用户组的流量统计业务、面向用户组的性能测量业务等。当第一业务信息包括应用组标识,第一业务可以是面向应用组的业务,例如是面向应用组的OAM业务、面向应用组的可视化业务、面向应用组的流量统计业务、面向应用组的性能测量业务等。
在一种可选的具体实施方式中,不同网络设备中与第一业务关联的本地配置信息可以相同或不同。也就是说,针对报文A中携带的相同的第一业务信息,在不同网络设备上执行的第一业务关联的处理行为不同。例如,一些网络设备中与第一业务关联的程序指令包括第一业务信息以及第一业务关联的统计动作,另一些网络设备中与第一业务关联的程序指令包括第一业务信息以及第一业务关联的检测动作,还有一些网络设备中与第一业务关联的程序指令包括第一业务信息以及第一业务关联的转发动作等,本申请实施例对此不作限定。示例的,第一业务是IFIT业务,报文中包括的第一业务信息为流标识,参考图11或图12,网络设备101中与该IFIT业务关联的程序指令可以包括:该IFIT业务的流标识以及统计网络设备101发送该IFIT业务的报文的发送时间戳。网络设备102中与该IFIT业务关联的程序指令可以包括:该IFIT业务的流标识以及统计网络设备102接收到该IFIT业务的报文的接收时间戳,统计网络设备102发送该IFIT业务的报文的发送时间戳。网络设备103中与该IFIT业务关联的程序指令可以包括:该IFIT业务的流标识以及统计该IFIT业务的报文的报文序号。网络设备104中与该IFIT业务关联的程序指令可以包括:该IFIT业务的流标识以及统计该IFIT业务的报文在网络设备104中的传输时延。网络设备105中与该IFIT业务关联的程序指令可以包括:该IFIT业务的流标识以及向控制器上报该IFIT业务的传输质量信息,这些传输质量信息例如包括:该IFIT业务的报文的转发路径上的某个或某几个网络设备对该报文的发送时间戳,某个或某几个网络设备对该报文的接收时间戳,该报文在某个或某几个网络设备中的传输时延等等。上述与第一业务关联的程序指令中包括的第一业务信息(例如IFIT业务的 流标识)用于网络设备根据报文中包括的第一业务信息确定与第一业务关联的本地配置信息。
此外,本申请实施例以报文A中包括所述选项字段为例说明。如果报文A中不包括所述选项字段,网络设备B不对报文A执行基于所述选项字段的处理,网络设备B可以按照常规转发方式转发报文A。例如报文A是IPv6报文且不包括所述选项字段,网络设备B按照常规IPv6转发方式转发报文A,本申请实施例对此不作限定。
综上所述,本申请实施例提供的业务处理方法,由于同一个报文的同一个选项字段中能够携带至少两个不同业务的业务信息,因此,可以节省选项字段中的一些固定内容以及一些可选子字段所带来的开销,有助于降低报文开销,进而简化网络设备处理报文的复杂度,提升网络设备的转发性能。并且,由于所述选项字段中的k个业务子字段中的前k-1个业务子字段的长度相等,因此网络设备在不支持某一业务时,可以直接根据该业务对应的业务子字段的长度,跳过该业务对应的业务子字段,网络设备的报文解析逻辑明确,芯片处理性能好。
在一种具体实施方式中,网络设备B支持第一业务和第二业务。网络设备B除根据报文A的所述选项字段中携带的第一业务信息处理报文A之外,还可以根据报文A的所述选项字段中携带的第二业务信息处理报文A。如图20所示,本申请实施例的业务处理方法还包括如下步骤S305a。
S305a.网络设备B根据报文A的选项字段中携带的第二业务信息处理报文A。
网络设备B根据第二业务信息处理报文A的实现过程可以参考S304,这里不再赘述。
在另一种具体实施方式中,网络设备B支持第一业务但不支持第二业务。网络设备B除根据报文A的所述选项字段中携带的第二业务信息处理报文A之外,还可以跳过报文A的所述选项字段中携带的第二业务信息。如图21所示,本申请实施例的业务处理方法还包括如下步骤S305b。
S305b.网络设备B跳过报文A的选项字段中携带的第二业务信息。
也即是,网络设备B不根据第二业务信息处理报文A。
其中,第二业务信息对应第二业务,第二业务信息携带在第二子字段(也即是第二业务对应的业务子字段)中。网络设备B可以根据所述选项字段中的业务标志字段确定第二子字段,网络设备B跳过该第二子字段,从而跳过第二业务信息。
在一种具体实施方式中,网络设备A生成报文A之后,还可以根据报文A中的所述选项字段处理报文A。例如,网络设备A支持第一业务和第二业务,网络设备A根据该选项字段中携带的第一业务信息和第二业务信息处理报文A。再例如,网络设备A支持第一业务但不支持第二业务,网络设备A根据该选项字段中携带的第一业务信息处理报文A,网络设备A跳过第二业务信息。又例如,网络设备A支持第二业务但不支持第一业务,网络设备A根据该选项字段中携带的第二业务信息处理报文A,网络设备A跳过第一业务信息。网络设备A根据所述选项字段处理报文A的过程可以参考网络设备B根据所述选项字段处理报文A的过程,本申请实施例在此不再赘述。
在一种具体实施方式中,网络设备A在控制器的指示下生成包括所述选项字段的报文A。其中,控制器可以是图11或图12所示中的控制器100。示例的,请参考图22,其示出了本申请实施例提供的又一种业务处理方法的流程图。该方法包括如下步骤S2201至S2206。
S2201.控制器向网络设备A发送指示信息,该指示信息用于指示网络设备A生成包括选项字段的报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一 业务,第二业务信息对应第二业务,第一业务与第二业务不同。
可选的,控制器首先生成指示信息,然后向网络设备A发送该指示信息。例如,控制器通过边界网关协议(border gateway protocol,BGP)报文、网络配置协议(network configuration protocol,NETCONF)报文或其他私有协议报文向网络设备A发送指示信息。
具体实施方式中,该指示信息包括该选项字段的配置信息,以指示网络设备A生成包括该选项字段的报文。或者,该指示信息包括该选项字段,以指示网络设备A生成包括该选项字段的报文。或者,该指示信息为该选项字段的标识或该选项字段的名称等,网络设备A中包括该选项字段的配置信息,该指示信息指示网络设备A根据网络设备A中的该选项字段的配置信息生成包括该选项字段的报文。或者,该指示信息为该选项字段的标识或该选项字段的名称等,网络设备A中包括该选项字段,该指示信息指示网络设备A根据网络设备A中的该选项字段生成包括该选项字段的报文。其中,该选项字段的配置信息可以包括该选项字段携带的信息以及该选项字段的结构信息,例如,该选项字段携带的信息包括第一业务信息、第二业务信息等,该选项字段的结构信息包括第一业务信息在该选项字段中的位置(例如第一子字段在该选项字段中的位置)、第二业务信息在该选项字段中的位置(例如第二子字段在该选项字段中的位置)等,本申请实施例对此不作限定。
S2202.网络设备A接收控制器发送的指示信息。
例如,网络设备A接收控制器发送的携带该指示信息的BGP报文、NETCONF报文或其他私有协议报文,并从接收到的报文中获取该指示信息。
S2203.网络设备A根据指示信息生成包括所述选项字段的报文A。
一种具体实施方式中,该指示信息包括该选项字段的配置信息,网络设备A根据该选项字段的配置信息生成该选项字段,进而生成包括该选项字段的报文A。
另一种具体实施方式中,该指示信息包括该选项字段,网络设备A从该指示信息中确定该选项字段,进而生成包括该选项字段的报文A。
再一种具体实施方式中,该指示信息为该选项字段的标识或该选项字段的名称等,网络设备A根据该指示信息在网络设备A中确定该选项字段的配置信息,根据该选项字段的配置信息生成该选项字段,进而生成包括该选项字段的报文A。
又一种具体实施方式中,该指示信息为该选项字段的标识或该选项字段的名称等,网络设备A根据该指示信息在网络设备A中确定该选项字段,进而生成包括该选项字段的报文A。
S2204.网络设备A向网络设备B发送报文A。
S2205.网络设备B接收报文A。
S2206.网络设备B根据报文A的选项字段中携带的第一业务信息处理报文A。
S2203至S2206的实现过程可以参考上述S301至S304的实现过程,这里不再赘述。
上述图20所示实施例以网络设备A根据控制器的指示生成包括所述选项字段的报文A为例说明,在其他实施方式中,可以在网络设备A中静态配置所述选项字段,进而网络设备A可以生成包括所述选项字段的报文,本申请实施例对此不作限定。
在本申请实施例中,报文A的转发路径上的每个网络设备都可以处理报文A,并且,报文A的转发路径上的至少一个网络设备可以根据报文A中的所述选项字段处理报文A。例如,报文A的转发路径为图11或图12中的转发路径P(转发路径P为:网络设备101—>网络设 备102—>网络设备103—>网络设备104—>网络设备105—>网络设备106),网络设备101~网络设备106都可以处理报文A,网络设备101~网络设备106中的至少一个根据报文A中的所述选项字段处理报文A。其中,网络设备根据所述选项字段处理报文A时,通过所述选项字段中的业务标志字段确定所述选项字段都携带哪些业务的业务信息。例如,所述业务标志字段中的标志位i对应业务i,网络设备根据标志位i是否置位(也即是标志位i中的值是否为1)来判断所述选项字段是否携带业务i的业务信息。下面以网络设备102处理报文A为例介绍报文A的转发路径上的网络设备处理报文A的过程。
请参考图23,其示出了本申请实施例提供的网络设备102处理报文A的流程图。该流程包括如下步骤S2301至S2309。
S2301.网络设备102判断报文A的IPv6扩展头中是否包括所述选项字段。若是,执行S2302至S2308;若否,执行S2309。
网络设备102接收到报文A之后,开始处理报文A。网络设备102首先判断报文A的IPv6扩展头中是否包括所述选项字段。
其中,所述IPv6扩展头包括例如HBH或DOH。所述选项字段中包括业务标志子字段,该业务标志子字段中包括m个标志位,该m个标志位一一对应m个业务,每个标志位中的值用于指示所述选项字段中是否携带该标志位对应业务的业务信息。
在本申请实施例中,可以预先在网络设备102上使能处理所述选项字段的功能,这样网络设备102在接收到报文A之后可以执行该步骤S2301。
S2302.初始化i=1。i的最大值为m。
S2303.网络设备102判断所述选项字段包括的业务标志子字段中的第i个标志位是否置位。若是,执行S2304至S2307;若否,执行S2308。
网络设备102可以判断第i个标志位中的值是否为1。如果该第i个标志位中的值为1,网络设备102确定该第i个标志位置位。如果该第i个标志位中的值为0,网络设备102确定该第i个标志位未置位。
在本申请实施例中,如果所述业务标志子字段中的某个标志位置位,说明所述选项字段中携带该标志位对应业务的业务信息;如果所述业务标志子字段中的某个标志位未置位,说明所述选项字段中未携带该标志位对应业务的业务信息。在S2303中,如果网络设备102确定第i个标志位置位,网络设备102确定所述选项字段中携带该第i个标志位对应业务(例如业务i)的业务信息,网络设备102执行S2304至S2307。如果网络设备102确定该第i个标志位未置位,网络设备102确定所述选项字段中未携带该第i个标志位对应业务的业务信息,网络设备102执行S2308。
S2304.网络设备102判断网络设备102是否支持业务i。若是,执行S2305至S2307;若否,执行S2308。
业务i指的是所述第i个标志位对应的业务。如果网络设备102不支持业务i,网络设备102跳过业务i的业务信息,网络设备102执行S2308。
S2305.网络设备102根据所述选项字段中携带的业务i的业务信息处理报文A。
其中,所述选项字段中包括业务i对应的业务子字段,网络设备102从业务i对应的业务子字段中获取业务i的业务信息,根据业务i的业务信息处理报文A。网络设备102根据业务i的业务信息处理报文A的过程可以参考S304,这里不作赘述。
S2306.网络设备102判断i是否等于m。若是;执行S2307;若否;执行S2308。
网络设备102可以比较i和m,以判断i是否等于m。如果i等于m,说明第i个标志位是所述业务标志子字段中的最后一个标志位,经过S2305的处理网络设备102已经根据最后一个标志位对应业务的业务信息处理了报文A,网络设备102结束根据所述选项字段处理报文A的过程,执行S2307。如果i小于m,说明第i个标志位不是所述业务标志子字段中的最后一个标志位,所述选项字段中可能还携带未处理的业务信息,因此网络设备102执行S2308。
S2307.根据处理结果转发报文A。
例如,所述选项字段中携带切片标识,网络设备102根据该切片标识在网络设备102中确定切片接口,通过该切片接口转发报文A。
再例如,所述选项字段中携带路径标识,网络设备102根据该路径标识,在网络设备102中确定该路径标识指示的转发路径的路径资源(例如接口),通过该路径资源转发报文A。
S2308.令i=i+1。
如果在S2303中网络设备102确定第i个标志位未置位;或者,在S2304中网络设备102确定网络设备102不支持业务i;或者,在S2306中网络设备102确定i不等于m;网络设备102执行S2308,开始基于i+1执行S2303至S2307。
S2309.网络设备102按照常规IPv6转发方式转发报文A。
为了便于理解本申请的技术方案,下面以一个具体示例介绍本申请的业务处理方法。
请参考图24,其示出了本申请实施例提供的一种业务处理方法的示意图。图24以报文在转发路径P(转发路径P为:网络设备101—>网络设备102—>网络设备103—>网络设备104—>网络设备105—>网络设备106)上传输的过程中,该转发路径P上的网络设备处理该报文为例说明。该报文中包括有效载荷(payload)、IPv6头、HBH和媒体访问控制(media access control,MAC)头(还可能包括其他内容,这里不再赘述)。该HBH中包括选项字段。
图25示出的是图24所示的报文中的选项字段的示意图。如图25所示,该选项字段中包括类型子字段、长度子字段、预留子字段、业务标志子字段和四个业务子字段。该业务标志子字段中的值为00100111,该业务标志子字段中包括8个标志位。一种具体实施方式中,该8个标志位中,按照从高位到低位排列的第3个标志位对应的业务为切片业务,第6个标志位对应的业务为APN业务,第7个标志位对应的业务为DetNet业务,第8个标志位对应的业务为IFIT业务。另一种具体实施方式中,该8个标志位中,按照从低位到高位排列的第1个标志位对应的业务为切片业务,第2个标志位对应的业务为APN业务,第3个标志位对应的业务为DetNet业务,第6个标志位对应的业务为IFIT业务。该四个业务子字段中,按照从靠近该业务标志子字段到远离该业务标志子字段的方向(例如按照从靠近该选项字段的第1个32比特到远离选项字段的第1个32比特的方向)排列的第1个业务子字段对应切片业务,第2个业务子字段对应APN业务,第3个业务子字段对应DetNet业务,第4个业务子字段对应IFIT业务。该切片业务的业务信息(例如信息1)位于第1个业务子字段中,该APN业务的业务信息(例如信息2)位于第2个业务子字段中,该DetNet业务的业务信息(例如信息3)位于第3个业务子字段中,该IFIT业务的业务信息(例如信息4)位于第4个业务子字段中。
参考图24,作为头节点的网络设备101首先生成包括图25所示的选项字段的报文,然 后根据该选项字段处理该报文。具体的,网络设备101根据该业务标志子字段中的值确定该选项字段中携带切片业务的业务信息(信息1)、APN业务的业务信息(信息2),DetNet业务的业务信息(信息3)和IFIT业务的业务信息(信息4),并且确定切片业务的业务信息位于第1个业务子字段中,APN业务的业务信息位于第2个业务子字段中,DetNet业务的业务信息位于第3个业务子字段中,IFIT业务的业务信息位于第4个业务子字段中。网络设备101按照该四个业务子字段的排列顺序遍历该四个业务子字段,依次根据该四个业务子字段中携带的业务信息处理该报文。首先,网络设备101遍历到第1个业务子字段;如果网络设备101支持切片业务,网络设备101根据第1个业务子字段中携带的信息1处理该报文;如果网络设备101不支持切片业务,网络设备101跳过第1个业务子字段。然后,网络设备101遍历到第2个业务子字段;如果网络设备101支持APN业务,网络设备101根据第2个业务子字段中携带的信息2处理该报文;如果网络设备101不支持APN业务,网络设备101跳过第2个业务子字段。之后,网络设备101遍历到第3个业务子字段;如果网络设备101支持DetNet业务,网络设备101根据第3个业务子字段中携带的信息3处理该报文;如果网络设备101不支持DetNet业务,网络设备101跳过第3个业务子字段。最后,网络设备101遍历到第4个业务子字段;如果网络设备101支持IFIT业务,网络设备101根据第4个业务子字段中携带的信息4处理该报文;如果网络设备101不支持IFIT业务,网络设备101跳过第4个业务子字段,例如,网络设备101跳过所述选项字段。
网络设备101处理该报文之后得到报文1,该报文1中包括HBH,该HBH中包括如图25所示的选项字段。网络设备101可以将报文1发送给网络设备102。由于该选项字段位于HBH中,因此网络设备102接收到报文1之后,网络设备102根据该选项字段处理报文1。
网络设备102处理报文1之后得到报文2,该报文2中包括HBH,该HBH中包括如图25所示的选项字段。网络设备102可以将报文2发送给网络设备103。由于该选项字段位于HBH中,因此网络设备103接收到报文2之后,网络设备103根据该选项字段处理报文2。
网络设备103处理报文2之后得到报文3,该报文3中包括HBH,该HBH中包括如图25所示的选项字段。网络设备103可以将报文3发送给网络设备104。由于该选项字段位于HBH中,因此网络设备104接收到报文3之后,网络设备104根据该选项字段处理报文3。
网络设备104处理报文3之后得到报文4,该报文4中包括HBH,该HBH中包括如图25所示的选项字段。网络设备104可以将报文4发送给网络设备105。由于该选项字段位于HBH中,因此网络设备105接收到报文4之后,网络设备105根据该选项字段处理报文4。
网络设备105处理报文4之后得到报文5,该报文5中包括HBH,该HBH中包括如图25所示的选项字段。网络设备105可以将报文5发送给网络设备106。由于该选项字段位于HBH中,因此网络设备106接收到报文5之后,网络设备106根据该选项字段处理报文5。
其中,网络设备102~网络设备106根据选项字段处理对应报文的过程与网络设备101根据该选项字段处理报文的过程类似,这里不再赘述。网络设备106作为尾节点还可以去除报文5中的选项字段,本申请实施例对此不作限定。
以上是对本申请方法实施例的介绍。下面介绍本申请装置实施例,本申请的装置可以用于执行本申请的方法。对于本申请装置实施例中未披露的细节,请参照方法实施例。
请参考图26,其示出了本申请实施例提供的一种业务处理装置2600的结构示意图。业 务处理装置2600应用于网络设备。例如,业务处理装置2600是网络设备或者该网络设备中的功能组件。示例的,该网络设备是上述方法实施例中的网络设备B。如图26所示,业务处理装置2600包括收发模块2610和处理模块2620。
收发模块2610,用于接收包括选项字段的报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同。收发模块2610的功能实现可以参考上述S303或S2205中的相关描述。
处理模块2620,用于根据第一业务信息处理该报文。处理模块2620的功能实现可以参考上述S304或S2206中的相关描述。
具体的实施方式中,该选项字段中包括第一子字段和第二子字段,第一子字段中携带有第一业务信息,第二子字段中携带有第二业务信息。
具体的实施方式中,第一子字段的长度和第二子字段的长度相同。
具体的实施方式中,该选项字段中还包括第三子字段,第三子字段中携带有第三业务信息,第三业务信息对应第三业务,第一业务、第二业务和第三业务互不相同;第一子字段、第二子字段和第三子字段依次排列,第三子字段的长度与第一子字段的长度不同。
具体的实施方式中,第三子字段的长度大于第一子字段的长度。
具体的实施方式中,第一子字段的长度和第二子字段的长度均为2n比特,n为大于或等于3的整数。
具体的实施方式中,该选项字段中还包括第四子字段,第四子字段指示第一子字段的长度和第二子字段的长度。
具体的实施方式中,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第一业务和第二业务,该业务标志子字段指示该选项字段中携带有第一业务信息和第二业务信息,m为大于或等于2的整数。
具体的实施方式中,该业务标志子字段中包括m个标志位,该m个标志位一一对应m个业务;该m个标志位中的第一标志位对应第一业务,第二标志位对应第二业务,第一标志位指示该选项字段中携带有第一业务信息,第二标志位指示该选项字段中携带有第二业务信息。
具体的实施方式中,第一标志位和第二标志位按序排列,第一业务信息和第二业务信息的按序排列,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位的排列顺序对应。
具体的实施方式中,第一业务信息为基础业务信息,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第二业务,该业务标志子字段指示该选项字段中携带有第二业务信息,m为正整数。
具体的实施方式中,第一业务与该m个业务均不同。
具体的实施方式中,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务的业务信息均位于该基础业务信息之后。
具体的实施方式中,该选项字段中携带该基础业务信息的子字段为基础子字段,该选项字段中包括该k个业务一一对应的k个业务子字段,该k个业务子字段位于该基础子字段之后。
具体的实施方式中,该基础子字段的长度为定值。
具体的实施方式中,m≥4。
具体的实施方式中,该选项字段中还包括预留子字段,该预留子字段与业务标志子字段相邻。
具体的实施方式中,该预留子字段的最低比特位与该业务标志子字段的最高比特位相邻。
具体的实施方式中,该选项字段中还包括类型子字段和长度子字段,该类型子字段指示该选项字段的类型,该长度子字段指示该选项字段的长度。
具体的实施方式中,所述报文为IPv6报文,该报文中包括IPv6扩展头,该IPv6扩展头中包括所述选项字段。
具体的实施方式中,该IPv6扩展头包括HBH和DOH中的任意一种。
具体的实施方式中,第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个;或者,第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。其中,随流检测业务可以包括IFIT业务或IOAM业务。
具体的实施方式中,第一业务包括切片业务,第一业务信息包括切片标识。
具体的实施方式中,第一业务包括随流检测业务,第一业务信息包括流标识。
具体的实施方式中,第一业务包括APN业务,第一业务信息包括用户组标识和应用组标识中的至少一个。
具体的实施方式中,第一业务包括DetNet业务,第一业务信息包括路径标识。
具体的实施方式中,该网络设备支持第一业务和第二业务,处理模块2620,还用于根据第二业务信息处理所述报文。处理模块2620的功能实现还可以参考S305a中的相关描述。
具体的实施方式中,该网络设备支持第一业务但不支持第二业务,处理模块2620,还用于跳过第二业务信息。处理模块2620的功能实现还可以参考S305b中的相关描述。
具体的实施方式中,处理模块2620,具体用于根据第一业务信息和第一业务关联的本地配置信息处理所述报文。处理模块2620的功能实现还可以参考上述S304中的相关描述。
具体的实施方式中,第一业务信息和第二业务信息按序排列,处理模块2620,具体用于按照第一业务信息和第二业务信息的排列顺序处理所述报文。
综上所述,本申请实施例提供的业务处理装置,由于同一个报文的同一个选项字段中能够携带至少两个不同业务的业务信息,因此,可以节省选项字段中的一些固定内容以及一些可选子字段所带来的开销,有助于降低报文开销,进而简化网络设备处理报文的复杂度,提升网络设备的转发性能。
请参考图27,其示出了本申请实施例提供的另一种业务处理装置2700的结构示意图。业务处理装置2700应用于网络设备。例如,业务处理装置2700是网络设备或者该网络设备中的功能组件。示例的,该网络设备是上述方法实施例中的网络设备A。如图27所示,业务处理装置2700包括处理模块2710和收发模块2720。
处理模块2710,用于生成包括选项字段的报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同。处理模块2710的功能实现可以参考上述S301或S2203中的相关描述。
收发模块2720,用于发送该报文。收发模块2720的功能实现可以参考上述S302或S2204中的相关描述。
具体的实施方式中,该选项字段中包括第一子字段和第二子字段,第一子字段中携带有第一业务信息,第二子字段中携带有第二业务信息。
具体的实施方式中,第一子字段的长度和第二子字段的长度相同。
具体的实施方式中,该选项字段中还包括第三子字段,第三子字段中携带有第三业务信息,第三业务信息对应第三业务,第一业务、第二业务和第三业务互不相同;第一子字段、第二子字段和第三子字段依次排列,第三子字段的长度与第一子字段的长度不同。
具体的实施方式中,第三子字段的长度大于第一子字段的长度。
具体的实施方式中,第一子字段的长度和第二子字段的长度均为2n比特,n为大于或等于3的整数。
具体的实施方式中,该选项字段中还包括第四子字段,第四子字段指示第一子字段的长度和第二子字段的长度。
具体的实施方式中,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第一业务和第二业务,该业务标志子字段指示该选项字段中携带有第一业务信息和第二业务信息,m为大于或等于2的整数。
具体的实施方式中,该业务标志子字段中包括m个标志位,该m个标志位一一对应m个业务;该m个标志位中的第一标志位对应第一业务,第二标志位对应第二业务,第一标志位指示该选项字段中携带有第一业务信息,第二标志位指示该选项字段中携带有第二业务信息。
具体的实施方式中,第一标志位和第二标志位按序排列,第一业务信息和第二业务信息的按序排列,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位的排列顺序对应。
具体的实施方式中,第一业务信息为基础业务信息,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第二业务,该业务标志子字段指示该选项字段中携带有第二业务信息,m为正整数。
具体的实施方式中,第一业务与该m个业务均不同。
具体的实施方式中,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务的业务信息均位于基础业务信息之后。
具体的实施方式中,该选项字段中携带基础业务信息的子字段为基础子字段,该选项字段中包括k个业务一一对应的k个业务子字段,该k个业务子字段位于基础子字段之后。
具体的实施方式中,基础子字段的长度为定值。
具体的实施方式中,m≥4。
具体的实施方式中,该选项字段中还包括预留子字段,该预留子字段与业务标志子字段相邻。
具体的实施方式中,该预留子字段的最低比特位与该业务标志子字段的最高比特位相邻。
具体的实施方式中,该选项字段中包括类型子字段和长度子字段,该类型子字段指示所述选项字段的类型,该长度子字段指示所述选项字段的长度。
具体的实施方式中,所述报文为IPv6报文,该报文中包括IPv6扩展头,IPv6扩展头中包括所述选项字段。
具体的实施方式中,该IPv6扩展头包括HBH和DOH中的任意一种。
具体的实施方式中,第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个;或者,第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。其中,随流检测业务可以包括IFIT业务或IOAM业务。
具体的实施方式中,第一业务包括切片业务,第一业务信息包括切片标识。
具体的实施方式中,第一业务包括随流检测业务,第一业务信息包括流标识。
具体的实施方式中,第一业务包括APN业务,第一业务信息包括用户组标识和应用组标识中的至少一个。
具体的实施方式中,第一业务包括DetNet业务,第一业务信息包括路径标识。
具体的实施方式中,该网络设备支持第一业务,处理模块2710,还用于根据第一业务信息处理所述报文。
具体的实施方式中,该网络设备还支持第二业务,处理模块2710,还用于根据第二业务信息处理所述报文。
具体的实施方式中,该网络设备不支持第二业务,处理模块2710,还用于跳过第二业务信息。
具体的实施方式中,处理模块2710,具体用于根据第一业务信息和第一业务关联的本地配置信息处理所述报文。
具体的实施方式中,第一业务信息和第二业务信息按序排列,处理模块2710,具体用于按照第一业务信息和第二业务信息的排列顺序处理所述报文。
具体的实施方式中,收发模块2720,还用于接收控制器发送的指示信息,该指示信息用于指示该网络设备生成包括所述选项字段的报文。收发模块2720的功能实现可以参考上述S2202中的相关描述。
处理模块2710,具体用于根据该指示信息生成包括所述选项字段的报文。
综上所述,本申请实施例提供的业务处理装置,由于同一个报文的同一个选项字段中能够携带至少两个不同业务的业务信息,因此,可以节省选项字段中的一些固定内容以及一些可选子字段所带来的开销,有助于降低报文开销,进而简化网络设备处理报文的复杂度,提升网络设备的转发性能。
请参考图28,其示出了本申请实施例提供的再一种业务处理装置2800的结构示意图。业务处理装置2800应用于控制器。例如,该业务处理装置2800是控制器或该控制器中的功能组件。如图28所示,业务处理装置2800包括收发模块2810。
收发模块2810,用于向头节点发送指示信息,该指示信息用于指示头节点生成包括选项字段的报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同。收发模块2810的功能实现可以上述S2201中的相关描述。
可选的,该选项字段中包括第一子字段和第二子字段,第一子字段中携带有第一业务信息,第二子字段中携带有第二业务信息。
可选的,第一子字段的长度和第二子字段的长度相同。
可选的,该选项字段中还包括第三子字段,第三子字段中携带有第三业务信息,第三业务信息对应第三业务,第一业务、第二业务和第三业务互不相同;第一子字段、第二子字段 和第三子字段依次排列,第三子字段的长度与第一子字段的长度不同。
可选的,第三子字段的长度大于第一子字段的长度。
可选的,第三子字段的长度小于第一子字段的长度。
可选的,第三子字段的长度等于第一子字段的长度。
可选的,第一子字段的长度和第二子字段的长度均为2n比特,n为大于或等于3的整数。
可选的,该选项字段中还包括第四子字段,第四子字段指示第一子字段的长度和第二子字段的长度。
可选的,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第一业务和第二业务,该业务标志子字段指示该选项字段中携带有第一业务信息和第二业务信息,m为大于或等于2的整数。
可选的,该业务标志子字段中包括m个标志位,该m个标志位一一对应m个业务;该m个标志位中的第一标志位对应第一业务,第二标志位对应第二业务,第一标志位指示该选项字段中携带有第一业务信息,第二标志位指示该选项字段中携带有第二业务信息。
可选的,第一标志位和第二标志位按序排列,第一业务信息和第二业务信息的按序排列,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位的排列顺序对应。
可选的,第一业务信息为基础业务信息,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第二业务,该业务标志子字段指示该选项字段中携带有第二业务信息,m为正整数。
可选的,第一业务与该m个业务均不同。
可选的,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务的业务信息均位于该基础业务信息之后。
可选的,该选项字段中携带该基础业务信息的子字段为基础子字段,该选项字段中包括该k个业务一一对应的k个业务子字段,该k个业务子字段位于该基础子字段之后。
可选的,该基础子字段的长度为定值。
可选的,m≥4。
可选的,该选项字段中还包括预留子字段,该预留子字段与该业务标志子字段相邻。
可选的,该预留子字段的最低比特位与该业务标志子字段的最高比特位相邻。
可选的,该选项字段中包括类型子字段和长度子字段,该类型子字段指示该选项字段的类型,该长度子字段指示该选项字段的长度。
可选的,该指示信息用于指示该头节点生成包括IPv6扩展头的IPv6报文,该IPv6扩展头中包括该选项字段。
可选的,该IPv6扩展头包括HBH和DOH中的任意一种。
可选的,第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个;或者,第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。
可选的,第一业务包括切片业务,第一业务信息包括切片标识。
可选的,第一业务包括随流检测业务,第一业务信息包括流标识。
可选的,第一业务包括APN业务,第一业务信息包括用户组标识和应用组标识中的至少一个。
可选的,第一业务包括DetNet业务,第一业务信息包括路径标识。
综上所述,本申请实施例提供的业务处理装置,由于同一个报文的同一个选项字段中能够携带至少两个不同业务的业务信息,因此,可以节省选项字段中的一些固定内容以及一些可选子字段所带来的开销,有助于降低报文开销。
请参考图29,其示出了本申请实施例提供的又一种业务处理装置2900的结构示意图。业务处理装置2900应用于头节点。例如,该业务处理装置2900是头节点或该头节点中的功能组件。如图29所示,业务处理装置2900包括收发模块2910和处理模块2920。
收发模块2910,用于接收控制器发送的指示信息,该指示信息用于指示该头节点生成包括选项字段的报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同。收发模块2910的功能实现可以上述S2202中的相关描述。
处理模块2920,用于根据该指示信息生成包括该选项字段的报文。
可选的,该选项字段中包括第一子字段和第二子字段,第一子字段中携带有第一业务信息,第二子字段中携带有第二业务信息。
可选的,第一子字段的长度和第二子字段的长度相同。
可选的,该选项字段中还包括第三子字段,第三子字段中携带有第三业务信息,第三业务信息对应第三业务,第一业务、第二业务和第三业务互不相同;第一子字段、第二子字段和第三子字段依次排列,第三子字段的长度与第一子字段的长度不同。
可选的,第三子字段的长度大于第一子字段的长度。
可选的,第三子字段的长度小于第一子字段的长度。
可选的,第三子字段的长度等于第一子字段的长度。
可选的,第一子字段的长度和第二子字段的长度均为2n比特,n为大于或等于3的整数。
可选的,该选项字段中还包括第四子字段,第四子字段指示第一子字段的长度和第二子字段的长度。
可选的,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第一业务和第二业务,该业务标志子字段指示该选项字段中携带有第一业务信息和第二业务信息,m为大于或等于2的整数。
可选的,该业务标志子字段中包括m个标志位,该m个标志位一一对应m个业务;该m个标志位中的第一标志位对应第一业务,第二标志位对应第二业务,第一标志位指示该选项字段中携带有第一业务信息,第二标志位指示该选项字段中携带有第二业务信息。
可选的,第一标志位和第二标志位按序排列,第一业务信息和第二业务信息的按序排列,第一业务信息和第二业务信息的排列顺序与第一标志位和第二标志位的排列顺序对应。
可选的,第一业务信息为基础业务信息,该选项字段中包括业务标志子字段,该业务标志子字段对应m个业务,该m个业务互不相同,该m个业务包括第二业务,该业务标志子字段指示该选项字段中携带有第二业务信息,m为正整数。
可选的,第一业务与该m个业务均不同。
可选的,该业务标志子字段指示该选项字段中携带有该m个业务中的k个业务的业务信息,该k个业务的业务信息均位于该基础业务信息之后。
可选的,该选项字段中携带该基础业务信息的子字段为基础子字段,该选项字段中包括 该k个业务一一对应的k个业务子字段,该k个业务子字段位于该基础子字段之后。
可选的,该基础子字段的长度为定值。
可选的,m≥4。
可选的,该选项字段中还包括预留子字段,该预留子字段与该业务标志子字段相邻。
可选的,该预留子字段的最低比特位与该业务标志子字段的最高比特位相邻。
可选的,该选项字段中包括类型子字段和长度子字段,该类型子字段指示该选项字段的类型,该长度子字段指示该选项字段的长度。
可选的,该指示信息用于指示该头节点生成包括IPv6扩展头的IPv6报文,该IPv6扩展头中包括该选项字段,处理模块2920,用于根据该指示信息生成包括该IPv6扩展头的IPv6报文。
可选的,该IPv6扩展头包括HBH和DOH中的任意一种。
可选的,该第一业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个;或者,该第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。
可选的,第一业务包括切片业务,第一业务信息包括切片标识。
可选的,第一业务包括随流检测业务,第一业务信息包括流标识。
可选的,第一业务包括APN业务,第一业务信息包括用户组标识和应用组标识中的至少一个。
可选的,第一业务包括DetNet业务,第一业务信息包括路径标识。
综上所述,本申请实施例提供的业务处理装置,由于同一个报文的同一个选项字段中能够携带至少两个不同业务的业务信息,因此,可以节省选项字段中的一些固定内容以及一些可选子字段所带来的开销,有助于降低报文开销。
应理解的是,本申请实施例提供的业务处理装置还可以用专用集成电路(application-specific integrated circuit,ASIC)或可编程逻辑器件(programmable logic device,PLD)实现。上述PLD可以是复杂程序逻辑器件(complex programmable logical device,CPLD),现场可编程门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。也可以通过软件实现上述方法实施例提供的业务处理方法,当通过软件实现上述方法实施例提供的业务处理方法时,该业务处理装置中的各个模块也可以为软件模块。
请参考图30,其示出了本申请实施例提供的又一种业务处理装置3000的结构示意图。业务处理装置3000可以是网络设备或者该网络设备中的功能组件。该网络设备可以是上述方法实施例中的网络设备A、网络设备B或头节点。
如图30所示,业务处理装置3000包括:主控板3010、接口板3030和接口板3040。多个接口板的情况下可以包括交换网板(图30中未示出),交换网板用于完成各接口板(接口板也称为线卡或业务板)之间的数据交换。
主控板3010用于完成系统管理、设备维护、协议处理等功能。接口板3030和接口板3040用于提供各个业务接口(例如,POS接口、GE接口、ATM接口等),并实现报文转发。主控板3010上主要有3类功能单元:系统管理控制单元、系统时钟单元和系统维护单元。主控 板3010、接口板3030以及接口板3040之间通过系统总线与系统背板相连实现互通。接口板3030上包括一个或多个处理器3031。处理器3031用于对接口板3030进行控制管理并与主控板3010上的中央处理器3012进行通信。接口板3030上的存储器3032用于存储转发表、关于业务的本地配置信息等。如果业务处理装置3000是前述网络设备A,存储器3032还用于存储选项字段或所述选项字段的配置信息,处理器3031用于生成包括所述选项字段的报文,以及,处理器3031用于根据所述选项字段处理所述报文。如果业务处理装置3000是前述网络设备B,处理器3031根据报文中的所述选项字段处理所述报文。如图30所示,主控板3010可以包括存储器3014,主控板3010上的存储器3014也可以用于存储关于业务的本地配置信息、选项字段或所述选项字段的配置信息等,本申请实施例对此不作限定。接口板3030包括一个或多个网络接口3033用于接收以及发送报文,处理器3031根据网络接口3033接收到的报文中的选项字段处理该报文。具体实现过程这里不再逐一赘述。所述处理器3031的具体功能这里同样不再逐一赘述。
如图30所示,本实施例中包括多个接口板,采用分布式的转发机制,这种机制下,接口板3040上的操作与所述接口板3030的操作基本相似。例如,接口板3040包括一个或多个网络接口3043以用于接收以及发送报文,包括存储器3042以用于存储转发表、关于业务的本地配置信息等,以及,包括处理器3041以用于对接口板3040进行控制管理并与主控板3010上的中央处理器3012进行通信。为了简洁,这里不再对接口板3040进行赘述。
可以理解的是,图30中的接口板3030中的处理器3031和/或接口板3040中的处理器3041可以是专用硬件或芯片,如网络处理器或者专用集成电路来实现上述功能,这种实现方式即为通常所说的转发面采用专用硬件或芯片处理的方式。在另外的实施方式中,所述接口板3030中的处理器3031和/或接口板3040中的处理器3041也可以采用通用的处理器,如通用的中央处理器(central processing unit,CPU)来实现以上描述的功能。
此外,需要指出的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,网络设备的数据处理能力越强,提供的接口板越多。多块接口板的情况下,该多块接口板之间可以通过一块或多块交换网板通信,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,该网络设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,该网络设备包括多块接口板,可以通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的网络设备的数据接入和处理能力要大于集中式架构的设备。具体采用哪种架构取决于组网部署场景,此处不做任何限定。
具体的实施方式中,存储器3032和/或存储器3042可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器3032可以是独立存在,通过通信总线与处理器3031相连接,也可以和处理器3031集成在一起。存储器3042可以是独立存在,通过通信总线与处理器3041相连接, 也可以和处理器3041集成在一起。
存储器3032用于存储程序代码,并由处理器3031来控制执行,以执行上述实施例提供的业务处理方法的部分或者全部步骤。处理器3031用于执行存储器3032中存储的程序代码。程序代码中可以包括一个或多个软件模块。这一个或多个软件模块可以为上述图26、图27或图29所示实施例中提供的功能模块。存储器3042也可以用于存储程序代码,并由处理器3041来控制执行,以执行上述实施例提供的业务处理方法的部分或者全部步骤。同理,存储器3014也可以用于存储程序代码,并由中央处理器3012来控制执行,以执行上述实施例提供的业务处理方法的部分或者全部步骤。
具体的实施方式中,网络接口3033、网络接口3043可以是使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。
请参考图31,其示出了本申请实施例提供的又一种业务处理装置3100的结构示意图。业务处理装置3100可以是控制器。参见图31,业务处理装置3100包括:处理器3102、存储器3104、通信接口3106和总线3108。处理器3102、存储器3104和通信接口3106通过总线3108彼此通信连接。图31所示的处理器3102、存储器3104和通信接口3106之间的连接方式仅仅是示例性的,处理器3102、存储器3104和通信接口3106也可以采用除了总线3108之外的其他连接方式彼此通信连接。
存储器3104可以用于存储计算机程序31042,计算机程序31042可以包括程序代码。存储器3104可以是各种类型的存储介质,例如RAM、ROM、非易失性RAM(non-volatile RAM,NVRAM)、可编程ROM(programmable ROM,PROM)、可擦除PROM(erasable PROM,EPROM)、电可擦除PROM(electrically erasable PROM,EEPROM)、闪存、光存储器和寄存器等。
处理器3102可以是通用处理器或专用处理器。通用处理器可以是通过读取并执行存储器(例如存储器3104)中存储的计算机程序(例如计算机程序31042)来执行特定步骤和/或操作的处理器,通用处理器在执行上述步骤和/或操作的过程中可能用到存储在存储器(例如存储器3104)中的计算机程序。通用处理器可以是,例如但不限于CPU。专用处理器可以是专门设计的用于执行特定步骤和/或操作的处理器,专用处理器可以是,例如但不限于,数字信号处理器(digital signal processor,DSP)、ASIC和FPGA等。此外,处理器3102还可以是多个处理器的组合,例如多核处理器。处理器3102可以包括至少一个电路,以执行上述实施例提供业务处理方法的全部或部分步骤。
通信接口3106可以包括输入/输出(input/output,I/O)接口、物理接口和逻辑接口等用于实现业务处理装置3100内部的器件互连的接口,以及用于实现业务处理装置3100与其他通信装置互连的接口。物理接口可以是千兆的以太接口(gigabit Ethernet,GE),其可以用于实现业务处理装置3100与其他通信装置互连。逻辑接口是业务处理装置3100内部的接口,其可以用于实现业务处理装置3100内部的器件互连。容易理解,通信接口3106可以用于业务处理装置3100与其他通信装置之间信息的发送和接收,通信接口3106可以实现前述收发模块2810的相关功能。此外,通信接口3106还可以包括收发器以进行信息的收发,该收发器同样可以实现前述收发模块2810的相关功能。
其中,总线3108可以是任何类型的,用于实现处理器3102、存储器3104和通信接口3106互连的通信总线,例如系统总线。
上述器件可以分别设置在彼此独立的芯片上,也可以至少部分的或者全部的设置在同一块芯片上。将各个器件独立设置在不同的芯片上,还是整合设置在一个或者多个芯片上,往往取决于产品设计的需要。本申请实施例对上述器件的具体实现形式不作限定。
图31所示的业务处理装置3100仅仅是示例性的,在实现过程中,业务处理装置3100还可以包括其他组件,本文不再一一列举。图31所示的业务处理装置3100可以通过执行上述实施例提供的业务处理方法的全部或部分步骤来进行业务处理。
请参考图32,其示出了本申请实施例提供的一种业务处理系统3200的结构示意图。业务处理系统3200包括第一网络设备3210和第二网络设备3220。
第一网络设备3210,用于生成包括选项字段的报文,并向第二网络设备3220发送该报文,该选项字段中携带有第一业务信息和第二业务信息,第一业务信息对应第一业务,第二业务信息对应第二业务,第一业务与第二业务不同。
第二网络设备3220,用于接收该报文,并根据第一业务信息处理该报文。
具体的实施方式中,业务处理系统3200还包括:控制器3230,用于向第一网络设备3210发送指示信息,该指示信息用于指示第一网络设备3210生成包括选项字段的报文。
第一网络设备3210,具体用于根据该指示信息生成包括该选项字段的报文。
具体的实施方式中,第一网络设备3210支持第一业务,第一网络设备3210,还用于根据第一业务信息处理该报文。
具体的实施方式中,第一网络设备3210还支持第二业务,第一网络设备3210,还用于根据第二业务信息处理该报文。
具体的实施方式中,第一网络设备3210不支持第二业务,第一网络设备3210,还用于跳过第二业务信息。
具体的实施方式中,第一网络设备3210,具体用于根据第一业务信息和第一网络设备的本地配置信息处理该报文。
具体的实施方式中,第一业务信息和第二业务信息按序排列,第一网络设备3210,具体用于按照第一业务信息和第二业务信息的排列顺序处理该报文。
具体的实施方式中,第二网络设备3220支持第一业务和第二业务,第二网络设备3220,还用于根据第二业务信息处理该报文。
具体的实施方式中,第二网络设备3220支持第一业务但不支持第二业务,第二网络设备3220,还用于跳过第二业务信息。
具体的实施方式中,第二网络设备3220,具体用于根据第一业务信息和第一网络设备的本地配置信息处理该报文。
具体的实施方式中,第一业务信息和第二业务信息按序排列,第二网络设备3220,具体用于按照第一业务信息和第二业务信息的排列顺序处理该报文。
具体的实施方式中,第一网络设备3210是所述报文的转发路径上的头节点,第二网络设备3220是该转发路径上的中间节点或尾节点。上述图27或图30所提供的业务处理装置可以作为该头节点;上述图26或图30所提供的业务处理装置可以作为该中间节点或该尾节点; 上述图28或图31所提供的业务处理装置可以作为该控制器3230。
具体的实施方式中,第一网络设备3210是所述报文的转发路径上的头节点或中间节点,第二网络设备3220是该转发路径上的尾节点。上述图27或图30所提供的业务处理装置可以作为该头节点或该中间节点;上述图26或图30所提供的业务处理装置可以作为该尾节点;上述图28或图31所提供的业务处理装置可以作为控制器3230。
具体的实施方式中,上述图29所提供的业务处理装置可以作为该头节点。
本申请实施例提供了一种数据结构,该数据结构包括本申请的上述实施例提供的选项字段。关于该选项字段的描述请参考本申请的上述实施例中的相关描述,这里不再赘述。
例如,该选项字段可以是如图14至图17任一所示的选项字段。
具体的实施方式中,该选项字段可以是如图25所示的选项字段。
本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,该计算机程序被执行(例如,被业务处理装置、网络设备、控制器、一个或多个处理器等执行)时,实现如上述方法实施例提供的业务处理方法的全部或部分步骤。
本申请实施例提供了一种计算机程序产品,该计算机程序产品包括程序或代码,该程序或代码被执行(例如,被业务处理装置、网络设备、控制器、一个或多个处理器等执行)时,实现如上述方法实施例提供的业务处理方法的全部或部分步骤。
本申请实施例提供了一种芯片,该芯片包括可编程逻辑电路和/或程序指令,该芯片运行时用于实现如上述方法实施例提供的业务处理方法的全部或部分步骤。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现,所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机的可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者包含一个或多个可用介质集成的服务器、数据中心等数据存储装置。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质,或者半导体介质(例如固态硬盘)等。
应当理解的是,本申请中的“至少一个”指一个或多个,“多个”指两个或两个以上。“至少两个”指两个或两个以上,在本申请中,除非另有说明,符号“/”表示或的意思,例如,A/B可以表示A或B。本申请中的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,为了便于清楚描述,在本申请中,采用了“第一”、“第二”、“第三”、“第四”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”、“第三”、“第四”等字不对数量和执行次序进行限定。
本申请实施例提供的方法实施例和装置实施例等不同类型的实施例均可以相互参考,本申请实施例对此不作限定。本申请实施例提供的方法实施例操作的先后顺序能够适当调整,操作也能够根据情况进行响应增减,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,因此不再赘述。
在本申请提供的相应实施例中,所揭露的装置等可以通过其它的构成方式实现。例如,以上描述的装置实施例仅仅是示意性的,例如,模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性或其它的形式。
作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块描述的部件可以是或者也可以不是物理单元,既可以位于一个地方,也可以分布到多个设备(例如网络设备)上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
以上所述,仅为本申请的示例性实施方式,本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (33)

  1. 一种业务处理方法,其特征在于,所述方法包括:
    网络设备接收包括选项字段的报文,所述选项字段中携带有第一业务信息和第二业务信息,所述第一业务信息对应第一业务,所述第二业务信息对应第二业务,所述第一业务与所述第二业务不同;
    所述网络设备根据所述第一业务信息处理所述报文。
  2. 一种业务处理方法,其特征在于,所述方法包括:
    网络设备生成包括选项字段的报文,所述选项字段中携带有第一业务信息和第二业务信息,所述第一业务信息对应第一业务,所述第二业务信息对应第二业务,所述第一业务与所述第二业务不同;
    所述网络设备发送所述报文。
  3. 根据权利要求1或2所述的方法,其特征在于,
    所述选项字段中包括第一子字段和第二子字段,所述第一子字段中携带有所述第一业务信息,所述第二子字段中携带有所述第二业务信息。
  4. 根据权利要求3所述的方法,其特征在于,
    所述第一子字段的长度和所述第二子字段的长度相同。
  5. 根据权利要求4所述的方法,其特征在于,
    所述选项字段中还包括第三子字段,所述第三子字段中携带有第三业务信息,所述第三业务信息对应第三业务,所述第一业务、所述第二业务和所述第三业务互不相同;
    所述第一子字段、所述第二子字段和所述第三子字段依次排列,所述第三子字段的长度与所述第一子字段的长度不同。
  6. 根据权利要求5所述的方法,其特征在于,
    所述第三子字段的长度大于所述第一子字段的长度。
  7. 根据权利要求3至6任一项所述的方法,其特征在于,
    所述第一子字段的长度和所述第二子字段的长度均为2n比特,n为大于或等于3的整数。
  8. 根据权利要求3至7任一项所述的方法,其特征在于,
    所述选项字段中还包括第四子字段,所述第四子字段指示所述第一子字段的长度和所述第二子字段的长度。
  9. 根据权利要求1至8任一项所述的方法,其特征在于,
    所述选项字段中包括业务标志子字段,所述业务标志子字段对应m个业务,所述m个业务互不相同,所述m个业务包括所述第一业务和所述第二业务,所述业务标志子字段指示所述选项字段中携带有所述第一业务信息和所述第二业务信息,m为大于或等于2的整数。
  10. 根据权利要求9所述的方法,其特征在于,
    所述业务标志子字段中包括m个标志位,所述m个标志位一一对应所述m个业务;
    所述m个标志位中的第一标志位对应所述第一业务,所述m个标志位中的第二标志位对应所述第二业务,所述第一标志位指示所述选项字段中携带有所述第一业务信息,所述第二标志位指示所述选项字段中携带有所述第二业务信息。
  11. 根据权利要求10所述的方法,其特征在于,
    所述第一标志位和所述第二标志位按序排列,所述第一业务信息和所述第二业务信息的按序排列,所述第一业务信息和所述第二业务信息的排列顺序与所述第一标志位和所述第二标志位的排列顺序对应。
  12. 根据权利要求1至8任一项所述的方法,其特征在于,
    所述第一业务信息为基础业务信息,所述选项字段中包括业务标志子字段,所述业务标志子字段对应m个业务,所述m个业务互不相同,所述m个业务包括所述第二业务,所述业务标志子字段指示所述选项字段中携带有所述第二业务信息,m为正整数。
  13. 根据权利要求9至12任一项所述的方法,其特征在于,m≥4。
  14. 根据权利要求9至13任一项所述的方法,其特征在于,
    所述选项字段中还包括预留子字段,所述预留子字段与所述业务标志子字段相邻。
  15. 根据权利要求1至14任一项所述的方法,其特征在于,
    所述报文为互联网协议第6版IPv6报文,所述报文中包括IPv6扩展头,所述IPv6扩展头中包括所述选项字段。
  16. 根据权利要求15所述的方法,其特征在于,
    所述IPv6扩展头包括逐跳头HBH和目的选项头DOH中的任意一种。
  17. 根据权利要求1至16任一项所述的方法,其特征在于,
    所述第一业务包括切片业务、随流检测业务、应用感知网络APN业务和确定性网络DetNet业务中的任意一个;或者,
    所述第二业务包括切片业务、随流检测业务、APN业务和DetNet业务中的任意一个。
  18. 根据权利要求1至16任一项所述的方法,其特征在于,
    所述第一业务包括切片业务,所述第一业务信息包括切片标识。
  19. 根据权利要求1至16任一项所述的方法,其特征在于,
    所述第一业务包括随流检测业务,所述第一业务信息包括流标识。
  20. 根据权利要求1至16任一项所述的方法,其特征在于,
    所述第一业务包括应用感知网络APN业务,所述第一业务信息包括用户组标识和应用组标识中的至少一个。
  21. 根据权利要求1至16任一项所述的方法,其特征在于,
    所述第一业务包括确定性网络DetNet业务,所述第一业务信息包括路径标识。
  22. 根据权利要求1至21任一项所述的方法,其特征在于,
    所述网络设备支持所述第一业务和所述第二业务,所述方法还包括:
    所述网络设备根据所述第二业务信息处理所述报文。
  23. 根据权利要求1至21任一项所述的方法,其特征在于,
    所述网络设备支持所述第一业务但不支持所述第二业务,所述方法还包括:
    所述网络设备跳过所述第二业务信息。
  24. 根据权利要求1、3至23任一项所述的方法,其特征在于,
    所述网络设备根据所述第一业务信息处理所述报文,包括以下至少一项:
    所述网络设备根据所述第一业务信息统计所述报文;
    所述网络设备根据所述第一业务信息转发所述报文。
  25. 根据权利要求1、3至24任一项所述的方法,其特征在于,
    所述网络设备根据所述第一业务信息处理所述报文,包括:所述网络设备根据所述第一业务信息和所述第一业务关联的本地配置信息处理所述报文。
  26. 根据权利要求2至23任一项所述的方法,其特征在于,所述方法还包括:
    所述网络设备接收控制器发送的指示信息,所述指示信息用于指示所述网络设备生成包括所述选项字段的报文;
    所述网络设备生成包括选项字段的报文,包括:所述网络设备根据所述指示信息生成包括所述选项字段的所述报文。
  27. 一种业务处理装置,其特征在于,包括:收发模块和处理模块;
    所述收发模块用于执行如权利要求1至26任一项中所述的方法中的收发操作,所述处理模块用于执行如权利要求1至26任一项所述的方法中除所述收发操作之外的操作。
  28. 一种业务处理装置,其特征在于,包括:存储器和处理器;
    所述存储器用于存储计算机程序;
    所述处理器用于执行所述存储器中存储的所述计算机程序以使得所述业务处理装置执行如权利要求1至26任一项所述的方法。
  29. 一种业务处理系统,其特征在于,包括第一网络设备和第二网络设备;
    所述第一网络设备,用于生成包括选项字段的报文,并向所述第二网络设备发送所述报文,所述选项字段中携带有第一业务信息和第二业务信息,所述第一业务信息对应第一业务,所述第二业务信息对应第二业务,所述第一业务与所述第二业务不同;
    所述第二网络设备,用于接收所述报文,并根据所述第一业务信息处理所述报文。
  30. 根据权利要求29所述的系统,其特征在于,所述系统还包括:控制器;
    所述控制器,用于向所述第一网络设备发送指示信息,所述指示信息用于指示所述第一网络设备生成包括所述选项字段的报文;
    所述第一网络设备,用于根据所述指示信息生成包括所述选项字段的所述报文。
  31. 根据权利要求29或30所述的系统,其特征在于,
    所述第一网络设备是所述报文的转发路径上的头节点;
    所述第二网络设备是所述转发路径上的中间节点或尾节点。
  32. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被执行时实现如权利要求1至26任一项所述的方法。
  33. 一种计算机程序产品,其特征在于,所述计算机程序产品包括程序或代码,所述程序或代码被执行时,实现如权利要求1至26任一项所述的方法。
PCT/CN2022/137895 2021-12-14 2022-12-09 业务处理方法、装置及系统 WO2023109672A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202111527212.1 2021-12-14
CN202111527212 2021-12-14
CN202210096188.9A CN116264590A (zh) 2021-12-14 2022-01-26 业务处理方法、装置及系统
CN202210096188.9 2022-01-26

Publications (1)

Publication Number Publication Date
WO2023109672A1 true WO2023109672A1 (zh) 2023-06-22

Family

ID=86722762

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/137895 WO2023109672A1 (zh) 2021-12-14 2022-12-09 业务处理方法、装置及系统

Country Status (2)

Country Link
CN (1) CN116264590A (zh)
WO (1) WO2023109672A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511988A (zh) * 2020-03-06 2021-03-16 中兴通讯股份有限公司 报文转发方法、设备、系统、网络设备和存储介质
CN112787922A (zh) * 2019-11-01 2021-05-11 华为技术有限公司 一种报文处理的方法、网络节点和系统
CN113497758A (zh) * 2020-04-03 2021-10-12 华为技术有限公司 服务执行方法、装置及系统
US20210377778A1 (en) * 2020-05-26 2021-12-02 Mediatek Inc. Method and apparatus of using aggregated control subfield for traffic indication signaling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112787922A (zh) * 2019-11-01 2021-05-11 华为技术有限公司 一种报文处理的方法、网络节点和系统
CN112511988A (zh) * 2020-03-06 2021-03-16 中兴通讯股份有限公司 报文转发方法、设备、系统、网络设备和存储介质
CN113497758A (zh) * 2020-04-03 2021-10-12 华为技术有限公司 服务执行方法、装置及系统
US20210377778A1 (en) * 2020-05-26 2021-12-02 Mediatek Inc. Method and apparatus of using aggregated control subfield for traffic indication signaling

Also Published As

Publication number Publication date
CN116264590A (zh) 2023-06-16

Similar Documents

Publication Publication Date Title
EP4024780A1 (en) Path detection method and apparatus, and computer storage medium
WO2021135468A1 (zh) 段标识的确定方法和设备
WO2021169256A1 (zh) 网络性能检测方法、装置及网络设备
WO2021098271A1 (zh) 下发oam配置信息的方法及控制节点
WO2021082575A1 (zh) 一种报文转发方法、设备、存储介质及系统
WO2020073908A1 (zh) 一种发送路由信息的方法和装置
CN112887229B (zh) 一种会话信息同步方法及装置
US20240048479A1 (en) Packet Forwarding Method and Apparatus, Network Device, and Storage Medium
JP2024504466A (ja) パケット転送方法、パケット処理方法、およびデバイス
US11206216B2 (en) Flexible ethernet frame forwarding method and apparatus
WO2023109672A1 (zh) 业务处理方法、装置及系统
US11916768B2 (en) Information sharing method and apparatus in redundancy network, and computer storage medium
WO2022121638A1 (zh) 一种报文处理方法及装置
CN116346716A (zh) 报文处理方法及装置、通信系统
WO2024040884A1 (zh) 业务处理方法、装置及系统
CN115242699A (zh) 报文传输方法、切片生成方法、装置及系统
EP4156648A1 (en) Network configuration method and apparatus, and computer readable storage medium
CN117640791A (zh) 业务处理方法、装置及系统
WO2023016110A1 (zh) 传输网络层可达信息的方法、装置、设备、系统及介质
WO2022001581A1 (zh) 网络、数据传输的方法和装置
WO2023005927A1 (zh) 一种基于SRv6的隧道质量检测方法和相关装置
CN118075211A (zh) 报文处理方法及相关装置
WO2023138351A1 (zh) 一种流量转发方法、报文发送方法、消息发送方法及装置
CN109905283A (zh) 一种流量统计方法、装置及计算机可读存储介质
WO2023050313A1 (zh) 一种报文处理方法、装置、网络设备及介质

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

Country of ref document: EP

Kind code of ref document: A1