WO2016202097A1 - Method for obtaining assured bandwidth of user-side port and network monitoring system - Google Patents

Method for obtaining assured bandwidth of user-side port and network monitoring system Download PDF

Info

Publication number
WO2016202097A1
WO2016202097A1 PCT/CN2016/080393 CN2016080393W WO2016202097A1 WO 2016202097 A1 WO2016202097 A1 WO 2016202097A1 CN 2016080393 W CN2016080393 W CN 2016080393W WO 2016202097 A1 WO2016202097 A1 WO 2016202097A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
service
guaranteed bandwidth
network
access port
Prior art date
Application number
PCT/CN2016/080393
Other languages
French (fr)
Chinese (zh)
Inventor
孙凯意
李静罡
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016202097A1 publication Critical patent/WO2016202097A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • This document relates to, but is not limited to, the field of communications, and in particular, to a method and network monitoring system for obtaining user-side port guaranteed bandwidth.
  • the network monitoring system for network traffic monitoring and management analysis of professional networks is mainly used to ensure that operators fully grasp the usage status of professional network network traffic, rationally use resource utilization efficiency, effectively carry out resource early warning capacity expansion and traffic balance optimization to prevent network congestion. Effectively guarantee the quality of transmission of each type of business.
  • network monitoring systems need to monitor and analyze.
  • “guarantee bandwidth ratio” is one of the important indicators that need to be monitored and analyzed. The larger the guaranteed bandwidth ratio is, the higher the network resource utilization is, but the greater the probability of congestion. The smaller the guaranteed bandwidth ratio, the lower the network resource utilization and the lower the probability of congestion. .
  • the "guaranteed bandwidth ratio” is obtained by calculating the ratio of the guaranteed bandwidth of the port to the physical bandwidth of the port. The most important thing is to get the guaranteed bandwidth of the port; at present, the guaranteed bandwidth of the user-side port is manually searched and calculated, which consumes a lot of human resources and is easy to calculate.
  • the embodiment of the invention provides a method for obtaining a guaranteed bandwidth of a user-side port and a network monitoring system, which can reduce the problem that a large amount of human resources is consumed and the calculation is error-prone by manually calculating the bandwidth of the user-side port in the related art.
  • the network monitoring system queries the database, determines all user-side ports in the entire network, and saves the port identifier of each user-side port;
  • the network monitoring system acquires all network services corresponding to each user-side port according to the port identifier of the user-side port, and obtains the guaranteed bandwidth of the corresponding access port of each network service;
  • the network monitoring system calculates the sum of all guaranteed bandwidths corresponding to the same port identifier to obtain the port guaranteed bandwidth of the user-side port corresponding to the port identifier.
  • the network service includes an Ethernet service
  • the obtaining the guaranteed bandwidth of the corresponding access port of each network service includes:
  • the guaranteed bandwidth of the corresponding access port is calculated according to the corresponding algorithm for calculating the guaranteed bandwidth of the access port.
  • the access port type includes an access port being a physical port
  • the algorithm for selecting a corresponding guaranteed bandwidth of the calculated access port according to the type of the access port includes:
  • the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port.
  • the speed limit parameter of the pseudo-line is The guaranteed bandwidth is the guaranteed bandwidth of the physical port.
  • the access port type includes an access port as an interface
  • the algorithm for selecting a corresponding guaranteed bandwidth of the access port according to the type of the access port includes:
  • the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port corresponding to the interface.
  • the speed limit parameter of the pseudo-line is The guaranteed bandwidth is the guaranteed bandwidth of the physical port corresponding to the interface.
  • the network service includes a time division multiplexing service, and the obtaining the guaranteed bandwidth of the corresponding access port of each network service includes:
  • the guaranteed bandwidth of the corresponding access port of the time division multiplexing service is obtained according to the service type and the physical port type.
  • the acquiring the service type corresponding to each time division multiplexing service includes:
  • the determining that the user side port in the entire network includes: determining the user side port in the entire network includes:
  • the network monitoring system queries the database to obtain all physical ports in the entire network
  • the network monitoring system acquires a network-wide topology connection, resolves a network-connected network endpoint, and obtains a physical port connected to the network endpoint;
  • the embodiment of the invention further provides a network monitoring system, including a user side query module, a guaranteed bandwidth acquisition module and a guaranteed bandwidth calculation module:
  • the user side query module is configured to query a database, determine a user side port in the entire network, and save a port identifier of each user side port;
  • the guaranteed bandwidth acquisition module is configured to obtain all the network services corresponding to each user-side port according to the port identifier of the user-side port, and obtain the guaranteed bandwidth of the corresponding access port of each network service;
  • the guaranteed bandwidth calculation module is configured to calculate a sum of all guaranteed bandwidths corresponding to the same port identifier to obtain a port guaranteed bandwidth of the user-side port corresponding to the port identifier.
  • the network service includes an Ethernet service
  • the guaranteed bandwidth acquisition module is configured to: obtain all network services corresponding to each user-side port according to the port identifier of the user-side port, and determine Each Ethernet service corresponds to an access port type of the access port, and the algorithm for calculating the guaranteed bandwidth of the access port is selected according to the determined type of the access port; and the corresponding access port is calculated according to the algorithm for calculating the guaranteed bandwidth of the access port. Guaranteed bandwidth.
  • the network service includes a time division multiplexing service
  • the guaranteed bandwidth acquisition module is configured to: obtain all network services corresponding to each user side port according to the port identifier of the user side port, Obtaining a service type corresponding to each time division multiplexing service and a physical port type of the corresponding access port; obtaining a time division multiplexing service according to the service type and the physical port type Corresponding bandwidth of the corresponding access port.
  • the network service includes a time division multiplexing service
  • the guaranteed bandwidth acquisition module is configured to: obtain all network services corresponding to each user side port according to the port identifier of the user side port, Obtaining a service rate of each time division multiplexing service; determining, according to the obtained service rate, a service type corresponding to each time division multiplexing service; obtaining a time division multiplexing service corresponding access port according to the service type and the physical port type Guaranteed bandwidth.
  • the access port type includes the access port being a physical port
  • the guaranteed bandwidth acquiring module is configured to: acquire all networks corresponding to each user-side port according to the port identifier of the user-side port.
  • the service determines the type of the access port corresponding to the access port of each Ethernet service, and selects a corresponding algorithm for calculating the guaranteed bandwidth of the access port according to the determined type of the access port;
  • the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port.
  • the speed limit parameter of the pseudo-line is The guaranteed bandwidth is the guaranteed bandwidth of the physical port.
  • the access port type includes an access port as an interface
  • the guaranteed bandwidth acquiring module is configured to: obtain all network services corresponding to each user-side port according to the port identifier of the user-side port. Determining, according to the determined type of the access port, an algorithm for calculating a guaranteed bandwidth of the access port;
  • the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port corresponding to the interface.
  • the speed limit parameter of the pseudo-line is The guaranteed bandwidth is the guaranteed bandwidth of the physical port corresponding to the interface.
  • the user side query module is configured to query a database to obtain all physical ports in the entire network
  • the network monitoring system acquires a network-wide topology connection, resolves a network-connected network endpoint, and obtains a physical port connected to the network endpoint;
  • the technical solution provided by the embodiment of the present invention includes: the network monitoring system queries the database, determines all user-side ports in the entire network, and saves the port identifier of each user-side port; the network monitoring system is based on the user side.
  • the port identifier of the port obtains all the network services corresponding to each user-side port, and obtains the guaranteed bandwidth of the corresponding access port of each network service.
  • the network monitoring system calculates the sum of all the guaranteed bandwidths corresponding to the same port identifier to obtain the user side corresponding to the port identifier.
  • the port's port guarantees bandwidth.
  • FIG. 1 is a schematic flowchart of a method for obtaining a guaranteed bandwidth of a user-side port according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of a method for obtaining a guaranteed bandwidth of a user-side port according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of a network monitoring system according to Embodiment 3 of the present invention.
  • the method for obtaining the bandwidth of the user-side port in this embodiment includes the following steps:
  • Step 101 The network monitoring system queries the database, determines the user-side port in the entire network, and saves the port identifier of each user-side port.
  • the embodiment of the present invention mainly calculates the guaranteed bandwidth of the user-side port, it is necessary to first determine which are user-side ports. After identifying the user side port, it has to be identified. It is convenient to calculate the guaranteed bandwidth later.
  • the port identifier can be selected for identification, such as the name of the port, the number of the port, etc., which should be understood as long as any way of distinguishing each user-side port can be recognized. It can prevent the network monitoring system from causing calculation errors during processing. For example, the network monitoring system search system finds three user-side ports, and the port names are port A, port B, and port C, respectively.
  • Step 102 The network monitoring system acquires all network services corresponding to each user-side port according to the port identifier of the user-side port, and obtains the guaranteed bandwidth of the corresponding access port of each network service.
  • the guaranteed bandwidth of the port should ensure each network service, that is, the network.
  • the guaranteed bandwidth of a port is the sum of all guaranteed bandwidths of the network services used for that port.
  • the port identifier of the corresponding port should be recorded. For example, there are currently five network services in the network, namely, network service 1, network service 2, network service 3, network service 4, and network service 5.
  • the guaranteed bandwidth of the corresponding access port is 2 megabytes (M), 2M, respectively. 2M, 2M, and 1.5M, where the network service 1, the network service 2, and the network service 3 correspond to the port A, the network service 4 corresponds to the port B, and the network service 5 corresponds to the port C.
  • Step 103 The network monitoring system calculates the sum of all guaranteed bandwidths of the same port identifier to obtain the port guaranteed bandwidth of the user-side port corresponding to the port identifier.
  • step 102 the guaranteed bandwidth and the port identifier of the network service corresponding interface of the entire network are obtained, so that the guaranteed bandwidth of the same identified port can be well accumulated to obtain the guaranteed bandwidth of the port, so that Ensure the good operation of each network business.
  • the guaranteed bandwidth of port A is the sum of the guaranteed bandwidth of the network service 1, the network service 2, and the network service 3 corresponding to the access port is 6M
  • the guaranteed bandwidth of the port B is the guaranteed bandwidth of the network service 4 is 2M
  • the guarantee of the port C is The bandwidth is the guaranteed bandwidth corresponding to network service 5 of 1.5M.
  • the network service may be an Ethernet service; obtaining the guaranteed bandwidth of the corresponding access port of each network service includes: determining the type of the access port corresponding to each of the Ethernet service access ports, and selecting the corresponding type according to the determined type of the access port.
  • the access port type includes the access port being a physical port
  • the algorithm for calculating the guaranteed bandwidth of the corresponding access port according to the type of the access port includes: if the access port corresponding to the Ethernet service is configured with the rate limiting parameter, the rate limiting is performed. The guaranteed bandwidth in the parameter is used as the guaranteed bandwidth of the physical port. If the access port corresponding to the Ethernet service is not configured with the rate limit parameter, and the Ethernet service is bound to the pseudo line with the limited speed parameter for the linear service and the Ethernet service, The guaranteed bandwidth in the speed limit parameter of the pseudowire is used as the guaranteed bandwidth of the physical port.
  • the access port type includes the access port as an interface
  • the algorithm for calculating the guaranteed bandwidth of the corresponding access port according to the type of the access port includes: if the access port corresponding to the Ethernet service is configured with the rate limit parameter, the speed limit parameter is used.
  • the guaranteed bandwidth in the medium is the guaranteed bandwidth of the physical port corresponding to the interface. If the rate limit is not configured on the interface corresponding to the Ethernet service, the Ethernet service is bound to the pseudo line with the limited speed parameter for the linear service and the Ethernet service.
  • the guaranteed bandwidth in the rate limit parameter of the pseudowire is used as the guaranteed bandwidth of the physical port corresponding to the interface.
  • the method for calculating the bandwidth is as follows:
  • D 1 traverse the Ethernet service, if the user accesses the service Ethernet port configuration parameters of speed limit, then the guaranteed bandwidth direct the accumulated speed parameters to ensure the bandwidth of the physical port;
  • the speed limit parameter directly adds the guaranteed bandwidth in the rate limit parameter of the pseudowire to the guaranteed bandwidth of the physical port corresponding to the interface.
  • the network service includes a time division multiplexing service
  • obtaining the guaranteed bandwidth of the corresponding access port of each network service includes: acquiring a service type corresponding to each time division multiplexing service and a physical port type of the corresponding access port; The guaranteed bandwidth of the corresponding access port of the time division multiplexing service is obtained according to the service type and the physical port type.
  • the service type corresponding to each time division multiplexing service is obtained. Therefore, the service rate of each time division multiplexing service is obtained; and the service type corresponding to each time division multiplexing service is determined according to the obtained service rate.
  • the guaranteed bandwidth of the corresponding access port of the time division multiplexing service may include: the service type of the currently acquired time division multiplexing service is a TDM service, and then the traversal acquired time division multiplexing service is used.
  • the physical port of the port is 2M if the port type is E1. If the port type is STM-1, the bandwidth used by this port in this service is 2M.
  • the guaranteed bandwidth of this STM-1 port is the sum of the bandwidth used by all services.
  • the time division multiplexing service type and supported port types and port usage bandwidth are illustrated in Table 1.
  • determining the service type corresponding to each time division multiplexing service according to the obtained service rate includes: storing a service rate field in the time division multiplexing service, and matching the service rate field with the rate of different types of services. For example, the rate corresponding to the TDM service is 1580. If the value of the time field of a time division multiplexing service is 1580, the service is determined to be a TDM service.
  • the method for ensuring bandwidth calculation is as follows:
  • E3 is a 34 megabit per second (Mbit/s) quasi-synchronous digital series (PDH) signal
  • VC is a load-bearing virtual container
  • T1 is a 1.5 Mbit/s PDH signal
  • CEP is a packet circuit simulation
  • E1 denotes a first physical line interface access service type
  • the first column indicates the type of physical port opening
  • the rest of the "full port” indicates a physical port is an integer port access this service
  • the port used Ensure that the bandwidth is the total bandwidth of the port. If the guaranteed bandwidth of the entire port of E1 is 2M, the guaranteed bandwidth of the entire port of T1 is 1.5M.
  • E 2 traverses the TDM service and accumulates the physical port of the user side in the service according to the guaranteed bandwidth corresponding to the above table.
  • step 101 determining a user-side port in the entire network, where the network monitoring system queries the database to obtain all physical ports in the entire network; the network monitoring system acquires the entire network topology connection, and resolves the network connection.
  • the network endpoint obtains the physical port connected to the network endpoint; the physical port other than the physical port connected to the network endpoint is determined as the user-side port. That is, the physical port is first queried, and then the port whose port role is connected to the fiber connection is the network side port, otherwise it is the user side port. It is worth noting that the guaranteed bandwidth ports in this example are all physical ports on the user side.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute a method for obtaining a guaranteed bandwidth of the user side port.
  • the method for obtaining the bandwidth of the user-side port in this embodiment includes:
  • Step 201 Query the database, obtain all the physical ports of the entire network, and store each physical port in the Map according to the key name of the port name and the port object FtpPhysicalPortData (the name of the defined physical port object).
  • FtpPhysicalPortData the name of the defined physical port object.
  • the port object contains information for the port role and port guarantee bandwidth, and the initial port role is the user-side port. It is worth noting that the port role is used to determine which port is the user-side port. This is stored in the Map structure to facilitate establishing the relationship between the port identifier of the user-side port and the corresponding guaranteed bandwidth.
  • Step 202 Query the database, obtain the topology connection of the entire network, and store it in the linked list structure of TopoLinkList_T (the name of the linked list structure of the defined topology link). The A-end and the Z-end of the TopoLinkList_T linked list are traversed. If the physical port is included in the Map, the role of the physical port in the Map in step 201 is the network-side role.
  • Step 203 Query the end-to-end pseudowire information of the entire network, store it in MapA, and save the key value pair as an end-to-end pseudowire name and a pseudowire specific object, wherein the pseudowire specific object includes a guaranteed bandwidth of the pseudowire.
  • Query the end-to-end pseudowire related information of the entire network store it in MapB, and store the key-value pair pseudo-end-to-end pseudowire name and pseudo-line related information.
  • the pseudo-line related information includes the service name associated with the pseudowire.
  • the key values are pseudo. The service name associated with the line and the guaranteed bandwidth of the pseudowire.
  • Step 204 Query the entire network Ethernet service, and store the linked list MfdfrList_T (the name of the linked list structure of the defined Ethernet service) to traverse the Ethernet service.
  • Step 205 Each time an Ethernet instance Mfdfr (the name of the defined Ethernet service instance) is traversed, if the user-side access port is a physical port, the user-side access port data structure ServiceEndPoint_T (the name of the defined user-side access port data structure) is obtained. The value of the guaranteed bandwidth is obtained from the additional parameter transmissionParams of the ServiceEndPoint_T (the name of the defined additional parameter data structure), and if so, the port guaranteed bandwidth of the physical port in the Map of step S201 is updated.
  • ServiceEndPoint_T the name of the defined additional parameter data structure
  • the end-to-end service name of the Ethernet Mfdfr needs to be obtained, and the guaranteed bandwidth of the pseudowire is obtained from the MapC in step 203, and the Map update step 201 is used.
  • the port of the physical port guarantees the bandwidth. It is worth noting that the update here refers to the result of accumulating the guaranteed bandwidth of the port of the same physical port in the Map.
  • Step 206 Each time an Ethernet instance Mfdfr is traversed, if the user-side access port is an interface, the physical port corresponding to the interface is found, and then step 205 is repeated.
  • Step 207 Query the TDM service of the entire network, store the linked list CrossConnectionList_T (the name of the defined TDM service linked list data structure), and traverse the TDM service.
  • CrossConnection_T the name of the defined TDM service linked list data structure
  • the service rate of the CrossConnection_T is first obtained, the service type is determined by the service rate, and the access port type of the user side is obtained, and corresponding according to the corresponding in the E1 table is obtained.
  • the physical port guarantees the bandwidth, and the port guarantee bandwidth of the physical port in the Map of step S201 is updated.
  • the network monitoring system 300 includes a user side query module 301, a guaranteed bandwidth acquisition module 302, and a guaranteed bandwidth calculation module 303.
  • the user side query module 301 is configured to query a database to determine a user side port in the entire network.
  • the port identifier of each user-side port is saved, and the guaranteed bandwidth acquisition module 302 is configured to obtain all the network services corresponding to each user-side port according to the port identifier of the user-side port, and obtain the guaranteed bandwidth of the corresponding access port of each network service;
  • the bandwidth calculation module 303 is configured to calculate a sum of all guaranteed bandwidths corresponding to the same port identifier to obtain a port guarantee bandwidth of the user-side port corresponding to the port identifier.
  • the network service includes an Ethernet service
  • the guaranteed bandwidth obtaining module 302 is configured to: obtain all network services corresponding to each user-side port according to the port identifier of the user-side port, and determine the connection of each Ethernet service corresponding to the access port.
  • the entry type selects a corresponding algorithm for calculating the guaranteed bandwidth of the access port according to the determined type of the access port; and calculates a guaranteed bandwidth of the corresponding access port according to the corresponding algorithm for calculating the guaranteed bandwidth of the access port.
  • the network service includes a time division multiplexing service
  • the guaranteed bandwidth obtaining module 302 is configured to: obtain all network services corresponding to each user side port according to the port identifier of the user side port, and obtain a service corresponding to each time division multiplexing service.
  • the guaranteed bandwidth of the corresponding access port of the time division multiplexing service is obtained according to the service type and the physical port type.
  • the network service includes a time division multiplexing service
  • the guaranteed bandwidth obtaining module 302 is configured to: obtain all network services corresponding to each user side port according to the port identifier of the user side port, and obtain a service rate of each time division multiplexing service. And determining, according to the obtained service rate, a service type corresponding to each time division multiplexing service; and obtaining a guaranteed bandwidth of the corresponding access port of the time division multiplexing service according to the service type and the physical port type.
  • the access port type includes the access port being a physical port
  • the guaranteed bandwidth obtaining module 302 is configured to: obtain all network services corresponding to each user-side port according to the port identifier of the user-side port, and determine that each Ethernet service is connected.
  • the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port.
  • the guaranteed bandwidth in the rate limit parameter of the pseudo line is used as the guaranteed bandwidth.
  • the guaranteed bandwidth of this physical port is not configured with the rate limit parameter, and the Ethernet service is bound to the pseudo line with the limited speed parameter for the linear service and the Ethernet service.
  • the access port type includes an access port as an interface
  • the guaranteed bandwidth obtaining module 302 is configured to: obtain all network services corresponding to each user-side port according to the port identifier of the user-side port, and determine each Ethernet service corresponding to the access port.
  • the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port corresponding to the interface.
  • the guaranteed bandwidth in the rate limit parameter of the pseudo line is used as the guaranteed bandwidth.
  • the guaranteed bandwidth of the physical port corresponding to this interface is not configured with the rate limit parameter, and the Ethernet service is bound to the pseudo line with the limited speed parameter for the linear service and the Ethernet service.
  • the user-side query module 301 is configured to query a database to obtain all physical ports in the entire network.
  • the network monitoring system obtains a network-wide topology connection, resolves the network-connected network endpoint, and obtains a physical port connected to the network endpoint;
  • the above technical solution saves the consumption of human resources and avoids data errors caused by human computing.

