WO2016091134A1 - Counting method and device for time slot resource occupation - Google Patents

Counting method and device for time slot resource occupation Download PDF

Info

Publication number
WO2016091134A1
WO2016091134A1 PCT/CN2015/096553 CN2015096553W WO2016091134A1 WO 2016091134 A1 WO2016091134 A1 WO 2016091134A1 CN 2015096553 W CN2015096553 W CN 2015096553W WO 2016091134 A1 WO2016091134 A1 WO 2016091134A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
time slot
bandwidth
service
service type
Prior art date
Application number
PCT/CN2015/096553
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 WO2016091134A1 publication Critical patent/WO2016091134A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • This application relates to, but is not limited to, the field of communications.
  • the capacity of single-wavelength channels is becoming larger and larger, ranging from 2.5 Gbit/s to 10 Gbit/s, 40 Gbit/s, and 100 Gbit/s, making the time slots used in configuring the network.
  • the scheduling method of time slots is more and more flexible, and the current networking mode is also more flexible, and a WDM network management system manages more and more sites.
  • a large number of services need to be configured, including a large number of time slot configurations. It is difficult to completely remember how many bandwidth slots are configured, and how many bandwidth slots can be configured.
  • the configured time slot bandwidth needs to be manually recorded. Data, low efficiency, long configuration time, and users can not accurately and intuitively understand the current network slot occupancy.
  • This document provides a statistical method and device for occupying time slot resources, which solves the problem that the time slot resource occupation in the related art needs to be manually recorded, which takes a long time and has low work efficiency.
  • An embodiment of the present invention provides a statistical method for slot resource occupation, including:
  • the used time slot bandwidth of the configured service in the port is obtained according to the time slot configuration information, and the total time slot is obtained.
  • the difference between the bandwidth and the used time slot bandwidth is the available time slot bandwidth
  • the obtaining the port of the optical channel OCH layer service in the network management system, and acquiring the total time slot bandwidth, the time slot configuration information, and the service type configuration information of the port when the port is an optical port include:
  • the port If the total bandwidth of the time slot is not zero, and the port supports a single service type configuration, it is determined whether the port has been configured with a service type, and if the port has been configured with a service type, the available time of the port is The gap bandwidth is set to zero.
  • the used time slot bandwidth of the configured service in the port is obtained according to the time slot configuration information, including :
  • the port determines whether the port is configured with an intersection according to the time slot configuration information, and if the port is configured with an intersection, according to the The location information of the port or the service type configuration information acquires the used time slot bandwidth of the port; if the port is not configured with an intersection, the used time slot bandwidth of the port is set to zero.
  • the obtaining, according to the used time slot bandwidth, the total time slot bandwidth, and the service type configuration information, the number of configured services and the number of configurable services for the service type of the port include:
  • the number of the configurable services of the port for different service types is obtained according to the total number of the configurable services and the number of the configured services.
  • the port determines, according to the time slot configuration information, whether the port is configured with an intersection, if the port is configured. After the intersection, the obtained time slot bandwidth of the port is obtained according to the location information of the port or the service type configuration information, and the method further includes:
  • intersection information of the port is associated with the preset node, and the preset node crosses the service, it is determined that the port is occupied by the service; the cross information of the port and the pre- If the node crossover does not have an association relationship, or if the preset node does not carry a service on the cross, it is determined that the occupation of the port is discretely occupied.
  • An embodiment of the present invention further provides a statistical device for occupying a time slot resource, including:
  • the first obtaining module is configured to: obtain a port of the optical channel OCH layer service in the network management system, and obtain the total time slot bandwidth, the time slot configuration information, and the service type configuration information of the port when the port is an optical port;
  • the second obtaining module is configured to: when the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, obtain the used time slot bandwidth of the configured service in the port according to the time slot configuration information. And obtaining a difference between the total bandwidth of the time slot and the used time slot bandwidth as an available time slot bandwidth;
  • the third obtaining module is configured to: obtain the number of configured services and the configurable service strips of the port for different service types according to the used time slot bandwidth, the total time slot bandwidth, and the service type configuration information. number.
  • the statistical device further includes:
  • the setting module is configured to: when the total bandwidth of the time slot is not zero, and the port supports a single service type configuration, determine whether the port has been configured with a service type, and if the port has been configured with a service type, The available time slot bandwidth of the port is set to zero.
  • the second obtaining module includes:
  • the first obtaining sub-module is configured to: when the total bandwidth of the time slot is not zero, and the port does not support the service type configuration, determine, according to the time slot configuration information, whether the port is configured with an intersection, if the port is If the crossover is configured, the used time slot bandwidth of the port is obtained according to the location information of the port or the service type configuration information; if the port is not configured with an intersection, the used time slot bandwidth of the port is set to zero. .
  • the third obtaining module includes:
  • a second obtaining sub-module configured to: obtain the number of services that the port has configured for different service types according to the used time slot bandwidth and the service type configuration information;
  • the third obtaining sub-module is configured to: obtain the total number of services configurable by the port for different service types according to the time slot bandwidth occupied by the different service types and the total bandwidth of the time slot;
  • the fourth obtaining sub-module is configured to: obtain the number of services configurable by the port for different service types according to the total number of configurable services and the number of the configured services.
  • the statistical device further includes:
  • the first determining module is configured to: determine, according to the relationship between the intersection information of the port and the preset node, whether the port is occupied by the service;
  • the second judging module is configured to: when the cross information of the port has an association relationship with the preset node, and the preset node crosses the service, determine that the port is occupied by the service; If the intersection information of the port does not have a relationship with the preset node, or if the preset node does not carry the service on the cross, it is determined that the occupation of the port is discrete.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the method for collecting the time slot resource occupation in the embodiment of the present invention first obtains the port of the OCH layer service in the network management system, and obtains the total time slot bandwidth, time slot configuration information, and service type configuration information of the port when the port is an optical port.
  • the used time slot bandwidth of the configured service in the port is obtained according to the time slot configuration information, and the total time slot bandwidth and the used time slot bandwidth are obtained. The difference is the available time slot bandwidth.
  • the number of configured services and the number of configurable services for the different service types are obtained.
  • the automatic statistics of the time slot resources are realized, which effectively improves the work efficiency and saves the working time, so that the user can know the time slot occupancy of the current network in time, and provides an accurate data basis for the next network planning and resource planning.
  • FIG. 1 is a flowchart of a statistical method for occupying time slot resources according to an embodiment of the present invention
  • FIG. 2 is a two-dimensional array storage of time slot occupation by a statistical method for slot resource occupation according to an embodiment of the present invention
  • FIG. 3 is a flowchart of an embodiment of a statistical method for time slot resource occupation according to the present invention.
  • FIG. 4 is a second schematic diagram of a two-dimensional array storage of time slot occupied by a statistical method for occupying time slot resources according to an embodiment of the present invention
  • FIG. 5 is a third schematic diagram of a two-dimensional array storage of time slot occupied by a statistical method for occupying time slot resources according to an embodiment of the present invention
  • FIG. 6 is a flowchart of statistics of ODU0 service statistics in a statistical method for slot resource occupation according to an embodiment of the present invention
  • FIG. 7 is a first flowchart of a statistical method for the occupation of time slot resources according to an embodiment of the present invention.
  • FIG. 8 is a second flowchart of a statistical method for the occupation of time slot resources according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a statistical device for occupying a time slot resource according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of an embodiment of a statistical device for occupying a time slot resource according to an embodiment of the present invention.
  • the statistical method for occupying the time slot resource in the embodiment of the present invention does not need to manually record the configured time slot bandwidth data, thereby greatly improving the working efficiency, and enabling the user to accurately and intuitively understand the time slot occupancy of the current network, Network planning and resource planning provide an effective data basis.
  • a statistical method for slot resource occupation in an embodiment of the present invention includes:
  • Step 11 Obtain a port of the optical channel OCH layer service in the network management system, and obtain the total time slot bandwidth, time slot configuration information, and service type configuration information of the port when the port is an optical port.
  • Step 12 When the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, obtain the used time slot bandwidth of the configured service in the port according to the time slot configuration information, and obtain the The difference between the total slot bandwidth and the used slot bandwidth is the available slot bandwidth;
  • Step 13 configuring according to the used time slot bandwidth, the total time slot bandwidth, and the service type
  • the information is obtained for the number of services that the port has configured for different service types and the number of configurable services.
  • the method for collecting the time slot resource occupation in the embodiment of the present invention obtains the used time slot of the port by acquiring the total bandwidth of the time slot, the configuration information of the time slot, and the service type configuration information of the OCH layer in the network management system.
  • the bandwidth, the available time slot bandwidth, and the port are validated for the number of allocated services and the number of available services for different service types. The cumbersome steps of manual statistics are eliminated, the work efficiency is greatly improved, the working time is saved, and the user can timely understand the time slot occupancy of the current network, and provide an accurate data basis for the next network planning and resource planning.
  • the step of the foregoing step 11 may include:
  • Step 111 Obtain an optical multiplex section OMS layer service in the network management system and an optical channel OCH layer service corresponding to the OMS layer service.
  • Step 112 Acquire a port of the OCH layer service when the OCN layer service is not empty.
  • the OCH layer service in the network management system can be accurately obtained according to the OMS layer service, so that the OCH layer service port is obtained when the OCH layer service is not empty, and data support is provided for subsequent analysis of the slot occupancy situation.
  • the port is a port of the starting point and an ending point of the OCH layer service.
  • the potential resources of the port (the type of service and the time slot that may be configured) may be obtained first, and then the maximum time slot bandwidth that can be configured on the port is obtained as the time slot of the port. bandwidth.
  • step 11 may further include:
  • Step 14 When the total bandwidth of the time slot is not zero, and the port supports a single service type configuration, determine whether the port has been configured with a service type. If the port has been configured with a service type, the port is configured. The available time slot bandwidth is set to zero.
  • the time slot bandwidth rate of the port is 100%.
  • the available time slot bandwidth of the port is zero, the user can know in time.
  • the time slot occupancy of the port provides data basis for the next network planning.
  • the step of the foregoing step 12 may include:
  • Step 121 the total bandwidth in the time slot is not zero, and the port does not support a single service type. And determining, according to the time slot configuration information, whether the port is configured with an intersection, and if the port is configured with an intersection, obtaining the used time slot of the port according to the location information of the port or the service type configuration information. Bandwidth; if the port is not configured to cross, the used slot bandwidth of the port is set to zero.
  • the port is configured to be crossover, it can be determined that the port is occupied, and the location information of the port is further obtained, and the time slots occupied by the location information are obtained from the location information to obtain the used time slot bandwidth of the port;
  • the locating information indicates that the occupied port is occupied continuously, and the used time slot bandwidth is obtained according to the service type configuration information, wherein the first time slot occupied by the service type is traversed successively. Thereby, the used time slot bandwidth of the port is accurately obtained, which provides effective data support for the user's network planning.
  • the slot occupancy is divided into the occupied and discarded by the service.
  • the criterion for judging is that if the service is occupied, the cross information on the corresponding scheduling port needs to be cross-associated with the node generated by the path module, where the node crosses the port and the cross information.
  • the source ports are equal, but for a complex type of service, it needs to be matched to a specific first time slot. If the associated nodes cross and the nodes carry services on the cross, they are occupied by the service, if the associated nodes are not crossed, or Discrete when there is no bearer service on the node cross. Therefore, after the foregoing step 121, the method may further include:
  • Step 122 Determine, according to the relationship between the intersection information of the port and the preset node, whether the port is occupied by the service.
  • Step 123 When the intersection information of the port is associated with the preset node, and the preset node crosses the service, it is determined that the port is occupied by the service; the cross information of the port is When the preset node cross does not have an association relationship, or when the preset node does not carry a service on the cross, it is determined that the occupation of the port is discretely occupied.
  • the user can accurately obtain the occupation information of the port, so that when the port is discretely occupied, the port service is adjusted to ensure the rationality of the service configuration.
  • the port service is adjusted to ensure the rationality of the service configuration.
  • the step of the foregoing step 13 may include:
  • Step 131 Acquire the foregoing according to the used time slot bandwidth and the service type configuration information. Number of services that the port has configured for different service types;
  • Step 132 Obtain the total number of services configurable by the port for different service types according to the time slot bandwidth occupied by the different service types and the total bandwidth of the time slot.
  • Step 133 Obtain the number of services configurable by the port for different service types according to the total number of configurable services and the number of configured services.
  • mapping the time slot bandwidth resources of the port to the service types of different classes the user can intuitively and accurately understand the current network usage of different service types, and provide an effective data basis for the next resource planning. It is convenient for users to use, and improves practicality and convenience.
  • the step of the foregoing step 131 may include:
  • Step 1311 Obtain the number of services of the service type configured on the port according to the used time slot bandwidth and the service type configuration information.
  • step 1312 the number of services of the configured service type is converted into the number of services of other service types according to the conversion relationship between different service types.
  • the service type of the current network can be divided into 4 levels according to the size of the optical channel data unit ODU, which are ODU0 (1.25 Gbit/s), ODU1 (2.5 Gbit/s), ODU2 (10 Gbit/s), and ODU3 (40 Gbit/). s) and ODU4 (100 Gbit/s).
  • ODU0 occupies one time slot
  • ODU1 occupies two time slots
  • ODU2 occupies 8 time slots
  • one ODU3 occupies 32 time slots
  • the above step 13 can count the time slot occupancy of the port through a two-dimensional array, as shown in FIG. 2, the horizontal direction is the time slot number (the time slot number starts from 0 and continues to 499, that is, one port). There can be at most 500 time slots under), vertical is the service of each level, the array is initialized to 0, and if any time slot is occupied, it is set to 1.
  • the statistical method for occupying time slot resources in the embodiment of the present invention includes:
  • Step 31 Obtain an OMS layer service in the network management system and an OCH layer service corresponding to the OMS layer service.
  • the port of the OCH layer service is obtained, and the port of the port is obtained.
  • the port information of the port is obtained, including the total time slot bandwidth, time slot configuration information, and service.
  • Type configuration information where the OCH layer service or port is regarded when there is no corresponding OCH layer service in the OMS layer service (that is, the acquired OCH layer service is empty), and the total time slot of the port is not the optical port or the port is zero. Invalid.
  • Step 33 When the total time slot of the port is not zero, and the port does not support the single service type configuration, determine whether the port is configured with the cross according to the time slot configuration information. If the port is configured with the cross, the location information of the port is obtained.
  • the port is configured with no locating information, the port is occupied continuously.
  • the first time slot occupied by the service is obtained according to the service type configuration information, and the traversal is performed from the first time slot and then traversed according to the traversal. The result is to change the above two-dimensional array.
  • the used time slot bandwidth of the port and the number of services of the configured service type are counted, and the available time slot bandwidth is obtained according to the total time slot of the time slot and the used time slot bandwidth. Then, according to the relationship between the intersection information of the port and the preset node, it is determined whether the port is occupied by the service; if the intersection information of the port is associated with the preset node, and the preset node crosses the service, the port is judged to be The service is occupied; if the intersection information of the port does not have a relationship with the preset node, or if the preset node does not carry the service on the intersection, the port is determined to be discretely occupied.
  • Step 35 Convert the number of services of the configured service type into the number of services of other service types according to the conversion relationship between different service types.
  • the conversion of the time slot occupation of different service types is performed.
  • the above two-dimensional array is marked as m_arrayOld, and a new two-dimensional array m_arrayNew is cloned according to m_arrayOld, as shown in FIG. 5, for storing different service types after conversion. Occupied time slot data.
  • time slots occupied by ODU0, ODU1, ODU2, ODU3, and ODU4 may be sequentially calculated:
  • the combined data format is “first time slot_tail time slot_0”;
  • the time slots of the ODU2, ODU3, and ODU4 levels in m_arrayOld are converted to ODU1.
  • every two time slots are converted into one ODU1, and the first and last time slots need to be recorded and from which level.
  • the method for calculating the time slot occupied by the ODU2, ODU3, and ODU4 levels is the same as the above method for calculating the ODU1.
  • Odu0_num Calculate the number of ODU0 services (Odu0_num). As shown in Figure 6, traverse the array m_arrayNew to obtain the array occupied by ODU0, and determine whether the value of the array is empty. As long as m_arrayNew[0][i] is not empty, it is ODU0. Occupied, then Odu0_num++, if it is empty, it is judged whether it is the last element of the array until the elements in the array are all counted;
  • Odu1_num Calculate the number of ODU1 services (Odu1_num). As shown in Figure 7, traverse the array m_arrayNew to obtain the array occupied by ODU1, and determine whether the value of the array is empty. As long as m_arrayNew[1][i] is not empty, the first and last tails are obtained. The time slots are recorded separately. If the newly acquired first and last time slots are the same as the first and last time slots of the previous record, it is considered to be an ODU1. If it is not the same, Odu1_num++, and determine whether it is the last element of the array until the elements in the array are all counted.
  • the number of services for calculating ODU2, ODU3, and ODU4 is the same as the above procedure for calculating ODU1.
  • Step 36 After obtaining the number of services configured for the service type of the port, obtain the number of services that can be configured for the service type of the port according to the total number of services that can be configured for the service type.
  • the used time slot bandwidth, the available time slot bandwidth, the number of configured services, and the number of configurable services of the OCH layer service port are respectively presented to the user, so that the user has an intuitive comprehensive and comprehensive time slot bandwidth resource of the network management system. Understand, provide accurate data basis for subsequent resource planning, which is convenient for users.
  • the statistics method of the slot resource occupation in the embodiment of the present invention can display all the OMS layer services configured in the network management system to the user, so that the user can see all the services very intuitively.
  • the statistical method for occupying time slot resources in the embodiment of the present invention can display the time slot bandwidth occupancy and proportion of each OMS layer service, and can also set a resource threshold value, and the portion exceeding the threshold value is marked to prompt the user.
  • the statistics method for the slot resource occupation in the embodiment of the present invention can separately collect the time slot bandwidth occupation of each OCH layer service, and map the used resources and the available resources to different layer service types respectively, for the next network.
  • Resource planning provides an accurate data basis and avoids the cumbersome steps of manual recording and improves work efficiency.
  • the embodiment of the present invention further provides a statistical device for occupying time slot resources, including:
  • the first obtaining module 91 is configured to: obtain a port of the optical channel OCH layer service in the network management system, and obtain the total time slot bandwidth, time slot configuration information, and service type configuration information of the port when the port is an optical port. ;
  • the second obtaining module 92 is configured to: when the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, obtain the used time slot of the configured service in the port according to the time slot configuration information. Bandwidth, and obtaining the difference between the total bandwidth of the time slot and the used time slot bandwidth is available Gap bandwidth
  • the third obtaining module 93 is configured to: obtain the number of configured services and configurable services of the port for different service types according to the used time slot bandwidth, the total time slot bandwidth, and the service type configuration information. The number of articles.
  • the statistical device for occupying the time slot resource in the embodiment of the invention saves the cumbersome steps of manual statistics, greatly improves the work efficiency, saves the working time, and enables the user to know the time slot occupancy of the current network in time for the next Network planning and resource planning provide an accurate data basis.
  • the first obtaining module 91 may perform data acquisition corresponding to the data unit 101
  • the second obtaining module 92 may perform statistics on the occupied bandwidth of the time slot corresponding to the time slot occupying unit 102
  • the third obtaining module 93 may correspond to the scaling unit 103.
  • the statistic unit 104 performs statistics on the number of services of different service types.
  • the statistical device may further include:
  • the setting module is configured to: when the total bandwidth of the time slot is not zero, and the port supports a single service type configuration, determine whether the port has been configured with a service type, and if the port has been configured with a service type, The available time slot bandwidth of the port is set to zero.
  • the time slot bandwidth rate of the port is 100%.
  • the available time slot bandwidth of the port is zero, the user can know in time.
  • the time slot occupancy of the port provides data basis for the next network planning.
  • the second obtaining module 92 may include:
  • the first obtaining sub-module is configured to: when the total bandwidth of the time slot is not zero, and the port does not support a single service type configuration, determine, according to the time slot configuration information, whether the port is configured with an intersection, if If the port is configured with an intersection, the used time slot bandwidth of the port is obtained according to the location information of the port or the service type configuration information; if the port is not configured with an intersection, the used time slot bandwidth of the port is set to zero.
  • the port is configured to be crossover, it can be determined that the port is occupied, and the location information of the port is further obtained, and the time slots occupied by the location information are obtained from the location information to obtain the used time slot bandwidth of the port;
  • the locating information indicates that the occupied port is occupied continuously, and the used time slot bandwidth is obtained according to the service type configuration information, wherein the first time slot occupied by the service type is sequentially followed. Convenient. Thereby, the used time slot bandwidth of the port is accurately obtained, which provides effective data support for the user's network planning.
  • the statistical device may further include:
  • the first determining module is configured to: determine, according to the relationship between the intersection information of the port and the preset node, whether the port is occupied by the service;
  • the second judging module is configured to: when the cross information of the port has an association relationship with the preset node, and the preset node crosses the service, determine that the port is occupied by the service; If the intersection information of the port does not have a relationship with the preset node, or if the preset node does not carry the service on the cross, it is determined that the occupation of the port is discrete.
  • the user can accurately obtain the occupation information of the port, so that when the port is discretely occupied, the port service is adjusted to ensure the rationality of the service configuration.
  • the port service is adjusted to ensure the rationality of the service configuration.
  • the third obtaining module 93 may include:
  • a second obtaining sub-module configured to: obtain, according to the used time slot bandwidth and the service type configuration information, the number of services that the port has configured for different service types;
  • the third obtaining sub-module is configured to: obtain the total number of services configurable by the port for different service types according to the time slot bandwidth occupied by the different service types and the total bandwidth of the time slot;
  • the fourth obtaining sub-module is configured to: obtain the number of services configurable by the port for different service types according to the total number of configurable services and the number of the configured services.
  • mapping the time slot bandwidth resources of the port to the service types of different classes the user can intuitively and accurately understand the current network usage of different service types, and provide an effective data basis for the next resource planning. It is convenient for users to use, and improves practicality and convenience.
  • the statistical device for occupying time slot resources in the embodiment of the present invention realizes automatic statistics on time slot resources, greatly improves work efficiency, saves working time, and enables users to know the time slot occupancy of the current network in time for Network planning and resource planning provide an accurate data basis.
  • the statistical device occupied by the time slot resource is the same as the time slot resource occupation.
  • the device corresponding to the method, wherein all the implementations in the above method embodiments are applicable to the embodiment of the device, can also achieve the same technical effect.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiment of the invention implements automatic statistics on time slot resources, effectively improves work efficiency, saves working time, enables users to timely understand the current network slot occupancy, and provides accurate network planning and resource planning for the next time. Based on the data.

