Disclosure of Invention
In order to solve the technical problems, the network management method of the POE switch based on the Ethernet cable data transmission is provided, and the technical scheme solves the problems in the background technology.
In order to achieve the above purpose, the invention adopts the following technical scheme:
a POE switch network management method based on Ethernet cable data transmission comprises the following steps:
classifying at least one port of the POE switch based on the upper power supply limit of the POE switch to obtain a redundant port and a non-redundant port, wherein the redundant port is a standby port for data transmission;
when the transmission is normal, using a uniform load mode to distribute data flow to at least one non-redundant port of the POE switch;
Performing fault detection on at least one non-redundant port of the POE switch, wherein the non-redundant port with the fault is used as an abnormal port, and the non-redundant port without the fault is used as a normal port;
Forming a repair scheme for the abnormal port based on the big data, predicting the repair time of the repair scheme, and uniformly dividing the repair time of the repair scheme to obtain at least one time node;
based on the upper power supply limit of the POE switch, selecting at least one target redundant port from the redundant ports, and acquiring the total flow upper limit of the at least one target redundant port;
Judging at a time node, when the total data quantity of the abnormal ports does not exceed the total flow upper limit, using the target redundant ports to transmit the data of the abnormal ports, otherwise, subtracting the total flow upper limit from the total data quantity of the abnormal ports to obtain the characteristic flow;
Acquiring a normal port with redundant space for transmitting traffic at a time node as a target normal port;
Establishing a port flow analysis model, analyzing the flow type of the characteristic flow at the time node by using the port flow analysis model to obtain a first analysis result, and analyzing the flow type of the target normal port at the time node to obtain a second analysis result;
forming at least one preparation transmission scheme, and calculating a flow influence coefficient of the preparation transmission scheme based on the first analysis result and the second analysis result;
selecting a preparation transmission scheme with the minimum flow influence coefficient as a target transmission scheme;
and carrying out data transmission of the abnormal port by using the target redundant port, and distributing the characteristic flow to the target normal port according to a target transmission scheme.
Preferably, the classifying at least one port of the POE switch to obtain a redundant port and a non-redundant port includes the following steps:
Based on big data, acquiring the upper limit of power consumption of a single port, and acquiring the proportion of power consumption of conventional operation of the POE switch to the upper limit of power supply as conventional proportion;
Multiplying the conventional proportion by the upper power supply limit of the POE switch to obtain conventional power supply quantity;
dividing the conventional power supply amount by the upper limit of power consumption of a single port to obtain the allowable number of ports;
And randomly selecting ports with the number equal to the allowed number of the ports from at least one port, taking the ports as non-redundant ports, and taking the rest ports as redundant ports.
Preferably, the repairing scheme is formed for the abnormal port, and the pre-estimating the repairing time of the repairing scheme includes the following steps:
Extracting features of faults of the abnormal ports to obtain at least one fault feature;
Based on the big data, acquiring at least one maintenance scheme of the repaired fault containing the fault characteristic, and acquiring an intersection of the at least one maintenance scheme to obtain a local scheme of the fault characteristic;
the local scheme of at least one fault characteristic is obtained in a union mode, and a repairing scheme is obtained;
obtaining the time consumption of the maintenance scheme, dividing the number of steps of the local scheme by the number of steps of the maintenance scheme to obtain the time duty ratio;
calculating to obtain the maintenance time of the local scheme by using a time comprehensive formula, and accumulating the maintenance time of the local scheme to obtain the maintenance time of the repair scheme;
The time synthesis formula is as follows:,
wherein B is maintenance time of the local scheme, n is total number of at least one maintenance scheme, i is subscript,For the time consuming of the ith maintenance scenario,Is the time duty cycle of the local schedule in the ith maintenance schedule.
Preferably, the selecting at least one target redundant port from the redundant ports based on the upper power supply limit of the POE switch includes the following steps:
Obtaining the lowest power consumption of a single abnormal port, and subtracting the lowest power consumption of the single abnormal port from the upper power consumption limit of the single port to obtain adjustable electric quantity;
Calculating the number of the target redundant ports by using a number formula to serve as the characteristic number;
Randomly selecting redundant ports with the number equal to the characteristic number as target redundant ports;
the number formula is as follows:,
Wherein A is the characteristic number, a is the adjustable electric quantity, b is the total number of abnormal ports, c is the upper power supply limit of the POE switch, e is the conventional power supply quantity, and d is the upper power consumption limit of a single port.
Preferably, the establishing a port flow analysis model includes the following steps:
acquiring flow to be analyzed, acquiring damage recovery proportion of data in the flow to be analyzed, summarizing the data with the damage recovery proportion smaller than a preset value to obtain key part data, wherein the damage recovery proportion is the proportion of the recovery part after the damage of the data to the original data;
Uniformly dividing the key part data to obtain at least one part data;
Classifying the partial data based on the attribute of the partial data, and merging the partial data with the same classification into data features;
Acquiring at least one data application scene of the data features, acquiring the data value of the data features in the data application scene, and acquiring the allowable delay of the data features in the data application scene;
averaging at least one data value of the data feature to obtain a data average value, and averaging at least one allowable delay of the data feature to obtain an average allowable delay;
Calculating to obtain a flow coefficient of the flow to be analyzed by using a flow analysis formula;
the flow analysis formula is as follows:,
wherein C is the flow coefficient of the flow to be analyzed, j is the subscript, m is the total number of data features,For the data average value of the jth data feature,Delay is allowed for the average of the jth data feature.
Preferably, the analyzing the flow type of the characteristic flow at the time node to obtain a first analysis result includes the following steps:
uniformly dividing the characteristic flow at the time node into at least one characteristic local block;
the characteristic local block is used as a flow input port flow analysis model to be analyzed, and the output flow coefficient is used as a characteristic coefficient;
and pairing and summarizing the characteristic local blocks and the characteristic coefficients to obtain a first analysis result.
Preferably, the analyzing the traffic type of the target normal port at the time node to obtain the second analysis result includes the following steps:
Uniformly dividing flow data transmitted by a target normal port at a time node into at least one conventional local block;
Taking the conventional local block as a flow input port flow analysis model to be analyzed, and taking the output flow coefficient as a conventional coefficient;
and pairing and summarizing the conventional local blocks and the conventional coefficients to obtain a second analysis result.
Preferably, the forming at least one preliminary transmission scheme includes the steps of:
Randomly distributing at least one characteristic local block to a target normal port under a flow limiting condition, wherein the flow limiting condition is that the total flow transmitted by the target normal port of the distributed characteristic local block is smaller than the transmission upper limit of the target normal port;
Each allocation mode of at least one characteristic local block forms a preparation transmission scheme, and the transmission sequence of data in the preparation transmission scheme is that in a target normal port, when the characteristic coefficient of the characteristic local block is larger than the conventional coefficient of the conventional local block, the characteristic local block is transmitted before the conventional local block, otherwise, the characteristic local block is transmitted after the conventional local block, and the conventional local block is transmitted according to the original sequence.
Preferably, the calculating the flow influence coefficient of the preliminary transmission scheme includes the steps of:
In a preparation transmission scheme, acquiring the total quantity of characteristic local blocks transmitted before a single conventional local block in a target normal port as the delayed data quantity of the conventional local block;
Obtaining the transmission time consumption of unit data, calculating the influence coefficient of the target normal port by using a flow influence formula, and accumulating the influence coefficient of the target normal port to obtain the flow influence coefficient of the preparation transmission scheme;
the flow influence formula is as follows:,
wherein D is the influence coefficient of the target normal port, k is the subscript, q is the total number of conventional local blocks in the target normal port,For the deferred data amount of the kth regular partial block in the target normal port,For the normal coefficients of the kth normal partial block in the target normal port, x is the time-consuming transmission of unit data.
Compared with the prior art, the invention has the beneficial effects that:
By classifying at least one port of the POE switch, establishing a port flow analysis model, forming and calculating a flow influence coefficient of a preparation transmission scheme, under the power limitation, when the total flow upper limit of a target redundant port is insufficient, the target normal port can be used for carrying out supplementary transmission, during transmission, more important data are preferentially transmitted in consideration of the importance degree of the data, and simultaneously, the influence on the original data transmission of the target normal port is also considered, and the preparation transmission scheme with the minimum flow influence coefficient is used for transmitting, so that the influence of the adopted transmission scheme on the original data transmission of the target normal port is ensured to be as small as possible.
Detailed Description
The following description is presented to enable one of ordinary skill in the art to make and use the invention. The preferred embodiments in the following description are by way of example only and other obvious variations will occur to those skilled in the art.
Referring to fig. 1, a POE switch network management method based on ethernet cable data transmission includes:
classifying at least one port of the POE switch based on the upper power supply limit of the POE switch to obtain a redundant port and a non-redundant port, wherein the redundant port is a standby port for data transmission;
when the transmission is normal, using a uniform load mode to distribute data flow to at least one non-redundant port of the POE switch;
Performing fault detection on at least one non-redundant port of the POE switch, wherein the non-redundant port with the fault is used as an abnormal port, and the non-redundant port without the fault is used as a normal port;
Forming a repair scheme for the abnormal port based on the big data, predicting the repair time of the repair scheme, and uniformly dividing the repair time of the repair scheme to obtain at least one time node;
based on the upper power supply limit of the POE switch, selecting at least one target redundant port from the redundant ports, and acquiring the total flow upper limit of the at least one target redundant port;
Judging at a time node, when the total data quantity of the abnormal ports does not exceed the total flow upper limit, using the target redundant ports to transmit the data of the abnormal ports, otherwise, subtracting the total flow upper limit from the total data quantity of the abnormal ports to obtain the characteristic flow;
Acquiring a normal port with redundant space for transmitting traffic at a time node as a target normal port;
Establishing a port flow analysis model, analyzing the flow type of the characteristic flow at the time node by using the port flow analysis model to obtain a first analysis result, and analyzing the flow type of the target normal port at the time node to obtain a second analysis result;
forming at least one preparation transmission scheme, and calculating a flow influence coefficient of the preparation transmission scheme based on the first analysis result and the second analysis result;
selecting a preparation transmission scheme with the minimum flow influence coefficient as a target transmission scheme;
and carrying out data transmission of the abnormal port by using the target redundant port, and distributing the characteristic flow to the target normal port according to a target transmission scheme.
When the POE switch is set, because the limitation of own power and the necessity of reserving some ports are used as substitute ports when the port fails, the ports can be divided into redundant ports and non-redundant ports, the redundant ports are standby ports for data transmission, the non-redundant ports are ports for transmission when the POE switch is normal, generally, in order to prolong the service life of the POE switch, the ports of the POE switch are not all transmitted, and only a part of the ports are selected as non-redundant ports for transmission, so that the operating power of the POE switch can work for a long time within a controllable range, but when the port data transmission is abnormal, the redundant ports are required to be called for transmission substitution, but when the abnormal ports are maintained, repeated detection is required to determine whether the abnormal ports are repaired or not, so that the abnormal ports cannot be completely closed, and therefore, the abnormal ports have the lowest power consumption, and under the limitation of the upper limit of the power supply of the POE switch, the total flow of the target redundant ports for transmission substitution may not be large, and therefore, the total quantity of the abnormal ports needs to be supplemented for transmission at the target normal ports for the exceeding part;
The data transmission of the abnormal port is carried out by using the target redundant port, and the transmission sequence of the data transmission is translated to the target redundant port for transmission according to the sequence of the data transmission in the abnormal port.
Referring to fig. 2, classifying at least one port of the POE switch to obtain a redundant port and a non-redundant port includes the steps of:
Based on big data, acquiring the upper limit of power consumption of a single port, and acquiring the proportion of power consumption of conventional operation of the POE switch to the upper limit of power supply as conventional proportion;
Multiplying the conventional proportion by the upper power supply limit of the POE switch to obtain conventional power supply quantity;
dividing the conventional power supply amount by the upper limit of power consumption of a single port to obtain the allowable number of ports;
And randomly selecting ports with the number equal to the allowed number of the ports from at least one port, taking the ports as non-redundant ports, and taking the rest ports as redundant ports.
The number of the non-redundant ports is set according to the power consumption of the conventional operation of the POE switch, so that when all the non-redundant ports operate, the power of the POE switch is not too high, and the service life of the POE switch is further ensured.
Referring to fig. 3, a repair scheme is formed for an abnormal port, and estimating the repair time of the repair scheme includes the steps of:
Extracting features of faults of the abnormal ports to obtain at least one fault feature;
Based on the big data, acquiring at least one maintenance scheme of the repaired fault containing the fault characteristic, and acquiring an intersection of the at least one maintenance scheme to obtain a local scheme of the fault characteristic;
the local scheme of at least one fault characteristic is obtained in a union mode, and a repairing scheme is obtained;
obtaining the time consumption of the maintenance scheme, dividing the number of steps of the local scheme by the number of steps of the maintenance scheme to obtain the time duty ratio;
calculating to obtain the maintenance time of the local scheme by using a time comprehensive formula, and accumulating the maintenance time of the local scheme to obtain the maintenance time of the repair scheme;
The time synthesis formula is as follows:,
wherein B is maintenance time of the local scheme, n is total number of at least one maintenance scheme, i is subscript,For the time consuming of the ith maintenance scenario,Is the time duty cycle of the local schedule in the ith maintenance schedule.
The repair scheme is used for repairing the fault of the abnormal port, when the transmission adjustment is performed during the repair, sampling at different time points is required to be performed during the repair time of the repair scheme, and different transmission adjustment is performed at different time points.
Referring to fig. 4, based on the upper power supply limit of the POE switch, selecting at least one target redundant port from the redundant ports includes the steps of:
Obtaining the lowest power consumption of a single abnormal port, and subtracting the lowest power consumption of the single abnormal port from the upper power consumption limit of the single port to obtain adjustable electric quantity;
Calculating the number of the target redundant ports by using a number formula to serve as the characteristic number;
Randomly selecting redundant ports with the number equal to the characteristic number as target redundant ports;
the number formula is as follows:,
Wherein A is the characteristic number, a is the adjustable electric quantity, b is the total number of abnormal ports, c is the upper power supply limit of the POE switch, e is the conventional power supply quantity, and d is the upper power consumption limit of a single port.
When the target redundant ports are carried out, the power consumption of all the ports participating in transmission is set according to the upper power supply limit of the POE switch, and the maintenance time is not too long, so that the service life of the POE switch is not greatly influenced by the use of larger power to ensure that the data transmission is carried out;
in the numerical formula, ab is the power vacated after the power of the abnormal port is regulated down, and c-e is the power which is not put into use by the POE switch, so that the power of the abnormal port and the power of the POE switch can be used for supplying power to the redundant ports, and the number of the target redundant ports can be calculated.
Referring to fig. 5, the establishment of the port flow analysis model includes the steps of:
acquiring flow to be analyzed, acquiring damage recovery proportion of data in the flow to be analyzed, summarizing the data with the damage recovery proportion smaller than a preset value to obtain key part data, wherein the damage recovery proportion is the proportion of the recovery part after the damage of the data to the original data;
Uniformly dividing the key part data to obtain at least one part data;
Classifying the partial data based on the attribute of the partial data, and merging the partial data with the same classification into data features;
Acquiring at least one data application scene of the data features, acquiring the data value of the data features in the data application scene, and acquiring the allowable delay of the data features in the data application scene;
averaging at least one data value of the data feature to obtain a data average value, and averaging at least one allowable delay of the data feature to obtain an average allowable delay;
Calculating to obtain a flow coefficient of the flow to be analyzed by using a flow analysis formula;
the flow analysis formula is as follows:,
wherein C is the flow coefficient of the flow to be analyzed, j is the subscript, m is the total number of data features,For the data average value of the jth data feature,Delay is allowed for the average of the jth data feature.
The damage recovery ratio is mainly estimated by the recovery of data, when the recovery part is small, the recovery of data is small, so that the damage recovery ratio is key data, and transmission is necessary, but when the recovery part is large, the damage recovery ratio can be recovered by the mode of data recovery even if the transmission is not performed, so that only the key part data is analyzed in the flow analysis;
When data transmission of an abnormal port is performed in a target normal port, since comparison of importance of data in the target normal port and the abnormal port is required to be performed, and transmission priority is further determined, importance judgment standards are required to be generated for the data, and therefore, a port flow analysis model is constructed, in which the average value of the data is proportional to the importance of the data, and the larger the average allowable delay is, the less important the data is, because important data is generally high in time requirement, the average allowable delay is inversely proportional to the importance of the data, and then, a flow analysis formula is formed according to the proportional relation.
Referring to fig. 6, analyzing the traffic type of the characteristic traffic at the time node to obtain a first analysis result includes the steps of:
uniformly dividing the characteristic flow at the time node into at least one characteristic local block;
the characteristic local block is used as a flow input port flow analysis model to be analyzed, and the output flow coefficient is used as a characteristic coefficient;
and pairing and summarizing the characteristic local blocks and the characteristic coefficients to obtain a first analysis result.
Because the characteristic flow contains more data, the characteristic flow is not segmented, the analysis result is rough, the transmission effect is affected, and the flow types of the target normal ports are similar, so that the characteristic flow is segmented.
Referring to fig. 7, the analysis of the traffic type of the target normal port at the time node, to obtain the second analysis result includes the following steps:
Uniformly dividing flow data transmitted by a target normal port at a time node into at least one conventional local block;
Taking the conventional local block as a flow input port flow analysis model to be analyzed, and taking the output flow coefficient as a conventional coefficient;
and pairing and summarizing the conventional local blocks and the conventional coefficients to obtain a second analysis result.
Referring to fig. 8, forming at least one preliminary transmission scheme includes the steps of:
Randomly distributing at least one characteristic local block to a target normal port under a flow limiting condition, wherein the flow limiting condition is that the total flow transmitted by the target normal port of the distributed characteristic local block is smaller than the transmission upper limit of the target normal port;
Each allocation mode of at least one characteristic local block forms a preparation transmission scheme, and the transmission sequence of data in the preparation transmission scheme is that in a target normal port, when the characteristic coefficient of the characteristic local block is larger than the conventional coefficient of the conventional local block, the characteristic local block is transmitted before the conventional local block, otherwise, the characteristic local block is transmitted after the conventional local block, and the conventional local block is transmitted according to the original sequence.
The transmission of the ports is limited and generally consistent, so that, during allocation, it is necessary to ensure that the sum of the original transmission data and the allocated characteristic local blocks in the target normal port cannot exceed the transmission upper limit of the target normal port, and it is easy to know that, in this case, a preliminary transmission scheme is formed for each allocation mode of the characteristic local blocks.
Referring to fig. 9, calculating the flow influence coefficient of the preliminary transmission scheme includes the steps of:
In a preparation transmission scheme, acquiring the total quantity of characteristic local blocks transmitted before a single conventional local block in a target normal port as the delayed data quantity of the conventional local block;
Obtaining the transmission time consumption of unit data, calculating the influence coefficient of the target normal port by using a flow influence formula, and accumulating the influence coefficient of the target normal port to obtain the flow influence coefficient of the preparation transmission scheme;
the flow influence formula is as follows:,
wherein D is the influence coefficient of the target normal port, k is the subscript, q is the total number of conventional local blocks in the target normal port,For the deferred data amount of the kth regular partial block in the target normal port,For the normal coefficients of the kth normal partial block in the target normal port, x is the time-consuming transmission of unit data.
When using the preparation transmission scheme for transmission, the influence on the delay of the original data in the target normal port needs to be calculated, and the flow influence formula is thatIs the delay time of the conventional local block, but the influence of the delay is different according to the importance of the conventional local block, so the delay time of the conventional local block needs to be given a weight, namelyBecause according toWhich characterizes the importance of the regular local block.
Still further, the present solution also proposes a storage medium, on which a computer readable program is stored, and when the computer readable program is called, the above POE switch network management method based on ethernet cable data transmission is executed.
It is understood that the storage medium may be a magnetic medium such as a floppy disk, a hard disk, a magnetic tape, an optical medium such as a DVD, or a semiconductor medium such as a solid state disk SolidStateDisk, SSD, etc.
In summary, the method has the advantages that by classifying at least one port of the POE switch, establishing a port flow analysis model, forming and calculating the flow influence coefficient of the preparation transmission scheme, under the power limitation, when the total flow upper limit of the target redundant port is insufficient, the target normal port can be used for carrying out the supplementary transmission, when the transmission is carried out, the important data is preferentially transmitted in consideration of the importance degree of the data, and meanwhile, the influence on the original data transmission of the target normal port is also considered, the preparation transmission scheme with the minimum flow influence coefficient is used for carrying out the transmission, so that the influence of the adopted transmission scheme on the original data transmission of the target normal port can be ensured to be as small as possible.
The foregoing has shown and described the basic principles, principal features and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and that the above embodiments and descriptions are merely illustrative of the principles of the present invention, and various changes and modifications may be made therein without departing from the spirit and scope of the invention, which is defined by the appended claims. The scope of the invention is defined by the appended claims and equivalents thereof.