Abstract

A method for obtaining assured bandwidth of a user-side port and a network monitoring system. The method comprises: a network monitoring system searches a database, determines all user-side ports in an entire network, and saves a port identifier of each user-side port; the network monitoring system obtains all network services corresponding to each user-side port according to the port identifiers of the user-side ports, and obtains an assured bandwidth of an access entry corresponding to each network service; and the network monitoring system calculates the sum of all assured bandwidths corresponding to a same port identifier to obtain an assured port bandwidth of the user-side port corresponding to the port identifier. Compared with the related art, the calculation can be performed without the need of manually searching for corresponding data, thereby saving the consumption of manpower resources, and avoiding data errors caused by manual calculation.

Description

获取用户侧端口保证带宽的方法和网络监测系统Method for obtaining user side port guaranteed bandwidth and network monitoring system 技术领域Technical field
本文涉及但不限于通信领域,尤其涉及一种获取用户侧端口保证带宽的方法和网络监测系统。This document relates to, but is not limited to, the field of communications, and in particular, to a method and network monitoring system for obtaining user-side port guaranteed bandwidth.
背景技术Background technique
专业网的网络流量监测和管理分析的网络监测系统主要用于确保运营商全面掌握专业网网络流量使用状况,合理统计资源使用效率,有效开展资源预警扩容和流量均衡优化工作,防止出现网络拥塞,切实保障每一类业务的传送质量。网络监测系统需要监测和分析的指标很多,其中“保证带宽占比”是需要监测和分析的重要指标之一。“保证带宽占比”越大,说明网络资源利用率越高,但是出现拥塞的概率也越大;“保证带宽占比”越小,说明网络资源利用率越低,出现拥塞的概率也越小。“保证带宽占比”是通过计算端口的保证带宽与端口的物理带宽的比值获得。最主要的是要得到该端口的保证带宽;目前,用户侧端口的保证带宽都是通过人工进行查找和计算,这样耗费大量人力资源并且计算容易出错。The network monitoring system for network traffic monitoring and management analysis of professional networks is mainly used to ensure that operators fully grasp the usage status of professional network network traffic, rationally use resource utilization efficiency, effectively carry out resource early warning capacity expansion and traffic balance optimization to prevent network congestion. Effectively guarantee the quality of transmission of each type of business. There are many indicators that network monitoring systems need to monitor and analyze. Among them, “guarantee bandwidth ratio” is one of the important indicators that need to be monitored and analyzed. The larger the guaranteed bandwidth ratio is, the higher the network resource utilization is, but the greater the probability of congestion. The smaller the guaranteed bandwidth ratio, the lower the network resource utilization and the lower the probability of congestion. . The "guaranteed bandwidth ratio" is obtained by calculating the ratio of the guaranteed bandwidth of the port to the physical bandwidth of the port. The most important thing is to get the guaranteed bandwidth of the port; at present, the guaranteed bandwidth of the user-side port is manually searched and calculated, which consumes a lot of human resources and is easy to calculate.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种获取用户侧端口保证带宽的方法和网络监测系统,能够降低相关技术中通过人工计算用户侧端口保证带宽造成大量人力资源耗费并且计算容易出错的问题。The embodiment of the invention provides a method for obtaining a guaranteed bandwidth of a user-side port and a network monitoring system, which can reduce the problem that a large amount of human resources is consumed and the calculation is error-prone by manually calculating the bandwidth of the user-side port in the related art.
包括:include:
网络监测系统查询数据库,确定出全网中的所有用户侧端口,保存每一个用户侧端口的端口标识;The network monitoring system queries the database, determines all user-side ports in the entire network, and saves the port identifier of each user-side port;
所述网络监测系统根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一网络业务对应接入口的保证带宽; The network monitoring system acquires all network services corresponding to each user-side port according to the port identifier of the user-side port, and obtains the guaranteed bandwidth of the corresponding access port of each network service;
所述网络监测系统计算同一端口标识对应的所有保证带宽之和得到该端口标识对应的用户侧端口的端口保证带宽。The network monitoring system calculates the sum of all guaranteed bandwidths corresponding to the same port identifier to obtain the port guaranteed bandwidth of the user-side port corresponding to the port identifier.
可选的,在本发明实施例中,所述网络业务包括以太网业务;所述获取每一网络业务对应接入口的保证带宽包括:Optionally, in the embodiment of the present invention, the network service includes an Ethernet service, and the obtaining the guaranteed bandwidth of the corresponding access port of each network service includes:
判断每一个以太网业务对应接入口的接入口类型;Determining the type of the access port corresponding to each access port of the Ethernet service;
根据判断出的所述接入口类型选择对应的计算接入口的保证带宽的算法;Selecting, according to the determined type of the access port, a corresponding algorithm for calculating a guaranteed bandwidth of the access port;
根据对应的计算接入口的保证带宽的算法计算对应接入口的保证带宽。The guaranteed bandwidth of the corresponding access port is calculated according to the corresponding algorithm for calculating the guaranteed bandwidth of the access port.
可选的,在本发明实施例中,所述接入口类型包括接入口为物理端口;所述根据所述接入口类型选择对应的计算接入口的保证带宽的算法包括:Optionally, in the embodiment of the present invention, the access port type includes an access port being a physical port, and the algorithm for selecting a corresponding guaranteed bandwidth of the calculated access port according to the type of the access port includes:
如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该物理端口的保证带宽;If the rate limit parameter is configured on the access port corresponding to the Ethernet service, the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port.
如果以太网业务对应的接入口没有配置限速参数,并且所述以太网业务为线性业务和所述以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该物理端口的保证带宽。If the rate limit parameter is not configured for the access port corresponding to the Ethernet service, and the Ethernet service is bound to the pseudo-line with the limited-speed parameter for the linear service and the Ethernet service, the speed limit parameter of the pseudo-line is The guaranteed bandwidth is the guaranteed bandwidth of the physical port.
可选的,在本发明实施例中,所述接入口类型包括接入口为接口;所述根据所述接入口类型选择对应的计算接入口的保证带宽的算法包括:Optionally, in the embodiment of the present invention, the access port type includes an access port as an interface, and the algorithm for selecting a corresponding guaranteed bandwidth of the access port according to the type of the access port includes:
如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该接口对应的物理端口的保证带宽;If the rate limit is configured on the interface corresponding to the Ethernet service, the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port corresponding to the interface.
如果以太网业务对应的接入口没有配置限速参数,并且所述以太网业务为线性业务和所述以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该接口对应的物理端口的保证带宽。If the rate limit parameter is not configured for the access port corresponding to the Ethernet service, and the Ethernet service is bound to the pseudo-line with the limited-speed parameter for the linear service and the Ethernet service, the speed limit parameter of the pseudo-line is The guaranteed bandwidth is the guaranteed bandwidth of the physical port corresponding to the interface.
可选的,在本发明实施例中,所述网络业务包括时分复用业务;所述获取每一网络业务对应接入口的保证带宽包括:Optionally, in the embodiment of the present invention, the network service includes a time division multiplexing service, and the obtaining the guaranteed bandwidth of the corresponding access port of each network service includes:
获取每一时分复用业务对应的业务类型和对应接入口的物理端口类型;Obtaining a service type corresponding to each time division multiplexing service and a physical port type of the corresponding access port;
根据所述业务类型和所述物理端口类型得到时分复用业务对应接入口的保证带宽。 The guaranteed bandwidth of the corresponding access port of the time division multiplexing service is obtained according to the service type and the physical port type.
可选的,在本发明实施例中,所述获取每一时分复用业务对应的业务类型包括:Optionally, in the embodiment of the present invention, the acquiring the service type corresponding to each time division multiplexing service includes:
获取每一时分复用业务的业务速率;Obtaining the service rate of each time division multiplexing service;
根据获取到的所述业务速率确定每一时分复用业务对应的业务类型。Determining, according to the obtained service rate, a service type corresponding to each time division multiplexing service.
可选的,在本发明实施例中,所述确定出全网中的用户侧端口包括:所述确定出全网中的用户侧端口包括:Optionally, in the embodiment of the present invention, the determining that the user side port in the entire network includes: determining the user side port in the entire network includes:
所述网络监测系统查询数据库,获取全网中的全部物理端口;The network monitoring system queries the database to obtain all physical ports in the entire network;
所述网络监测系统获取全网拓扑连接,解析网络连接的网络端点,得到与所述网络端点连接的物理端口;The network monitoring system acquires a network-wide topology connection, resolves a network-connected network endpoint, and obtains a physical port connected to the network endpoint;
确定除去与所述网络端点连接的物理端口之外的物理端口为用户侧端口。It is determined that the physical port other than the physical port connected to the network endpoint is removed as the user side port.
本发明实施例还提供一种网络监测系统,包括用户侧查询模块、保证带宽获取模块和保证带宽计算模块:The embodiment of the invention further provides a network monitoring system, including a user side query module, a guaranteed bandwidth acquisition module and a guaranteed bandwidth calculation module:
所述用户侧查询模块设置为,查询数据库,确定出全网中的用户侧端口,保存每一个用户侧端口的端口标识;The user side query module is configured to query a database, determine a user side port in the entire network, and save a port identifier of each user side port;
所述保证带宽获取模块设置为,根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一网络业务对应接入口的保证带宽;The guaranteed bandwidth acquisition module is configured to obtain all the network services corresponding to each user-side port according to the port identifier of the user-side port, and obtain the guaranteed bandwidth of the corresponding access port of each network service;
所述保证带宽计算模块设置为,计算同一端口标识对应的所有保证带宽之和得到该端口标识对应的用户侧端口的端口保证带宽。The guaranteed bandwidth calculation module is configured to calculate a sum of all guaranteed bandwidths corresponding to the same port identifier to obtain a port guaranteed bandwidth of the user-side port corresponding to the port identifier.
可选的,在本发明实施例中,所述网络业务包括以太网业务;所述保证带宽获取模块是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,判断每一个以太网业务对应接入口的接入口类型,根据判断出的所述接入口类型选择对应的计算接入口的保证带宽的算法;根据对应的计算接入口的保证带宽的算法计算对应接入口的保证带宽。Optionally, in the embodiment of the present invention, the network service includes an Ethernet service, and the guaranteed bandwidth acquisition module is configured to: obtain all network services corresponding to each user-side port according to the port identifier of the user-side port, and determine Each Ethernet service corresponds to an access port type of the access port, and the algorithm for calculating the guaranteed bandwidth of the access port is selected according to the determined type of the access port; and the corresponding access port is calculated according to the algorithm for calculating the guaranteed bandwidth of the access port. Guaranteed bandwidth.
可选的,在本发明实施例中,所述网络业务包括时分复用业务;所述保证带宽获取模块是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一时分复用业务对应的业务类型和对应接入口的物理端口类型;根据所述业务类型和所述物理端口类型得到时分复用业务 对应接入口的保证带宽。Optionally, in the embodiment of the present invention, the network service includes a time division multiplexing service, and the guaranteed bandwidth acquisition module is configured to: obtain all network services corresponding to each user side port according to the port identifier of the user side port, Obtaining a service type corresponding to each time division multiplexing service and a physical port type of the corresponding access port; obtaining a time division multiplexing service according to the service type and the physical port type Corresponding bandwidth of the corresponding access port.
可选的,在本发明实施例中,所述网络业务包括时分复用业务;所述保证带宽获取模块是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一时分复用业务的业务速率;根据获取到的所述业务速率确定每一时分复用业务对应的业务类型;根据所述业务类型和所述物理端口类型得到时分复用业务对应接入口的保证带宽。Optionally, in the embodiment of the present invention, the network service includes a time division multiplexing service, and the guaranteed bandwidth acquisition module is configured to: obtain all network services corresponding to each user side port according to the port identifier of the user side port, Obtaining a service rate of each time division multiplexing service; determining, according to the obtained service rate, a service type corresponding to each time division multiplexing service; obtaining a time division multiplexing service corresponding access port according to the service type and the physical port type Guaranteed bandwidth.
可选的,在本发明实施例中,所述接入口类型包括接入口为物理端口;所述保证带宽获取模块是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,判断每一个以太网业务对应接入口的接入口类型,根据判断出的所述接入口类型选择对应的计算接入口的保证带宽的算法;Optionally, in the embodiment of the present invention, the access port type includes the access port being a physical port, and the guaranteed bandwidth acquiring module is configured to: acquire all networks corresponding to each user-side port according to the port identifier of the user-side port. The service determines the type of the access port corresponding to the access port of each Ethernet service, and selects a corresponding algorithm for calculating the guaranteed bandwidth of the access port according to the determined type of the access port;
如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该物理端口的保证带宽;If the rate limit parameter is configured on the access port corresponding to the Ethernet service, the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port.
如果以太网业务对应的接入口没有配置限速参数,并且所述以太网业务为线性业务和所述以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该物理端口的保证带宽。If the rate limit parameter is not configured for the access port corresponding to the Ethernet service, and the Ethernet service is bound to the pseudo-line with the limited-speed parameter for the linear service and the Ethernet service, the speed limit parameter of the pseudo-line is The guaranteed bandwidth is the guaranteed bandwidth of the physical port.
可选的,在本发明实施例中,所述接入口类型包括接入口为接口;所述保证带宽获取模块是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,判断每一个以太网业务对应接入口的接入口类型,根据判断出的所述接入口类型选择对应的计算接入口的保证带宽的算法;Optionally, in the embodiment of the present invention, the access port type includes an access port as an interface, and the guaranteed bandwidth acquiring module is configured to: obtain all network services corresponding to each user-side port according to the port identifier of the user-side port. Determining, according to the determined type of the access port, an algorithm for calculating a guaranteed bandwidth of the access port;
如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该接口对应的物理端口的保证带宽;If the rate limit is configured on the interface corresponding to the Ethernet service, the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port corresponding to the interface.
如果以太网业务对应的接入口没有配置限速参数,并且所述以太网业务为线性业务和所述以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该接口对应的物理端口的保证带宽。If the rate limit parameter is not configured for the access port corresponding to the Ethernet service, and the Ethernet service is bound to the pseudo-line with the limited-speed parameter for the linear service and the Ethernet service, the speed limit parameter of the pseudo-line is The guaranteed bandwidth is the guaranteed bandwidth of the physical port corresponding to the interface.
可选的,在本发明实施例中,所述用户侧查询模块是设置为,查询数据库,获取全网中的全部物理端口;Optionally, in the embodiment of the present invention, the user side query module is configured to query a database to obtain all physical ports in the entire network;
所述网络监测系统获取全网拓扑连接,解析网络连接的网络端点,得到与所述网络端点连接的物理端口; The network monitoring system acquires a network-wide topology connection, resolves a network-connected network endpoint, and obtains a physical port connected to the network endpoint;
确定除去与所述网络端点连接的物理端口之外的物理端口为用户侧端口;Determining that the physical port except the physical port connected to the network endpoint is a user-side port;
保存每一个用户侧端口的端口标识。Save the port ID of each user-side port.
与相关技术相比,本发明实施例提供的技术方案,包括:网络监测系统查询数据库,确定出全网中的所有用户侧端口,保存每一个用户侧端口的端口标识;网络监测系统根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一网络业务对应接入口的保证带宽;网络监测系统计算同一端口标识对应的所有保证带宽之和得到该端口标识对应的用户侧端口的端口保证带宽。与相关技术相比,无需通过人工去查找相应的数据进行计算,节约了人力资源的消耗,避免了人为计算造成数据出错。Compared with the related art, the technical solution provided by the embodiment of the present invention includes: the network monitoring system queries the database, determines all user-side ports in the entire network, and saves the port identifier of each user-side port; the network monitoring system is based on the user side. The port identifier of the port obtains all the network services corresponding to each user-side port, and obtains the guaranteed bandwidth of the corresponding access port of each network service. The network monitoring system calculates the sum of all the guaranteed bandwidths corresponding to the same port identifier to obtain the user side corresponding to the port identifier. The port's port guarantees bandwidth. Compared with related technologies, it is not necessary to manually search for corresponding data for calculation, which saves human resource consumption and avoids data errors caused by human computing.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例一提供的获取用户侧端口保证带宽的方法流程示意图;FIG. 1 is a schematic flowchart of a method for obtaining a guaranteed bandwidth of a user-side port according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的获取用户侧端口保证带宽的方法流程示意图;2 is a schematic flowchart of a method for obtaining a guaranteed bandwidth of a user-side port according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的网络监测系统结构示意图。FIG. 3 is a schematic structural diagram of a network monitoring system according to Embodiment 3 of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
实施例一Embodiment 1
本实施例的获取用户侧端口保证带宽的方法,如图1所示,包括以下步骤:The method for obtaining the bandwidth of the user-side port in this embodiment, as shown in FIG. 1 , includes the following steps:
步骤101:网络监测系统查询数据库,确定出全网中的用户侧端口,保存每一个用户侧端口的端口标识;Step 101: The network monitoring system queries the database, determines the user-side port in the entire network, and saves the port identifier of each user-side port.
在该步骤中,由于本发明实施例主要是对用户侧端口的保证带宽进行计算,因此需要先确定哪些是用户侧端口。找出用户侧端口后还得进行识别, 便于后面对其保证带宽进行计算,可选的,可以选择端口标识进行识别,例如端口的名称、端口的编号等,应该理解为只要能够识别区分每一个用户侧端口的任何方式都行,这样可以避免网络监测系统在处理过程中不会造成计算错误。举例说明,网络监测系统查找系统找到3个用户侧端口,其端口名称分别为端口A、端口B和端口C。In this step, since the embodiment of the present invention mainly calculates the guaranteed bandwidth of the user-side port, it is necessary to first determine which are user-side ports. After identifying the user side port, it has to be identified. It is convenient to calculate the guaranteed bandwidth later. Alternatively, the port identifier can be selected for identification, such as the name of the port, the number of the port, etc., which should be understood as long as any way of distinguishing each user-side port can be recognized. It can prevent the network monitoring system from causing calculation errors during processing. For example, the network monitoring system search system finds three user-side ports, and the port names are port A, port B, and port C, respectively.
步骤102:网络监测系统根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一网络业务对应接入口的保证带宽;Step 102: The network monitoring system acquires all network services corresponding to each user-side port according to the port identifier of the user-side port, and obtains the guaranteed bandwidth of the corresponding access port of each network service.
在该步骤中,全网中有多个网络业务,每个网络业务会用到其对应的端口,为了保证其业务的顺畅进行,那么该端口的保证带宽应该要保证每个网络业务,即该端口的保证带宽是用到该端口的网络业务所有保证带宽之和。为了得到端口的保证带宽,需要知道该端口每一网络业务的保证带宽,为了便于计算获取网络业务的保证带宽同时应该记录其对应端口的端口标识。例如,现在网络中有5个网络业务,分别为网络业务1、网络业务2、网络业务3、网络业务4和网络业务5,其对应接入口的保证带宽分别是2兆(M)、2M、2M、2M和1.5M,其中网络业务1、网络业务2和网络业务3对应接入口为端口A,网络业务4对应接入口为端口B,网络业务5对应接入口为端口C。In this step, there are multiple network services in the entire network, and each network service uses its corresponding port. In order to ensure smooth operation of the service, the guaranteed bandwidth of the port should ensure each network service, that is, the network. The guaranteed bandwidth of a port is the sum of all guaranteed bandwidths of the network services used for that port. In order to obtain the guaranteed bandwidth of the port, it is necessary to know the guaranteed bandwidth of each network service of the port. In order to facilitate the calculation and obtain the guaranteed bandwidth of the network service, the port identifier of the corresponding port should be recorded. For example, there are currently five network services in the network, namely, network service 1, network service 2, network service 3, network service 4, and network service 5. The guaranteed bandwidth of the corresponding access port is 2 megabytes (M), 2M, respectively. 2M, 2M, and 1.5M, where the network service 1, the network service 2, and the network service 3 correspond to the port A, the network service 4 corresponds to the port B, and the network service 5 corresponds to the port C.
步骤103:网络监测系统计算同一端口标识的所有保证带宽之和得到该端口标识对应的用户侧端口的端口保证带宽。Step 103: The network monitoring system calculates the sum of all guaranteed bandwidths of the same port identifier to obtain the port guaranteed bandwidth of the user-side port corresponding to the port identifier.
在该步骤中,在步骤102中得到了全网的网络业务对应接口的保证带宽和其端口标识,那么就可以很好将同一标识端口的保证带宽进行累加得到该端口的保证带宽,这样就可以保证每一网络业务的良好运行。例如,端口A的保证带宽就网络业务1、网络业务2和网络业务3对应接入口的保证带宽累计和为6M,端口B的保证带宽就是网络业务4对应的保证带宽为2M,端口C的保证带宽就是网络业务5对应的保证带宽为1.5M。In this step, in step 102, the guaranteed bandwidth and the port identifier of the network service corresponding interface of the entire network are obtained, so that the guaranteed bandwidth of the same identified port can be well accumulated to obtain the guaranteed bandwidth of the port, so that Ensure the good operation of each network business. For example, the guaranteed bandwidth of port A is the sum of the guaranteed bandwidth of the network service 1, the network service 2, and the network service 3 corresponding to the access port is 6M, and the guaranteed bandwidth of the port B is the guaranteed bandwidth of the network service 4 is 2M, and the guarantee of the port C is The bandwidth is the guaranteed bandwidth corresponding to network service 5 of 1.5M.
在步骤102中,网络业务可以是以太网业务;获取每一网络业务对应接入口的保证带宽包括:判断每一个以太网业务对应接入口的接入口类型,根据判断出的接入口类型选择对应的计算接入口的保证带宽的算法;根据对应的计算接入口的保证带宽的算法计算对应接入口的保证带宽。 In step 102, the network service may be an Ethernet service; obtaining the guaranteed bandwidth of the corresponding access port of each network service includes: determining the type of the access port corresponding to each of the Ethernet service access ports, and selecting the corresponding type according to the determined type of the access port. The algorithm for calculating the guaranteed bandwidth of the access port; calculating the guaranteed bandwidth of the corresponding access port according to the corresponding algorithm for calculating the guaranteed bandwidth of the access port.
可选的,接入口类型包括接入口为物理端口;根据接入口类型选择对应的计算接入口的保证带宽的算法包括:如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该物理端口的保证带宽;如果以太网业务对应的接入口没有配置限速参数,并且以太网业务为线性业务和以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该物理端口的保证带宽。Optionally, the access port type includes the access port being a physical port, and the algorithm for calculating the guaranteed bandwidth of the corresponding access port according to the type of the access port includes: if the access port corresponding to the Ethernet service is configured with the rate limiting parameter, the rate limiting is performed. The guaranteed bandwidth in the parameter is used as the guaranteed bandwidth of the physical port. If the access port corresponding to the Ethernet service is not configured with the rate limit parameter, and the Ethernet service is bound to the pseudo line with the limited speed parameter for the linear service and the Ethernet service, The guaranteed bandwidth in the speed limit parameter of the pseudowire is used as the guaranteed bandwidth of the physical port.
可选的,接入口类型包括接入口为接口;根据接入口类型选择对应的计算接入口的保证带宽的算法包括:如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该接口对应的物理端口的保证带宽;如果以太网业务对应的接入口没有配置限速参数,并且以太网业务为线性业务和以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该接口对应的物理端口的保证带宽。Optionally, the access port type includes the access port as an interface, and the algorithm for calculating the guaranteed bandwidth of the corresponding access port according to the type of the access port includes: if the access port corresponding to the Ethernet service is configured with the rate limit parameter, the speed limit parameter is used. The guaranteed bandwidth in the medium is the guaranteed bandwidth of the physical port corresponding to the interface. If the rate limit is not configured on the interface corresponding to the Ethernet service, the Ethernet service is bound to the pseudo line with the limited speed parameter for the linear service and the Ethernet service. The guaranteed bandwidth in the rate limit parameter of the pseudowire is used as the guaranteed bandwidth of the physical port corresponding to the interface.
即用户侧物理口用于以太网业务时,保证带宽计算方法如下:When the physical interface of the user side is used for Ethernet services, the method for calculating the bandwidth is as follows:
D1、遍历以太网业务,若该以太网业务用户侧接入端口配置了限速参数,那么直接则将该限速参数中的保证带宽累加到该物理端口的保证带宽;D 1, traverse the Ethernet service, if the user accesses the service Ethernet port configuration parameters of speed limit, then the guaranteed bandwidth direct the accumulated speed parameters to ensure the bandwidth of the physical port;
D2、遍历以太网业务,若该以太网业务的接入口为接口,若该以太网业务用户侧接入接口配置了限速参数,那么直接则将该限速参数中的保证带宽累加到该接口对应的物理端口的保证带宽;D 2, traverse the Ethernet service, if the service access port is Ethernet interfaces, Ethernet service if the user-side interface to the rate limit access parameters, then the speed parameter is directly guaranteed bandwidth to the accumulated The guaranteed bandwidth of the physical port corresponding to the interface;
D3、若该以太网业务用户侧接入端口没有配置限速参数,并且该业务的类型是线型业务,并且该业务绑定的伪线配置了限速参数,那么直接将该伪线的限速参数中的保证带宽累加到该物理端口的保证带宽。D 3, if the user-side access port Ethernet service configuration is not rate limiting parameters, and the type of the service are linear operations, and the service is bound PW the rate limit parameters, then the pseudo wire directly The guaranteed bandwidth in the rate limit parameter is added to the guaranteed bandwidth of the physical port.
D4、若该以太网业务的接入口为接口,若该以太网业务用户侧接入接口没有配置限速参数,并且该业务的类型是线型业务,并且该业务绑定的伪线配置了限速参数,那么直接将该伪线的限速参数中的保证带宽累加到该接口对应的物理端口的保证带宽。D 4, if the service access port is Ethernet interfaces, if the user accesses the Ethernet service interface is not rate limiting parameter configuration, and the type of service is the service line, and the service is bound to the pseudo-wire configuration The speed limit parameter directly adds the guaranteed bandwidth in the rate limit parameter of the pseudowire to the guaranteed bandwidth of the physical port corresponding to the interface.
可选的,在步骤102中,网络业务包括时分复用业务;获取每一网络业务对应接入口的保证带宽包括:获取每一时分复用业务对应的业务类型和对应接入口的物理端口类型;根据业务类型和物理端口类型得到时分复用业务对应接入口的保证带宽。可选的,获取每一时分复用业务对应的业务类型可 以是获取每一时分复用业务的业务速率;根据获取到的业务速率确定每一时分复用业务对应的业务类型。Optionally, in step 102, the network service includes a time division multiplexing service, and obtaining the guaranteed bandwidth of the corresponding access port of each network service includes: acquiring a service type corresponding to each time division multiplexing service and a physical port type of the corresponding access port; The guaranteed bandwidth of the corresponding access port of the time division multiplexing service is obtained according to the service type and the physical port type. Optionally, the service type corresponding to each time division multiplexing service is obtained. Therefore, the service rate of each time division multiplexing service is obtained; and the service type corresponding to each time division multiplexing service is determined according to the obtained service rate.
需要说明的是,根据业务类型和物理端口类型得到时分复用业务对应接入口的保证带宽可以包括:目前获取的时分复用业务的业务类型是TDM业务,然后遍历获取的时分复用业务下使用的物理端口,如果端口类型是E1端口,则此端口的保证端口是2M;如果端口类型是STM-1,则此端口在此业务中使用的带宽为2M。此STM-1端口的保证带宽,是所在所有业务使用带宽的和。时分复用业务类型与支持的端口类型和端口使用带宽在表1中进行示例说明。另外,根据获取到的业务速率确定每一时分复用业务对应的业务类型包括:时分复用业务中会存储一个业务速率字段,通过将业务速率字段与不同类型业务的速率进行匹配。比如TDM业务对应的速率是1580,我们在某条时分复用业务的速率字段取出的值是1580,则确定此业务是TDM业务。It should be noted that, according to the service type and the physical port type, the guaranteed bandwidth of the corresponding access port of the time division multiplexing service may include: the service type of the currently acquired time division multiplexing service is a TDM service, and then the traversal acquired time division multiplexing service is used. The physical port of the port is 2M if the port type is E1. If the port type is STM-1, the bandwidth used by this port in this service is 2M. The guaranteed bandwidth of this STM-1 port is the sum of the bandwidth used by all services. The time division multiplexing service type and supported port types and port usage bandwidth are illustrated in Table 1. In addition, determining the service type corresponding to each time division multiplexing service according to the obtained service rate includes: storing a service rate field in the time division multiplexing service, and matching the service rate field with the rate of different types of services. For example, the rate corresponding to the TDM service is 1580. If the value of the time field of a time division multiplexing service is 1580, the service is determined to be a TDM service.
可选的,用户侧物理口用于时分复用(TDM)业务时,保证带宽计算方法如下,通过表1表示:Optionally, when the user-side physical port is used for time division multiplexing (TDM) services, the method for ensuring bandwidth calculation is as follows:
Figure PCTCN2016080393-appb-000001
Figure PCTCN2016080393-appb-000001
表1Table 1
表1中,E3是34兆比特每秒(Mbit/s)准同步数字系列(PDH)信号;VC是装载负荷的虚容器;T1是1.5Mbit/s PDH信号;CEP是包电路仿真; In Table 1, E3 is a 34 megabit per second (Mbit/s) quasi-synchronous digital series (PDH) signal; VC is a load-bearing virtual container; T1 is a 1.5 Mbit/s PDH signal; CEP is a packet circuit simulation;
E1、其中第一行E1表示物理口接入的业务类型,第一列表示物理口的端口类型,其余部分中“整端口”表示此物理口是整端口接入此业务,则端口使用的保证带宽为端口全部带宽,如果E1的整端口接入对应的保证带宽为2M,T1的整端口接入的保证带宽对应为1.5M等。E 1, wherein E1 denotes a first physical line interface access service type, the first column indicates the type of physical port opening, the rest of the "full port" indicates a physical port is an integer port access this service, the port used Ensure that the bandwidth is the total bandwidth of the port. If the guaranteed bandwidth of the entire port of E1 is 2M, the guaranteed bandwidth of the entire port of T1 is 1.5M.
E2、遍历TDM业务,将业务中用户侧物理端口按照上表对应的保证带宽进行累加。E 2 traverses the TDM service and accumulates the physical port of the user side in the service according to the guaranteed bandwidth corresponding to the above table.
可选的,在上述步骤101中,确定出全网中的用户侧端口,可以是网络监测系统查询数据库,获取全网中的全部物理端口;网络监测系统获取全网拓扑连接,解析网络连接的网络端点,得到与网络端点连接的物理端口;将除去与网络端点连接的物理端口之外的物理端口确定为用户侧端口。即首先查询所有物理端口,然后区分端口角色连接光纤连接的端口为网络侧端口,否则为用户侧端口。值得注意的是,本实例中的保证带宽的端口都是针对用户侧的物理端口。Optionally, in the foregoing step 101, determining a user-side port in the entire network, where the network monitoring system queries the database to obtain all physical ports in the entire network; the network monitoring system acquires the entire network topology connection, and resolves the network connection. The network endpoint obtains the physical port connected to the network endpoint; the physical port other than the physical port connected to the network endpoint is determined as the user-side port. That is, the physical port is first queried, and then the port whose port role is connected to the fiber connection is the network side port, otherwise it is the user side port. It is worth noting that the guaranteed bandwidth ports in this example are all physical ports on the user side.
本发明实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行获取用户侧端口保证带宽的方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute a method for obtaining a guaranteed bandwidth of the user side port.
实施例二Embodiment 2
本实施例的获取用户侧端口保证带宽的方法,如图2所示,包括:The method for obtaining the bandwidth of the user-side port in this embodiment, as shown in FIG. 2, includes:
步骤201:查询数据库,获取全网物理全部物理端口,将每个物理口按照端口名称和端口对象FtpPhysicalPortData(定义的物理端口对象的名称)的键值关系,存入Map(图(Map)是一种依照键值对的形式进行存储的数据结构)结构中。其中端口对象包含的信息为端口角色和端口保证带宽,并且初始化端口角色为用户侧端口。值得注意的是,这里通过标记端口角色来确定哪些是用户侧端口,这里存入Map结构中是为了便于建立用户侧端口的端口标识和对应的保证带宽的关系。Step 201: Query the database, obtain all the physical ports of the entire network, and store each physical port in the Map according to the key name of the port name and the port object FtpPhysicalPortData (the name of the defined physical port object). In the structure of data stored in the form of key-value pairs). The port object contains information for the port role and port guarantee bandwidth, and the initial port role is the user-side port. It is worth noting that the port role is used to determine which port is the user-side port. This is stored in the Map structure to facilitate establishing the relationship between the port identifier of the user-side port and the corresponding guaranteed bandwidth.
步骤202:查询数据库,获取全网拓扑连接,将其存入TopoLinkList_T(定义的拓扑链接的链表结构的名称)链表结构中。遍历TopoLinkList_T链表的A端点和Z端点,如果解析端点后包含某个物理端口,则更新步骤201的Map中物理端口的角色为网络侧角色。 Step 202: Query the database, obtain the topology connection of the entire network, and store it in the linked list structure of TopoLinkList_T (the name of the linked list structure of the defined topology link). The A-end and the Z-end of the TopoLinkList_T linked list are traversed. If the physical port is included in the Map, the role of the physical port in the Map in step 201 is the network-side role.
步骤203:查询全网端到端伪线信息,存入MapA,保存键值对为端到端伪线名称和伪线具体对象,其中伪线具体对象中包含伪线的保证带宽。查询全网端到端伪线相关信息,存入MapB,保存键值对伪端到端伪线名称和伪线相关信息,其中伪线相关信息中包含伪线关联的业务名称。将MapA和MapB中的键名匹配,获取同一条伪线的具体信息,具体从MapB中获取伪线关联的业务名称,从MapA中获取伪线的保证带宽,存入MapC,键值分别为伪线关联的业务名称和伪线的保证带宽。Step 203: Query the end-to-end pseudowire information of the entire network, store it in MapA, and save the key value pair as an end-to-end pseudowire name and a pseudowire specific object, wherein the pseudowire specific object includes a guaranteed bandwidth of the pseudowire. Query the end-to-end pseudowire related information of the entire network, store it in MapB, and store the key-value pair pseudo-end-to-end pseudowire name and pseudo-line related information. The pseudo-line related information includes the service name associated with the pseudowire. Match the key names in MapA and MapB to obtain the specific information of the same pseudowire. Specifically, obtain the service name associated with the pseudowire from MapB, obtain the guaranteed bandwidth of the pseudowire from MapA, and store it in MapC. The key values are pseudo. The service name associated with the line and the guaranteed bandwidth of the pseudowire.
步骤204:查询全网以太网业务,存入链表MfdfrList_T(定义的以太网业务的链表结构的名称),遍历以太网业务。Step 204: Query the entire network Ethernet service, and store the linked list MfdfrList_T (the name of the linked list structure of the defined Ethernet service) to traverse the Ethernet service.
步骤205:每遍历一个以太网实例Mfdfr(定义的以太网业务实例的名称),如果用户侧接入口是物理口,获取用户侧接入口数据结构ServiceEndPoint_T(定义的用户侧接入口数据结构的名称),从ServiceEndPoint_T的附加参数transmissionParams(定义的附加参数数据结构的名称)中获取保证带宽的值,如果存在则更新步骤S201的Map中物理端口的端口保证带宽。若从ServiceEndPoint_T的附加参数transmissionParams中无法获取保证带宽,则需要获取此以太网Mfdfr的端到端业务名称,并从步骤203的MapC中获取伪线的保证带宽,使用此带宽更新步骤201的Map中物理端口的端口保证带宽。值得注意是,这里的更新是指对Map中同一物理端口的端口的保证带宽进行累加后的结果。Step 205: Each time an Ethernet instance Mfdfr (the name of the defined Ethernet service instance) is traversed, if the user-side access port is a physical port, the user-side access port data structure ServiceEndPoint_T (the name of the defined user-side access port data structure) is obtained. The value of the guaranteed bandwidth is obtained from the additional parameter transmissionParams of the ServiceEndPoint_T (the name of the defined additional parameter data structure), and if so, the port guaranteed bandwidth of the physical port in the Map of step S201 is updated. If the guaranteed bandwidth cannot be obtained from the additional parameter transmissionParams of the ServiceEndPoint_T, the end-to-end service name of the Ethernet Mfdfr needs to be obtained, and the guaranteed bandwidth of the pseudowire is obtained from the MapC in step 203, and the Map update step 201 is used. The port of the physical port guarantees the bandwidth. It is worth noting that the update here refers to the result of accumulating the guaranteed bandwidth of the port of the same physical port in the Map.
步骤206:每遍历一个以太网实例Mfdfr,如果用户侧接入口是接口,则找到接口对应的物理口,再重复步骤205。Step 206: Each time an Ethernet instance Mfdfr is traversed, if the user-side access port is an interface, the physical port corresponding to the interface is found, and then step 205 is repeated.
步骤207:查询全网TDM业务,存入链表CrossConnectionList_T(定义的TDM业务链表数据结构的名称),遍历TDM业务。每遍历一个TDM业务实例CrossConnection_T(定义的TDM业务数据结构的名称),首先获取CrossConnection_T的业务速率,通过业务速率确定业务类型,再获取用户侧接入端口类型,根据E1表格中对应,获取相应的物理端口保证带宽,更新步骤S201的Map中物理端口的端口保证带宽。比如,如果业务类型为TDM本地业务,并且接入端口为E1口,则此端口保证带宽为2M;如果现在有相同的一个STM-4端口,用在两条不同的TDM业务上,则此端口的保证带宽 为2M*2=4M。Step 207: Query the TDM service of the entire network, store the linked list CrossConnectionList_T (the name of the defined TDM service linked list data structure), and traverse the TDM service. Each time a TDM service instance CrossConnection_T (the name of the defined TDM service data structure) is traversed, the service rate of the CrossConnection_T is first obtained, the service type is determined by the service rate, and the access port type of the user side is obtained, and corresponding according to the corresponding in the E1 table is obtained. The physical port guarantees the bandwidth, and the port guarantee bandwidth of the physical port in the Map of step S201 is updated. For example, if the service type is TDM local service and the access port is E1 port, the port guarantees 2M bandwidth; if there is one STM-4 port now, which is used on two different TDM services, this port Guaranteed bandwidth It is 2M*2=4M.
实施例三Embodiment 3
本实施例提供的网络监测系统300,包括用户侧查询模块301、保证带宽获取模块302和保证带宽计算模块303:用户侧查询模块301设置为,查询数据库,确定出全网中的用户侧端口,保存每一个用户侧端口的端口标识;保证带宽获取模块302设置为,根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一网络业务对应接入口的保证带宽;保证带宽计算模块303设置为,计算同一端口标识对应的所有保证带宽之和得到该端口标识对应的用户侧端口的端口保证带宽。The network monitoring system 300 provided by this embodiment includes a user side query module 301, a guaranteed bandwidth acquisition module 302, and a guaranteed bandwidth calculation module 303. The user side query module 301 is configured to query a database to determine a user side port in the entire network. The port identifier of each user-side port is saved, and the guaranteed bandwidth acquisition module 302 is configured to obtain all the network services corresponding to each user-side port according to the port identifier of the user-side port, and obtain the guaranteed bandwidth of the corresponding access port of each network service; The bandwidth calculation module 303 is configured to calculate a sum of all guaranteed bandwidths corresponding to the same port identifier to obtain a port guarantee bandwidth of the user-side port corresponding to the port identifier.
可选的,网络业务包括以太网业务;保证带宽获取模块302是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,判断每一个以太网业务对应接入口的接入口类型,根据判断出的接入口类型选择对应的计算接入口的保证带宽的算法;根据对应的计算接入口的保证带宽的算法计算对应接入口的保证带宽。Optionally, the network service includes an Ethernet service, and the guaranteed bandwidth obtaining module 302 is configured to: obtain all network services corresponding to each user-side port according to the port identifier of the user-side port, and determine the connection of each Ethernet service corresponding to the access port. The entry type selects a corresponding algorithm for calculating the guaranteed bandwidth of the access port according to the determined type of the access port; and calculates a guaranteed bandwidth of the corresponding access port according to the corresponding algorithm for calculating the guaranteed bandwidth of the access port.
可选的,网络业务包括时分复用业务;保证带宽获取模块302是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一时分复用业务对应的业务类型和对应接入口的物理端口类型;根据业务类型和物理端口类型得到时分复用业务对应接入口的保证带宽。Optionally, the network service includes a time division multiplexing service, and the guaranteed bandwidth obtaining module 302 is configured to: obtain all network services corresponding to each user side port according to the port identifier of the user side port, and obtain a service corresponding to each time division multiplexing service. The type and the physical port type of the corresponding access port. The guaranteed bandwidth of the corresponding access port of the time division multiplexing service is obtained according to the service type and the physical port type.
可选的,网络业务包括时分复用业务;保证带宽获取模块302是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一时分复用业务的业务速率;根据获取到的业务速率确定每一时分复用业务对应的业务类型;根据业务类型和物理端口类型得到时分复用业务对应接入口的保证带宽。Optionally, the network service includes a time division multiplexing service, and the guaranteed bandwidth obtaining module 302 is configured to: obtain all network services corresponding to each user side port according to the port identifier of the user side port, and obtain a service rate of each time division multiplexing service. And determining, according to the obtained service rate, a service type corresponding to each time division multiplexing service; and obtaining a guaranteed bandwidth of the corresponding access port of the time division multiplexing service according to the service type and the physical port type.
可选的,接入口类型包括接入口为物理端口;保证带宽获取模块302是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,判断每一个以太网业务对应接入口的接入口类型,根据判断出的接入口类型选择对应的计算接入口的保证带宽的算法;Optionally, the access port type includes the access port being a physical port, and the guaranteed bandwidth obtaining module 302 is configured to: obtain all network services corresponding to each user-side port according to the port identifier of the user-side port, and determine that each Ethernet service is connected. The type of the access port of the ingress, and the algorithm for calculating the guaranteed bandwidth of the access port according to the determined type of the access port;
如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该物理端口的保证带宽; If the rate limit parameter is configured on the access port corresponding to the Ethernet service, the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port.
如果以太网业务对应的接入口没有配置限速参数,并且以太网业务为线性业务和以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该物理端口的保证带宽。If the access port corresponding to the Ethernet service is not configured with the rate limit parameter, and the Ethernet service is bound to the pseudo line with the limited speed parameter for the linear service and the Ethernet service, the guaranteed bandwidth in the rate limit parameter of the pseudo line is used as the guaranteed bandwidth. The guaranteed bandwidth of this physical port.
可选的,接入口类型包括接入口为接口;保证带宽获取模块302是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,判断每一个以太网业务对应接入口的接入口类型,根据判断出的接入口类型选择对应的计算接入口的保证带宽的算法;Optionally, the access port type includes an access port as an interface, and the guaranteed bandwidth obtaining module 302 is configured to: obtain all network services corresponding to each user-side port according to the port identifier of the user-side port, and determine each Ethernet service corresponding to the access port. The type of the access port, and the algorithm for calculating the guaranteed bandwidth of the corresponding access port according to the determined type of the access port;
如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该接口对应的物理端口的保证带宽;If the rate limit is configured on the interface corresponding to the Ethernet service, the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port corresponding to the interface.
如果以太网业务对应的接入口没有配置限速参数,并且以太网业务为线性业务和以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该接口对应的物理端口的保证带宽。If the access port corresponding to the Ethernet service is not configured with the rate limit parameter, and the Ethernet service is bound to the pseudo line with the limited speed parameter for the linear service and the Ethernet service, the guaranteed bandwidth in the rate limit parameter of the pseudo line is used as the guaranteed bandwidth. The guaranteed bandwidth of the physical port corresponding to this interface.
可选的,用户侧查询模块301是设置为,查询数据库,获取全网中的全部物理端口;Optionally, the user-side query module 301 is configured to query a database to obtain all physical ports in the entire network.
网络监测系统获取全网拓扑连接,解析网络连接的网络端点,得到与网络端点连接的物理端口;The network monitoring system obtains a network-wide topology connection, resolves the network-connected network endpoint, and obtains a physical port connected to the network endpoint;
确定除去与网络端点连接的物理端口之外的物理端口为用户侧端口;Determining that the physical port other than the physical port connected to the network endpoint is the user-side port;
保存每一个用户侧端口的端口标识。Save the port ID of each user-side port.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储 介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。”One of ordinary skill in the art will appreciate that all or part of the steps in the above methods may be performed by a program to instruct related hardware, such as a processor, which may be stored in computer readable storage. In media, such as read-only memory, disk or optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions. The invention is not limited to any specific form of combination of hardware and software. ”
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请,如本发明实施方式中的具体的实现方法。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。The embodiments disclosed in the present application are as described above, but the descriptions are only for the purpose of understanding the present application, and are not intended to limit the present application, such as the specific implementation method in the embodiments of the present invention. Any modifications and changes in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the disclosure. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
上述技术方案节约了人力资源的消耗,避免了人为计算造成数据出错。 The above technical solution saves the consumption of human resources and avoids data errors caused by human computing.

