CN113472567B - Network SLA calculation method and device - Google Patents

Network SLA calculation method and device Download PDF

Info

Publication number
CN113472567B
CN113472567B CN202110665967.1A CN202110665967A CN113472567B CN 113472567 B CN113472567 B CN 113472567B CN 202110665967 A CN202110665967 A CN 202110665967A CN 113472567 B CN113472567 B CN 113472567B
Authority
CN
China
Prior art keywords
server
network
sla
role
servers
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
CN202110665967.1A
Other languages
Chinese (zh)
Other versions
CN113472567A (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 United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110665967.1A priority Critical patent/CN113472567B/en
Publication of CN113472567A publication Critical patent/CN113472567A/en
Application granted granted Critical
Publication of CN113472567B publication Critical patent/CN113472567B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • H04L43/55Testing of service level quality, e.g. simulating service usage
    • 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

Landscapes

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

Abstract

The invention provides a method and a device for calculating a network SLA, wherein the method comprises the following steps: determining a role corresponding to each server in a target network; acquiring a network topology structure corresponding to the target network; acquiring a plurality of key paths according to the role corresponding to each server and the network topology structure; sending a detection instruction to the corresponding server according to the plurality of key paths, and acquiring a first detection result corresponding to each key path; and calculating the network SLA corresponding to the target network according to all the first detection results. The method and the device can solve the problem that the traditional network SLA calculation method can only calculate after a fault occurs and cannot calculate the network SLA in real time.

Description

Network SLA calculation method and device
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method and an apparatus for calculating a network SLA.
Background
The SLA is called a Service Level agent, i.e. a Service Level Agreement or a Service Level Agreement, which is a formal commitment defined between a Service provider and a client and is also an important index for measuring the Service Level.
However, the conventional method for calculating the network SLA mainly depends on a Mean Time Between Failures (MTBF) and a mean repair time (MTTR), wherein the Mean Time Between Failures (MTBF) is an average working time between two adjacent failures and is an index indicating a period of time during which a system or a network can stably operate, the mean repair time (MTTR) is an average value of repair times when a product is converted from a failure state to a working state, and after the network fails, the failure time accounts for a percentage of the whole service time, i.e. the network SLA. Since the network SLA can only be calculated after the occurrence of a failure when the MTBF and the MTTR are taken as measures, the network SLA cannot be calculated in real time.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and an apparatus for calculating a network SLA, aiming at the above-mentioned deficiencies of the prior art, so as to solve the problem that the conventional method for calculating a network SLA can only calculate after a failure occurs, and cannot calculate the network SLA in real time.
In a first aspect, an embodiment of the present invention provides a method for calculating a network SLA, including:
determining the role corresponding to each server in the target network;
acquiring a network topology structure corresponding to the target network;
acquiring a plurality of key paths according to the role corresponding to each server and the network topology structure;
sending a detection instruction to the corresponding server according to the plurality of key paths, and acquiring a first detection result corresponding to each key path;
and calculating the network SLA corresponding to the target network according to all the first detection results.
Preferably, the determining a role corresponding to each server in the target network specifically includes:
acquiring an operating system type corresponding to each server in the target network;
acquiring software and/or service sets to be detected corresponding to each server according to the type of the operating system;
detecting each server according to the software and/or service set to be detected, and obtaining a second detection result;
and determining the role corresponding to each server in the target network according to the second detection result.
Preferably, the obtaining of the network topology corresponding to the target network specifically includes:
receiving the connection relation between the server and the adjacent network equipment, which is sent by each server;
acquiring a network topology structure corresponding to the target network according to the received connection relation;
wherein the network topology is used to describe the target network composed of the server and the network device.
Preferably, after determining the role corresponding to each server in the target network, the method further includes:
modifying a host name corresponding to each server according to the role corresponding to each server, wherein the host name comprises a serial number and a role code, the role code is used for indicating all roles corresponding to the servers, and each server corresponds to at least one role;
the key paths comprise key paths among servers with different roles and key paths among different servers with the same role; the obtaining a plurality of critical paths according to the role corresponding to each server and the network topology specifically includes:
determining a server set corresponding to each different role according to the host names of all the servers in the network topology structure;
selecting at least one server from each server set in turn as a source server or a destination server, and forming a critical path between the servers with different roles with the servers selected from other server sets as the destination server or the source server;
and judging whether each server set comprises a plurality of servers, and selecting different servers from the server sets comprising the plurality of servers as the key paths between different servers with the same role respectively by using the source server and the destination server.
Preferably, the roles include a large class role and a small class role, each large class role includes a plurality of small class roles, each server corresponds to at least one small class role, and one large class role corresponds to the small class roles;
determining a server set corresponding to each of the different roles according to the host names of all the servers in the network topology, specifically including:
and determining a server set corresponding to each different large-class role according to the host names of all the servers in the network topology structure.
Preferably, the sending a detection instruction to the corresponding server according to the plurality of key paths and obtaining a first detection result corresponding to each key path specifically includes:
respectively sending detection instructions to source servers in a plurality of key paths, wherein the detection instructions are used for triggering the source servers to detect corresponding target servers in the key paths and obtaining first detection results;
and acquiring the first detection result corresponding to each critical path, wherein the first detection result comprises time delay information, and/or packet loss rate, and/or throughput, and/or connection power.
Preferably, calculating the network SLA corresponding to the target network according to all the first detection results, specifically including:
calculating a time delay SLA corresponding to the target network according to the first detection results which comprise the time delay information in all the first detection results;
calculating a packet loss rate SLA corresponding to the target network according to the first detection results including the packet loss rate in all the first detection results;
calculating a throughput SLA corresponding to the target network according to the first detection results including the throughput in all the first detection results;
calculating a connection power SLA corresponding to the target network according to the first detection results including the connection success rate;
and calculating the network SLA corresponding to the target network according to the time delay SLA, the packet loss rate SLA, the throughput SLA and the connection success rate SLA.
Preferably, after the network SLA corresponding to the target network is calculated according to all the first detection results, the method further includes;
judging whether the network SLA is reduced or not;
if yes, analyzing each first detection result to obtain the server causing the decline of the network SLA;
and positioning and displaying the server causing the network SLA to be reduced in a preset graph.
In a second aspect, an embodiment of the present invention provides a computing apparatus for a network SLA, including:
the role detection module is used for determining the role corresponding to each server in the target network;
the topology discovery module is used for acquiring a network topology structure corresponding to the target network;
the key path module is connected with the role detection module and the topology discovery module and is used for acquiring a plurality of key paths according to the roles corresponding to the servers and the network topology structure;
the network detection module is connected with the key path module and used for sending a detection instruction to the corresponding server according to the plurality of key paths and acquiring a first detection result corresponding to each key path;
and the SLA calculation module is connected with the network detection module and used for calculating the network SLA corresponding to the target network according to all the first detection results.
In a third aspect, an embodiment of the present invention provides a network SLA computing apparatus, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to implement the network SLA computing method according to the first aspect.
According to the network SLA computing method and device provided by the embodiment of the invention, the role corresponding to each server in the target network is determined, and the role of the task born by each server can be sensed in real time; the method comprises the steps of obtaining a network topology structure corresponding to a target network, providing a complete view of an end-to-end running state of each server in the target network, obtaining a plurality of key paths according to a role corresponding to each server and the network topology structure, sending detection instructions to the corresponding servers according to the key paths, obtaining a first detection result corresponding to each key path, and calculating the network SLA corresponding to the target network according to all the first detection results, so that the calculation of the network SLA can be attached to the role of tasks borne by each server, the network SLA can be calculated in real time, and the problems that the conventional calculation method of the network SLA can only carry out calculation after a fault occurs and cannot calculate the network SLA in real time are solved.
Drawings
FIG. 1: is a flow chart of a method for calculating network SLA according to embodiment 1 of the present invention;
FIG. 2: is a schematic structural diagram of a computing device of a network SLA according to embodiment 2 of the present invention;
FIG. 3: is a schematic structural diagram of a computing device of a network SLA according to embodiment 3 of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the following detailed description will be made with reference to the accompanying drawings.
It is to be understood that the specific embodiments and figures described herein are merely illustrative of the invention and are not limiting of the invention.
It is to be understood that the embodiments and features of the embodiments can be combined with each other without conflict.
It is to be understood that, for the convenience of description, only parts related to the present invention are shown in the drawings of the present invention, and parts not related to the present invention are not shown in the drawings.
It should be understood that each unit and module related in the embodiments of the present invention may correspond to only one physical structure, may also be composed of multiple physical structures, or multiple units and modules may also be integrated into one physical structure.
It will be understood that, without conflict, the functions, steps, etc. noted in the flowchart and block diagrams of the present invention may occur in an order different from that noted in the figures.
It is to be understood that the flowchart and block diagrams of the present invention illustrate the architecture, functionality, and operation of possible implementations of systems, apparatus, devices and methods according to various embodiments of the present invention. Each block in the flowchart or block diagrams may represent a unit, module, segment, code, or portion thereof, which comprises executable instructions for implementing the specified function(s). Furthermore, each block or combination of blocks in the block diagrams and flowchart illustrations can be implemented by a hardware-based system that performs the specified functions or by a combination of hardware and computer instructions.
It should be understood that the units and modules referred to in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, for example, the units and modules may be located in a processor.
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, a brief description will be given below of some technical terms involved in the embodiments of the present invention.
Example 1:
the present embodiment provides a method for calculating a network SLA, as shown in fig. 1, where the method includes:
step S102: and determining the role corresponding to each server in the target network.
In this embodiment, the target network is a network that needs to compute a network SLA, for example, the target network may be an IDC (Internet Data Center) network, or a small network composed of multiple servers in the IDC, or the target network may also be a network composed of multiple servers that a user defines and needs to detect, and includes multiple servers and network devices connected to the servers. According to different tasks or services borne by each server, the server can be divided into a plurality of roles, each server can correspond to one or more roles, and each role bears corresponding tasks or services correspondingly.
Optionally, determining a role corresponding to each server in the target network may specifically include:
acquiring an operating system type corresponding to each server in a target network;
acquiring software and/or service sets to be detected corresponding to each server according to the type of the operating system;
detecting each server according to the software and/or service set to be detected, and obtaining a second detection result;
and determining the role corresponding to each server in the target network according to the second detection result.
In this embodiment, in order to quickly acquire roles corresponding to all servers in the target network, the operating systems of all servers in the target network may be detected first, the operating system types corresponding to all servers in the target network are acquired, the operating system types such as linux, windows, macOS, and the like, and because different operating systems may be deployed or run different software and services, for example, a piece of software may be installed under windows, but there is no corresponding version of the software under linux, a corresponding relationship between an operating system type, a corresponding deployable or operable software type, a service, and a corresponding role may be stored in a database in advance, and then the software and/or service set to be detected corresponding to each server may be acquired according to the operating system type corresponding to each server, the software type deployable or operable under the operating system type in the database, and the service, and detecting each server according to the software and/or service set to be detected, and detecting whether the service and/or software corresponding to the operating system type runs on the server, for example, when detecting that the operating system type corresponding to a certain server is linux, only detecting the service and/or software corresponding to linux, and not detecting windows-related service and/or software, so as to accelerate the efficiency of server detection. The collected information can be judged one by methods such as inquiring system service, checking system file content, system process ID, TCP/UDP port started by the system, searching files under a specified path and the like, so that second detection results of all services and/or software running on the server are obtained, and then the role corresponding to each server in the target network is determined according to the second detection results.
In this embodiment, the roles may include major roles such as database server, WEB server, middleware server, file server, mail server, domain name server, FTP server, and other servers, and minor roles. Each major role may further include a plurality of minor roles, for example, the minor roles corresponding to the major roles may be as follows:
(1) a database server: MySQL, SQL Server, Access, MongoDB, Cassandra, Oracle, others;
(2) a WEB server: apache, Nginx, IIS, Tomcat, Zeus, Lighttpd, etc.;
(3) a middleware server: kafka, RabbitMQ, ActiveMQ, RocketMQ, Redis, ZeroMQ, etc.;
(4) a file server: FTP, HTTP, NFS, SMB, DFS, CIFS, etc.;
(5) a mail server: IMAP, POP3, SMTP, ESMTP Exchange, HTTP and the like;
(6) a domain name server: main domain name, auxiliary domain name, cache domain name, forwarding domain name, etc.;
(7) an application server: java,. net framework, PHP, open source application server, mobile application server, etc.;
(8) the other servers: proxy servers, message servers, etc.
Each server at least corresponds to one subclass role and one major class role corresponding to the subclass role. For example, if a server is a linux system, and Kafka and Apache run on the linux system, it may be determined that the major roles of the server are a middleware server and a web server, and the minor roles are Kafka and Apache.
In this embodiment, in order to facilitate selection of subsequent critical paths and network detection, after determining a role corresponding to each server in the target network, a host name corresponding to each server may be modified according to the role corresponding to each server, where the host name includes a serial number and a role code, and the role code is used to indicate all roles corresponding to the server, including a small-class role and a large-class role.
In this embodiment, in order to reduce the pressure of server data storage, the length of the hostname of the server should be moderate, and the naming form of the hostname of the server may be defined as SN _ rolls, where SN is the serial number of the server, each server is unique, rolls is a server role, and since each server may take multiple ROLES, in order to shorten the hostname length, rolls are named as follows:
1) the role is expressed in the form of a major role + a minor role. The major roles are coarse-grained software/service types such as a database server, a WEB server, a middleware server and the like, and the minor roles are formed by subdividing the major roles, for example, under the major roles of the database server, MySQL, SQL Server, Access, MongoDB, Cassandra, Oracle and other minor roles are available.
2) Whether the large-class role or the small-class role is represented by binary data, and the binary data is converted into other binary data. For example, if the major ROLES are divided into 8 types, and each major role is subdivided into 7 minor ROLES at most, the representation of the role can be completed by first using 64-bit binary data. The concrete representation method is as follows: the 64 bits are subdivided into 7 bits _8 bits, wherein each 7bit is used for representing a specific subclass role after the subclass role is subdivided, the last 8 bits are used for representing a specific subclass role, and finally, the 64 bits are binary coded into decimal integers, octal integers or hexadecimal integers which are ROLES, so that the length of the server hostname is shortened, and the pressure of server data storage is reduced. Meanwhile, considering that the 64-bit binary code is the size of the numerical value after other binary systems, the type with higher occurrence frequency can be placed on the right side of each bit group, and the type with lower occurrence frequency can be placed on the left side of each bit group, for example, if the occurrence frequency of the database server is higher in 8 bits used for representing the major role, the last bit in the 8 bits can be used for representing the database server.
Assuming that the major ROLES of a server are database server and WEB server, wherein the database server includes MySQL and Cassandra, and the WEB server includes Nginx and Apache, the binary system of the role is as follows: 0000000-. The last bit in 8 bits is 1, which means that the server is a database server, the last bit is 1, which means that the server is a WEB server, correspondingly, the corresponding positions in 7 bits respectively represent corresponding subclass roles under the major role, and finally, the decimal integer can be converted into 591107, and the hostname of the server is SN _ 591107.
Step S104: and acquiring a network topology structure corresponding to the target network.
Optionally, the obtaining of the network topology corresponding to the target network may specifically include:
receiving the connection relation between the server and the adjacent network equipment sent by each server;
acquiring a network topology structure corresponding to a target network according to the received connection relation;
the network topology is used for describing a target network formed by a server and network equipment.
In this embodiment, in order to obtain a complete view of the end-to-end operating state of each server in the target network, each server or each server and the network device in the target network may collect device information, such as SN, IP, MAC, etc., connected to each server or each server and the network device may use protocols such as LLDP, SNMP, etc., and report the connection relationship between each server or each server and the adjacent device to the network SLA computing device, so that the network SLA computing device obtains a network topology structure corresponding to the target network according to the received connection relationship, stores the network topology structure in a corresponding database, and automatically updates the network topology information in the database when the network topology structure changes (e.g., a server goes offline, fails, a new server goes to the shelf, etc.).
Step S106: and acquiring a plurality of key paths according to the role corresponding to each server and the network topology structure.
In this embodiment, the user may define the critical path according to the role of the task assumed by each server, and the network SLA computing device may also automatically generate the critical path by using the collected server role information and the network topology, and identify all servers on the critical path at the same time. Because the traditional network SLA calculation is too much heavier than the network and is not tightly attached to the tasks or services, the network SLA calculation is completely isolated from the tasks or services borne by the servers, and the IDC cannot be helped to achieve the task or service target, so that the network SLA calculation is attached to the tasks or services borne by the servers, and the critical paths include critical paths between the servers with different roles and critical paths between the servers with the same role.
Optionally, the obtaining multiple critical paths according to the role corresponding to each server and the network topology may specifically include:
determining a server set corresponding to each different role according to host names of all servers in a network topology structure;
selecting at least one server from each server set in turn as a source server or a destination server, and forming a key path between servers with different roles with the server selected from other server sets as the destination server or the source server;
judging whether each server set comprises a plurality of servers, and selecting different servers from the server sets comprising the plurality of servers as key paths between different servers with the same role formed by the source server and the destination server respectively.
In this embodiment, a server set corresponding to each different major role may be determined according to the host names of all servers in the network topology, that is, according to the hostname of each server in the network topology, parsing is performed according to the naming rule of the hostname, a major role and a minor role corresponding to each server are determined, a corresponding server set is obtained for each major role, and a server is selected according to a preset algorithm, so as to form full mesh (full connection) between servers of different roles. For example, if the major role of the server shares class 3 of database server, WEB server and middleware server, the critical path may include the critical path of database server-WEB server, WEB server-middleware server, database server-database server, WEB server-WEB server and middleware server-middleware server.
In this embodiment, when the target network is an IDC network, because the number of servers in the IDC network is too many, all servers cannot be covered, and meanwhile, in order to avoid jitter of an SLA, which is easily caused by instability of a single server, of only selecting the single server, a plurality of servers can be selected from each server set according to a preset algorithm to form a critical path between servers with different roles and a critical path between different servers with the same role. If the database server has server01, the WEB server has server01, server02 and server04, the middleware server has server02, server03 and server05, the database server can select server01, the WEB server can select server02 server04 and the middleware server can select server03server05, and the formed critical path can include: the system comprises servers 01-Server 02, servers 01-Server 04, servers 02-Server 04, servers 03-Server 05, rver 02-Server 03, servers 02-Server 05, servers 04-Server 03 and servers 04-Server 05.
Step S108: and sending detection instructions to corresponding servers according to the plurality of key paths, and acquiring a first detection result corresponding to each key path.
In this embodiment, after the critical path is determined, a detection instruction may be sent to a source server in each of the plurality of critical paths, where the detection instruction is used to trigger the source server to detect a corresponding destination server in the critical path, that is, network detection tools such as fping, tcping, traceroute, iperf, and the like are used to perform detection, for example, fping may be used to detect latency and packet loss, tcpping may be used to detect a connection success rate, iperf may be used to detect throughput, and a first detection result is obtained and then reported. The network SLA computing device may store the first detection results sent by each source server into a corresponding time sequence database, where each first detection result in the time sequence database may include a timestamp, a source server hostname, a destination server hostname, detected delay information, a packet loss rate, throughput, a connection power, and the like, and the network SLA computing device may obtain the first detection result corresponding to each critical path from the time sequence database. In the detection process, the detected port can be specifically determined through the subclass role corresponding to each server, for example, when tcping is adopted for detection, the specific port needs to be known for detection, so that the detected port can be determined through the subclass role corresponding to the server first, and then the detection is performed. Because the roles of the servers on the critical paths are different, the detection results may include different indexes, for example, some critical paths may use fping and tcp, but some critical paths may only use fping, and therefore, each first detection result does not necessarily include delay information, packet loss rate, throughput, and connection power, if the first detection result corresponding to a certain critical path does not relate to a throughput index, the index may be null, and the remaining three indexes are detection result values.
Optionally, calculating a network SLA corresponding to the target network according to all the first detection results, which may specifically include:
calculating a time delay SLA corresponding to the target network according to the first detection results which contain the time delay information in all the first detection results;
calculating a packet loss rate SLA corresponding to the target network according to the first detection results containing the packet loss rate in all the first detection results;
calculating a throughput SLA corresponding to the target network according to the first detection results containing the throughput in all the first detection results;
calculating a connection power SLA corresponding to the target network according to the first detection results including the connection success rate;
and calculating the network SLA corresponding to the target network according to the time delay SLA, the packet loss rate SLA, the throughput SLA and the connected power SLA.
In this embodiment, to calculate the network SLA, the delay SLA, the packet loss rate SLA, the throughput SLA and the connection power SLA corresponding to the target network may be calculated according to different indexes. Specifically, different thresholds may be set for different metrics for scoring the corresponding SLA, for example: for the delay index, three thresholds of 1ms, 3ms and 5ms may be set, and normally, when the delay between two servers is less than 1ms, the score is full, when the delay is between 1ms and 3ms, the score is x percent of full, when the delay is between 3ms and 5ms, the score is y percent of full, and when the delay is above 5ms, the score is z percent of full. Wherein 1> x% > y% > z%. If there are B first probe results including delay information in the time sequence database, and among the B results, there are B1 for the delay information below 1ms, B2 for the delay information between 1ms and 3ms, B3 for the delay information between 3ms and 5ms, and B4 for the delay information above 5ms, the scoring rule of the delay SLA may be: time delay SLA 100/B × B1+100/B × B2 ×% +100/B × B3 × y% + 100/B4 × z%. Similarly, the packet loss rate SLA, the throughput SLA, the scoring rules connected into the power SLA and the like are similar to the time delay SLA, and finally the network SLA corresponding to the target network is calculated according to the time delay SLA, the packet loss rate SLA, the throughput SLA, the connection success rate SLA and the like, for example, the calculation can be performed by the following formula:
the network SLA + time delay SLA + beta packet loss rate SLA + gamma throughput SLA + … …, wherein alpha, beta, gamma and the like are preset weights and are used for representing the influence degree of different SLAs on the whole network SLA.
Optionally, after the network SLA corresponding to the target network is calculated according to all the first detection results, the method may further include;
judging whether the network SLA is reduced or not;
if yes, analyzing each first detection result to obtain a server causing the reduction of the network SLA;
and positioning and displaying the server causing the network SLA to be reduced in a preset graph.
In this embodiment, since the topology structure of the target network is usually fixed, after the critical path is generated, the subsequent network SLA calculation may use the pre-generated critical path, send a probe instruction to the corresponding server according to the pre-generated critical path, and when the current network SLA calculation result is smaller than the last or historical all network SLA calculation results, determine that the current network SLA decreases. When it is determined that the network SLA has decreased, the network SLA computing means may retrieve one or more servers causing the network SLA to decrease, by analyzing each of the first detection results according to a range required by each index in the first detection results. For example, if the required range of the delay information is 1ms to 5ms, if the required range exceeds 5ms, the server is a server causing the network SLA to be reduced, and finally, the server causing the network SLA to be reduced is positioned and displayed by a preset graph, so that early warning information is provided in time, rapid positioning is provided for network faults, and corresponding network managers can eliminate network hidden dangers and faults in time. The preset graph can be a dot-matrix graph, a topological graph and the like, and is mainly used for positioning and displaying the server causing the network SLA to be reduced. Taking the dot-matrix diagram as an example, the vertical axis may represent a source server, the horizontal axis represents a destination server, assuming that different indexes are displayed by different preset graphs, taking the time delay as an example, one or more thresholds may be defined for the time delay, for example, green is below 4ms, yellow is 4-5ms, red is above 5ms, then the dots with corresponding colors are displayed on the dot-matrix diagram according to the time delay information in the first detection result, and the source server and the destination server corresponding to all red dots are servers causing the reduction of the network SLA.
According to the network SLA calculation method provided by the embodiment of the invention, the role corresponding to each server in the target network is determined, and the role of the task born by each server can be sensed in real time; the method comprises the steps of obtaining a network topology structure corresponding to a target network, providing a complete view of an end-to-end running state of each server in the target network, obtaining a plurality of key paths according to a role corresponding to each server and the network topology structure, sending detection instructions to the corresponding servers according to the key paths, obtaining a first detection result corresponding to each key path, and calculating the network SLA corresponding to the target network according to all the first detection results, so that the calculation of the network SLA can be attached to the role of tasks borne by each server, the network SLA can be calculated in real time, and the problems that the conventional calculation method of the network SLA can only carry out calculation after a fault occurs and cannot calculate the network SLA in real time are solved.
Example 2:
as shown in fig. 2, the present embodiment provides a computing apparatus of a network SLA, including:
a role detection module 12, configured to determine a role corresponding to each server in the target network;
a topology discovery module 14, configured to obtain a network topology structure corresponding to a target network;
a critical path module 16, connected to the role detection module 12 and the topology discovery module 14, for obtaining a plurality of critical paths according to the role corresponding to each server and the network topology structure;
a network detection module 18 connected to the critical path module 16, configured to send a detection instruction to a corresponding server according to multiple critical paths, and obtain a first detection result corresponding to each critical path;
and the SLA calculation module 20 is connected with the network detection module 18 and used for calculating the network SLA corresponding to the target network according to all the first detection results.
Optionally, the role detection module 12 may specifically include:
the first acquisition unit is used for acquiring the operating system type corresponding to each server in the target network;
the second acquisition unit is used for acquiring the software and/or service set to be detected corresponding to each server according to the type of the operating system;
the third acquisition unit is used for detecting each server according to the software and/or service set to be detected and acquiring a second detection result;
and the role determining unit is used for determining the role corresponding to each server in the target network according to the second detection result.
Optionally, the topology discovery module 14 may specifically include:
the receiving unit is used for receiving the connection relation between the server and the adjacent network equipment sent by each server;
the topological structure unit is used for acquiring a network topological structure corresponding to the target network according to the received connection relation;
the network topology is used for describing a target network formed by a server and network equipment.
Optionally, the method may further include:
the system comprises a host name modification module, a role selection module and a role selection module, wherein the host name modification module is used for modifying a host name corresponding to each server according to a role corresponding to each server, the host name comprises a serial number and a role code, the role code is used for indicating all roles corresponding to the servers, and each server at least corresponds to one role;
optionally, the critical path includes a critical path between servers of different roles and a critical path between different servers of the same role;
optionally, the critical path module 16 specifically includes:
the server set determining unit is used for determining a server set corresponding to each different role according to the host names of all the servers in the network topology structure;
the first key path forming unit is used for selecting at least one server from each server set in sequence as a source server or a destination server and forming a key path between servers with different roles with the server selected from other server sets as the destination server or the source server;
and the second key path forming unit is used for judging whether each server set comprises a plurality of servers or not, and selecting different servers from the server sets comprising the plurality of servers as key paths between different servers with the same role formed by the source server and the destination server respectively.
Optionally, the roles include a major role and a minor role, each major role includes a plurality of minor roles, each server corresponds to at least one minor role, and one major role corresponds to a minor role;
the server set determining unit is specifically configured to determine, according to the host names of all servers in the network topology, a server set corresponding to each of the different major roles.
Optionally, the network probing module 18 may specifically include:
the detection instruction sending unit is used for respectively sending detection instructions to source servers in a plurality of key paths, and the detection instructions are used for triggering the source servers to detect corresponding target servers in the key paths and obtain first detection results;
a detection result obtaining unit, configured to obtain a first detection result corresponding to each critical path, where the first detection result includes time delay information, and/or a packet loss rate, and/or throughput, and/or a connection power.
Optionally, the SLA computing module 20 may specifically include:
the time delay SLA calculation unit is used for calculating the time delay SLA corresponding to the target network according to the first detection results which contain the time delay information in all the first detection results;
the system comprises a packet loss rate SLA calculating unit, a first detection unit and a second detection unit, wherein the packet loss rate SLA calculating unit is used for calculating a packet loss rate SLA corresponding to a target network according to first detection results containing packet loss rates in all the first detection results;
the throughput SLA calculation unit is used for calculating the throughput SLA corresponding to the target network according to the first detection results containing the throughput in all the first detection results;
the connected power SLA calculation unit is used for calculating the connected power SLA corresponding to the target network according to the first detection results including the connection success rate in all the first detection results;
and the network SLA calculating unit is used for calculating the network SLA corresponding to the target network according to the time delay SLA, the packet loss rate SLA, the throughput SLA and the connected power SLA.
Optionally, the method also comprises the following steps;
the network SLA judging module is used for judging whether the network SLA is reduced or not;
the analysis module is used for analyzing each first detection result if the first detection result is positive, and acquiring a server causing the reduction of the network SLA;
and the positioning display module is used for positioning and displaying the server causing the reduction of the network SLA in a preset graph.
Example 3:
referring to fig. 3, the present embodiment provides a network SLA computing apparatus, including a memory 21 and a processor 22, where the memory 21 stores a computer program, and the processor 22 is configured to execute the computer program to perform the network SLA computing method in embodiment 1.
The memory 21 is connected to the processor 22, the memory 21 may be a flash memory, a read-only memory or other memories, and the processor 22 may be a central processing unit or a single chip microcomputer.
The computing device of the network SLA provided in embodiments 2 to 3 can sense the role of the task undertaken by each server in real time by determining the role corresponding to each server in the target network; the method comprises the steps of obtaining a network topology structure corresponding to a target network, providing a complete view of an end-to-end running state of each server in the target network, obtaining a plurality of key paths according to roles corresponding to each server and the network topology structure, sending detection instructions to the corresponding servers according to the key paths, obtaining a first detection result corresponding to each key path, and calculating a network SLA corresponding to the target network according to all the first detection results, so that the calculation of the network SLA can be attached to the roles of tasks born by each server, the network SLA can be calculated in real time, and the problems that the conventional calculation method of the network SLA can only carry out calculation after a fault occurs and cannot calculate the network SLA in real time are solved.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (10)

