摘要 |
<p>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.</p> |