Claims (14)

  1. 一种获取用户侧端口保证带宽的方法,所述方法包括:A method for obtaining a guaranteed bandwidth on a user side port, where the method includes:
    网络监测系统查询数据库,确定出全网中的所有用户侧端口,保存每一个用户侧端口的端口标识;The network monitoring system queries the database, determines all user-side ports in the entire network, and saves the port identifier of each user-side port;
    所述网络监测系统根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一网络业务对应接入口的保证带宽;The network monitoring system acquires all network services corresponding to each user-side port according to the port identifier of the user-side port, and obtains the guaranteed bandwidth of the corresponding access port of each network service;
    所述网络监测系统计算同一端口标识对应的所有保证带宽之和得到该端口标识对应的用户侧端口的端口保证带宽。The network monitoring system calculates the sum of all guaranteed bandwidths corresponding to the same port identifier to obtain the port guaranteed bandwidth of the user-side port corresponding to the port identifier.
  2. 如权利要求1所述的方法,其中,所述网络业务包括以太网业务;所述获取每一网络业务对应接入口的保证带宽包括:The method of claim 1, wherein the network service comprises an Ethernet service; and the obtaining the guaranteed bandwidth of the corresponding access port of each network service comprises:
    判断每一个以太网业务对应接入口的接入口类型;Determining the type of the access port corresponding to each access port of the Ethernet service;
    根据判断出的所述接入口类型选择对应的计算接入口的保证带宽的算法;Selecting, according to the determined type of the access port, a corresponding algorithm for calculating a guaranteed bandwidth of the access port;
    根据对应的计算接入口的保证带宽的算法计算对应接入口的保证带宽。The guaranteed bandwidth of the corresponding access port is calculated according to the corresponding algorithm for calculating the guaranteed bandwidth of the access port.
  3. 如权利要求2所述的方法,其中,所述接入口类型包括接入口为物理端口;所述根据所述接入口类型选择对应的计算接入口的保证带宽的算法包括:The method of claim 2, wherein the access port type comprises an access port being a physical port; and the algorithm for selecting a corresponding guaranteed access bandwidth of the access port according to the type of the access port comprises:
    如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该物理端口的保证带宽;If the rate limit parameter is configured on the access port corresponding to the Ethernet service, the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port.
    如果以太网业务对应的接入口没有配置限速参数,并且所述以太网业务为线性业务和所述以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该物理端口的保证带宽。If the rate limit parameter is not configured for the access port corresponding to the Ethernet service, and the Ethernet service is bound to the pseudo-line with the limited-speed parameter for the linear service and the Ethernet service, the speed limit parameter of the pseudo-line is The guaranteed bandwidth is the guaranteed bandwidth of the physical port.
  4. 如权利要求2所述的方法,其中,所述接入口类型包括接入口为接口;所述根据所述接入口类型选择对应的计算接入口的保证带宽的算法包括:The method of claim 2, wherein the access port type comprises an access port as an interface; and the algorithm for selecting a corresponding guaranteed access bandwidth of the access port according to the type of the access port comprises:
    如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该接口对应的物理端口的保证带宽;If the rate limit is configured on the interface corresponding to the Ethernet service, the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port corresponding to the interface.
    如果以太网业务对应的接入口没有配置限速参数,并且所述以太网业务 为线性业务和所述以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该接口对应的物理端口的保证带宽。If the access port corresponding to the Ethernet service is not configured with a rate limit parameter, and the Ethernet service is A pseudowire configured with a finite-speed parameter is bound to the linear service and the Ethernet service, and the guaranteed bandwidth in the rate-limiting parameter of the pseudo-wire is used as the guaranteed bandwidth of the physical port corresponding to the interface.
  5. 如权利要求1所述的方法,其中,所述网络业务包括时分复用业务;所述获取每一网络业务对应接入口的保证带宽包括:The method of claim 1, wherein the network service comprises a time division multiplexing service; and the obtaining the guaranteed bandwidth of the corresponding access port of each network service comprises:
    获取每一时分复用业务对应的业务类型和对应接入口的物理端口类型;Obtaining a service type corresponding to each time division multiplexing service and a physical port type of the corresponding access port;
    根据所述业务类型和所述物理端口类型得到时分复用业务对应接入口的保证带宽。The guaranteed bandwidth of the corresponding access port of the time division multiplexing service is obtained according to the service type and the physical port type.
  6. 如权利要求5所述的方法,其中,所述获取每一时分复用业务对应的业务类型包括:The method of claim 5, wherein the obtaining a service type corresponding to each time division multiplexing service comprises:
    获取每一时分复用业务的业务速率;Obtaining the service rate of each time division multiplexing service;
    根据获取到的所述业务速率确定每一时分复用业务对应的业务类型。Determining, according to the obtained service rate, a service type corresponding to each time division multiplexing service.
  7. 如权利要求1-6任一项所述的方法,其中,所述确定出全网中的用户侧端口包括:The method of any of claims 1-6, wherein the determining the user side port in the entire network comprises:
    所述网络监测系统查询数据库,获取全网中的全部物理端口;The network monitoring system queries the database to obtain all physical ports in the entire network;
    所述网络监测系统获取全网拓扑连接,解析网络连接的网络端点,得到与所述网络端点连接的物理端口;The network monitoring system acquires a network-wide topology connection, resolves a network-connected network endpoint, and obtains a physical port connected to the network endpoint;
    确定除去与所述网络端点连接的物理端口之外的物理端口为用户侧端口。It is determined that the physical port other than the physical port connected to the network endpoint is removed as the user side port.
  8. 一种网络监测系统,所述网络监测系统包括用户侧查询模块、保证带宽获取模块和保证带宽计算模块:A network monitoring system includes a user side query module, a guaranteed bandwidth acquisition module, and a guaranteed bandwidth calculation module:
    所述用户侧查询模块设置为,查询数据库,确定出全网中的用户侧端口,保存每一个用户侧端口的端口标识;The user side query module is configured to query a database, determine a user side port in the entire network, and save a port identifier of each user side port;
    所述保证带宽获取模块设置为,根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一网络业务对应接入口的保证带宽;The guaranteed bandwidth acquisition module is configured to obtain all the network services corresponding to each user-side port according to the port identifier of the user-side port, and obtain the guaranteed bandwidth of the corresponding access port of each network service;
    所述保证带宽计算模块设置为,计算同一端口标识对应的所有保证带宽之和得到该端口标识对应的用户侧端口的端口保证带宽。The guaranteed bandwidth calculation module is configured to calculate a sum of all guaranteed bandwidths corresponding to the same port identifier to obtain a port guaranteed bandwidth of the user-side port corresponding to the port identifier.
  9. 如权利要求8所述网络监测系统,其中,所述网络业务包括以太网业 务;所述保证带宽获取模块是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,判断每一个以太网业务对应接入口的接入口类型,根据判断出的所述接入口类型选择对应的计算接入口的保证带宽的算法;根据对应的计算接入口的保证带宽的算法计算对应接入口的保证带宽。The network monitoring system of claim 8 wherein said network service comprises Ethernet The guaranteed bandwidth acquisition module is configured to: obtain all network services corresponding to each user-side port according to the port identifier of the user-side port, determine the type of the access port corresponding to each Ethernet service access port, and determine the The algorithm for calculating the guaranteed bandwidth of the access port is selected according to the type of the access port; and the guaranteed bandwidth of the corresponding access port is calculated according to the corresponding algorithm for calculating the guaranteed bandwidth of the access port.
  10. 如权利要求8所述网络监测系统,其中,所述网络业务包括时分复用业务;所述保证带宽获取模块是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一时分复用业务对应的业务类型和对应接入口的物理端口类型;根据所述业务类型和所述物理端口类型得到时分复用业务对应接入口的保证带宽。The network monitoring system of claim 8, wherein the network service comprises a time division multiplexing service, and the guaranteed bandwidth acquisition module is configured to: acquire all network services corresponding to each user side port according to the port identifier of the user side port. And obtaining a service type corresponding to each time division multiplexing service and a physical port type of the corresponding access port; and obtaining a guaranteed bandwidth of the corresponding access port of the time division multiplexing service according to the service type and the physical port type.
  11. 如权利要求10所述的网络监测系统,其中,所述网络业务包括时分复用业务;所述保证带宽获取模块是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,获取每一时分复用业务的业务速率;根据获取到的所述业务速率确定每一时分复用业务对应的业务类型;根据所述业务类型和所述物理端口类型得到时分复用业务对应接入口的保证带宽。The network monitoring system of claim 10, wherein the network service comprises a time division multiplexing service; the guaranteed bandwidth acquisition module is configured to: acquire all networks corresponding to each user side port according to the port identifier of the user side port. The service obtains the service rate of each time-division multiplexed service; determines the service type corresponding to each time-division multiplexed service according to the obtained service rate; and obtains the time-division multiplexed service corresponding according to the service type and the physical port type Guaranteed bandwidth of the access port.
  12. 如权利要求9所述的网络监测系统,其中,所述接入口类型包括接入口为物理端口;所述保证带宽获取模块是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,判断每一个以太网业务对应接入口的接入口类型,根据判断出的所述接入口类型选择对应的计算接入口的保证带宽的算法;The network monitoring system of claim 9, wherein the access port type comprises an access port being a physical port; and the guaranteed bandwidth obtaining module is configured to: obtain, according to a port identifier of the user-side port, a corresponding port of each user side All network services, determining the type of the access port corresponding to each of the Ethernet services, and selecting a corresponding algorithm for calculating the guaranteed bandwidth of the access port according to the determined type of the access port;
    如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该物理端口的保证带宽;If the rate limit parameter is configured on the access port corresponding to the Ethernet service, the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port.
    如果以太网业务对应的接入口没有配置限速参数,并且所述以太网业务为线性业务和所述以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该物理端口的保证带宽。If the rate limit parameter is not configured for the access port corresponding to the Ethernet service, and the Ethernet service is bound to the pseudo-line with the limited-speed parameter for the linear service and the Ethernet service, the speed limit parameter of the pseudo-line is The guaranteed bandwidth is the guaranteed bandwidth of the physical port.
  13. 如权利要求9所述的网络监测系统,其中,所述接入口类型包括接入口为接口;所述保证带宽获取模块是设置为:根据用户侧端口的端口标识获取每一用户侧端口对应的所有网络业务,判断每一个以太网业务对应接入口的接入口类型,根据判断出的所述接入口类型选择对应的计算接入口的保证带宽的算法; The network monitoring system of claim 9, wherein the access port type comprises an access port as an interface, and the guaranteed bandwidth obtaining module is configured to: acquire all the corresponding ports of each user side port according to the port identifier of the user side port. The network service determines the type of the access port corresponding to the access port of each Ethernet service, and selects a corresponding algorithm for calculating the guaranteed bandwidth of the access port according to the determined type of the access port;
    如果以太网业务对应的接入口配置了限速参数,则将该限速参数中的保证带宽作为该接口对应的物理端口的保证带宽;If the rate limit is configured on the interface corresponding to the Ethernet service, the guaranteed bandwidth in the rate limit parameter is used as the guaranteed bandwidth of the physical port corresponding to the interface.
    如果以太网业务对应的接入口没有配置限速参数,并且所述以太网业务为线性业务和所述以太网业务绑定了配置有限速参数的伪线,则将该伪线的限速参数中的保证带宽作为该接口对应的物理端口的保证带宽。If the rate limit parameter is not configured for the access port corresponding to the Ethernet service, and the Ethernet service is bound to the pseudo-line with the limited-speed parameter for the linear service and the Ethernet service, the speed limit parameter of the pseudo-line is The guaranteed bandwidth is the guaranteed bandwidth of the physical port corresponding to the interface.
  14. 如权利要求8~13所述的网络监测系统,其中,所述用户侧查询模块是设置为,查询数据库,获取全网中的全部物理端口;The network monitoring system according to any one of claims 8 to 13, wherein the user side query module is configured to query a database to obtain all physical ports in the entire network;
    所述网络监测系统获取全网拓扑连接,解析网络连接的网络端点,得到与所述网络端点连接的物理端口;The network monitoring system acquires a network-wide topology connection, resolves a network-connected network endpoint, and obtains a physical port connected to the network endpoint;
    确定除去与所述网络端点连接的物理端口之外的物理端口为用户侧端口;Determining that the physical port except the physical port connected to the network endpoint is a user-side port;
    保存每一个用户侧端口的端口标识。 Save the port ID of each user-side port.