1. A method for computing a network SLA, comprising:
determining the role corresponding to each server in the target network;
acquiring a network topology structure corresponding to the target network;
acquiring a plurality of key paths according to the role corresponding to each server and the network topology structure;
sending a detection instruction to the corresponding server according to the plurality of key paths, and acquiring a first detection result corresponding to each key path;
and calculating the network SLA corresponding to the target network according to all the first detection results.
2. The method for computing a network SLA according to claim 1, wherein the determining the role corresponding to each server in the target network specifically comprises:
obtaining an operating system type corresponding to each server in the target network;
acquiring software and/or service sets to be detected corresponding to the servers according to the type of the operating system;
detecting each server according to the software and/or service set to be detected, and obtaining a second detection result;
and determining the role corresponding to each server in the target network according to the second detection result.
3. The method according to claim 1, wherein the obtaining of the network topology corresponding to the target network specifically comprises:
receiving the connection relation between the server and the adjacent network equipment sent by each server;
acquiring a network topology structure corresponding to the target network according to the received connection relation;
wherein the network topology is used to describe the target network composed of the server and the network device.
4. The method for computing a network SLA according to claim 1, wherein after determining the role corresponding to each server in the target network, the method further comprises:
modifying a host name corresponding to each server according to the role corresponding to each server, wherein the host name comprises a serial number and a role code, the role code is used for indicating all roles corresponding to the servers, and each server at least corresponds to one role;
the key paths comprise key paths among servers with different roles and key paths among different servers with the same role; the obtaining a plurality of critical paths according to the role corresponding to each server and the network topology specifically includes:
determining a server set corresponding to each different role according to the host names of all the servers in the network topology structure;
selecting at least one server from each server set in turn as a source server or a destination server, and forming a critical path between the servers with different roles with the servers selected from other server sets as the destination server or the source server;
judging whether each server set comprises a plurality of servers, and selecting different servers from the server sets comprising the servers as the key paths between different servers with the same role respectively by the source server and the destination server.
5. The method for computing a network SLA according to claim 4, wherein the roles comprise a large class role and a small class role, each large class role comprises a plurality of small class roles, each server corresponds to at least one small class role, and one large class role corresponds to the small class roles;
determining a server set corresponding to each of the different roles according to the host names of all the servers in the network topology structure, specifically including:
and determining a server set corresponding to each different large-class role according to the host names of all the servers in the network topology structure.
6. The method according to claim 4, wherein the sending a probe instruction to the corresponding server according to the plurality of key paths and obtaining a first probe result corresponding to each of the key paths specifically includes:
respectively sending detection instructions to source servers in a plurality of key paths, wherein the detection instructions are used for triggering the source servers to detect corresponding target servers in the key paths and obtaining first detection results;
and acquiring the first detection result corresponding to each critical path, wherein the first detection result comprises time delay information, and/or packet loss rate, and/or throughput, and/or connection power.
7. The method according to claim 6, wherein calculating the network SLA corresponding to the target network according to all the first detection results specifically includes:
calculating a time delay SLA corresponding to the target network according to the first detection results which comprise the time delay information in all the first detection results;
calculating the packet loss rate SLA corresponding to the target network according to the first detection results including the packet loss rate in all the first detection results;
calculating a throughput SLA corresponding to the target network according to the first detection results including the throughput in all the first detection results;
calculating a connection power SLA corresponding to the target network according to the first detection results including the connection success rate;
and calculating the network SLA corresponding to the target network according to the time delay SLA, the packet loss rate SLA, the throughput SLA and the connection success rate SLA.
8. The method according to claim 1, wherein after the network SLA corresponding to the target network is calculated according to all the first detection results, the method further comprises;
judging whether the network SLA is reduced or not;
if yes, analyzing each first detection result to obtain the server causing the decline of the network SLA;
and positioning and displaying the server causing the network SLA to be reduced in a preset graph.
9. A computing apparatus of a network SLA, comprising:
the role detection module is used for determining the role corresponding to each server in the target network;
the topology discovery module is used for acquiring a network topology structure corresponding to the target network;
the key path module is connected with the role detection module and the topology discovery module and is used for acquiring a plurality of key paths according to the roles corresponding to the servers and the network topology structure;
the network detection module is connected with the key path module and used for sending a detection instruction to the corresponding server according to the plurality of key paths and acquiring a first detection result corresponding to each key path;
and the SLA calculation module is connected with the network detection module and used for calculating the network SLA corresponding to the target network according to all the first detection results.
10. A computing apparatus of a network SLA, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the network SLA computing method according to any one of claims 1-8.
CN202110665967.1A 2021-06-16 2021-06-16 Network SLA calculation method and device Active CN113472567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110665967.1A CN113472567B (en) 2021-06-16 2021-06-16 Network SLA calculation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110665967.1A CN113472567B (en) 2021-06-16 2021-06-16 Network SLA calculation method and device