Abstract

Disclosed are a counting method and device for time slot resource occupation. The counting method comprises: acquiring a port of an optical channel (OCH) layer service in a network management system, and acquiring the time slot total bandwidth, time slot configuration information and service type configuration information about the port when the port is an optical port; when the time slot total bandwidth is not zero and the port does not support a single service type configuration, according to the time slot configuration information, acquiring a used time slot bandwidth of a configured service in the port, and acquiring a difference between the time slot total bandwidth and the used time slot bandwidth as an available time slot bandwidth; and according to the used time slot bandwidth, the time slot total bandwidth and the service type configuration information, acquiring the number of services configured by the port for different service types and the number of services capable of being configured by the port for different service types.

Description

一种时隙资源占用的统计方法及装置Statistical method and device for time slot resource occupation 技术领域Technical field
本申请涉及但不限于通信领域。This application relates to, but is not limited to, the field of communications.
背景技术Background technique
随着光传输网络的高速发展,单波长通道承载的容量变的越来越大,由2.5Gbit/s到10Gbit/s、40Gbit/s、100Gbit/s,使得在配置网络时所使用的时隙也越来越多,时隙的调度方式也越来越灵活,而当前的组网方式也比较灵活,一个波分的网管***管理的站点也越来越多。为了承载业务,需要配置大量的业务,其中包含大量的时隙配置,很难完全记住配置了多少带宽的时隙,还可以配置多少带宽的时隙,一般需要人工记录所配置的时隙带宽数据,工作效率低,配置时间长,且用户无法准确直观地了解到当前网络的时隙占用情况。With the rapid development of optical transmission networks, the capacity of single-wavelength channels is becoming larger and larger, ranging from 2.5 Gbit/s to 10 Gbit/s, 40 Gbit/s, and 100 Gbit/s, making the time slots used in configuring the network. More and more, the scheduling method of time slots is more and more flexible, and the current networking mode is also more flexible, and a WDM network management system manages more and more sites. In order to carry services, a large number of services need to be configured, including a large number of time slot configurations. It is difficult to completely remember how many bandwidth slots are configured, and how many bandwidth slots can be configured. Generally, the configured time slot bandwidth needs to be manually recorded. Data, low efficiency, long configuration time, and users can not accurately and intuitively understand the current network slot occupancy.
发明内容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.
本文提供一种时隙资源占用的统计方法及装置,解决相关技术中时隙资源占用情况需要人工进行记录,花费时间长,工作效率低的问题。This document provides a statistical method and device for occupying time slot resources, which solves the problem that the time slot resource occupation in the related art needs to be manually recorded, which takes a long time and has low work efficiency.
本发明的实施例提供一种时隙资源占用的统计方法,包括:An embodiment of the present invention provides a statistical method for slot resource occupation, including:
获取网管***中光通道OCH层业务的端口,并在所述端口为光口时,获取所述端口的时隙总带宽、时隙配置信息及业务类型配置信息;Obtaining the port of the optical channel OCH layer service in the network management system, and obtaining the total time slot bandwidth, the time slot configuration information, and the service type configuration information of the port when the port is an optical port;
在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息获取所述端口中已配置业务的已用时隙带宽,并获取所述时隙总带宽与所述已用时隙带宽的差值为可用时隙带宽;When the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, the used time slot bandwidth of the configured service in the port is obtained according to the time slot configuration information, and the total time slot is obtained. The difference between the bandwidth and the used time slot bandwidth is the available time slot bandwidth;
根据所述已用时隙带宽、所述时隙总带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数及可配置的业务条数。 Obtaining, according to the used time slot bandwidth, the total time slot of the time slot, and the service type configuration information, the number of services that are configured for the service type of the port and the number of configurable services.
可选地,所述获取网管***中光通道OCH层业务的端口,并在所述端口为光口时,获取所述端口的时隙总带宽、时隙配置信息及业务类型配置信息之后,还包括:Optionally, the obtaining the port of the optical channel OCH layer service in the network management system, and acquiring the total time slot bandwidth, the time slot configuration information, and the service type configuration information of the port when the port is an optical port, include:
在所述时隙总带宽不为零,所述端口支持单一业务类型配置时,判断所述端口是否进行过业务类型配置,若所述端口进行过业务类型配置,则将所述端口的可用时隙带宽置为零。If the total bandwidth of the time slot is not zero, and the port supports a single service type configuration, it is determined whether the port has been configured with a service type, and if the port has been configured with a service type, the available time of the port is The gap bandwidth is set to zero.
可选地,所述在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息获取所述端口中已配置业务的已用时隙带宽,包括:Optionally, when the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, the used time slot bandwidth of the configured service in the port is obtained according to the time slot configuration information, including :
在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息判断所述端口是否配置了交叉,若所述端口配置了交叉,则根据所述端口的定位信息或所述业务类型配置信息获取所述端口的已用时隙带宽;若所述端口未配置交叉,则将所述端口的已用时隙带宽置为零。If the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, determine whether the port is configured with an intersection according to the time slot configuration information, and if the port is configured with an intersection, according to the The location information of the port or the service type configuration information acquires the used time slot bandwidth of the port; if the port is not configured with an intersection, the used time slot bandwidth of the port is set to zero.
可选地,所述根据所述已用时隙带宽、所述时隙总带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数及可配置的业务条数,包括:Optionally, the obtaining, according to the used time slot bandwidth, the total time slot bandwidth, and the service type configuration information, the number of configured services and the number of configurable services for the service type of the port, include:
根据所述已用时隙带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数;Acquiring, according to the used time slot bandwidth and the service type configuration information, the number of services that the port has configured for different service types;
根据不同所述业务类型分别占用的时隙带宽及所述时隙总带宽,获取所述端口针对不同业务类型可配置的业务总条数;Obtaining, according to the time slot bandwidth occupied by the different service types and the total bandwidth of the time slot, the total number of services configurable by the port for different service types;
根据所述可配置的业务总条数及所述已配置的业务条数,获取所述端口针对不同业务类型可配置的业务条数。The number of the configurable services of the port for different service types is obtained according to the total number of the configurable services and the number of the configured services.
可选地,所述在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息判断所述端口是否配置了交叉,若所述端口配置了交叉,则根据所述端口的定位信息或所述业务类型配置信息获取所述端口的已用时隙带宽之后,还包括:Optionally, if the total bandwidth of the time slot is not zero, and the port does not support a single service type configuration, determine, according to the time slot configuration information, whether the port is configured with an intersection, if the port is configured. After the intersection, the obtained time slot bandwidth of the port is obtained according to the location information of the port or the service type configuration information, and the method further includes:
根据所述端口的交叉信息与预设节点交叉的关联关系,判断所述端口是否被业务占用; Determining whether the port is occupied by a service according to an association relationship between the intersection information of the port and a preset node;
在所述端口的交叉信息与所述预设节点交叉具有关联关系,且所述预设节点交叉上承载了业务时,判断所述端口被业务占用;在所述端口的交叉信息与所述预设节点交叉不具有关联关系,或所述预设节点交叉上没有承载业务时,判断所述端口的占用为离散占用。When the intersection information of the port is associated with the preset node, and the preset node crosses the service, it is determined that the port is occupied by the service; the cross information of the port and the pre- If the node crossover does not have an association relationship, or if the preset node does not carry a service on the cross, it is determined that the occupation of the port is discretely occupied.
本发明的实施例还提供一种时隙资源占用的统计装置,包括:An embodiment of the present invention further provides a statistical device for occupying a time slot resource, including:
第一获取模块,设置为:获取网管***中光通道OCH层业务的端口,并在所述端口为光口时,获取所述端口的时隙总带宽、时隙配置信息及业务类型配置信息;The first obtaining module is configured to: obtain a port of the optical channel OCH layer service in the network management system, and obtain the total time slot bandwidth, the time slot configuration information, and the service type configuration information of the port when the port is an optical port;
第二获取模块,设置为:在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息获取所述端口中已配置业务的已用时隙带宽,并获取所述时隙总带宽与所述已用时隙带宽的差值为可用时隙带宽;The second obtaining module is configured to: when the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, obtain the used time slot bandwidth of the configured service in the port according to the time slot configuration information. And obtaining a difference between the total bandwidth of the time slot and the used time slot bandwidth as an available time slot bandwidth;
第三获取模块,设置为:根据所述已用时隙带宽、所述时隙总带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数及可配置的业务条数。The third obtaining module is configured to: obtain the number of configured services and the configurable service strips of the port for different service types according to the used time slot bandwidth, the total time slot bandwidth, and the service type configuration information. number.
可选地,所述统计装置还包括:Optionally, the statistical device further includes:
设置模块,设置为:在所述时隙总带宽不为零,所述端口支持单一业务类型配置时,判断所述端口是否进行过业务类型配置,若所述端口进行过业务类型配置,则将所述端口的可用时隙带宽置为零。The setting module is configured to: when the total bandwidth of the time slot is not zero, and the port supports a single service type configuration, determine whether the port has been configured with a service type, and if the port has been configured with a service type, The available time slot bandwidth of the port is set to zero.
可选地,所述第二获取模块包括:Optionally, the second obtaining module includes:
第一获取子模块,设置为:在所述时隙总带宽不为零,所述端口不支持业务类型配置时,根据所述时隙配置信息判断所述端口是否配置了交叉,若所述端口配置了交叉,则根据所述端口的定位信息或所述业务类型配置信息获取所述端口的已用时隙带宽;若所述端口未配置交叉,则将所述端口的已用时隙带宽置为零。The first obtaining sub-module is configured to: when the total bandwidth of the time slot is not zero, and the port does not support the service type configuration, determine, according to the time slot configuration information, whether the port is configured with an intersection, if the port is If the crossover is configured, the used time slot bandwidth of the port is obtained according to the location information of the port or the service type configuration information; if the port is not configured with an intersection, the used time slot bandwidth of the port is set to zero. .
可选地,所述第三获取模块包括:Optionally, the third obtaining module includes:
第二获取子模块,设置为:根据所述已用时隙带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数; a second obtaining sub-module, configured to: obtain the number of services that the port has configured for different service types according to the used time slot bandwidth and the service type configuration information;
第三获取子模块,设置为:根据不同所述业务类型分别占用的时隙带宽及所述时隙总带宽,获取所述端口针对不同业务类型可配置的业务总条数;The third obtaining sub-module is configured to: obtain the total number of services configurable by the port for different service types according to the time slot bandwidth occupied by the different service types and the total bandwidth of the time slot;
第四获取子模块,设置为:根据所述可配置的业务总条数及所述已配置的业务条数,获取所述端口针对不同业务类型可配置的业务条数。The fourth obtaining sub-module is configured to: obtain the number of services configurable by the port for different service types according to the total number of configurable services and the number of the configured services.
可选地,所述统计装置还包括:Optionally, the statistical device further includes:
第一判断模块,设置为:根据所述端口的交叉信息与预设节点交叉的关联关系,判断所述端口是否被业务占用;The first determining module is configured to: determine, according to the relationship between the intersection information of the port and the preset node, whether the port is occupied by the service;
第二判断模块,设置为:在所述端口的交叉信息与所述预设节点交叉具有关联关系,且所述预设节点交叉上承载了业务时,判断所述端口被业务占用;在所述端口的交叉信息与所述预设节点交叉不具有关联关系,或所述预设节点交叉上没有承载业务时,判断所述端口的占用为离散占用。The second judging module is configured to: when the cross information of the port has an association relationship with the preset node, and the preset node crosses the service, determine that the port is occupied by the service; If the intersection information of the port does not have a relationship with the preset node, or if the preset node does not carry the service on the cross, it is determined that the occupation of the port is discrete.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。A computer readable storage medium storing computer executable instructions for performing the method of any of the above.
本发明实施例的时隙资源占用的统计方法,首先获取网管***中OCH层业务的端口,并在端口为光口时,获取该端口的时隙总带宽、时隙配置信息及业务类型配置信息;在端口的时隙总带宽不为零、端口不支持单一业务类型配置时,根据时隙配置信息获取端口中已配置业务的已用时隙带宽,并获取时隙总带宽与已用时隙带宽的差值为可用时隙带宽;最后根据已用时隙带宽、时隙总带宽及业务类型配置信息,获取端口针对不同业务类型已配置的业务条数及可配置的业务条数。实现了对时隙资源的自动统计,有效提高了工作效率、节省了工作时间,使用户能及时了解当前网络的时隙占用情况,为接下来的网络规划和资源规划提供了准确的数据依据。The method for collecting the time slot resource occupation in the embodiment of the present invention first obtains the port of the OCH layer service in the network management system, and obtains the total time slot bandwidth, time slot configuration information, and service type configuration information of the port when the port is an optical port. When the total time slot of the port is not zero and the port does not support the single service type configuration, the used time slot bandwidth of the configured service in the port is obtained according to the time slot configuration information, and the total time slot bandwidth and the used time slot bandwidth are obtained. The difference is the available time slot bandwidth. Finally, according to the used time slot bandwidth, the total time slot bandwidth, and the service type configuration information, the number of configured services and the number of configurable services for the different service types are obtained. The automatic statistics of the time slot resources are realized, which effectively improves the work efficiency and saves the working time, so that the user can know the time slot occupancy of the current network in time, and provides an accurate data basis for the next network planning and resource planning.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例时隙资源占用的统计方法流程图;1 is a flowchart of a statistical method for occupying time slot resources according to an embodiment of the present invention;
图2为本发明实施例时隙资源占用的统计方法时隙占用的二维数组存储 第一示意图;2 is a two-dimensional array storage of time slot occupation by a statistical method for slot resource occupation according to an embodiment of the present invention; First schematic diagram;
图3为本发明时隙资源占用的统计方法一实施例的流程图;3 is a flowchart of an embodiment of a statistical method for time slot resource occupation according to the present invention;
图4为本发明实施例时隙资源占用的统计方法时隙占用的二维数组存储第二示意图;4 is a second schematic diagram of a two-dimensional array storage of time slot occupied by a statistical method for occupying time slot resources according to an embodiment of the present invention;
图5为本发明实施例时隙资源占用的统计方法时隙占用的二维数组存储第三示意图;FIG. 5 is a third schematic diagram of a two-dimensional array storage of time slot occupied by a statistical method for occupying time slot resources according to an embodiment of the present invention; FIG.
图6为本发明实施例时隙资源占用的统计方法ODU0业务条数统计的流程图;FIG. 6 is a flowchart of statistics of ODU0 service statistics in a statistical method for slot resource occupation according to an embodiment of the present invention;
图7为本发明实施例时隙资源占用的统计方法ODU1业务条数统计第一流程图;FIG. 7 is a first flowchart of a statistical method for the occupation of time slot resources according to an embodiment of the present invention;
图8为本发明实施例时隙资源占用的统计方法ODU1业务条数统计第二流程图;FIG. 8 is a second flowchart of a statistical method for the occupation of time slot resources according to an embodiment of the present invention;
图9为本发明实施例时隙资源占用的统计装置的结构示意图;9 is a schematic structural diagram of a statistical device for occupying a time slot resource according to an embodiment of the present invention;
图10为本发明实施例时隙资源占用的统计装置一实施例的结构示意图。FIG. 10 is a schematic structural diagram of an embodiment of a statistical device for occupying a time slot resource according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下面将结合附图对本发明的实施方式进行详细描述。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
本发明实施例的时隙资源占用的统计方法,无需人工记录所配置的时隙带宽数据,大大提高了工作效率,且使用户能准确直观地了解到当前网络的时隙占用情况,为接下来的网络规划和资源规划提供了有效的数据依据。The statistical method for occupying the time slot resource in the embodiment of the present invention does not need to manually record the configured time slot bandwidth data, thereby greatly improving the working efficiency, and enabling the user to accurately and intuitively understand the time slot occupancy of the current network, Network planning and resource planning provide an effective data basis.
如图1所示,本发明实施例的时隙资源占用的统计方法,包括:As shown in FIG. 1 , a statistical method for slot resource occupation in an embodiment of the present invention includes:
步骤11,获取网管***中光通道OCH层业务的端口,并在所述端口为光口时,获取所述端口的时隙总带宽、时隙配置信息及业务类型配置信息;Step 11: Obtain a port of the optical channel OCH layer service in the network management system, and obtain the total time slot bandwidth, time slot configuration information, and service type configuration information of the port when the port is an optical port.
步骤12,在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息获取所述端口中已配置业务的已用时隙带宽,并获取所述时隙总带宽与所述已用时隙带宽的差值为可用时隙带宽;Step 12: When the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, obtain the used time slot bandwidth of the configured service in the port according to the time slot configuration information, and obtain the The difference between the total slot bandwidth and the used slot bandwidth is the available slot bandwidth;
步骤13,根据所述已用时隙带宽、所述时隙总带宽及所述业务类型配置 信息,获取所述端口针对不同业务类型已配置的业务条数及可配置的业务条数。 Step 13, configuring according to the used time slot bandwidth, the total time slot bandwidth, and the service type The information is obtained for the number of services that the port has configured for different service types and the number of configurable services.
本发明实施例的时隙资源占用的统计方法,在获取到网管***中OCH层业务端口后,通过获取端口的时隙总带宽、时隙配置信息及业务类型配置信息,对端口的已用时隙带宽、可用时隙带宽、端口针对不同业务类型的已配业务条数及可配业务条数进行了有效统计。省去了人工统计的繁琐步骤,大大提高了工作效率,节省了工作时间,使用户能及时了解当前网络的时隙占用情况,为接下来的网络规划和资源规划提供了准确的数据依据。The method for collecting the time slot resource occupation in the embodiment of the present invention obtains the used time slot of the port by acquiring the total bandwidth of the time slot, the configuration information of the time slot, and the service type configuration information of the OCH layer in the network management system. The bandwidth, the available time slot bandwidth, and the port are validated for the number of allocated services and the number of available services for different service types. The cumbersome steps of manual statistics are eliminated, the work efficiency is greatly improved, the working time is saved, and the user can timely understand the time slot occupancy of the current network, and provide an accurate data basis for the next network planning and resource planning.
其中,上述步骤11的步骤可以包括:The step of the foregoing step 11 may include:
步骤111,获取网管***中的光复用段OMS层业务以及所述OMS层业务对应的光通道OCH层业务;Step 111: Obtain an optical multiplex section OMS layer service in the network management system and an optical channel OCH layer service corresponding to the OMS layer service.
步骤112,在所述OCN层业务不为空时,获取所述OCH层业务的端口。Step 112: Acquire a port of the OCH layer service when the OCN layer service is not empty.
此时,根据OMS层业务能准确获取到网管***中的OCH层业务,以在OCH层业务不为空时,获取OCH层业务的端口,为后续对时隙占用情况的分析提供数据支持。In this case, the OCH layer service in the network management system can be accurately obtained according to the OMS layer service, so that the OCH layer service port is obtained when the OCH layer service is not empty, and data support is provided for subsequent analysis of the slot occupancy situation.
所述端口为所述OCH层业务的起始点和终结点的端口。The port is a port of the starting point and an ending point of the OCH layer service.
其中,获取所述端口的时隙总带宽时,可首先获取端口的潜在资源(可能配置的业务类型及时隙),然后在潜在资源中获取端口可以配置的最大时隙带宽作为端口的时隙总带宽。When the total time slot of the port is obtained, the potential resources of the port (the type of service and the time slot that may be configured) may be obtained first, and then the maximum time slot bandwidth that can be configured on the port is obtained as the time slot of the port. bandwidth.
本发明的实施例中,上述步骤11之后还可以包括:In the embodiment of the present invention, the foregoing step 11 may further include:
步骤14,在所述时隙总带宽不为零,所述端口支持单一业务类型配置时,判断所述端口是否进行过业务类型配置,若所述端口进行过业务类型配置,则将所述端口的可用时隙带宽置为零。Step 14: When the total bandwidth of the time slot is not zero, and the port supports a single service type configuration, determine whether the port has been configured with a service type. If the port has been configured with a service type, the port is configured. The available time slot bandwidth is set to zero.
此时,在端口支持单一业务类型配置,且端口进行过业务类型配置时,该端口的时隙带宽率占用为100%,通过将该端口的可用时隙带宽置零,可使用户及时了解到该端口的时隙占用情况,为接下来的网络规划提供数据依据。In this case, when the port supports a single service type configuration and the port is configured for service type, the time slot bandwidth rate of the port is 100%. By setting the available time slot bandwidth of the port to zero, the user can know in time. The time slot occupancy of the port provides data basis for the next network planning.
其中,上述步骤12的步骤可以包括:The step of the foregoing step 12 may include:
步骤121,在所述时隙总带宽不为零,所述端口不支持单一业务类型配 置时,根据所述时隙配置信息判断所述端口是否配置了交叉,若所述端口配置了交叉,则根据所述端口的定位信息或所述业务类型配置信息获取所述端口的已用时隙带宽;若所述端口未配置交叉,则将所述端口的已用时隙带宽置为零。Step 121, the total bandwidth in the time slot is not zero, and the port does not support a single service type. And determining, according to the time slot configuration information, whether the port is configured with an intersection, and if the port is configured with an intersection, obtaining the used time slot of the port according to the location information of the port or the service type configuration information. Bandwidth; if the port is not configured to cross, the used slot bandwidth of the port is set to zero.
此时,若端口配置了交叉,则可判断该端口被占用,进一步获取该端口的定位信息,从定位信息中解析出占用了哪些时隙,以获取该端口的已用时隙带宽;若端口没有定位信息,则表示该端口的占用为连续占用,根据业务类型配置信息获取已用时隙带宽,其中,对业务类型占用的首时隙依次往后遍历即可。从而准确获取了端口的已用时隙带宽,为用户的网络规划提供了有效的数据支持。At this time, if the port is configured to be crossover, it can be determined that the port is occupied, and the location information of the port is further obtained, and the time slots occupied by the location information are obtained from the location information to obtain the used time slot bandwidth of the port; The locating information indicates that the occupied port is occupied continuously, and the used time slot bandwidth is obtained according to the service type configuration information, wherein the first time slot occupied by the service type is traversed successively. Thereby, the used time slot bandwidth of the port is accurately obtained, which provides effective data support for the user's network planning.
时隙占用分为被业务占用和离散,判断的标准是如果被业务占用,则所对应的调度端口上的交叉信息需要跟路径模块生成的节点交叉关联上,其中,节点交叉的端口跟交叉信息的源端口相等,而对于复杂类型的业务,则需要匹配到具体的首时隙,如果关联上节点交叉,且节点交叉上承载了业务,则是被业务占用,若关联上节点未交叉,或节点交叉上没有承载业务则是离散。因此,上述步骤121之后,还可以包括:The slot occupancy is divided into the occupied and discarded by the service. The criterion for judging is that if the service is occupied, the cross information on the corresponding scheduling port needs to be cross-associated with the node generated by the path module, where the node crosses the port and the cross information. The source ports are equal, but for a complex type of service, it needs to be matched to a specific first time slot. If the associated nodes cross and the nodes carry services on the cross, they are occupied by the service, if the associated nodes are not crossed, or Discrete when there is no bearer service on the node cross. Therefore, after the foregoing step 121, the method may further include:
步骤122,根据所述端口的交叉信息与预设节点交叉的关联关系,判断所述端口是否被业务占用;Step 122: Determine, according to the relationship between the intersection information of the port and the preset node, whether the port is occupied by the service.
步骤123,在所述端口的交叉信息与所述预设节点交叉具有关联关系,且所述预设节点交叉上承载了业务时,判断所述端口被业务占用;在所述端口的交叉信息与所述预设节点交叉不具有关联关系,或所述预设节点交叉上没有承载业务时,判断所述端口的占用为离散占用。Step 123: When the intersection information of the port is associated with the preset node, and the preset node crosses the service, it is determined that the port is occupied by the service; the cross information of the port is When the preset node cross does not have an association relationship, or when the preset node does not carry a service on the cross, it is determined that the occupation of the port is discretely occupied.
此时,通过判断端口占用为业务占用或离散,能使用户准确获取该端口的占用信息,以在端口为离散占用时,对端口业务进行调整,保证业务配置的合理性。从而为用户的资源规划提供了有效的数据支持,方便了用户的使用,提高了实用性和便利性。At this time, by determining whether the port occupation is occupied or discretized, the user can accurately obtain the occupation information of the port, so that when the port is discretely occupied, the port service is adjusted to ensure the rationality of the service configuration. Thereby providing effective data support for the user's resource planning, which is convenient for the user to use, and improves the practicability and convenience.
本发明的实施例中,上述步骤13的步骤可以包括:In the embodiment of the present invention, the step of the foregoing step 13 may include:
步骤131,根据所述已用时隙带宽及所述业务类型配置信息,获取所述 端口针对不同业务类型已配置的业务条数;Step 131: Acquire the foregoing according to the used time slot bandwidth and the service type configuration information. Number of services that the port has configured for different service types;
步骤132,根据不同所述业务类型分别占用的时隙带宽及所述时隙总带宽,获取所述端口针对不同业务类型可配置的业务总条数;Step 132: Obtain the total number of services configurable by the port for different service types according to the time slot bandwidth occupied by the different service types and the total bandwidth of the time slot.
步骤133,根据所述可配置的业务总条数及所述已配置的业务条数,获取所述端口针对不同业务类型可配置的业务条数。Step 133: Obtain the number of services configurable by the port for different service types according to the total number of configurable services and the number of configured services.
此时,通过将端口的时隙带宽资源分别映射到不同阶级的业务类型上,能使用户直观准确地了解当前网络对不同业务类型的使用情况,为接下来的资源规划提供了有效的数据依据,方便了用户的使用,提高了实用性和便利性。At this time, by mapping the time slot bandwidth resources of the port to the service types of different classes, the user can intuitively and accurately understand the current network usage of different service types, and provide an effective data basis for the next resource planning. It is convenient for users to use, and improves practicality and convenience.
其中,上述步骤131的步骤可以包括:The step of the foregoing step 131 may include:
步骤1311,根据所述已用时隙带宽及所述业务类型配置信息,获取所述端口已配置的业务类型的业务条数;Step 1311: Obtain the number of services of the service type configured on the port according to the used time slot bandwidth and the service type configuration information.
步骤1312,根据不同业务类型之间的转换关系,将所述已配置的业务类型的业务条数转换成其他业务类型的业务条数。In step 1312, the number of services of the configured service type is converted into the number of services of other service types according to the conversion relationship between different service types.
例如,当前网络的业务类型按照光通道数据单元ODU的大小可分为4阶,分别为ODU0(1.25Gbit/s)、ODU1(2.5Gbit/s)、ODU2(10Gbit/s)、ODU3(40Gbit/s)和ODU4(100Gbit/s)。其中,一个ODU0占用一个时隙,一个ODU1占用2个时隙,一个ODU2占用8个时隙,一个ODU3占用32个时隙,一个ODU4占用80个时隙,即ODU1=2*ODU0,ODU2=8*ODU0,ODU3=32*ODU0,ODU4=80*ODU0。For example, the service type of the current network can be divided into 4 levels according to the size of the optical channel data unit ODU, which are ODU0 (1.25 Gbit/s), ODU1 (2.5 Gbit/s), ODU2 (10 Gbit/s), and ODU3 (40 Gbit/). s) and ODU4 (100 Gbit/s). One ODU0 occupies one time slot, one ODU1 occupies two time slots, one ODU2 occupies 8 time slots, one ODU3 occupies 32 time slots, and one ODU4 occupies 80 time slots, that is, ODU1=2*ODU0, ODU2= 8*ODU0, ODU3=32*ODU0, ODU4=80*ODU0.
本发明的实施例中,上述步骤13可通过二维数组来统计端口的时隙占用情况,如图2所示,横向是时隙号(时隙号从0开始,一直到499,即一个端口下最多只能有500个时隙),纵向是每个阶层的业务,数组初始化为0,若哪个时隙被占用,则将其置为1。In the embodiment of the present invention, the above step 13 can count the time slot occupancy of the port through a two-dimensional array, as shown in FIG. 2, the horizontal direction is the time slot number (the time slot number starts from 0 and continues to 499, that is, one port). There can be at most 500 time slots under), vertical is the service of each level, the array is initialized to 0, and if any time slot is occupied, it is set to 1.
则应用上述二维数组,如图3所示,本发明实施例的时隙资源占用的统计方法,包括:The foregoing two-dimensional array is applied. As shown in FIG. 3, the statistical method for occupying time slot resources in the embodiment of the present invention includes:
步骤31,获取网管***中的OMS层业务以及OMS层业务对应的OCH层业务; Step 31: Obtain an OMS layer service in the network management system and an OCH layer service corresponding to the OMS layer service.
步骤32,在OCH层业务不为空时,获取OCH层业务的起始点和终结点的端口;在端口为光口时,获取端口的端口信息,包括时隙总带宽,时隙配置信息及业务类型配置信息;其中,在OMS层业务没有对应的OCH层业务(即获取的OCH层业务为空)、端口不是光口或端口的时隙总带宽为零时,将此OCH层业务或端口视为无效。In the step 32, when the OCH layer service is not empty, the port of the OCH layer service is obtained, and the port of the port is obtained. When the port is an optical port, the port information of the port is obtained, including the total time slot bandwidth, time slot configuration information, and service. Type configuration information, where the OCH layer service or port is regarded when there is no corresponding OCH layer service in the OMS layer service (that is, the acquired OCH layer service is empty), and the total time slot of the port is not the optical port or the port is zero. Invalid.
步骤33,在端口的时隙总带宽不为零、端口不支持单一业务类型配置时,根据时隙配置信息判断端口是否配置了交叉,若端口配置了交叉,则获取该端口的定位信息;Step 33: When the total time slot of the port is not zero, and the port does not support the single service type configuration, determine whether the port is configured with the cross according to the time slot configuration information. If the port is configured with the cross, the location information of the port is obtained.
步骤34,根据从定位信息中解析出的时隙占用情况来变更上述二维数组中的数据。如配置的是ODU0业务,占用的是第2个时隙,则数组m[0][1]="1_1",其中,数组值的第一个“1”是首时隙号,第二个“1”是尾时隙号;如配置的是ODU2业务,占用的是从第3个时隙开始的8个时隙,则数组m[2][2]="2_9",m[2][3]="2_9"…m[2][9]="2_9",同理,数组值中的“2”是首时隙号,“9”是尾时隙号,如图4所示。从而通过变更后的二维数组详细记录业务占用的时隙位置及首尾时隙号。In step 34, the data in the two-dimensional array is changed according to the occupancy of the time slot analyzed from the positioning information. If the ODU0 service is configured and the second time slot is occupied, the array m[0][1]="1_1", where the first "1" of the array value is the first slot number, the second "1" is the tail slot number; if the ODU2 service is configured, it occupies 8 slots starting from the 3rd slot, then the array m[2][2]="2_9", m[2] [3]="2_9"...m[2][9]="2_9", for the same reason, "2" in the array value is the first slot number, and "9" is the tail slot number, as shown in Figure 4. . Therefore, the time slot position and the first and last slot numbers occupied by the service are recorded in detail through the changed two-dimensional array.
其中,若配置了交叉的端口无定位信息,则表示端口的占用为连续占用,根据业务类型配置信息获取业务占用的首时隙,并从首时隙开始依次往后遍历即可,并根据遍历结果变更上述二维数组。If the port is configured with no locating information, the port is occupied continuously. The first time slot occupied by the service is obtained according to the service type configuration information, and the traversal is performed from the first time slot and then traversed according to the traversal. The result is to change the above two-dimensional array.
根据变更后的二维数组,统计端口的已用时隙带宽及已配置的业务类型的业务条数,并根据时隙总带宽及已用时隙带宽获取可用时隙带宽。然后根据端口的交叉信息与预设节点交叉的关联关系,判断端口是否被业务占用;若端口的交叉信息与预设节点交叉具有关联关系,且预设节点交叉上承载了业务,则判断端口被业务占用;若端口的交叉信息与预设节点交叉不具有关联关系,或者预设节点交叉上没有承载业务,则判断端口为离散占用。According to the changed two-dimensional array, the used time slot bandwidth of the port and the number of services of the configured service type are counted, and the available time slot bandwidth is obtained according to the total time slot of the time slot and the used time slot bandwidth. Then, according to the relationship between the intersection information of the port and the preset node, it is determined whether the port is occupied by the service; if the intersection information of the port is associated with the preset node, and the preset node crosses the service, the port is judged to be The service is occupied; if the intersection information of the port does not have a relationship with the preset node, or if the preset node does not carry the service on the intersection, the port is determined to be discretely occupied.
步骤35,根据不同业务类型之间的转换关系,将已配置的业务类型的业务条数转换成其他业务类型的业务条数。首先进行不同业务类型时隙占用的换算,其中,先将上述二维数组标记为m_arrayOld,并根据m_arrayOld克隆一个新的二维数组m_arrayNew,如图5所示,用于存储换算之后不同业务类型分别占用的时隙数据。 Step 35: Convert the number of services of the configured service type into the number of services of other service types according to the conversion relationship between different service types. First, the conversion of the time slot occupation of different service types is performed. First, the above two-dimensional array is marked as m_arrayOld, and a new two-dimensional array m_arrayNew is cloned according to m_arrayOld, as shown in FIG. 5, for storing different service types after conversion. Occupied time slot data.
其中,为得到m_arrayNew,可依次计算ODU0、ODU1、ODU2、ODU3及ODU4分别占用的时隙:In order to obtain m_arrayNew, time slots occupied by ODU0, ODU1, ODU2, ODU3, and ODU4 may be sequentially calculated:
计算ODU0层级所占用的时隙带宽,先遍历ODU1层级占用的时隙,凡是m_arrayOld[1][i]不为空的表示占用,则设置m_arrayNew[0][i]=m_arrayOld[1][i]+"_1",其中“i”为大于或等于0的整数(最终m_arrayNew数组中的数据会如1_2_1,第一个“1”代表的是ODU1的首时隙,第一个“2”代表的是ODU1的尾时隙,第二个“1”代表的是这个时隙是从ODU1换算过来的),依次类推,对于ODU2,ODU3,ODU4都如ODU1同样处理。Calculate the time slot bandwidth occupied by the ODU0 level, first traverse the time slot occupied by the ODU1 level. If m_arrayOld[1][i] is not empty, set m_arrayNew[0][i]=m_arrayOld[1][i ]+"_1", where "i" is an integer greater than or equal to 0 (the data in the final m_arrayNew array will be like 1_2_1, the first "1" represents the first time slot of ODU1, and the first "2" represents the first time slot. The tail slot of ODU1, the second "1" represents that this time slot is converted from ODU1), and so on. For ODU2, ODU3, ODU4 are treated as ODU1.
计算ODU1层级所占用的时隙带宽,先将m_arrayOld中ODU0层级的每两个时隙代表一个ODU1两两组合起来,组合的数据格式为“首时隙_尾时隙_0”;再分别将m_arrayOld中ODU2、ODU3和ODU4层级的时隙换算到ODU1,跟ODU0换算一样,每两个时隙换算成一个ODU1,需要记录首尾时隙以及是从哪个层级换算的。Calculate the time slot bandwidth occupied by the ODU1 level. First, combine every two time slots of the ODU0 level in m_arrayOld to represent one ODU1. The combined data format is “first time slot_tail time slot_0”; The time slots of the ODU2, ODU3, and ODU4 levels in m_arrayOld are converted to ODU1. As with the ODU0 conversion, every two time slots are converted into one ODU1, and the first and last time slots need to be recorded and from which level.
计算ODU2、ODU3、ODU4层级所占用的时隙带宽与上述计算ODU1的方法相同。The method for calculating the time slot occupied by the ODU2, ODU3, and ODU4 levels is the same as the above method for calculating the ODU1.
然后统计不同业务类型的业务条数,根据二维数组m_arrayNew分别计算ODU0、ODU1、ODU2、ODU3及ODU4的业务条数:Then, the number of services of different service types is counted, and the number of services of ODU0, ODU1, ODU2, ODU3, and ODU4 is calculated according to the two-dimensional array m_arrayNew:
计算ODU0的业务条数(Odu0_num),如图6所示,遍历数组m_arrayNew,获取ODU0占用的数组,并判断数组的值是否为空,只要m_arrayNew[0][i]不为空,即被ODU0占用,则Odu0_num++,若为空,则判断是否为数组的最后一个元素,直到数组中的元素均完成统计;Calculate the number of ODU0 services (Odu0_num). As shown in Figure 6, traverse the array m_arrayNew to obtain the array occupied by ODU0, and determine whether the value of the array is empty. As long as m_arrayNew[0][i] is not empty, it is ODU0. Occupied, then Odu0_num++, if it is empty, it is judged whether it is the last element of the array until the elements in the array are all counted;
计算ODU1的业务条数(Odu1_num),如图7所示,遍历数组m_arrayNew,获取ODU1占用的数组,并判断数组的值是否为空,只要m_arrayNew[1][i]不为空,则获取首尾时隙分别记录,如果新获取的首尾时隙与之前记录的首尾时隙相同则认为是一个ODU1,若不相同则Odu1_num++,并判断是否为数组的最后一个元素,直到数组中的元素均完成统计;或者,如图8所示,遍历数组m_arrayNew,获取ODU1占用的数组,并判断数组的值是否为空,若m_arrayNew[1][i]不为空,则获取首尾时隙分别记录,并num++,如果新 获取的首尾时隙与之前记录的首位时隙相同则num++,若num等于ODU1占用的时隙个数,则Odu1_num++,并判断是否为数组的最后一个元素,直到数组中的元素均完成统计;Calculate the number of ODU1 services (Odu1_num). As shown in Figure 7, traverse the array m_arrayNew to obtain the array occupied by ODU1, and determine whether the value of the array is empty. As long as m_arrayNew[1][i] is not empty, the first and last tails are obtained. The time slots are recorded separately. If the newly acquired first and last time slots are the same as the first and last time slots of the previous record, it is considered to be an ODU1. If it is not the same, Odu1_num++, and determine whether it is the last element of the array until the elements in the array are all counted. Or, as shown in Figure 8, traverse the array m_arrayNew, get the array occupied by ODU1, and determine whether the value of the array is empty. If m_arrayNew[1][i] is not empty, then the first and last time slots are recorded separately, and num++ If new The first and last time slots obtained are the same as the first time slot of the previous record, then num++, if num is equal to the number of time slots occupied by ODU1, then Odu1_num++, and determine whether it is the last element of the array until the elements in the array are all counted;
计算ODU2、ODU3、ODU4的业务条数与上述计算ODU1的步骤相同。The number of services for calculating ODU2, ODU3, and ODU4 is the same as the above procedure for calculating ODU1.
步骤36,得到端口针对不同业务类型已配置的业务条数后,再根据端口针对不同业务类型可配置的业务总条数,获取端口针对不同业务类型可配置的业务条数。Step 36: After obtaining the number of services configured for the service type of the port, obtain the number of services that can be configured for the service type of the port according to the total number of services that can be configured for the service type.
最后将OCH层业务端口的已用时隙带宽、可用时隙带宽、已配置的业务条数、可配置的业务条数分别展现给用户,使用户对网管***的时隙带宽资源有一个直观全面的了解,为后续资源规划提供准确的数据依据,方便了用户的使用。Finally, the used time slot bandwidth, the available time slot bandwidth, the number of configured services, and the number of configurable services of the OCH layer service port are respectively presented to the user, so that the user has an intuitive comprehensive and comprehensive time slot bandwidth resource of the network management system. Understand, provide accurate data basis for subsequent resource planning, which is convenient for users.
本发明实施例的时隙资源占用的统计方法,可将网管***中配置的所有OMS层业务显示给用户,让用户非常直观地看到所有的业务。The statistics method of the slot resource occupation in the embodiment of the present invention can display all the OMS layer services configured in the network management system to the user, so that the user can see all the services very intuitively.
本发明实施例的时隙资源占用的统计方法,可显示出每条OMS层业务的时隙带宽占用情况以及比例,还可设置资源门限值,超过门限值的部分标示出来以提示用户。The statistical method for occupying time slot resources in the embodiment of the present invention can display the time slot bandwidth occupancy and proportion of each OMS layer service, and can also set a resource threshold value, and the portion exceeding the threshold value is marked to prompt the user.
本发明实施例的时隙资源占用的统计方法,可分别统计每条OCH层业务的时隙带宽占用情况,并将已用资源和可用资源分别映射到不同阶层的业务类型,为接下来的网络资源规划提供了准确的数据依据,且避免了人工记录的繁琐步骤,提高了工作效率。The statistics method for the slot resource occupation in the embodiment of the present invention can separately collect the time slot bandwidth occupation of each OCH layer service, and map the used resources and the available resources to different layer service types respectively, for the next network. Resource planning provides an accurate data basis and avoids the cumbersome steps of manual recording and improves work efficiency.
如图9所示,本发明的实施例还提供了一种时隙资源占用的统计装置,包括:As shown in FIG. 9, the embodiment of the present invention further provides a statistical device for occupying time slot resources, including:
第一获取模块91,设置为:获取网管***中光通道OCH层业务的端口,并在所述端口为光口时,获取所述端口的时隙总带宽、时隙配置信息及业务类型配置信息;The first obtaining module 91 is configured to: obtain a port of the optical channel OCH layer service in the network management system, and obtain the total time slot bandwidth, time slot configuration information, and service type configuration information of the port when the port is an optical port. ;
第二获取模块92,设置为:在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息获取所述端口中已配置业务的已用时隙带宽,并获取所述时隙总带宽与所述已用时隙带宽的差值为可用时 隙带宽;The second obtaining module 92 is configured to: when the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, obtain the used time slot of the configured service in the port according to the time slot configuration information. Bandwidth, and obtaining the difference between the total bandwidth of the time slot and the used time slot bandwidth is available Gap bandwidth
第三获取模块93,设置为:根据所述已用时隙带宽、所述时隙总带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数及可配置的业务条数。The third obtaining module 93 is configured to: obtain the number of configured services and configurable services of the port for different service types according to the used time slot bandwidth, the total time slot bandwidth, and the service type configuration information. The number of articles.
本发明实施例的时隙资源占用的统计装置,省去了人工统计的繁琐步骤,大大提高了工作效率,节省了工作时间,使用户能及时了解当前网络的时隙占用情况,为接下来的网络规划和资源规划提供了准确的数据依据。The statistical device for occupying the time slot resource in the embodiment of the invention saves the cumbersome steps of manual statistics, greatly improves the work efficiency, saves the working time, and enables the user to know the time slot occupancy of the current network in time for the next Network planning and resource planning provide an accurate data basis.
如图10所示,第一获取模块91可对应数据单元101进行数据获取,第二获取模块92可对应时隙占用单元102进行时隙占用带宽的统计,第三获取模块93可对应换算单元103和统计单元104,进行不同业务类型的业务条数的统计。As shown in FIG. 10, the first obtaining module 91 may perform data acquisition corresponding to the data unit 101, the second obtaining module 92 may perform statistics on the occupied bandwidth of the time slot corresponding to the time slot occupying unit 102, and the third obtaining module 93 may correspond to the scaling unit 103. And the statistic unit 104 performs statistics on the number of services of different service types.
本发明的实施例中,所述统计装置还可以包括:In an embodiment of the present invention, the statistical device may further include:
设置模块,设置为:在所述时隙总带宽不为零,所述端口支持单一业务类型配置时,判断所述端口是否进行过业务类型配置,若所述端口进行过业务类型配置,则将所述端口的可用时隙带宽置为零。The setting module is configured to: when the total bandwidth of the time slot is not zero, and the port supports a single service type configuration, determine whether the port has been configured with a service type, and if the port has been configured with a service type, The available time slot bandwidth of the port is set to zero.
此时,在端口支持单一业务类型配置,且端口进行过业务类型配置时,该端口的时隙带宽率占用为100%,通过将该端口的可用时隙带宽置零,可使用户及时了解到该端口的时隙占用情况,为接下来的网络规划提供数据依据。In this case, when the port supports a single service type configuration and the port is configured for service type, the time slot bandwidth rate of the port is 100%. By setting the available time slot bandwidth of the port to zero, the user can know in time. The time slot occupancy of the port provides data basis for the next network planning.
其中,所述第二获取模块92可以包括:The second obtaining module 92 may include:
第一获取子模块,设置为:在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息判断所述端口是否配置了交叉,若所述端口配置了交叉,则根据所述端口的定位信息或所述业务类型配置信息获取所述端口的已用时隙带宽;若所述端口未配置交叉,则将所述端口的已用时隙带宽置为零。The first obtaining sub-module is configured to: when the total bandwidth of the time slot is not zero, and the port does not support a single service type configuration, determine, according to the time slot configuration information, whether the port is configured with an intersection, if If the port is configured with an intersection, the used time slot bandwidth of the port is obtained according to the location information of the port or the service type configuration information; if the port is not configured with an intersection, the used time slot bandwidth of the port is set to zero.
此时,若端口配置了交叉,则可判断该端口被占用,进一步获取该端口的定位信息,从定位信息中解析出占用了哪些时隙,以获取该端口的已用时隙带宽;若端口没有定位信息,则表示该端口的占用为连续占用,根据业务类型配置信息获取已用时隙带宽,其中,对业务类型占用的首时隙依次往后 便利即可。从而准确获取了端口的已用时隙带宽,为用户的网络规划提供了有效的数据支持。At this time, if the port is configured to be crossover, it can be determined that the port is occupied, and the location information of the port is further obtained, and the time slots occupied by the location information are obtained from the location information to obtain the used time slot bandwidth of the port; The locating information indicates that the occupied port is occupied continuously, and the used time slot bandwidth is obtained according to the service type configuration information, wherein the first time slot occupied by the service type is sequentially followed. Convenient. Thereby, the used time slot bandwidth of the port is accurately obtained, which provides effective data support for the user's network planning.
所述统计装置还可以包括:The statistical device may further include:
第一判断模块,设置为:根据所述端口的交叉信息与预设节点交叉的关联关系,判断所述端口是否被业务占用;The first determining module is configured to: determine, according to the relationship between the intersection information of the port and the preset node, whether the port is occupied by the service;
第二判断模块,设置为:在所述端口的交叉信息与所述预设节点交叉具有关联关系,且所述预设节点交叉上承载了业务时,判断所述端口被业务占用;在所述端口的交叉信息与所述预设节点交叉不具有关联关系,或所述预设节点交叉上没有承载业务时,判断所述端口的占用为离散占用。The second judging module is configured to: when the cross information of the port has an association relationship with the preset node, and the preset node crosses the service, determine that the port is occupied by the service; If the intersection information of the port does not have a relationship with the preset node, or if the preset node does not carry the service on the cross, it is determined that the occupation of the port is discrete.
此时,通过判断端口占用为业务占用或离散,能使用户准确获取该端口的占用信息,以在端口为离散占用时,对端口业务进行调整,保证业务配置的合理性。从而为用户的资源规划提供了有效的数据支持,方便了用户的使用,提高了实用性和便利性。At this time, by determining whether the port occupation is occupied or discretized, the user can accurately obtain the occupation information of the port, so that when the port is discretely occupied, the port service is adjusted to ensure the rationality of the service configuration. Thereby providing effective data support for the user's resource planning, which is convenient for the user to use, and improves the practicability and convenience.
本发明的实施例中,所述第三获取模块93可以包括:In the embodiment of the present invention, the third obtaining module 93 may include:
第二获取子模块,设置为:根据所述已用时隙带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数;a second obtaining sub-module, configured to: obtain, according to the used time slot bandwidth and the service type configuration information, the number of services that the port has configured for different service types;
第三获取子模块,设置为:根据不同所述业务类型分别占用的时隙带宽及所述时隙总带宽,获取所述端口针对不同业务类型可配置的业务总条数;The third obtaining sub-module is configured to: obtain the total number of services configurable by the port for different service types according to the time slot bandwidth occupied by the different service types and the total bandwidth of the time slot;
第四获取子模块,设置为:根据所述可配置的业务总条数及所述已配置的业务条数,获取所述端口针对不同业务类型可配置的业务条数。The fourth obtaining sub-module is configured to: obtain the number of services configurable by the port for different service types according to the total number of configurable services and the number of the configured services.
此时,通过将端口的时隙带宽资源分别映射到不同阶级的业务类型上,能使用户直观准确地了解当前网络对不同业务类型的使用情况,为接下来的资源规划提供了有效的数据依据,方便了用户的使用,提高了实用性和便利性。At this time, by mapping the time slot bandwidth resources of the port to the service types of different classes, the user can intuitively and accurately understand the current network usage of different service types, and provide an effective data basis for the next resource planning. It is convenient for users to use, and improves practicality and convenience.
本发明实施例的时隙资源占用的统计装置,实现了对时隙资源的自动统计,大大提高了工作效率,节省了工作时间,使用户能及时了解当前网络的时隙占用情况,为接下来的网络规划和资源规划提供了准确的数据依据。The statistical device for occupying time slot resources in the embodiment of the present invention realizes automatic statistics on time slot resources, greatly improves work efficiency, saves working time, and enables users to know the time slot occupancy of the current network in time for Network planning and resource planning provide an accurate data basis.
需要说明的是,该时隙资源占用的统计装置是与上述时隙资源占用的统 计方法相对应的装置,其中上述方法实施例中所有实现方式均适用于该装置的实施例中,也能达到同样的技术效果。It should be noted that the statistical device occupied by the time slot resource is the same as the time slot resource occupation. The device corresponding to the method, wherein all the implementations in the above method embodiments are applicable to the embodiment of the device, can also achieve the same technical effect.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如***、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例实现了对时隙资源的自动统计,有效提高了工作效率、节省了工作时间,使用户能及时了解当前网络的时隙占用情况,为接下来的网络规划和资源规划提供了准确的数据依据。 The embodiment of the invention implements automatic statistics on time slot resources, effectively improves work efficiency, saves working time, enables users to timely understand the current network slot occupancy, and provides accurate network planning and resource planning for the next time. Based on the data.

