A kind of all optical networks fringe node light packet data framing method
Technical field
The present invention relates to a kind of framing method of intelligence communication technical field in electric system, in particular to a kind of full light
Exchange network fringe node light packet data framing method.
Background technique
With the construction of smart grid, the requirement to communication function in electric system is increasingly stringenter.Due to electric system
Environment it is generally more severe, so needing reliable data communication mode.All optical networks can be each to avoid communication network
Multiple optical-electronic conversion on a node makes communication network no longer be limited by bandwidth and power consumption etc. existing for electronic device itself and lacks
The foot limit of " electronic bottleneck " caused by falling into, greatly improves communication network bandwidth and real-time, reduces network equipment power consumption.Together
When, all-optical switching technique has natural anti-electromagnetic interference capability, can the reliability application power communication neck severe in electromagnetic environment
Domain.It is power business access all-optical network transmission that all optical networks fringe node, which carries out light packet framing to power business data,
Important link.
In all-optical packet switching network, for the sudden and high reliability request of power business data, need electric power
Business datum convergence is assembled in different grouping packets.Under composition mechanism based on light packet length threshold, only when grouping is wrapped
Just be sent in switching network after reaching certain amount, grouping packet length be it is fixed, this may cause partial data packet delay compared with
Greatly;And composition mechanism and algorithm based on light packet time threshold, it is generated and is periodically sent into optical-fiber network with fixed intervals, it can
Grouping packet can be caused to be underfilled with just to send, network resource utilization is lower, or causes data congestion.
Summary of the invention
In view of the deficiencies of the prior art, the object of the present invention is to provide a kind of all optical networks fringe node light packet numbers
According to framing method, different transmission demands of this method towards power business in terms of time delay, real-time, reliability, for difference
The compound thresholding of different time and length is arranged in the power business of type, using the compound thresholding of more queues organize parallel frame mechanism into
Row data framing realizes the power business access of all optical networks, while guaranteeing key business transmission real-time, improves
The utilization rate of all optical networks.
The purpose of the present invention is adopt the following technical solutions realization:
The present invention provides a kind of all optical networks fringe node light packet data framing method, it is improved in that
The method includes the following steps:
(1) more queue in parallel group frame array based on compound thresholding are constructed;
(2) Ethernet data bag of service message is input to fringe node by the combining unit of substation and intelligent terminal;
(3) judgement is input to the type of service of the Ethernet data bag of fringe node and whether meets requirement of real-time;
(4) Ethernet data bag is mapped to group frame queue and carries out framing;
(5) assembled data framing is sent to the transmit queue of fringe node by group frame queue, is uploaded through output unit
It is transmitted to all optical networks.
Further, in the step (1), group frame array is made of multiple framing queues, when the waiting of each group frame queue
Between thresholding T and length threshold L according to this queue real-time grade and need the type of service that maps to be configured;(for not
The different compound thresholdings based on time and length are arranged in the power business of same type.To high real-time business, it is arranged lesser
Waiting time thresholding and data length threshold low real-time service are arranged relatively long waiting time thresholding and data length
Thresholding) SV message traffic in real time high in power business is arranged by instant forwarding strategy, T=0s, L=0bit;Centering is real-time
It is required that GOOSE message business be arranged T=13 μ s, T=1518bit;T=100 μ s, L are arranged to low real-time MMS message traffic
=7590bit.
Further, in the step (3), type of service includes high real time business, middle real time business and low real time business;
After fringe node receives service message, the type field of service message is parsed, the type of message is judged;Service message
Include:SV message, GOOSE message and MMS message;The wherein requirement of real-time highest of SV message is high real time business;GOOSE
Message real-time performance requirement is lower than SV message, is middle real time business;The requirement of MMS message real-time performance is minimum, is low real time business.
Further, in the step (4), Ethernet data bag is mapped according to the priority of business and requirement of real-time
Carry out framing to different group frame queue, SV message traffic enter highest real-time queue carry out framing, GOOSE business and MMS into
The queue for entering to meet T the and L value of respective business demand carries out framing;Each group of frame queue independence framing, parallel processing, by setting
Good framing strategy finishing service data framing.
Further, the step (4) includes the following steps:
A, SV message enters highest group of frame queue 1 of real-time, and GOOSE enters group frame queue 2, and MMS, which enters real-time, to be wanted
Seek low group frame queue n;
B, in group frame queue 1, setting data framing strategy is waiting time T0=0, framing is carried out, to guarantee SV business
High real-time;In group frame queue 2, setting data framing strategy is the message waiting time to reach max threshold T2 or queue 2
After the data packet length of waiting reaches maximum length thresholding L2, framing is carried out;In group frame queue n, data framing strategy is set
After reaching maximum length thresholding Ln for the data packet length that the message waiting time reaches max threshold Tn or queue n waiting, carry out
Framing;
C, group frame queue 2 to group frame queue n according to requirement of real-time from high to low, set waiting time thresholding T2 is extremely
Tn is progressively longer, and data length thresholding L2 to Ln is gradually increased;Specific waiting time thresholding T and data length threshold L can root
It is reasonably set according to the requirement of real-time and message length characteristic of specific power business.To high real-time in power business
SV business is configured by instant forwarding strategy, i.e. T=0s, L=0bit;T=13 is arranged in the GOOSE business of centering requirement of real time
μ s, T=1518bit;T=100 μ s, L=7590bit are arranged to low real-time MMS business.
Further, it in the step (5), is followed by by fringe node data framing into all optical networks, via output
Unit uploads to all-optical network and is transferred to the edge section for being connected with measure and control device, failure wave-recording, protective device and stability control equipment
Point, then downlink frame decoding is carried out, it is transmitted to relevant device.
Compared with the immediate prior art, the excellent effect that technical solution provided by the invention has is:
1, the present invention utilizes the frame composition mechanism based on compound thresholding, solve different priorities power business in real time, it is reliable,
Efficiently it is linked into the problem of electric power all-optical network is transmitted.
2, the present invention is directed to power business changes in flow rate and requirement of real-time, provides a kind of based on time and length composite door
Diversified framing strategy is arranged in the light packet frame forming tech of limit, and different types of business is carried out by different group frame queues
Framing realizes that light packet optimizes framing under complicated business environment, meets business requirement of real-time, improves resource utilization ratio.
Detailed description of the invention
Fig. 1 is the data framing schematic diagram provided by the invention based on time and the compound thresholding of length;
Fig. 2 is intelligent substation all-optical communication network schematic diagram provided by the invention;
Fig. 3 is electric power all optical networks fringe node framing flow chart provided by the invention.
Specific embodiment
Specific embodiments of the present invention will be described in further detail with reference to the accompanying drawing.
The present invention provides a kind of method of the light packet data framing of fringe node in electric power all optical networks, for not
The compound thresholding of different time and length is arranged in the power business of same type, organizes frame mechanism parallel using the compound thresholding of more queues
Data framing is carried out, realizes the power business access of all optical networks, while guaranteeing key business transmission real-time, is mentioned
The utilization rate of high all optical networks.
Electric power all optical networks fringe node framing flow chart provided by the invention is as shown in figure 3, include the following steps:
(1) more queue in parallel group frame array based on compound thresholding are constructed.Group frame array is made of multiple framing queues, respectively
Group frame queue waiting time thresholding T and length threshold L according to this queue real-time grade and need to reflect incoming business
Type is rationally arranged.Each group of frame queue independence framing, parallel processing complete corresponding service by the framing strategy set
Data framing.For different types of power business, the different compound thresholdings based on time and length are set.To high real-time
Lesser waiting time thresholding and data length threshold is arranged, when relatively long waiting is arranged to low real-time service in business
Between thresholding and data length threshold.SV business in real time high in power business is configured by instant forwarding strategy, i.e. T=
0s, L=0bit;T=13 μ s, T=1518bit is arranged in the GOOSE business of centering requirement of real time;Low real-time MMS business is set
Set T=100 μ s, L=7590bit.
(2) Ethernet data bag of service message is input to fringe node by the combining unit of substation and intelligent terminal;
Service message is sent fringe node by the combining unit and intelligent terminal of substation, carries out data by fringe node
All optical networks are accessed after framing, are transferred to via all-optical network and are connected with measure and control device, failure wave-recording, protective device, peace
The fringe node of the equipment such as stabilization device, then downlink frame decoding is carried out, it is transmitted to corresponding equipment.
(3) judgement is input to the type of service and requirement of real-time of the Ethernet data bag of fringe node;
After fringe node receives service message, the type field of service message is parsed, the type of message is judged,
Carry out requirement of real-time mapping.In intelligent substation all-optical communication network, such as Fig. 2, type of service includes high real time business, middle reality
When business and low real time business;After fringe node receives service message, the type field of service message is parsed, to the class of message
Type is judged.Typically service message includes:SV message, GOOSE message and MMS message;Wherein the real-time of SV message is wanted
Highest is sought, is high real time business;GOOSE message requirement of real-time ratio SV message is low, is middle real time business;MMS message real-time performance
It is required that it is minimum, it is low real time business.
(4) the compound thresholding of more queues based on business classification organizes frame mechanism parallel:According to the priority and real-time of business
It is required that data packet, which is mapped to different group frame queues, carries out framing.SV business enters highest real-time queue and carries out framing, GOOSE
Business and MMS enter the queue progress framing for meeting the T and L of respective business demand.Include the following steps:
A, SV message enters highest group of frame queue 1 of real-time, and GOOSE enters group frame queue 2, and MMS, which enters real-time, to be wanted
Seek low group frame queue n;
B, in group frame queue 1, setting data framing strategy is waiting time T0=0, framing is carried out, to guarantee SV business
High real-time;In group frame queue 2, setting data framing strategy is the message waiting time to reach max threshold T2 or queue 2
After the data packet length of waiting reaches maximum length thresholding L2, framing is carried out;In group frame queue n, data framing strategy is set
After reaching maximum length thresholding Ln for the data packet length that the message waiting time reaches max threshold Tn or queue n waiting, carry out
Framing;
(5) C, group frame queue 2 to group frame queue n according to requirement of real-time from high to low, set waiting time thresholding
T2 to Tn is progressively longer, and data length thresholding L2 to Ln is gradually increased;Specific waiting time thresholding T and data length threshold L
It can reasonably be set according to the requirement of real-time and message length characteristic of specific power business.To high real in power business
When SV business be configured by instant forwarding strategy, i.e. T=0s, L=0bit;T is arranged in the GOOSE business of centering requirement of real time
=13 μ s, T=1518bit;T=100 μ s, L=7590bit are arranged to low real-time MMS business.Group frame queue will be assembled
Data framing is sent to the transmit queue of fringe node, uploads to all optical networks through output unit and is transferred to and is connected with survey
Control device, failure wave-recording, protective device and stability control equipment fringe node, then carry out downlink frame decoding, be transmitted to relevant device.
Embodiment
By taking the fringe node framing process of intelligent substation communication network as an example, framing process is specifically introduced, such as Fig. 3 institute
Show.
After service message is input to fringe node, different business is mapped to difference by progress type of service judgement first
Group frame queue in.SV message enters highest group of frame queue 1 of real-time, and GOOSE enters group frame queue 2, and MMS enters real-time
It is required that low group frame queue n.In group frame queue 1, setting data framing strategy is waiting time T1=0, i.e. framing at once, with
Guarantee the high real-time of SV business;In group frame queue 2, setting data framing strategy is the message waiting time to reach max threshold
After the data packet length that T2 or queue 2 wait reaches maximum length thresholding L2, framing is carried out;In group frame queue n, data are set
Framing strategy is to reach the data packet length that max threshold Tn or queue n is waited the message waiting time to reach maximum length thresholding Ln
Afterwards, framing is carried out.Queue 2 to queue n according to requirement of real-time from high to low, set time threshold T2 to Tn gradually becomes
Long, data length thresholding L2 to Ln is also gradually increased.Specific time threshold T and data length threshold L can be according to specific electricity
The requirement of real-time and message length characteristic of power business are reasonably set.
Assembled data framing is sent to the transmit queue of fringe node by group frame queue, is uploaded to entirely through output unit
Optical switching network is transmitted.
Light packet data framing method of the invention is carried out by taking intelligent substation all-optical communication network as an example in embodiment
Detailed description, but it is not limited only to intelligent substation all-optical communication network fringe node framing, it is led in communication of power system technology
There are many more similar applications in domain, such as the business such as distribution, load control system, power information acquisition for intelligence with electricity consumption can also make
With the mechanism of the invention.
Finally it should be noted that:The above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof, to the greatest extent
Invention is explained in detail referring to above-described embodiment for pipe, and those of ordinary skill in the art still can be to this hair
Bright specific embodiment is modified or replaced equivalently, these without departing from spirit and scope of the invention any modification or
Equivalent replacement, within the scope of the claims of the invention pending application.