WO2023093227A1 - 信息的收集方法、装置、存储介质及电子装置 - Google Patents

信息的收集方法、装置、存储介质及电子装置 Download PDF

Info

Publication number
WO2023093227A1
WO2023093227A1 PCT/CN2022/118816 CN2022118816W WO2023093227A1 WO 2023093227 A1 WO2023093227 A1 WO 2023093227A1 CN 2022118816 W CN2022118816 W CN 2022118816W WO 2023093227 A1 WO2023093227 A1 WO 2023093227A1
Authority
WO
WIPO (PCT)
Prior art keywords
target network
network function
execution information
network
function execution
Prior art date
Application number
PCT/CN2022/118816
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 WO2023093227A1 publication Critical patent/WO2023093227A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • Embodiments of the present disclosure relate to the communication field, and in particular, to an information collection method, device, storage medium, and electronic device.
  • the first implementation method is to insert SRv6 network information into SRv6 (Segment Routing over IPv6, IPv6 segment routing) data packets.
  • the second implementation is to insert MPLS label (MPLS Label ), where, no matter which forwarding plane implementation is adopted, the network node will parse and execute the network function contained in the data message after receiving the data message containing the network function, but in this technology, the execution of the network node
  • MPLS Label MPLS label
  • Embodiments of the present disclosure provide an information collection method, device, storage medium, and electronic device, so as to at least solve the problem in the related art that it is impossible to monitor and analyze the behavior of network nodes executing network functions in real time.
  • a method for collecting information including: after receiving the message, the target network node determines the in-band operation management and maintenance IOAM header of the message; the target network node is based on When the IOAM header determines that the network function execution information needs to be collected, the target network function execution information is collected.
  • a device for collecting information including: a determining module configured to, after receiving a message, determine the in-band operation management and maintenance IOAM header of the message; a collecting module configured to Collecting target network function execution information when it is determined based on the IOAM header that the network function execution information needs to be collected.
  • a computer-readable storage medium wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to perform any one of the above-mentioned methods when running Steps in the examples.
  • an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above Steps in the method examples.
  • FIG. 1 is a schematic diagram of an SRv6 packet encapsulation format including SRv6 network functions in the related art
  • FIG. 2 is a schematic diagram of an MPLS packet encapsulation format including MPLS network functions in the related art
  • FIG. 3 is a block diagram of a hardware structure of a mobile terminal according to an information collection method according to an embodiment of the present disclosure
  • FIG. 4 is a flowchart of a method for collecting information according to an embodiment of the present disclosure
  • Fig. 5 is a flowchart of a method for collecting information according to a specific embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a data packet encapsulation format carrying an IOAM header according to an embodiment of the disclosure
  • FIG. 7 is a schematic diagram of an IOAM header encapsulation format for performing a first processing manner according to an embodiment of the present disclosure
  • FIG. 8 is a schematic diagram of an IOAM header encapsulation format for performing a second processing manner according to an embodiment of the present disclosure
  • FIG. 9 is a flowchart of collecting network function execution information according to a first processing manner in an SRv6 network according to an embodiment of the present disclosure
  • FIG. 10 is a schematic diagram of an SRv6 message encapsulation format after adding an IOAM header to a network entry node according to an embodiment of the present disclosure
  • FIG. 11 is a schematic diagram of an SRv6 packet encapsulation format after a network node adds network function execution information according to an embodiment of the present disclosure
  • FIG. 12 is a flow chart of collecting network function execution information according to a second processing manner in an SRv6 network according to an embodiment of the present disclosure
  • FIG. 13 is a flowchart of collecting network function execution information in an MPLS network according to a first processing manner according to an embodiment of the present disclosure
  • FIG. 14 is a schematic diagram of an MPLS packet encapsulation format after adding an IOAM header to a network entry node according to an embodiment of the present disclosure
  • 15 is a schematic diagram of an MPLS packet encapsulation format after a network node adds network function execution information according to an embodiment of the present disclosure
  • FIG. 16 is a flowchart of collecting network function execution information in an MPLS network according to a second processing manner according to an embodiment of the present disclosure
  • Fig. 17 is a structural block diagram of an information collection device according to an embodiment of the present disclosure.
  • FIG. 1 is a schematic diagram of the encapsulation format of SRv6 packets containing SRv6 network functions in the related art. As shown in Figure 1, the SID containing SRv6 network functions is inserted into the SRv6 data packet for the network node to which the SID belongs to execute the SID containing SRv6 networking capabilities.
  • FIG. 2 is a schematic diagram of the encapsulation format of an MPLS message containing MPLS network functions in the related art. As shown in Figure 2, the MPLS label containing the MPLS network function is inserted into the MPLS data message for the MPLS network node to execute the MPLS label containing MPLS network function.
  • a method for collecting network function execution information is proposed in the embodiment of the present disclosure, which can realize message-based in-band operation management and maintenance IOAM header to determine the need to collect network functions
  • the execution information of the network function (including the type of network function executed and the result of the execution, etc.), and then collect the execution information of the network function.
  • FIG. 3 is a block diagram of a hardware structure of a mobile terminal according to an information collection method according to an embodiment of the present disclosure.
  • the mobile terminal may include one or more (only one is shown in FIG. 3) processor 302 (the processor 302 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 304 configured to store data, wherein the above-mentioned mobile terminal may further include a transmission device 306 and an input/output device 308 configured to communicate.
  • processor 302 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.
  • a memory 304 configured to store data
  • the above-mentioned mobile terminal may further include a transmission device 306 and an input/output device 308 configured to communicate.
  • FIG. 3 is only for illustration, and it does not limit the structure of the above-mentioned mobile terminal.
  • the mobile terminal may also include more or fewer components than those shown in FIG. 3, or have a different configuration from that shown in FIG.
  • the memory 304 can be set to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the information collection method in the embodiments of the present disclosure, and the processor 302 runs the computer programs stored in the memory 304, thereby Executing various functional applications and data processing is to realize the above-mentioned method.
  • the memory 304 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 304 may further include a memory that is remotely located relative to the processor 302, and these remote memories may be connected to the mobile terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission means 306 are arranged to receive or transmit data via a network.
  • the specific example of the above network may include a wireless network provided by the communication provider of the mobile terminal.
  • the transmission device 306 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 306 may be a radio frequency (Radio Frequency, referred to as RF) module, which is configured to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • FIG. 4 is a flow chart of the method for collecting information according to an embodiment of the present disclosure. As shown in FIG. 4 , the process includes the following steps:
  • Step S402 after receiving the message, the target network node determines the in-band operation, management and maintenance IOAM header of the message;
  • step S404 the target network node collects target network function execution information when it is determined based on the IOAM header that network function execution information needs to be collected.
  • the execution subject of the above steps may be a network node, or a network device, such as a network switch, a router, etc.
  • the execution subject of the above steps may also be a unit or terminal capable of receiving, collecting, and executing information.
  • the following takes the network node performing the above operations as an example (it is only an exemplary description, and other devices or modules may also perform the above operations in actual operation) for illustration.
  • the target network node may be a network entry node, an along-way network node, or a network exit node, and any network node on the packet transmission path may perform the above operations.
  • the target network node can receive the data message, and then determine and collect the network function execution information based on the in-band operation, management and maintenance IOAM header of the data message.
  • the in-band operation, management and maintenance IOAM header of the data packet may indicate to collect various network function execution information.
  • the network node can collect the execution information of the network function when it is determined that the execution information of the network function needs to be collected based on the IOAM header of the in-band operation management and maintenance of the message, and then, according to the collected network function, it can collect the execution information of the network function in time
  • Execution information monitoring and analysis of network nodes effectively solves the problem of inability to monitor and analyze network node execution network function behaviors in real time in related technologies.
  • the collection of target network function execution information by the target network node may include, but is not limited to: the target network node determines that the target network node needs to Executed target network function; the target network node executes the target network function, and determines that the target network function execution information generated by executing the target network function needs to be collected based on the target information carried in the IOAM header In the case of , the target network function execution information is collected based on the execution result. In this embodiment, the target network node determines the target network function to be executed based on the function indication information carried in the received data message, that is, for instructing the target network node to collect network function execution information, wherein, The indication information may be different in different protocol messages.
  • the indication information may be determined based on the information included in the IPv6 destination address of the message, that is, the destination The address will contain the function that needs to be performed by the network node currently receiving the message; for the multi-protocol label switching MPLS message, the indication information can be determined based on the information included in the MPLS network function indication label, the MPLS The network function indication label will include indication information for indicating which function needs to be performed. In addition, the MPLS network function indication label may not clearly specify which node performs which function. After receiving the message, the network node will to determine the functions that can be performed.
  • the target network node collecting the target network function execution information based on the execution result may, but not limited to, include: the target network node determines the target network function executed by the target network node based on the execution result The number of target network functions, the type of each of the target network functions performed, and the result of each of the target network functions performed; The type of the target network function, and the result of executing each of the target network functions are determined as the target network function execution information.
  • the IOAM header may carry multiple indication information to instruct different network nodes to collect network function execution information.
  • the execution result determines the number of the target network functions, the type of each of the target network functions executed, and the result of each of the executed target network functions, wherein the result of executing each of the target network functions includes The execution is successful or the execution fails. If the result of the execution is failure, the reason for the execution failure may also be added to the collected target network function execution information.
  • collecting the target network function execution information includes: when the target network node determines, based on the bitmap carried in the IOAM header, that the target network function execution information generated by executing the target network function needs to be collected, Collect the execution information of the target network function based on the execution result; wherein, the bit map includes a string of indication bits, the string of indication bits includes a target indication bit, and the value of the target indication bit is a specific value In some cases, the target indication bit is used to indicate that network function execution information needs to be collected.
  • the above-mentioned target indication bit may be a bit at a specific position in the bitmap, and the bit at which position is specifically used as the target indication bit may be predetermined. A part of bits is additionally extended, and the above-mentioned target indication bit is determined from the extended bits.
  • the network node currently receiving the message needs to collect network function execution information
  • the value of the target indication bit is 1, Indicates that the network node currently receiving the message needs to collect network function execution information, or in the case that the value of the target indicator bit is 0, it indicates that the network node currently receiving the message needs to collect network function execution information, of course, it can also be used Other values are used to instruct the network node currently receiving the message to collect network function execution information.
  • bits at different positions can be used to indicate different operations, for example, to collect other types of information.
  • this disclosure only needs to expand 1 bit in the bitmap to represent the network function execution information to realize the indication along the road. Each network node on the network collects network function execution information.
  • the target network node further includes: the target network node executes the target network function according to the processing method indicated by the indication information carried in the IOAM header. information is processed.
  • the target network node may determine the processing mode of the target network function execution information based on the indication information carried in the IOAM header, where the indication information may be the IOAM data type and The information included in the processing method field.
  • each network node can also include a processing method in which each network node directly exports the collected network function execution information to the network analyzer for analysis.
  • This method can be called method 2; of course, other processing methods are also included, for example, some network nodes add the collected network function execution information to the IOAM header, and some network nodes directly export the collected network function execution information Processing for the network analyzer, etc., will not be repeated here.
  • the target network node processing the target network function execution information according to the processing manner indicated by the indication information carried in the IOAM header includes: the target network node determining the indication information It is used to indicate that when the network function execution information is processed according to the first processing method (corresponding to the above-mentioned method 1), the target network function execution information is added to the IOAM header; when the target network node determines the The instruction information is used to indicate that in the case of processing the network function execution information according to the second processing method (corresponding to the above-mentioned method 2), the target network function execution information is exported to the network analyzer, wherein the network analyzer is used to Analyzing the target network function execution information.
  • the two processing methods are described in detail below:
  • the first processing method includes: the target indicated by the IOAM header will be collected by each network node (including network entry node, network intermediate node and network exit node, etc.) along the road
  • the network function execution information is added to the IOAM header, and the IOAM header carries the target network function execution information delivered by each network node to the network egress node, and then the network egress node executes the target network function carried in the IOAM header
  • the information is exported to the network analyzer for analysis and processing; the second processing method includes: each network node (comprising network entry node, network intermediate node and network exit node, etc.) along the way will collect the information indicated by the IOAM head
  • the method further includes: adding the target network function execution information to the IOAM header by the target network node After that, export all the network function execution information added in the IOAM header to the network analyzer, and strip the IOAM header to restore the original data packet.
  • the network egress node may add the All the added network function execution information is exported to the network analyzer, and the IOAM header is stripped by the network egress node to restore the original data message.
  • the network analyzer receives the After the target network function execution information collected by the network node, the target network function actually executed by the target network node can be compared with the target network function expected to be executed. Abnormal target network nodes do further troubleshooting, and then deal with the faults that occur.
  • the method further includes: after the target network node exports the target network function execution information to a network analyzer , stripping the IOAM header to restore the original data packet.
  • the target network node may export all the network function execution information included in the IOAM header to the network analyzer, wherein, when performing the export operation, it may be based on Perform information export in a specific export order, for example, export the target network function execution information sequentially according to the export priority of the pre-configured network function execution information, or export each network function execution information according to the priority of the network node that collects the network function execution information
  • the target network function execution information collected by the node is sequentially derived, or the target network function execution information is sequentially derived according to the collection time of the network function execution information (including first-to-last, or last-to-first), etc.
  • the IOAM header can be stripped via the network egress node to restore the original data packet.
  • the network analyzer receives After the target network function execution information is collected by the network node, the target network execution function actually executed by the target network node can be compared with the target network function expected to be executed, and if there is an abnormal situation of mismatch, the For the abnormal target network node, do further troubleshooting, and then deal with the fault accordingly.
  • the above method further includes: the network entry node performs the processing of adding the IOAM header in the original data message, and sends the processed message along the target transmission path, wherein the target transmission The target network node is included on the path.
  • the IOAM header may be added by the network entry node at the entry of the path.
  • the above-mentioned message includes at least one of the following: an IPv6 segment routing SRv6 message; a multi-protocol label switching MPLS message.
  • the above data message types may also include other messages with similar structures or similar processing methods.
  • Fig. 5 is a flowchart of a method for collecting information according to a specific embodiment of the present disclosure. As shown in Fig. 5, the process includes the following steps:
  • the network ingress node adds an in-band operation management and maintenance (In-situ OAM, IOAM) header to the data message (IPv6 segment routing SRv6 message or multi-protocol label switching MPLS message), which is used to instruct network nodes along the road to collect network functions Execution information.
  • IPv6 segment routing SRv6 message or multi-protocol label switching MPLS message IPv6 segment routing SRv6 message or multi-protocol label switching MPLS message
  • Network function execution information includes the type of network function executed and the result of execution. Since a network node may execute more than one network function, the network function execution information collected by a single network node includes the number of target network functions executed by the network node , the type of each target network function executed, and the result of each executed network function, where the result of each executed network function includes execution success or execution failure, and if the execution result is failure, it may also include execution reason of failure.
  • the types of SRv6 network functions include, End.
  • Fig. 6 is a schematic diagram of a data packet encapsulation format carrying an IOAM header according to an embodiment of the present disclosure.
  • the IOAM header is a special header embedded in a data packet for network node information collection, according to According to the IETF drafts draft-ietf-ippm-ioam-data-14 and draft-ietf-ippm-ioam-direct-export-06, there are currently two processing methods for IOAM headers.
  • the first processing method is that each The network node adds the network function execution information indicated by the IOAM header to the IOAM header, and the IOAM header is carried all the way to the exit of the network, and then the network exit node strips the IOAM header, and exports the network function execution information carried in it to the network.
  • the analyzer performs analysis and processing;
  • the second processing method is that each network node along the road directly exports the network function execution information indicated by the IOAM header to the network analyzer for analysis and processing, wherein the network node carries out the information based on the indication information carried in the IOAM header (corresponding to the above indication information) determine the processing mode of the IOAM header.
  • the network node along the road collects network function execution information according to the instruction information of the IOAM header, and processes the collected network function execution information according to the instruction of the IOAM header, wherein, the network node along the road receives the data packet
  • the IOAM header carried by the data message will be analyzed, network function execution information will be collected according to the instruction information in the IOAM header, and the collected network function execution information will be processed, wherein the network nodes along the road include network entry nodes, Network intermediate nodes and network exit nodes.
  • FIG. 7 is a schematic diagram of the IOAM header encapsulation format according to the first processing method according to an embodiment of the disclosure.
  • the IOAM data type and processing method instruct network nodes to determine and collect hop-by-hop tracking type information based on the first processing method (one network node by one network node traces and collects network function execution information), that is, each network along the road
  • the node adds the collected network function execution information to the IOAM header, wherein the IOAM bitmap (corresponding to the above bitmap) instructs each network node to specifically collect the network function execution information.
  • FIG. 8 is a schematic diagram of the encapsulation format of the IOAM header according to the embodiment of the present disclosure. As shown in FIG.
  • the IOAM data type and the processing method indicate that the network node is based on
  • the second processing method is to determine the collection of hop-by-hop tracking information (a network node-by-network node tracking collects network function execution information), that is, each network node along the road directly exports the collected network function execution information to the network analyzer. , not added to the IOAM header, where is an IOAM bitmap (corresponding to the above-mentioned IOAM bitmap) instructing each network node to specifically collect network function execution information.
  • the network egress node determines to collect the network function execution information of the network egress node based on the indication information of the IOAM header, and strips the IOAM header carried by the data message by the network egress node, and restores the original data message, if the indication information in the IOAM header indicates
  • the network node executes the first processing method.
  • the network exit node first adds the network function execution information collected by the node to the IOAM header, and then exports the network function execution information added by each network node along the road carried in the IOAM header to the A network analyzer, and the network egress node strips off the IOAM header to restore the original data message.
  • the network egress node directly exports the network function execution information collected by the node to the network analyzer, strips the IOAM header, and restores the original data message, wherein, No matter which processing method is executed, after receiving the network function execution information collected by the network node, the network analyzer can compare the network function actually executed by the network node with the network function expected to be executed. Once there is an abnormal situation that does not match, Then you can do further troubleshooting for the abnormal network node.
  • Fig. 9 is a flow chart of collecting network function execution information in an SRv6 network according to a first processing method according to an embodiment of the present disclosure. As shown in Fig. 9 , the process includes the following steps:
  • the network entry node adds an IOAM header to the SRv6 data message, and instructs the network node to collect network function execution information, wherein the IOAM header includes the IOAM data type and processing method, the IOAM data length, and a bitmap, wherein the IOAM data type and The processing method indicates that the IOAM header contains hop-by-hop tracking information, and the first processing method is executed.
  • the first processing method is that each network node adds the network function execution information indicated by the IOAM header to the IOAM header, wherein, is The IOAM bit map (corresponding to the above-mentioned IOAM bit map) instructs each network node to specifically collect network function execution information.
  • the bit map is a series of indicating bits (corresponding to the above-mentioned indicating bits), and each bit represents a kind of information.
  • the value of the bit corresponding to the above-mentioned target indication bit
  • FIG. 10 is a schematic diagram of an SRv6 packet encapsulation format after a network entry node adds an IOAM header according to an embodiment of the present disclosure.
  • the IOAM header includes a bit map for indicating that network function execution information needs to be collected, wherein Bits indicating network function execution information shall be set to 1.
  • FIG. 11 is a schematic diagram of an SRv6 packet encapsulation format after a network node adds network function execution information according to an embodiment of the present disclosure. As shown in FIG.
  • each network node along the road adds the collected information to the IOAM header, including the The number of SRv6 network functions executed by the network node, the type of each SRv6 network function executed, and the result of each SRv6 network function executed, wherein the result of each SRv6 network function executed includes execution success or execution failure, if executed If the result is failure, the reason for the execution failure can also be included.
  • the network egress node After the network egress node receives the SRv6 data message, it collects the network function execution information of the node according to the instruction information of the IOAM header, and strips the IOAM header, and restores the original data message, wherein the network egress node first collects the node The network function execution information of the network function is added to the IOAM header, and then the network function execution information added by each network node carried in the IOAM header is exported to the network analyzer together, and the IOAM header is stripped by the network egress node to restore the original SRv6 data message.
  • Fig. 12 is a flow chart of collecting network function execution information in an SRv6 network according to a second processing method according to an embodiment of the present disclosure. As shown in Fig. 12 , the process includes the following steps:
  • the network entry node adds an IOAM header to the SRv6 data message, and instructs the network node to collect network function execution information, wherein the IOAM header includes the IOAM data type and processing method, the IOAM data length, and a bitmap, wherein the IOAM data type and The processing method indicates that the IOAM header contains hop-by-hop tracking information, and executes the second processing method.
  • the second processing method is that each network node directly exports the collected network function execution information to the network analyzer for analysis and processing, wherein , is the IOAM bitmap (corresponding to the above-mentioned IOAM bitmap) instructing each network node to specifically collect network function execution information, the bitmap is a string of indicating bits (corresponding to the above-mentioned indicating bits), and each bit represents a kind of information, in When a certain bit (corresponding to the above-mentioned target indication bit) takes a value of 1, it indicates that the network node needs to collect network function execution information corresponding to this bit.
  • the network node After receiving the SRv6 data message, the network node collects network function execution information according to the indication information of the IOAM header carried in the data message, and processes the collected network function execution information according to the indication of the IOAM header, wherein the network node According to the instructions of the IOAM header, the collected network function execution information is directly exported to the network analyzer for analysis and processing, and then the data message is forwarded to the next network node, and the next network node that receives the data message will also collect the information The network function execution information is directly exported to the network analyzer for analysis and processing until the network exit.
  • the network function execution information includes the number of SRv6 network functions executed, the type of each SRv6 network function executed, and each SRv6 network function executed.
  • the result of the function wherein, the result of executing each SRv6 network function includes execution success or execution failure, and if the execution result is failure, it may also include the reason for the execution failure.
  • the network egress node After the network egress node receives the SRv6 data message, it collects the network function execution information of the node according to the indication information of the IOAM header, and the network egress node strips the IOAM header to restore the original data message, wherein the network egress node first The network function execution information collected by this node is directly exported to the network analyzer for analysis and processing, and then the IOAM header is stripped to restore the original SRv6 data message.
  • Fig. 13 is a flow chart of collecting network function execution information in an MPLS network according to the first processing method according to an embodiment of the present disclosure. As shown in Fig. 13 , the process includes the following steps:
  • the network entry node adds an IOAM header to the MPLS data message, and instructs the network node to collect network function execution information, wherein the IOAM header includes the IOAM data type and processing method, the IOAM data length, and a bitmap, wherein the IOAM data type and The processing method indicates that the IOAM header contains hop-by-hop tracking information, and the first processing method is executed.
  • the first processing method is that each network node adds the network function execution information indicated by the IOAM header to the IOAM header, wherein, is The IOAM bit map (corresponding to the above-mentioned IOAM bit map) instructs each network node to specifically collect network function execution information.
  • the bit map is a series of indicating bits (corresponding to the above-mentioned indicating bits), and each bit represents a kind of information.
  • the value of the bit corresponding to the above-mentioned target indication bit
  • FIG. 14 is a schematic diagram of an MPLS packet encapsulation format after a network entry node adds an IOAM header according to an embodiment of the present disclosure.
  • the IOAM header includes a bit map for indicating that network function execution information needs to be collected, wherein Bits indicating network function execution information shall be set to 1.
  • the network node After receiving the MPLS data message, the network node collects network function execution information according to the indication information of the IOAM header carried in the data message, and processes the collected network function execution information according to the indication of the IOAM header, wherein the network node Add the collected network function execution information to the IOAM header according to the instructions of the IOAM header, and then forward the data message to the next network node along the road, and the next network node that receives the data message will also execute the collected network function Information is added to the IOAM header until network egress.
  • FIG. 15 is a schematic diagram of an MPLS packet encapsulation format after a network node adds network function execution information according to an embodiment of the present disclosure. As shown in FIG.
  • each network node along the road adds the collected information to the IOAM header, including The number of MPLS network functions executed by the network node, the type of each MPLS network function executed, and the result of each MPLS network function executed, wherein the result of each MPLS network function executed includes execution success or execution failure, if If the execution result is failure, the reason for the execution failure may also be included.
  • the network egress node After the network egress node receives the MPLS data message, it collects the network function execution information of the node according to the indication information of the IOAM header, and strips the IOAM header to restore the original data message, wherein the network egress node first collects the node The network function execution information of the network function is added in the IOAM header, and then the network function execution information added by each network node carried in the IOAM header is exported to the network analyzer together, and the IOAM header is stripped by the network egress node, and the original MPLS data message is restored.
  • FIG. 16 is a flow chart of collecting network function execution information in an MPLS network according to a second processing method according to an embodiment of the present disclosure. As shown in FIG. 16 , the process includes the following steps:
  • the network entry node adds an IOAM header to the MPLS data message, and instructs the network node to collect network function execution information, wherein the IOAM header includes the IOAM data type and processing method, the IOAM data length, and a bitmap, wherein the IOAM data type and The processing method indicates that the IOAM header contains hop-by-hop tracking information, and executes the second processing method.
  • the second processing method is that each network node directly exports the collected network function execution information to the network analyzer for analysis and processing, wherein , is the IOAM bitmap (corresponding to the above-mentioned IOAM bitmap) instructing each network node to specifically collect network function execution information, the bitmap is a string of indicating bits (corresponding to the above-mentioned indicating bits), and each bit represents a kind of information, in When a certain bit (corresponding to the above-mentioned target indication bit) takes a value of 1, it indicates that the network node needs to collect network function execution information corresponding to this bit.
  • the network node After receiving the MPLS data message, the network node collects network function execution information according to the indication information of the IOAM header carried in the data message, and processes the collected network function execution information according to the indication of the IOAM header, wherein the network node According to the instructions of the IOAM header, the collected network function execution information is directly exported to the network analyzer for analysis and processing, and then the data message is forwarded to the next network node, and the next network node that receives the data message will also collect the information
  • the network function execution information is directly exported to the network analyzer for analysis and processing until the network exit, where the network function execution information includes the number of executed MPLS network functions, the type of each MPLS network function executed and each MPLS network function executed.
  • the result of the function wherein, the result of executing each MPLS network function includes execution success or execution failure, and if the execution result is failure, it may also include the reason for the execution failure.
  • the network egress node After the network egress node receives the MPLS data message, it collects the network function execution information of the node according to the indication information of the IOAM header, and strips the IOAM header by the network egress node to restore the original data message, wherein the network egress node first The network function execution information collected by this node is directly exported to the network analyzer for analysis and processing, and then the IOAM header is stripped to restore the original MPLS data message.
  • the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present disclosure can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in various embodiments of the present disclosure.
  • an information collection device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has already been described will not be repeated.
  • the term "module” may be a combination of software and/or hardware that realizes a predetermined function.
  • the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
  • FIG. 17 is a structural block diagram of an information collection device according to an embodiment of the present disclosure, which is applied to a target network node. As shown in FIG. 17 , the device includes:
  • the determining module 1702 is configured to, after receiving the message, determine the in-band operation, management and maintenance IOAM header of the message;
  • the collecting module 1704 is configured to collect target network function execution information when it is determined based on the IOAM header that the network function execution information needs to be collected.
  • the collecting module 1704 includes: a determining unit configured to determine the target network function that needs to be performed by the target network node based on the function indication information carried in the received message; A unit configured to execute the target network function, and when it is determined based on the target information carried in the IOAM header that it is necessary to collect the target network function execution information generated by executing the target network function, collect based on the execution result The target network function execution information.
  • the collecting unit includes: a first determining subunit configured to determine the number of the target network functions executed by the target network node, each executed The type of the target network function, and the result of executing each of the target network functions; the second determining subunit is configured to set the number of the target network functions, the type of each of the executed target network functions, And the execution result of each target network function is determined as the target network function execution information.
  • the collection unit includes: a collection subunit, configured to determine, based on the bitmap carried in the IOAM header, that the execution of the target network function generated by executing the target network function needs to be collected In the case of information, the target network function execution information is collected based on the execution result; wherein, the bitmap includes a string of indication bits, and the string of indication bits includes target indication bits, and the target indication bits are selected When the value is a specific value, the target indication bit is used to indicate that network function execution information needs to be collected.
  • the device further includes: a first processing module configured to, after collecting target network function execution information, process the target according to the processing mode indicated by the indication information carried in the IOAM header Network functions perform information processing.
  • the first processing module includes: an adding unit configured to add the target network The function execution information is added to the IOAM header; the deriving unit is configured to export the target network function execution information to the network when it is determined that the indication information is used to indicate that the network function execution information is processed in a second processing manner In an analyzer, wherein the network analyzer is configured to analyze the target network function execution information.
  • the above device further includes: a second processing module configured to add the target network function execution information to the IOAM when the target network node is a network egress node After adding the header, export all the network function execution information added in the IOAM header to the network analyzer, and strip the IOAM header to restore the original data packet.
  • a second processing module configured to add the target network function execution information to the IOAM when the target network node is a network egress node After adding the header, export all the network function execution information added in the IOAM header to the network analyzer, and strip the IOAM header to restore the original data packet.
  • the above device further includes: a third processing module, configured to export the target network function execution information to a network analyzer when the target network node is a network egress node After that, the IOAM header is stripped to restore the original data packet.
  • a third processing module configured to export the target network function execution information to a network analyzer when the target network node is a network egress node After that, the IOAM header is stripped to restore the original data packet.
  • the above-mentioned IOAM header may be added to the original data message by the network entry node, wherein, after the network entry node adds the IOAM header to the original data message, it will follow the target transmission path Sending the processed message, wherein the target network node is included on the target transmission path.
  • the above-mentioned message includes at least one of the following: an IPv6 segment routing SRv6 message; a multi-protocol label switching MPLS message.
  • the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
  • Embodiments of the present disclosure also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
  • the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk magnetic disk or optical disk and other media that can store computer programs.
  • Embodiments of the present disclosure also provide an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
  • the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
  • the method for collecting network function execution information provided by the present disclosure can collect network function execution information, so that the network function execution information of each data message passing through each network node can be collected, so as to realize the network node
  • the monitoring and analysis of network function behavior is performed, thereby solving the problem of lack of an effective method in the prior art, and making the transmission and reception of data information more efficient, more stable and more reliable.
  • each module or each step of the above-mentioned disclosure can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present disclosure is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本公开实施例提供了一种信息的收集方法、装置、存储介质及电子装置,其中,该方法包括:目标网络节点在接收到报文之后,确定报文的带内操作管理维护IOAM头;目标网络节点在基于IOAM头确定出需要收集网络功能执行信息的情况下,收集目标网络功能执行信息。

Description

信息的收集方法、装置、存储介质及电子装置
相关申请的交叉引用
本公开基于2021年11月26日提交的发明名称为“信息的收集方法、装置、存储介质及电子装置”的中国专利申请CN202111425020.X,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本公开。
技术领域
本公开实施例涉及通信领域,具体而言,涉及一种信息的收集方法、装置、存储介质及电子装置。
背景技术
在高速发展的信息时代,从个人到企业对信息的需求越来越多,依赖性也越来越大,因此通过网络技术收集大量信息时,对于信息传送与接收的通道是否正常且传送与接收的信息是否正确等问题备受社会关注,因此,段路由(Segment Routing,简称为SR)技术得到了快速发展,且嵌入到数据报文中的可编程网络功能也得到越来越广泛的应用。
相关技术中,与段路由技术一样,采用可编程网络功能转发平面主要有两种实现方式,第一种实现方式是在SRv6(Segment Routing over IPv6,IPv6段路由)数据报文中插入包含SRv6网络功能(SRv6Function)的段路由标识(Segment ID,简称为SID),第二种实现方式是在MPLS(Multiprotocol Label Switching,多协议标签交换)数据报文中插入包含MPLS网络功能的MPLS标签(MPLS Label),其中,无论采用哪种转发平面的实现方式,网络节点在接收到包含网络功能的数据报文后,都会解析并执行数据报文中包含的网络功能,但该技术中,对网络节点执行网络功能的行为没有实时的监控和分析,因此,不清楚网络节点所执行的网络功能信息是否正确且完整。
针对相关技术中存在的无法实时监控和分析网络节点执行网络功能行为的问题,目前尚未提出有效的解决方案。
发明内容
本公开实施例提供了一种信息的收集方法、装置、存储介质及电子装置,以至少解决相关技术中存在的无法实时监控和分析网络节点执行网络功能行为的问题。
根据本公开的一个实施例,提供了一种信息的收集方法,包括:目标网络节点在接收到报文之后,确定所述报文的带内操作管理维护IOAM头;所述目标网络节点在基于所述IOAM头确定出需要收集网络功能执行信息的情况下,收集目标网络功能执行信息。
根据本公开的另一个实施例,提供了一种信息的收集装置,包括:确定模块,设置为在接收到报文之后,确定所述报文的带内操作管理维护IOAM头;收集模块,设置为在基于所述IOAM头确定出需要收集网络功能执行信息的情况下,收集目标网络功能执行信息。
根据本公开的又一个实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
根据本公开的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。
附图说明
图1是相关技术中包含SRv6网络功能的SRv6报文封装格式示意图;
图2是相关技术中包含MPLS网络功能的MPLS报文封装格式示意图;
图3是根据本公开实施例的一种信息的收集方法的移动终端的硬件结构框图;
图4是根据本公开实施例的信息的收集方法的流程图;
图5是根据本公开具体实施例的信息的收集方法的流程图;
图6是根据本公开实施例的携带IOAM头的数据报文封装格式示意图;
图7是根据本公开实施例的执行第一种处理方式的IOAM头封装格式示意图;
图8是根据本公开实施例的执行第二种处理方式的IOAM头封装格式示意图;
图9是根据本公开实施例的在SRv6网络中按照第一种处理方式收集网络功能执行信息的流程图;
图10是根据本公开实施例的一种网络入口节点添加IOAM头后的SRv6报文封装格式示意图;
图11根据本公开实施例的一种网络节点添加网络功能执行信息后的SRv6报文封装格式示意图;
图12是根据本公开实施例的在SRv6网络中按照第二种处理方式收集网络功能执行信息的流程图;
图13是根据本公开实施例的在MPLS网络中按照第一种处理方式收集网络功能执行信息的流程图;
图14是根据本公开实施例的一种网络入口节点添加IOAM头后的MPLS报文封装格式示意图;
图15是根据本公开实施例的一种网络节点添加网络功能执行信息后的MPLS报文封装格式示意图;
图16是根据本公开实施例的在MPLS网络中按照第二种处理方式收集网络功能执行信息的流程图;
图17是根据本公开实施例的信息的收集装置的结构框图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本公开的实施例。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
首先对本公开中涉及的相关技术进行说明:
国际标准组织互联网工程任务组(Internet Engineering Task Force,简称为IETF)发布的标准RFC 8986中定义了一系列SRv6网络功能,包括End.X(三层交叉连接)、End.T(查找特定IPv6表)、End.DX6(解封装及IPv6交叉连接)等等。图1是相关技术中包含SRv6网络功能的SRv6报文封装格式示意图,如图1所示,包含SRv6网络功能的SID被插入到SRv6数据报文中,用于该SID所属网络节点执行该SID包含的SRv6网络功能。
国际标准组织IETF的草案draft-kompella-mpls-mspl4fa-01中定义了一系列MPLS网络功能,包括多路径负荷分担(load balance)、流标识(Flow ID)处理、快速重路由(Fast Reroute)处理等等。图2是相关技术中包含MPLS网络功能的MPLS报文封装格式示意图,如图2所示,包含MPLS网络功能的MPLS标签被插入到MPLS数据报文中,用于MPLS网络节点执行该MPLS标签包含的MPLS网络功能。
无论采用哪种转发平面的实现方式,网络节点在接收到包含网络功能的数据报文后,都会解析并执行数据报文中包含的网络功能。随着大数据时代的发展,信息传输与接收的高效性、稳定性、可靠性备受人们的关注,为了避免信息接收不完整或接收到错误的信息,就需要对网络节点执行网络功能信息的行为进行监控和分析。然而,目前缺乏一种有效的方法,能够收集网络功能的执行信息,以实现对网络节点执行网络功能行为的监控和分析。针对如何实现实时监控和分析网络节点执行网络功能行为,在本公开实施例中提出了一种网络功能执行信息的收集方法,能够实现基于报文的带内操作管理维护IOAM头确定需要收集网络功能的执行信息(包括执行的网络功能的类型以及执行的结果等),进而收集网络功能的执行信息。下面结合实施例对本公开进行说明:
本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图3是本公开实施例的一种信息的收集方法的移动终端的硬件结构框图。如图3所示,移动终端可以包括一个或多个(图3中仅示出一个)处理器302(处理器302可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和设置为存储数据的存储器304,其中,上述移动终端还可以包括设置为通信功能的传输设备306以及输入输出设备308。本领域普通技术人员可以理解,图3所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图3中所示更多或者更少的组件,或者具有与图3所示不同的配置。
存储器304可设置为存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的信息的收集方法对应的计算机程序,处理器302通过运行存储在存储器304内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器304可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器304可进一步包括相对于处理器302远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置306设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输装置306包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置306可以为射频(Radio Frequency,简称为RF)模块,其设置为通过无线方式与互联网进行通讯。
在本实施例中提供了一种信息的收集方法,图4是根据本公开实施例的信息的收集方法的流程图,如图4所示,该流程包括如下步骤:
步骤S402,目标网络节点在接收到报文之后,确定所述报文的带内操作管理维护IOAM头;
步骤S404,所述目标网络节点在基于所述IOAM头确定出需要收集网络功能执行信息的 情况下,收集目标网络功能执行信息。
其中,上述步骤的执行主体可以是网络节点,或是网络设备等,例如,网络交换机、路由器等,此外,上述步骤的执行主体还可以是具备接收、收集、执行信息能力的单元或终端等。下面以网络节点执行上述操作为例(仅是一种示例性说明,在实际操作中还可以是其他的设备或模块来执行上述操作)进行说明。
在上述实施例中,目标网络节点可以是网络入口节点,可以是沿路网络节点还可以是网络出口节点,报文传输路径上的任一网络节点均可以执行上述的操作。其中,目标网络节点可以接收数据报文,进而基于数据报文的带内操作管理维护IOAM头确定收集网络功能执行信息,在实际应用中,收集网络功能执行信息的目标网络节点可以有多个,因此,数据报文的带内操作管理维护IOAM头可以指示收集多种网络功能执行信息。
在上述实施例中,网络节点在基于报文的带内操作管理维护IOAM头确定需要收集网络功能的执行信息的情况下,可以收集网络功能的执行信息,继而,可以根据收集到的网络功能及时的执行执行信息监控和分析网络节点,有效解决相关技术中不能实时监控和分析网络节点执行网络功能行为的问题。
在一个可选的实施例中,目标网络节点收集目标网络功能执行信息可以但不限于包括:所述目标网络节点基于接收到的报文中携带的功能指示信息确定出需要由所述目标网络节点所执行的目标网络功能;所述目标网络节点执行所述目标网络功能,并在基于所述IOAM头中携带的目标信息确定需要收集执行所述目标网络功能所产生的所述目标网络功能执行信息的情况下,基于执行结果收集所述目标网络功能执行信息。在本实施例中,所述目标网络节点基于接收到的数据报文中携带的功能指示信息,即,用于指示目标网络节点收集网络功能执行信息,确定出需要执行的目标网络功能,其中,在不同的协议报文中该指示信息可以是不同的,例如,对于IPv6段路由SRv6报文而言,该指示信息可以是基于报文的IPv6目的地址中所包括的信息确定的,即,目的地址中会包含需要当前接收到报文的网络节点所需要执行的功能;对于多协议标签交换MPLS报文而言,该指示信息可以是基于MPLS网络功能指示标签所包括的信息确定的,该MPLS网络功能指示标签中会包括用于指示需要执行哪个功能的指示信息,另外,该MPLS网络功能指示标签中可以不明确指定哪个节点执行哪个功能,网络节点在接收到报文后,会根据自身能力来确定自己所能执行的功能。
在一个可选的实施例中,目标网络节点基于执行结果收集所述目标网络功能执行信息可以但不限于包括:所述目标网络节点基于所述执行结果确定出所述目标网络节点所执行的所述目标网络功能的数量、执行的每一个所述目标网络功能的类型,以及执行的每一个所述目标网络功能的结果;所述目标网络节点将所述目标网络功能的数量、执行的每一个所述目标网络功能的类型,以及执行的每一个所述目标网络功能的结果确定为所述目标网络功能执行信息。在本实施例中,所述IOAM头可以携带多个指示信息用于指示不同网络节点收集网络功能执行信息,由于单个目标网络节点可以执行多个网络功能,因此,所述目标网络节点需要基于所述执行结果确定所述目标网络功能的数量、执行的每一个所述目标网络功能的类型,以及执行的每一个所述目标网络功能的结果,其中,执行每一个所述目标网络功能的结果包括执行成功或执行失败,如果执行的结果是失败,则也可以在收集的目标网络功能执行信息中加入执行失败的原因。
在一个可选的实施例中,所述目标网络节点在基于所述IOAM头中携带的目标信息确定 需要收集执行所述目标网络功能所产生的所述目标网络功能执行信息的情况下,基于执行结果收集所述目标网络功能执行信息包括:所述目标网络节点基于所述IOAM头中携带的比特地图确定出需要收集执行所述目标网络功能所产生的所述目标网络功能执行信息的情况下,基于执行结果收集所述目标网络功能执行信息;其中,所述比特地图中包括一串指示比特,所述一串指示比特中包括有目标指示比特,在所述目标指示比特取值为特定值的情况下,所述目标指示比特用于指示需要收集网络功能执行信息。在本实施例中,上述目标指示比特可以是所述比特地图中特定位置上的比特,具体将哪个位置上的比特作为目标指示比特可以是预先确定好的,此外,还可以在常规的比特地图中额外扩展一部分比特,从该扩展出的比特中确定上述目标指示比特。其中,在所述目标指示比特取值为特定值的情况下,即可确定出当前接收到报文的网络节点需要收集网络功能执行信息,例如,在目标指示比特取值为1的情况下,说明当前接收到报文的网络节点需要收集网络功能执行信息,或者在目标指示比特取值为0的情况下,说明当前接收到报文的网络节点需要收集网络功能执行信息,当然,也可以用其他的取值来指示当前接收到报文的网络节点收集网络功能执行信息。在上述比特地图中,不同位置上的比特位可以用于指示不同的操作,例如,收集其他类型的信息。通过上述比特地图可以确定是否需要由目标网络节点来收集目标网络功能执行信息,实际上本公开在现有技术基础上,只需要扩展比特地图中的1比特表示网络功能执行信息即可实现指示沿路上的各网络节点来收集网络功能执行信息。
在一个可选的实施例中,目标网络节点在收集目标网络功能执行信息之后还包括:所述目标网络节点按照所述IOAM头中携带的指示信息所指示的处理方式对所述目标网络功能执行信息进行处理。在本实施例中,所述目标网络节点可以基于所述IOAM头中携带的指示信息确定所述目标网络功能执行信息的处理方式,其中,该指示信息可以是IOAM头中包括的IOAM数据类型和处理方式字段中所包括的信息,另外,该处理方式可以有多种,例如,可以包括全部网络节点均将收集的网络功能执行信息添加到IOAM头,再由出口节点将IOAM头中包括的全部的网络功能执行信息导出给网络分析器进行分析的处理方式(可以称该方式为方式一);还可以包括各网络节点均将收集的网络功能执行信息直接导出给网络分析器进行分析的处理方式(可以称该方式为方式二);当然,还包括其他的处理方式,例如,部分网络节点将收集到的网络功能执行信息添加到IOAM头中,部分网络节点将收集的网络功能执行信息直接导出给网络分析器进行处理等等,在此不再赘述。
在一个可选的实施例中,目标网络节点按照所述IOAM头中携带的指示信息所指示的处理方式对所述目标网络功能执行信息进行处理包括:所述目标网络节点在确定所述指示信息用于指示按照第一处理方式(对应于上述的方式一)处理网络功能执行信息的情况下,将所述目标网络功能执行信息添加到所述IOAM头中;所述目标网络节点在确定所述指示信息用于指示按照第二处理方式(对应于上述的方式二)处理网络功能执行信息的情况下,将所述目标网络功能执行信息导出到网络分析器中,其中,所述网络分析器用于对所述目标网络功能执行信息进行分析。下面对两种处理方式进行具体描述:
在本实施例中,根据IETF(Internet Engineering Task Force,互联网工程任务组)草案draft-ietf-ippm-ioam-data-14和draft-ietf-ippm-ioam-direct-export-06的规定,目前有两种IOAM头的处理方式,其中,第一种处理方式包括:沿路每个网络节点(包括网络入口节点、网络中间节点和网络出口节点等)将收集到的由所述IOAM头所指示的目标网络功能执行信息添 加到所述IOAM头中,并由所述IOAM头携带每个网络节点交付的目标网络功能执行信息到网络出口节点,再由网络出口节点将IOAM头中携带的目标网络功能执行信息导出到网络分析器中进行分析处理;第二种处理方式包括:沿路每个网络节点(包括网络入口节点、网络中间节点和网络出口节点等)将收集到的由所述IOAM头所指示的目标网络功能执行信息先直接导出到网络分析器中进行分析处理,其中,每个网络节点无需将所述目标网络功能执行信息添加到IOAM头中。
在一个可选的实施例中,在所述目标网络节点为网络出口节点的情况下,所述方法还包括:所述目标网络节点在将所述目标网络功能执行信息添加到所述IOAM头中之后,将所述IOAM头中所添加的全部网络功能执行信息导出到所述网络分析器中,以及,剥离所述IOAM头,以恢复出原始数据报文。在本实施例中,在上述第一种处理方式中,所述目标网络节点将所述目标网络功能执行信息添加到所述IOAM头中之后,可以由所述网络出口节点将所述IOAM头中所添加的全部网络功能执行信息导出到所述网络分析器中,再由所述网络出口节点将IOAM头剥离,以恢复出原始数据报文,在实际应用中,所述网络分析器接收到所述网络节点收集的所述目标网络功能执行信息后,可以对所述目标网络节点实际执行的目标网络执行功能与期望执行的目标网络功能进行比较,若出现不匹配的异常情况,则可针对出现异常的目标网络节点做进一步的故障排查,进而针对出现的故障进行对应的处理。
在一个可选的实施例中,在所述目标网络节点为网络出口节点的情况下,所述方法还包括:所述目标网络节点在将所述目标网络功能执行信息导出到网络分析器中之后,剥离所述IOAM头,以恢复出原始数据报文。在本实施例中,在上述第二种处理方式中,所述目标网络节点可以将IOAM头中包括的全部的网络功能执行信息导出到网络分析器中,其中,在执行导出操作时,可以基于特定的导出顺序进行信息导出,例如,按预先配置的网络功能执行信息的导出优先级将所述目标网络功能执行信息依次导出,或者,按照收集网络功能执行信息的网络节点的优先级将各网络节点所收集到的所述目标网络功能执行信息依次导出,或者按照网络功能执行信息的收集时间(包括由先到后,还可以包括由后到先)将所述目标网络功能执行信息依次导出等等,在本实施例中,在导出目标网络功能执行信息之后,可以经由所述网络出口节点剥离所述IOAM头,以恢复出原始数据报文,在实际应用中,所述网络分析器接收到所述网络节点收集的所述目标网络功能执行信息后,可以对所述目标网络节点实际执行的目标网络执行功能与期望执行的目标网络功能进行比较,若出现不匹配的异常情况,则可针对出现异常的目标网络节点做进一步的故障排查,进而针对出现的故障进行对应的处理。
在一个可选的实施例中,上述方法还包括:网络入口节点执行在原始数据报文中添加所述IOAM头的处理,并沿目标传输路径发送处理后的报文,其中,所述目标传输路径上包括所述目标网络节点。在本实施例中,IOAM头可以是在路径的入口处由网络入口节点添加的。
在一个可选的实施例中,上述报文包括以下至少之一:IPv6段路由SRv6报文;多协议标签交换MPLS报文。在本实施例中,上述数据报文类型除了包括有IPv6段路由SRv6报文和多协议标签交换MPLS报文之外,还可以包括其他的具备类似结构或者类似处理方式的报文。
显然,上述所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。
下面结合具体实施例对本公开进行具体说明:
图5是根据本公开具体实施例的信息的收集方法的流程图,如图5所示,该流程包括如下步骤:
S502,网络入口节点给数据报文(IPv6段路由SRv6报文或多协议标签交换MPLS报文)添加带内操作管理维护(In-situ OAM,IOAM)头,用于指示沿路网络节点收集网络功能执行信息。
网络功能执行信息包括执行的网络功能的类型以及执行的结果,由于一个网络节点可能执行多于一个网络功能,因此,单个网络节点收集的网络功能执行信息包括网络节点所执行的目标网络功能的数量、执行的每一个目标网络功能的类型,以及执行的每一个网络功能的结果,其中,执行的每一个网络功能的结果包括执行成功或执行失败,若执行的结果是失败,则也可以包括执行失败的原因。在SRv6网络(针对IPv6段路由SRv6报文的应用)中,根据IETF的标准RFC 8986的定义,SRv6网络功能的类型包括,End.X(三层交叉连接)、End.T(查找特定IPv6表)、End.DX6(解封装及IPv6交叉连接)等,随着技术的发展,新的SRv6网络功能仍在被不断定义出来;MPLS网络(针对多协议标签交换MPLS报文的应用)中,根据IETF草案draft-kompella-mpls-mspl4fa-01的定义,MPLS网络功能的类型包括,多路径负荷分担(load balance)、流标识(FloW ID)处理、快速重路由(Fast Reroute)处理等,随着技术的发展,新的MPLS网络功能仍在被不断定义出来。
图6是根据本公开实施例的携带IOAM头的数据报文封装格式示意图,如图6所示,IOAM头是一种嵌入到数据报文中的用于网络节点信息收集的专用头部,根据IETF草案draft-ietf-ippm-ioam-data-14和draft-ietf-ippm-ioam-direct-export-06的规定,目前有两种IOAM头的处理方式,第一种处理方式是,沿路每个网络节点把IOAM头所指示的网络功能执行信息添加到IOAM头中,由IOAM头一路携带到网络的出口,再由网络出口节点把IOAM头剥离,并把其中携带的网络功能执行信息导出到网络分析器进行分析处理;第二种处理方式是,沿路每个网络节点把IOAM头所指示的网络功能执行信息直接导出到网络分析器进行分析处理,其中,网络节点基于IOAM头中携带的指示信息(对应于上述指示信息)确定出IOAM头的处理方式。
S504,沿路网络节点接收到数据报文后,根据IOAM头的指示信息收集网络功能执行信息,并根据IOAM头的指示对收集到的网络功能执行信息进行处理,其中,沿路网络节点收到数据报文后,会分析数据报文携带的IOAM头,根据IOAM头中的指示信息收集网络功能执行信息,并对收集到的网络功能执行信息进行处理,其中,所述沿路网络节点包括网络入口节点、网络中间节点和网络出口节点。
若IOAM头中的指示信息指示网络节点执行第一种处理方式,网络节点将收集到的网络功能执行信息添加到IOAM头中,再将数据报文往沿路的下一个网络节点转发,下一个接收到数据报文的网络节点也会将收集到的网络功能执行信息添加到IOAM头中,直到网络出口处,图7是根据本公开实施例的执行第一种处理方式的IOAM头封装格式示意图,如图7所示,IOAM数据类型和处理方式指示网络节点基于第一种处理方式确定收集逐跳跟踪类型的信息(一个网络节点一个网络节点的跟踪收集网络功能执行信息),即沿路每个网络节点将收集到的网络功能执行信息添加到IOAM头中,其中,该IOAM比特地图(对应于上述比特地图)指示每个网络节点具体收集网络功能执行信息。
若IOAM头中的指示信息指示网络节点执行第二种处理方式,网络节点将收集到的网络功 能执行信息直接导出到网络分析器进行分析处理,与第一种处理方式的区别,网络节点收集到的网络功能执行信息不添加到IOAM头中,图8是根据本公开实施例的执行第二种处理方式的IOAM头封装格式示意图,如图8所示,IOAM数据类型和处理方式指示网络节点基于第二种处理方式确定收集逐跳跟踪类型的信息(一个网络节点一个网络节点的跟踪收集网络功能执行信息),即沿路每个网络节点将收集到的网络功能执行信息直接导出到网络分析器中,而不添加到IOAM头中,其中,是IOAM比特地图(对应于上述IOAM比特地图)指示每个网络节点具体收集网络功能执行信息。
S506,网络出口节点基于IOAM头的指示信息确定收集网络出口节点的网络功能执行信息,并由网络出口节点剥离数据报文携带的IOAM头,恢复原始数据报文,若IOAM头中的指示信息指示网络节点执行第一种处理方式,网络出口节点先将本节点收集到的网络功能执行信息添加到IOAM头中,再将IOAM头中携带的沿路每一个网络节点添加的网络功能执行信息一起导出到网络分析器,并由网络出口节点剥离IOAM头,恢复原始数据报文。
若IOAM头中的指示信息指示网络节点执行第二种处理方式,网络出口节点将本节点收集到的网络功能执行信息直接导出到网络分析器,并剥离IOAM头,恢复原始数据报文,其中,不论执行的哪一种处理方式,网络分析器接收到网络节点收集的网络功能执行信息后,可以对网络节点实际执行的网络功能与期望执行的网络功能进行比较,一旦出现不匹配的异常情况,则可针对出现异常的网络节点做进一步的故障排查。
下面结合具体协议下的报文对本公开进行举例说明:
图9是根据本公开实施例的在SRv6网络中按照第一种处理方式收集网络功能执行信息的流程图,如图9所示,该流程包括如下步骤:
S902,网络入口节点给SRv6数据报文添加IOAM头,指示网络节点收集网络功能执行信息,其中,IOAM头中包含IOAM数据类型和处理方式、IOAM数据长度以及一个比特地图,其中,IOAM数据类型和处理方式指示该IOAM头包含逐跳跟踪信息,并执行第一种处理方式,第一种处理方式即为每个网络节点把IOAM头所指示的网络功能执行信息添加到IOAM头中,其中,是IOAM比特地图(对应于上述IOAM比特地图)指示每个网络节点具体收集网络功能执行信息,比特地图是一串指示比特(对应于上述的指示比特),每个比特代表一种信息,在某个比特(对应于上述目标指示比特)取值为1的情况下,指示网络节点需要收集对应于该比特的网络功能执行信息。图10是根据本公开实施例的一种网络入口节点添加IOAM头后的SRv6报文封装格式示意图,如图10所示,IOAM头中包含用于指示需要收集网络功能执行信息的比特地图,其中指示网络功能执行信息的比特必须置为1。
S904,网络节点接收到SRv6数据报文后,根据数据报文携带的IOAM头的指示信息收集网络功能执行信息,并根据IOAM头的指示对收集到的网络功能执行信息进行处理,其中,网络节点根据IOAM头的指示将收集到的网络功能执行信息添加到IOAM头中,再将数据报文往沿路下一个网络节点转发,下一个接收到数据报文的网络节点也将收集到的网络功能执行信息添加到IOAM头中,直到网络出口处。图11根据本公开实施例的一种网络节点添加网络功能执行信息后的SRv6报文封装格式示意图,如图11所示,沿路每个网络节点将收集到的信息添加到IOAM头中,包括该网络节点执行的SRv6网络功能的数量、执行的每一个SRv6网络功能的类型以及执行的每一个SRv6网络功能的结果,其中,执行的每一个SRv6网络功能的结果包括执行成功或执行失败,如果执行的结果是失败,则也可以包括执行失败的原因。
S906,网络出口节点接收到SRv6数据报文后,根据IOAM头的指示信息收集本节点的网络功能执行信息,并剥离IOAM头,恢复原始数据报文,其中,网络出口节点先将本节点收集到的网络功能执行信息添加到IOAM头中,再将IOAM头中携带的各网络节点添加的网络功能执行信息一起导出到网络分析器,并由网络出口节点剥离IOAM头,恢复原始SRv6数据报文。
图12是根据本公开实施例的在SRv6网络中按照第二种处理方式收集网络功能执行信息的流程图,如图12所示,该流程包括如下步骤:
S1202,网络入口节点给SRv6数据报文添加IOAM头,指示网络节点收集网络功能执行信息,其中,IOAM头中包含IOAM数据类型和处理方式、IOAM数据长度以及一个比特地图,其中,IOAM数据类型和处理方式指示该IOAM头包含逐跳跟踪信息,并执行第二种处理方式,第二种处理方式即为每个网络节点把收集到的网络功能执行信息直接导出到网络分析器进行分析处理,其中,是IOAM比特地图(对应于上述IOAM比特地图)指示每个网络节点具体收集网络功能执行信息,比特地图是一串指示比特(对应于上述的指示比特),每个比特代表一种信息,在某个比特(对应于上述目标指示比特)取值为1的情况下,指示网络节点需要收集对应于该比特的网络功能执行信息。
S1204,网络节点接收到SRv6数据报文后,根据数据报文携带的IOAM头的指示信息收集网络功能执行信息,并根据IOAM头的指示对收集到的网络功能执行信息进行处理,其中,网络节点根据IOAM头的指示将收集到的网络功能执行信息直接导出到网络分析器进行分析处理,再将数据报文往下一个网络节点转发,下一个收到数据报文的网络节点也将收集到的网络功能执行信息直接导出到网络分析器进行分析处理,直到网络出口处,其中,网络功能执行信息包括执行的SRv6网络功能的数量、执行的每一个SRv6网络功能的类型及执行的每一个SRv6网络功能的结果,其中,执行的每一个SRv6网络功能的结果包括执行成功或执行失败,如果执行的结果是失败,则也可以包括执行失败的原因。
S1206,网络出口节点接收到SRv6数据报文后,根据IOAM头的指示信息收集本节点的网络功能执行信息,并由网络出口节点剥离IOAM头,恢复原始数据报文,其中,网络出口节点先将本节点收集到的网络功能执行信息直接导出到网络分析器进行分析处理,再剥离IOAM头,恢复原始SRv6数据报文。
图13是根据本公开实施例的在MPLS网络中按照第一种处理方式收集网络功能执行信息的流程图,如图13所示,该流程包括如下步骤:
S1302,网络入口节点给MPLS数据报文添加IOAM头,指示网络节点收集网络功能执行信息,其中,IOAM头中包含IOAM数据类型和处理方式、IOAM数据长度以及一个比特地图,其中,IOAM数据类型和处理方式指示该IOAM头包含逐跳跟踪信息,并执行第一种处理方式,第一种处理方式即为每个网络节点把IOAM头所指示的网络功能执行信息添加到IOAM头中,其中,是IOAM比特地图(对应于上述IOAM比特地图)指示每个网络节点具体收集网络功能执行信息,比特地图是一串指示比特(对应于上述的指示比特),每个比特代表一种信息,在某个比特(对应于上述目标指示比特)取值为1的情况下,指示网络节点需要收集对应于该比特的网络功能执行信息。图14是根据本公开实施例的一种网络入口节点添加IOAM头后的MPLS报文封装格式示意图,如图14所示,IOAM头中包含用于指示需要收集网络功能执行信息的比特地图,其中指示网络功能执行信息的比特必须置为1。
S1304,网络节点接收到MPLS数据报文后,根据数据报文携带的IOAM头的指示信息收集网络功能执行信息,并根据IOAM头的指示对收集到的网络功能执行信息进行处理,其中,网络节点根据IOAM头的指示将收集到的网络功能执行信息添加到IOAM头中,再将数据报文往沿路下一个网络节点转发,下一个接收到数据报文的网络节点也将收集到的网络功能执行信息添加到IOAM头中,直到网络出口处。图15是根据本公开实施例的一种网络节点添加网络功能执行信息后的MPLS报文封装格式示意图,如图15所示,沿路每个网络节点将收集到的信息添加到IOAM头中,包括该网络节点执行的MPLS网络功能的数量、执行的每一个MPLS网络功能的类型及执行的每一个MPLS网络功能的结果,其中,执行的每一个MPLS网络功能的结果包括执行成功或执行失败,如果执行的结果是失败,则也可以包括执行失败的原因。
S1306,网络出口节点接收到MPLS数据报文后,根据IOAM头的指示信息收集本节点的网络功能执行信息,并剥离IOAM头,恢复原始数据报文,其中,网络出口节点先将本节点收集到的网络功能执行信息添加到IOAM头中,再将IOAM头中携带的各网络节点添加的网络功能执行信息一起导出到网络分析器,并由网络出口节点剥离IOAM头,恢复原始MPLS数据报文。
图16是根据本公开实施例的在MPLS网络中按照第二种处理方式收集网络功能执行信息的流程图,如图16所示,该流程包括如下步骤:
S1602,网络入口节点给MPLS数据报文添加IOAM头,指示网络节点收集网络功能执行信息,其中,IOAM头中包含IOAM数据类型和处理方式、IOAM数据长度以及一个比特地图,其中,IOAM数据类型和处理方式指示该IOAM头包含逐跳跟踪信息,并执行第二种处理方式,第二种处理方式即为每个网络节点把收集到的网络功能执行信息直接导出到网络分析器进行分析处理,其中,是IOAM比特地图(对应于上述IOAM比特地图)指示每个网络节点具体收集网络功能执行信息,比特地图是一串指示比特(对应于上述的指示比特),每个比特代表一种信息,在某个比特(对应于上述目标指示比特)取值为1的情况下,指示网络节点需要收集对应于该比特的网络功能执行信息。
S1604,网络节点接收到MPLS数据报文后,根据数据报文携带的IOAM头的指示信息收集网络功能执行信息,并根据IOAM头的指示对收集到的网络功能执行信息进行处理,其中,网络节点根据IOAM头的指示将收集到的网络功能执行信息直接导出到网络分析器进行分析处理,再将数据报文往下一个网络节点转发,下一个接收到数据报文的网络节点也将收集到的网络功能执行信息直接导出到网络分析器进行分析处理,直到网络出口处,其中,网络功能执行信息包括执行的MPLS网络功能的数量、执行的每一个MPLS网络功能的类型及执行的每一个MPLS网络功能的结果,其中,执行的每一个MPLS网络功能的结果包括执行成功或执行失败,如果执行的结果是失败,则也可以包括执行失败的原因。
S1606,网络出口节点接收到MPLS数据报文后,根据IOAM头的指示信息收集本节点的网络功能执行信息,并由网络出口节点剥离IOAM头,恢复原始数据报文,其中,网络出口节点先将本节点收集到的网络功能执行信息直接导出到网络分析器进行分析处理,再剥离IOAM头,恢复原始MPLS数据报文。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前 者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。
在本实施例中还提供了一种信息的收集装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图17是根据本公开实施例的信息的收集装置的结构框图,应用于目标网络节点中,如图17所示,该装置包括:
确定模块1702,设置为在接收到报文之后,确定所述报文的带内操作管理维护IOAM头;
收集模块1704,设置为在基于所述IOAM头确定出需要收集网络功能执行信息的情况下,收集目标网络功能执行信息。
在一个可选的实施例中,所述收集模块1704包括:确定单元,设置为基于接收到的报文中携带的功能指示信息确定出需要由所述目标网络节点所执行的目标网络功能;收集单元,设置为执行所述目标网络功能,并在基于所述IOAM头中携带的目标信息确定需要收集执行所述目标网络功能所产生的所述目标网络功能执行信息的情况下,基于执行结果收集所述目标网络功能执行信息。
在一个可选的实施例中,所述收集单元包括:第一确定子单元,设置为基于所述执行结果确定出所述目标网络节点所执行的所述目标网络功能的数量、执行的每一个所述目标网络功能的类型,以及执行的每一个所述目标网络功能的结果;第二确定子单元,设置为将所述目标网络功能的数量、执行的每一个所述目标网络功能的类型,以及执行的每一个所述目标网络功能的结果确定为所述目标网络功能执行信息。
在一个可选的实施例中,所述收集单元包括:收集子单元,设置为基于所述IOAM头中携带的比特地图确定出需要收集执行所述目标网络功能所产生的所述目标网络功能执行信息的情况下,基于执行结果收集所述目标网络功能执行信息;其中,所述比特地图中包括一串指示比特,所述一串指示比特中包括有目标指示比特,在所述目标指示比特取值为特定值的情况下,所述目标指示比特用于指示需要收集网络功能执行信息。
在一个可选的实施例中,所述装置还包括:第一处理模块,设置为在收集目标网络功能执行信息之后,按照所述IOAM头中携带的指示信息所指示的处理方式对所述目标网络功能执行信息进行处理。
在一个可选的实施例中,所述第一处理模块包括:添加单元,设置为在确定所述指示信息用于指示按照第一处理方式处理网络功能执行信息的情况下,将所述目标网络功能执行信息添加到所述IOAM头中;导出单元,设置为在确定所述指示信息用于指示按照第二处理方式处理网络功能执行信息的情况下,将所述目标网络功能执行信息导出到网络分析器中,其中,所述网络分析器设置为对所述目标网络功能执行信息进行分析。
在一个可选的实施例中,上述装置还包括:第二处理模块,设置为在所述目标网络节点为网络出口节点的情况下,且在将所述目标网络功能执行信息添加到所述IOAM头中之后,将所述IOAM头中所添加的全部网络功能执行信息导出到所述网络分析器中,以及,剥离所述 IOAM头,以恢复出原始数据报文。
在一个可选的实施例中,上述装置还包括:第三处理模块,设置为在所述目标网络节点为网络出口节点的情况下,且在将所述目标网络功能执行信息导出到网络分析器中之后,剥离所述IOAM头,以恢复出原始数据报文。
在一个可选的实施例中,上述IOAM头可以是网络入口节点添加到原始数据报文中的,其中,该网络入口节点在原始数据报文中添加所述IOAM头后,会沿目标传输路径发送处理后的报文,其中,所述目标传输路径上包括所述目标网络节点。
在一个可选的实施例中,上述报文包括以下至少之一:IPv6段路由SRv6报文;多协议标签交换MPLS报文。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
本公开的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。
通过本公开提供的一种网络功能执行信息的收集方法,能够收集网络功能执行信息,使得每个数据报文经过每个网络节点时的网络功能执行信息都能被收集到,以实现对网络节点执行网络功能行为的监控和分析,从而解决了现有技术中缺乏一种有效的方法问题,使数据信息的传输与接收更高效、更稳定、更可靠。
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。

Claims (13)

  1. 一种信息的收集方法,包括:
    目标网络节点在接收到报文之后,确定所述报文的带内操作管理维护IOAM头;
    所述目标网络节点在基于所述IOAM头确定出需要收集网络功能执行信息的情况下,收集目标网络功能执行信息。
  2. 根据权利要求1所述的方法,其中,所述目标网络节点收集目标网络功能执行信息包括:
    所述目标网络节点基于接收到的报文中携带的功能指示信息确定出需要由所述目标网络节点所执行的目标网络功能;
    所述目标网络节点执行所述目标网络功能,并在基于所述IOAM头中携带的目标信息确定需要收集执行所述目标网络功能所产生的所述目标网络功能执行信息的情况下,基于执行结果收集所述目标网络功能执行信息。
  3. 根据权利要求2所述的方法,其中,所述目标网络节点基于执行结果收集所述目标网络功能执行信息包括:
    所述目标网络节点基于所述执行结果确定出所述目标网络节点所执行的所述目标网络功能的数量、执行的每一个所述目标网络功能的类型,以及执行的每一个所述目标网络功能的结果;
    所述目标网络节点将所述目标网络功能的数量、执行的每一个所述目标网络功能的类型,以及执行的每一个所述目标网络功能的结果确定为所述目标网络功能执行信息。
  4. 根据权利要求2所述的方法,其中,所述目标网络节点在基于所述IOAM头中携带的目标信息确定需要收集执行所述目标网络功能所产生的所述目标网络功能执行信息的情况下,基于执行结果收集所述目标网络功能执行信息包括:
    所述目标网络节点基于所述IOAM头中携带的比特地图确定出需要收集执行所述目标网络功能所产生的所述目标网络功能执行信息的情况下,基于执行结果收集所述目标网络功能执行信息;
    其中,所述比特地图中包括一串指示比特,所述一串指示比特中包括有目标指示比特,在所述目标指示比特取值为特定值的情况下,所述目标指示比特用于指示需要收集网络功能执行信息。
  5. 根据权利要求1所述的方法,其中,所述目标网络节点在收集目标网络功能执行信息之后,所述方法还包括:
    所述目标网络节点按照所述IOAM头中携带的指示信息所指示的处理方式对所述目标网络功能执行信息进行处理。
  6. 根据权利要求5所述的方法,其中,所述目标网络节点按照所述IOAM头中携带的 指示信息所指示的处理方式对所述目标网络功能执行信息进行处理包括:
    所述目标网络节点在确定所述指示信息用于指示按照第一处理方式处理网络功能执行信息的情况下,将所述目标网络功能执行信息添加到所述lOAM头中;
    所述目标网络节点在确定所述指示信息用于指示按照第二处理方式处理网络功能执行信息的情况下,将所述目标网络功能执行信息导出到网络分析器中,其中,所述网络分析器用于对所述目标网络功能执行信息进行分析。
  7. 根据权利要求6所述的方法,其中,在所述目标网络节点为网络出口节点的情况下,所述方法还包括:
    所述目标网络节点在将所述目标网络功能执行信息添加到所述lOAM头中之后,将所述lOAM头中所添加的全部网络功能执行信息导出到所述网络分析器中,以及,剥离所述lOAM头,以恢复出原始数据报文。
  8. 根据权利要求6所述的方法,其中,在所述目标网络节点为网络出口节点的情况下,所述方法还包括:
    所述目标网络节点在将所述目标网络功能执行信息导出到网络分析器中之后,剥离所述lOAM头,以恢复出原始数据报文。
  9. 根据权利要求1所述的方法,其中,所述方法还包括:
    网络入口节点执行在原始数据报文中添加所述lOAM头的处理,并沿目标传输路径发送处理后的报文,其中,所述目标传输路径上包括所述目标网络节点。
  10. 根据权利要求1至9中任一项所述的方法,其中,所述报文包括以下至少之一:
    IPv6段路由SRv6报文;
    多协议标签交换MPLS报文。
  11. 一种信息的收集装置,应用于目标网络节点中,包括:
    确定模块,设置为在接收到报文之后,确定所述报文的带内操作管理维护lOAM头;
    收集模块,设置为在基于所述lOAM头确定出需要收集网络功能执行信息的情况下,收集目标网络功能执行信息。
  12. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被处理器执行时实现所述权利要求1至10任一项中所述的方法的步骤。
  13. 一种电子装置,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现所述权利要求1至10任一项中所述的方法的步骤。
PCT/CN2022/118816 2021-11-26 2022-09-14 信息的收集方法、装置、存储介质及电子装置 WO2023093227A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111425020.X 2021-11-26
CN202111425020.XA CN116192738A (zh) 2021-11-26 2021-11-26 信息的收集方法、装置、存储介质及电子装置

Publications (1)

Publication Number Publication Date
WO2023093227A1 true WO2023093227A1 (zh) 2023-06-01

Family

ID=86433182

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/118816 WO2023093227A1 (zh) 2021-11-26 2022-09-14 信息的收集方法、装置、存储介质及电子装置

Country Status (2)

Country Link
CN (1) CN116192738A (zh)
WO (1) WO2023093227A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677299A (zh) * 2019-09-30 2020-01-10 中兴通讯股份有限公司 网络数据采集方法、装置和系统
CN112583711A (zh) * 2019-09-27 2021-03-30 华为技术有限公司 一种报文处理方法及装置
US20210243107A1 (en) * 2018-05-03 2021-08-05 Futurewei Technologies, Inc. Explicit routing with network function encoding
CN113328915A (zh) * 2021-06-02 2021-08-31 北京工业大学 一种基于SRv6的随路网络测量方法
WO2021169290A1 (zh) * 2020-02-27 2021-09-02 华为技术有限公司 配置性能探测指示信息的方法及相关设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210243107A1 (en) * 2018-05-03 2021-08-05 Futurewei Technologies, Inc. Explicit routing with network function encoding
CN112583711A (zh) * 2019-09-27 2021-03-30 华为技术有限公司 一种报文处理方法及装置
CN110677299A (zh) * 2019-09-30 2020-01-10 中兴通讯股份有限公司 网络数据采集方法、装置和系统
WO2021169290A1 (zh) * 2020-02-27 2021-09-02 华为技术有限公司 配置性能探测指示信息的方法及相关设备
CN113328915A (zh) * 2021-06-02 2021-08-31 北京工业大学 一种基于SRv6的随路网络测量方法

Also Published As

Publication number Publication date
CN116192738A (zh) 2023-05-30

Similar Documents

Publication Publication Date Title
EP4054153B1 (en) Method for forwarding packet and network device
CN110034971B (zh) 检测业务链的方法及装置
US20220086073A1 (en) Data packet detection method, device, and system
CN109391560B (zh) 网络拥塞的通告方法、代理节点及计算机设备
US10554536B2 (en) Method for obtaining path information and apparatus
US11979322B2 (en) Method and apparatus for providing service for traffic flow
KR100916288B1 (ko) 네트워크 토폴로지의 결정을 위한 장치 및 방법
US8374164B2 (en) Detection of specific BFD path failures
EP3139560B1 (en) Packet processing method, device and computer storage medium
EP2509261B1 (en) Monitoring of a network element in a packet-switched network
CN105812197A (zh) 位转发入口路由器、位转发路由器及操作管理维护检测方法
US9083602B2 (en) Communication system and communication device
US8599692B2 (en) System, apparatus and method for removing unwanted information from captured data packets
US10623278B2 (en) Reactive mechanism for in-situ operation, administration, and maintenance traffic
CN106789625A (zh) 一种环路检测方法及装置
WO2016169121A1 (zh) 一种链路分析的方法、设备及系统
US20230327983A1 (en) Performance measurement in a segment routing network
WO2023093227A1 (zh) 信息的收集方法、装置、存储介质及电子装置
CN110224916B (zh) 报文的处理方法、装置及报文的封装方法、装置和系统
CN112910774B (zh) 通信方法、系统以及网络转发设备
US20240129233A1 (en) Method and apparatus for determining slice information, storage medium, and electronic device
CN107317753B (zh) 双向转发检测bfd会话建立的方法、装置和系统
WO2023024755A1 (zh) Mpls报文的封装方法及装置、存储介质及电子装置
EP4243368A1 (en) Data obtaining method and apparatus, device, and storage medium
US20240163208A1 (en) Packet processing method and apparatus, and storage medium and electronic apparatus

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

Country of ref document: EP

Kind code of ref document: A1