Claims (11)

  1. 一种时隙资源占用的统计方法,包括:A statistical method for occupying time slot resources, including:
    获取网管***中光通道OCH层业务的端口,并在所述端口为光口时,获取所述端口的时隙总带宽、时隙配置信息及业务类型配置信息;Obtaining the port of the optical channel OCH layer service in the network management system, and obtaining the total time slot bandwidth, the time slot configuration information, and the service type configuration information of the port when the port is an optical port;
    在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息获取所述端口中已配置业务的已用时隙带宽,并获取所述时隙总带宽与所述已用时隙带宽的差值为可用时隙带宽;When the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, the used time slot bandwidth of the configured service in the port is obtained according to the time slot configuration information, and the total time slot is obtained. The difference between the bandwidth and the used time slot bandwidth is the available time slot bandwidth;
    根据所述已用时隙带宽、所述时隙总带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数及可配置的业务条数。Obtaining, according to the used time slot bandwidth, the total time slot of the time slot, and the service type configuration information, the number of services that are configured for the service type of the port and the number of configurable services.
  2. 根据权利要求1所述的统计方法,其中,所述获取网管***中光通道OCH层业务的端口,并在所述端口为光口时,获取所述端口的时隙总带宽、时隙配置信息及业务类型配置信息之后,还包括:The statistic method according to claim 1, wherein the obtaining a port of the optical channel OCH layer service in the network management system, and acquiring the total time slot bandwidth and time slot configuration information of the port when the port is an optical port And after the service type configuration information, it also includes:
    在所述时隙总带宽不为零,所述端口支持单一业务类型配置时,判断所述端口是否进行过业务类型配置,若所述端口进行过业务类型配置,则将所述端口的可用时隙带宽置为零。If the total bandwidth of the time slot is not zero, and the port supports a single service type configuration, it is determined whether the port has been configured with a service type, and if the port has been configured with a service type, the available time of the port is The gap bandwidth is set to zero.
  3. 根据权利要求1所述的统计方法,其中,所述在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息获取所述端口中已配置业务的已用时隙带宽,包括:The statistical method according to claim 1, wherein the total bandwidth in the time slot is not zero, and when the port does not support a single service type configuration, the port is configured according to the time slot configuration information. The used time slot bandwidth of the service, including:
    在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息判断所述端口是否配置了交叉,若所述端口配置了交叉,则根据所述端口的定位信息或所述业务类型配置信息获取所述端口的已用时隙带宽;若所述端口未配置交叉,则将所述端口的已用时隙带宽置为零。If the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, determine whether the port is configured with an intersection according to the time slot configuration information, and if the port is configured with an intersection, according to the The location information of the port or the service type configuration information acquires the used time slot bandwidth of the port; if the port is not configured with an intersection, the used time slot bandwidth of the port is set to zero.
  4. 根据权利要求1所述的统计方法,其中,所述根据所述已用时隙带宽、所述时隙总带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数及可配置的业务条数,包括:The statistical method according to claim 1, wherein the obtaining, according to the used time slot bandwidth, the total time slot of the time slot, and the service type configuration information, the number of services that the port has configured for different service types. And the number of configurable services, including:
    根据所述已用时隙带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数;Acquiring, according to the used time slot bandwidth and the service type configuration information, the number of services that the port has configured for different service types;
    根据不同所述业务类型分别占用的时隙带宽及所述时隙总带宽,获取所 述端口针对不同业务类型可配置的业务总条数;Obtaining a time slot bandwidth occupied by different service types and a total bandwidth of the time slot The total number of services that can be configured for different service types on the port;
    根据所述可配置的业务总条数及所述已配置的业务条数,获取所述端口针对不同业务类型可配置的业务条数。The number of the configurable services of the port for different service types is obtained according to the total number of the configurable services and the number of the configured services.
  5. 根据权利要求3所述的统计方法,其中,所述在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息判断所述端口是否配置了交叉,若所述端口配置了交叉,则根据所述端口的定位信息或所述业务类型配置信息获取所述端口的已用时隙带宽之后,还包括:The statistical method according to claim 3, wherein, when the total bandwidth of the time slot is not zero, and the port does not support a single service type configuration, determining whether the port is configured according to the time slot configuration information After the port is configured to be cross-connected, after the used time slot bandwidth of the port is obtained according to the location information of the port or the service type configuration information, the method further includes:
    根据所述端口的交叉信息与预设节点交叉的关联关系,判断所述端口是否被业务占用;Determining whether the port is occupied by a service according to an association relationship between the intersection information of the port and a preset node;
    在所述端口的交叉信息与所述预设节点交叉具有关联关系,且所述预设节点交叉上承载了业务时,判断所述端口被业务占用;在所述端口的交叉信息与所述预设节点交叉不具有关联关系,或所述预设节点交叉上没有承载业务时,判断所述端口的占用为离散占用。When the intersection information of the port is associated with the preset node, and the preset node crosses the service, it is determined that the port is occupied by the service; the cross information of the port and the pre- If the node crossover does not have an association relationship, or if the preset node does not carry a service on the cross, it is determined that the occupation of the port is discretely occupied.
  6. 一种时隙资源占用的统计装置,包括:A statistical device for occupying time slot resources, comprising:
    第一获取模块,设置为:获取网管***中光通道OCH层业务的端口,并在所述端口为光口时,获取所述端口的时隙总带宽、时隙配置信息及业务类型配置信息;The first obtaining module is configured to: obtain a port of the optical channel OCH layer service in the network management system, and obtain the total time slot bandwidth, the time slot configuration information, and the service type configuration information of the port when the port is an optical port;
    第二获取模块,设置为:在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息获取所述端口中已配置业务的已用时隙带宽,并获取所述时隙总带宽与所述已用时隙带宽的差值为可用时隙带宽;The second obtaining module is configured to: when the total bandwidth of the time slot is not zero, and the port does not support the single service type configuration, obtain the used time slot bandwidth of the configured service in the port according to the time slot configuration information. And obtaining a difference between the total bandwidth of the time slot and the used time slot bandwidth as an available time slot bandwidth;
    第三获取模块,设置为:根据所述已用时隙带宽、所述时隙总带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数及可配置的业务条数。The third obtaining module is configured to: obtain the number of configured services and the configurable service strips of the port for different service types according to the used time slot bandwidth, the total time slot bandwidth, and the service type configuration information. number.
  7. 根据权利要求6所述的统计装置,所述统计装置还包括:The statistical device according to claim 6, wherein the statistical device further comprises:
    设置模块,设置为:在所述时隙总带宽不为零,所述端口支持单一业务类型配置时,判断所述端口是否进行过业务类型配置,若所述端口进行过业务类型配置,则将所述端口的可用时隙带宽置为零。 The setting module is configured to: when the total bandwidth of the time slot is not zero, and the port supports a single service type configuration, determine whether the port has been configured with a service type, and if the port has been configured with a service type, The available time slot bandwidth of the port is set to zero.
  8. 根据权利要求6所述的统计装置,其中,所述第二获取模块包括:The statistical device according to claim 6, wherein the second obtaining module comprises:
    第一获取子模块,设置为:在所述时隙总带宽不为零,所述端口不支持单一业务类型配置时,根据所述时隙配置信息判断所述端口是否配置了交叉,若所述端口配置了交叉,则根据所述端口的定位信息或所述业务类型配置信息获取所述端口的已用时隙带宽;若所述端口未配置交叉,则将所述端口的已用时隙带宽置为零。The first obtaining sub-module is configured to: when the total bandwidth of the time slot is not zero, and the port does not support a single service type configuration, determine, according to the time slot configuration information, whether the port is configured with an intersection, if If the port is configured with an intersection, the used time slot bandwidth of the port is obtained according to the location information of the port or the service type configuration information; if the port is not configured with an intersection, the used time slot bandwidth of the port is set to zero.
  9. 根据权利要求6所述的统计装置,其中,所述第三获取模块包括:The statistical device according to claim 6, wherein the third obtaining module comprises:
    第二获取子模块,设置为:根据所述已用时隙带宽及所述业务类型配置信息,获取所述端口针对不同业务类型已配置的业务条数;a second obtaining sub-module, configured to: obtain, according to the used time slot bandwidth and the service type configuration information, the number of services that the port has configured for different service types;
    第三获取子模块,设置为:根据不同所述业务类型分别占用的时隙带宽及所述时隙总带宽,获取所述端口针对不同业务类型可配置的业务总条数;The third obtaining sub-module is configured to: obtain the total number of services configurable by the port for different service types according to the time slot bandwidth occupied by the different service types and the total bandwidth of the time slot;
    第四获取子模块,设置为:根据所述可配置的业务总条数及所述已配置的业务条数,获取所述端口针对不同业务类型可配置的业务条数。The fourth obtaining sub-module is configured to: obtain the number of services configurable by the port for different service types according to the total number of configurable services and the number of the configured services.
  10. 根据权利要求8所述的统计装置,所述统计装置还包括:The statistical device according to claim 8, wherein the statistical device further comprises:
    第一判断模块,设置为:根据所述端口的交叉信息与预设节点交叉的关联关系,判断所述端口是否被业务占用;The first determining module is configured to: determine, according to the relationship between the intersection information of the port and the preset node, whether the port is occupied by the service;
    第二判断模块,设置为:在所述端口的交叉信息与所述预设节点交叉具有关联关系,且所述预设节点交叉上承载了业务时,判断所述端口被业务占用;在所述端口的交叉信息与所述预设节点交叉不具有关联关系,或所述预设节点交叉上没有承载业务时,判断所述端口的占用为离散占用。The second judging module is configured to: when the cross information of the port has an association relationship with the preset node, and the preset node crosses the service, determine that the port is occupied by the service; If the intersection information of the port does not have a relationship with the preset node, or if the preset node does not carry the service on the cross, it is determined that the occupation of the port is discrete.
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-5.
PCT/CN2015/096553 2014-12-10 2015-12-07 Counting method and device for time slot resource occupation WO2016091134A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410756467.9 2014-12-10
CN201410756467.9A CN105743672A (en) 2014-12-10 2014-12-10 Statistics method and device for time slot resource occupation

