WO2016169121A1 - 一种链路分析的方法、设备及系统 - Google Patents

一种链路分析的方法、设备及系统 Download PDF

Info

Publication number
WO2016169121A1
WO2016169121A1 PCT/CN2015/082858 CN2015082858W WO2016169121A1 WO 2016169121 A1 WO2016169121 A1 WO 2016169121A1 CN 2015082858 W CN2015082858 W CN 2015082858W WO 2016169121 A1 WO2016169121 A1 WO 2016169121A1
Authority
WO
WIPO (PCT)
Prior art keywords
analysis
information
identifier
link
packet
Prior art date
Application number
PCT/CN2015/082858
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 WO2016169121A1 publication Critical patent/WO2016169121A1/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/14Network analysis or design
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for link analysis.
  • NFV Network Function Virtualization
  • LAN local area network
  • Service links can be deployed in multiple ways.
  • the forwarding path can be arranged according to the needs of actual users to provide different value-added services.
  • the service link After the service link is deployed, you need to know the status of the service link in time. When there is a problem with the service link, you need to adjust the service link in time. In this case, you need to obtain information on the service link and use the information obtained based on the obtained information.
  • the link is analyzed. At present, the analysis method of the link in the service link and the switching network can only be based on the physical link, and the information in the service link can be obtained only by manually checking various entries of the switch in the physical link. Then, the information of the acquired link is analyzed manually, resulting in inefficient analysis of the service link.
  • the embodiment of the invention provides a method for link analysis, which can collect information in a service link by using an analysis packet forwarded in a service link, and automatically analyze the collected information by the analysis device, thereby improving the service.
  • the efficiency of link analysis also provide corresponding devices and systems.
  • a first aspect of the present invention provides a method for link analysis, where the method is applied to a switch in a service link, and the method includes:
  • the first analysis packet includes an identifier of the to-be-collected information, an identifier of the service link, and a link analysis identifier, where the link analysis identifier is used to instruct the switch to collect the to-be-collected Collecting information to be collected indicated by the identifier of the information;
  • a second analysis packet Sending, according to the identifier of the service link, a second analysis packet, where the second analysis packet includes the collected information, and the collected information is included in the acquired information to be collected.
  • the collected information is used by the analysis device to analyze the service link.
  • the acquiring the first analysis packet, where the first analysis packet includes an identifier of the information to be collected, an identifier of the service link, and a link analysis identifier include:
  • link analysis message carries an identifier of the to-be-collected information, an identifier of the service link, a link analysis identifier, and format information of the analysis packet;
  • the obtaining the first analysis packet includes:
  • the first analysis packet sent by the previous switch is received, and the previous switch is a switch that outputs the first analysis packet in the service link.
  • the service link further includes a service server, where the obtaining the first analysis packet includes:
  • the service link further includes a service server, where the switch sends a packet to the service server by using a first port on the switch, by using the switch The second port receives the packet from the service server, where the obtaining the first analysis packet includes:
  • the method further includes:
  • the service link further includes a service server, where the switch sends a packet to the service server by using a first port on the switch, by using the switch The second port receives the packet from the service server, where the obtaining the first analysis packet includes:
  • the service server does not identify the analysis packet
  • the first analysis packet sent from the first port and not looped back from the second port by the service server is obtained.
  • the identifier according to the information to be collected is from the recorded information After the information to be collected is obtained, the method further includes:
  • the information that is to be collected and sent to the first analysis packet includes:
  • the part of the acquired information to be collected is written into the first analysis packet, and And deleting the message sorting identifier used to represent the last packet in the first analysis packet to obtain a filled analysis packet;
  • the method further includes:
  • the first analysis packet further includes a collection cutoff identifier, where the collection deadline is The identifier is used to output an analysis packet to the analysis device at the output point indicated by the collection cutoff identifier, and the second analysis packet is sent to the next hop network device according to the identifier of the service link, including:
  • next hop network device when the next hop network device is not the analysis device, the next hop network device sends a second analysis packet according to the identifier of the service link, where the next hop network device is Next hop switch or next hop service server;
  • a second aspect of the present invention provides a method for link analysis, where the method is applied to an analysis device for analyzing a service link, and the method includes:
  • the analysis packet includes the identifier of the service link, the collected information of the service link, and the analysis packet type identifier, where the analysis packet type identifier is used to indicate the Analysis messages are used for link analysis;
  • the analysis packet further includes an identifier of the packet sorting, and after the analyzing the packet sent by the receiving switch, the method further includes:
  • the method further includes: before the receiving the analysis packet sent by the switch, the method further includes:
  • the analysis configuration includes an identifier of the information to be collected, an identifier of the service link, a link analysis identifier, and format information of the analysis packet, where the link analysis identifier is used.
  • the information indicating the to-be-collected information indicated by the identifier of the to-be-collected information is collected by the switch in the service link;
  • the link analysis message carries the analysis configuration, where format information of the analysis message is used by the first switch generation a first analysis message in a format indicated by the format information, where the identifier of the information to be collected is used to indicate that the switch in the service link collects the to-be-collected information, the identifier of the service link, and the collection deadline
  • the identifier is used to indicate that the switch in the service link sends the second analysis packet to the next hop network device, where the second analysis packet includes the collected information, and the collected information is included in the acquired information to be collected.
  • Information that the collected information is used by the analysis device to analyze the service link.
  • a third aspect of the present invention provides a method for link analysis, where the method is applied to a network management device that triggers analysis of a service link, and the method includes:
  • the analysis configuration includes an identifier of the information to be collected, an identifier of the service link, a link analysis identifier, and format information of the analysis packet, where the link analysis identifier is used.
  • the information indicating the to-be-collected information indicated by the identifier of the to-be-collected information is collected by the switch in the service link;
  • the link analysis message carries the analysis configuration, where format information of the analysis message is used by the first switch generation a first analysis message in a format indicated by the format information, where the identifier of the information to be collected is used to indicate that the switch in the service link collects the to-be-collected information, the identifier of the service link, and the collection deadline
  • the identifier is used to indicate that the switch in the service link sends the second analysis packet to the next hop network device, where the second analysis packet includes the collected information, and the collected information is included in the acquired information to be collected.
  • Information that the collected information is used by the analysis device to analyze the service link.
  • a fourth aspect of the present invention provides a method for link analysis, where the method is applied to a service server in a service link, and the method includes:
  • the first analysis packet includes an identifier of the information to be collected and a link analysis identifier, where the link analysis identifier is used to instruct the service server to collect the information to be collected indicated by the identifier of the information to be collected.
  • the switch Sending a second analysis packet to the switch, where the second analysis packet includes collected information, the collected information is included in the acquired information to be collected, and the collected information is used by an analysis device for analyzing Said business link.
  • the method further includes:
  • the information that is to be collected and sent to the first analysis packet includes:
  • the part of the acquired information to be collected is written into the first analysis packet, and And deleting the message sorting identifier used to represent the last packet in the first analysis packet to obtain a filled analysis packet;
  • the sending the second analysis packet to the switch includes:
  • the method further includes:
  • a fifth aspect of the present invention provides a switch in a service link, including:
  • a first acquiring module configured to acquire a first analysis packet, where the first analysis packet includes a to-be-collected packet
  • a second acquiring module configured to acquire the to-be-collected information from the recorded information according to the identifier of the to-be-collected information acquired by the first acquiring module
  • a sending module configured to send, according to the identifier of the service link, a second analysis packet to the next hop network device, where the second analysis packet includes the collected information, and the collected information is included in the second Acquiring the to-be-collected information acquired by the module, where the collected information is used by the analyzing device to analyze the service link.
  • the first acquiring module is specifically configured to receive a link analysis message sent by the network management device, where the link analysis message carries an identifier of the to-be-collected information, an identifier of the service link, a link analysis identifier, and an analysis packet. Format information; generating, according to the format information of the analysis message, a first analysis message in a format indicated by the format information, where the first analysis message includes an identifier of the information to be collected, and the service link Identification and the link analysis identification.
  • the first acquiring module is configured to receive a first analysis packet sent by the previous switch, where the previous switch is a switch that outputs the first analysis packet in the service link.
  • the first acquiring module is specifically configured to receive a first analysis packet returned by the service server.
  • the first obtaining module specifically for the service link, further includes a service server, and when a loop communication with the service server fails, the obtaining is sent from the first port, and the service server is not used by the service server.
  • the first analysis packet of the second port loopback wherein the switch sends a packet to the service server by using a first port on the switch, and the service server is sent through the second port on the switch. Receiving a message;
  • the sending module is further configured to send the first analysis packet to the analyzing device.
  • the first obtaining module specifically for the service link, further includes a service server, when the industry When the server does not recognize the analysis packet, the first analysis packet sent from the first port and not looped back from the second port by the service server is obtained, where the switch passes through the switch.
  • the first port sends a packet to the service server, and receives a packet from the service server by using a second port on the switch.
  • the switch also includes a processing module
  • the processing module is configured to write the to-be-collected information acquired by the first acquiring module into the first analysis packet.
  • the processing module includes a first processing submodule and a second processing submodule
  • the first processing sub-module is configured to: when the data filling space of the first analysis packet is smaller than the space required for the acquired information to be collected, write the obtained location to the first analysis packet Depicting a part of the information in the collected information, and clearing the message sorting identifier used to represent the last message in the first analysis message to obtain a filled analysis message;
  • the second processing sub-module is configured to generate a new analysis packet according to the first analysis packet, where the data filling space of the new analysis packet is larger than that processed by the first processing sub-module And the information other than the part of the information to be collected in the obtained information to be collected is written into the new analysis message when the space is required for the information other than the part of the information, and Adding a message sorting identifier for characterizing the last packet in the new analysis packet, and obtaining a second analysis packet;
  • the sending module is configured to send the second analysis packet to the next hop network device according to the identifier of the service link, and is further configured to send the first processing submodule to the analyzing device. The completed analysis message obtained afterwards.
  • the sending module is configured to: when the first analysis packet further includes a collection cutoff identifier, and when the next hop network device is the analysis device, according to the collecting cutoff identifier, send the first to the analyzing device a second analysis message, wherein the collection cutoff identifier is used to indicate the collection cutoff identifier
  • the indicated output point outputs an analysis message to the analysis device; according to the collection cutoff identifier, when the next hop network device is not the analysis device, according to the identifier of the service link, the next hop network device sends the In the second analysis packet, the next hop network device is a next hop switch or a next hop service server; and the switch is confirmed to be in the service link according to the identifier of the service link or the collection cutoff identifier.
  • the last analysis device sends a second analysis message to the analysis device.
  • a sixth aspect of the present invention provides an analysis device for analyzing a service link, including:
  • a receiving module configured to receive an analysis packet sent by the switch, where the analysis packet includes an identifier of the service link, an collected information of the service link, and an analysis packet type identifier, where the analysis packet type identifier is Used to indicate that the analysis message is used for link analysis;
  • An analysis module configured to analyze the service indicated by the identifier of the service link according to the analysis packet type identifier and the collected information of the service link in the analysis packet received by the receiving module link.
  • the analyzing device further includes:
  • a first acquiring module configured to: when the analysis packet received by the receiving module further includes an identifier of the packet sorting, obtain, according to the identifier of the service link, each analysis packet of the service link;
  • a determining module configured to: when the message sorting identifier used to represent the last packet is obtained in each of the analysis packets obtained by the first acquiring module, determine that all the service links are received Analysis of the message;
  • an extracting module configured to extract, from the all analysis packets determined by the determining module, the collected information of the service link.
  • the analyzing device further includes:
  • a second acquiring module configured to obtain an analysis configuration of the service link, where the analysis configuration includes an identifier of the information to be collected, an identifier of the service link, a link analysis identifier, and format information of the analysis packet, where The link analysis identifier is used to indicate that the switch in the service link collects the to-be-collected information indicated by the identifier of the to-be-collected information;
  • a sending module configured to send a link analysis message to the first switch in the service link, where the link analysis message carries the analysis configuration acquired by the second acquiring module, where the analysis
  • the format information of the packet is used by the first switch to generate a first analysis packet in the format indicated by the format information, where the identifier of the information to be collected is used to indicate that the switch in the service link collects the to-be-collected Collecting information, the identifier of the service link and the collection cutoff identifier are used to indicate that the switch in the service link sends a second analysis packet to the next hop network device, where the second analysis packet includes the collected
  • the collected information is included in the acquired information to be collected, and the collected information is used by the analyzing device to analyze the service link.
  • a seventh aspect of the present invention provides a network management device for triggering an analysis of a service link, including:
  • An obtaining module configured to obtain an analysis configuration of the service link, where the analysis configuration includes an identifier of the information to be collected, an identifier of the service link, a link analysis identifier, and format information of the analysis packet, where the The link analysis identifier is used to indicate that the switch in the service link collects the to-be-collected information indicated by the identifier of the to-be-collected information;
  • a sending module configured to send a link analysis message to the first switch in the service link, where the link analysis message carries the analysis configuration acquired by the acquiring module, where the format of the analysis packet
  • the information is used by the first switch to generate a first analysis packet in the format indicated by the format information, where the identifier of the information to be collected is used to indicate that the switch in the service link collects the to-be-collected information.
  • the identifier of the service link and the collection cutoff identifier are used to indicate that the switch in the service link sends a second analysis packet to the next hop network device, where the second analysis packet includes the collected information,
  • the collected information is included in the acquired information to be collected, and the collected information is used by the analyzing device to analyze the service link.
  • An eighth aspect of the present invention provides a service server in a service link, including:
  • a receiving module configured to receive a first analysis packet sent by a switch that communicates with the service server in the service link, where the first analysis packet includes an identifier of the to-be-collected information and a link analysis identifier, where the chain
  • the road analysis identifier is used to instruct the service server to collect the information to be collected indicated by the identifier of the information to be collected;
  • An acquiring module configured to obtain the to-be-collected information from the recorded information according to the identifier of the to-be-collected information included in the first analysis packet received by the receiving module;
  • a sending module configured to send a second analysis packet to the switch, where the second analysis packet includes the collected information, where the collected information is included in the to-be-collected information acquired by the acquiring module, where The collected information is used by the analysis device to analyze the service link.
  • the service server further includes:
  • the processing module is configured to write the to-be-collected information acquired by the acquiring module to the first analysis packet.
  • the processing module includes a first processing submodule and a second processing submodule
  • the first processing sub-module is configured to: when the data filling space of the first analysis packet is smaller than the space required for the acquired information to be collected, write the obtained location to the first analysis packet Depicting a part of the information in the collected information, and clearing the message sorting identifier used to represent the last message in the first analysis message to obtain a filled analysis message;
  • the second processing sub-module is configured to generate a new analysis packet according to the first analysis packet, where the data filling space of the new analysis packet is larger than that processed by the first processing sub-module And the information other than the part of the information to be collected in the obtained information to be collected is written into the new analysis message when the space is required for the information other than the part of the information, and Adding a message sorting identifier for characterizing the last packet in the new analysis packet, and obtaining a second analysis packet;
  • the sending module is configured to send the second analysis packet to the switch, and is further configured to send the filled analysis packet to the switch, where the filled second analysis packet is The switch is sent to the analysis device.
  • a ninth aspect of the present invention provides a system for link analysis of a service link, including: a switch, a network management device, an analysis device, and a service server.
  • the switch is the switch according to any of the fifth aspects
  • the network management device is the network management device described in the seventh aspect
  • the analysis device is the analysis device of the sixth aspect or the first implementation of the sixth aspect.
  • a tenth aspect of the present invention provides a system for link analysis of a service link, including: a switch, an analysis device, and a service server.
  • the switch is the switch according to any of the fifth aspects
  • the analysis device is the analysis device described in the second implementation manner of the sixth aspect
  • the service server is the service server of any of the eighth aspects.
  • the embodiment of the present invention is configured to obtain a first analysis packet, where the first analysis packet includes an identifier of the to-be-collected information, an identifier of the service link, and a link analysis identifier, where the link analysis identifier is used to indicate that the switch collects
  • the information to be collected indicated by the identifier of the information to be collected; the information to be collected is obtained from the recorded information according to the identifier of the information to be collected; and the network is hopped downward according to the identifier of the service link.
  • the device sends a second analysis message, where the second analysis message includes the collected information, the collected information is included in the acquired information to be collected, and the collected information is used by the analysis device to analyze the service chain. road.
  • the link analysis method provided by the embodiment of the present invention can collect the service through the analysis packet forwarded in the service link.
  • the information in the link and the analysis of the collected information by the analysis device automatically improve the efficiency of the service link analysis.
  • FIG. 1 is a schematic diagram of an embodiment of a method for link analysis according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of another embodiment of a method for link analysis in an embodiment of the present invention.
  • FIG. 3A is a schematic diagram of an embodiment of a switch according to an embodiment of the present invention.
  • 3B is a schematic diagram of an embodiment of a physical host in an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another embodiment of a method for link analysis in an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another embodiment of a method for link analysis according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another embodiment of a method for link analysis in an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another embodiment of a method for link analysis in an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another embodiment of a method for link analysis in an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of another embodiment of a method for link analysis in an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an embodiment of a switch according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of another embodiment of a switch according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another embodiment of a switch according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of an embodiment of an analysis device according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of another embodiment of an analysis device according to an embodiment of the present invention.
  • 15 is a schematic diagram of another embodiment of an analysis device according to an embodiment of the present invention.
  • 16 is a schematic diagram of an embodiment of a network management device according to an embodiment of the present invention.
  • FIG. 17 is a schematic diagram of an embodiment of a service server according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of another embodiment of a service server according to an embodiment of the present invention.
  • FIG. 19 is a schematic diagram of another embodiment of a service server according to an embodiment of the present invention.
  • FIG. 20 is a schematic diagram of another embodiment of a switch, an analysis device, a network management device, and a service server according to an embodiment of the present invention
  • 21 is a schematic diagram of another embodiment of a switch according to an embodiment of the present invention.
  • FIG. 22 is a schematic diagram of another embodiment of an analysis device according to an embodiment of the present invention.
  • FIG. 23 is a schematic diagram of another embodiment of a network management device according to an embodiment of the present invention.
  • FIG. 24 is a schematic diagram of another embodiment of a service server according to an embodiment of the present invention.
  • 25 is a schematic diagram of an embodiment of a system for link analysis in an embodiment of the present invention.
  • FIG. 26 is a schematic diagram of another embodiment of a system for link analysis in an embodiment of the present invention.
  • the embodiment of the invention provides a method for link analysis, which can collect information in a service link by using an analysis packet forwarded in a service link, and automatically analyze the collected information by the analysis device, thereby improving the service.
  • the efficiency of link analysis is also provided.
  • the embodiments of the present invention also provide corresponding devices and systems. The details are described below separately.
  • a service link in the embodiment of the present invention refers to a data link or a physical link, where the data link may be a logical link, a virtual link, or a service chain (SC).
  • the service link usually includes a switch and a service server.
  • the embodiment of the present invention uses a service link as an example for description.
  • the link analysis in the embodiment of the present invention may be, for example, performing link information collection on a switch (or a switch and a server) on a service chain link, so as to grasp the link status and link of the service chain.
  • the key indicators in the user so that the user can optimize the service deployment of the service chain, and specifically the link detection, for example, it can detect whether the service chain is available, ensure the rapid deployment of the service chain service by the user, or can collect the service chain link.
  • the fault information of the service chain switch in order to quickly locate the problem and the like are not limited in the embodiment of the present invention.
  • switches and service servers in the service link in the embodiment of the present invention may be independent network devices, and the separate network devices are specifically used to forward packets in the service link or provide value-added services for service packets.
  • some switches or service servers in the service link may also be a resource (such as a virtual machine) that is divided from a network device, and is used to perform the function of the switch in the service link or the function of the service server.
  • an embodiment of a method for link analysis provided by an embodiment of the present invention includes:
  • a service orchestration is used to determine the forwarding rules of a service link, that is, to determine the order of the switches, service servers, and elapsed packets that the packets pass through in the service link.
  • the controller is used by the switch in the service link to deliver the forwarding entry of the service link.
  • a classifier is used to determine the service link that a packet needs to pass according to information such as user information, tariff plan, and user access destination.
  • Switch 1 and switch 2 are used to forward packets in the service link.
  • the service server A, the service server B, the service server C, and the service server D are respectively value added services (VAS) of different service types, for example, value-added servers such as parental control, video optimization, web optimization, and cache, respectively.
  • VAS value added services
  • the service server is used to provide corresponding value-added services for service packets in the service link.
  • the service link indicated by the identifier of the service link is switch 1 - service server A - switch 1 - service server B - switch 1 - switch 2 - service server C - switch 2 - service server D - switch 2.
  • the service packet from the user terminal enters the switch 1 through the traffic classifier.
  • the traffic classifier sets the identity of the service link for the service packet, and the switch 1 forwards the hop by hop according to the identifier of the service link.
  • the service packet is forwarded to the switch 2, and the switch 2 forwards the service packet hop by hop to the Internet.
  • the information to be collected in the service link is collected by analyzing the packet, and the analysis packet may be an Operation Administration and Maintenance (OAM) packet.
  • OAM Operation Administration and Maintenance
  • the network management device is configured to trigger the analysis of the service link, that is, the link analysis process is triggered by the user or the staff, the program timing, or the like. For example, the network management device analyzes the format information of the packet through the network management device. The link analysis identifier, the identifier of the service link, and the identifier of the information to be collected, and then trigger the network management device to send a link analysis message to the switch 1.
  • the format information of the analysis packet refers to the header of the analysis packet, the information of the load section, and the link analysis identifier is a dedicated identifier, which may be set in an existing field in the analysis packet, or may be in the A header field is added to the analysis message.
  • the identity of the service link uniquely indicates a service link.
  • the analysis device is configured to analyze the service link through the information to be collected when receiving the information to be collected indicated by the identifier of the information to be collected by the switch 1 and the switch 2, and may receive an analysis message when performing link analysis.
  • the analysis is started, or all the analysis messages of the service link are received, all the information to be collected is extracted, and then analyzed, and the analysis is performed by using all the information to be collected to improve the analysis accuracy.
  • the analyzing device determines that all the analysis packets of the service link are received, and may obtain, according to the identifier of the service link, each analysis packet of the service link; when from each of the analysis packets And obtaining, when the packet sorting identifier is used to represent the last packet, determining that all the analysis packets of the service link are received; and extracting the collected information of the service link from the all analysis packets.
  • the network management device and the analysis device may be one device, or of course, two separate devices.
  • the process of link analysis is triggered by the network management device and ends by the analysis device.
  • the switch 1 is the start of the service link, and the switch 1 receives the link analysis message sent by the network management device, where the link analysis message carries the identifier of the information to be collected, and the service link.
  • Format information of the identifier, the link analysis identifier, and the analysis packet; according to the analysis packet The format information includes a first analysis message in a format indicated by the format information, where the first analysis message includes an identifier of the information to be collected, an identifier of the service link, and the link analysis identifier.
  • the service server corresponding to the switch and the switch communicates through the port.
  • a service server that the switch communicates with the switch has two ports for communication, and the first port is defined as a port on which the switch sends packets to the service server, and the second port is defined as a switch from the service server.
  • These ports can each correspond to a number.
  • the switch collects the information to be collected, it performs a collection operation at each port.
  • a port of the switch is multiplexed, and one port may be used for both receiving and transmitting, or a port may be used for communication with the service switch 2 or with the service switch. B communication.
  • the switch 1 After the first analysis packet is generated, the switch 1 obtains the to-be-collected information indicated by the identifier of the to-be-collected information, and writes the collected information to be collected according to the identifier of the information to be collected. In an analysis message, a second analysis message is obtained.
  • switch 1 may just collect some of the information to be collected.
  • the recorded information can be some information stored in the switch entry, such as the number of service packets sent by port 1 of switch 1.
  • the second analysis packet is sent to the service server A according to the forwarding rule. If the service server A can identify the second analysis packet, the traffic is forwarded to the service server A. If the service server A cannot identify the second analysis packet, the service may be discarded.
  • the switch 1 can send the second analysis packet from the first port, and receive the second analysis packet from the second port, where the first port is the port that the switch 1 sends the packet to the service server A.
  • the second port is a port on which the switch 1 receives the packet from the service server A.
  • the switch 1 After receiving the second analysis packet, the switch 1 collects the information to be collected at the second port, and then writes the to-be-collected information to the second analysis packet, if the second analysis packet is written.
  • a third analysis message is generated, and the identifier of the last message is set in the third analysis message, and then the information is filled.
  • the second analysis message is used to identify the identity of the last message, and the filled second analysis message is sent to the analysis device.
  • the remaining to-be-collected information is written to the third analysis packet, and then the third analysis packet is sent to the service server B.
  • the sending process may send a second score to the service server A.
  • the process of analyzing the message is the same.
  • Switch 1 collects the information to be collected at each port, and then writes the information to be collected into the analysis packet.
  • the capacity of the data filling space of the analysis packet can accommodate the information to be collected, and no new report needs to be generated. If the capacity of the data filling space of the analysis message cannot accommodate the information to be collected, a new message needs to be generated, and after the new message is generated, if the data of the new message is filled, the space cannot be accommodated.
  • the new analysis message can be continuously generated, and the above-mentioned information to be collected is repeated, and a new analysis message is generated until the information to be collected is completely written.
  • the filled analysis messages are sent directly to the analysis device.
  • the unfilled analysis packet continues to be sent by the switch to the service server or looped back from the communication port with the service server, or sent to the next switch in the service chain, by the next one.
  • the switch continues to perform the above process of collecting information to be collected. That is, the switch 2 in the embodiment of the present invention continues to perform the process of collecting the information to be collected, such as the switch 1, and if the switch 1 or the switch 2 knows that a certain link is faulty in the process of forwarding the service packet, the switch 1 sends the information to the analysis device. If the service link is not faulty, the analysis packet is forwarded until the end point indicated by the collection cutoff identifier configured by the network management system. The cutoff point is the service link sends the analysis packet to the analysis device.
  • the collection cutoff identifier may be carried in a link analysis message sent by the network management device. If the cutoff point is not configured, the point that the switch 2 inputs to the Internet is that the analysis message is not sent to the Internet, but the analysis message is sent to the analysis device.
  • the switch that receives the link analysis message from the network management device becomes the starting point, that is, the start point, and the point at which the analysis packet is sent to the analysis device can be the breakout point.
  • the service server can identify the analysis packet, it can also collect the information from the switch, obtain the information to be collected, and write the information to be collected into the analysis packet, and then send it to the corresponding switch.
  • GGSN Gateway GPRS Support Node
  • RNC Radio Network Controller
  • the GGSN needs to pass the user data before sending it to the Internet.
  • the processing of business provides value-added services to users.
  • Parental Control, Video Optimization in Figure 2 (Video Opt), web optimization t (Web Op), caching (Caching), etc. are value added services.
  • MANO is the orchestrator of the service link, which determines what kind of data needs to be processed for that service link.
  • the controller (Controller) is responsible for delivering the forwarding entry of the service chain link for the service switch.
  • PCRF policy and charging rules function
  • PCRF policy and charging rules function
  • a traffic classifier is also called a policy and charging enforcement function (PCEF).
  • PCEF policy and charging enforcement function
  • the traffic classifier performs traffic classification on the service link. After the traffic classifier is complete, the service packet is marked with a tag. Indicates which service link this message needs to go. That is, the processing scheme of the service message described in the part of FIG.
  • the application of the analysis packet in the scenario of Figure 2 is from the network management device to the end of the analysis device.
  • the specific link analysis process can be understood by referring to the description of the analysis packet in Figure 1.
  • the service link in the embodiment of the present invention may be a virtual machine switch.
  • OVS open source software virtual switch
  • the virtual switch provides an application interface API to communicate with other devices on the network.
  • a database, a database service module, and a control module are provided at the control layer, and the control module is used to schedule data from the data layer.
  • the OAM packet manager and the OAM information collection module are also configured in the control layer, that is, the OAM packet is collected during the link analysis process, and the information to be collected is collected.
  • an L2 layer switch module there is an L2 layer switch module, an L3 layer forward module, a L2 layer is a Media Access Control (MAC) layer, and an L3 layer is an Internet Protocol (IP) layer.
  • the data layer is also provided with an OAM module for generating OAM packets.
  • a service link table that provides forwarding rules for service links.
  • a VAS cluster table and a VAS instance are used to provide a relationship between a switch and a VAS server.
  • the hardware layer may include a physical network card and a virtual network card for forwarding messages to the VAS server or other network devices.
  • the switch provided by the embodiment of the present invention may be a virtual machine running on a physical machine.
  • the physical machine 1200 includes a hardware layer 100 running on the hardware layer 100.
  • a VMM (Virtual Machine Monitor) 110 and a host Host 1201 and a virtual machine (VM) running on the VMM 110, wherein the hardware layer includes but is not limited to: an I/O device. , CPU and memory.
  • the switch provided by the embodiment of the present invention may be a virtual machine in the physical machine 1200, such as the VM 1202.
  • the VM 1202 runs one or more executable programs, where each executable program is used to implement the corresponding The business function, the VM 1202 implements the function of the switch by running the executable program and calling the hardware resources of the hardware layer 100 through the host Host 1201 during the running of the program.
  • FIG. 4 is a schematic diagram of another embodiment of a method for link analysis according to an embodiment of the present invention.
  • an embodiment of a method for link analysis provided by an embodiment of the present invention includes: a network management device, a switch 1, a switch 2, a service server A, a service server B, a service server C, a service server D, and an analysis device.
  • the method for link analysis provided by the embodiment of the present invention can be understood by referring to the process of analyzing the packet in part of FIG. 1 : no further description is made herein.
  • the service link in the embodiment of the present invention is an exemplary expression for ease of understanding.
  • the embodiment of the present invention does not limit the type and number of network devices included in the service link.
  • the link 1 may be a range of analysis specified by the user or the network management staff in the network according to actual service requirements, and the specified analysis scope may reduce the number of collections, thereby reducing data processing and analysis work, and may be used for the link. When there is a fault, more detailed information can be collected within the specified range.
  • the analysis range includes the start point and the break point. It should be noted that when the analysis scope is determined, the start and break out points are generally the physical or virtual ports of the switch. .
  • the message may include a Packet Header, a Control Header, and a payload portion.
  • Table 1 Message Format Information Table
  • Packet Header can contain destination MAC address and destination IP address, source MAC address and source IP address.
  • the analysis packet can be an Operation Administration and Maintenance (OAM) message. Analysis packets and other service data packets can be distinguished by message identifiers.
  • OAM Operation Administration and Maintenance
  • the service chain header and the user message header are included.
  • the service chain header format is a header format adopted by the service chain service in the system, for example, an NSH header and a SCH header in the draft of the Internet Engineering Task Force (IETF), and a header of the user packet.
  • the destination MAC address and destination IP address are the addresses of the analysis device.
  • the source MAC address and source IP address are the addresses of the network management device.
  • the L4 layer uses the User Datagram Protocol (UDP), and the port number is a system-defined port number, for example, 6699for dest/6698for src.
  • the switch can distinguish between normal packets and OAM packets in two ways, that is, by analyzing the packet header or by using the UDP port number.
  • Control Header Used to control the behavior of the switch in the service link for processing this OAM packet.
  • Payload used to save the acquired information to be collected.
  • Control Header can include capture info and breakout info.
  • the capture info in the control header can be understood by referring to Table 3:
  • E------- indicates whether it is the last message flag of this analysis.
  • the last message is set to analyze whether the device has received the message in the complete test column.
  • F------- indicates whether the packet is full (can no longer put information) flag. If the switch finds that the packet length exceeds the generated packet length when extracting the analysis information into the packet, the switch sets this. Flag and generate a new analysis message.
  • Seq No.----- indicates the analysis sequence number used to distinguish which packets belong to which analysis sequence.
  • Flags------- indicates the analysis flag, a total of 64 bits of bitmap, each bit represents a type of information that needs to be collected; (the specific type is not explicitly given).
  • the analysis information may include various information in the chain in the service chain link interval specified in the analysis packet, such as CPU occupation of a flow forwarding entry switch of a hop or multiple hops or even each hop.
  • the rate, the memory usage, the statistics, the bandwidth on the chassis, the configuration entry, the forwarding entry, the queue depth, or the situation of the switch memory are not limited.
  • Captured Length Indicates the length of the message that has been fetched, used to find the location where the next message was written.
  • the Breakout info in the control header can be understood by referring to Table 4:
  • Flag indicates the identity of Breakout
  • Data indicates the data of Breakout
  • Breakout Reason indicates the reason for Breakout.
  • Switch id indicates the switch identifier of Breakout
  • Next port indicates the next port on the link if it is not Breakout.
  • the payload can include captured info, where the contents of the captured info can be referred to Table 7 is understood:
  • the Current switch id indicates the identifier of the current switch
  • the Captured data type indicates the type of data captured
  • the Captured data length indicates the length of the captured data.
  • the link analysis method provided by the embodiment of the present invention can collect the service through the analysis packet forwarded in the service link.
  • the information in the link and the analysis of the collected information by the analysis device automatically improve the efficiency of the service link analysis.
  • FIG. 5 is a schematic diagram of another embodiment of a method for link analysis according to an embodiment of the present invention. As shown in FIG. 5, the method for link analysis provided by the embodiment of the present invention includes:
  • the network management device triggers the analysis of the service link of the network management device.
  • the network management device sends a link analysis message to the switch 1, where the link analysis message carries the identifier of the information to be collected, the identifier of the service link, the link analysis identifier, and the format information of the analysis packet.
  • the switch 1 may send a response message to the network management device to notify the network management device that the link analysis message has been received.
  • the switch 1 generates an analysis packet and obtains information to be collected.
  • the switch 1 sends the analysis packet to which the information to be collected is added to the switch 2.
  • the switch 2 continues to obtain information to be collected.
  • the link analysis method provided by the embodiment of the present invention can collect the service through the analysis packet forwarded in the service link.
  • the information in the link and the analysis of the collected information by the analysis device automatically improve the efficiency of the service link analysis.
  • FIG. 6 another embodiment of a method for link analysis provided by an embodiment of the present invention includes:
  • the switch in the service link obtains the first analysis packet, where the first analysis packet includes an identifier of the to-be-collected information, an identifier of the service link, and a link analysis identifier, where the link analysis identifier is used. Instructing the switch to collect information to be collected indicated by the identifier of the information to be collected.
  • the information identifier to be analyzed can be understood as the Flags in Table 3.
  • the Flags include multiple identifiers to be analyzed.
  • the header format of the first analysis packet and the second analysis packet may be similar to the header format of the service packet in the service link, and the link analysis identifier may be changed in the header of the service packet.
  • the meaning of some fields is obtained (for example, in the Internet Engineering Task Force (IETF) draft, change the source Mac address field), or you can add a new field in the service message (for example, in the Internet engineering task)
  • IETF Internet Engineering Task Force
  • the addition is performed after the IP header, which is not limited in the embodiment of the present invention.
  • the second analysis packet is sent to the next hop network device according to the identifier of the service link, where the second analysis packet includes the collected information, and the collected information is included in the acquired information to be collected.
  • the collected information is used by the analysis device to analyze the service link.
  • the embodiment of the present invention is configured to obtain a first analysis packet, where the first analysis packet includes an identifier of the to-be-collected information, an identifier of the service link, and a link analysis identifier, where the link analysis identifier is used to indicate the
  • the switch collects the to-be-collected information indicated by the identifier of the to-be-collected information; and obtains the to-be-collected information from the recorded information according to the identifier of the to-be-collected information;
  • the hopping network device sends a second analysis packet, where the second analysis packet includes the collected information, and the collected information is included in the acquired information to be collected, and the collected information is used by the analysis device. Analyze the service link.
  • the link analysis method provided by the embodiment of the present invention can collect the service through the analysis packet forwarded in the service link.
  • the information in the link and the analysis of the collected information by the analysis device automatically improve the efficiency of the service link analysis.
  • the acquiring the first analysis packet includes an identifier of the information to be collected, an identifier of the service link, and a link analysis identifier, including:
  • link analysis message carries an identifier of the to-be-collected information, an identifier of the service link, a link analysis identifier, and format information of the analysis packet;
  • the switch when the switch is the first switch on the service link, the first analysis packet is generated according to the link analysis message sent by the network management device.
  • the information to be collected can be started, thereby improving the efficiency of collecting the information to be collected for analysis.
  • the obtaining the first analysis packet includes:
  • the first analysis packet sent by the previous switch is received, and the previous switch is a switch that outputs the first analysis packet in the service link.
  • the switch when the switch is not the first switch on the link, the first analysis packet sent by the previous switch is received, and then the analysis information related thereto is collected, thereby realizing the automation of the information to be collected. Collected, thereby increasing the efficiency of the collection to be used for analysis.
  • the service link further includes a service server, where the obtaining is performed.
  • the first analysis message includes:
  • the switch when the service server can identify the analysis packet, the switch may further receive the first analysis packet returned by the service server.
  • the service link further includes a service server, where the switch is And sending the packet to the service server by using the first port on the switch, and receiving the packet from the service server by using the second port on the switch, where the obtaining the first analysis packet may include:
  • the method may further include:
  • the service packet when the communication link with the service server is faulty, for example, according to the record, the service packet is discarded in the link and does not return normally, the point is a breakout point and is directly sent to the analysis device.
  • the analysis message is analyzed so that the analysis device can analyze the failure and repair it as soon as possible.
  • the service link further includes a service server, where the switch is And sending the packet to the service server by using the first port on the switch, and receiving the packet from the service server by using the second port on the switch, where the obtaining the first analysis packet may include:
  • the service server does not identify the analysis packet
  • the first analysis packet sent from the first port and not looped back from the second port by the service server is obtained.
  • the service server when the service server cannot identify the analysis packet, the analysis packet cannot be sent to the service server, so that the service server discards the analysis packet, and the subsequent information collection cannot be performed. switch.
  • the method further includes:
  • the information to be collected is written into the first analysis packet.
  • the embodiment of the present invention provides in a seventh optional embodiment of the method for link analysis, the information to be collected and the information to be collected in the first analysis packet may include:
  • the part of the acquired information to be collected is written into the first analysis packet, and And deleting the message sorting identifier used to represent the last packet in the first analysis packet to obtain a filled analysis packet;
  • the method further includes:
  • the first analysis packet when the data filling space of the first analysis packet is smaller than the space required for the information to be collected, the first analysis packet is filled, and the first analysis packet after the filling is used.
  • the message sorting identifier of the last packet is cleared, and a new analysis packet is generated, and then the information to be collected is continuously written to the new analysis packet. If the filling space of the new analysis packet is still insufficient to accommodate After the information is collected, a new analysis message is continuously generated.
  • the message sorting identifier used to represent the last message is set in the new analysis message. All the filled analysis messages are sent to the analysis device. In this way, it is not necessary to set a large analysis message, and the number of analysis messages can be increased according to requirements, and the speed of analyzing the message transmission is also improved.
  • the first analysis report in the foregoing, And the collection cutoff identifier is used to indicate that the analysis packet is output to the analysis device at the output point indicated by the collection cutoff identifier, and the next hop network is determined according to the identifier of the service link.
  • the second analysis packet is sent, which may include:
  • next hop network device when the next hop network device is not the analysis device, the next hop network device sends a second analysis packet according to the identifier of the service link, where the next hop network device is Next hop switch or next hop service server;
  • the second analysis message is sent to the analysis device. If the next hop network device is not the analysis device, the second analysis packet is sent to the next hop switch or the next hop service server according to the forwarding rule of the service link.
  • the next hop switch or the next hop service server is the switch or service server that the packet will arrive next according to the forwarding rule of the service link.
  • FIG. 6 The corresponding embodiment or any optional embodiment of FIG. 6 can be understood by referring to the parts of the switch in the embodiment corresponding to FIG. 1 to FIG. 5, and details are not described herein.
  • another embodiment of a method for link analysis provided by an embodiment of the present invention includes:
  • the analyzing device of the service link receives the analysis packet sent by the switch, where the analysis packet includes the identifier of the service link, the collected information of the service link, and the analysis packet type identifier, and the analysis packet
  • the text type identifier is used to indicate that the analysis message is used for link analysis.
  • the analysis packet type identifier and the link analysis identifier may be the same identifier.
  • the analyzing device determines, according to the analysis packet type identifier, that the analysis packet is used for link analysis.
  • the analyzing device of the service link receives the analysis packet sent by the switch, where the analysis packet includes the identifier of the service link, the collected information of the service link, and the identifier of the analysis packet type.
  • the analysis packet type identifier is used to indicate that the analysis packet is used for link analysis; and the identifier of the service link is analyzed according to the analysis packet type identifier and the collected information of the service link.
  • the service link Compared with the prior art, it can only be based on physical links, and can only be manually checked. View the entries of the switch in the physical link to obtain information on the service link.
  • the link analysis method provided by the embodiment of the present invention can collect the service through the analysis packet forwarded in the service link. The information in the link and the analysis of the collected information by the analysis device automatically improve the efficiency of the service link analysis.
  • the analysis packet further includes an identifier of the packet sorting
  • the method may further include:
  • the analyzing device can determine whether all the analysis packets of the service link are received by using the packet sorting identifier, thereby analyzing all the analyzed packets, thereby improving the accuracy of the analysis.
  • the method may further include:
  • the analysis configuration includes an identifier of the information to be collected, an identifier of the service link, a link analysis identifier, and format information of the analysis packet, where the link analysis identifier is used.
  • the information indicating the to-be-collected information indicated by the identifier of the to-be-collected information is collected by the switch in the service link;
  • the link analysis message carries the analysis configuration, where format information of the analysis message is used by the first switch generation a first analysis message in a format indicated by the format information, where the identifier of the information to be collected is used to indicate that the switch in the service link collects the to-be-collected information, the identifier of the service link, and the collection deadline
  • the identifier is used to indicate that the switch in the service link sends the second analysis packet to the next hop network device, where the second analysis packet includes the collected information, and the collected information is included in the obtained information.
  • the collected information is described, and the collected information is used by the analyzing device to analyze the service link.
  • the analysis device when the analysis device and the network management device are the same device, the analysis device sends a link analysis message to the first switch in the service link.
  • FIG. 7 The corresponding embodiment or any optional embodiment of FIG. 7 can be understood by referring to the part of the analysis device in the embodiment corresponding to FIG. 1 to FIG. 5, and no further description is made herein.
  • FIG. 8 another embodiment of a method for link analysis provided by an embodiment of the present invention includes:
  • the network management device for triggering the analysis of the service link acquires an analysis configuration of the service link, where the analysis configuration includes an identifier of the to-be-collected information, an identifier of the service link, a link analysis identifier, and an analysis packet.
  • the format information is used to indicate that the switch in the service link collects information to be collected indicated by the identifier of the information to be collected.
  • the network management device sends a link analysis message to the first switch in the service link, where the link analysis message carries the analysis configuration, where format information of the analysis message is used for the
  • the first switch generates a first analysis packet in the format indicated by the format information, where the identifier of the to-be-collected information is used to indicate that the switch in the service link collects the to-be-collected information, where the service link is
  • the identifier and the collection cutoff identifier are used to indicate that the switch in the service link sends a second analysis packet to the next hop network device, where the second analysis packet includes collected information, and the collected information is included in The acquired information to be collected, the collected information is used by the analysis device to analyze the service link.
  • the network management device for triggering the analysis of the service link acquires the analysis configuration of the service link, where the analysis configuration includes an identifier of the information to be collected, an identifier of the service link, and a link analysis identifier. And analyzing the format information of the packet, where the link analysis identifier is used to indicate that the switch in the service link collects the to-be-collected information indicated by the identifier of the to-be-collected information; A switch sends a link analysis message, where the link analysis message carries the analysis configuration, where format information of the analysis message is used by the first switch to generate a format indicated by the format information.
  • An identifier of the information to be collected is used to indicate that the switch in the service link collects the information to be collected, and the identifier of the service link and the collection cutoff identifier are used to indicate the service link.
  • the switch in the next hop sends a second analysis packet to the next hop network device, where the second analysis packet includes the collected information, and the collected information is included in the acquired information to be received.
  • Information the The collected information is used by the analysis device to analyze the service link.
  • only the physical link can be used, and the information in the service link can be obtained only by manually checking various entries of the switch in the physical link.
  • the link analysis method provided by the embodiment of the present invention can trigger the analysis packet forwarded by the switch through the service link.
  • the information in the service link is collected, and the collected information is automatically analyzed by the analysis device, thereby improving the efficiency of the service link analysis.
  • FIG. 8 The corresponding embodiment of FIG. 8 can be understood by referring to the part of the network management device in the embodiment corresponding to FIG. 1 to FIG. 5, and no further description is made herein.
  • another embodiment of a method for link analysis provided by an embodiment of the present invention includes:
  • the service server in the service link receives the first analysis packet sent by the switch that communicates with the service server in the service link, where the first analysis packet includes an identifier of the to-be-collected information and a link analysis identifier.
  • the link analysis identifier is used to instruct the service server to collect information to be collected indicated by the identifier of the information to be collected.
  • the service server obtains the to-be-collected information from the recorded information according to the identifier of the to-be-collected information.
  • the service server sends a second analysis packet to the switch, where the second analysis packet includes the collected information, the collected information is included in the acquired information to be collected, and the collected information is An analysis device is used to analyze the service link.
  • the service server in the service link receives the first analysis packet sent by the switch that communicates with the service server in the service link, where the first analysis packet includes the identifier of the information to be collected and a link analysis identifier, where the link analysis identifier is used to indicate that the service server collects the information to be collected indicated by the identifier of the information to be collected; and obtains the information from the recorded information according to the identifier of the information to be collected. And sending the second analysis message to the switch, where the second analysis message includes the collected information, the collected information is included in the acquired information to be collected, and the collected information is analyzed.
  • the device is used to analyze the service link.
  • the link analysis method provided by the embodiment of the present invention can be performed in the service chain.
  • the analysis packets forwarded in the path collect information in the service link, and the analysis device automatically analyzes the collected information, thereby improving the efficiency of the service link analysis.
  • the identifier according to the information to be collected is After the information to be collected is obtained in the recorded information, the method may further include:
  • the first analysis is performed on the basis of the foregoing optional embodiment corresponding to FIG.
  • the information to be collected obtained by the message may be included in the message:
  • the part of the acquired information to be collected is written into the first analysis packet, and And deleting the message sorting identifier used to represent the last packet in the first analysis packet to obtain a filled analysis packet;
  • the sending the second analysis packet to the switch may include:
  • the method further includes:
  • the service server can identify the analysis packet and collect the information to be collected.
  • the specific information acquisition and writing process can be understood by referring to the information acquisition and writing process of the switch.
  • an embodiment of a switch in a service link includes:
  • the first obtaining module 501 is configured to obtain a first analysis packet, where the first analysis packet includes a to-be-received The identifier of the information, the identifier of the service link, and the link analysis identifier, where the link analysis identifier is used to instruct the switch to collect the information to be collected indicated by the identifier of the to-be-collected information;
  • the second obtaining module 502 is configured to obtain the to-be-collected information from the recorded information according to the identifier of the to-be-collected information acquired by the first acquiring module 501;
  • the sending module 503 is configured to send, according to the identifier of the service link, a second analysis packet to the next hop network device, where the second analysis packet includes the collected information, where the collected information is included in the
  • the information to be collected obtained by the acquiring module 502 is used by the analyzing device to analyze the service link.
  • the first obtaining module 501 obtains the first analysis packet, where the first analysis packet includes an identifier of the information to be collected, an identifier of the service link, and a link analysis identifier, and the link analysis is performed.
  • the second obtaining module 502 according to the identifier of the to-be-collected information acquired by the first acquiring module 501, from the recorded information Obtaining the to-be-collected information; the sending module 503, according to the identifier of the service link, sending a second analysis packet to the next hop network device, where the second analysis packet includes the collected information, and the collected information
  • the information to be collected acquired by the second obtaining module 502 is collected by the analyzing device for analyzing the service link.
  • only the physical link can be used, and the information in the service link can be obtained only by manually checking various entries of the switch in the physical link.
  • the switch provided by the embodiment of the present invention can collect the service packet in the service link through the analysis packet forwarded in the service link. Information, and the analysis of the collected information by the analysis device automatically improves the efficiency of business link analysis.
  • the first obtaining module 501 is specifically configured to receive a link analysis message sent by the network management device, where the link analysis message carries an identifier of the to-be-collected information, an identifier of the service link, a link analysis identifier, and an analysis packet.
  • the format information includes: a first analysis packet that is in the format indicated by the format information, where the first analysis packet includes the identifier of the to-be-collected information, and the service link. The identity and the link analysis identifier.
  • the first obtaining module 501 is configured to receive a first analysis packet sent by the previous switch, where the previous switch is a switch that outputs the first analysis packet in the service link.
  • the first obtaining module 501 is specifically configured to receive the first analysis packet returned by the service server.
  • the first obtaining module 501 is specifically configured to: the service link further includes a service server, and when a loop communication with the service server fails, the obtaining is sent from the first port, and the service server is not The first analysis packet of the second port is looped back, wherein the switch sends a packet to the service server by using a first port on the switch, and the service is performed by using a second port on the switch.
  • the server receives the message;
  • the sending module 503 is further configured to send the first analysis packet to the analyzing device.
  • the first obtaining module 501 is specifically configured to: the service link further includes a service server, and when the service server does not identify the analysis packet, the obtaining is sent from the first port, and the service server is not used by the service server.
  • the first analysis packet of the second port loopback, wherein the switch sends a packet to the service server by using a first port on the switch, and the service server is sent through the second port on the switch. Receive a message.
  • the switch further includes a processing module 504, on the basis of the foregoing embodiment or any optional embodiment of FIG.
  • the processing module 504 is configured to write the to-be-collected information acquired by the first acquiring module 501 into the first analysis packet.
  • the processing module includes a first processing submodule 5041 and a second processing submodule 5042.
  • the first processing sub-module 5041 is configured to write the acquired information to the first analysis packet when the data filling space of the first analysis packet is smaller than the space required for the acquired information to be collected. And a part of the information to be collected, and the message sorting identifier used to represent the last packet in the first analysis packet is cleared to obtain a filled analysis packet;
  • the second processing sub-module 5042 is configured to generate a new analysis packet according to the first analysis packet, where the data filling space of the new analysis packet is greater than that processed by the first processing sub-module 5041 When the space required for the information other than the part of the information is later, the obtained information other than the part of the information to be collected is written into the new analysis message, and Adding a message sorting identifier for identifying the last packet to the new analysis packet, and obtaining a second analysis packet;
  • the sending module 503 is specifically configured to send the second analysis packet to the next hop network device according to the identifier of the service link, and is further configured to send the first processing submodule to the analyzing device.
  • the filled analysis message obtained after processing.
  • the sending module 503 is specifically configured to: when the first analysis packet further includes a collection cutoff identifier, send, according to the collection cutoff identifier, the next hop network device to the analysis device, and send the next hop network device to the analysis device a second analysis packet, where the collection cutoff identifier is used to indicate that an analysis packet is output to the analysis device at the output point indicated by the collection cutoff identifier; and according to the collect cutoff identifier, confirm that the next hop network device is not
  • the second analytics packet is sent to the next hop network device according to the identifier of the service link, where the next hop network device is a next hop switch or a next hop service server; And determining, by the identifier of the link, the collection cutoff identifier, when the switch is the last network device in the service link, sending a second analysis packet to the analysis device.
  • FIG. 10 and FIG. 12 and its optional embodiments can be understood by referring to FIG. 1 to FIG. 5 and the description of the switch parts of the multiple embodiments corresponding to FIG. 6, and no further description is made herein.
  • an analysis device 60 for analyzing a service link includes:
  • the receiving module 601 is configured to receive the analysis packet sent by the switch, where the analysis packet includes the identifier of the service link, the collected information of the service link, and the analysis packet type identifier, and the analysis packet type
  • the identifier is used to indicate that the analysis message is used for link analysis
  • the analyzing module 602 is configured to analyze, according to the analysis packet type identifier and the collected information of the service link in the analysis packet received by the receiving module 601, an indication of the identifier of the service link. Said business link.
  • the receiving module 601 receives the analysis packet sent by the switch, where the analysis packet includes the identifier of the service link, the collected information of the service link, and the analysis packet type identifier, and the analysis is performed.
  • the packet type identifier is used to indicate that the analysis packet is used for link analysis
  • the analysis module 602 is configured to use the analysis packet type identifier and the service link in the analysis packet received by the receiving module 601.
  • Information has been collected to analyze the service link indicated by the identity of the service link. In the prior art, only the physical link can be used, and the information in the service link can be obtained only by manually checking various entries of the switch in the physical link. The information of the obtained link is analyzed by the manual, and the analysis of the link is inefficient.
  • the embodiment of the present invention can collect the information in the service link by using the analysis packet forwarded in the service link, and The analysis device provided by the embodiment of the invention automatically analyzes the collected information, thereby improving the efficiency of the service link analysis.
  • the analyzing device 60 further includes:
  • the first obtaining module 603 is configured to: when the analysis packet received by the receiving module 601 further includes an identifier of the packet sorting, obtain, according to the identifier of the service link, each analysis packet of the service link;
  • the determining module 604 is configured to: when the packet sorting identifier used to represent the last packet is obtained in each of the analysis packets obtained by the first acquiring module 603, determine that the service link is received All analysis messages;
  • the extraction module 605 is configured to extract the collected information of the service link from the all analysis packets determined by the determining module 604.
  • the analysis device can determine whether all the analysis packets of the service link are received by using the packet sorting identifier, thereby analyzing and analyzing all the analyzed packets, thereby improving The accuracy of the analysis.
  • the analyzing device 60 further includes:
  • the second obtaining module 606 is configured to obtain an analysis configuration of the service link, where the analysis configuration includes an identifier of the information to be collected, an identifier of the service link, a link analysis identifier, and format information of the analysis packet, where The link analysis identifier is used to indicate that the switch in the service link collects the to-be-collected information indicated by the identifier of the to-be-collected information;
  • the sending module 607 is configured to send a link analysis message to the first switch in the service link, where the link analysis message carries the analysis configuration acquired by the second obtaining module 606, where the analysis
  • the format information of the packet is used by the first switch to generate a first analysis packet in the format indicated by the format information, where the identifier of the information to be collected is used to indicate that the switch in the service link collects the to-be-collected Collecting information, the identifier of the service link and the collection cutoff identifier are used to indicate that the switch in the service link sends a second analysis packet to the next hop network device, where the second analysis packet includes the collected
  • the collected information is included in the acquired information to be collected, and the collected information is used by the analyzing device to analyze the service link.
  • FIG. 13 and FIG. 15 and their alternative embodiments can be understood by referring to FIG. 1 to FIG. 5 and the description of the analysis device parts of the plurality of embodiments corresponding to FIG. 7 , and no further description is made herein.
  • an embodiment of a network management device 70 for triggering an analysis service link includes:
  • the obtaining module 701 is configured to obtain an analysis configuration of the service link, where the analysis configuration includes an identifier of the information to be collected, an identifier of the service link, a link analysis identifier, and format information of the analysis packet, where The link analysis identifier is used to indicate that the switch in the service link collects the to-be-collected information indicated by the identifier of the to-be-collected information;
  • the sending module 702 is configured to send a link analysis message to the first switch in the service link, where the link analysis message carries the analysis configuration acquired by the obtaining module 701, where the analysis message is
  • the format information is used by the first switch to generate a first analysis packet in the format indicated by the format information, where the identifier of the to-be-collected information is used to indicate that the switch in the service link collects the to-be-collected information.
  • the identifier of the service link and the collection cutoff identifier are used to indicate the service chain
  • the switch in the path sends a second analysis packet to the next hop network device, where the second analysis packet includes the collected information, and the collected information is included in the acquired information to be collected, and the collected information is An analysis device is used to analyze the service link.
  • the embodiment of the present invention provides the network management device, which can trigger the switch to collect the service link by using the analysis packet forwarded in the service link. The information in the analysis, and the analysis of the collected information by the analysis device, thereby improving the efficiency of business link analysis.
  • an embodiment of a service server in a service link includes:
  • the receiving module 801 is configured to receive a first analysis packet that is sent by the switch that communicates with the service server in the service link, where the first analysis packet includes an identifier of the information to be collected and a link analysis identifier, where The link analysis identifier is used to instruct the service server to collect the information to be collected indicated by the identifier of the information to be collected;
  • the obtaining module 802 is configured to obtain the to-be-collected information from the recorded information according to the identifier of the to-be-collected information included in the first analysis packet received by the receiving module 801;
  • the sending module 803 is configured to send the second analysis packet to the switch, where the second analysis packet includes the collected information, where the collected information is included in the information to be collected acquired by the acquiring module 802.
  • the collected information is used by the analysis device to analyze the service link.
  • the service server provided by the embodiment of the present invention can collect the service packet in the service link through the analysis packet forwarded in the service link. The information is analyzed automatically by the analysis device, which improves the efficiency of business link analysis.
  • the service server 80 further includes:
  • the processing module 804 is configured to write the to-be-collected information acquired by the obtaining module 802 into the first analysis packet.
  • the processing module 804 includes a first processing submodule 8041 and a second processing submodule 8042,
  • the first processing sub-module 8041 is configured to write the acquired information to the first analysis packet when the data filling space of the first analysis packet is smaller than the space required for the acquired information to be collected. And a part of the information to be collected, and the message sorting identifier used to represent the last packet in the first analysis packet is cleared to obtain a filled analysis packet;
  • the second processing sub-module 8042 is configured to generate a new analysis packet according to the first analysis packet, where the data filling space of the new analysis packet is larger than that processed by the first processing sub-module 8041 When the space required for the information other than the part of the information is later, the obtained information other than the part of the information to be collected is written into the new analysis message, and Adding a message sorting identifier for identifying the last packet to the new analysis packet, and obtaining a second analysis packet;
  • the sending module 803 is specifically configured to send the second analysis packet to the switch, and is further configured to send the filled analysis packet to the switch, where the filled second analysis packet is The switch is sent to the analysis device.
  • the service server can identify the analysis packet and collect the information to be collected.
  • the specific information acquisition and writing process can be understood by referring to the information acquisition and writing process of the switch.
  • the receiving module and the sending module may be input/output I/O devices (such as a network card).
  • the processing module, the determining module, the extracting module, and the analyzing module may be implemented by a processor executing a program or an instruction in a memory (in other words, by a processor and a special instruction in a memory coupled to the processor)
  • the receiving module and the sending module may be implemented by an input/output I/O device (such as a network card), and the processing module, the determining module, the extracting module, and the analyzing module may also respectively pass the special The circuit is implemented.
  • the receiving module and the sending module may be implemented by an input/output I/O device (such as a network card), and the processing module , determine module, extract
  • the module and the analysis module can also be implemented by a Field-Programmable Gate Array (FPGA).
  • FPGA Field-Programmable Gate Array
  • the hardware structure of a switch, an analysis device, a network management device, and a service server is provided in this embodiment.
  • the hardware structure of a switch, an analysis device, a network management device, or a service server may include:
  • Transceiver device software device and hardware device
  • the transceiver device is a hardware circuit for completing packet transmission and reception
  • Hardware devices can also be called “hardware processing modules", or simpler, or simply “hardware”. Hardware devices mainly include dedicated hardware circuits based on FPGAs, ASICs (and other supporting devices, such as memory). The hardware circuits of certain functions are often processed much faster than general-purpose processors, but once the functions are customized, they are difficult to change. Therefore, they are not flexible to implement and are usually used to handle some fixed functions. It should be noted that the hardware device may also include an MCU (microprocessor, such as a single chip microcomputer) or a processor such as a CPU in practical applications, but the main function of these processors is not to complete the processing of big data, but mainly used for processing. Some control is performed. In this application scenario, the system that is paired with these devices is a hardware device.
  • MCU microprocessor, such as a single chip microcomputer
  • Software devices mainly include general-purpose processors (such as CPU) and some supporting devices (such as memory, hard disk and other storage devices), which can be programmed to let the processor have the corresponding processing functions.
  • general-purpose processors such as CPU
  • some supporting devices such as memory, hard disk and other storage devices
  • the processed data can be sent through the transceiver device through the hardware device, or the processed data can be sent to the transceiver device through an interface connected to the transceiver device.
  • the transceiver device is configured to perform the receiving and sending of the message in the foregoing embodiment
  • the software device or the hardware device is configured to obtain the information to be collected, write the information to be collected into the message, and extract the analysis information and analyze the service chain. Road and so on.
  • the receiving module and the sending module may be implemented by an input/output I/O device (such as a network card), and the switch, the analyzing device, the network management device, and the service server may be programs or instructions that can be executed by the processor in the memory.
  • I/O device such as a network card
  • the switch, the analyzing device, the network management device, and the service server may be programs or instructions that can be executed by the processor in the memory.
  • FIG. 21 is a schematic structural diagram of a switch 50 according to an embodiment of the present invention.
  • the switch 50 includes a processor 510, a memory 550, and an input/output I/O device 530, which may include read only memory and random access memory, and provides operational instructions and data to the processor 510.
  • a portion of the memory 550 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the memory 550 stores elements, executable modules or data structures, or a subset thereof, or their extension set:
  • the operation instruction can be stored in the operating system
  • the first analysis packet includes an identifier of the to-be-collected information, an identifier of the service link, and a link analysis identifier, where the link analysis identifier is used to instruct the switch to collect the to-be-collected Collecting information to be collected indicated by the identifier of the information;
  • a second analysis packet Sending, according to the identifier of the service link, a second analysis packet, where the second analysis packet includes the collected information, and the collected information is included in the acquired information to be collected.
  • the collected information is used by the analysis device to analyze the service link.
  • the switch provided by the embodiment of the present invention can collect the service packet in the service link through the analysis packet forwarded in the service link. Information, and the analysis of the collected information by the analysis device automatically improves the efficiency of business link analysis.
  • the processor 510 controls the operation of the switch 50, which may also be referred to as a CPU (Central Processing Unit).
  • Memory 550 can include read only memory and random access memory and provides instructions and data to processor 510. A portion of the memory 550 may also include non-volatile random access memory (NVRAM).
  • the individual components of switch 50 are coupled together by bus system 520 in a particular application, wherein bus system 520 can include power in addition to the data bus. Source bus, control bus, and status signal bus. However, for clarity of description, various buses are labeled as bus system 520 in the figure.
  • Processor 510 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 510 or an instruction in a form of software.
  • the processor 510 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 550, and the processor 510 reads the information in the memory 550 and performs the steps of the above method in combination with its hardware.
  • the I/O device 530 is configured to receive a link analysis message sent by the network management device, where the link analysis message carries an identifier of the information to be collected, an identifier of the service link, a link analysis identifier, and an analysis packet. Format information;
  • the switch when the switch is the first switch on the link, the first analysis packet is generated according to the link analysis message sent by the network management device. This enables automated collection of information to be collected, thereby increasing the efficiency of collection of information to be collected.
  • the I/O device 530 is configured to receive a first analysis packet sent by the previous switch, where the previous switch is a switch that outputs the first analysis packet in the service link.
  • the switch when the switch is not the first switch on the link, the first analysis packet sent by the previous switch is received, and then the information to be collected related thereto is collected, and the implementation is implemented. Automated collection of information to be collected, thereby increasing the efficiency of collection of information to be collected.
  • the I/O device 530 is configured to receive the first analysis packet returned by the service server.
  • the I/O device 530 is configured to: the service link further includes a service server, and when a loop communication with the service server fails, the acquiring is sent from the first port, and the service server is not The first analysis packet of the second port is looped back, wherein the switch sends a packet to the service server by using a first port on the switch, and the service is performed by using a second port on the switch.
  • the server receives the message and sends the first analysis message to the analysis device.
  • the I/O device 530 is configured to include the service server, and when the service server does not identify the analysis packet, the acquiring is sent from the first port, and the service server is not used by the service server.
  • the first analysis packet of the second port loopback, wherein the switch sends a packet to the service server by using a first port on the switch, and the service server is sent through the second port on the switch. Receive a message.
  • the processor 510 is further configured to write the acquired information to be collected into the first analysis packet.
  • the processor 510 is specifically configured to:
  • the part of the acquired information to be collected is written into the first analysis packet, and And deleting the message sorting identifier used to represent the last packet in the first analysis packet to obtain a filled analysis packet;
  • the I/O device 530 is configured to send the second analysis packet to the next hop network device according to the identifier of the service link, and send the filled analysis packet to the analysis device.
  • I/O device 530 is used to:
  • the first analysis message further includes a collection deadline identifier
  • the second analysis packet is sent to the analysis device, where the collection cutoff identifier is used to indicate that the output point indicated by the collection cutoff identifier is output to the analysis device.
  • next hop network device when the next hop network device is not the analysis device, sending a second analysis packet to the next hop network device according to the identifier of the service link, where the next The hop network device is a next hop switch or a next hop service server; and when the switch is confirmed as the last network device in the service link according to the identifier of the service link or the collection cutoff identifier, The analyzing device sends the second analysis message.
  • FIG. 22 is a schematic structural diagram of an analysis device 60 according to an embodiment of the present invention.
  • the analysis device 60 includes a processor 610, a memory 650, and an input/output I/O device 630, which may include read only memory and random access memory, and provides operational instructions and data to the processor 610.
  • a portion of the memory 650 can also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the memory 650 stores the following elements, executable modules or data structures, or a subset thereof, or their extended set:
  • the operation instruction can be stored in the operating system
  • the analysis packet sent by the switch, where the analysis packet includes the identifier of the service link, the collected information of the service link, and the analysis packet type identifier, and the analysis packet type
  • the identifier is used to indicate that the analysis message is used for link analysis
  • the analysis device provided by the embodiment of the present invention can automatically analyze the collected information, thereby improving the analysis of the service link. s efficiency.
  • the processor 610 controls the operation of the analysis device 60, which may also be referred to as a CPU (Central). Processing Unit, central processing unit).
  • Memory 650 can include read only memory and random access memory and provides instructions and data to processor 610. A portion of the memory 650 can also include non-volatile random access memory (NVRAM).
  • the specific components of the analysis device 60 are coupled together by a bus system 620 in a specific application.
  • the bus system 620 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 620 in the figure.
  • Processor 610 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 610 or an instruction in a form of software.
  • the processor 610 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 650, and the processor 610 reads the information in the memory 650 and performs the steps of the above method in combination with its hardware.
  • the processor 610 is further configured to: when the analysis packet further includes an identifier of the message sequence, obtain, according to the identifier of the service link, each analysis packet of the service link; Determining, when obtaining the packet sorting identifier of the last packet, in each of the analysis packets, determining that all the analysis packets of the service link are received; extracting the service from the all analysis packets The collected information of the link.
  • the analyzing device can determine whether all the analysis packets of the service link are received by using the packet sorting identifier, thereby analyzing all the analyzed packets, thereby improving the accuracy of the analysis.
  • processor 610 is further configured to:
  • the analysis configuration includes an identifier of the information to be collected, an identifier of the service link, a link analysis identifier, and format information of the analysis packet, where the link analysis identifier is used.
  • the information indicating the to-be-collected information indicated by the identifier of the to-be-collected information is collected by the switch in the service link;
  • the first switch sends, by the I/O device 630, a link analysis message to the first switch in the service link, where the link analysis message carries the analysis configuration, wherein format information of the analysis message is used for the
  • the first switch generates a first analysis packet in the format indicated by the format information, where the identifier of the to-be-collected information is used to indicate that the switch in the service link collects the to-be-collected information, where the service link is
  • the identifier and the collection cutoff identifier are used to indicate that the switch in the service link sends a second analysis packet to the next hop network device, where the second analysis packet includes collected information, and the collected information is included in The acquired information to be collected, the collected information is used by the analysis device to analyze the service link.
  • FIG. 22 The corresponding embodiment of FIG. 22 and its optional embodiments can be understood by referring to the description of the analysis device in FIG. 1 to FIG. 5, FIG. 7 and FIG. 13 to FIG. 15 , and no further description is made herein.
  • FIG. 23 is a schematic structural diagram of a network management device 70 according to an embodiment of the present invention.
  • the network management device 70 includes a processor 710, a memory 750, and an input/output I/O device 730.
  • the memory 750 can include read only memory and random access memory, and provides operational instructions and data to the processor 710.
  • a portion of the memory 750 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the memory 750 stores elements, executable modules or data structures, or a subset thereof, or their extension set:
  • the operation instruction can be stored in the operating system
  • the analysis configuration includes an identifier of the information to be collected, an identifier of the service link, a link analysis identifier, and format information of the analysis packet, where the link analysis identifier is used.
  • the information indicating the to-be-collected information indicated by the identifier of the to-be-collected information is collected by the switch in the service link;
  • the first switch sends, by the I/O device 630, a link analysis message to the first switch in the service link, where the link analysis message carries the analysis configuration, wherein format information of the analysis message is used for the
  • the first switch generates a first analysis packet in the format indicated by the format information, where the identifier of the to-be-collected information is used to indicate that the switch in the service link collects the to-be-collected information, where the service link is
  • the identifier and the collection cutoff identifier are used to indicate that the switch in the service link sends a second analysis packet to the next hop network device, where the second analysis packet includes collected information, and the collected information is included in The acquired information to be collected, the collected information is used by the analysis device to analyze the service link.
  • the network management device provided by the embodiment of the present invention can trigger the switch to collect the information to be collected on the service link, so that the analysis device can be configured by analyzing the information of the obtained link. Automated analysis of the collected information improves the efficiency of business link analysis.
  • the processor 710 controls the operation of the network management device 70, and the processor 710 may also be referred to as a CPU (Central Processing Unit).
  • Memory 750 can include read only memory and random access memory and provides instructions and data to processor 710. A portion of the memory 750 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the components of the network management device 70 are coupled together by a bus system 720.
  • the bus system 720 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 720 in the figure.
  • Processor 710 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 710 or an instruction in a form of software.
  • the processor 710 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • Software modules can be located in random access memory, flash memory, read-only storage , programmable read-only memory or electrically erasable programmable memory, registers, etc., are well-known storage media in the field.
  • the storage medium is located in the memory 750, and the processor 710 reads the information in the memory 750 and completes the steps of the above method in combination with its hardware.
  • FIG. 23 The corresponding embodiment of FIG. 23 and its optional embodiments can be understood by referring to the description of the network management device in FIG. 1 to FIG. 5, FIG. 8 and FIG.
  • FIG. 24 is a schematic structural diagram of a service server 80 according to an embodiment of the present invention.
  • the service server 80 includes a processor 810, a memory 850, and an input/output I/O device 830, which may include read only memory and random access memory, and provides operational instructions and data to the processor 810.
  • a portion of memory 850 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • memory 850 stores the following elements, executable modules or data structures, or a subset thereof, or their extended set:
  • the operation instruction can be stored in the operating system
  • the switch And receiving, by the switch that is in communication with the service server, the first analysis packet, where the first analysis packet includes an identifier of the to-be-collected information and a link analysis identifier, where the link analysis identifier is used for Instructing the service server to collect information to be collected indicated by the identifier of the information to be collected;
  • the switch Sending a second analysis packet to the switch, where the second analysis packet includes collected information, the collected information is included in the acquired information to be collected, and the collected information is used by an analysis device for analyzing Said business link.
  • the service server provided by the embodiment of the present invention can also collect the information to be collected in the service link, and then the analysis device The collected information is automatically analyzed to improve the efficiency of business link analysis.
  • the processor 810 controls the operation of the service server 80, which may also be referred to as a CPU (Central). Processing Unit, central processing unit).
  • Memory 850 can include read only memory and random access memory and provides instructions and data to processor 810. A portion of memory 850 may also include non-volatile random access memory (NVRAM).
  • the specific components of the service server 80 are coupled together by a bus system 820 in a specific application.
  • the bus system 820 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 820 in the figure.
  • Processor 810 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 810 or an instruction in a form of software.
  • the processor 810 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 850, and the processor 810 reads the information in the memory 850 and completes the steps of the above method in combination with its hardware.
  • the processor 810 is further configured to write the acquired information to be collected into the first analysis packet.
  • the processor 810 is specifically configured to:
  • the part of the acquired information to be collected is written into the first analysis packet, and And deleting the message sorting identifier used to represent the last packet in the first analysis packet to obtain a filled analysis packet;
  • the I/O device 830 sends the second analysis packet to the switch; and sends the filled analysis packet to the switch, where the filled second analysis packet is sent by the switch to the switch Analytical equipment.
  • FIG. 24 The corresponding embodiment of FIG. 24 and its optional embodiments can be understood by referring to the description of the analyzing device in FIG. 1 to FIG. 5, FIG. 9 and FIG. 16 to FIG. 18, and no further description is made herein.
  • an embodiment of a link analysis system includes: a switch 50, an analysis device 60, a network management device 70, and a service server 80.
  • the network management device 70 is configured to obtain an analysis configuration of the service link, where the analysis configuration includes an identifier of the information to be collected, an identifier of the service link, a link analysis identifier, and format information of the analysis packet, where the The link analysis identifier is used to indicate that the switch in the service link collects the to-be-collected information indicated by the identifier of the to-be-collected information;
  • the link analysis message carries the analysis configuration, where format information of the analysis message is used by the first switch generation a first analysis message in a format indicated by the format information, where the identifier of the information to be collected is used to indicate that the switch in the service link collects the to-be-collected information, the identifier of the service link, and the collection deadline
  • the identifier is used to indicate that the switch in the service link sends the second analysis packet to the next hop network device, where the second analysis packet includes the collected information, and the collected information is included in the acquired information to be collected.
  • the switch 50 is configured to: obtain the first analysis packet, where the first analysis packet includes an identifier of the information to be collected, an identifier of the service link, and a link analysis identifier, where the link analysis identifier is used to indicate the
  • the switch collects the to-be-collected information indicated by the identifier of the to-be-collected information; and obtains the to-be-collected information from the recorded information according to the identifier of the to-be-collected information;
  • the hopping network device sends a second analysis packet, where the second analysis packet includes the collected information, the collected information is included in the acquired information to be collected, and the collected information is used by the analysis device to analyze the Service link
  • the analyzing device 60 is configured to receive the analysis packet sent by the switch, where the analysis packet includes the identifier of the service link and the collected information of the service link; and analyzes according to the collected information of the service link.
  • the system for link analysis provided by the embodiment of the present invention is a solution in which the service server does not participate in information collection, and the network management server and the analysis device are separated.
  • system can also include a solution for the business server to participate in information collection.
  • an embodiment of a link analysis system provided by an embodiment of the present invention includes: a switch 50, an analysis device 60, and a service server 80.
  • the switch 50 is configured to: obtain the first analysis packet, where the first analysis packet includes an identifier of the information to be collected, an identifier of the service link, and a link analysis identifier, where the link analysis identifier is used to indicate the
  • the switch collects the to-be-collected information indicated by the identifier of the to-be-collected information; and obtains the to-be-collected information from the recorded information according to the identifier of the to-be-collected information;
  • the hopping network device sends a second analysis packet, where the second analysis packet includes the collected information, the collected information is included in the acquired information to be collected, and the collected information is used by the analysis device to analyze the Service link
  • the analyzing device 60 is configured to receive the analysis packet sent by the switch, where the analysis packet includes the identifier of the service link and the collected information of the service link; and analyzes according to the collected information of the service link.
  • the service server 80 is configured to receive a first analysis packet that is sent by the switch that communicates with the service server in the service link, where the first analysis packet includes an identifier of the to-be-collected information and a link analysis identifier, where The link analysis identifier is used to instruct the service server to collect the information to be collected indicated by the identifier of the information to be collected; and obtain the information to be collected from the recorded information according to the identifier of the information to be collected; The switch sends a second analysis message, where the second analysis message includes the collected information, the collected information is included in the acquired information to be collected, and the collected information is used by the analysis device to analyze the service. link.
  • the system for link analysis provided by the embodiment of the present invention is a solution for the service server to participate in information collection, and the network management server and the analysis device are the same device.
  • the system for link analysis provided by the embodiment of the present invention can collect the service through the analysis packet forwarded in the service link.
  • the information in the link and the analysis of the collected information by the analysis device automatically improve the efficiency of the service link analysis.
  • input/output I/O devices in the embodiments of the present invention refer to input devices or output devices or input and output devices.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: ROM, RAM, disk or CD.