PCT/CN2016/080393 2015-06-15 2016-04-27 Method for obtaining assured bandwidth of user-side port and network monitoring system WO2016202097A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510331293.6 2015-06-15
CN201510331293.6A CN106330476B (en) 2015-06-15 2015-06-15 Method for obtaining guaranteed bandwidth of user side port and network monitoring system

Publications (1)

Publication Number Publication Date
WO2016202097A1 true WO2016202097A1 (en) 2016-12-22

Family

ID=57544972

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080393 WO2016202097A1 (en) 2015-06-15 2016-04-27 Method for obtaining assured bandwidth of user-side port and network monitoring system

Country Status (2)

Country Link
CN (1) CN106330476B (en)
WO (1) WO2016202097A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039799A (en) * 2017-12-06 2020-12-04 贵州白山云科技股份有限公司 Method, server, system, device and medium for network bandwidth management

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6956849B1 (en) * 2000-12-01 2005-10-18 Cisco Technology, Inc. Bandwidth management and connection admission control in a network
CN1960342A (en) * 2006-11-29 2007-05-09 杭州华为三康技术有限公司 Method for putting apart a bandwidth in advance, and equipment for implementing bandwidth put apart in advance
CN103326960A (en) * 2012-10-19 2013-09-25 成都盈康通讯技术有限公司 Dividing and isolating device of Ethernet wide area network data leased line sub-channels
US8811177B1 (en) * 2011-11-03 2014-08-19 Jpmorgan Chase Bank, N.A. Method and system for implementing a network analysis tool for endpoints deployments
CN104113492A (en) * 2014-07-25 2014-10-22 北京奇虎科技有限公司 Router based user access bandwidth adjusting method, device and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3526269B2 (en) * 2000-12-11 2004-05-10 株式会社東芝 Inter-network relay device and transfer scheduling method in the relay device
CN100512178C (en) * 2006-06-20 2009-07-08 华为技术有限公司 Network transmission control method and system
CN102123095B (en) * 2011-03-10 2015-05-20 中兴通讯股份有限公司 Data forwarding control method and device
CN102394822B (en) * 2011-11-02 2018-08-03 中兴通讯股份有限公司 A kind of system and method for adjustment network transmission speed
CN103797841B (en) * 2013-08-19 2017-11-24 华为技术有限公司 A kind of admittance control method and device
CN104869032B (en) * 2015-04-22 2019-01-18 烽火通信科技股份有限公司 A kind of method and system carrying out CAC detection by business layer bandwidth

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6956849B1 (en) * 2000-12-01 2005-10-18 Cisco Technology, Inc. Bandwidth management and connection admission control in a network
CN1960342A (en) * 2006-11-29 2007-05-09 杭州华为三康技术有限公司 Method for putting apart a bandwidth in advance, and equipment for implementing bandwidth put apart in advance
US8811177B1 (en) * 2011-11-03 2014-08-19 Jpmorgan Chase Bank, N.A. Method and system for implementing a network analysis tool for endpoints deployments
CN103326960A (en) * 2012-10-19 2013-09-25 成都盈康通讯技术有限公司 Dividing and isolating device of Ethernet wide area network data leased line sub-channels
CN104113492A (en) * 2014-07-25 2014-10-22 北京奇虎科技有限公司 Router based user access bandwidth adjusting method, device and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039799A (en) * 2017-12-06 2020-12-04 贵州白山云科技股份有限公司 Method, server, system, device and medium for network bandwidth management
CN112039799B (en) * 2017-12-06 2023-06-06 贵州白山云科技股份有限公司 Network bandwidth management method, server, system, equipment and medium