Publications (2)

Publication Number Publication Date
CN113472567A CN113472567A (en) 2021-10-01
CN113472567B true CN113472567B (en) 2022-08-19

Family

ID=77870249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110665967.1A Active CN113472567B (en) 2021-06-16 2021-06-16 Network SLA calculation method and device

Country Status (1)

Country Link
CN (1) CN113472567B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1666535A (en) * 2002-07-10 2005-09-07 西门子公司 Recognition of reduced service capacities in a communication network
CN1905497A (en) * 2006-07-31 2007-01-31 西安西电捷通无线网络通信有限公司 Method and apparatus for estimating terminal to terminal service grade protocol
CN101272287A (en) * 2008-04-17 2008-09-24 华为技术有限公司 Method, device and system for monitoring service quality of user service
CN103840966A (en) * 2012-11-27 2014-06-04 三星电子株式会社 Method and apparatus to manage service level agreement

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1666535A (en) * 2002-07-10 2005-09-07 西门子公司 Recognition of reduced service capacities in a communication network
CN1905497A (en) * 2006-07-31 2007-01-31 西安西电捷通无线网络通信有限公司 Method and apparatus for estimating terminal to terminal service grade protocol
CN101272287A (en) * 2008-04-17 2008-09-24 华为技术有限公司 Method, device and system for monitoring service quality of user service
CN103840966A (en) * 2012-11-27 2014-06-04 三星电子株式会社 Method and apparatus to manage service level agreement

