CN110753364B - Network monitoring method, system, electronic equipment and storage medium - Google Patents

Network monitoring method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN110753364B
CN110753364B CN201911037430.XA CN201911037430A CN110753364B CN 110753364 B CN110753364 B CN 110753364B CN 201911037430 A CN201911037430 A CN 201911037430A CN 110753364 B CN110753364 B CN 110753364B
Authority
CN
China
Prior art keywords
service
node
data packet
flow information
network
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
CN201911037430.XA
Other languages
Chinese (zh)
Other versions
CN110753364A (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.)
China Mobile Communications Group Co Ltd
MIGU Music Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Music Co Ltd
MIGU Culture Technology Co Ltd
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 China Mobile Communications Group Co Ltd, MIGU Music Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201911037430.XA priority Critical patent/CN110753364B/en
Publication of CN110753364A publication Critical patent/CN110753364A/en
Application granted granted Critical
Publication of CN110753364B publication Critical patent/CN110753364B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention provides a network monitoring method, a system, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring service flow information which is extracted from a received service data packet by each node and written by the previous node; the service flow information is used for indicating the transmission state of the service data packet at the previous node; and performing network monitoring based on the service circulation information. According to the method, the system, the electronic equipment and the storage medium provided by the embodiment of the invention, the network monitoring is performed based on the service circulation information of each node, so that the relevance between the network monitoring and the actual service is improved, the difference between the network state obtained by monitoring and the actual service perception is reduced, and the accuracy and the reliability of the network monitoring are improved.

Description

