Disclosure of Invention
In view of the above, embodiments of the present invention provide a method and an apparatus for detecting quality of a fiber channel, which can be used to improve transmission quality of a PON for a power distribution telecommunication service.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a method for detecting the quality of an optical fiber channel, which comprises the following steps:
measuring each network layer index of the optical fiber channel when transmitting the distribution and utilization service of each service type;
calculating the service layer indexes of the optical fiber channel when transmitting the distribution and utilization services of each service type according to all network layer indexes and preset service detection parameters;
and calculating the performance index of the optical fiber channel according to all service layer indexes and preset service priority parameters.
In the above embodiment, the network layer indicator includes: a network performance indicator and/or a network traffic indicator; wherein the content of the first and second substances,
the network performance indicators include: at least one of time delay duration, time delay change value, packet loss rate and bit error rate;
the network traffic indicators include: at least one of a peak rate, an average rate, and a maximum burst size.
In the above embodiment, the calculating the service layer index of the optical fiber channel when transmitting the electricity distribution service of each service type includes:
calculating each service data layer index of the optical fiber channel when transmitting the power distribution and utilization service of each service type according to all network layer indexes and preset detection parameters of the service data layer;
and calculating the service quality evaluation layer indexes of the optical fiber channel when the optical fiber channel transmits the distribution and utilization services of each service type according to all the first service layer indexes and the preset detection parameters of the service quality evaluation layer.
In the above embodiment, the calculating the indexes of each service data layer when the optical fiber channel transmits the power distribution service of each service type includes:
and calculating each service data layer index according to all network layer indexes and preset weighted values corresponding to each network layer index.
In the above embodiment, the calculating the service quality evaluation layer index of the optical fiber channel when transmitting the power distribution service of each service type includes:
and calculating the service quality evaluation layer indexes according to all the service data layer indexes and the preset weight values corresponding to all the service data layer indexes.
In the above embodiment, the measuring each network layer index of the optical fiber channel when transmitting the distribution service of each service type includes:
measuring the performance indexes of each first optical fiber channel from the data center to the optical line terminal;
and measuring the performance indexes of the second optical fiber channels from the optical line terminal to the optical network unit.
In the above embodiment, the method further comprises:
determining the priority of each first optical fiber channel and each second optical fiber channel according to the performance indexes of each first optical fiber channel and each second optical fiber channel;
and matching each first optical fiber channel with different second optical fiber channels according to a preset period according to the priority of each first optical fiber channel and each second optical fiber channel.
The embodiment of the invention also provides a device for detecting the quality of the optical fiber channel, which comprises:
the measuring unit is used for measuring each network layer index when the optical fiber channel transmits the distribution and utilization service of each service type and sending each network layer index to the calculating unit;
the calculation unit is used for calculating the service layer indexes of the optical fiber channel when the distribution and utilization service of each service type is transmitted according to all network layer indexes and preset service detection parameters; and the method is also used for calculating the performance index of the optical fiber channel according to all service layer indexes and preset service priority parameters.
In the above embodiment, the network layer indicator includes: a network performance indicator and/or a network traffic indicator; wherein the content of the first and second substances,
the network performance indicators include: at least one of time delay duration, time delay change value, packet loss rate and bit error rate;
the network traffic indicators include: at least one of a peak rate, an average rate, and a maximum burst size.
In the above embodiment, the calculation unit includes:
the first calculating subunit is used for calculating each service data layer index of the optical fiber channel when transmitting the distribution service of each service type according to all network layer indexes and the preset detection parameters of the service data layer, and sending each service data layer index to the second calculating subunit;
and the second calculating subunit is configured to calculate, according to all the first service layer indexes and preset detection parameters of a service quality evaluation layer, service quality evaluation layer indexes of the optical fiber channel when the optical fiber channel transmits the distribution service of each service type.
In the foregoing embodiment, the first calculating subunit is specifically configured to calculate each service data layer index according to all network layer indexes and a preset weight value corresponding to each network layer index.
In the foregoing embodiment, the second calculating subunit is specifically configured to calculate the service quality evaluation layer index according to all service data layer indexes and the preset weight value corresponding to each service data layer index.
In the foregoing embodiment, the measurement unit is specifically configured to measure performance indexes of each first optical fiber channel from the data center to the optical line terminal; and the method is also used for measuring the performance indexes of each second optical fiber channel from the optical line terminal to the optical network unit.
In the above embodiment, the apparatus further includes: a determining unit and a matching unit; wherein the content of the first and second substances,
the calculation unit is configured to send the performance index of each first optical fiber channel and the performance index of each second optical fiber channel to the determination unit;
the determining unit is configured to determine priorities of each first optical fiber channel and each second optical fiber channel according to the performance indexes of each first optical fiber channel and each second optical fiber channel, and notify the matching unit of the priorities of each first optical fiber channel and each second optical fiber channel;
and the matching unit is used for matching each first optical fiber channel with different second optical fiber channels according to a preset period according to the priority of each first optical fiber channel and each second optical fiber channel.
Therefore, in the technical scheme of the embodiment of the invention, each network layer index of the optical fiber channel is measured when the optical fiber channel transmits the power distribution and utilization service of each service type, then the service layer index of the optical fiber channel is calculated when the optical fiber channel transmits the power distribution and utilization service of each service type according to all the network layer indexes and the predetermined service detection parameters, and then the performance index of the optical fiber channel is calculated according to all the service layer indexes and the predetermined service priority parameter. That is to say, in the technical solution provided by the present invention, the service layer index of the optical fiber channel can be measured, and the detection result can reflect the comprehensive quality of the optical fiber channel when transmitting the power distribution service with different priorities. Unlike the prior art, the embodiment of the invention only measures the network layer index of the optical fiber channel, and the measurement result can only reflect the transmission quality of the optical fiber channel transmitting a single type of power distribution and utilization service, but cannot reflect the comprehensive quality of the optical fiber channel transmitting power distribution and utilization services with different priorities. Obviously, compared with the prior art, the method and the device for detecting the quality of the optical fiber channel provided by the embodiment of the invention can be used for improving the transmission quality of the PON to the power distribution and utilization communication service; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
Detailed Description
In various embodiments of the present invention, fig. 1 is a schematic flow chart of an implementation method for detecting quality of a fiber channel in an embodiment of the present invention, and as shown in fig. 1, the method for detecting quality of a fiber channel may include the following steps:
step 101, measuring each network layer index when the optical fiber channel transmits the distribution electricity service of each service type.
In the existing power distribution and utilization services, the power distribution communication services can be divided into real-time RT services and non-real-time NRT services according to different requirements on time delay. In addition, because the types of devices in the coverage area of the power distribution and consumption network are complicated, and the amount of traffic that needs to be simultaneously transmitted at a certain point in time is huge, the power distribution and consumption service can be prioritized according to the delay requirement, as shown in table 1 below, so that the RT service has a higher priority than the NRT service.
TABLE 1
Fig. 2 is a schematic structural diagram of a component of an optical fiber channel quality evaluation system according to an embodiment of the present invention, and as shown in fig. 2, the optical fiber channel quality evaluation system is divided into three layers, i.e., a network layer, a service data layer, and a service quality evaluation layer from bottom to top. The network layer can provide network performance indexes and/or network traffic indexes of the fiber channel; the service data layer is responsible for calculating a network performance state value and/or a network flow state value; the service quality evaluation layer is responsible for calculating a network performance state evaluation value and/or a network traffic state evaluation value, and the detection result can reflect the comprehensive quality of the optical fiber channel when the optical fiber channel transmits the power distribution and utilization services with different priorities.
In the specific embodiment of the present invention, each network layer index of the optical fiber channel when transmitting the power distribution and utilization service of each service type may be measured, then the service layer index of the optical fiber channel when transmitting the power distribution and utilization service of each service type may be calculated according to all network layer indexes and the predetermined service detection parameter, and then the performance index of the optical fiber channel may be calculated according to all service layer indexes and the predetermined service priority parameter. The network layer index may include: a network performance indicator and/or a network traffic indicator; the network performance indicators may include: the network performance indicators include: at least one of time delay duration, time delay change value, packet loss rate and bit error rate; the network traffic indicators include: at least one of a peak rate, an average rate, and a maximum burst size.
102, calculating service layer indexes of the optical fiber channel when transmitting the distribution and utilization service of each service type according to all network layer indexes and preset service detection parameters.
In the specific embodiment of the present invention, after obtaining each network layer index of the optical fiber channel when transmitting the power distribution service of each service type by measurement, the service layer index of the optical fiber channel when transmitting the power distribution service of each service type can be calculated according to all network layer indexes and preset service detection parameters.
Fig. 3 is a schematic flow chart of an implementation method for calculating a service layer index in the embodiment of the present invention, and as shown in fig. 3, calculating a service layer index when a fiber channel transmits an electricity distribution service of each service type may include the following steps:
102a, calculating each service data layer index of the optical fiber channel when transmitting the distribution service of each service type according to all network layer indexes and preset detection parameters of the service data layer.
In a specific embodiment of the present invention, the detection parameter of the service data layer may be a weight value corresponding to each network layer index; the service data layer index may be: a network performance status value and/or a network traffic status value. For example, assume that the delay duration, the delay variation value, the packet loss rate and the bit error rate are respectively: p is a radical of
d、p
j、p
lAnd p
eThe preset weighted values corresponding to the time delay duration, the time delay change value, the packet loss rate and the bit error rate are respectively as follows: d%, j%, l%, and e%, wherein d% + j% + l% + e% is 1. Then, the network performance status value can be calculated by the following formula: p is a radical of
1=p
d·d%+p
j·j%+p
l·l%+p
eE%; in addition, in the specific embodiment of the present invention, the critical point of the network performance status value may also be set to be p'; the time delay is long,The critical points of the delay variation value, the packet loss rate and the bit error rate are respectively as follows: p is a radical of
d'、p
j'、p
l' and p
e'; wherein p is
d'=p
j'=p
l'=p
eAnd the critical points of the state values of the network performance parameters are equal and are determined by p ', and the value of p' can be changed according to the actual situation. The default value of p' may be set to 0.7 based on analysis of utility service characteristics and deep discussion with service providers and equipment providers.
In addition, in the specific embodiment of the present invention, the network traffic state value may also be calculated according to the peak rate, the average rate, and the maximum burst size, and preset weight values corresponding to the peak rate, the average rate, and the maximum burst size.
And 102b, calculating service quality evaluation layer indexes of the optical fiber channel when the distribution and utilization service of each service type is transmitted according to all service data layer indexes and preset detection parameters of a service quality evaluation layer.
In a specific embodiment of the present invention, the detection parameter of the service quality evaluation layer may be a weight value corresponding to each service data layer index; the service quality evaluation layer can be: a network performance state evaluation value and/or a network traffic state evaluation value. For example, assume the network performance state values are: p is a radical of
rThe preset weight value corresponding to the network performance state value is as follows: r percent. Then, the network performance state evaluation value may be calculated by the following formula: p is a radical of
2=p
r·r%。
And 103, calculating the performance index of the optical fiber channel according to all the service layer indexes and preset service priority parameters.
In the specific embodiment of the present invention, the service priority parameter of each distribution service may be preset, and after the service layer index of the optical fiber channel when the distribution service of each service type is transmitted is obtained through calculation, the performance index of the optical fiber channel may be calculated according to all the service layer indexes and the preset service priority parameter. For example, suppose that three service types of distribution service are transmitted by fiber channel, and are respectively distributedThe service layer indexes of the power utilization service 1, the power distribution and utilization service 2 and the power distribution and utilization service 3 are respectively as follows: p is a radical of
x、p
yAnd p
z(ii) a The preset service priority parameters corresponding to the power distribution and utilization service 1, the power distribution and utilization service 2 and the power distribution and utilization service 3 are as follows: x%, Y% and Z%. Then, the performance index of the optical fiber channel can be calculated by the following formula: p is a radical of
3=p
x·X%+p
y·Y%+p
z·Z%。
According to the analysis, the service layer indexes of the optical fiber channel can be measured through the steps 101 to 103, and the detection result can reflect the comprehensive quality of the optical fiber channel when the optical fiber channel transmits the power distribution service with different priorities.
Fig. 4 is a schematic structural diagram of a distribution network according to an embodiment of the present invention, and as shown in fig. 2, the fiber channel may include: therefore, in the specific embodiment of the present invention, the performance index of each first fiber channel may be measured, and the performance index of each second fiber channel may also be measured.
Specifically, in a specific embodiment of the present invention, a first active probe may be deployed in each first fiber channel from the data center to the OLT; second active probes can be deployed in each second optical fiber channel from the OLT to the ONU, so that the performance index of each first optical fiber channel can be measured by each first active probe according to a preset period; and the performance index of each second optical fiber channel can be measured according to a preset period by each second active probe.
Further, in the embodiment of the present invention, after the performance indexes of each first optical fiber channel and each second optical fiber channel are obtained through measurement, each first optical fiber channel may be matched with a different second optical fiber channel.
Fig. 5 is a schematic flow chart of an implementation method for matching a first optical fiber channel and a second optical fiber channel in the embodiment of the present invention, and as shown in fig. 5, the method for matching the first optical fiber channel and the second optical fiber channel may include the following steps:
step 501, determining the priority of each first optical fiber channel and each second optical fiber channel according to the performance indexes of each first optical fiber channel and each second optical fiber channel.
In an embodiment of the present invention, after the performance indicators of each of the first fiber channels and each of the second fiber channels are measured, the priority of each of the first fiber channels and each of the second fiber channels is determined. Specifically, in the embodiment of the present invention, the optical fiber channel with higher performance index may be set as a higher priority; the fibre channel with the lower performance metric may be set to a lower priority. For example, assume that the first fibre channel may comprise: fibre channel 1, fibre channel 2, …, fibre channel m; the second fiber channel may include: fibre channel a, fibre channel B, …, fibre channel M. The priority of each first fibre channel is shown in table 2 below, in which fibre channel 1 has a priority of 1; the priority of fibre channel 2 is 2; …, respectively; fibre channel m has a priority m.
Priority level
|
First optical fiber channel
|
1
|
Fibre channel 1
|
2
|
Fibre channel 2
|
…
|
…
|
m
|
Fibre channel m |
TABLE 2
For example, the priority of each second fibre channel is as shown in table 3 below, the priority of fibre channel a being 1; the priority of fibre channel B is 2; …, respectively; fibre channel M has a priority M.
Priority level
|
Second optical fiber channel
|
1
|
Fibre channel A
|
2
|
Fibre channel B
|
…
|
…
|
M
|
Fibre channel M |
TABLE 3
And 502, matching each first optical fiber channel with different second optical fiber channels according to a preset period according to the priority of each first optical fiber channel and each second optical fiber channel.
In an embodiment of the present invention, each first optical fiber channel may be matched with a different second optical fiber channel according to a preset period according to the priority of each first optical fiber channel and each second optical fiber channel. For example, fibre channel 1 may be matched to fibre channel a in the current preset period; the optical fiber channel 2 is matched with the optical fiber channel B; …, respectively; the optical fiber channel M is matched with the optical fiber channel M; in the next preset period, matching the optical fiber channel 1 with the optical fiber channel B; the optical fiber channel 2 is matched with the optical fiber channel C; …, respectively; the optical fiber channel m is matched with the optical fiber channel A; and so on.
The method for detecting the quality of the optical fiber channel provided by the embodiment of the invention can measure the service layer index of the optical fiber channel, and the detection result can reflect the comprehensive quality of the optical fiber channel when the optical fiber channel transmits the power distribution and utilization services with different priorities. Unlike the prior art, the embodiment of the invention only measures the network layer index of the optical fiber channel, and the measurement result can only reflect the transmission quality of the optical fiber channel transmitting a single type of power distribution and utilization service, but cannot reflect the comprehensive quality of the optical fiber channel transmitting power distribution and utilization services with different priorities. Obviously, compared with the prior art, the method for detecting the quality of the optical fiber channel provided by the embodiment of the invention can be used for improving the transmission quality of the PON to the power distribution and utilization communication service; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
Fig. 6 is a schematic structural diagram of a component of an apparatus for detecting quality of an optical fiber channel according to an embodiment of the present invention, and as shown in fig. 6, the apparatus includes: a measurement unit 601 and a calculation unit 602; wherein the content of the first and second substances,
the measuring unit 601 is configured to measure each network layer index when the optical fiber channel transmits the power distribution service of each service type, and send each network layer index to the calculating unit 602;
the calculating unit 602 is configured to calculate, according to all network layer indexes and preset service detection parameters, a service layer index of the optical fiber channel when transmitting the electricity distribution service of each service type; and the method is also used for calculating the performance index of the optical fiber channel according to all service layer indexes and preset service priority parameters.
Further, the network layer metrics include: a network performance indicator and/or a network traffic indicator; wherein the content of the first and second substances,
the network performance indicators include: at least one of time delay duration, time delay change value, packet loss rate and bit error rate;
the network traffic indicators include: at least one of a peak rate, an average rate, and a maximum burst size.
Further, the calculating unit 602 includes:
a first calculating subunit 6021, configured to calculate, according to all network layer indexes and preset detection parameters of a service data layer, each service data layer index of the optical fiber channel when transmitting the electricity distribution service of each service type, and send each service data layer index to a second calculating subunit 6022;
the second calculating subunit 6022 is configured to calculate, according to all the first service layer indexes and the preset detection parameters of the service quality evaluation layer, the service quality evaluation layer index of the optical fiber channel when transmitting the distribution service of each service type.
Further, the first calculating subunit 6021 is specifically configured to calculate each service data layer index according to all network layer indexes and preset weight values corresponding to each network layer index.
Further, the second calculating subunit 6022 is specifically configured to calculate the service quality evaluation layer index according to all the service data layer indexes and the preset weight values corresponding to each service data layer index.
Further, the measurement unit 601 is specifically configured to measure performance indexes of each first optical fiber channel from the data center to the optical line terminal; and the method is also used for measuring the performance indexes of each second optical fiber channel from the optical line terminal to the optical network unit.
Further, the apparatus further comprises: a determination unit 603 and a matching unit 604; wherein the content of the first and second substances,
the calculating unit 602 is configured to send the performance indicators of each first optical fiber channel and each second optical fiber channel to the determining unit 603;
the determining unit 603 is configured to determine priorities of each first fiber channel and each second fiber channel according to the performance indicators of each first fiber channel and each second fiber channel, and notify the matching unit 604 of the priorities of each first fiber channel and each second fiber channel;
the matching unit 604 is configured to match each first optical fiber channel with a different second optical fiber channel according to a preset period according to the priority of each first optical fiber channel and each second optical fiber channel.
In practical applications, the measuring unit 601, the calculating unit 602, the determining unit 603, and the matching unit 604 can be implemented by a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like located in the detecting device.
The device for detecting the quality of the optical fiber channel provided by the embodiment of the invention can measure the service layer index of the optical fiber channel, and the detection result can reflect the comprehensive quality of the optical fiber channel when the optical fiber channel transmits the power distribution and utilization services with different priorities. Unlike the prior art, the embodiment of the invention only measures the network layer index of the optical fiber channel, and the measurement result can only reflect the transmission quality of the optical fiber channel transmitting a single type of power distribution and utilization service, but cannot reflect the comprehensive quality of the optical fiber channel transmitting power distribution and utilization services with different priorities. Obviously, compared with the prior art, the device for detecting the quality of the optical fiber channel provided by the embodiment of the invention can be used for improving the transmission quality of the PON to the power distribution and utilization communication service; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.