Landscapes

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

Abstract

本发明公开了一种链路分析的方法,包括交换机获取第一分析报文,所述第一分析报文包含待收集信息的标识、业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。本发明实施例提供的链路分析的方法,可以通过分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。

Description

一种链路分析的方法、设备及系统
本申请要求于2015年4月20日提交中国专利局、申请号为201510187499.6、发明名称为“一种链路分析的方法、设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,具体涉及一种链路分析的方法、设备及系统。
背景技术
目前随着网络功能虚拟化(Network Function Virtualization,NFV)技术和无线技术的发展,运营商都在规划和推进局域网(Local Area Network,LAN)业务链路的部署,以对不同的终端用户提供差异化服务。在移动、固定宽带和数据中心应用领域,存在着特定用户的特定应用业务流按顺序串接多个增值业务服务器的需求。比如:在移动或固定宽带应用中,对于上网业务流需要依次经过内容过滤、缓存和防火墙三个增值业务服务再进入Internet;对于视频业务流不需要经过内容过滤,只需要经过缓存和防火墙两个增值业务服务;而对于已加密的业务流,仅需经过防火墙增值业务服务即可。同样的,在数据中心应用中也存在着类似的业务链路场景应用需求,比如数据中心间的某些业务流需要依次经过防火墙、广域应用加速两个增值业务服务。
业务链路的部署方式可以有多种,可以按实际用户的需求对转发路径进行编排,以提供不同的增值服务。
业务链路在部署后,需要及时掌握业务链路的状态,当业务链路存在问题时,需要及时调整业务链路,这样,就需要获取业务链路上的信息,并根据获取的信息对业务链路进行分析。目前,业务链路及交换网络中链路的分析方法仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致业务链路的分析效率低下。
发明内容
本发明实施例提供一种链路分析的方法,可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。本发明实施例还提供了相应的设备及系统。
本发明第一方面提供一种链路分析的方法,所述方法应用于业务链路中的交换机,所述方法包括:
获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;
根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;
根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
结合第一方面,在第一种可能的实现方式中,所述获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,包括:
接收网管设备发送的链路分析消息,所述链路分析消息携带待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息;
根据所述分析报文的格式信息,生成由所述格式信息指示格式的第一分析报文,所述第一分析报文包括所述待收集信息的标识、所述业务链路的标识和所述链路分析标识。
结合第一方面,在第二种可能的实现方式中,所述获取第一分析报文,包括:
接收前一个交换机发送的第一分析报文,所述前一个交换机为所述业务链路中输出所述第一分析报文的交换机。
结合第一方面,在第三种可能的实现方式中,所述业务链路还包括业务服务器,所述获取第一分析报文,包括:
接收所述业务服务器返回的第一分析报文。
结合第一方面,在第四种可能的实现方式中,所述业务链路还包括业务服务器,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文,所述获取第一分析报文包括:
当与所述业务服务器通信的环路故障时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文;
所述方法还包括:
向所述分析设备发送所述第一分析报文。
结合第一方面,在第五种可能的实现方式中,所述业务链路还包括业务服务器,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文,所述获取第一分析报文包括:
当所述业务服务器不识别分析报文时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文。
结合第一方面、第一方面第一至第五种中任意一种可能的实现方式,在第六种可能的实现方式中,所述根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息之后,所述方法还包括:
向所述第一分析报文中写入获取的所述待收集信息。
结合第一方面第六种可能的实现方式,在第七种可能的实现方式中,所述向所述第一分析报文中写入获取的所述待收集信息,包括:
当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
所述根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,包括:
根据所述业务链路的标识,向下一跳网络设备发送所述第二分析报文;
所述方法还包括:
向所述分析设备发送所述填满的分析报文。
结合第一方面、第一方面第一至第七种中任意一种可能的实现方式,在第八种可能的实现方式中,所述第一分析报文还包含收集截止标识,所述收集截止标识用于指示在所述收集截止标识所指示的输出点向分析设备输出分析报文,所述根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,包括:
根据所述收集截止标识,确认下一跳网络设备为所述分析设备时,向所述分析设备发送第二分析报文;
根据所述收集截止标识,确认下一跳网络设备不是所述分析设备时,根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述下一跳网络设备为下一跳交换机或下一跳业务服务器;
根据所述业务链路的标识或者所述收集截止标识,确认所述交换机为所述业务链路中的最后一个网络设备时,向所述分析设备发送第二分析报文。
本发明第二方面提供一种链路分析的方法,所述方法应用于分析业务链路的分析设备,所述方法包括:
接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识、所述业务链路的已收集信息和分析报文类型标识,所述分析报文类型标识用于指示所述分析报文用于链路分析;
根据所述分析报文类型标识和所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。
结合第二方面,在第一种可能的实现方式中,所述分析报文还包括报文排序的标识,所述接收交换机发送的分析报文之后,所述方法还包括:
根据所述业务链路的标识,获取所述业务链路的每个分析报文;
当从所述每个分析报文中,获取到用于表征最后一个报文的报文排序标识时,确定接收到所述业务链路的全部分析报文;
从所述全部分析报文中提取所述业务链路的已收集信息。
结合第二方面或第二方面第一种可能的实现方式,在第二种可能的实现方 式中,所述接收所述交换机发送的分析报文之前,所述方法还包括:
获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
本发明第三方面提供一种链路分析的方法,所述方法应用于触发分析业务链路的网管设备,所述方法包括:
获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
本发明第四方面提供一种链路分析的方法,所述方法应用于业务链路中的业务服务器,所述方法包括:
接收所述业务链路中与所述业务服务器通信的交换机发送的第一分析报 文,所述第一分析报文包含待收集信息的标识和链路分析标识,所述链路分析标识用于指示所述业务服务器收集所述待收集信息的标识所指示的待收集信息;
根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;
向所述交换机发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
结合第四方面,在第一种可能的实现方式中,所述根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息之后,所述方法还包括:
向所述第一分析报文中写入获取的所述待收集信息。
结合第四方面第一种可能的实现方式,在第二种可能的实现方式中,所述向所述第一分析报文中写入获取的所述待收集信息,包括:
当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
所述向所述交换机发送第二分析报文,包括:
向所述交换机发送所述第二分析报文;
所述方法还包括:
向所述交换机发送所述填满的分析报文,所述填满的第二分析报文被所述交换机发送到所述分析设备。
本发明第五方面提供一种业务链路中的交换机,包括:
第一获取模块,用于获取第一分析报文,所述第一分析报文包含待收集信 息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;
第二获取模块,用于根据所述第一获取模块获取的所述待收集信息的标识,从已记录的信息中获取所述待收集信息;
发送模块,用于根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于所述第二获取模块获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
结合第五方面,在第一种可能的实现方式中,
所述第一获取模块,具体用于接收网管设备发送的链路分析消息,所述链路分析消息携带待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息;根据所述分析报文的格式信息,生成由所述格式信息指示格式的第一分析报文,所述第一分析报文包括所述待收集信息的标识、所述业务链路的标识和所述链路分析标识。
结合第五方面,在第二种可能的实现方式中,
所述第一获取模块,具体用于接收前一个交换机发送的第一分析报文,所述前一个交换机为所述业务链路中输出所述第一分析报文的交换机。
结合第五方面,在第三种可能的实现方式中,
所述第一获取模块,具体用于接收所述业务服务器返回的第一分析报文。
结合第五方面,在第四种可能的实现方式中,
所述第一获取模块,具体用于所述业务链路还包括业务服务器,当与所述业务服务器通信的环路故障时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文,其中,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文;
所述发送模块,还用于向所述分析设备发送所述第一分析报文。
结合第五方面,在第五种可能的实现方式中,
所述第一获取模块,具体用于所述业务链路还包括业务服务器,当所述业 务服务器不识别分析报文时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文,其中,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文。
结合第五方面、第五方面第一至第五种中任意一种可能的实现方式,在第六种可能的实现方式中,
所述交换机还包括处理模块,
所述处理模块,用于向所述第一分析报文中写入所述第一获取模块获取的所述待收集信息。
结合第五方面第六种可能的实现方式,在第七种可能的实现方式中,
所述处理模块包括第一处理子模块和第二处理子模块,
所述第一处理子模块,用于当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
所述第二处理子模块,用于根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述第一处理子模块处理后的所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
所述发送模块,具体用于根据所述业务链路的标识,向下一跳网络设备发送所述第二分析报文,并还用于向所述分析设备发送所述第一处理子模块处理后得到的所述填满的分析报文。
结合第五方面、第五方面第一至第七种中任意一种可能的实现方式,在第八种可能的实现方式中,
所述发送模块,具体用于当所述第一分析报文还包含收集截止标识时,根据所述收集截止标识,确认下一跳网络设备为所述分析设备时,向所述分析设备发送第二分析报文,其中,所述收集截止标识用于指示在所述收集截止标识 所指示的输出点向分析设备输出分析报文;根据所述收集截止标识,确认下一跳网络设备不是所述分析设备时,根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述下一跳网络设备为下一跳交换机或下一跳业务服务器;根据所述业务链路的标识或者所述收集截止标识,确认所述交换机为所述业务链路中的最后一个网络设备时,向所述分析设备发送第二分析报文。
本发明第六方面提供一种用于分析业务链路的分析设备,包括:
接收模块,用于接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识和所述业务链路的已收集信息和分析报文类型标识,所述分析报文类型标识用于指示所述分析报文用于链路分析;
分析模块,用于根据所述接收模块接收的所述分析报文中的所述分析报文类型标识和所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。
结合第六方面,在第一种可能的实现方式中,所述分析设备还包括:
第一获取模块,用于当所述接收模块接收的分析报文还包括报文排序的标识时,根据所述业务链路的标识,获取所述业务链路的每个分析报文;
确定模块,用于当从所述第一获取模块获取的所述每个分析报文中,获取到用于表征最后一个报文的报文排序标识时,确定接收到所述业务链路的全部分析报文;
提取模块,用于从所述确定模块确定的所述全部分析报文中提取所述业务链路的已收集信息。
结合第六方面或第六方面第一种可能的实现方式,在第二种可能的实现方式中,所述分析设备还包括:
第二获取模块,用于获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
发送模块,用于向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述第二获取模块获取的所述分析配置,其中,所述分析 报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
本发明第七方面提供一种用于触发分析业务链路的网管设备,包括:
获取模块,用于获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
发送模块,用于向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述获取模块获取的所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
本发明第八方面提供一种业务链路中的业务服务器,包括:
接收模块,用于接收所述业务链路中与所述业务服务器通信的交换机发送的第一分析报文,所述第一分析报文包含待收集信息的标识和链路分析标识,所述链路分析标识用于指示所述业务服务器收集所述待收集信息的标识所指示的待收集信息;
获取模块,用于根据所述接收模块接收的所述第一分析报文中包含的待收集信息的标识,从已记录的信息中获取所述待收集信息;
发送模块,用于向所述交换机发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于所述获取模块获取的所述待收集信息,所 述已收集信息被分析设备用于分析所述业务链路。
结合第八方面,在第一种可能的实现方式中,所述业务服务器还包括:
处理模块,用于向所述第一分析报文中写入所述获取模块获取的所述待收集信息。
结合第八方面,在第二种可能的实现方式中,所述处理模块包括第一处理子模块和第二处理子模块,
所述第一处理子模块,用于当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
所述第二处理子模块,用于根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述第一处理子模块处理后的所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
所述发送模块,具体用于向所述交换机发送所述第二分析报文,还用于向所述交换机发送所述填满的分析报文,所述填满的第二分析报文被所述交换机发送到所述分析设备。
本发明第九方面提供一种业务链路的链路分析的系统,包括:交换机、网管设备、分析设备和业务服务器,
所述交换机为第五方面任一所述的交换机;
所述网管设备为第七方面所述的网管设备;
所述分析设备为第六方面或第六方面第一种实现方式所述的分析设备。
本发明第十方面提供一种业务链路的链路分析的系统,包括:交换机、分析设备和业务服务器,
所述交换机为第五方面任一所述的交换机;
所述分析设备为第六方面第二种实现方式所述的分析设备;
所述业务服务器为第八方面任一所述的业务服务器。
本发明实施例采用获取第一分析报文,所述第一分析报文包含待收集信息的标识、业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的链路分析的方法,可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例中链路分析的方法的一实施例示意图;
图2是本发明实施例中链路分析的方法的另一实施例示意图;
图3A是本发明实施例中交换机的一实施例示意图;
图3B是本发明实施例中物理主机的一实施例示意图;
图4是本发明实施例中链路分析的方法的另一实施例示意图;
图5是本发明实施例中链路分析的方法的另一实施例示意图;
图6是本发明实施例中链路分析的方法的另一实施例示意图;
图7是本发明实施例中链路分析的方法的另一实施例示意图;
图8是本发明实施例中链路分析的方法的另一实施例示意图;
图9是本发明实施例中链路分析的方法的另一实施例示意图;
图10是本发明实施例中交换机的一实施例示意图;
图11是本发明实施例中交换机的另一实施例示意图;
图12是本发明实施例中交换机的另一实施例示意图;
图13是本发明实施例中分析设备的一实施例示意图;
图14是本发明实施例中分析设备的另一实施例示意图;
图15是本发明实施例中分析设备的另一实施例示意图;
图16是本发明实施例中网管设备的一实施例示意图;
图17是本发明实施例中业务服务器的一实施例示意图;
图18是本发明实施例中业务服务器的另一实施例示意图;
图19是本发明实施例中业务服务器的另一实施例示意图;
图20是本发明实施例中交换机、分析设备、网管设备、业务服务器的另一实施例示意图;
图21是本发明实施例中交换机的另一实施例示意图;
图22是本发明实施例中分析设备的另一实施例示意图;
图23是本发明实施例中网管设备的另一实施例示意图;
图24是本发明实施例中业务服务器的另一实施例示意图;
图25是本发明实施例中链路分析的系统的一实施例示意图;
图26是本发明实施例中链路分析的系统的另一实施例示意图。
具体实施方式
本发明实施例提供一种链路分析的方法,可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。本发明实施例还提供了相应的设备及系统。以下分别进行详细说明。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例中的业务链路是指数据链路或者物理链路,其中数据链路可以是逻辑链路、虚拟链路或者服务链路(Service Chain,SC)等等。业务链路中通常包括交换机和业务服务器。本发明实施例以服务链路为例进行说明。
可以理解的是,本发明实施例中的链路分析例如具体可以是对service chain链路上的交换机(或者是交换机与服务器)进行链路信息收集,以便掌握service chain的链路状态以及链路中的关键指标,以便用户对service chain进行业务部署优化,又可以具体是链路检测,例如可以是检测service chain是否可用,确保用户对service chain业务的快速部署,或者可以是收集service chain链路中的service chain switch的故障信息,以便快速定位问题等等,本发明实施例不做限定。本发明实施例中的业务链路中一些交换机和业务服务器都可以是独立的网络设备,该单独的网络设备专门用于转发业务链路中的报文或者专门为业务报文提供增值服务;另一方面,该业务链路中的某一些交换机或者业务服务器也可能只是从一个网络设备中划分出来的一块资源(如虚拟机),用于执行业务链路中交换机的功能或者业务服务器的功能。
参阅图1,本发明实施例提供的链路分析的方法的一实施例包括:
业务编排器(MANO),用于确定业务链路的转发规则,也就是确定报文在该业务链路中要经过的交换机、业务服务器以及经过的先后顺序。
控制器(Controller),用于业务链路中的交换机下发该业务链路的转发表项。
流分类器(Classifier),用于根据用户信息、资费套餐、用户访问目的等信息确定报文需要经过的业务链路。
交换机1和交换机2,分别用于转发该业务链路中的报文。
业务服务器A、业务服务器B、业务服务器C和业务服务器D分别为不同业务类型的增值服务器(Value added service,VAS),例如:可以分别为父母控制、视频优化、web优化、缓存等增值服务器。业务服务器用于为业务链路中的业务报文提供相应的增值服务。
假设该业务链路的标识指示的业务链路为交换机1-业务服务器A-交换机1-业务服务器B-交换机1-交换机2-业务服务器C-交换机2-业务服务器D-交换机2。
来自于用户终端的业务报文会通过流分类器进入交换机1,流分类器会为该业务报文设置业务链路的标识,交换机1会根据该业务链路的标识逐跳转发 该业务报文,直至交换机2,交换机2再逐跳转发该业务报文,直至互联网。
因业务链路可能会出现故障或者需要分析业务链路的服务质量,所以需要收集业务链路中的一些信息。本发明实施例中通过分析报文收集业务链路中的待收集信息,分析报文可以是操作维护(Operation Administration and Maintenance,OAM)报文。
本发明实施例中,网管设备用于触发业务链路的分析,也就是由用户或工作人员发起、程序定时或其他方式触发链路分析过程,例如:网管通过网管设备配置分析报文的格式信息、链路分析标识、业务链路的标识、待收集信息的标识等,然后触发网管设备向交换机1发送链路分析消息。
其中,分析报文的格式信息是指分析报文的头部、负荷部的信息等,链路分析标识是一个专用标识,可以设置在分析报文中的一个现有字段上,也可以是在分析报文中专门新增一个头部字段。业务链路的标识唯一指示一个业务链路。
分析设备用于在接收到交换机1和交换机2收集到待收集信息的标识所指示的待收集信息时,通过待收集信息分析该业务链路,做链路分析时可以是接收到一个分析报文就开始进行分析,也可以是将该业务链路的全部分析报文都接收到,提取出全部的待收集信息,再做分析,使用全部待收集信息进行分析可以提高分析准确度。分析设备确定接收到该业务链路的全部分析报文的过程可以是根据所述业务链路的标识,获取所述业务链路的每个分析报文;当从所述每个分析报文中,获取到用于表征最后一个报文的报文排序标识时,确定接收到所述业务链路的全部分析报文;从所述全部分析报文中提取所述业务链路的已收集信息。
实际上,网管设备和分析设备可以是一个设备,当然也可以是独立的两个设备。
链路分析的过程由网管设备触发,由分析设备结束。
本发明实施例中,交换机1为业务链路的起点(start),交换机1接收到网管设备发送的链路分析消息,所述链路分析消息携带待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息;根据所述分析报文的 格式信息,生成由所述格式信息指示格式的第一分析报文,所述第一分析报文包括所述待收集信息的标识、所述业务链路的标识和所述链路分析标识。
具体的,交换机与该交换机对应的业务服务器是通过端口进行通信的。在一种实现方式下,交换机与该交换机通信的一台业务服务器都有两个端口进行通信,将第一端口定义为交换机向业务服务器发送报文的端口,第二端口定义为交换机从业务服务器接收报文的端口。这些端口可以分别对应一个编号。交换机在收集待收集信息时,会在每个端口处都执行一次收集操作。当然,也可能存在交换机的某个端口被复用的情况,一个端口可能既用于接收,又用于发送,或者,一个端口可能既用于与业务交换机2通信,也可以用于与业务交换机B通信。
交换机1生成第一分析报文后,会根据待收集信息的标识,从已记录的信息中获取该待收集信息的标识所指示的待收集信息,并将收集到的待收集信息写入到第一分析报文中,得到第二分析报文。当然,交换机1可能只是收集了部分待收集信息。已记录的信息可以是交换机表项中存储的一些信息,如:交换机1的1号端口所发送业务报文的数量。
按照转发规则向业务服务器A发送该第二分析报文,如果业务服务器A可以识别该第二分析报文则向业务服务器A转发,如果业务服务器A不能识别该第二分析报文,可能会丢弃该第二分析报文,则交换机1可以从第一端口发出该第二分析报文,从第二端口接收该第二分析报文,第一端口是交换机1向业务服务器A发送报文的端口,第二端口是交换机1从业务服务器A接收报文的端口。
交换机1接收到第二分析报文后,会再收集第二端口处的相关待收集信息,然后将该待收集信息写入到第二分析报文,当然如果在向第二分析报文写入待收集信息的过程中,第二分析报文的数据填充空间被写满,则再生成一个第三分析报文,并再该第三分析报文中设置最后一个报文的标识,然后将填满的第二分析报文中用于表征最后一个报文的标识清除,并向分析设备发送该填满的第二分析报文。将剩余的待收集信息写入到第三分析报文,然后再向业务服务器B发送该第三分析报文,当然发送的过程可以与向业务服务器A发送第二分 析报文的过程相同。交换机1在每个端口处都会收集一次待收集信息,然后将待收集信息写入分析报文,当然,分析报文的数据填充空间的容量能够容纳这些待收集信息则不需要再生成新的报文,如果分析报文的数据填充空间的容量不能容纳这些待收集信息则需要再生成新的报文,而且,生成新的报文后,如果新的报文的数据填充空间还是不能容纳下剩余的待收集信息,则可以继续生成新的分析报文,重复上述写入待收集信息,再生成新的分析报文的过程直至将待收集信息完全写入。填满的分析报文都直接发送到分析设备。未填满的分析报文在链路收集还没结束时,继续由交换机发送到业务服务器或者从与业务服务器之间的通信端口环回,或者发给业务链中的下一个交换机,由下一个交换机继续执行上述的待收集信息收集的过程。也就是由本发明实施例中的交换机2继续执行如交换机1的收集待收集信息的过程,如果,交换机1或者交换机2在转发业务报文的过程中获知某一段链路故障,则向分析设备发送该分析报文,如果业务链路没有故障,则一直转发该分析报文,直至到达网管所配置的收集截止标识所指示的截止点,截止点就是业务链路中向分析设备发送分析报文的一个点,具体可以是交换机2的2号端口,或者其他端口。该收集截止标识可以是在网管设备发送的链路分析消息中携带的。如果没有配置截止点,则一直到交换机2向互联网输入的点,只是不向互联网发送该分析报文,而是向该分析设备发送该分析报文。
上述实施例中,将接收到网管设备发送链路分析消息的交换机成为起始点,也就是start点,可以将向分析设备发送分析报文的点成为breakout点。
如果,业务服务器可以识别出分析报文,也可以做交换机的收集工作,获取待收集信息,将待收集信息写入分析报文,然后发给其对应的交换机。
本发明实施例的链路分析的方法在网络中的应用可以参阅图2进行理解:如图2所示:
用户终端通过无线信号接入基站后,其数据流量通过无线网络控制器(Radio Network Controller,RNC)传递到网关GPRS支撑节点(Gateway GPRS Support Node,GGSN),GGSN将用户数据发送到internet之前需要经过业务的处理,为用户提供增值服务。图2中的父母控制(Parental Control)、视频优化 (Video Opt)、web优化t(Web Op)、缓存(Caching)等即为增值服务(Value Added Service)。图2中MANO为业务链路的编排器,其决定什么样的数据需要进行那条业务链路的处理。控制器(Controller)负责为service Switch下发service chain链路的转发表项。策略和计费规则功能实体(policy and charging rules function,PCRF)是一个策略控制器,在业务链路中它提供流分类策略。流流分类器(Traffic classifier)也叫策略和计费执行功能实体(policy and charging enforcement function,PCEF)在业务链路中进行流分类,流分类完成后会给业务报文打上一个标记,此标记表示了本报文需要走哪条业务链路。也就是图1部分所描述的业务报文的处理方案。
分析报文在图2场景中的应用是从网管设备开始,到分析设备结束的,具体链路分析过程可以参阅图1中分析报文的相关描述进行理解,本处不做过多赘述。
考虑到本发明实施例中的业务链路可以是虚拟机交换机,下面结合图3A说明本发明实施例中开源软件虚拟交换机(Open VSwitch,OVS)实现本发明实施例中链路分析的过程:
如图3所示,虚拟交换机对外提供应用程序接口API,可以实现与网络中其他设备的通信。
在控制层设置有数据库、数据库服务模块和控制模块,控制模块用于从数据层调度数据。在控制层还设置有OAM报文管理器、OAM信息收集模块,也就是用于在链路分析的过程中管理OAM报文,收集待收集信息。
在数据层设置有L2层交换机模块,L3层前向模块,L2层为媒体接入控制(Media Access Control,MAC)层,L3层为互联网协议(Internet Protocol,IP)层。数据层还设置有OAM模块,用于生成OAM报文。业务链表,用于提供业务链路的转发规则。VAS集群表和VAS实例,用于提供交换机与VAS服务器之间的关系。硬件层可以包括物理网卡和虚拟网卡,用于与向VAS服务器或者其他网络设备转发报文。
需要说明的是,本发明实施例提供的交换机,具体可以为运行在物理机上的虚拟机。如图3B所示,物理机1200包括硬件层100,运行在硬件层100之上 的VMM(Virtual Machine Monitor,虚拟机监视器)110,以及运行在VMM 110之上的宿主机Host 1201和若干虚拟机(VM,Virtual Machine),其中,硬件层包括但不限于:I/O设备、CPU和memory。本发明实施例提供的交换机具体可以为物理机1200中的一台虚拟机,比如VM 1202,VM 1202上运行有一个或多个可执行程序,其中,每一个可执行程序都用于实现相应的业务功能,VM 1202通过运行该可执行程序,并在程序运行的过程中通过宿主机Host 1201来调用硬件层100的硬件资源,以实现交换机的功能。
图4为本发明实施例中链路分析的方法的另一实施例示意图。如图4所示,本发明实施例提供的链路分析的方法的一实施例包括:网管设备、交换机1、交换机2、业务服务器A、业务服务器B、业务服务器C、业务服务器D和分析设备,本发明实施例提供的链路分析的方法可以参阅图1部分分析报文的处理过程进行理解:本处不做过多赘述。
需要理解的是,本发明实施例中的业务链路是为了便于理解的示例性表述,本发明实施例不限制业务链路所包括的网络设备的种类与数量。
需要理解的是链路1可以是用户或者网管工作人员根据实际的业务需求在网络中指定的一段分析范围,指定分析范围可以减少收集的数量从而减少数据的处理和分析工作,可用于当链路有故障的时候可以在指定范围内收集更多更详细的信息,分析范围中包括start点和break点,需要说明的是,当分析范围确定,start和break out点一般是交换机的物理或者虚拟端口。
因为整个链路分析的过程首先涉及到报文的生成,下面介绍本发明实施例中的分析报文的格式,以及其中的标识。
如表1所示,报文可以包括报文头部(Packet Header)、控制头部(Control Header)和数据载荷(payload)部分。
表1:报文格式信息表
Packet Header Control Header payload
Packet Header可以包含目的MAC地址和目的IP地址,源MAC地址和源IP 地址,其中,目的MAC地址和目的IP地址为分析设备的地址,源MAC地址和源IP地址为网管设备的地址。分析报文可以是操作管理维护(Operation Administration and Maintenance,OAM)报文。分析报文和其他的业务数据报文可以用报文标识进行区别。
具体的,包含业务链头部和用户报文头部。其中业务链头部格式为系统中的业务链业务采用的头部格式,例如:互联网工程任务(Internet Engineering Task Force,IETF)草案中的NSH头部、SCH头部,其用户报文头部的目的MAC地址和目的IP地址为分析设备的地址,源MAC地址和源IP地址为网管设备的地址。L4层采用用户数据报协议(User Datagram Protocol,UDP),端口号为系统定义的端口号,比如:6699for dest/6698for src。交换机可以通过两种方式区分正常报文和OAM报文,即通过分析报文头部或者通过UDP端口号。
Control Header:用于控制业务链路中交换机对此OAM报文处理的行为。
Payload:用于保存获取的待收集信息。
如表2所示,Control Header可以包括capture info和breakout info。
表2:Control Header所包含的信息
capture info breakout info
控制头部中的capture info可以参阅表3进行理解:
表3:capture info所包含的信息
Figure PCTCN2015082858-appb-000001
其中,S-------表示是否为本次分析的第一个报文标志。
E-------表示是否为本次分析的最后一个报文标志,最后一个报文设置,用于分析设备判断是否已经收到完整的测试列中的报文。
F-------表示报文是否已经满(不能再放入信息了)标志,交换机在提取分析信息放入报文的时候如果发现报文长度将超过生成的报文长度时设置此 标志,并生成一个新的分析报文。
Rev-----表示保留。
Seq No.-----表示分析序列号,用于区分哪些报文属于哪一个分析序列。
Packet No.---表示当前报文是本次分析序列的第几个报文。
Flags-------表示分析标志,共64bits的bitmap,每一个bit表示一种需要收集的信息类型;(具体类型未明确给出)。
本发明实施例中,分析信息可以包括该分析报文中指定的service chain链路区间内此chain中的各种信息,比如某一跳或多跳甚至每一跳的流转发表项交换机的CPU占有率、内存使用率、各类统计信息、Chain上的带宽、配置表项、转发表项、队列深度或者Switch内存使情况等,本发明实施例不做限定。
Chain id-----表示本次分析的链路id。
Captured Info Number in current packet-----表示本报文中已经提取的信息数量。
Captured Length-----表示已经抓取的报文长度,用于找到下一次信息写入的位置。
控制头部中的Breakout info可以参阅表4进行理解:
表4:Breakout info所包含的信息
Breakout Control Breakout Record
具体的,Breakout Control所包含的信息可以参阅表5进行理解:如表5所示:
表5:Breakout Control所包含的信息
Flag Data
Flag表示Breakout的标识,Data表示Breakout的数据。
Breakout Record所包含的信息可以参阅表6进行理解:如表6所示:
表6:Breakout Record所包含的信息
Breakout Reason Switch id Next port
Breakout Reason表示Breakout的原因,Switch id表示Breakout的交换机标识,Next port表示如果不Breakout时,链路上的下一端口。
payload可以包括captured info,其中,captured info所包含的内容可以参阅 表7进行理解:
表7:captured info所包含的内容
Figure PCTCN2015082858-appb-000002
其中,Captured Describer所包含的信息可以参阅表8进行理解,如表8所示:
表8:Captured Describer所包含的信息
Current switch id Captured data type Captured data length
其中,Current switch id表示当前交换机的标识,Captured data type表示捕获数据的类型,Captured data length表示捕获数据的长度。
与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的链路分析的方法,可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
上述链路分析的过程也可以参阅图5进行理解。图5为本发明实施例中链路分析的方法的另一实施例示意图。如图5所示,本发明实施例提供的链路分析的方法包括:
S1、网管触发网管设备对业务链路的分析。
S2、网管设备向交换机1发送链路分析消息,所述链路分析消息携带待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息。
交换机1接收到链路分析消息后,可以向网管设备发送响应消息,以通知网管设备链路分析消息已收到。
S3、交换机1生成分析报文,并获取待收集信息。
生成分析报文和获取待收集信息的过程可以参阅图1部分的描述进行理解,本处不做过多赘述。
S4、交换机1向交换机2发送已添加待收集信息的分析报文。
S5、交换机2继续获取待收集信息。
S6、在满足breakout条件时,向分析设备发送添加分析信息的分析报文。
也就是图1部分实施例所描述的四个break out的过程。
与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的链路分析的方法,可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
参阅图6,本发明实施例提供的链路分析的方法的另一实施例包括:
101、业务链路中的交换机获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息。
本发明实施例中,待分析信息标识可以理解为是表3中的Flags,实际上,Flags中包含多个待分析信息标识。本发明实施例中,第一分析报文以及第二分析报文的头部格式可以与业务链路中的业务报文的头部格式类似链路分析标识可以是改变业务报文头部中已有的字段的含义得到的(如,在互联网工程任务(Internet Engineering Task Force,IETF)草案中,改变源Mac地址字段),也可以是在业务报文中新增字段(如,在互联网工程任务(Internet Engineering Task Force,IETF)草案中,在IP头后进行添加),本发明实施例不做限定。
102、根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息。
103、根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
本发明实施例采用获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于 分析所述业务链路。与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的链路分析的方法,可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
可选地,在上述图6对应的实施例的基础上,本发明实施例提供的链路分析的方法的第一个可选实施例中,所述获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,包括:
接收网管设备发送的链路分析消息,所述链路分析消息携带待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息;
根据所述分析报文的格式信息,生成由所述格式信息指示格式的第一分析报文,所述第一分析报文包括所述待收集信息的标识、所述业务链路的标识和所述链路分析标识。
可见,本发明实施例中,当交换机为业务链路上的第一个交换机时,则根据网管设备发送的链路分析消息,生成第一分析报文。这样就可以开始获取待收集信息,从而提高了用于分析的待收集信息收集的效率。
可选地,在上述图6对应的实施例的基础上,本发明实施例提供的链路分析的方法的第二个可选实施例中,所述获取第一分析报文,包括:
接收前一个交换机发送的第一分析报文,所述前一个交换机为所述业务链路中输出所述第一分析报文的交换机。
可见,本发明实施例中,当交换机不是链路上的第一个交换机时,则接收前一个交换机发送的第一分析报文,然后收集与之相关的分析信息,实现了待收集信息的自动化收集,从而提高了用于分析的待收集的效率。
可选地,在上述图6对应的实施例的基础上,本发明实施例提供的链路分析的方法的第三个可选实施例中,所述业务链路还包括业务服务器,所述获取第一分析报文,包括:
接收所述业务服务器返回的第一分析报文。
本发明实施例中,当业务服务器可以识别该分析报文,交换机还可以是接收业务服务器返回的第一分析报文。
可选地,在上述图6对应的实施例的基础上,本发明实施例提供的链路分析的方法的第四个可选实施例中,所述业务链路还包括业务服务器,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文,所述获取第一分析报文可以包括:
当与所述业务服务器通信的环路故障时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文;
所述方法还可以包括:
向所述分析设备发送所述第一分析报文。
本发明实施例中,当与业务服务器之间的通信链路故障,例如:根据记录获知业务报文在该段链路被丢弃,没有正常返回,则该点为breakout点,直接向分析设备发送该分析报文,以便分析设备可以分析出该故障,尽快进行修复。
可选地,在上述图6对应的实施例的基础上,本发明实施例提供的链路分析的方法的第五个可选实施例中,所述业务链路还包括业务服务器,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文,所述获取第一分析报文可以包括:
当所述业务服务器不识别分析报文时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文。
本发明实施例中,当业务服务器不能识别分析报文,则不能将分析报文发送给业务服务器,以避免业务服务器将该分析报文丢弃,导致无法进行后续的信息收集,可以直接环回到交换机。
可选地,在上述图6对应的实施例或任一可选实施例的基础上,本发明实施例提供的链路分析的方法的第六个可选实施例中,所述根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息之后,所述方法还包括:
向所述第一分析报文中写入获取的所述待收集信息。
本发明实施例中,获取待收集信息后,将待收集信息写入第一分析报文。
可选地,在上述图6对应的第六个实施例的基础上,本发明实施例提供的 链路分析的方法的第七个可选实施例中,所述向所述第一分析报文中写入获取的所述待收集信息,可以包括:
当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
所述根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,可以包括:
根据所述业务链路的标识,向下一跳网络设备发送所述第二分析报文;
所述方法还包括:
向所述分析设备发送所述填满的分析报文。
本发明实施例中,当第一分析报文的数据填充空间小于待收集信息所需的空间时,则将第一分析报文填满后,将填满后的第一分析报文中用于表征最后一个报文的报文排序标识清除掉,再生成一个新的分析报文,然后向新的分析报文中继续写入待收集信息,如果新的分析报文的填充空间还是不够容纳待收集信息,则继续生成新的分析报文,当新的分析报文的填充空间够待收集信息时,则在该新的分析报文中设置用于表征最后一个报文的报文排序标识。将填满的分析报文全部发送到分析设备。这样,不需要设置超大分析报文,根据需求增加分析报文的数量就可以了,也提高了分析报文发送的速度。
可选地,在上述图6对应的实施例或任一可选实施例的基础上,本发明实施例提供的链路分析的方法的第八个可选实施例中,所述第一分析报文还包含收集截止标识,所述收集截止标识用于指示在所述收集截止标识所指示的输出点向分析设备输出分析报文,所述根据所述业务链路的标识,向下一跳网络设 备发送第二分析报文,可以包括:
根据所述收集截止标识,确认下一跳网络设备为所述分析设备时,向所述分析设备发送第二分析报文;
根据所述收集截止标识,确认下一跳网络设备不是所述分析设备时,根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述下一跳网络设备为下一跳交换机或下一跳业务服务器;
根据所述业务链路的标识或者所述收集截止标识,确认所述交换机为所述业务链路中的最后一个网络设备时,向所述分析设备发送第二分析报文。
本发明实施例中,当到达收集截止标识所指示的截止点时,或者,到达业务链路的出口时,向分析设备发送第二分析报文。如果下一跳网络设备不是分析设备,则根据业务链路的转发规则,继续向下一跳交换机或下一跳业务服务器发送该第二分析报文。下一跳交换机或下一跳业务服务器是只按照业务链路的转发规则,报文接下来要到达的交换机或者业务服务器。
图6对应的实施例或任一可选实施例可以参阅图1至图5对应的实施例中交换机的部分进行理解,本处不做过多赘述。
参阅图7,本发明实施例提供的链路分析的方法的另一实施例包括:
201、业务链路的分析设备接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识、所述业务链路的已收集信息和分析报文类型标识,所述分析报文类型标识用于指示所述分析报文用于链路分析。
分析报文类型标识和链路分析标识可以是同一标识。分析设备根据该分析报文类型标识确定该分析报文是用来做链路分析的。
202、根据所述分析报文类型标识和所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。
本发明实施例中,业务链路的分析设备接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识、所述业务链路的已收集信息和分析报文类型标识,所述分析报文类型标识用于指示所述分析报文用于链路分析;根据所述分析报文类型标识和所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。与现有技术中仅能基于物理链路,且还只能通过人工查 看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的链路分析的方法,可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
可选地,在上述图7对应的实施例的基础上,本发明实施例提供的链路分析的方法的第一个可选实施例中,所述分析报文还包括报文排序的标识,所述接收交换机发送的分析报文之后,所述方法还可以包括:
根据所述业务链路的标识,获取所述业务链路的每个分析报文;
当从所述每个分析报文中,获取到用于表征最后一个报文的报文排序标识时,确定接收到所述业务链路的全部分析报文;
从所述全部分析报文中提取所述业务链路的已收集信息。
可见,本发明实施例中,分析设备可以通过报文排序标识,确定业务链路的分析报文是否全部接收到,从而对全部分析报文进行分析,从而提高了分析的准确度。
可选地,在上述图7对应的实施例或第一个可选实施例的基础上,本发明实施例提供的链路分析的方法的第二个可选实施例中,所述接收所述交换机发送的分析报文之前,所述方法还可以包括:
获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所 述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
本发明实施例是当分析设备与网管设备是同一设备时的情况,由分析设备向所述业务链路中的第一个交换机发送链路分析消息。
图7对应的实施例或任一可选实施例可以参阅图1至图5对应的实施例中分析设备的部分进行理解,本处不做过多赘述。
参阅图8,本发明实施例提供的链路分析的方法的另一实施例包括:
301、用于触发分析业务链路的网管设备获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息。
302、所述网管设备向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
本发明实施例中,用于触发分析业务链路的网管设备获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所 述已收集信息被分析设备用于分析所述业务链路。与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的链路分析的方法,可以触发交换机通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
图8对应的实施例可以参阅图1至图5对应的实施例中网管设备的部分进行理解,本处不做过多赘述。
参阅图9,本发明实施例提供的链路分析的方法的另一实施例包括:
401、业务链路中的业务服务器接收所述业务链路中与所述业务服务器通信的交换机发送的第一分析报文,所述第一分析报文包含待收集信息的标识和链路分析标识,所述链路分析标识用于指示所述业务服务器收集所述待收集信息的标识所指示的待收集信息。
402、所述业务服务器根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息。
403、所述业务服务器向所述交换机发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
本发明实施例中,业务链路中的业务服务器接收所述业务链路中与所述业务服务器通信的交换机发送的第一分析报文,所述第一分析报文包含待收集信息的标识和链路分析标识,所述链路分析标识用于指示所述业务服务器收集所述待收集信息的标识所指示的待收集信息;根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;向所述交换机发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的链路分析的方法,可以通过在业务链 路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
可选地,在上述图9对应的实施例的基础上,本发明实施例提供的链路分析的方法的第一个可选实施例中,所述根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息之后,所述方法还可以包括:
向所述第一分析报文中写入获取的所述待收集信息。
可选地,在上述图8对应的第一个可选实施例的基础上,本发明实施例提供的链路分析的方法的第二个可选实施例中,所述向所述第一分析报文中写入获取的所述待收集信息,可以包括:
当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
所述向所述交换机发送第二分析报文,可以包括:
向所述交换机发送所述第二分析报文;
所述方法还包括:
向所述交换机发送所述填满的分析报文,所述填满的第二分析报文被所述交换机发送到所述分析设备。
本发明实施例为业务服务器可以识别分析报文,并可以收集待收集信息的情况,具体信息获取和写入过程可以参阅交换机的信息获取和写入过程进行理解,本处不做过多赘述。
参阅图10,本发明实施例提供的业务链路中的交换机的一实施例包括:
第一获取模块501,用于获取第一分析报文,所述第一分析报文包含待收 集信息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;
第二获取模块502,用于根据所述第一获取模块501获取的所述待收集信息的标识,从已记录的信息中获取所述待收集信息;
发送模块503,用于根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于所述第二获取模块502获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
本发明实施例中,第一获取模块501获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;第二获取模块502根据所述第一获取模块501获取的所述待收集信息的标识,从已记录的信息中获取所述待收集信息;发送模块503根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于所述第二获取模块502获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的交换机,可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
可选地,在上述图10对应的实施例的基础上,本发明实施例提供的交换机的第一个可选实施例中,
所述第一获取模块501,具体用于接收网管设备发送的链路分析消息,所述链路分析消息携带待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息;根据所述分析报文的格式信息,生成由所述格式信息指示格式的第一分析报文,所述第一分析报文包括所述待收集信息的标识、所述业务链路的标识和所述链路分析标识。
可选地,在上述图10对应的实施例的基础上,本发明实施例提供的交换机的第二个可选实施例中,
所述第一获取模块501,具体用于接收前一个交换机发送的第一分析报文,所述前一个交换机为所述业务链路中输出所述第一分析报文的交换机。
可选地,在上述图10对应的实施例的基础上,本发明实施例提供的交换机的第三个可选实施例中,
所述第一获取模块501,具体用于接收所述业务服务器返回的第一分析报文。
可选地,在上述图10对应的实施例的基础上,本发明实施例提供的交换机的第四个可选实施例中,
所述第一获取模块501,具体用于所述业务链路还包括业务服务器,当与所述业务服务器通信的环路故障时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文,其中,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文;
所述发送模块503,还用于向所述分析设备发送所述第一分析报文。
可选地,在上述图10对应的实施例的基础上,本发明实施例提供的交换机的第五个可选实施例中,
所述第一获取模块501,具体用于所述业务链路还包括业务服务器,当所述业务服务器不识别分析报文时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文,其中,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文。
可选地,在上述图10对应的实施例或任一可选实施例的基础上,本发明实施例提供的交换机的第六个可选实施例中,所述交换机还包括处理模块504,
所述处理模块504,用于向所述第一分析报文中写入所述第一获取模块501获取的所述待收集信息。
可选地,在上述图11对应的第六个可选实施例的基础上,参阅图12,本发 明实施例提供的交换机的第七个可选实施例中,所述处理模块包括第一处理子模块5041和第二处理子模块5042,
所述第一处理子模块5041,用于当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
所述第二处理子模块5042,用于根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述第一处理子模块5041处理后的所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
所述发送模块503,具体用于根据所述业务链路的标识,向下一跳网络设备发送所述第二分析报文,并还用于向所述分析设备发送所述第一处理子模块处理后得到的所述填满的分析报文。
可选地,在上述图10对应的实施例或任一可选实施例的基础上,本发明实施例提供的交换机的第八个可选实施例中,
所述发送模块503,具体用于当所述第一分析报文还包含收集截止标识时,根据所述收集截止标识,确认下一跳网络设备为所述分析设备时,向所述分析设备发送第二分析报文,其中,所述收集截止标识用于指示在所述收集截止标识所指示的输出点向分析设备输出分析报文;根据所述收集截止标识,确认下一跳网络设备不是所述分析设备时,根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述下一跳网络设备为下一跳交换机或下一跳业务服务器;根据所述业务链路的标识或者所述收集截止标识,确认所述交换机为所述业务链路中的最后一个网络设备时,向所述分析设备发送第二分析报文。
图10-图12对应的实施例及其可选实施例可以参阅图1-图5,以及图6对应的多个实施例的交换机部分的描述进行理解,本处不做过多赘述。
参阅图13,本发明实施例提供的用于分析业务链路的分析设备60的一实施 例包括:
接收模块601,用于接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识和所述业务链路的已收集信息和分析报文类型标识,所述分析报文类型标识用于指示所述分析报文用于链路分析;
分析模块602,用于根据所述接收模块601接收的所述分析报文中的所述分析报文类型标识和所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。
本发明实施例中,接收模块601接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识和所述业务链路的已收集信息和分析报文类型标识,所述分析报文类型标识用于指示所述分析报文用于链路分析;分析模块602根据所述接收模块601接收的所述分析报文中的所述分析报文类型标识和所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由本发明实施例提供的分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
可选地,在上述图13对应的实施例的基础上,参阅图14,本发明实施例提供的分析设备60的另一实施例中,所述分析设备60还包括:
第一获取模块603,用于当所述接收模块601接收的分析报文还包括报文排序的标识时,根据所述业务链路的标识,获取所述业务链路的每个分析报文;
确定模块604,用于当从所述第一获取模块603获取的所述每个分析报文中,获取到用于表征最后一个报文的报文排序标识时,确定接收到所述业务链路的全部分析报文;
提取模块605,用于从所述确定模块604确定的所述全部分析报文中提取所述业务链路的已收集信息。
可见,本发明实施例中,分析设备可以通过报文排序标识,确定待业务链路的分析报文是否全部接收到,从而对全部分析报文进行分析分析,从而提高 了分析的准确度。
可选地,在上述图13对应的实施例的基础上,参阅图15,本发明实施例提供的分析设备60的另一实施例中,所述分析设备60还包括:
第二获取模块606,用于获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
发送模块607,用于向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述第二获取模块606获取的所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
图13-图15对应的实施例及其可选实施例可以参阅图1-图5,以及图7对应的多个实施例的分析设备部分的描述进行理解,本处不做过多赘述。
参阅图16,本发明实施例提供的用于触发分析业务链路的网管设备70的一实施例包括:
获取模块701,用于获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
发送模块702,用于向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述获取模块701获取的所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链 路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供网管设备,可以触发交换机通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
参阅图17,本发明实施例提供的业务链路中的业务服务器的一实施例包括:
接收模块801,用于接收所述业务链路中与所述业务服务器通信的交换机发送的第一分析报文,所述第一分析报文包含待收集信息的标识和链路分析标识,所述链路分析标识用于指示所述业务服务器收集所述待收集信息的标识所指示的待收集信息;
获取模块802,用于根据所述接收模块801接收的所述第一分析报文中包含的待收集信息的标识,从已记录的信息中获取所述待收集信息;
发送模块803,用于向所述交换机发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于所述获取模块802获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的业务服务器,可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
可选地,在上述图17对应的实施例的基础上,本发明实施例提供的业务服务器80的第一个可选实施例中,所述业务服务器80还包括:
处理模块804,用于向所述第一分析报文中写入所述获取模块802获取的所述待收集信息。
可选地,在上述图18对应的第一个可选实施例的基础上,参阅图19,本发明实施例提供的业务服务器80的第二个可选实施例中,所述处理模块804包括第一处理子模块8041和第二处理子模块8042,
所述第一处理子模块8041,用于当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
所述第二处理子模块8042,用于根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述第一处理子模块8041处理后的所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
所述发送模块803,具体用于向所述交换机发送所述第二分析报文,还用于向所述交换机发送所述填满的分析报文,所述填满的第二分析报文被所述交换机发送到所述分析设备。
本发明实施例为业务服务器可以识别分析报文,并可以收集待收集信息的情况,具体信息获取和写入过程可以参阅交换机的信息获取和写入过程进行理解,本处不做过多赘述。
在上述交换机、分析设备、网管设备、业务服务器的多个实施例中,应当理解的是,在一种实现方式下,接收模块、发送模块可以是由输入/输出I/O设备(比如网卡)来实现,处理模块、确定模块、提取模块、分析模块可以由处理器执行存储器中的程序或指令来实现的(换言之,即由处理器以及与所述处理器耦合的存储器中的特殊指令相互配合来实现);在另一种实现方式下,接收模块、发送模块可以是由输入/输出I/O设备(比如网卡)来实现,处理模块、确定模块、提取模块、分析模块也可以分别通过专有电路来实现,具体实现方式参见现有技术,这里不再赘述;在再一种实现方式下,接收模块、发送模块可以是由输入/输出I/O设备(比如网卡)来实现,处理模块、确定模块、提取 模块、分析模块也可以通过现场可编程门阵列(FPGA,Field-Programmable Gate Array)来实现,具体实现方式参见现有技术,这里不再赘述,本发明包括但不限于前述实现方式,应当理解的是,只要按照本发明的思想实现的方案,都落入本发明实施例所保护的范围。
本实施例提供了一种交换机、分析设备、网管设备、业务服务器的硬件结构,参见图20所示,一种交换机、分析设备、网管设备或业务服务器的硬件结构可以包括:
收发器件、软件器件以及硬件器件三部分;
收发器件为用于完成包收发的硬件电路;
硬件器件也可称“硬件处理模块”,或者更简单的,也可简称为“硬件”,硬件器件主要包括基于FPGA、ASIC之类专用硬件电路(也会配合其他配套器件,如存储器)来实现某些特定功能的硬件电路,其处理速度相比通用处理器往往要快很多,但功能一经定制,便很难更改,因此,实现起来并不灵活,通常用来处理一些固定的功能。需要说明的是,硬件器件在实际应用中,也可以包括MCU(微处理器,如单片机)、或者CPU等处理器,但这些处理器的主要功能并不是完成大数据的处理,而主要用于进行一些控制,在这种应用场景下,由这些器件搭配的系统为硬件器件。
软件器件(或者也简单“软件”)主要包括通用的处理器(例如CPU)及其一些配套的器件(如内存、硬盘等存储设备),可以通过编程来让处理器具备相应的处理功能,用软件来实现时,可以根据业务需求灵活配置,但往往速度相比硬件器件来说要慢。软件处理完后,可以通过硬件器件将处理完的数据通过收发器件进行发送,也可以通过一个与收发器件相连的接口向收发器件发送处理完的数据。
本实施例中,收发器件用于进行上述实施例中报文的接收和发送,软件器件或硬件器件用于获取待收集信息、向报文中写入待收集信息,提取分析信息和分析业务链路等。
硬件器件及软件器件的其他功能在前述实施例中已经详细论述,这里不再赘述。
下面结合附图就接收模块、发送模块可以是由输入/输出I/O设备(比如网卡)来实现,交换机、分析设备、网管设备、业务服务器可以是可以由处理器执行存储器中的程序或指令来实现的技术方案来做详细的介绍:
图21是本发明实施例提供的交换机50的结构示意图。所述交换机50包括处理器510、存储器550和输入/输出I/O设备530,存储器550可以包括只读存储器和随机存取存储器,并向处理器510提供操作指令和数据。存储器550的一部分还可以包括非易失性随机存取存储器(NVRAM)。
在一些实施方式中,存储器550存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:
在本发明实施例中,通过调用存储器550存储的操作指令(该操作指令可存储在操作系统中),
获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;
根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;
根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
可见,与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的交换机,可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
处理器510控制交换机50的操作,处理器510还可以称为CPU(Central Processing Unit,中央处理单元)。存储器550可以包括只读存储器和随机存取存储器,并向处理器510提供指令和数据。存储器550的一部分还可以包括非易失性随机存取存储器(NVRAM)。具体的应用中交换机50的各个组件通过总线系统520耦合在一起,其中总线系统520除包括数据总线之外,还可以包括电 源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统520。
上述本发明实施例揭示的方法可以应用于处理器510中,或者由处理器510实现。处理器510可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器510中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器510可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器550,处理器510读取存储器550中的信息,结合其硬件完成上述方法的步骤。
可选地,I/O设备530用于接收网管设备发送的链路分析消息,所述链路分析消息携带待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息;
根据所述分析报文的格式信息,生成由所述格式信息指示格式的第一分析报文,所述第一分析报文包括所述待收集信息的标识、所述业务链路的标识和所述链路分析标识。
可见,本发明实施例中,当交换机为链路上的第一个交换机时,则根据网管设备发送的链路分析消息,生成第一分析报文。这样就实现了待收集信息的自动化收集,从而提高了待收集信息收集的效率。
可选地,I/O设备530用于接收前一个交换机发送的第一分析报文,所述前一个交换机为所述业务链路中输出所述第一分析报文的交换机。
可见,本发明实施例中,当交换机不是链路上的第一个交换机时,则接收前一个交换机发送的第一分析报文,然后收集与之相关的待收集信息,实现了 待收集信息的自动化收集,从而提高了待收集信息收集的效率。
可选地,I/O设备530用于接收所述业务服务器返回的第一分析报文。
可选地,I/O设备530用于所述业务链路还包括业务服务器,当与所述业务服务器通信的环路故障时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文,其中,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文,并向所述分析设备发送所述第一分析报文。
可选地,I/O设备530用于所述业务链路还包括业务服务器,当所述业务服务器不识别分析报文时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文,其中,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文。
可选地,处理器510还用于向所述第一分析报文中写入获取的所述待收集信息。
处理器510具体用于:
当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
I/O设备530用于根据所述业务链路的标识,向下一跳网络设备发送所述第二分析报文,并向所述分析设备发送所述填满的分析报文。
I/O设备530用于:
当所述第一分析报文还包含收集截止标识时,根据所述收集截止标识,确 认下一跳网络设备为所述分析设备时,向所述分析设备发送第二分析报文,其中,所述收集截止标识用于指示在所述收集截止标识所指示的输出点向分析设备输出分析报文;根据所述收集截止标识,确认下一跳网络设备不是所述分析设备时,根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述下一跳网络设备为下一跳交换机或下一跳业务服务器;根据所述业务链路的标识或者所述收集截止标识,确认所述交换机为所述业务链路中的最后一个网络设备时,向所述分析设备发送第二分析报文。
图21对应的实施例以及其他可选实施例可以参阅图1-图5,图6、图10-图12交换机部分的描述进行理解,本处不做过多赘述。
图22是本发明实施例提供的分析设备60的结构示意图。所述分析设备60包括处理器610、存储器650和输入/输出I/O设备630,存储器650可以包括只读存储器和随机存取存储器,并向处理器610提供操作指令和数据。存储器650的一部分还可以包括非易失性随机存取存储器(NVRAM)。
在一些实施方式中,存储器650存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:
在本发明实施例中,通过调用存储器650存储的操作指令(该操作指令可存储在操作系统中),
通过I/O设备630接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识、所述业务链路的已收集信息和分析报文类型标识,所述分析报文类型标识用于指示所述分析报文用于链路分析;
根据所述分析报文类型标识和所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。
可见,与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的分析设备,可以对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
处理器610控制分析设备60的操作,处理器610还可以称为CPU(Central  Processing Unit,中央处理单元)。存储器650可以包括只读存储器和随机存取存储器,并向处理器610提供指令和数据。存储器650的一部分还可以包括非易失性随机存取存储器(NVRAM)。具体的应用中分析设备60的各个组件通过总线系统620耦合在一起,其中总线系统620除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统620。
上述本发明实施例揭示的方法可以应用于处理器610中,或者由处理器610实现。处理器610可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器610中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器610可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器650,处理器610读取存储器650中的信息,结合其硬件完成上述方法的步骤。
可选地,处理器610还用于当所述分析报文还包括报文排序的标识时,根据所述业务链路的标识,获取所述业务链路的每个分析报文;当从所述每个分析报文中,获取到用于表征最后一个报文的报文排序标识时,确定接收到所述业务链路的全部分析报文;从所述全部分析报文中提取所述业务链路的已收集信息。
可见,本发明实施例中,分析设备可以通过报文排序标识,确定业务链路的分析报文是否全部接收到,从而对全部分析报文进行分析,从而提高了分析的准确度。
可选地,处理器610还用于:
获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
通过I/O设备630向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
图22对应的实施例及其可选实施例可以参阅图1-图5、图7、图13-图15中分析设备部分的描述进行理解,本处不做过多赘述。
图23是本发明实施例提供的网管设备70的结构示意图。所述网管设备70包括处理器710、存储器750和输入/输出I/O设备730,存储器750可以包括只读存储器和随机存取存储器,并向处理器710提供操作指令和数据。存储器750的一部分还可以包括非易失性随机存取存储器(NVRAM)。
在一些实施方式中,存储器750存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:
在本发明实施例中,通过调用存储器750存储的操作指令(该操作指令可存储在操作系统中),
获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
通过I/O设备630向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述 第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
可见,与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的网管设备,可以触发交换机收集业务链路的待收集信息,从而使分析设备可以对收集到的信息进行自动分析,提高了业务链路分析的效率。
处理器710控制网管设备70的操作,处理器710还可以称为CPU(Central Processing Unit,中央处理单元)。存储器750可以包括只读存储器和随机存取存储器,并向处理器710提供指令和数据。存储器750的一部分还可以包括非易失性随机存取存储器(NVRAM)。具体的应用中网管设备70的各个组件通过总线系统720耦合在一起,其中总线系统720除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统720。
上述本发明实施例揭示的方法可以应用于处理器710中,或者由处理器710实现。处理器710可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器710中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器710可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储 器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器750,处理器710读取存储器750中的信息,结合其硬件完成上述方法的步骤。
图23对应的实施例及其可选实施例可以参阅图1-图5、图8、图16中网管设备部分的描述进行理解,本处不做过多赘述。
图24是本发明实施例提供的业务服务器80的结构示意图。所述业务服务器80包括处理器810、存储器850和输入/输出I/O设备830,存储器850可以包括只读存储器和随机存取存储器,并向处理器810提供操作指令和数据。存储器850的一部分还可以包括非易失性随机存取存储器(NVRAM)。
在一些实施方式中,存储器850存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:
在本发明实施例中,通过调用存储器850存储的操作指令(该操作指令可存储在操作系统中),
通过I/O设备830:
接收所述业务链路中与所述业务服务器通信的交换机发送的第一分析报文,所述第一分析报文包含待收集信息的标识和链路分析标识,所述链路分析标识用于指示所述业务服务器收集所述待收集信息的标识所指示的待收集信息;
根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;
向所述交换机发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
可见,与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的业务服务器,也可以收集业务链路中的待收集信息,然后由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
处理器810控制业务服务器80的操作,处理器810还可以称为CPU(Central  Processing Unit,中央处理单元)。存储器850可以包括只读存储器和随机存取存储器,并向处理器810提供指令和数据。存储器850的一部分还可以包括非易失性随机存取存储器(NVRAM)。具体的应用中业务服务器80的各个组件通过总线系统820耦合在一起,其中总线系统820除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统820。
上述本发明实施例揭示的方法可以应用于处理器810中,或者由处理器810实现。处理器810可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器810中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器810可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器850,处理器810读取存储器850中的信息,结合其硬件完成上述方法的步骤。
可选地,处理器810还用于向所述第一分析报文中写入获取的所述待收集信息。
可选地,处理器810具体用于:
当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述除所述一部分信息之外的信息所需要的空间时,向所述 新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
I/O设备830向所述交换机发送所述第二分析报文;并向所述交换机发送所述填满的分析报文,所述填满的第二分析报文被所述交换机发送到所述分析设备。
图24对应的实施例及其可选实施例可以参阅图1-图5、图9、图16-图18中分析设备部分的描述进行理解,本处不做过多赘述。
参阅图25,本发明实施例提供的链路分析系统的一实施例包括:交换机50、分析设备60、网管设备70和业务服务器80,
网管设备70用于获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路;
交换机50用于:获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路;
分析设备60,用于接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识和所述业务链路的已收集信息;根据所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。
本发明实施例提供的链路分析的系统为业务服务器不参与信息收集的方案,并且,网管服务器与分析设备是分离的。
实际上,该系统也可以包括业务服务器参与信息收集的方案。
参阅图26,本发明实施例提供的链路分析系统的一实施例包括:交换机50、分析设备60和业务服务器80,
交换机50用于:获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路;
分析设备60,用于接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识和所述业务链路的已收集信息;根据所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。
业务服务器80用于:接收所述业务链路中与所述业务服务器通信的交换机发送的第一分析报文,所述第一分析报文包含待收集信息的标识和链路分析标识,所述链路分析标识用于指示所述业务服务器收集所述待收集信息的标识所指示的待收集信息;根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;向所述交换机发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
本发明实施例提供的链路分析的系统为业务服务器参与信息收集的方案,并且,网管服务器与分析设备是同一设备。
与现有技术中仅能基于物理链路,且还只能通过人工查看物理链路中交换 机(Switch)的各种表项来获取业务链路中的信息。然后再由人工对获取的链路的信息进行分析,导致链路的分析效率低下相比,本发明实施例提供的链路分析的系统,可以通过在业务链路中转发的分析报文收集业务链路中的信息,并由分析设备对收集到的信息进行自动分析,从而提高了业务链路分析的效率。
本发明链路分析的系统的实施例可以参阅图1至图4部分的描述进行理解,本处不做过多赘述。
需要注意的是,本发明实施例中的输入/输出I/O设备指输入设备或者输出设备或者输入和输出设备。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:ROM、RAM、磁盘或光盘等。
以上对本发明实施例所提供的链路分析的方法、设备以及系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (50)

  1. 一种链路分析的方法,其特征在于,所述方法应用于业务链路中的交换机,所述方法包括:
    获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;
    根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;
    根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  2. 根据权利要求1所述的方法,其特征在于,所述获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,包括:
    接收网管设备发送的链路分析消息,所述链路分析消息携带待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息;
    根据所述分析报文的格式信息,生成由所述格式信息指示格式的第一分析报文,所述第一分析报文包括所述待收集信息的标识、所述业务链路的标识和所述链路分析标识。
  3. 根据权利要求1所述的方法,其特征在于,所述获取第一分析报文,包括:
    接收前一个交换机发送的第一分析报文,所述前一个交换机为所述业务链路中输出所述第一分析报文的交换机。
  4. 根据权利要求1所述的方法,其特征在于,所述业务链路还包括业务服务器,所述获取第一分析报文,包括:
    接收所述业务服务器返回的第一分析报文。
  5. 根据权利要求1所述的方法,其特征在于,所述业务链路还包括业务服务器,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文,所述获取第一分析 报文包括:
    当与所述业务服务器通信的环路故障时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文;
    所述方法还包括:
    向所述分析设备发送所述第一分析报文。
  6. 根据权利要求1所述的方法,其特征在于,所述业务链路还包括业务服务器,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文,所述获取第一分析报文包括:
    当所述业务服务器不识别分析报文时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文。
  7. 根据权利要求1-6任一所述的方法,其特征在于,所述根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息之后,所述方法还包括:
    向所述第一分析报文中写入获取的所述待收集信息。
  8. 根据权利要求7所述的方法,其特征在于,所述向所述第一分析报文中写入获取的所述待收集信息,包括:
    当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
    根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
    所述根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,包括:
    根据所述业务链路的标识,向下一跳网络设备发送所述第二分析报文;
    所述方法还包括:
    向所述分析设备发送所述填满的分析报文。
  9. 根据权利要求1-8任一所述的方法,其特征在于,所述第一分析报文还包含收集截止标识,所述收集截止标识用于指示在所述收集截止标识所指示的输出点向分析设备输出分析报文,所述根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,包括:
    根据所述收集截止标识,确认下一跳网络设备为所述分析设备时,向所述分析设备发送第二分析报文;
    根据所述收集截止标识,确认下一跳网络设备不是所述分析设备时,根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述下一跳网络设备为下一跳交换机或下一跳业务服务器;
    根据所述业务链路的标识或者所述收集截止标识,确认所述交换机为所述业务链路中的最后一个网络设备时,向所述分析设备发送第二分析报文。
  10. 一种链路分析的方法,其特征在于,所述方法应用于分析业务链路的分析设备,所述方法包括:
    接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识、所述业务链路的已收集信息和分析报文类型标识,所述分析报文类型标识用于指示所述分析报文用于链路分析;
    根据所述分析报文类型标识和所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。
  11. 根据权利要求10所述的方法,其特征在于,所述分析报文还包括报文排序的标识,所述接收交换机发送的分析报文之后,所述方法还包括:
    根据所述业务链路的标识,获取所述业务链路的每个分析报文;
    当从所述每个分析报文中,获取到用于表征最后一个报文的报文排序标识时,确定接收到所述业务链路的全部分析报文;
    从所述全部分析报文中提取所述业务链路的已收集信息。
  12. 根据权利要求10或11所述的方法,其特征在于,所述接收所述交换机发送的分析报文之前,所述方法还包括:
    获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
    向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  13. 一种链路分析的方法,其特征在于,所述方法应用于触发分析业务链路的网管设备,所述方法包括:
    获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
    向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  14. 一种链路分析的方法,其特征在于,所述方法应用于业务链路中的业务服务器,所述方法包括:
    接收所述业务链路中与所述业务服务器通信的交换机发送的第一分析报文,所述第一分析报文包含待收集信息的标识和链路分析标识,所述链路分析 标识用于指示所述业务服务器收集所述待收集信息的标识所指示的待收集信息;
    根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;
    向所述交换机发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  15. 根据权利要求14所述的方法,其特征在于,所述根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息之后,所述方法还包括:
    向所述第一分析报文中写入获取的所述待收集信息。
  16. 根据权利要求15所述的方法,其特征在于,所述向所述第一分析报文中写入获取的所述待收集信息,包括:
    当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
    根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
    所述向所述交换机发送第二分析报文,包括:
    向所述交换机发送所述第二分析报文;
    所述方法还包括:
    向所述交换机发送所述填满的分析报文,所述填满的第二分析报文被所述交换机发送到所述分析设备。
  17. 一种业务链路中的交换机,其特征在于,包括:
    第一获取模块,用于获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示 所述交换机收集所述待收集信息的标识所指示的待收集信息;
    第二获取模块,用于根据所述第一获取模块获取的所述待收集信息的标识,从已记录的信息中获取所述待收集信息;
    发送模块,用于根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于所述第二获取模块获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  18. 根据权利要求17所述的交换机,其特征在于,
    所述第一获取模块,具体用于接收网管设备发送的链路分析消息,所述链路分析消息携带待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息;根据所述分析报文的格式信息,生成由所述格式信息指示格式的第一分析报文,所述第一分析报文包括所述待收集信息的标识、所述业务链路的标识和所述链路分析标识。
  19. 根据权利要求17所述的交换机,其特征在于,
    所述第一获取模块,具体用于接收前一个交换机发送的第一分析报文,所述前一个交换机为所述业务链路中输出所述第一分析报文的交换机。
  20. 根据权利要求17所述的交换机,其特征在于,
    所述第一获取模块,具体用于接收所述业务服务器返回的第一分析报文。
  21. 根据权利要求17所述的交换机,其特征在于,
    所述第一获取模块,具体用于所述业务链路还包括业务服务器,当与所述业务服务器通信的环路故障时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文,其中,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文;
    所述发送模块,还用于向所述分析设备发送所述第一分析报文。
  22. 根据权利要求17所述的交换机,其特征在于,
    所述第一获取模块,具体用于所述业务链路还包括业务服务器,当所述业务服务器不识别分析报文时,获取从所述第一端口发出,未经所述业务服务器 从所述第二端口环回的第一分析报文,其中,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文。
  23. 根据权利要求17-22任一所述的交换机,其特征在于,所述交换机还包括处理模块,
    所述处理模块,用于向所述第一分析报文中写入所述第一获取模块获取的所述待收集信息。
  24. 根据权利要求23所述的交换机,其特征在于,所述处理模块包括第一处理子模块和第二处理子模块,
    所述第一处理子模块,用于当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
    所述第二处理子模块,用于根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述第一处理子模块处理后的所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
    所述发送模块,具体用于根据所述业务链路的标识,向下一跳网络设备发送所述第二分析报文,并还用于向所述分析设备发送所述第一处理子模块处理后得到的所述填满的分析报文。
  25. 根据权利要求17-24任一所述的交换机,其特征在于,
    所述发送模块,具体用于当所述第一分析报文还包含收集截止标识时,根据所述收集截止标识,确认下一跳网络设备为所述分析设备时,向所述分析设备发送第二分析报文,其中,所述收集截止标识用于指示在所述收集截止标识所指示的输出点向分析设备输出分析报文;根据所述收集截止标识,确认下一跳网络设备不是所述分析设备时,根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述下一跳网络设备为下一跳交换机或下一跳业务服务 器;根据所述业务链路的标识或者所述收集截止标识,确认所述交换机为所述业务链路中的最后一个网络设备时,向所述分析设备发送第二分析报文。
  26. 一种用于分析业务链路的分析设备,其特征在于,包括:
    接收模块,用于接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识和所述业务链路的已收集信息和分析报文类型标识,所述分析报文类型标识用于指示所述分析报文用于链路分析;
    分析模块,用于根据所述接收模块接收的所述分析报文中的所述分析报文类型标识和所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。
  27. 根据权利要求26所述的分析设备,其特征在于,所述分析设备还包括:
    第一获取模块,用于当所述接收模块接收的分析报文还包括报文排序的标识时,根据所述业务链路的标识,获取所述业务链路的每个分析报文;
    确定模块,用于当从所述第一获取模块获取的所述每个分析报文中,获取到用于表征最后一个报文的报文排序标识时,确定接收到所述业务链路的全部分析报文;
    提取模块,用于从所述确定模块确定的所述全部分析报文中提取所述业务链路的已收集信息。
  28. 根据权利要求26或27所述的分析设备,其特征在于,所述分析设备还包括:
    第二获取模块,用于获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
    发送模块,用于向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述第二获取模块获取的所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路 中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  29. 一种用于触发分析业务链路的网管设备,其特征在于,包括:
    获取模块,用于获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
    发送模块,用于向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述获取模块获取的所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  30. 一种业务链路中的业务服务器,其特征在于,包括:
    接收模块,用于接收所述业务链路中与所述业务服务器通信的交换机发送的第一分析报文,所述第一分析报文包含待收集信息的标识和链路分析标识,所述链路分析标识用于指示所述业务服务器收集所述待收集信息的标识所指示的待收集信息;
    获取模块,用于根据所述接收模块接收的所述第一分析报文中包含的待收集信息的标识,从已记录的信息中获取所述待收集信息;
    发送模块,用于向所述交换机发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于所述获取模块获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  31. 根据权利要求30所述的业务服务器,其特征在于,所述业务服务器还包括:
    处理模块,用于向所述第一分析报文中写入所述获取模块获取的所述待收集信息。
  32. 根据权利要求31所述的业务服务器,其特征在于,所述处理模块包括第一处理子模块和第二处理子模块,
    所述第一处理子模块,用于当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
    所述第二处理子模块,用于根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述第一处理子模块处理后的所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
    所述发送模块,具体用于向所述交换机发送所述第二分析报文,还用于向所述交换机发送所述填满的分析报文,所述填满的第二分析报文被所述交换机发送到所述分析设备。
  33. 一种业务链路的链路分析的系统,其特征在于,包括:交换机、网管设备、分析设备和业务服务器,
    所述交换机为权利要求17-25任一所述的交换机;
    所述网管设备为权利要求29所述的网管设备;
    所述分析设备为权利要求26或27所述的分析设备。
  34. 一种业务链路的链路分析的系统,其特征在于,包括:交换机、分析设备和业务服务器,
    所述交换机为权利要求17-25任一所述的交换机;
    所述分析设备为权利要求28所述的分析设备;
    所述业务服务器为权利要求29-32任一所述的业务服务器。
  35. 一种交换机,其特征在于,包括:输入/输出设备、存储器和处理器,所述存储器用于存储所述处理器执行链路分析的程序;
    其中,所述输入/输出设备用于获取第一分析报文,所述第一分析报文包含待收集信息的标识、所述业务链路的标识和链路分析标识,所述链路分析标识用于指示所述交换机收集所述待收集信息的标识所指示的待收集信息;
    所述处理器用于根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;
    所述输入/输出设备用于根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  36. 根据权利要求35所述的交换机,其特征在于,
    所述输入/输出设备具体用于接收网管设备发送的链路分析消息,所述链路分析消息携带待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息;
    所述处理器,具体用于根据所述分析报文的格式信息,生成由所述格式信息指示格式的第一分析报文,所述第一分析报文包括所述待收集信息的标识、所述业务链路的标识和所述链路分析标识。
  37. 根据权利要求35所述的交换机,其特征在于,
    所述输入/输出设备具体用于接收前一个交换机发送的第一分析报文,所述前一个交换机为所述业务链路中输出所述第一分析报文的交换机。
  38. 根据权利要求35所述的交换机,其特征在于,
    所述输入/输出设备具体用于接收所述业务服务器返回的第一分析报文。
  39. 根据权利要求35所述的交换机,其特征在于,
    所述输入/输出设备具体用于当所述业务链路还包括业务服务器,所述交换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文,当与所述业务服务器通信的环路故障时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文,并向所述分析设备发送所述第一分析报文。
  40. 根据权利要求35所述的交换机,其特征在于,
    所述输入/输出设备具体用于当所述业务链路还包括业务服务器,所述交 换机通过所述交换机上的第一端口向所述业务服务器发送报文,通过所述交换机上的第二端口从所述业务服务器接收报文,当所述业务服务器不识别分析报文时,获取从所述第一端口发出,未经所述业务服务器从所述第二端口环回的第一分析报文。
  41. 根据权利要求35-40任一所述的交换机,其特征在于,
    所述输入/输出设备还用于在根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息之后,向所述第一分析报文中写入获取的所述待收集信息。
  42. 根据权利要求41所述的交换机,其特征在于,
    所述处理器具体用于:
    当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
    根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
    所述输入/输出设备具体用于根据所述业务链路的标识,向下一跳网络设备发送所述第二分析报文,并向所述分析设备发送所述填满的分析报文。
  43. 根据权利要求35-42任一所述的交换机,其特征在于,
    所述处理器还用于当所述第一分析报文还包含收集截止标识时,根据所述收集截止标识,确认下一跳网络设备是否为所述分析设备,所述收集截止标识用于指示在所述收集截止标识所指示的输出点向分析设备输出分析报文;
    所述输入/输出设备具体用于当下一跳网络设备为所述分析设备时,向所述分析设备发送第二分析报文,当下一跳网络设备不是所述分析设备时,根据所述业务链路的标识,向下一跳网络设备发送第二分析报文,所述下一跳网 络设备为下一跳交换机或下一跳业务服务器;
    所述处理器还用于根据所述业务链路的标识或者所述收集截止标识,确认所述交换机为所述业务链路中的最后一个网络设备;
    所述输入/输出设备具体用于当所述交换机为所述业务链路中的最后一个网络设备时,向所述分析设备发送第二分析报文。
  44. 一种分析设备,其特征在于,包括:输入/输出设备、存储器和处理器,所述存储器用于存储所述处理器执行链路分析的程序;
    输入/输出设备用于接收交换机发送的分析报文,所述分析报文包含所述业务链路的标识、所述业务链路的已收集信息和分析报文类型标识,所述分析报文类型标识用于指示所述分析报文用于链路分析;
    所述处理器用于根据所述分析报文类型标识和所述业务链路的已收集信息,分析所述业务链路的标识指示的所述业务链路。
  45. 根据权利要求44所述的分析设备,其特征在于,
    所述处理器,还用于当所述分析报文还包括报文排序的标识时,根据所述业务链路的标识,获取所述业务链路的每个分析报文;当从所述每个分析报文中,获取到用于表征最后一个报文的报文排序标识时,确定接收到所述业务链路的全部分析报文;从所述全部分析报文中提取所述业务链路的已收集信息。
  46. 根据权利要求44或45所述的分析设备,其特征在于,
    所述输入/输出设备用于还用于:
    获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
    向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分 析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  47. 一种网管设备,其特征在于,包括:输入/输出设备、存储器和处理器,所述存储器用于存储所述处理器执行链路分析的程序;
    输入/输出设备用于:
    获取所述业务链路的分析配置,所述分析配置包括待收集信息的标识、所述业务链路的标识、链路分析标识和分析报文的格式信息,其中,所述链路分析标识用于指示所述业务链路中的交换机收集所述待收集信息的标识所指示的待收集信息;
    向所述业务链路中的第一个交换机发送链路分析消息,所述链路分析消息携带所述分析配置,其中,所述分析报文的格式信息用于所述第一个交换机生成所述格式信息所指示格式的第一分析报文,所述待收集信息的标识用于指示所述业务链路中的交换机收集所述待收集信息,所述业务链路的标识和所述收集截止标识用于指示所述业务链路中的交换机向下一跳网络设备发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  48. 一种业务服务器,其特征在于,包括:输入/输出设备、存储器和处理器,所述存储器用于存储所述处理器执行链路分析的程序;
    所述输入/输出设备用于接收所述业务链路中与所述业务服务器通信的交换机发送的第一分析报文,所述第一分析报文包含待收集信息的标识和链路分析标识,所述链路分析标识用于指示所述业务服务器收集所述待收集信息的标识所指示的待收集信息;
    所述处理器用于根据所述待收集信息的标识,从已记录的信息中获取所述待收集信息;
    所述输入/输出设备向所述交换机发送第二分析报文,所述第二分析报文包括已收集信息,所述已收集信息包含于获取的所述待收集信息,所述已收集信息被分析设备用于分析所述业务链路。
  49. 根据权利要求48所述的业务服务器,其特征在于,
    所述输入/输出设备还用于向所述第一分析报文中写入获取的所述待收集信息。
  50. 根据权利要求49所述的业务服务器,其特征在于,
    所述处理器具体用于:
    当所述第一分析报文的数据填充空间小于获取的所述待收集信息所需的空间时,向所述第一分析报文中写入获取的所述待收集信息中的一部分信息,并将所述第一分析报文中用于表征最后一个报文的报文排序标识清除,得到一个填满的分析报文;
    根据所述第一分析报文,生成一个新的分析报文,当所述新的分析报文的数据填充空间大于所述除所述一部分信息之外的信息所需要的空间时,向所述新的分析报文中写入获取的所述待收集信息中除所述一部分信息之外的信息,并在所述新的分析报文中添加用于表征最后一个报文的报文排序标识,得到第二分析报文;
    所述输入/输出设备具体用于向所述交换机发送所述第二分析报文,并向所述交换机发送所述填满的分析报文,所述填满的第二分析报文被所述交换机发送到所述分析设备。