Network monitoring method, system, electronic equipment and storage medium
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a network monitoring method, a system, an electronic device, and a storage medium.
Background
With the rapid development of mobile communication technology, how to ensure stable and efficient operation of a mobile communication network has received a great deal of attention.
Currently, quality monitoring applied to mobile communication networks typically employs simple network management protocol SNMP (Simple Network Management Protocol), network diagnostic tool ping (Packet Internet Groper) testing, transmission control protocol tcp (Transmission Control Protocol) testing, user datagram protocol udp (User Datagram Protocol) testing, and the like. The network monitoring modes are all end-to-end monitoring modes, and the state of the service data packet when the service data packet flows between nodes in a network link cannot be tracked, so that the difference exists between the monitored network state and the actual service perception.
Therefore, how to improve the correlation between the network monitoring and the actual service and reduce the difference between the network state obtained by monitoring and the actual service perception is still a problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides a network monitoring method, a system, electronic equipment and a storage medium, which are used for solving the problem that the network state obtained by the end-to-end network monitoring is different from the actual service perception.
In a first aspect, an embodiment of the present invention provides a network monitoring method, including:
acquiring service flow information which is extracted from a received service data packet by each node and written by the previous node; the service flow information is used for indicating the transmission state of the service data packet at the previous node;
And performing network monitoring based on the service circulation information.
Preferably, the service data packet includes a hop-by-hop option header, and the hop-by-hop option header includes the service flow information.
Preferably, the service flow information includes a forwarding address of the last node for sending the service data packet;
correspondingly, the network monitoring based on the service flow information specifically comprises the following steps:
and monitoring a service transmission path based on the forwarding address.
Preferably, the service flow information further comprises a service flow identifier;
correspondingly, the monitoring the service transmission path based on the forwarding address specifically includes:
determining service flow information corresponding to the service to be identified based on the service flow identification in each service flow information and the service flow identification corresponding to the service to be identified;
and monitoring a service transmission path corresponding to the service to be identified based on the forwarding address included in the service flow information corresponding to the service to be identified.
Preferably, the service flow information further includes a forwarding time of the last node for sending the service data packet;
correspondingly, the monitoring the service transmission path based on the forwarding address further includes:
Determining the transmission delay between any two adjacent nodes based on the forwarding time of the two adjacent nodes in the service transmission path;
and monitoring network quality based on the transmission delay between each two adjacent nodes.
Preferably, the service flow information further includes a forwarding time of the last node for sending the service data packet, and a transmission delay between the last node and the last node, where the transmission delay is a difference between the forwarding time of the last node and the forwarding time of the last node; the upper node is the previous node of the previous node;
correspondingly, the monitoring the service transmission path based on the forwarding address further includes:
and monitoring network quality based on the transmission delay between each adjacent node in the service transmission path.
In a second aspect, an embodiment of the present invention provides a network monitoring method, including:
receiving a service data packet;
extracting service circulation information written by a previous node from the service data packet so as to enable network management equipment to perform network monitoring based on the service circulation information; the service flow information is used for indicating the transmission state of the service data packet at the last node.
In a third aspect, an embodiment of the present invention provides a network monitoring system, including a network management device and a plurality of nodes, where the network management device is configured to perform the network monitoring method provided in the first aspect, and the nodes are configured to perform the network monitoring method provided in the second aspect.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a bus, where the processor, the communication interface, and the memory are in communication with each other via the bus, and the processor may invoke logic instructions in the memory to perform steps of a method as provided in the first aspect or the second aspect.
In a fifth aspect, embodiments of the present invention provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as provided in the first or second aspect.
According to the network monitoring method, the system, the electronic equipment and the storage medium, the service flow information extracted from the service data packet by each node and written by the previous node is obtained, and the network monitoring is performed based on the service flow information of each node, so that the relevance between the network monitoring and the actual service is improved, the difference between the network state obtained by monitoring and the actual service perception is reduced, and the accuracy and the reliability of the network monitoring are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a network monitoring method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a network node according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a service transmission path according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a network node according to another embodiment of the present invention;
fig. 5 is a schematic diagram of a service transmission path corresponding to a service to be identified according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a network node according to another embodiment of the present invention;
fig. 7 is a schematic diagram of transmission delay between nodes according to an embodiment of the present invention;
fig. 8 is a flowchart of a network monitoring method according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram of a service data packet according to an embodiment of the present invention;
Fig. 10 is a schematic structural diagram of a network management device according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of a node according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a network monitoring system according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Current common network quality monitoring methods include SNMP, ping test, tcp test, udp test, etc. However, the above-mentioned various network monitoring methods are all in an end-to-end monitoring mode, and are independent of the service, and cannot track the state of the service data packet when it flows between nodes in the network link, so that there is a difference between the monitored network state and the actual service perception. Aiming at the problems, the embodiment of the invention provides a network monitoring method. Fig. 1 is a schematic flow chart of a network monitoring method according to an embodiment of the present invention, as shown in fig. 1, an execution body of the method is a network management device, i.e. a device for performing network monitoring, such as a network management system under an SNMP network. The method comprises the following steps:
Step 110, obtaining service flow information which is extracted from the received service data packet by each node and written by the previous node; the traffic flow information is used to indicate the transmission status of the traffic data packet at the last node.
Here, the node is a transmission device in the mobile communication network that performs a service data packet. Such as servers, firewalls, routers, etc., to which embodiments of the invention are not specifically limited.
The service data packet is the data packet which needs to be transmitted in the service process. In the transmission process of the service data packet, each passing node can extract the service flow information written by the previous node from the service data packet and write the service flow information of the current node so as to extract the service flow information of the current node by the next node. Here, the service flow information written by the previous node is used to indicate a transmission state of the service data packet at the previous node, where the transmission state may be an interface address of the previous node for receiving the service data packet, an interface address of the previous node for sending the service data packet, a time of the previous node for receiving or forwarding the service data packet, an identifier of a data stream transmitted by the previous node, and the embodiment of the present invention is not limited in particular. It should be noted that, for the first node in the service data packet transmission, the first node does not have the corresponding last node, and the first node only writes service flow information in the service data packet, so that the next node can extract the service flow information written by the first node, and the operation of extracting the service flow information from the service data packet is not executed.
By extracting the service flow information written by the last node from the service data packet and writing the service flow information of the current node into the service data packet, each node can obtain the service flow information of the last node in the transmission process of the service data packet.
In this case, the service flow information of the last node extracted from the service data packet by each node may be obtained from each node through an acquisition method such as SNMP or syslog.
And step 120, performing network monitoring based on the service circulation information.
Specifically, the transmission state of the service data packet at each node can be obtained by obtaining the service flow information written by the last node of each node, and network monitoring based on each node can be realized based on the transmission state of the service data packet at each node.
According to the method provided by the embodiment of the invention, the service circulation information extracted from the service data packet by each node and written by the previous node is obtained, and the network monitoring is performed based on the service circulation information of each node, so that the relevance between the network monitoring and the actual service is improved, the difference between the network state obtained by monitoring and the actual service perception is reduced, and the accuracy and the reliability of the network monitoring are improved.
Based on the above embodiment, in the method, the service data packet includes a hop-by-hop option header, and the hop-by-hop option header includes service flow information.
Specifically, an extension header, one of the extension headers, a hop-by-hop options (HBH) header, is introduced in internet protocol version 6 IPv6 (Internet Protocol Version). During the transmission of the service data packet, each node passing through can identify and process the hop-by-hop option header. In the embodiment of the invention, for any node, the node can extract the service flow information written by the previous node from the hop-by-hop option header of the service data packet, and write the service flow information of the current node in the hop-by-hop option header so as to extract the service flow information of the current node by the next node.
Based on any of the above embodiments, in the method, the service flow information includes a forwarding address of a last node to send the service data packet. Correspondingly, step 120 specifically includes: based on the forwarding address, the traffic transmission path is monitored.
Specifically, assuming that any node is node n, the node n immediately preceding the node n is node n-1, the node n can extract service flow information written by the node n-1 from the received service data packet, the service flow information written by the node n-1 includes a forwarding address of the node n-1, and the identity of the node corresponding to the forwarding address, namely, the identity of the node n-1, can be determined by matching the forwarding address with the local interface address of each node. Therefore, any node can determine the identity of the previous node through the extracted forwarding address in the service flow information written by the previous node, and sequentially recursion the identity of the previous node, so that the nodes in sequential paths in the transmission process of the service data packet can be obtained, and a service transmission path is obtained.
Fig. 2 is a schematic diagram of a network node provided in an embodiment of the present invention, as shown in fig. 2, in a mobile communication network, the mobile communication network includes 2 firewalls FW (firewall 1, firewall 2), 3 routers R (router 1, router 2, router 3), 2 switches SW (switch 1, switch 2), and 2 server (server 1, server 2), where the server, firewall, and router support data processing of hop-by-hop option headers.
After the server 1 sends out a service data packet in which the forwarding address of the server 1 is written in advance in the hop-by-hop option header, the following node extracts the forwarding address written by the previous node from the service data packet, updates the forwarding address in the hop-by-hop option header to the forwarding address of the current node, and then sends the service data packet. In this process, each node can obtain the forwarding address of the previous node.
Each node supporting the hop-by-hop option header can determine and record the corresponding relation between the forwarding address of the node closest to the node, namely the last node and the physical interface of the node through the internal gateway protocol IGP (Interior Gateway Protocol);
after that, the network management equipment performs centralized collection on the corresponding relation between the interface addresses of all nodes and the physical interfaces and the corresponding relation between the forwarding address of the previous node and the physical interfaces of the network management equipment, so as to obtain the following table:
In the above table, the interface address, i.e. the local IPv6 address corresponding to the local interface of the node, is extracted from the service data packet received by the local interface, and the forwarding address of the previous node in the same row as the local interface. For example, the forwarding address of the last node extracted from the traffic packet received by the eth0 interface of the firewall FW1 is IPv6-1, and it is known from the local IPv6 address column of the table above that IPv6-1 is the interface address of the eth0 interface of the server1, so that it is known that the server1 sends the traffic packet to the eth0 interface of FWl through the eth0 interface.
For another example, the forwarding address of the last node extracted from the service data packet received by the eth1 interface of the firewall FW2 is IPv6-16, and the IPv6-16 is obtained by looking up a table, so that it is known that the server 2 sends the service data packet to the eth1 interface of the firewall FW2 through the eth0 interface.
Based on fig. 2, the traffic transmission path can be monitored in combination with the above table. Fig. 3 is a schematic diagram of a service transmission path provided in an embodiment of the present invention, as shown in fig. 3, a service data packet sequentially passes through a firewall 1, a router 2, a router 3, and a firewall 2 in a process of transmitting from the server1 to the server 2.
Based on any one of the above embodiments, in the method, the service flow information further includes a service flow identifier; correspondingly, the monitoring service transmission path based on the forwarding address specifically comprises: determining service circulation information corresponding to the service to be identified based on the service flow identification in each service circulation information and the service flow identification corresponding to the service to be identified; and monitoring a service transmission path corresponding to the service to be identified based on the forwarding address included in the service flow information corresponding to the service to be identified.
Here, the service flow is identified as information for identifying the service to which the service data packet belongs, such as a service number, and also such as a source address, a destination address, a source port, a destination port, and the like of the service. In a mobile communication network, there may be multiple services simultaneously. When the network monitoring is performed, the network state corresponding to one of the plurality of services can be monitored, and the service needing to be subjected to the network monitoring is taken as the service to be identified.
Because the service flow information contains service flow identifiers, under the condition that the service flow identifiers corresponding to the service to be identified are known, the service flow identifiers corresponding to the service to be identified can be compared with the service flow identifiers in each service flow information, and further the service flow information with the service flow identifiers consistent with the service flow identifiers corresponding to the service to be identified is obtained from each service flow information through screening, and is used as the service flow information corresponding to the service to be identified, namely, the service flow information generated in the process of executing the service to be identified.
After each service circulation information corresponding to the service to be identified is determined, the service transmission path corresponding to the service to be identified can be monitored based on the forwarding address in each service circulation information.
For example, fig. 4 is a schematic diagram of a network node according to another embodiment of the present invention, as shown in fig. 4, in a mobile communication network, the mobile communication network includes a client, and 1 router R (router 1), 3 firewalls FW (firewall 1, firewall 2, firewall 3), 3 switches SW (switch 1, switch 2, switch 3), and 3 servers (server 1, server 2, server 3). The network management equipment collects the service flow information written by the last node extracted by each node in a concentrated way, screens the service flow information with the service flow mark of 1111111111 from the service flow information, and combines the interface address of each node to obtain the following table:
the analysis is performed according to the above table, and a service transmission path with the service flow identifier of 1111111111 can be obtained. Fig. 5 is a schematic diagram of a service transmission path corresponding to a service to be identified, where, as shown in fig. 5, when a service flow identifier of the service to be identified is 1111111111, a service data packet of the service to be identified passes through a router 1 and a firewall 1 when transmitted between a client and a server 2, and passes through the router and the firewall 2 when transmitted between the client and the server 2, it is to be noted that, in fig. 5, the double-headed arrow dashed lines with different linearities are used for distinguishing the service transmission paths under different source IPs and destination IPs.
The method provided by the embodiment of the invention can solve the problem of unclear service circulation logic caused by the replacement of operation and maintenance personnel by tracking the service transmission path of the specific service flow.
Based on any of the above embodiments, in the method, the service flow information further includes a forwarding time of the last node to send the service data packet. Correspondingly, the monitoring the service transmission path based on the forwarding address further comprises: determining the transmission delay between two adjacent nodes based on the forwarding time of any two adjacent nodes in the service transmission path; and monitoring network quality based on the transmission delay between each two adjacent nodes.
Specifically, on the basis of time synchronization of each node, the local time of the last node when sending the service data packet can be used as the forwarding time to write the service flow information of the service data packet.
After determining the traffic transmission path, the sequence of the nodes on the traffic data packet transmission is known. For two adjacent nodes in the service transmission path, the service transmission path can be considered as a node n and a node n+1, the service flow information written by the node n can be obtained from the node n+1, wherein the service flow information contains the forwarding time of the node n, the service flow information written by the node n+1 can be obtained from the node n+2, the service flow information contains the forwarding time of the node n+1, and the transmission delay between the node n and the node n+1 can be obtained by subtracting the forwarding time of the node n+1 from the forwarding time of the node n. For example, the firewall a sends the service data packet to the router B, where the forwarding time corresponding to the firewall a is 1s to 1ms, the forwarding time corresponding to the router B is 1s to 3ms, and the difference between the two is 2ms, that is, the transmission delay from the firewall a to the router B is 2ms.
After the transmission delay between each adjacent node in the service transmission path is obtained, the monitoring of the network transmission quality between each adjacent node can be performed based on the transmission delay.
Based on any one of the above embodiments, in the method, the service flow information further includes a forwarding time of the last node for sending the service data packet, and a transmission delay between the last node and the last node, where the transmission delay is a difference between the forwarding time of the last node and the forwarding time of the last node; correspondingly, the monitoring the service transmission path based on the forwarding address further comprises: and monitoring network quality based on the transmission delay between each two adjacent nodes in the service transmission path.
Here, the upper node is the node immediately preceding the upper node.
Specifically, the service flow information written by the previous node not only includes the forwarding time of the previous node, but also includes the transmission delay between the previous node and the previous node, which is obtained by calculating the forwarding time of the previous node through the forwarding time of the previous node and the forwarding time of the previous node extracted from the service flow information by the previous node. Assuming that the current node is node n, the node n can extract the transmission delay between the upper node n-2 and the upper node n-1 from the service data packet, where the transmission delay is obtained by subtracting the forwarding time of the upper node n-2 from the forwarding time of the upper node n-2 after the forwarding time of the upper node n-1 is extracted.
After the service flow information extracted by each node is obtained, the transmission delay between each adjacent node can be obtained, and then the network transmission quality between each adjacent node is monitored based on the transmission delay.
In the embodiment of the invention, the calculation of the transmission delay between the nodes is not needed to be born by the network management equipment, and the transmission delay between the last node and the network management equipment is calculated and the service flow information is written in the transmission process of the service data packet, so that the network management equipment can directly obtain the transmission delay between the nodes after obtaining the service flow information of the last node extracted by each node, thereby being convenient for monitoring the network quality between the nodes.
For example, fig. 6 is a schematic diagram of a network node according to another embodiment of the present invention, as shown in fig. 6, in the mobile communication network, 1 router R (router 1), 2 firewalls FW (firewalls 1 and 2), 2 switches SW (switches 1 and 2), and 2 servers (servers 1 and 2). The network management equipment collects the service flow information written by the last node extracted by each node in a concentrated way, and combines the interface address of each node to obtain the following table:
referring to the table above, the eth0 interface of the firewall FW2 is the corresponding forwarding address of IPv6-5, and the table look-up indicates that IPv6-5 is the interface address of the eth1 interface of the router R1, that is, the service data packet is sent from the eth1 interface of R1 to the eth0 interface of FW2, the forwarding address of the eth0 interface of the server 2 is IPv6-7, and the table look-up indicates that IPv6-7 is the interface address of the eth1 interface of the firewall FW2, that is, the service data packet is sent from the eth1 interface of FW2 to the eth0 interface of server 2, that is, the service data packet is sent from R1 to FW2, and then sent from FW2 to the server 2, where the transmission delay between the first two nodes corresponding to the eth0 interface of server 2 is 5ms, that is in the transmission direction of the service data packet sent from R1 to FW2, that is 5ms.
According to the table, the transmission delay between the nodes can be obtained, fig. 7 is a schematic diagram of the transmission delay between the nodes provided by the embodiment of the present invention, and as shown in fig. 7, in the direction in which the server 1 sends the service data packet to the server 2, the transmission delay between the server 1 and the firewall 1 is 1ms, the transmission delay between the firewall 1 and the router 1 is 2ms, the transmission delay between the router 1 and the firewall 2 is 5ms, and the transmission delay between the firewall 2 and the server 2 is 1s; in the direction in which the server 2 sends the service data packet to the server 1, the transmission delay between the server 2 and the firewall 2 is 3ms, the transmission delay between the firewall 2 and the router 1 is 4ms, the transmission delay between the router 1 and the firewall 1 is 2ms, and the transmission delay between the firewall 1 and the server 1 is 9ms.
The method provided by the embodiment of the invention can clearly and intuitively monitor the transmission delay generated by the circulation of the service data packet among the nodes, thereby accurately obtaining the network quality among the nodes.
Based on any of the above embodiments, fig. 8 is a flow chart of a network monitoring method according to another embodiment of the present invention, as shown in fig. 8, an execution body of the method is a node, that is, a transmission device for executing a service data packet in a mobile communication network, and the method includes:
Step 810, a service data packet is received.
Step 820, extracting service circulation information written by the last node from the service data packet, so that the network management equipment can perform network monitoring based on the service circulation information; the traffic flow information is used to indicate the transmission status of the traffic data packet at the last node.
Specifically, the service data packet is a data packet that needs to be transmitted in the service process. In the transmission process of the service data packet, each passing node can extract the service flow information written by the previous node from the service data packet and write the service flow information of the current node so as to extract the service flow information of the current node by the next node. Here, the service flow information written by the previous node is used to indicate a transmission state of the service data packet at the previous node, where the transmission state may be an interface address of the previous node for receiving the service data packet, an interface address of the previous node for sending the service data packet, a time of the previous node for receiving or forwarding the service data packet, an identifier of a data stream transmitted by the previous node, and the embodiment of the present invention is not limited in particular. It should be noted that, for the first node in the service data packet transmission, the first node does not have the corresponding last node, and the first node only writes service flow information in the service data packet, so that the next node can extract the service flow information written by the first node, and the operation of extracting the service flow information from the service data packet is not executed.
By extracting the service flow information written by the last node from the service data packet and writing the service flow information of the current node into the service data packet, each node can obtain the service flow information of the last node in the transmission process of the service data packet.
On the basis, the network management equipment can acquire the service flow information of the last node extracted from the service data packet by each node through SNMP or syslog and other acquisition methods, and realize network monitoring based on each node based on the transmission state of the service data packet at each node.
According to the method provided by the embodiment of the invention, the service circulation information written by the last node is extracted from the service data packet, so that the network management equipment can perform network monitoring based on the service circulation information, the relevance between the network monitoring and the actual service is improved, the difference between the network state obtained by monitoring and the actual service perception is reduced, and the accuracy and the reliability of the network monitoring are improved.
Based on any of the above embodiments, fig. 9 is a schematic structural diagram of a service data packet according to an embodiment of the present invention, where, as shown in fig. 9, the service data packet is composed of three parts, that is, a basic header, an extended header, and a higher layer data packet. Wherein the basic header is the basic header in the IPv6 data packet, and the "next header" in the basic header is set to the header number of the first extension header in the extension headers. A plurality of extension headers including a hop-by-hop option header in the extension header, and a "next header" in each extension header is set to a header number of a next extension header of the extension header.
For the hop-by-hop option header, the length of the hop-by-hop option header is (16+l1) + (16+l2) + … + (16+ln), where Ln is the option data length of the n-th option in the hop-by-hop option header, and n is the number of options in the hop-by-hop option header. The hop-by-hop option header contains n options, each option corresponds to one type of service flow information, for example, the service flow information includes information of four types of forwarding address, service flow identifier, forwarding time and transmission delay, and each option corresponds to four options in the hop-by-hop option header. For any option, an 8-bit option type, an 8-bit option data length, and option data are included. For example, set option 1 as a forwarding address, option 2 as a service flow identifier, option 3 as a forwarding time, and option 4 as a transmission delay, the following items are contained in the hop-by-hop option header correspondingly:
option 1 type (identification of forwarding address): 35;
option 1 data length: 128.
Option 1 data: filling the forwarding address by the node;
option 2 type (traffic flow identification): 4, a step of;
option 2 data length: 32;
option 2 data: filling a service flow identifier by the node;
option 3 type (identification of forwarding time): 37, respectively;
option 3 data length: 32;
Option 3 data: filling the forwarding time by the node;
option 4 type (identification of transmission delay): 38, a step of carrying out the process;
option 4 data length: 32;
option 4 data: transmission delay = local time-forwarding time of last node filled by node.
It should be noted that, in the above examples, the option types and the data lengths are preset, and the options in the hop-by-hop option header may be customized or added according to actual needs.
Based on any of the above embodiments, referring to the network node schematic diagram shown in fig. 2, in a mobile communication network, a network monitoring method includes the following steps:
after the server 1 sends a service data packet of service flow information written in the hop-by-hop option header in advance into the server 1, the subsequent node extracts the service flow information written by the previous node from the service data packet, updates the service flow information in the hop-by-hop option header into the service flow information of the current node, and then sends the service data packet. In the process, each node can obtain service flow information of the previous node, and the service flow information comprises a forwarding address, a service flow identifier, forwarding time and transmission delay.
Each node supporting the hop-by-hop option header can determine and record the corresponding relation between the service flow information of the node closest to the node, namely the last node and the physical interface of the node through an Internal Gateway Protocol (IGP);
The network management equipment collects the corresponding relation between the interface addresses and the physical interfaces of all nodes and the corresponding relation between the service flow information of the previous node and the physical interfaces of the network management equipment in a centralized way, so as to monitor the network, wherein specific network monitoring content comprises topology generation of the whole network, service flow generation and monitoring of actual transmission delay conditions of service data packets among all nodes in the network, and the topology generation of the network is based on a forwarding address to monitor a service transmission path; the service flow generation is based on the forwarding address in each service flow information corresponding to the service to be identified, and the service transmission path of the service to be identified is monitored; the monitoring of the transmission delay condition can be realized by the transmission delay in each service circulation information, or by the transmission delay obtained by subtracting the forwarding time of two adjacent nodes in the service circulation information.
Based on any of the above embodiments, fig. 10 is a schematic structural diagram of a network management device according to an embodiment of the present invention, where, as shown in fig. 10, the network management device includes a service flow information obtaining unit 1010 and a network monitoring unit 1020;
the service flow information obtaining unit 1010 is configured to obtain service flow information, extracted from a received service data packet by each node, written by a previous node; the service flow information is used for indicating the transmission state of the service data packet at the previous node;
The network monitoring unit 1020 is configured to perform network monitoring based on the service flow information.
According to the network management equipment provided by the embodiment of the invention, the network monitoring is performed based on the service circulation information of each node by acquiring the service circulation information which is extracted from the service data packet by each node and written by the previous node, so that the relevance between the network monitoring and the actual service is improved, the difference between the network state obtained by monitoring and the actual service perception is reduced, and the accuracy and the reliability of the network monitoring are improved.
Based on any one of the above embodiments, in the network management device, the service data packet includes a hop-by-hop option header, and the hop-by-hop option header includes the service flow information.
Based on any one of the above embodiments, in the network management device, the service flow information includes a forwarding address of the last node for sending the service data packet;
correspondingly, the network monitoring unit 1020 is specifically configured to:
and monitoring a service transmission path based on the forwarding address.
Based on any one of the above embodiments, in the network management device, the service flow information further includes a service flow identifier;
correspondingly, the network monitoring unit 1020 is specifically configured to:
determining service flow information corresponding to the service to be identified based on the service flow identification in each service flow information and the service flow identification corresponding to the service to be identified;
And monitoring a service transmission path corresponding to the service to be identified based on the forwarding address included in the service flow information corresponding to the service to be identified.
Based on any one of the above embodiments, in the network management device, the service flow information further includes a forwarding time of the last node to send the service data packet;
correspondingly, the network monitoring unit 1020 is further configured to:
determining the transmission delay between any two adjacent nodes based on the forwarding time of the two adjacent nodes in the service transmission path;
and monitoring network quality based on the transmission delay between each two adjacent nodes.
Based on any one of the above embodiments, in the network management device, the service flow information further includes a forwarding time for the previous node to send the service data packet, and a transmission delay between the previous node and the previous node, where the transmission delay is a difference between the forwarding time of the previous node and the forwarding time of the previous node; the upper node is the previous node of the previous node;
correspondingly, the network monitoring unit 1020 is further configured to:
and monitoring network quality based on the transmission delay between each adjacent node in the service transmission path.
Based on any one of the above embodiments, fig. 11 is a schematic structural diagram of a node according to an embodiment of the present invention, where, as shown in fig. 11, the node includes a receiving unit 1110 and an extracting unit 1120;
wherein, the receiving unit 1110 is configured to receive a service data packet;
the extracting unit 1120 is configured to extract, from the service data packet, service flow information written by a previous node, so that network management equipment performs network monitoring based on the service flow information; the service flow information is used for indicating the transmission state of the service data packet at the last node.
According to the node provided by the embodiment of the invention, the network management equipment can monitor the network based on the service circulation information of each node by extracting the service circulation information written in the service data packet by the previous node, so that the relevance between the network monitoring and the actual service is improved, the difference between the network state obtained by monitoring and the actual service perception is reduced, and the accuracy and the reliability of the network monitoring are improved.
Based on any one of the above embodiments, fig. 12 is a schematic structural diagram of a network monitoring system according to an embodiment of the present invention, and as shown in fig. 12, the network monitoring system includes a network management device and a plurality of nodes, where the network management device and the nodes are respectively configured to execute the network monitoring method provided in any one of the above embodiments. Any node is used for receiving the service data packet and extracting the service flow information written by the previous node from the service data packet; the service flow information is used for indicating the transmission state of the service data packet at the last node; the network management equipment is used for acquiring service flow information written by the last node extracted by the node and carrying out network monitoring based on the service flow information.
According to the system provided by the embodiment of the invention, the service circulation information written by the last node is extracted from the service data packet, so that the network management equipment can perform network monitoring based on the service circulation information, the relevance between the network monitoring and the actual service is improved, the difference between the network state obtained by monitoring and the actual service perception is reduced, and the accuracy and the reliability of the network monitoring are improved.
Fig. 13 is a schematic physical structure of an electronic device according to an embodiment of the present invention, where, as shown in fig. 13, the electronic device may include: processor 1301, communication interface (Communications Interface) 1302, memory 1303 and communication bus 1304, wherein processor 1301, communication interface 1302 and memory 1303 communicate with each other via communication bus 1304. Processor 1301 may invoke a computer program stored in memory 1303 and executable on processor 1301 to perform the network monitoring method provided by the above embodiments, including, for example: acquiring service flow information which is extracted from a received service data packet by each node and written by the previous node; the service flow information is used for indicating the transmission state of the service data packet at the previous node; and performing network monitoring based on the service circulation information.
Processor 1301 may also invoke a computer program stored in memory 1303 and executable on processor 1301 to perform the network monitoring method provided by the above embodiments, including, for example: receiving a service data packet; extracting service circulation information written by a previous node from the service data packet so as to enable network management equipment to perform network monitoring based on the service circulation information; the service flow information is used for indicating the transmission state of the service data packet at the last node.
Further, the logic instructions in the memory 1303 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art or a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The embodiments of the present invention also provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the network monitoring method provided in the above embodiments, for example, including: acquiring service flow information which is extracted from a received service data packet by each node and written by the previous node; the service flow information is used for indicating the transmission state of the service data packet at the previous node; and performing network monitoring based on the service circulation information.
The embodiments of the present invention also provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the network monitoring method provided in the above embodiments, for example, including: receiving a service data packet; extracting service circulation information written by a previous node from the service data packet so as to enable network management equipment to perform network monitoring based on the service circulation information; the service flow information is used for indicating the transmission state of the service data packet at the last node.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the embodiments or the methods described in some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A method for monitoring a network, comprising:
acquiring service flow information which is extracted from a received service data packet by each node and written by the previous node; the service flow information is used for indicating the transmission state of the service data packet at the last node, and the node is transmission equipment for executing the service data packet in the mobile communication network;
performing network monitoring based on the service circulation information;
the service flow information comprises a forwarding address of the last node for sending the service data packet;
correspondingly, the network monitoring based on the service flow information specifically comprises the following steps:
monitoring a service transmission path based on the identity of the node corresponding to the forwarding address;
the service data packet comprises a hop-by-hop option header, and the hop-by-hop option header comprises the service flow information;
the service flow information also comprises the forwarding time of the last node for sending the service data packet and the transmission time delay between the last node and the last node, wherein the transmission time delay is the difference between the forwarding time of the last node and the forwarding time of the last node; the upper node is the previous node of the previous node;
Correspondingly, the monitoring the service transmission path based on the forwarding address further includes:
and monitoring network quality based on the transmission delay between each adjacent node in the service transmission path.
2. The network monitoring method of claim 1, wherein the traffic flow information further comprises a traffic flow identifier;
correspondingly, the monitoring the service transmission path based on the forwarding address specifically includes:
determining service flow information corresponding to the service to be identified based on the service flow identification in each service flow information and the service flow identification corresponding to the service to be identified;
and monitoring a service transmission path corresponding to the service to be identified based on the forwarding address included in the service flow information corresponding to the service to be identified.
3. The network monitoring method according to claim 1, wherein the service flow information further includes a forwarding time of the last node to send the service data packet;
correspondingly, the monitoring the service transmission path based on the forwarding address further includes:
determining the transmission delay between any two adjacent nodes based on the forwarding time of the two adjacent nodes in the service transmission path;
And monitoring network quality based on the transmission delay between each two adjacent nodes.
4. A method for monitoring a network, comprising:
receiving a service data packet;
extracting service circulation information written by a previous node from the service data packet so as to enable network management equipment to perform network monitoring based on the service circulation information; the service flow information is used for indicating the transmission state of the service data packet at the previous node; the node is a transmission device for executing service data packets in a mobile communication network;
the service flow information comprises a forwarding address of the last node for sending the service data packet;
the network monitoring based on the service circulation information comprises the following steps:
monitoring a service transmission path based on the identity of the node corresponding to the forwarding address;
the service data packet comprises a hop-by-hop option header, and the hop-by-hop option header comprises the service flow information;
the service flow information also comprises the forwarding time of the last node for sending the service data packet and the transmission time delay between the last node and the last node, wherein the transmission time delay is the difference between the forwarding time of the last node and the forwarding time of the last node; the upper node is the previous node of the previous node;
Correspondingly, the monitoring the service transmission path based on the forwarding address further includes:
and monitoring network quality based on the transmission delay between each adjacent node in the service transmission path.
5. A network monitoring system comprising a network management device for performing the network monitoring method according to any one of claims 1 to 3 and a plurality of nodes for performing the network monitoring method according to claim 4.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the network monitoring method according to any one of claims 1 to 4 when the program is executed by the processor.
7. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the network monitoring method according to any one of claims 1 to 4.
CN201911037430.XA 2019-10-29 2019-10-29 Network monitoring method, system, electronic equipment and storage medium Active CN110753364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911037430.XA CN110753364B (en) 2019-10-29 2019-10-29 Network monitoring method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911037430.XA CN110753364B (en) 2019-10-29 2019-10-29 Network monitoring method, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110753364A CN110753364A (en) 2020-02-04
CN110753364B true CN110753364B (en) 2023-09-05