Publications (1)

Publication Number Publication Date
WO2016091134A1 true WO2016091134A1 (en) 2016-06-16

Family

ID=56106706

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096553 WO2016091134A1 (en) 2014-12-10 2015-12-07 Counting method and device for time slot resource occupation

Country Status (2)

Country Link
CN (1) CN105743672A (en)
WO (1) WO2016091134A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108462533B (en) * 2017-02-17 2022-08-09 中兴通讯股份有限公司 Method and device for detecting abnormal time slot
CN108449659B (en) * 2018-03-21 2020-12-15 烽火通信科技股份有限公司 Method for establishing end-to-end OTN service to ensure time slot consistency

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101516111A (en) * 2008-02-21 2009-08-26 中兴通讯股份有限公司 Resource distribution method and system
US20100260166A1 (en) * 2007-12-28 2010-10-14 Fujitsu Limited Communication Node, Communication System And Ad Hoc Communication Method In Accordance With Time Division Multiple Access Scheme
CN102014313A (en) * 2009-09-08 2011-04-13 华为技术有限公司 Method and device for realizing link information publishing by nodes

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179351B (en) * 2006-11-07 2012-05-09 中兴通讯股份有限公司 Dynamic allocation method for space/time division cross time slot resource of synchronous digital hierarchy equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100260166A1 (en) * 2007-12-28 2010-10-14 Fujitsu Limited Communication Node, Communication System And Ad Hoc Communication Method In Accordance With Time Division Multiple Access Scheme
CN101516111A (en) * 2008-02-21 2009-08-26 中兴通讯股份有限公司 Resource distribution method and system
CN102014313A (en) * 2009-09-08 2011-04-13 华为技术有限公司 Method and device for realizing link information publishing by nodes