PCT/CN2015/082858 2015-04-20 2015-06-30 一种链路分析的方法、设备及系统 WO2016169121A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510187499.6A CN104954165B (zh) 2015-04-20 2015-04-20 一种链路分析的方法、设备及系统
CN201510187499.6 2015-04-20

Publications (1)

Publication Number Publication Date
WO2016169121A1 true WO2016169121A1 (zh) 2016-10-27

Family

ID=54168541

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082858 WO2016169121A1 (zh) 2015-04-20 2015-06-30 一种链路分析的方法、设备及系统

Country Status (2)

Country Link
CN (1) CN104954165B (zh)
WO (1) WO2016169121A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006822A (zh) * 2020-07-16 2022-02-01 中国移动通信有限公司研究院 交换机和服务器之间链路的判断方法及装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105636100B (zh) * 2015-12-31 2019-01-18 京信通信系统(中国)有限公司 一种数据链路监测方法及装置
CN107229619B (zh) * 2016-03-23 2020-07-28 阿里巴巴集团控股有限公司 互联网业务链路调用情况的统计、展示方法及装置
CN109559121B (zh) * 2018-12-03 2022-04-26 深圳前海微众银行股份有限公司 交易路径调用异常分析方法、装置、设备及可读存储介质
CN111698168B (zh) * 2020-05-20 2022-06-28 北京吉安金芯信息技术有限公司 消息处理方法、装置、存储介质及处理器
CN111740877B (zh) * 2020-05-29 2021-08-10 苏州浪潮智能科技有限公司 一种链路检测方法及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102273A (zh) * 2007-07-20 2008-01-09 中兴通讯股份有限公司 宽带接入设备及宽带接入方法
US7450908B1 (en) * 2004-10-26 2008-11-11 At&T Corp. Method for user-aided network performance and connection quality reporting
CN103491555A (zh) * 2012-06-13 2014-01-01 中国移动通信集团湖南有限公司 一种基于业务信息定位ip链路故障的方法、设备和系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004246836A (ja) * 2003-02-10 2004-09-02 Norio Goto 説明付きコンテンツ取得システムおよびプログラム
CN1921432B (zh) * 2006-09-15 2011-05-18 华为技术有限公司 报文发送方法及其装置
CN101159695A (zh) * 2007-11-16 2008-04-09 杭州华三通信技术有限公司 链路选择方法和设备
US8635668B1 (en) * 2012-07-11 2014-01-21 International Business Machines Corporation Link analysis tool for security information handling system
WO2014059590A1 (zh) * 2012-10-16 2014-04-24 华为技术有限公司 一种获知虚链路状态的方法及设备
CN104506423A (zh) * 2014-12-30 2015-04-08 华夏银行股份有限公司 一种通讯方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7450908B1 (en) * 2004-10-26 2008-11-11 At&T Corp. Method for user-aided network performance and connection quality reporting
CN101102273A (zh) * 2007-07-20 2008-01-09 中兴通讯股份有限公司 宽带接入设备及宽带接入方法
CN103491555A (zh) * 2012-06-13 2014-01-01 中国移动通信集团湖南有限公司 一种基于业务信息定位ip链路故障的方法、设备和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006822A (zh) * 2020-07-16 2022-02-01 中国移动通信有限公司研究院 交换机和服务器之间链路的判断方法及装置