Family

ID=69280731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911037430.XA Active CN110753364B (en) 2019-10-29 2019-10-29 Network monitoring method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110753364B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585834B (en) * 2020-04-14 2021-09-14 中国联合网络通信集团有限公司 Network information storage method and device
CN113726601B (en) * 2021-08-20 2023-08-08 苏州浪潮智能科技有限公司 Network state monitoring method and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2308696A1 (en) * 1999-05-20 2000-11-20 Lucent Technologies Inc. Method and apparatus for associating network usage with particular users
JP2007202214A (en) * 2007-05-01 2007-08-09 Fujitsu Ltd Routing method and communication method of mobile node
WO2007101117A2 (en) * 2006-02-23 2007-09-07 Asankya Networks, Inc. Systems and methods of network monitoring
KR20080054831A (en) * 2006-12-13 2008-06-19 주식회사 케이티 Multiple network interface apparatus and method, and traffic control option information transmission method and network interface selection method in its
JP2012114714A (en) * 2010-11-25 2012-06-14 Mitsubishi Electric Corp Communication system
CN104836694A (en) * 2014-02-11 2015-08-12 中国移动通信集团河北有限公司 Method and device for monitoring network
CN109672582A (en) * 2018-09-25 2019-04-23 平安普惠企业管理有限公司 Complete trails monitoring method, equipment, storage medium and device
CN109672583A (en) * 2018-09-25 2019-04-23 平安科技(深圳)有限公司 Method for monitoring network, equipment, storage medium and device
CN110120887A (en) * 2019-04-25 2019-08-13 新华三技术有限公司合肥分公司 A kind of network quality information monitoring method, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7359335B2 (en) * 2003-07-18 2008-04-15 International Business Machines Corporation Automatic configuration of network for monitoring
US20060274760A1 (en) * 2005-06-07 2006-12-07 Level 3 Communications, Inc. Internet packet quality monitor

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2308696A1 (en) * 1999-05-20 2000-11-20 Lucent Technologies Inc. Method and apparatus for associating network usage with particular users
WO2007101117A2 (en) * 2006-02-23 2007-09-07 Asankya Networks, Inc. Systems and methods of network monitoring
KR20080054831A (en) * 2006-12-13 2008-06-19 주식회사 케이티 Multiple network interface apparatus and method, and traffic control option information transmission method and network interface selection method in its
JP2007202214A (en) * 2007-05-01 2007-08-09 Fujitsu Ltd Routing method and communication method of mobile node
JP2012114714A (en) * 2010-11-25 2012-06-14 Mitsubishi Electric Corp Communication system
CN104836694A (en) * 2014-02-11 2015-08-12 中国移动通信集团河北有限公司 Method and device for monitoring network
CN109672582A (en) * 2018-09-25 2019-04-23 平安普惠企业管理有限公司 Complete trails monitoring method, equipment, storage medium and device
CN109672583A (en) * 2018-09-25 2019-04-23 平安科技(深圳)有限公司 Method for monitoring network, equipment, storage medium and device
CN110120887A (en) * 2019-04-25 2019-08-13 新华三技术有限公司合肥分公司 A kind of network quality information monitoring method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110753364A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
US10637771B2 (en) System and method for real-time load balancing of network packets
US10848406B2 (en) Methods, systems, and apparatus to generate information transmission performance alerts
US10764148B2 (en) Methods, systems, and computer readable media for network traffic statistics collection
JP3717836B2 (en) Dynamic load balancer
US8751642B2 (en) Method and system for management of sampled traffic data
CN106412142B (en) Resource equipment address obtaining method and device
EP2081321A2 (en) Sampling apparatus distinguishing a failure in a network even by using a single sampling and a method therefor
CN111131544B (en) Method for realizing NAT traversal
US7420929B1 (en) Adaptive network flow analysis
CN110753364B (en) Network monitoring method, system, electronic equipment and storage medium
CN111988266B (en) Method for processing message
US10623278B2 (en) Reactive mechanism for in-situ operation, administration, and maintenance traffic
US10523536B2 (en) Length control for packet header sampling
EP3484102B1 (en) Cloud computing environment system for automatically determining over-the-top applications and services
EP3484101B1 (en) Automatically determining over-the-top applications and services
US20230327983A1 (en) Performance measurement in a segment routing network
CN110855566A (en) Method and device for dragging upstream flow
CN115766252A (en) Flow abnormity detection method and device, electronic equipment and storage medium
US20180217860A1 (en) Integrated network data collection apparatus and method
CN112995025B (en) Path tracking method, device, equipment and computer readable storage medium
CN112532402B (en) Method, system and storage medium for detecting network topology
US11356351B2 (en) Method and coordinating node for providing current analysis result relating to a link
CN116319980A (en) Data message marking method, device, network equipment and storage medium
CN117880150A (en) System and method for processing ping request based on CDN
CN111130881A (en) Network topology discovery method and device

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