Also Published As

Publication number Publication date
CN106330476B (en) 2021-02-19
CN106330476A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN108600102B (en) Flexible data transmission system based on intelligent cooperative network
US8005935B2 (en) Methods and computer program products for managing application performance on a network
JP4774357B2 (en) Statistical information collection system and statistical information collection device
US20160050120A1 (en) Network resource matching
CN105024844A (en) Method, server and system for computing cross-domain routing
US9992081B2 (en) Scalable generation of inter-autonomous system traffic relations
CN101986622A (en) Method and system for automatically identifying state attribute of path computation element (PCE)
US20170012900A1 (en) Systems, methods, and apparatus for verification of a network path
US20170012902A1 (en) Data Flow Statistics Collection Method, System, and Apparatus
WO2015018197A1 (en) Network performance measurement method, network management device and network element device
CN111106970A (en) Data monitoring method and device, electronic equipment and readable storage medium
WO2016202097A1 (en) Method for obtaining assured bandwidth of user-side port and network monitoring system
JP5883926B2 (en) Management server and flow processing method
US8537692B2 (en) Network failure detecting method and device
US20170048118A1 (en) Apparatus and method for collecting adaptive flow statistics data in carrier network
CN115314779A (en) Optical transport network path determining method, device, equipment and storage medium
JP4871775B2 (en) Statistical information collection device
US20210367894A1 (en) Traffic detection method, apparatus, and system
CN105141457B (en) Method, device, integrated network management and system for accessing optical transport network service
WO2020233707A1 (en) Network control method, apparatus and system
US10904123B2 (en) Trace routing in virtual networks
TWI538440B (en) PTN network resource management and dispatching method
US20170012835A1 (en) Generating Traffic Query Responses Using an Interface Map
EP3197103A1 (en) Svlan allocation method and device, and ethernet service establishment method and system
WO2022166347A1 (en) Rerouting method and device for otn, and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16810838

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16810838

Country of ref document: EP

Kind code of ref document: A1