CN107453890B - Method and device for automatically determining port flow monitoring points - Google Patents

Method and device for automatically determining port flow monitoring points Download PDF

Info

Publication number
CN107453890B
CN107453890B CN201610381580.2A CN201610381580A CN107453890B CN 107453890 B CN107453890 B CN 107453890B CN 201610381580 A CN201610381580 A CN 201610381580A CN 107453890 B CN107453890 B CN 107453890B
Authority
CN
China
Prior art keywords
port
network
network element
monitoring point
side port
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610381580.2A
Other languages
Chinese (zh)
Other versions
CN107453890A (en
Inventor
孙凯意
李静罡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610381580.2A priority Critical patent/CN107453890B/en
Priority to PCT/CN2017/077760 priority patent/WO2017206574A1/en
Publication of CN107453890A publication Critical patent/CN107453890A/en
Application granted granted Critical
Publication of CN107453890B publication Critical patent/CN107453890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/04Network management architectures or arrangements
    • H04L41/042Network management architectures or arrangements comprising distributed management centres cooperatively managing the network
    • 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/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control

Abstract

The invention discloses a method and a device for automatically determining a port flow monitoring point, which relate to the field of network flow monitoring and management analysis in the field of communication, and the method comprises the following steps: acquiring physical ports of the whole network according to the network topology link; if the physical port is a user side port, determining whether the user side port is a monitoring point according to a network element level of a network element where the user side port is located and a preset monitoring point rule based on the network element level; if the physical port is a network side port, respectively determining whether the network side port and the opposite port are monitoring points according to the network element level of the network element where the network side port and the opposite port are located and the monitoring point rule. The embodiment of the invention can accurately and quickly automatically determine the whole network port flow monitoring points, and avoids calculation errors caused by manually determining the whole network flow monitoring points.

Description

Method and device for automatically determining port flow monitoring points
Technical Field
The invention relates to the field of network traffic monitoring and management analysis in the field of communication, in particular to a method and a device for determining a port traffic monitoring point.
Background
A professional network flow monitoring and management analysis system is used for ensuring that an operator comprehensively masters the use condition of the network flow of a professional network, reasonably counting the use efficiency of resources, effectively carrying out resource early warning expansion and flow balance optimization work, preventing network congestion and practically guaranteeing the transmission quality of various services. The basic parameter of network flow monitoring is the number of transmitted and received bytes of a certain monitoring object in a certain acquisition period, and the received flow and the transmitted flow in the acquisition period can be calculated from the number of the received and transmitted bytes.
For the selection of the flow monitoring points, the determination needs to be performed according to different networking schemes. Under the condition of huge and complex networking, the flow monitoring points of the whole network are determined manually according to the monitoring point selection scheme, so that the efficiency is low and errors are easy to make.
Disclosure of Invention
The technical problem solved by the technical scheme provided by the embodiment of the invention is how to automatically determine the port flow monitoring point.
The method for determining the port flow monitoring point provided by the embodiment of the invention comprises the following steps:
acquiring a physical port in a network according to the network topology link;
if the physical port is a user side port, determining whether the user side port is a monitoring point according to a network element level of a network element where the user side port is located and a preset monitoring point rule based on the network element level;
if the physical port is a network side port, respectively determining whether the network side port and the opposite port are monitoring points according to the network element level of the network element where the network side port and the opposite port are located and the monitoring point rule.
Preferably, if the physical port is a user-side port, the step of determining whether the user-side port is a monitoring point according to a network element hierarchy of a network element in which the user-side port is located and a preset monitoring point rule based on the network element hierarchy includes:
acquiring a network element level of a network element where the user side port is located;
and if the obtained network element level of the network element where the user side port is located meets the monitoring point rule, determining that the user side port is the monitoring point.
Preferably, if the physical port is a network-side port, the step of respectively determining whether the network-side port and the opposite-end port are monitoring points according to the network element hierarchy of the network element where the network-side port and the opposite-end port are located and the monitoring point rule includes:
acquiring the network element level of the network element where the network side port is located;
acquiring a network element level of a network element where an opposite end port connected with the network side port is located;
when the network element levels of the network element where the network side port and the opposite end port are located are respectively used as a first input condition and a second input condition, the monitoring point rule is met, and the network side port is determined to be a monitoring point;
and when the network element levels of the network elements where the network side port and the opposite end port are located are respectively used as a second input condition and a first input condition, the monitoring point rule is met, and the opposite end port is determined to be a monitoring point.
Preferably, the method further comprises the following steps:
when a certain physical port is in a specified network element level and whether the certain physical port is a monitoring point is not determined, acquiring an end-to-end service name associated with the physical port;
determining an opposite end port of the physical port by using the end-to-end service name;
respectively acquiring network element levels of network elements where a physical port and an opposite port are located;
and when the network element levels of the network elements where the network-side port and the opposite-end port are located are respectively used as a first input condition and a second input condition, the monitoring point rule is satisfied, and the network-side port is determined to be a monitoring point.
Preferably, the step of determining the opposite port of the physical port by using the end-to-end service name includes:
acquiring a corresponding end-to-end pseudo wire according to the end-to-end service name;
and determining the opposite end port of the physical port by matching the network element name of the network element where the physical port is located with the network element name of the network element where the local end/opposite end port of the end-to-end pseudo wire is located.
According to the storage medium provided by the embodiment of the invention, the program for realizing the method for determining the port flow monitoring point is stored.
The device for determining the port flow monitoring point provided by the embodiment of the invention comprises the following components:
the port acquisition module is used for acquiring a physical port in a network according to the network topological link;
and when the physical port is a network side port, respectively determining whether the network side port and an opposite port thereof are monitoring points according to the network element level of the network element where the network side port is located and the preset monitoring point rule based on the network element level.
Preferably, the monitoring point determining module obtains a network element hierarchy of a network element where the user-side port is located, and if the obtained network element hierarchy of the network element where the user-side port is located meets the monitoring point rule, determines that the user-side port is a monitoring point.
Preferably, the monitoring point determining module obtains a network element hierarchy of a network element where the network-side port and an opposite-end port connected thereto are located, and when the network element hierarchy of the network element where the network-side port and the opposite-end port are located are respectively used as a first input condition and a second input condition, the monitoring point rule is satisfied, it is determined that the network-side port is a monitoring point, and when the network element hierarchy of the network element where the network-side port and the opposite-end port are located are respectively used as a second input condition and a first input condition, the monitoring point rule is satisfied, it is determined that the opposite-end port is a monitoring point.
Preferably, the monitoring point determining module is further configured to, when a certain physical port is located in an assigned network element level and whether the certain physical port is a monitoring point is not determined, obtain an end-to-end service name associated with the physical port, determine an opposite end port of the physical port by using the end-to-end service name, and when the network element levels of the network elements where the network-side port and the opposite end port are located are respectively used as a first input condition and a second input condition, satisfy the monitoring point rule, and determine that the network-side port is a monitoring point.
Preferably, the monitoring point determining module obtains a corresponding end-to-end pseudo wire according to the end-to-end service name, and determines an opposite end port of the physical port by matching a network element name of a network element where the physical port is located with a network element name of a network element where a home end/opposite end port of the end-to-end pseudo wire is located.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the embodiment of the invention can accurately and quickly automatically determine the whole network port flow monitoring points, and avoids calculation errors caused by manually determining the whole network flow monitoring points.
Drawings
Fig. 1 is a block diagram of a method for determining a port traffic monitoring point according to a first embodiment of the present invention;
FIG. 2 is a block diagram of an apparatus for determining a port flow monitoring point according to a second embodiment of the present invention;
FIG. 3 is a flow diagram of the device of FIG. 2 determining whether a user-side port is a monitoring point;
FIG. 4 is a flow diagram of the apparatus of FIG. 2 determining whether a port at a particular network level for which it is not determined that a watchpoint type cache is empty is a watchpoint;
FIG. 5 is a flow diagram of the device of FIG. 2 determining whether a network-side port is a monitoring point;
fig. 6 is a flowchart of determining a port traffic monitoring point according to a third embodiment of the present invention;
fig. 7 is a flowchart for determining a port traffic monitoring point according to a fourth embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
Fig. 1 is a block diagram of a method for determining a port traffic monitoring point according to a first embodiment of the present invention, as shown in fig. 1, the steps include:
step S101: and acquiring all physical ports in the network according to the network topology link.
Step S102: and determining whether the physical port is a monitoring point according to the port role of the physical port and a preset monitoring point rule based on the network element hierarchy.
The port roles of the physical ports include user-side ports and network-side ports, where the connecting fibers are network-side ports, otherwise user-side ports.
1. Case where the physical port is a user-side port
And determining whether the user-side port is a monitoring point according to the network element level of the network element where the user-side port is located and a preset monitoring point rule related to the network element level. Specifically, the network element level of the network element where the user-side port is located is obtained from the network element information of the whole network obtained in advance, and if the obtained network element level of the network element where the user-side port is located meets the monitoring point rule, it is determined that the user-side port is the monitoring point.
2. Case where the physical port is a network-side port
And respectively determining whether the network side port and the opposite port are monitoring points according to the network element level of the network element where the network side port and the opposite port are located and the monitoring point rules. Specifically, an opposite end port of a network side port, that is, a port connected to the network side port, is obtained according to a full network topology link, then network element hierarchies of a network element where the network side port and the opposite end port are located are obtained from network element information of the whole network in advance, when the network element hierarchies of the network element where the network side port and the opposite end port are located are respectively used as a first input condition and a second input condition, a monitoring point rule is satisfied, it is determined that the network side port is a monitoring point, and when the network element hierarchies of the network element where the network side port and the opposite end port are located are respectively used as the second input condition and the first input condition, the monitoring point rule is satisfied, it is determined that the opposite end port is a monitoring point.
3. Other cases
When a certain physical port is in the appointed network element level and whether the certain physical port is the monitoring point is not determined, an end-to-end service name associated with the physical port is obtained, an opposite end port of the physical port is determined by using the end-to-end service name, and when the network element levels of the network element where the network side port and the opposite end port are located are respectively used as a first input condition and a second input condition, the monitoring point rule is met, and the network side port is determined to be the monitoring point.
The corresponding end-to-end pseudo wire is obtained according to the end-to-end service name, and the opposite end port of the physical port is determined by matching the network element name of the network element where the physical port is located with the network element name of the network element where the local end/opposite end port of the end-to-end pseudo wire is located. For example, if the network element name of the network element where the physical port is located matches the network element name of the network element where the local end port of the end-to-end pseudo-wire is located, the opposite end port of the end-to-end pseudo-wire is used as the opposite end port of the physical port.
It should be noted that the network element hierarchy refers to a core layer, a convergence layer, an access layer, and the like.
It should be noted that the monitoring point rule may be a monitoring point rule list that takes the network element hierarchy as an input condition and the monitoring point as an output result, for example, if the network element hierarchy of the network element where the user layer port is located meets the input condition in the monitoring point rule list, the user layer port is determined as the monitoring point. The monitoring point rule can also be a monitoring point rule configuration file, and if the network element hierarchy corresponding to the physical port is matched with the network element hierarchy in the monitoring point rule configuration file, the physical port is determined as a monitoring point.
The embodiment of the invention can provide a method for automatically calculating or determining the port flow monitoring points when the network flow monitoring and management analysis system carries out flow analysis, can meet the requirement of accurately and quickly determining the whole network flow monitoring points by automatically calculating or determining the port flow monitoring points, and avoids calculation errors caused by manual calculation.
It will be understood by those skilled in the art that all or part of the steps in the method according to the above embodiments may be implemented by a program, which may be stored in a computer-readable storage medium, and includes steps S101 to S104 when the program is executed. The storage medium may be ROM/RAM, magnetic disk, optical disk, etc.
Fig. 2 is a block diagram of an apparatus for determining a port flow monitoring point according to a second embodiment of the present invention, as shown in fig. 2, including:
and the port acquisition module 10 is configured to acquire a physical port in a network according to the network topology link.
The monitoring point determining module 20 determines whether the physical port is a monitoring point according to the port role of the physical port and a preset monitoring point rule based on the network element hierarchy.
When the physical port is a user-side port, the monitoring point determining module 20 determines whether the user-side port is a monitoring point according to a network element level of a network element where the user-side port is located and a preset monitoring point rule related to the network element level. Specifically, the monitoring point determining module 20 obtains a network element level of a network element where the user-side port is located, and determines that the user-side port is a monitoring point if the obtained network element level of the network element where the user-side port is located satisfies the monitoring point rule.
When the physical port is a network-side port, the monitoring point determining module 20 determines whether the network-side port and the opposite-end port are monitoring points respectively according to the network element hierarchy of the network element where the network-side port and the opposite-end port are located and the monitoring point rule. Specifically, the monitoring point determining module 20 obtains the network element levels of the network element where the network-side port and the opposite-end port connected thereto are located, and when the network element levels of the network element where the network-side port and the opposite-end port are located are respectively used as the first input condition and the second input condition, it is determined that the network-side port is the monitoring point, and when the network element levels of the network element where the network-side port and the opposite-end port are located are respectively used as the second input condition and the first input condition, it is determined that the opposite-end port is the monitoring point, and it is determined that the monitoring point is satisfied that the monitoring point is the monitoring point.
When a certain physical port is in the designated network element level and whether the certain physical port is a monitoring point is not determined, the monitoring point determining module 20 obtains an end-to-end service name associated with the physical port, determines an opposite end port of the physical port by using the end-to-end service name, and when the network element levels of the network element where the network side port and the opposite end port are located are respectively used as a first input condition and a second input condition, the network side port is determined to be the monitoring point if the monitoring point rule is satisfied. The monitoring point determining module 20 obtains the corresponding end-to-end pseudo wire according to the end-to-end service name, and determines the opposite end port of the physical port by matching the network element name of the network element where the physical port is located with the network element name of the network element where the local end/opposite end port of the end-to-end pseudo wire is located.
In practical application, the method can comprise the following steps: firstly, inquiring all physical ports, and distinguishing the roles of the ports (namely, the port connected with the optical fiber is a network side port, and otherwise, the port is a user side port); secondly, inquiring the hierarchy of the network elements of the whole network, traversing ports of the whole network, repeating the steps E-G, and if monitoring points (namely physical ports confirmed as the monitoring points) exist in the cache, not repeating the calculation, wherein the calculation rule is as follows:
step E includes steps S201 to S204, which are processing steps when the physical port is a user-side port, as shown in fig. 3, specifically as follows:
step S201: a user side port for acquiring the network element level;
step S202: reading a rule configuration file of a monitoring point;
step S203: and matching the network element hierarchy with the rules, determining whether the network element hierarchy is a monitoring point, determining the type of the monitoring point, and storing the result into a cache.
Step F includes steps S301 to S307, which are steps of calculating monitoring points when the physical port is a network-side port, as shown in fig. 4, specifically as follows:
step S301: acquiring a network element where an opposite end port connected with the port is located through topological link;
step S302: acquiring the network element level and acquiring the opposite terminal network element level;
step S303: reading a rule configuration file of a monitoring point;
step S303: and matching processing is carried out, and monitoring points are determined.
The port reads the rule configuration file of the monitoring point, matches the network element level of the port and the network element level of the opposite end with the rule, determines whether the port is the monitoring point, determines the type of the monitoring point and stores the result into a cache;
reading a rule configuration file of the monitoring point by the opposite terminal port, matching the opposite terminal network element hierarchy and the local terminal network element hierarchy with the rule, determining whether the opposite terminal port is the monitoring point, determining the type of the monitoring point, and storing the result in a cache;
step G includes steps S401 to S403, after the port passes through step E, F, if the port is in a specific network element level and is not determined to be a monitoring point, further determination needs to be performed, as shown in fig. 5, the specific steps are as follows:
step S401: acquiring an end-to-end service name list where the port is located;
step S402: acquiring an end-to-end pseudo wire list of the whole network;
step S403: and traversing the end-to-end service list until the port monitoring point can be determined.
The specific method comprises the following steps:
s4031: firstly, matching an end-to-end service name with an end-to-end pseudowire client layer name to find an end-to-end pseudowire list pwSncList corresponding to the service;
s4032: matching the network element where the port is located with the A/Z endpoint of each end-to-end pseudo wire in the pwSncList, and acquiring the network element name of the opposite end after matching;
s4033: acquiring a network element level of an opposite terminal network element;
s4034: and determining whether the port is a monitoring point or not, determining the type of the monitoring point and storing the result into a cache.
Fig. 6 is a flowchart of determining a port traffic monitoring point according to a third embodiment of the present invention, and as shown in fig. 6, the steps include:
step S501: and querying the physical port of the whole network.
Inquiring a database, acquiring all physical ports of the whole network, and storing each physical port into a MapPort structure according to the key value relationship between the port name and a port object FtpPhysicPortData. The information contained in the port object is the port role and the monitoring point type, the port role is initialized to be a user side port, and the monitoring point is initialized to be null.
Step S502: distinguishing the port roles.
Firstly, a database is queried to obtain the topology connection of the whole network, and the topology connection is stored in a TopoLinkList _ T linked list structure. Traversing the a endpoint and the Z endpoint of the TopoLinkList _ T linked list, if the analyzed endpoints include a certain physical port, updating the role of the physical port in the MapPort of step S501 to the role of the network side.
Secondly, inquiring a database, acquiring network element information of the whole network, and storing the network element information into a MapME structure, wherein the key value pairs are network element names and network element hierarchies.
Then, traverse physical port Map, obtain the user role attribute of port object FtpPhysicPortData.
Step S503: and calculating monitoring points of the user side ports.
If the monitoring point is a user side port, in the MapME, the level information of the network element where the port is located is obtained, the rule configuration file of the monitoring point is read, the network element level is matched with the rule, the port which accords with the rule of the monitoring point can obtain the type of the monitoring point, and then the type of the monitoring point of the corresponding port in the MapPort is updated.
Step S504: and calculating a network side port detection point.
If the monitoring point is a network side port, traversing a TopoLinkList _ T linked list structure, acquiring the name of an opposite end port, then acquiring the network element level of the network element where the port is located and the network element level of the network element where the opposite end port is located in the MapME, reading a monitoring point rule configuration file, matching the information of the two network element levels with the monitoring point rule, acquiring the type of the monitoring point if the monitoring point is in accordance with the rule, and updating the monitoring point type of the corresponding port (including the port and the opposite end port) in the MapPort if the monitoring point type in the MapPort is empty.
Step S505: and (4) performing a supplementary algorithm on the ports of the undetermined monitoring points.
Firstly, traversing all types of services of the whole network, and acquiring an end-to-end service name list sncList used by a port. Thus, if the port is multiplexed in ethernet service 1 and ethernet service 2, where the end-to-end name of ethernet service 1 is snc1 and the end-to-end name of ethernet service 1 is snc2, two elements snc1 and snc2 are stored in the snclst.
Secondly, inquiring the end-to-end service information of the whole network and the end-to-end pseudo wire, and initializing the structures MapA and MapB. Traversing an end-to-end pseudo wire, and storing a key value pair as an end-to-end pseudo wire name and a pseudo wire specific object in MapA, wherein the pseudo wire specific object comprises an A endpoint name and a Z endpoint name of the pseudo wire; in MapB, the key value pair is stored as the name of the end-to-end pseudo-wire client layer and the list of the end-to-end pseudo-wire names of the client layer service.
Then, traversing the elements in the sncList, e.g., first to snc1, finds the end-to-end pseudowire list pwSncList1 in MapB with snc1 as the primary key, assuming that two end-to-end pseudowires pwSnc1 and pwSnc2 are contained in pwSncList 1. And traversing pwSncList1, for example, first traversing to pwSnc1, finding a pseudo-wire object pw1 with pwSnc1 as a primary key in MapA, then comparing A, Z end points of pw1 with the network element name, and if the A end point is the same as the network element name, taking the network element name of the Z end point. The method comprises the steps of obtaining network element levels of network elements where a local port and an opposite port are located in a MapME, reading a monitoring point rule configuration file, matching information of the two network element levels with monitoring point rules, obtaining a monitoring point type if the rules are met, and updating the monitoring point type of a corresponding port (including the local port and the opposite port) in the MapPort if the monitoring point type in the MapPort is empty. And in the process of traversing the sncList, the type of the monitoring point is obtained, and then the traversing is stopped.
Step S506: and ending the flow.
Fig. 7 is a flowchart of determining a port traffic monitoring point according to a fourth embodiment of the present invention, and as shown in fig. 7, the steps include:
step S601: and inquiring the physical port of the whole network and storing the physical port into the MapPort structure.
Step S602: and inquiring the topology connection of the whole network, updating the port role of the physical port in the MapPort in the step S601, and initializing the type of the monitoring point to be null.
Step S603: caching the whole network element hierarchy.
Step S604: the physical port is traversed.
Step S605: and judging whether the physical port is a user side port, if so, executing the step S606, otherwise, executing the step S607.
Step S606: and acquiring the network element level of the local end (namely the network element level of the network element where the user side port is located).
Step S607: and acquiring the opposite terminal network element through the topology cache.
Step S608: and acquiring the network element levels of the local terminal and the opposite terminal (namely the network element levels of the network side port and the network element where the opposite terminal port is located).
Step S609: and acquiring a monitoring point rule.
Step S610: and matching with the monitoring point rule.
For the user side port, matching the network element level of the network element where the user side port is located with the monitoring point rule;
and for the network side port, matching the network element level of the network element where the network side port and the opposite end port are located with the monitoring point rule.
Step S611: and if the monitoring point type is matched with the monitoring point type, acquiring the monitoring point type, and storing the monitoring point type in the MapPort with empty monitoring point type cache.
Step S612: and if the port meets the specific network element level and the type cache of the monitoring point is empty, executing a step S603 if the port meets the specific network element level and otherwise executing a step S623.
Step S613: and acquiring a whole network end-to-end service list (namely an end-to-end service name list).
Step S614: establish the MapA of the end-to-end pseudowire name and a/Z point.
Step S615: MapB that establishes end-to-end service names and end-to-end pseudowire lists (i.e., end-to-end pseudowire name lists).
Step S616: and traversing the whole network end-to-end service list.
Step S617: and acquiring a corresponding end-to-end pseudowire list from the MapB.
Step S618: an end-to-end pseudowire list is traversed.
Step S619: and acquiring the A/Z point of the pseudo wire, namely the home terminal port/the opposite terminal port from the MapA.
Step S620: and taking the local network element level of the network element where the local port is located and the network element level of the network element where the opposite port is located as input conditions.
Step S621: and matching the input conditions with the monitoring point rules.
Step S622: if the physical port is matched with the monitoring point, the physical port is the monitoring point, and the type of the monitoring point is obtained and cached.
Step S623: and ending the flow.
In summary, the embodiments of the present invention have the following technical effects:
the embodiment of the invention can automatically determine the type of the port flow monitoring point, and has high determination speed and high accuracy.
Although the present invention has been described in detail hereinabove, the present invention is not limited thereto, and various modifications can be made by those skilled in the art in light of the principle of the present invention. Thus, modifications made in accordance with the principles of the present invention should be understood to fall within the scope of the present invention.

Claims (10)

1. A method for automatically determining a port flow monitoring point comprises the following steps:
determining whether the acquired physical port in the network is a user-side port or a network-side port according to network topology connection;
if the physical port in the acquired network is determined to be a user side port, determining whether the user side port is a monitoring point according to a network element level of a network element where the user side port is located and a preset monitoring point rule based on the network element level;
if the physical port in the acquired network is determined to be a network side port, respectively determining whether the network side port and the opposite port thereof are monitoring points according to the network element level of the network element where the network side port is located, the network element level of the network element where the opposite port connected with the network side port is located and the monitoring point rule.
2. The method according to claim 1, wherein if it is determined that the physical port in the acquired network is a user-side port, the step of determining whether the user-side port is a monitoring point according to a network element hierarchy of a network element in which the user-side port is located and a preset monitoring point rule based on the network element hierarchy includes:
acquiring a network element level of a network element where the user side port is located;
and if the obtained network element level of the network element where the user side port is located meets the monitoring point rule, determining that the user side port is the monitoring point.
3. The method according to claim 1, wherein if it is determined that the physical port in the acquired network is a network-side port, the step of determining whether the network-side port and its opposite port are monitoring points according to a network element hierarchy of a network element in which the network-side port is located, a network element hierarchy of a network element in which an opposite port connected to the network-side port is located, and the monitoring point rule respectively comprises:
acquiring the network element level of the network element where the network side port is located;
acquiring a network element level of a network element where an opposite end port connected with the network side port is located;
when the network element levels of the network element where the network side port and the opposite end port are located are respectively used as a first input condition and a second input condition, the monitoring point rule is met, and the network side port is determined to be a monitoring point;
and when the network element levels of the network elements where the network side port and the opposite end port are located are respectively used as a second input condition and a first input condition, the monitoring point rule is met, and the opposite end port is determined to be a monitoring point.
4. The method of any of claims 1-3, further comprising:
when a certain physical port is in a specified network element level and whether the certain physical port is a monitoring point is not determined, acquiring an end-to-end service name associated with the physical port;
determining an opposite end port of the physical port by using the end-to-end service name;
and when the network element levels of the network elements where the network-side port and the opposite-end port are located are respectively used as a first input condition and a second input condition, the monitoring point rule is satisfied, and the network-side port is determined to be a monitoring point.
5. The method of claim 4, wherein the step of determining the port opposite the physical port using the end-to-end service name comprises:
acquiring a corresponding end-to-end pseudo wire according to the end-to-end service name;
and determining the opposite end port of the physical port by matching the network element name of the network element where the physical port is located with the network element name of the network element where the local end/opposite end port of the end-to-end pseudo wire is located.
6. An apparatus for automatically determining port flow monitoring points, comprising:
the port acquisition module is used for determining whether an acquired physical port in a network is a user-side port or a network-side port according to network topology connection;
a monitoring point determining module, configured to determine whether the user-side port is a monitoring point according to a network element hierarchy of a network element in which the user-side port is located and a preset monitoring point rule based on the network element hierarchy when it is determined that the physical port in the acquired network is the user-side port, and determine whether the network-side port and an opposite-end port thereof are monitoring points according to the network element hierarchy of the network element in which the network-side port is located, the network element hierarchy of the network element in which the opposite-end port connected to the network-side port is located, and the monitoring point rule when it is determined that the physical port in the acquired network is the network-side port.
7. The apparatus according to claim 6, wherein the monitoring point determining module obtains a network element hierarchy of a network element in which the user-side port is located, and determines that the user-side port is a monitoring point if the obtained network element hierarchy of the network element in which the user-side port is located satisfies the monitoring point rule.
8. The apparatus according to claim 7, wherein the monitoring point determining module obtains a network element hierarchy of a network element where the network-side port and an opposite-end port connected thereto are located, and when the network element hierarchy of the network element where the network-side port and the opposite-end port are located are respectively used as a first input condition and a second input condition, the monitoring point rule is satisfied, it is determined that the network-side port is a monitoring point, and when the network element hierarchy of the network element where the network-side port and the opposite-end port are located are respectively used as the second input condition and the first input condition, the monitoring point rule is satisfied, it is determined that the opposite-end port is a monitoring point.
9. The apparatus according to any one of claims 6 to 8, wherein the monitoring point determining module is further configured to, when a certain physical port is located in a specified network element hierarchy and it is not yet determined whether the certain physical port is a monitoring point, obtain an end-to-end service name associated with the physical port, determine an opposite port of the physical port by using the end-to-end service name, and determine that the network-side port is a monitoring point if the monitoring point rule is satisfied when network element hierarchies of network elements in which the network-side port and the opposite port are located are respectively used as a first input condition and a second input condition.
10. The apparatus of claim 9, wherein the monitoring point determining module obtains a corresponding end-to-end pseudo wire according to the end-to-end service name, and determines the end-to-end port of the physical port by matching the network element name of the network element where the physical port is located with the network element name of the network element where the end-to-end pseudo wire is located.
CN201610381580.2A 2016-06-01 2016-06-01 Method and device for automatically determining port flow monitoring points Active CN107453890B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610381580.2A CN107453890B (en) 2016-06-01 2016-06-01 Method and device for automatically determining port flow monitoring points
PCT/CN2017/077760 WO2017206574A1 (en) 2016-06-01 2017-03-22 Method and apparatus for determining port flow monitoring point, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610381580.2A CN107453890B (en) 2016-06-01 2016-06-01 Method and device for automatically determining port flow monitoring points

Publications (2)

Publication Number Publication Date
CN107453890A CN107453890A (en) 2017-12-08
CN107453890B true CN107453890B (en) 2022-03-22

Family

ID=60478473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610381580.2A Active CN107453890B (en) 2016-06-01 2016-06-01 Method and device for automatically determining port flow monitoring points

Country Status (2)

Country Link
CN (1) CN107453890B (en)
WO (1) WO2017206574A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355460A (en) * 2008-09-05 2009-01-28 北京工业大学 Method for setting network flux monitoring point
CN102752158A (en) * 2011-04-20 2012-10-24 中兴通讯股份有限公司 Business flow monitoring method and device
CN104426801A (en) * 2013-09-05 2015-03-18 中国移动通信集团广东有限公司 Method and device for planning PTN (packet transport network)
CN104734899A (en) * 2013-12-19 2015-06-24 中国移动通信集团四川有限公司 Method and device for adjusting bandwidth parameter

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7702732B1 (en) * 1999-09-29 2010-04-20 Nortel Networks Limited Methods for auto-configuring a router on an IP subnet
US7684322B2 (en) * 2004-07-01 2010-03-23 Nortel Networks Limited Flow admission control in an IP network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355460A (en) * 2008-09-05 2009-01-28 北京工业大学 Method for setting network flux monitoring point
CN102752158A (en) * 2011-04-20 2012-10-24 中兴通讯股份有限公司 Business flow monitoring method and device
CN104426801A (en) * 2013-09-05 2015-03-18 中国移动通信集团广东有限公司 Method and device for planning PTN (packet transport network)
CN104734899A (en) * 2013-12-19 2015-06-24 中国移动通信集团四川有限公司 Method and device for adjusting bandwidth parameter

Also Published As

Publication number Publication date
WO2017206574A1 (en) 2017-12-07
CN107453890A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN109155760B (en) Method and apparatus for packet path recording with fixed header size
CN105024844A (en) Method, server and system for computing cross-domain routing
WO2022062724A1 (en) Fault prediction method and apparatus, and computer-readable storage medium
CN103973596B (en) P2P (peer-to-peer) network node selecting method
CN109617805B (en) Method and device for acquiring link dynamic attribute and method and device for selecting path
CN112118180A (en) Method, device and system for planning path
CN110177331B (en) Method and device for positioning terminal equipment and establishing wireless hotspot knowledge base
CN107453890B (en) Method and device for automatically determining port flow monitoring points
CN105207905B (en) Route selection method and device
CN106330476B (en) Method for obtaining guaranteed bandwidth of user side port and network monitoring system
CN104754626A (en) Transmission network physical node networking analysis method and device
CN105634999B (en) A kind of aging method and device of Media Access Control address
CN115913355A (en) Routing information display method and device, electronic equipment and storage medium
CN112350905B (en) Method and device for quickly confirming service after operation business router is changed
JP4871775B2 (en) Statistical information collection device
CN105141457B (en) Method, device, integrated network management and system for accessing optical transport network service
CN109474712B (en) IP geographic information determining method, server and storage medium
CN107919972B (en) Method and device for acquiring ring system affiliation of physical port
CN103023701B (en) The analytical method of performance parameter and device in network management system
CN109450839A (en) A kind of environment supervision instrument work step method of real-time
EP3197103A1 (en) Svlan allocation method and device, and ethernet service establishment method and system
JP5639245B1 (en) Transfer device analysis information providing server, transfer device analysis information providing method, and transfer device analysis information providing program
CN111327688B (en) Resource scheduling method, server and readable storage medium
CN107579868B (en) Method and device for detecting service affected by network element failure
CN115001573A (en) Optical cable fault positioning method and device, electronic equipment and nonvolatile storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant