WO2014146576A1 - Method and device for detecting available bandwidth of ptn link - Google Patents

Method and device for detecting available bandwidth of ptn link Download PDF

Info

Publication number
WO2014146576A1
WO2014146576A1 PCT/CN2014/073674 CN2014073674W WO2014146576A1 WO 2014146576 A1 WO2014146576 A1 WO 2014146576A1 CN 2014073674 W CN2014073674 W CN 2014073674W WO 2014146576 A1 WO2014146576 A1 WO 2014146576A1
Authority
WO
WIPO (PCT)
Prior art keywords
bandwidth
link
cir
available bandwidth
port
Prior art date
Application number
PCT/CN2014/073674
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 WO2014146576A1 publication Critical patent/WO2014146576A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0882Utilisation of link capacity

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting an available bandwidth of a Packet Transport Network (PTN) link.
  • PTN Packet Transport Network
  • an EMS network can have more than ten PTN devices per day, which is still in the form of thick line management, and many devices are idling.
  • PTN expansion is stopped. Users cannot understand the available bandwidth on the current network link, and it is not reasonable to save resources on each link. This causes a lot of resources to be wasted, and the creation efficiency of PTN services cannot be obtained. Upgrade.
  • an object of the embodiments of the present invention is to provide a method and apparatus for detecting available bandwidth of a PTN link, and more specifically, when creating a PTN service, according to a user selected A/Z endpoint.
  • the network element detects the available bandwidth resources of all the links. Therefore, you can manually select a link that has a relatively idle bandwidth, or avoid a link with a relatively busy bandwidth. You can use the resources of the link and improve the PTN.
  • the method for detecting the available bandwidth of a PTN link in the embodiment of the present invention includes the following steps:
  • the pseudowire is not configured with CIR, the CIR of the pseudowire takes a value of zero.
  • the tunnel not configured with CIR, all pseudowires carried by the tunnel are not configured with CIR, SUM
  • the method further includes: step 4) searching for all reachable paths by using a known path search algorithm according to the selected endpoint of the user, and then calculating the current available bandwidth of all reachable paths, and according to the current of all reachable paths The result of comparing the available bandwidth results in the currently available bandwidth of the best path and the best path between the selected endpoints.
  • the currently available bandwidth MIN of the reachable path (the current available bandwidth of all links through the path).
  • the current available bandwidth MA of the best path the currently available bandwidth of all reachable paths).
  • step 1) it is further included to determine whether there is a path between the selected endpoints of the user, and if there is no path between the selected endpoints of the user, an abnormality display is performed.
  • an abnormal display is performed.
  • the currently available bandwidth of the link and the currently available bandwidth of the reachable path are all displayed on a user interface of the network management system.
  • the apparatus for detecting the available bandwidth of the PTN link includes a bandwidth resource calculation module, where the bandwidth resource calculation module is configured to calculate a chain according to a user selected endpoint and a predetermined algorithm corresponding to the port condition.
  • the bandwidth of the road reads the CIR values of all tunnels and pseudowires carried on the link, and calculates the current available bandwidth of the link according to a predetermined algorithm.
  • the bandwidth resource calculation module includes a tunnel and a pseudowire submodule for querying a link and a current available bandwidth submodule for calculating a link; the query submodule is configured to read all tunnels and pseudowires carried on the link.
  • the calculation sub-module is configured to calculate a link bandwidth according to a user-selected endpoint and a predetermined algorithm corresponding to the port condition, and calculate a chain according to the link bandwidth, the CIR value of the tunnel and the pseudowire The current available bandwidth of the road.
  • the device further includes a service creation module, where the service creation module is configured to select an endpoint, and search for all reachable paths by using a known path search algorithm according to the selected endpoint, and calculate current available of all reachable paths. Bandwidth, based on the comparison of the currently available bandwidth of all reachable paths, results in the currently available bandwidth of the best path and the best path between the selected endpoints.
  • the service creation module includes a calculation path bandwidth sub-module, a calculation optimal path sub-module, and a data delivery sub-module; the calculation path bandwidth sub-module is configured to search out according to the selected endpoint using a known path search algorithm.
  • FIG. 1 is a schematic diagram of a networking of a network management system
  • FIG. 2 is a flowchart of a method for detecting available bandwidth resources of a link in the first embodiment
  • FIG. 3 is an automatic selection of an optimal bandwidth resource when a PTN service is created in the second embodiment.
  • FIG. 4 is a schematic structural diagram of an available bandwidth resource detecting apparatus of a link in the third embodiment;
  • FIG. 5 is a schematic structural diagram of an apparatus for automatically selecting an optimal bandwidth resource path in the fourth embodiment.
  • a first embodiment of the present invention is a method for detecting the available bandwidth of a PTN link, as shown in step S103, step S104, and step S105 in FIG. 2: Step S103, according to the endpoint selected by the user, and the selection and port.
  • the link bandwidth MIN (A port physical bandwidth, Z port physical bandwidth) means that the link bandwidth is equal to the minimum of the A port physical bandwidth and the Z port physical bandwidth;
  • Link bandwidth MA (C port of the A port, Z The port CIR) means that the link bandwidth is equal to the maximum of the CIR of the A port and the CIR of the Z port.
  • Step S104 The network administrator queries all tunnels and pseudowires carried by all links, and reads CIR values of the tunnel and the pseudowire.
  • a hierarchical list can be generated, and such an example table is shown in this embodiment.
  • Step S105 calculating a current available bandwidth of each link according to a predetermined algorithm.
  • SUM CIR of a pseudowire carried by a tunnel without a CIR
  • the current available bandwidth value of the link is calculated according to the link bandwidth calculated in S103 and the CIR value of the tunnel and the pseudowire read in S104, which can be displayed on the user side interface of the network management, as shown in FIG. .
  • Step S201 On the human-computer interaction interface on the network management side, the user selects A/ Z endpoint network element; Step S201 is the same as step S101 in Embodiment 1.
  • Step S202 The network management first determines whether there is no path between the A/Z network elements selected by the user. If yes, step S211 is performed; otherwise, step S203 is performed.
  • Step S202 is the same as step S102 in the first embodiment.
  • the network management system queries all the tunnels and pseudowires carried by all the links, and reads the CIR values of the tunnels and the pseudowires to generate a hierarchical list. For the style of the hierarchical list, refer to the first embodiment.
  • the current available bandwidth of each link is calculated. For the algorithm, refer to the first embodiment.
  • step S206 if the available bandwidth of all reachable paths between the selected A/Z endpoint network elements is 0, that is, the optimal path bandwidth is 0, then go to step S211, and the user is prompted with an abnormality on the network management side.
  • step S207 if the created service sets the bandwidth requirement, and the service requires 01 > the best available bandwidth of the best path, the user is prompted for the current maximum available bandwidth value and advises the user to reset the bandwidth requirement, and the process returns to step S205.
  • step S208 the network management system sends the configuration data to the device.
  • step S209 it is determined whether the sending device fails, and if yes, step S208 is performed, otherwise the task ends successfully.
  • Embodiment 3 The third embodiment of the present invention corresponds to the method described in Embodiment 1, and a device for detecting available bandwidth of a PTN link, as shown in FIG. 3, includes a bandwidth resource calculation module 30, and the bandwidth resource calculation module 30 is configured to calculate a link bandwidth according to a user selected endpoint and a predetermined algorithm corresponding to the port condition, read CIR values of all tunnels and pseudowires carried on the link, and calculate a current available bandwidth of the link according to a predetermined algorithm.
  • These modules may be modules in a program unit, which may be stored in a memory. The processor can also execute these program units.
  • the bandwidth resource calculation module 30 includes a query sub-module 301 and a calculation sub-module 302.
  • the query sub-module 301 is configured to read CIR values of all tunnels and pseudowires carried on the link;
  • the CIR value of all the tunnels and the pseudowires carried on the network may generate a hierarchical list.
  • the calculation submodule 302 is configured to calculate according to the endpoint selected by the user and the predetermined algorithm corresponding to the port condition.
  • the link bandwidth is calculated, and the current available bandwidth of the link is calculated according to the link bandwidth, the CIR value of the tunnel and the pseudowire, and the algorithm is in accordance with the method described in Embodiment 1.
  • Embodiment 4 The fourth embodiment of the present invention corresponds to the method described in Embodiment 2, and is a device for automatically selecting an optimal bandwidth resource path when creating a PTN service, as shown in FIG. 4, including a bandwidth resource calculation module 30 and an end to The service module 40 is created, and the bandwidth resource calculation module 30 is the same as the bandwidth resource calculation module in the embodiment 3, which has more end-to-end service modules 40 than the device in the embodiment 3, and the end-to-end service is created.
  • the module 40 is configured to perform a path algorithm search according to the selected A/Z endpoint network element (which may also include a necessary link and avoid the link) and the previous available bandwidth, and search for an optimal path (the absolute value of the available bandwidth is the largest). Or the maximum percentage of available bandwidth).
  • the calculation path bandwidth sub-module 401 is configured to search for all reachable paths by using a known path search algorithm according to the selected endpoint, and calculate the currently available bandwidth of all reachable paths; The method in Example 2.
  • the calculation optimal path sub-module 402 is configured to calculate the current available bandwidth of the best path and the best path between the selected endpoints of the user according to the comparison result of the current available bandwidth of all the reachable paths.
  • the above path search supports manually optimizing the idle link, avoiding the busy link, and also automatically searching for the path with the largest absolute value of the available bandwidth or the largest percentage of the available bandwidth.
  • the data sending sub-module 403 interacts with the network element, and sends the data related to the calculated optimal path to the device.
  • the embodiment of the present invention has at least the following advantages: Compared with the existing created service, the embodiment of the present invention provides a method and device for detecting the available bandwidth of the PTN link. On the basis of detecting the available bandwidth of the PTN link, the available bandwidth of the link can be directly displayed on the user interface of the network management system, which fully utilizes the convenience of the network management resource display and the global computing capability, and can even automatically search without user intervention.
  • the path that best meets the requirements is reduced, the network planning investment is reduced, the original resources can be fully and reasonably utilized, the idle links are avoided, the busy links are avoided, and the operation and system processing are simple, which can greatly improve the efficiency of creating the most suitable service.
  • the technical solution provided by the embodiments of the present invention can be applied to the field of communication technologies, and can detect available bandwidth resources of all links according to the A/Z endpoint network element selected by the user, so that the user can select a link with sufficient bandwidth resources. , the most rational use of existing resources.

Landscapes

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

Abstract

Disclosed are method and device for detecting the available bandwidth of a PTN link, the method comprising: 1) during PTN service creation, calculating link bandwidth according to the endpoint selected by a user and the selection of a predetermined algorithm corresponding to a port condition; 2) reading the CIR values of all tunnels and pseudo wires along the link; 3) obtaining through calculation the currently available bandwidth of the link according to the link bandwidth and the CIR values of the tunnels and pseudo wires. The device comprises a bandwidth resource calculation module for calculating link bandwidth according to the endpoint selected by the user and the selection of the predetermined algorithm corresponding to the port condition, reading the CIR values of all the tunnels and pseudo wires carried on the link, and obtaining through calculation the currently available link bandwidth according to the predetermined algorithm. The present invention can detect, during PTN service creation, the available bandwidth resources of all links according to the A/Z endpoint network elements selected by a user, such that the user can select a link with sufficient bandwidth resources and properly utilize the available resources.

Description

一种侦测 PTN链路可用带宽的方法及装置 技术领域 本发明涉及通讯技术领域, 尤其涉及一种侦测分组传送网 (Packet Transport Network, 简称为 PTN) 链路可用带宽的方法及装置。 背景技术 在通讯领域, 开通业务是最重要的功能之一, 现在大部分厂家已经支持端到端创 建业务的功能, 能够自动生成业务途经的路径, 在方便性上已经大大提高。 但是仍然 停留在以往 SDH的思维, 只是对跳数和矢量距离有考虑, 没有结合 PTN业务的分组 特性, 对带宽资源没有直观反应, 用户无法了解当前的网络链路上仍然还有多少资源 可以使用。 目前各运营商正处于 PTN快速建网阶段,一般一个 EMS网络每天能上十几端 PTN 设备, 尚处于粗线条管理方式, 很多设备都在空转。但是, PTN扩容总有停止的一天, 用户不了解当前的网络链路上的可用带宽就无法合理、 节约利用每个链路的资源, 造 成大量资源浪费的同时, PTN业务的创建效率也无法得到提升。 发明内容 针对现有技术存在的问题,本发明实施例的目的在于提供一种侦测 PTN链路可用 带宽的方法和装置,更具体一点说:创建 PTN业务时,根据用户选择的 A/Z端点网元, 侦测所有链路的可用带宽资源,如此用户可以手工选择经过某段带宽较为空闲的链路, 或者避开某段带宽较为繁忙的链路, 能够合理利用链路的资源, 提高 PTN业务的创建 效率。 本发明实施例的侦测 PTN链路可用带宽的方法, 包括如下步骤:  TECHNICAL FIELD The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting an available bandwidth of a Packet Transport Network (PTN) link. BACKGROUND OF THE INVENTION In the field of communications, the provision of services is one of the most important functions. Most manufacturers now support the function of creating services end-to-end, and can automatically generate paths for service paths, which has been greatly improved in convenience. However, it still stays in the thinking of SDH in the past. It only considers the hop count and vector distance. It does not combine the packet characteristics of PTN service. It does not have an intuitive response to bandwidth resources. Users cannot understand how many resources are still available on the current network link. . At present, all operators are in the stage of rapid network construction of PTN. Generally, an EMS network can have more than ten PTN devices per day, which is still in the form of thick line management, and many devices are idling. However, there is always a day when PTN expansion is stopped. Users cannot understand the available bandwidth on the current network link, and it is not reasonable to save resources on each link. This causes a lot of resources to be wasted, and the creation efficiency of PTN services cannot be obtained. Upgrade. SUMMARY OF THE INVENTION In view of the problems existing in the prior art, an object of the embodiments of the present invention is to provide a method and apparatus for detecting available bandwidth of a PTN link, and more specifically, when creating a PTN service, according to a user selected A/Z endpoint. The network element detects the available bandwidth resources of all the links. Therefore, you can manually select a link that has a relatively idle bandwidth, or avoid a link with a relatively busy bandwidth. You can use the resources of the link and improve the PTN. Business creation efficiency. The method for detecting the available bandwidth of a PTN link in the embodiment of the present invention includes the following steps:
1 ) 在创建 PTN业务时, 根据用户选择的端点以及选择与端口条件对应的预定算 法计算链路带宽; 1) When creating a PTN service, calculate the link bandwidth according to the endpoint selected by the user and selecting a predetermined algorithm corresponding to the port condition;
2) 读取经过所述链路的所有隧道和伪线的 CIR值; 3 )根据所述链路带宽、 所述隧道和伪线的 CIR值计算得到链路的当前可用带宽。 优选地, 所述端口条件与预定算法的对应关系包括以下至少之一: 如果端口没有配置 CIR (Committed Information Rate, 承诺信息速率), 链路带宽 =MIN (A端口物理带宽, Z端口物理带宽); 如果端口有配置 CIR且 A端口物理带宽 =Z端口物理带宽时, 链路带宽 MA (A 端口的 CIR, Z端口的 CIR); 如果端口有配置 CIR且 A端口物理带宽<∑端口物理带宽时, 假如 A端口物理带 宽<∑端口的 CIR, 则链路带宽 = 端口物理带宽; 如果端口有配置 CIR且 A端口物理带宽 <Z端口物理带宽时, 假如 A端口的物理 带宽 >=Z端口的 CIR, 则链路带宽 =MAX (A端口的 CIR, Z端口的 CIR); 如果端口有配置 CIR且 A端口物理带宽>∑端口物理带宽时,假如 A端口的 CIR >Z 端口的物理带宽, 则链路带宽 =Z端口物理带宽; 否则, 链路带宽 MA (A端口的 CIR, Z端口的 CIR)。 优选地, 如果所述链路的当前可用带宽为具体数值, 则所述链路的当前可用带宽 的算法包括: 当前可用带宽 =链路带宽 -SUM (有配置 CIR的隧道的 CIR) -SUM (没 有配置 CIR的隧道承载的伪线的 CIR)。 优选地, 如果所述链路的当前可用带宽为百分比, 则所述链路的当前可用带宽的 算法包括: 当前可用带宽 ={链路带宽 -SUM (有配置 CIR的隧道的 CIR) -SUM (没有 配置 CIR的隧道承载的伪线的 CIR) }/链路带宽。 优选地, 如果伪线没有配置 CIR, 伪线的 CIR取 0值。 优选地, 如果隧道没有配置 CIR、 隧道承载的所有伪线上也没有配置 CIR, SUM2) reading CIR values of all tunnels and pseudowires passing through the link; 3) calculating the currently available bandwidth of the link according to the link bandwidth, the CIR values of the tunnel and the pseudowire. Preferably, the correspondence between the port condition and the predetermined algorithm includes at least one of the following: If the port does not have a CIR (Committed Information Rate), the link bandwidth=MIN (A port physical bandwidth, Z port physical bandwidth) If the port has CIR configured and the A port physical bandwidth = Z port physical bandwidth, the link bandwidth MA (CIR of the A port, CIR of the Z port); If the port has CIR configured and the physical bandwidth of the A port < ∑ port physical bandwidth If the A port physical bandwidth < CIR of the port, the link bandwidth = the port physical bandwidth; if the port has CIR configured and the A port physical bandwidth <Z port physical bandwidth, if the physical bandwidth of the A port >= C port CIR , link bandwidth = MAX (CIR of A port, CIR of Z port); If the port has CIR and A port physical bandwidth > ∑ port physical bandwidth, if the CIR of the A port > Z port physical bandwidth, then the chain Road Bandwidth = Z Port Physical Bandwidth; otherwise, Link Bandwidth MA (CIR of A port, CIR of Z port). Preferably, if the currently available bandwidth of the link is a specific value, the algorithm of the currently available bandwidth of the link includes: current available bandwidth = link bandwidth - SUM (CIR with tunnel configured with CIR) - SUM ( The CIR of the pseudowire carried by the tunnel of the CIR is not configured. Preferably, if the currently available bandwidth of the link is a percentage, the algorithm of the currently available bandwidth of the link includes: current available bandwidth = {link bandwidth - SUM (CIR with tunnel configured CIR) - SUM ( The CIR) }/link bandwidth of the pseudowire carried by the tunnel of the CIR is not configured. Preferably, if the pseudowire is not configured with CIR, the CIR of the pseudowire takes a value of zero. Preferably, if the tunnel is not configured with CIR, all pseudowires carried by the tunnel are not configured with CIR, SUM
(没有配置 CIR的隧道承载的伪线的 CIR) 取 0值。 优选地, 步骤 3 )之后还包括步骤 4)根据用户选中的端点通过已知的路径搜索算 法搜索出所有可达路径, 然后计算所有可达路径的当前可用带宽, 并根据所有可达路 径的当前可用带宽的大小比较结果得到用户选中端点间最佳路径和最佳路径的当前可 用带宽。 优选地, 所述可达路径的当前可用带宽 MIN (通过路径所有链路的当前可用带 宽)。 优选地, 所述最佳路径的当前可用带宽 MA (所有可达路径的当前可用带宽)。 优选地, 在步骤 1 ) 之前还包括对用户选中的端点之间是否存在通路进行判断, 如果用户选中的端点之间不存在通路, 则进行异常显示。 优选地, 如果步骤 4)中所述所有可达路径的当前可用带宽均为 0, 则进行异常显 示。 优选地, 所述链路的当前可用带宽以及可达路径的当前可用带宽均可以在网管系 统的用户界面上显示。 对应上述方法, 本发明实施例的侦测 PTN链路的可用带宽的装置, 包括带宽资源 计算模块, 所述带宽资源计算模块用于根据用户选择的端点以及选择与端口条件对应 的预定算法计算链路带宽, 读取链路上承载的所有隧道和伪线的 CIR值, 并根据预定 算法计算出链路的当前可用带宽。 优选地, 所述带宽资源计算模块包括查询链路承载的隧道和伪线子模块和计算链 路当前可用带宽子模块; 所述查询子模块用于读取链路上承载的所有隧道和伪线的 CIR值; 所述计算子模块用于根据用户选择的端点以及选择与端口条件对应的预定算法计 算链路带宽, 并根据所述链路带宽、 所述隧道和伪线的 CIR值计算得到链路的当前可 用带宽。 优选地, 所述装置还包括业务创建模块, 所述业务创建模块用于选择端点, 并根 据选中的端点利用已知的路径搜索算法搜索出所有可达路径, 并计算所有可达路径的 当前可用带宽, 根据所有可达路径的当前可用带宽的大小比较结果得到用户选中端点 间最佳路径和最佳路径的当前可用带宽。 优选地, 所述业务创建模块包括计算路径带宽子模块、 计算最佳路径子模块和数 据下发子模块; 所述计算路径带宽子模块用于根据选中的端点利用已知的路径搜索算法搜索出所 有可达路径, 并计算所有可达路径的当前可用带宽; 所述计算最佳路径子模块用于根据所有可达路径的当前可用带宽的大小比较结果 计算得到用户选中端点间的最佳路径和最佳路径的当前可用带宽; 所述数据下发子模块用于将计算得到的最佳路径的相关数据下发至设备上。 本发明实施例创建 PTN业务时, 能够根据用户选择的 A/Z端点网元,侦测出所有 链路的可用带宽资源, 便于用户选择带宽资源充沛的链路, 对已有资源进行最合理的 利用。 附图说明 图 1为网管系统组网示意图; 图 2为第一实施例中链路的可用带宽资源侦测方法流程图; 图 3为第二实施例中创建 PTN业务时自动选择最佳带宽资源路径的方法流程图; 图 4为第三实施例中链路的可用带宽资源侦测装置的结构示意图; 图 5为第四实施例中自动选择最佳带宽资源路径的装置结构示意图。 具体实施方式 为更进一步阐述本发明实施例为达成预定目的所采取的技术手段及功效,以下结 合附图及较佳实施例, 对本发明实施例进行详细说明如下。 本发明以下几个实施例的 涉及到的技术特征可以相互组合。 实施例 1 本发明第一实施例, 一种 PTN链路可用带宽的侦测方法, 如图 2中的步骤 S103、 步骤 S104和步骤 S105所示: 步骤 S103,根据用户选择的端点以及选择与端口条件对应的预定算法计算链路带 宽。 优选地, 可以采用如下至少之一方法计算: 如果端口没有指定 CIR, 链路带宽 MIN (A端口物理带宽, Z端口物理带宽)。 如果端口有指定 CIR、 A端口物理带宽 =Z端口物理带宽时, 链路带宽 MA (A 端口的 CIR, Z端口的 CIR)。 如果端口有指定 CIR、 A端口物理带宽 <Z端口物理带宽时,假如 A端口物理带宽 <Z端口的 CIR,则链路带宽 =A端口物理带宽;假如 A端口的物理带宽 >=Z端口的 CIR, 则链路带宽 =MAX (A端口的 CIR, Z端口的 CIR)。 如果端口有指定 CIR、 A端口物理带宽>∑端口物理带宽时,假如 A端口的 CIR >Z 端口的物理带宽,则链路带宽 =∑端口物理带宽;假如 A端口的 CIR<=Z端口的物理带 宽, 则链路带宽 =MAX (A端口的 CIR, Z端口的 CIR)。 其中, 链路带宽 MIN (A端口物理带宽, Z端口物理带宽) 的意思是链路带宽等 于 A端口物理带宽和 Z端口物理带宽中的最小值; 链路带宽=MA ( A端口的 CIR, Z端口的 CIR) 的意思是链路带宽等于 A端口 的 CIR和 Z端口的 CIR中的最大值。 步骤 S104, 网管查询所有链路承载的所有隧道和伪线, 并读取隧道和伪线的 CIR 值。 优选地, 可以生成一个层次列表, 在本实施例中示出了这样的一个示例表。 (CIR of the pseudowire carried by the tunnel without CIR) takes a value of 0. Preferably, after step 3), the method further includes: step 4) searching for all reachable paths by using a known path search algorithm according to the selected endpoint of the user, and then calculating the current available bandwidth of all reachable paths, and according to the current of all reachable paths The result of comparing the available bandwidth results in the currently available bandwidth of the best path and the best path between the selected endpoints. Preferably, the currently available bandwidth MIN of the reachable path (the current available bandwidth of all links through the path). Preferably, the current available bandwidth MA of the best path (the currently available bandwidth of all reachable paths). Preferably, before step 1), it is further included to determine whether there is a path between the selected endpoints of the user, and if there is no path between the selected endpoints of the user, an abnormality display is performed. Preferably, if the currently available bandwidth of all reachable paths in step 4) is 0, an abnormal display is performed. Preferably, the currently available bandwidth of the link and the currently available bandwidth of the reachable path are all displayed on a user interface of the network management system. Corresponding to the above method, the apparatus for detecting the available bandwidth of the PTN link according to the embodiment of the present invention includes a bandwidth resource calculation module, where the bandwidth resource calculation module is configured to calculate a chain according to a user selected endpoint and a predetermined algorithm corresponding to the port condition. The bandwidth of the road reads the CIR values of all tunnels and pseudowires carried on the link, and calculates the current available bandwidth of the link according to a predetermined algorithm. Preferably, the bandwidth resource calculation module includes a tunnel and a pseudowire submodule for querying a link and a current available bandwidth submodule for calculating a link; the query submodule is configured to read all tunnels and pseudowires carried on the link. The calculation sub-module is configured to calculate a link bandwidth according to a user-selected endpoint and a predetermined algorithm corresponding to the port condition, and calculate a chain according to the link bandwidth, the CIR value of the tunnel and the pseudowire The current available bandwidth of the road. Preferably, the device further includes a service creation module, where the service creation module is configured to select an endpoint, and search for all reachable paths by using a known path search algorithm according to the selected endpoint, and calculate current available of all reachable paths. Bandwidth, based on the comparison of the currently available bandwidth of all reachable paths, results in the currently available bandwidth of the best path and the best path between the selected endpoints. Preferably, the service creation module includes a calculation path bandwidth sub-module, a calculation optimal path sub-module, and a data delivery sub-module; the calculation path bandwidth sub-module is configured to search out according to the selected endpoint using a known path search algorithm. All reachable paths, and calculate the currently available bandwidth of all reachable paths; the calculated optimal path sub-module is used to calculate the best path between the selected endpoints of the user according to the comparison result of the currently available bandwidth of all reachable paths The currently available bandwidth of the best path; The data sending sub-module is configured to send relevant data of the calculated optimal path to the device. When the PTN service is created in the embodiment of the present invention, the available bandwidth resources of all links can be detected according to the A/Z endpoint network element selected by the user, so that the user can select a link with sufficient bandwidth resources, and the most reasonable resource is available. use. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a networking of a network management system; FIG. 2 is a flowchart of a method for detecting available bandwidth resources of a link in the first embodiment; FIG. 3 is an automatic selection of an optimal bandwidth resource when a PTN service is created in the second embodiment. FIG. 4 is a schematic structural diagram of an available bandwidth resource detecting apparatus of a link in the third embodiment; FIG. 5 is a schematic structural diagram of an apparatus for automatically selecting an optimal bandwidth resource path in the fourth embodiment. The embodiments of the present invention are described in detail below with reference to the accompanying drawings and preferred embodiments. The technical features involved in the following embodiments of the present invention can be combined with each other. Embodiment 1 A first embodiment of the present invention is a method for detecting the available bandwidth of a PTN link, as shown in step S103, step S104, and step S105 in FIG. 2: Step S103, according to the endpoint selected by the user, and the selection and port. The predetermined algorithm corresponding to the condition calculates the link bandwidth. Preferably, it can be calculated by at least one of the following methods: If the port does not specify a CIR, the link bandwidth MIN (A port physical bandwidth, Z port physical bandwidth). If the port has the specified CIR, A port physical bandwidth = Z port physical bandwidth, the link bandwidth MA (CIR of the A port, CIR of the Z port). If the port has a specified CIR, A port physical bandwidth <Z port physical bandwidth, if the A port physical bandwidth <Z port CIR, the link bandwidth = A port physical bandwidth; if the A port physical bandwidth >= Z port CIR , then link bandwidth = MAX (CIR of A port, CIR of Z port). If the port has the specified CIR, A port physical bandwidth > ∑ port physical bandwidth, if the CIR of the A port > the physical bandwidth of the Z port, the link bandwidth = ∑ port physical bandwidth; if the A port CIR <= Z port physics Bandwidth, then link bandwidth = MAX (CIR of A port, CIR of Z port). The link bandwidth MIN (A port physical bandwidth, Z port physical bandwidth) means that the link bandwidth is equal to the minimum of the A port physical bandwidth and the Z port physical bandwidth; Link bandwidth = MA (C port of the A port, Z The port CIR) means that the link bandwidth is equal to the maximum of the CIR of the A port and the CIR of the Z port. Step S104: The network administrator queries all tunnels and pseudowires carried by all links, and reads CIR values of the tunnel and the pseudowire. Preferably, a hierarchical list can be generated, and such an example table is shown in this embodiment.
Figure imgf000007_0001
Figure imgf000007_0001
步骤 S105, 按照预定算法计算出各个链路的当前可用带宽。 优选地, 可以采用如下算法进行计算: 链路的当前可用带宽 =链路带宽 -SUM (有配置 CIR的隧道的 CIR) -SUM (没有 配置 CIR的隧道承载的伪线的 CIR)。 如果伪线没有配置 CIR, 伪线的 CIR取 0值。 如果隧道没有配置 CIR、 隧道承载的所有伪线上也没有配置 CIR, SUM (没有配 置 CIR的隧道承载的伪线的 CIR) 取 0值。 其中, SUM (有配置 CIR的隧道的 CIR) 的意思是对有配置 CIR的隧道的 CIR 求和; Step S105, calculating a current available bandwidth of each link according to a predetermined algorithm. Preferably, the following algorithm can be used for calculation: Current available bandwidth of the link = link bandwidth - SUM (CIR of the tunnel with CIR configured) - SUM (CIR of the pseudowire carried by the tunnel without CIR). If the pseudowire is not configured with CIR, the CIR of the pseudowire takes a value of zero. If the CIR is not configured on the tunnel and the CIR is not configured on all the pseudowires carried by the tunnel, the SUM (the CIR of the pseudowire carried by the tunnel without the CIR) takes a value of 0. Where SUM (CIR with tunnel configured with CIR) means CIR summation for a tunnel with CIR configured;
SUM (没有配置 CIR的隧道承载的伪线的 CIR)的意思是对没有配置 CIR的隧道 承载的伪线的 CIR求和。 根据 S103中计算出的链路带宽以及 S104中读取的隧道和伪线的 CIR值计算得出 链路的当前可用带宽值, 其可以在网管的用户侧界面上进行显示, 如图 1所示。 可选地, 链路的当前可用带宽也可以采用百分比形式显示, 其计算方法为当前可 用带宽 ={链路带宽 -SUM (有指定 CIR的隧道的 CIR) -SUM (没有指定 CIR的隧道承 载的伪线的 CIR) }/链路带宽。 优选地, 步骤 S103之前还可以对用户选择网元端点之间是否存在通路进行判断, 可以减少计算量。 用户可以在网管用户界面侧选择 A/Z端点网元。 实施例 2 本发明第二实施例, 一种创建 PTN业务时自动选择最佳带宽资源路径的方法, 如 图 3中所示: 步骤 S201, 用户在网管侧的人机交互界面上, 选择 A/Z端点网元; 步骤 S201与 实施例 1中步骤 S101相同。 步骤 S202, 网管先判断用户选择的 A/Z网元之间是否不存在通路, 若是, 则执行 步骤 S211, 否则执行步骤 S203。 步骤 S202与实施例 1中步骤 S102相同。 步骤 S203, 网管查询所有链路承载的所有隧道和伪线, 并读取隧道和伪线的 CIR 值, 生成一个层次列表, 层次列表的样式具体参见实施例一。 步骤 S204, 计算出各个链路的当前可用带宽, 算法参见实施例一。 步骤 S205,网管根据选中的 A/Z端点网元和前面的当前可用带宽进行路径算法搜 索, 比如搜索出 N条可达路径 SNC1、 SNC2、 ...、 SNCn (路径搜索算法很多专利已 有, 此处不做过多说明), 其中某条路径经过 M段链路 LINK1、 LINK2、 ...、 LINKm, 该条路径的当前可用带宽 =MIN(LINK1的当前可用带宽, LINK2的当前可用带宽, ...,SUM (CIR of a pseudowire carried by a tunnel without a CIR) means a CIR summation of a pseudowire carried by a tunnel without a CIR. The current available bandwidth value of the link is calculated according to the link bandwidth calculated in S103 and the CIR value of the tunnel and the pseudowire read in S104, which can be displayed on the user side interface of the network management, as shown in FIG. . Optionally, the currently available bandwidth of the link may also be displayed in percentage form, and the calculation method is current available bandwidth={link bandwidth-SUM (CIR with tunnel with specified CIR)-SUM (no tunnel carrying CIR specified) Pseudowire CIR) } / link bandwidth. Preferably, before the step S103, the user may also determine whether there is a path between the network element endpoints, and the calculation amount may be reduced. You can select an A/Z endpoint NE on the NMS user interface. Embodiment 2 A second embodiment of the present invention is a method for automatically selecting an optimal bandwidth resource path when creating a PTN service, as shown in FIG. 3: Step S201: On the human-computer interaction interface on the network management side, the user selects A/ Z endpoint network element; Step S201 is the same as step S101 in Embodiment 1. Step S202: The network management first determines whether there is no path between the A/Z network elements selected by the user. If yes, step S211 is performed; otherwise, step S203 is performed. Step S202 is the same as step S102 in the first embodiment. In step S203, the network management system queries all the tunnels and pseudowires carried by all the links, and reads the CIR values of the tunnels and the pseudowires to generate a hierarchical list. For the style of the hierarchical list, refer to the first embodiment. In step S204, the current available bandwidth of each link is calculated. For the algorithm, refer to the first embodiment. Step S205, the network management performs a path algorithm search according to the selected A/Z endpoint network element and the current available bandwidth, for example, searching for N reachable paths SNC1, SNC2, ..., SNCn (the path search algorithm has many patents already Yes, there is not much explanation here, one of the paths passes through the M segment links LINK1, LINK2, ..., LINKm, the current available bandwidth of the path = MIN (the current available bandwidth of LINK1, the currently available LINK2) Bandwidth, ...,
LINKm的当前可用带宽), 计算得到所有可达路径的可用带宽, 那么就可以找到最佳 路径就是可达路径中可用带宽最大的一条路径, 相应地最佳路径的可用带宽 = MAX (SNC1的当前可用带宽, SNC2的当前可用带宽, ..., SNCn的当前可用带宽)。 其中, 路径的当前可用带宽 =MIN (LINK1 的当前可用带宽, LINK2的当前可用 带宽, ..., LINKm的当前可用带宽) 的意思是路径的当前可用带宽等于 LINK1 的当 前可用带宽, LINK2的当前可用带宽, ..., LINKm的当前可用带宽中的最小值; 最佳路径的可用带宽 = MAX ( SNC1的当前可用带宽, SNC2的当前可用带宽, ..., SNCn的当前可用带宽) 的意思是最佳路径的可用带宽等于 SNC1 的当前可用带宽, SNC2的当前可用带宽, ..., SNCn的当前可用带宽中的最大值。 优选地, 步骤 S206, 如果选中的 A/Z端点网元之间所有可达路径的可用带宽都为 0, 即最佳路径带宽为 0, 则转到步骤 S211, 在网管侧向用户提示异常。 优选地, 步骤 S207, 如果创建的业务设置了带宽要求, 而且业务要求的 01 >最 佳路径的可用带宽,则提示用户当前最大可用带宽的值并建议用户重新设置带宽要求, 回转到步骤 S205。 优选地, 步骤 S208, 网管把配置数据下发到设备上。 优选地, 步骤 S209, 判断下发设备是否失败, 若是, 则执行步骤 S208, 否则任 务成功结束。 优选地, 步骤 S211, 在网管侧向用户提示异常, 流程结束。 实施例 3 本发明第三实施例与实施例 1中所述方法对应,一种 PTN链路可用带宽的侦测装 置, 如图 3所示, 包括带宽资源计算模块 30, 所述带宽资源计算模块 30用于根据用 户选择的端点以及选择与端口条件对应的预定算法计算链路带宽, 读取链路上承载的 所有隧道和伪线的 CIR值, 并根据预定算法计算出链路的当前可用带宽。 这些模块可以是程序单元中的模块, 该程序单元可以存储于存储器中。 处理器也 可以执行这些程序单元。 上述实施例 1和实施例 2中的方法也可以是由程序单元实现 的, 该程序单元可以存储在存储器中, 也可以由处理器来执行这些程序单元。 优选地, 所述带宽资源计算模块 30包括查询子模块 301和计算子模块 302; 所述查询子模块 301用于读取链路上承载的所有隧道和伪线的 CIR值; 读取所有 链路上承载的所有隧道和伪线的 CIR值可以生成一个层次列表, 具体样式参见实施例 1中的表格; 所述计算子模块 302用于根据用户选择的端点以及选择与端口条件对应的预定算 法计算链路带宽, 并根据所述链路带宽、 所述隧道和伪线的 CIR值计算得到链路的当 前可用带宽, 算法按照实施例 1中所述的方法。 实施例 4 本发明第四实施例与实施例 2中所述方法对应,一种创建 PTN业务时自动选择最 佳带宽资源路径的装置, 如图 4所示,包括带宽资源计算模块 30和端到端创建业务模 块 40, 所述带宽资源计算模块 30与实施例 3中的带宽资源计算模块相同, 其比实施 例 3中的装置多了端到端创建业务模块 40, 所述端到端创建业务模块 40用于根据选 中的 A/Z端点网元 (可能还包含必经链路和避开链路) 和前面的当前可用带宽进行路 径算法搜索, 搜索出一条最佳路径 (可用带宽绝对值最大或者可用带宽百分比最大)。 优选地, 如图 5所示: 计算路径带宽子模块 401用于根据选中的端点利用已知的路径搜索算法搜索出所 有可达路径, 并计算所有可达路径的当前可用带宽; 具体计算方法参见实施例 2中的 方法。 计算最佳路径子模块 402用于根据所有可达路径的当前可用带宽的大小比较结果 计算得到用户选中端点间的最佳路径和最佳路径的当前可用带宽; 具体计算方法参见 实施例 2中的方法。 上述路径搜索支持手工优选空闲链路、 避开繁忙链路, 也支持自动搜索可用带宽 绝对值最大或者可用带宽百分比最大的路径。 数据下发子模块 403与网元交互, 用于将计算得到的最佳路径的相关数据下发至 设备上。 通过具体实施方式的说明, 应当可对本发明实施例为达成预定目的所采取的技术 手段及功效得以更加深入且具体的了解, 然而所附图示仅是提供参考与说明之用, 并 非用来对本发明实施例加以限制。 采用上述技术方案, 本发明实施例至少具有下列优点: 与现有的创建业务对比,本发明实施例提供了一种可以侦测 PTN链路可用带宽的 方法及装置。在侦测 PTN链路可用带宽的基础上还可以将链路的可用带宽直观在网管 用户界面侧显示, 充分利用了网管展示资源的便利性和全局的计算能力, 甚至可以不 需要用户干预自动搜索出最符合需求的路径, 减少网络规划投入, 对于原有资源能够 充分、 合理利用, 优选空闲链路、 避开繁忙链路, 操作和系统处理过程简单, 能大大 提高创建最适合业务的效率。 工业实用性 本发明实施例提供的技术方案可以应用于通讯技术领域, 能够根据用户选择的 A/Z端点网元, 侦测出所有链路的可用带宽资源, 便于用户选择带宽资源充沛的链路, 对已有资源进行最合理的利用。 LINKm's currently available bandwidth), calculate the available bandwidth of all reachable paths, then you can find the best path is the one with the largest available bandwidth in the reachable path, correspondingly the available bandwidth of the best path = MAX (the current SNC1) Available bandwidth, current available bandwidth of SNC2, ..., current available bandwidth of SNCn). Where the current available bandwidth of the path = MIN (the current available bandwidth of LINK1, the currently available bandwidth of LINK2, ..., the currently available bandwidth of LINKm) means that the currently available bandwidth of the path is equal to the currently available bandwidth of LINK1, the current LINK2 Available bandwidth, ..., the minimum of the currently available bandwidth of the LINKm; the available bandwidth of the best path = MAX (current available bandwidth of SNC1, current available bandwidth of SNC2, ..., current available bandwidth of SNCn) The available bandwidth for the best path is equal to the current available bandwidth of SNC1, the currently available bandwidth of SNC2, ..., the maximum of the currently available bandwidth of SNCn. Preferably, in step S206, if the available bandwidth of all reachable paths between the selected A/Z endpoint network elements is 0, that is, the optimal path bandwidth is 0, then go to step S211, and the user is prompted with an abnormality on the network management side. Preferably, in step S207, if the created service sets the bandwidth requirement, and the service requires 01 > the best available bandwidth of the best path, the user is prompted for the current maximum available bandwidth value and advises the user to reset the bandwidth requirement, and the process returns to step S205. Preferably, in step S208, the network management system sends the configuration data to the device. Preferably, in step S209, it is determined whether the sending device fails, and if yes, step S208 is performed, otherwise the task ends successfully. Preferably, in step S211, the user is prompted with an abnormality on the network management side, and the process ends. Embodiment 3 The third embodiment of the present invention corresponds to the method described in Embodiment 1, and a device for detecting available bandwidth of a PTN link, as shown in FIG. 3, includes a bandwidth resource calculation module 30, and the bandwidth resource calculation module 30 is configured to calculate a link bandwidth according to a user selected endpoint and a predetermined algorithm corresponding to the port condition, read CIR values of all tunnels and pseudowires carried on the link, and calculate a current available bandwidth of the link according to a predetermined algorithm. . These modules may be modules in a program unit, which may be stored in a memory. The processor can also execute these program units. The methods in Embodiment 1 and Embodiment 2 above may also be implemented by program units, which may be stored in a memory or may be executed by a processor. Preferably, the bandwidth resource calculation module 30 includes a query sub-module 301 and a calculation sub-module 302. The query sub-module 301 is configured to read CIR values of all tunnels and pseudowires carried on the link; The CIR value of all the tunnels and the pseudowires carried on the network may generate a hierarchical list. For details, refer to the table in Embodiment 1. The calculation submodule 302 is configured to calculate according to the endpoint selected by the user and the predetermined algorithm corresponding to the port condition. The link bandwidth is calculated, and the current available bandwidth of the link is calculated according to the link bandwidth, the CIR value of the tunnel and the pseudowire, and the algorithm is in accordance with the method described in Embodiment 1. Embodiment 4 The fourth embodiment of the present invention corresponds to the method described in Embodiment 2, and is a device for automatically selecting an optimal bandwidth resource path when creating a PTN service, as shown in FIG. 4, including a bandwidth resource calculation module 30 and an end to The service module 40 is created, and the bandwidth resource calculation module 30 is the same as the bandwidth resource calculation module in the embodiment 3, which has more end-to-end service modules 40 than the device in the embodiment 3, and the end-to-end service is created. The module 40 is configured to perform a path algorithm search according to the selected A/Z endpoint network element (which may also include a necessary link and avoid the link) and the previous available bandwidth, and search for an optimal path (the absolute value of the available bandwidth is the largest). Or the maximum percentage of available bandwidth). Preferably, as shown in FIG. 5, the calculation path bandwidth sub-module 401 is configured to search for all reachable paths by using a known path search algorithm according to the selected endpoint, and calculate the currently available bandwidth of all reachable paths; The method in Example 2. The calculation optimal path sub-module 402 is configured to calculate the current available bandwidth of the best path and the best path between the selected endpoints of the user according to the comparison result of the current available bandwidth of all the reachable paths. For the calculation method, refer to the method in Embodiment 2. method. The above path search supports manually optimizing the idle link, avoiding the busy link, and also automatically searching for the path with the largest absolute value of the available bandwidth or the largest percentage of the available bandwidth. The data sending sub-module 403 interacts with the network element, and sends the data related to the calculated optimal path to the device. The technical means and functions adopted by the embodiments of the present invention for achieving the intended purpose can be more deeply and specifically understood by the description of the specific embodiments. However, the accompanying drawings are merely for the purpose of reference and description. The embodiments of the invention are limited. With the above technical solution, the embodiment of the present invention has at least the following advantages: Compared with the existing created service, the embodiment of the present invention provides a method and device for detecting the available bandwidth of the PTN link. On the basis of detecting the available bandwidth of the PTN link, the available bandwidth of the link can be directly displayed on the user interface of the network management system, which fully utilizes the convenience of the network management resource display and the global computing capability, and can even automatically search without user intervention. The path that best meets the requirements is reduced, the network planning investment is reduced, the original resources can be fully and reasonably utilized, the idle links are avoided, the busy links are avoided, and the operation and system processing are simple, which can greatly improve the efficiency of creating the most suitable service. Industrial Applicability The technical solution provided by the embodiments of the present invention can be applied to the field of communication technologies, and can detect available bandwidth resources of all links according to the A/Z endpoint network element selected by the user, so that the user can select a link with sufficient bandwidth resources. , the most rational use of existing resources.

Claims

权 利 要 求 书 Claims
1. 一种侦测分组传送网 PTN链路可用带宽的方法, 其特征在于, 包括: A method for detecting available bandwidth of a packet transmission network PTN link, which is characterized by comprising:
在创建 PTN业务时,根据用户选择的端点以及选择与端口条件对应的预定 算法计算链路带宽;  When the PTN service is created, the link bandwidth is calculated according to the endpoint selected by the user and a predetermined algorithm corresponding to the port condition.
读取经过所述链路的所有隧道和伪线的承诺信息速率 CIR值; 根据所述链路带宽、所述隧道和伪线的 CIR值计算得到链路的当前可用带 宽。  Reading the committed information rate CIR value of all tunnels and pseudowires passing through the link; calculating the current available bandwidth of the link based on the link bandwidth, the CIR value of the tunnel and the pseudowire.
2. 如权利要求 1所述的侦测 PTN链路可用带宽的方法, 其特征在于, 所述端口条 件与预定算法的对应关系包括以下至少之一: The method for detecting the available bandwidth of a PTN link according to claim 1, wherein the correspondence between the port condition and a predetermined algorithm includes at least one of the following:
如果端口没有配置 CIR, 链路带宽 MIN (A端口物理带宽, Z端口物理带 宽);  If the port is not configured with CIR, the link bandwidth is MIN (A port physical bandwidth, Z port physical bandwidth);
如果端口有配置 CIR且 A端口物理带宽 =Z端口物理带宽时, 链路带宽 =MAX (A端口的 CIR, Z端口的 CIR);  If the port has CIR configured and the A port physical bandwidth = Z port physical bandwidth, the link bandwidth = MAX (CIR of the A port, CIR of the Z port);
如果端口有配置 CIR且 A端口物理带宽<∑端口物理带宽时, 假如 A端口 物理带宽<∑端口的 CIR, 则链路带宽 =A端口物理带宽;  If the port has a CIR configured and the A port physical bandwidth < ∑ port physical bandwidth, if the A port physical bandwidth < ∑ port CIR, the link bandwidth = A port physical bandwidth;
如果端口有配置 CIR且 A端口物理带宽<∑端口物理带宽时, 假如 A端口 的物理带宽 >=Z端口的 CIR,则链路带宽 =MAX( A端口的 CIR, Z端口的 CIR); 如果端口有配置 CIR且 A端口物理带宽>∑端口物理带宽时, 假如 A端口 的 CIR >Z 端口的物理带宽, 则链路带宽 =Z 端口物理带宽; 否则, 链路带宽 =MAX (A端口的 CIR, Z端口的 CIR)。  If the port has CIR configured and the A port physical bandwidth <∑ port physical bandwidth, if the physical bandwidth of the A port>=CIR of the Z port, the link bandwidth = MAX (CIR of the A port, CIR of the Z port); If the physical bandwidth of the C port and the physical bandwidth of the port are configured, the link bandwidth = Z port physical bandwidth; otherwise, the link bandwidth = MAX (the CIR of the A port) C port of the Z port).
3. 如权利要求 1所述的侦测 PTN链路可用带宽的方法, 其特征在于, 如果所述链 路的当前可用带宽为具体数值, 则所述链路的当前可用带宽的算法包括: 当前 可用带宽=链路带宽 -SUM (有配置 CIR的隧道的 CIR) -SUM (没有配置 CIR 的隧道承载的伪线的 CIR)。 The method for detecting the available bandwidth of a PTN link according to claim 1, wherein if the currently available bandwidth of the link is a specific value, the algorithm for the currently available bandwidth of the link includes: Available bandwidth = link bandwidth - SUM (CIR with tunnel configured with CIR) - SUM (CIR for pseudowires carried by tunnels without CIR).
4. 如权利要求 1所述的侦测 PTN链路可用带宽的方法, 其特征在于, 如果所述链 路的当前可用带宽为百分比, 则所述链路的当前可用带宽的算法包括: 当前可 用带宽 ={链路带宽 -SUM (有配置 CIR的隧道的 CIR) -SUM (没有配置 CIR的 隧道承载的伪线的 CIR) }/链路带宽。 如权利要求 4所述的侦测 PTN链路可用带宽的方法, 其特征在于, 如果伪线没 有配置 CIR, 伪线的 CIR取 0值。 The method for detecting the available bandwidth of a PTN link according to claim 1, wherein if the currently available bandwidth of the link is a percentage, the algorithm for the currently available bandwidth of the link includes: currently available Bandwidth = {link bandwidth - SUM (CIR with tunnel configured with CIR) - SUM (CIR for pseudowires carried by tunnels without CIR) } / link bandwidth. The method for detecting the available bandwidth of a PTN link according to claim 4, wherein if the pseudowire is not configured with CIR, the CIR of the pseudowire takes a value of zero.
6. 如权利要求 4所述的侦测 PTN链路可用带宽的方法, 其特征在于, 如果隧道没 有配置 CIR、 隧道承载的所有伪线上也没有配置 CIR, SUM (没有配置 CIR的 隧道承载的伪线的 CIR) 取 0值。 The method for detecting the available bandwidth of the PTN link according to claim 4, wherein if the CIR is not configured in the tunnel, and all the pseudowires carried by the tunnel are not configured, the SUM (the CIR tunnel is not configured) The CIR of the pseudowire takes a value of zero.
7. 如权利要求 1所述的侦测 PTN链路可用带宽的方法, 其特征在于, 在根据所述 链路带宽、 所述隧道和伪线的 CIR值计算得到链路的当前可用带宽之后, 所述 方法还包括: 7. The method for detecting available bandwidth of a PTN link according to claim 1, wherein after calculating a current available bandwidth of the link according to the link bandwidth, the CIR value of the tunnel and the pseudowire, The method further includes:
根据用户选中的端点通过已知的路径搜索算法搜索出所有可达路径, 然后 计算所有可达路径的当前可用带宽, 并根据所有可达路径的当前可用带宽的大 小比较结果得到用户选中端点间最佳路径和最佳路径的当前可用带宽。  According to the selected endpoint of the user, all the reachable paths are searched by the known path search algorithm, then the current available bandwidth of all reachable paths is calculated, and the comparison between the currently available bandwidths of all reachable paths is obtained. The current available bandwidth for the best path and the best path.
8. 如权利要求 Ί所述的侦测 PTN链路可用带宽的方法, 其特征在于, 所述可达路 径的当前可用带宽 =MIN (通过路径所有链路的当前可用带宽)。 8. The method of detecting available bandwidth of a PTN link according to claim </ RTI>, wherein the currently available bandwidth of the reachable path = MIN (current available bandwidth of all links through the path).
9. 如权利要求 7所述的侦测 PTN链路可用带宽的方法, 其特征在于, 所述最佳路 径的当前可用带宽 =MAX (所有可达路径的当前可用带宽)。 9. The method of detecting available bandwidth of a PTN link according to claim 7, wherein the current available bandwidth of the optimal path is = MAX (the currently available bandwidth of all reachable paths).
10. 如权利要求 7所述的侦测 PTN链路可用带宽的方法,其特征在于,如果步骤 4) 中所述所有可达路径的当前可用带宽均为 0, 则进行异常显示。 10. The method for detecting the available bandwidth of a PTN link according to claim 7, wherein if the current available bandwidth of all reachable paths in step 4) is 0, an abnormality display is performed.
11. 如权利要求 7所述的侦测 PTN链路可用带宽的方法, 其特征在于, 所述链路的 当前可用带宽以及可达路径的当前可用带宽均可以在网管系统的用户界面上显 示。 The method for detecting the available bandwidth of a PTN link according to claim 7, wherein the current available bandwidth of the link and the currently available bandwidth of the reachable path are all displayed on a user interface of the network management system.
12. 如权利要求 1所述的侦测 PTN链路可用带宽的方法, 其特征在于, 在根据用户 选择的端点以及选择与所述端口条件对应的预定算法计算所述链路带宽之前, 所述方法还包括: 12. The method of detecting available bandwidth of a PTN link according to claim 1, wherein: before calculating the link bandwidth according to an endpoint selected by a user and selecting a predetermined algorithm corresponding to the port condition, The method also includes:
对用户选中的端点之间是否存在通路进行判断, 如果用户选中的端点之间 不存在通路, 则进行异常显示。  A judgment is made as to whether there is a path between the selected endpoints of the user. If there is no path between the selected endpoints, an abnormal display is performed.
13. 一种侦测 PTN链路的可用带宽的装置, 其特征在于, 包括: 13. A device for detecting available bandwidth of a PTN link, comprising:
带宽资源计算模块, 所述带宽资源计算模块用于根据用户选择的端点以及 选择与端口条件对应的预定算法计算链路带宽, 读取链路上承载的所有隧道和 伪线的 CIR值, 并根据预定算法计算出链路的当前可用带宽。 14. 如权利要求 13所述的侦测 PTN链路的可用带宽的装置, 其特征在于, 所述带 宽资源计算模块包括查询子模块和计算子模块; a bandwidth resource calculation module, configured to calculate a link bandwidth according to a user selected endpoint and a predetermined algorithm corresponding to the port condition, and read CIR values of all tunnels and pseudowires carried on the link, and according to The predetermined algorithm calculates the current available bandwidth of the link. The device for detecting the available bandwidth of a PTN link according to claim 13, wherein the bandwidth resource calculation module comprises a query submodule and a calculation submodule;
所述查询子模块用于读取链路上承载的所有隧道和伪线的 CIR值; 所述计算子模块用于根据用户选择的端点以及选择与端口条件对应的预定 算法计算链路带宽, 并根据所述链路带宽、 所述隧道和伪线的 CIR值计算得到 链路的当前可用带宽。  The query sub-module is configured to read CIR values of all tunnels and pseudowires carried on the link; the calculation sub-module is configured to calculate link bandwidth according to a user-selected endpoint and a predetermined algorithm corresponding to the port condition, and Calculating the currently available bandwidth of the link according to the link bandwidth, the CIR value of the tunnel and the pseudowire.
15. 如权利要求 13所述的侦测 PTN链路的可用带宽的装置, 其特征在于, 所述装 置还包括业务创建模块, 所述业务创建模块用于选择端点, 并根据选中的端点 利用已知的路径搜索算法搜索出所有可达路径, 并计算所有可达路径的当前可 用带宽, 根据所有可达路径的当前可用带宽的大小比较结果得到用户选中端点 间最佳路径和最佳路径的当前可用带宽。 The device for detecting the available bandwidth of a PTN link according to claim 13, wherein the device further includes a service creation module, where the service creation module is configured to select an endpoint, and utilizes the selected endpoint according to the selected endpoint. The known path search algorithm searches out all reachable paths and calculates the current available bandwidth of all reachable paths. According to the comparison of the currently available bandwidths of all reachable paths, the current path and the best path between the selected endpoints are obtained. Available bandwidth.
16. 如权利要求 15所述的侦测 PTN链路的可用带宽的装置, 其特征在于, 所述业 务创建模块包括计算路径带宽子模块、计算最佳路径子模块和数据下发子模块; 所述计算路径带宽子模块用于根据选中的端点利用已知的路径搜索算法搜 索出所有可达路径, 并计算所有可达路径的当前可用带宽; The apparatus for detecting the available bandwidth of a PTN link according to claim 15, wherein the service creation module includes a calculation path bandwidth sub-module, a calculation optimal path sub-module, and a data delivery sub-module; The calculation path bandwidth sub-module is configured to search all reachable paths by using a known path search algorithm according to the selected endpoint, and calculate the currently available bandwidth of all reachable paths;
所述计算最佳路径子模块用于根据所有可达路径的当前可用带宽的大小比 较结果计算得到用户选中端点间的最佳路径和最佳路径的当前可用带宽;  The calculating an optimal path sub-module is configured to calculate, according to a comparison result of the currently available bandwidth of all reachable paths, a current available bandwidth of an optimal path and an optimal path between the selected endpoints of the user;
所述数据下发子模块用于将计算得到的最佳路径的相关数据下发至设备 上。  The data sending sub-module is configured to send relevant data of the calculated optimal path to the device.
PCT/CN2014/073674 2013-03-19 2014-03-19 Method and device for detecting available bandwidth of ptn link WO2014146576A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310087483.9 2013-03-19
CN201310087483.9A CN104065522B (en) 2013-03-19 2013-03-19 A kind of method and device of detecting PTN link available bandwidths

Publications (1)

Publication Number Publication Date
WO2014146576A1 true WO2014146576A1 (en) 2014-09-25

Family

ID=51553064

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/073674 WO2014146576A1 (en) 2013-03-19 2014-03-19 Method and device for detecting available bandwidth of ptn link

Country Status (2)

Country Link
CN (1) CN104065522B (en)
WO (1) WO2014146576A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112260875A (en) * 2020-10-23 2021-01-22 湖北工业大学 Packet transport network index optimization method and system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634856B (en) * 2014-11-21 2020-03-31 中兴通讯股份有限公司 Method and device for determining service performance parameters
CN106330773A (en) * 2015-06-17 2017-01-11 中兴通讯股份有限公司 Bandwidth adjusting method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1333622A1 (en) * 2002-01-30 2003-08-06 Lantern Communications Weighted fair flow control
CN101052037A (en) * 2006-05-10 2007-10-10 华为技术有限公司 Conversation management control method of IP bearing net
CN102368730A (en) * 2011-09-30 2012-03-07 烽火通信科技股份有限公司 Method for realizing dynamically modifying channel bandwidth in packet transport network (PTN)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1333622A1 (en) * 2002-01-30 2003-08-06 Lantern Communications Weighted fair flow control
CN101052037A (en) * 2006-05-10 2007-10-10 华为技术有限公司 Conversation management control method of IP bearing net
CN102368730A (en) * 2011-09-30 2012-03-07 烽火通信科技股份有限公司 Method for realizing dynamically modifying channel bandwidth in packet transport network (PTN)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FU, JUNWEI: "Design and implementation of a ptn network planning and optimization software system", CHINA MASTER'S THESES FULL-TEXT DATABASE, no. 4, 15 April 2011 (2011-04-15), pages 22 - 38 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112260875A (en) * 2020-10-23 2021-01-22 湖北工业大学 Packet transport network index optimization method and system
CN112260875B (en) * 2020-10-23 2021-11-02 湖北工业大学 Packet transport network index optimization method and system

Also Published As

Publication number Publication date
CN104065522A (en) 2014-09-24
CN104065522B (en) 2017-12-12

Similar Documents

Publication Publication Date Title
EP2614618B1 (en) Automated traffic engineering for multi-protocol label switching (mpls) with link utilization as feedback into the tie-breaking mechanism
WO2011060651A1 (en) Method for locating fault link, method for analyzing root cause of warning, device and system thereof
US11063874B2 (en) Forwarding path adjustment method, apparatus, and system
WO2015043327A1 (en) Routing method, device and system
US9088499B2 (en) Routing generation for implementation of fiber channel over ethernet
US10659327B2 (en) Network traffic analysis
WO2015106729A1 (en) A load balancing method, device, system and computer storage medium
JP2013510459A (en) Separate path computation algorithm
CN108833271B (en) Power grid wide area control service communication path selection method and server
WO2014019402A1 (en) Method and device for displaying service path in network trouble maintenance
US10630579B1 (en) Ensuring separate paths for network traffic between source devices and a destination device
JP2009200995A (en) Apparatus and method for determining detour route
WO2014146576A1 (en) Method and device for detecting available bandwidth of ptn link
WO2016177132A1 (en) Bgp routing source processing method and device
WO2015081735A1 (en) Traffic offloading method, apparatus, and system
US9515918B2 (en) Computing forwarding tables for link failures
CN109831378B (en) Message timeout response method and device
WO2018127024A1 (en) Error correction method, device based on network port transmission and network port transmission equipment
WO2019001101A1 (en) Routing path analysis method and device
CN108965122A (en) Route selection method, equipment and computer readable storage medium
WO2016000365A1 (en) Method and apparatus for path computation
US20130010637A1 (en) Network Modeling, Service Provisioning, and Service Management
JP5600629B2 (en) Network monitoring device
WO2021218766A1 (en) Border gateway protocol based route selection method and network device
US10644994B1 (en) Ensuring separate network paths between pairs of source and destination devices

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: 14770530

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: 14770530

Country of ref document: EP

Kind code of ref document: A1