The content of the invention
The technical problem to be solved in the present invention is how to reduce the probability that the time delay of message data forwarding occurs.
Therefore, according in a first aspect, the embodiment of the present invention provides a kind of transformer station's message data exchange method, including:
Obtain at least one message data to be forwarded;Each message number at least one message data to be forwarded is determined respectively
According to type of service;Wavelength according to belonging to each type of service determines the corresponding message data of each type of service respectively;Will
Each message data is respectively put into the forwarding queue of respective corresponding wavelength, has different transmission waves between different forwarding queues
It is long;Send the message data in each forwarding queue.
Alternatively, the forwarding queue that each message data is respectively put into respective corresponding wavelength is included:Obtain message data
The timeslice information of forwarding queue;Each message data is respectively put into the forwarding team of respective corresponding wavelength according to timeslice information
Row.
Alternatively, each message data is respectively put into the forwarding queue bag of respective corresponding wavelength according to timeslice information
Include:Judge to whether there is corresponding timeslice information to be placed into the forwarding queue of message data;If turned to be placed into message data
Hair queue does not exist corresponding timeslice information, then will be put into correspondence to be placed into the message data of forwarding queue based on preset rules
Forwarding queue.
Alternatively, will be put into corresponding forwarding queue to be placed into the message data of forwarding queue based on preset rules includes:
Judge to be placed into forwarding queue message data whether be multiple types of service message data;If to be placed into forwarding queue
Message data is the message data of multiple types of service, then the priority according to each message data type of service is sequentially placed into right
The forwarding queue answered.
Alternatively, if to be placed into forwarding queue message data be single type of service message data, will wait to put
The message data for entering forwarding queue is put into the end of corresponding forwarding queue.
Alternatively, if there is corresponding timeslice information to be placed into message data forwarding queue, first sent out according to arriving first
Principle message data is put into the end of the corresponding forwarding queue of timeslice information.
According to second aspect, the embodiment of the present invention provides a kind of transformer station's message data interactive device, including:
Receive message module, for obtaining at least one message data to be forwarded;Determination type module, for determining respectively
The type of service of each message data at least one message data to be forwarded;Wavelength determining module, for according to each business
Type determines the wavelength belonging to the corresponding message data of each type of service respectively;Message is put into module, for by each message
Data are respectively put into the forwarding queue of respective corresponding wavelength, have different transmission wavelengths between different forwarding queues;Message
Sending module, for sending the message data in each forwarding queue.
Alternatively, message is put into module and includes:Time blade unit, the timeslice for obtaining message data forwarding queue is believed
Breath;Queue determining unit, the forwarding team for each message data to be respectively put into respective corresponding wavelength according to timeslice information
Row.
Alternatively, queue determining unit includes:Judgment sub-unit, for judging that the forwarding queue to be placed into message data is
It is no to there is corresponding timeslice information;Be put into subelement, for based on preset rules by be placed into the message data of forwarding queue
It is put into corresponding forwarding queue.
According to the third aspect, the embodiment of the present invention provides a kind of transformer station's message data interactive system, including:
Data interaction device, for receiving/sending message data to be forwarded;Processor, for performing above-mentioned message number
According to exchange method.
Technical solution of the present invention, has the following advantages that:
Transformer station's message data exchange method provided in an embodiment of the present invention, apparatus and system, due to determining respectively at least
The type of service of each message data, then determines each industry respectively according to each type of service in one message data to be forwarded
Wavelength belonging to the corresponding message data of service type, each message data is respectively put into the forwarding queue of respective corresponding wavelength,
There is different transmission wavelengths so that in data of each forwarding queue in respective queue is forwarded between different forwarding queues
When, can be transmitted with the data doubling of other forwarding queues, it is different relative to existing single wavelength serial transmission message data
Type of service message data need to come same queue, the scheme that the present invention is provided realizes wavelength-division message data such that it is able to
Reduce the probability that the time delay of message data forwarding occurs.
As optional technical scheme, each message data is respectively put into by respective corresponding wavelength according to timeslice information
Forwarding queue, is realized while wavelength-division message data, and the time-division is carried out to message data also in relation with time-domain information, so that,
The wavelength information and time-domain information of message data can be planned as a whole to carry out the forwarding of message data.
Specific embodiment
Technical scheme is clearly and completely described below in conjunction with accompanying drawing, it is clear that described implementation
Example is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill
The every other embodiment that personnel are obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
In the description of the invention, it is necessary to explanation, term " " center ", " on ", D score, "left", "right", " vertical ",
The orientation or position relationship of the instruction such as " level ", " interior ", " outward " be based on orientation shown in the drawings or position relationship, merely to
Be easy to the description present invention and simplify describe, rather than indicate imply signified device or element must have specific orientation,
With specific azimuth configuration and operation, therefore it is not considered as limiting the invention.Additionally, term " first ", " second ",
" the 3rd " is only used for describing purpose, and it is not intended that indicating or implying relative importance.
In the description of the invention, it is necessary to illustrate, unless otherwise clearly defined and limited, term " installation ", " phase
Company ", " connection " should be interpreted broadly, for example, it may be being fixedly connected, or being detachably connected, or be integrally connected;Can
Being to mechanically connect, or electrically connect;Can be joined directly together, it is also possible to be indirectly connected to by intermediary, can be with
It is two connections of element internal, can is wireless connection, or wired connection.For one of ordinary skill in the art
For, above-mentioned term concrete meaning in the present invention can be understood with concrete condition.
As long as additionally, technical characteristic involved in invention described below different embodiments non-structure each other
Can just be combined with each other into conflict.
Present inventor has found in research, because current transformer station's station communication carries out data biography using Same Wavelength
It is defeated so that currently have packet data transmission when, priority message high cannot insert message queue, can only serial transmission,
I.e. wait current message data transfer can transmission priority message high after finishing.In this regard, general idea of the present invention is:Set
Different wavelength, the message data of the different type of service of different wavelength transmissions so that the message data of different service types
Being capable of parallel transmission.
For the probability that the time delay for reducing message data forwarding occurs, the embodiment of the invention discloses a kind of transformer station's message
Data interactive method, refer to Fig. 1, be the message data exchange method flow chart, and the insulation data interactive method includes:
Step S101, obtains at least one message data to be forwarded.In a particular embodiment, Fig. 2 is refer to, can be from ring
It is upper to receive message data to be forwarded, such as left ring input, the input of right ring;Message number to be forwarded can also be received from local equipment
According to.Typically, message data to be forwarded carries the business information of different service types.
Step S102, determines the type of service of each message data at least one message data to be forwarded respectively.In tool
In body embodiment, after at least one message data to be forwarded is acquired, can be identified by message, specifically,
Message data to be forwarded is typically compliant with default protocol format, can be determined by the ad-hoc location in preset protocol to be forwarded
The type of service of message data.In the present embodiment, alleged type of service can include:The types of service such as SV, GOOSE and MMS,
In other embodiments, other types of service can also be included.
Step S103, the ripple according to belonging to each type of service determines the corresponding message data of each type of service respectively
It is long.In the present embodiment, the message data of different service types is transmitted by the signal of different wave length.In specific embodiment
In, the corresponding wavelength of each type of service can be pre-set, it is determined that after the type of message data, it may be determined that each business
Wavelength belonging to the corresponding message data of type.
Step S104, each message data is respectively put into the forwarding queue of respective corresponding wavelength, different forwarding queues
Between have different transmission wavelengths.In the present embodiment, the data of different wave length are forwarded by different forwarding queues.In tool
In body embodiment, it is determined that after wavelength belonging to the corresponding message data of each type of service, you can by each message data point
The forwarding queue of respective corresponding wavelength is not put into, due to having different transmission wavelengths, different ripples between different forwarding queues
Message data long is put into different forwarding queues so that in transmitting procedure, and the message data of different service types does not receive it
The influence of his wavelength data transmission.
Step S105, sends the message data in each forwarding queue.
In an alternate embodiment of the invention, when step S104 is performed, each message data is respectively put into respective corresponding wavelength
Forwarding queue include:Obtain the timeslice information of message data forwarding queue;According to timeslice information by each message data
It is respectively put into the forwarding queue of respective corresponding wavelength.During specific packet data transmission, can be transmitted by temporal partitioning and reported
The timeslice of literary data, such as in the message data of a certain specific wavelength of certain period transmission.In the present embodiment, report can be obtained
The timeslice information of literary data forwarding queue, then, each message data is put into the forwarding queue of correspondence timeslice.
It should be noted that in a particular embodiment, in the forwarding queue for Non-precondition timeslice, can be according to pre-
If rule carries out message data being put into.Specifically, each message data is being respectively put into by each correspondence according to timeslice information
The forwarding queue of wavelength includes:Judge to whether there is corresponding timeslice information to be placed into the forwarding queue of message data;If
Do not exist corresponding timeslice information to be placed into message data forwarding queue, then based on preset rules by be placed into forwarding queue
Message data is put into corresponding forwarding queue.Specifically, will be put into be placed into the message data of forwarding queue based on preset rules
Corresponding forwarding queue includes:Judge to be placed into forwarding queue message data whether be multiple types of service message data;
If to be placed into forwarding queue message data be multiple types of service message data, according to each message data service class
The priority of type is sequentially placed into corresponding forwarding queue.It should be noted that in the present embodiment, the message number of multiple types of service
According to the message data for shoulding be identical traffic wavelength.When message data is put into according to the priority of type of service, priority is high
Message data prostatitis is placed in time domain, the low message data of priority is placed on rank rear in time domain, thus reduces high preferential
The message data time delay of level.
In an alternate embodiment of the invention, if there is corresponding timeslice information, root to be placed into message data forwarding queue
According to the end for arriving first the principle first sent out and be put into message data the corresponding forwarding queue of timeslice information.Due in the default time
The message data being put into piece forwarding queue has identical transmission wavelength, therefore, when the message data of Same Wavelength is put into,
Message data can be once put into the corresponding forwarding queue of timeslice according to the principle first sent out is arrived first in time domain.
The present embodiment also discloses a kind of transformer station's message data interactive device, refer to Fig. 3, for the message data is interacted
Apparatus structure schematic diagram, the message data interactive device includes:Receive message module 301, determination type module 302, wavelength are true
Cover half block 303, message is put into module 304 and message sending module 305, wherein:
Receive message module 301 is used to obtain at least one message data to be forwarded;Determination type module 302 is used to distinguish
Determine the type of service of each message data at least one message data to be forwarded;Wavelength determining module 303 is used for according to each
Individual type of service determines the wavelength belonging to the corresponding message data of each type of service respectively;Message be put into module 304 for will
Each message data is respectively put into the forwarding queue of respective corresponding wavelength, has different transmission waves between different forwarding queues
It is long;Message sending module 305 is used to send the message data in each forwarding queue.
In an alternate embodiment of the invention, message is put into module 304 and includes:Time blade unit, for obtaining message data forwarding
The timeslice information of queue;Queue determining unit is each right for being respectively put into each message data according to timeslice information
Answer the forwarding queue of wavelength.
In an alternate embodiment of the invention, queue determining unit includes:Judgment sub-unit, for judging to be placed into message data
Forwarding queue whether there is corresponding timeslice information;Subelement is put into, for will be to be placed into forwarding queue based on preset rules
Message data be put into corresponding forwarding queue.
The present embodiment also discloses a kind of transformer station's message data interactive system, including:Data interaction device, for connecing
Transmit/receive and send message data to be forwarded;Processor, for performing message data exchange method disclosed in above-described embodiment.
For ease of it will be appreciated by those skilled in the art that hereafter being said to message data interaction disclosed in the present embodiment
It is bright, Fig. 2 and Fig. 4 is refer to, wherein, Fig. 2 is the present embodiment message data wavelength-division schematic diagram, and Fig. 4 illustrates for the present embodiment time-division
Figure.
Fig. 2 is refer to, in specific implementation process, left ring input, the service message data of right ring input can be obtained, this
A little message datas need to can enter with multiplexing fiber-optic channel transfer, after the message data for receiving these different service types to it
Row demultiplexing, respectively obtains the message data of different wave length, then by the message data of each type of service respectively according to respective
Wavelength (λ 1, λ 2 ... λ n) be put into corresponding wavelength forwarding queue (forwarding queue 1, forwarding queue 2 ... forwarding queue n), respectively
The message data multiplexing fiber-optic passage that individual forwarding queue can be forwarded is transmitted, such as left ring output, the output of right ring,
For another example send to local relevant device.For receiving the message data that local device sends, can be known by related business
Other module is identified distinguishing come the type of service to message data.Refer to Fig. 4, illustrate in time domain transmit " business 1 " and
" business 2 ".Divide the timeslice t0 of transmission services in time domain, when message data is put into corresponding wavelength forwarding queue,
For the type of service for having timeslice, such as " business 1 ", method disclosed in above-described embodiment can be based on by the report of " business 1 "
Literary data are put into the forwarding queue of " business 1 " timeslice t1.
Transformer station's message data exchange method, apparatus and system disclosed in the present embodiment, due to determining at least one respectively
The type of service of each message data in message data to be forwarded, then determines each service class respectively according to each type of service
Wavelength belonging to the corresponding message data of type, each message data is respectively put into the forwarding queue of respective corresponding wavelength, different
Forwarding queue between there is different transmission wavelengths so that when each forwarding queue is in the data in forwarding respective queue,
Can be transmitted with the data doubling of other forwarding queues, it is different relative to existing single wavelength serial transmission message data
Type of service message data need to come same queue, and the scheme that the present invention is provided realizes wavelength-division message data such that it is able to drop
The probability that the time delay of low message data forwarding occurs.
In an alternate embodiment of the invention, each message data is respectively put into by turning for respective corresponding wavelength according to timeslice information
Hair queue, is realized while wavelength-division message data, and the time-division is carried out to message data also in relation with time-domain information, so that, energy
Enough plan as a whole the wavelength information and time-domain information of message data to carry out the forwarding of message data.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions
The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Obviously, above-described embodiment is only intended to clearly illustrate example, and not to the restriction of implementation method.It is right
For those of ordinary skill in the art, can also make on the basis of the above description other multi-forms change or
Change.There is no need and unable to be exhaustive to all of implementation method.And the obvious change thus extended out or
Among changing still in the protection domain of the invention.