Also Published As

Publication number Publication date
CN113472567A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
US11818025B2 (en) Methods, systems, and apparatus to generate information transmission performance alerts
US10749939B2 (en) Application monitoring for cloud-based architectures
US20210258239A1 (en) Network health data aggregation service
US10917322B2 (en) Network traffic tracking using encapsulation protocol
US10027694B1 (en) Detecting denial of service attacks on communication networks
US9483343B2 (en) System and method of visualizing historical event correlations in a data center
WO2018126645A1 (en) Communication network management method and apparatus therefor
US20140304407A1 (en) Visualizing Ephemeral Traffic
US20030225876A1 (en) Method and apparatus for graphically depicting network performance and connectivity
CN108989136B (en) Business end-to-end performance monitoring method and device
US11025534B2 (en) Service-based node-centric ECMP health
CN109039795B (en) Cloud server resource monitoring method and system
CN111585819B (en) Fault analysis method and system for distribution network communication equipment
CN107294743B (en) Network path detection method, controller and network equipment
CN114553672B (en) Method, device, equipment and medium for determining performance bottleneck of application system
CN110071843B (en) Fault positioning method and device based on flow path analysis
CN117041107B (en) Bandwidth quality monitoring method, bandwidth quality monitoring system and data center
CN113472567B (en) Network SLA calculation method and device
CN110943864A (en) Network anomaly positioning method and device of distributed storage system
CN111385162B (en) Network detection method and device, computer equipment and storage medium
CN114760220B (en) Method, device and equipment for monitoring operating system
CN117255005B (en) CDN-based service alarm processing method, device, equipment and medium
CN115811433A (en) Method and device for improving accuracy and performance of Flow attack detection
CN113965486A (en) Line detection method and device for vertically positioning fault
CN117527353A (en) Log monitoring method and device, electronic equipment and 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