Also Published As

Publication number Publication date
CN104954165B (zh) 2018-09-07
CN104954165A (zh) 2015-09-30

Similar Documents

Publication Publication Date Title
US11876883B2 (en) Packet processing method, network node, and system
WO2016169121A1 (zh) 一种链路分析的方法、设备及系统
US11792046B2 (en) Method for generating forwarding information, controller, and service forwarding entity
US11075824B2 (en) In-line performance monitoring
EP3364603B1 (en) Flow and time based reassembly of fragmented packets by ip protocol analyzers
US10361969B2 (en) System and method for managing chained services in a network environment
EP3278503B1 (en) Method of packet marking for flow analytics
JP4774357B2 (ja) 統計情報収集システム及び統計情報収集装置
CN116057900A (zh) 用于确定网络路径跟踪的系统和方法
JP4769609B2 (ja) スイッチ装置
US20160285735A1 (en) Techniques for efficiently programming forwarding rules in a network system
CN110557342B (zh) 用于分析和减轻丢弃的分组的设备
CN111314179B (zh) 网络质量检测方法、装置、设备和存储介质
US10623278B2 (en) Reactive mechanism for in-situ operation, administration, and maintenance traffic
CN106789625A (zh) 一种环路检测方法及装置
CN104038382B (zh) 网络监视系统
US20160248652A1 (en) System and method for classifying and managing applications over compressed or encrypted traffic
CN114095383B (zh) 网络流量采样方法、系统和电子设备
CN105704057B (zh) 确定突发端口拥塞丢包的业务类型的方法和装置
CN112671662A (zh) 数据流加速方法、电子设备和存储介质
WO2022227788A1 (zh) 网络切片资源信息的收集方法、装置及存储介质
WO2023093227A1 (zh) 信息的收集方法、装置、存储介质及电子装置
CN113824720B (zh) 报文处理方法、装置、设备及存储介质
CN117478564A (zh) SRv6网络的业务测量方法以及SRv6网络
CN117061331A (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: 15889610

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15889610

Country of ref document: EP

Kind code of ref document: A1