Also Published As

Publication number Publication date
CN105743672A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
CN109729588A (en) Service data transmission method and device
WO2016091134A1 (en) Counting method and device for time slot resource occupation
CN104717251B (en) OpenStack cloud computing management platform Cell node scheduling method and systems
CN105072035A (en) Method and system for generating atomized route of optical transport network
WO2016192420A1 (en) Method and device for determining base station load
ES2651722T3 (en) Network planning method and device
JP5900178B2 (en) System and method for calculating utilization entropy
US7899072B2 (en) Method and system for network bandwidth allocation
CN105323053B (en) The method and device of business clock transparent transmission
CN106776614A (en) The display methods and device of sharing platform
CN108108289A (en) A kind of cluster resource statistical method, system, device and readable storage system
US20130166260A1 (en) Distributed Internet Protocol Network Analysis Model with Real Time Response Performance
US20110182198A1 (en) System and method for analyzing network power consumption
Bowden et al. Planarity of data networks
US8352537B2 (en) Object modeling scheme for next generation network wavelength division multiplexing
US10452669B2 (en) Simplifying quantitative analysis of time-bounded resource consumption
CN105610655A (en) Router traffic monitoring and analysis method
US9979613B2 (en) Analyzing network traffic in a computer network
CN112883239A (en) Resource allocation method and device, computer equipment and storage medium
CN106330476B (en) Method for obtaining guaranteed bandwidth of user side port and network monitoring system
KR100715721B1 (en) Traffic Conrtol Method of Network
CN107438013B (en) Port optimization method, device and system
EP3197103A1 (en) Svlan allocation method and device, and ethernet service establishment method and system
CN108462638B (en) Method and system for determining service route
CN104639350A (en) Method and device for performance object aggregation path interface display in comprehensive network management

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

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

Country of ref document: EP

Kind code of ref document: A1