A kind of service information transmission method and device
Technical field
The present invention relates to technical field of information communication, and in particular to a kind of service information transmission method and device.
Background technology
Power business includes the first business and the second business, wherein the first business is deadline driving business, the
Two business include several periodic traffics, and for example, power information capturing service is provided between two neighboring periodic traffic
Free time.
At present, in power business, the second business takes respectively different order wires and is transmitted from the first business, e.g.,
Periodic power information capturing service, such business has the fixed triggered time and deadline, in legacy network, still
So it is used to transmit for the fixed bandwidth of the periodic traffic distribution of power information capturing service etc.
And the first business, including Time Continuous business and the continuous business of non-temporal, the two is respectively provided with deadline driven nature,
That is the delivery request of information is completed in certain time period, meanwhile, it is discontinuous that the continuous business of non-temporal can arbitrarily be divided into several
Time subtask, such as data center replicate all business be used as longer-term storage to Backup Data center can be within the time for specifying
Arbitrarily divide duplication service data number, as long as before completing before deadline, belonging to the continuous business of non-temporal,
In existing grid equipment, transmit such first business and the second business is closely transmitted using independent communication line, electric power industry
The flow of business causes a certain degree of waste.
The content of the invention
Therefore, the technical problem to be solved in the present invention is to overcome the business of individual transmission of the prior art first and second
The defect of the waste power business flow that business is caused, so as to provide a kind of power business flow optimization method and system, specifically
Technical scheme is:
A kind of service information transmission method, comprises the steps:
Whether the initial time for judging the first business is located in the initial time section of the second business, wherein second business
For time discontinuous business, business duration and multistage free time are included in the initial time section of the second business;
If the initial time of the first business is located in the initial time of the second business, when always continuing of the second business is judged
Whether long total duration sum with the first business is not more than the initial time section of second business;
If the duration of the second business is not more than the starting of first business with the duration sum of the first business
Time period, then the free time that the first business is interspersed in the second business is transmitted.
Above-mentioned method, wherein, first business is Time Continuous business or the continuous business of non-temporal or its combination;
And/or the multistage free time of second business is equal or different.
Above-mentioned method, wherein, first business is Time Continuous business, and first business is interspersed in into described the
The free time of two business is transmitted, including:
When searching idle more than or equal to the first of the first business duration in the free time of second business
Between;
By first business be interspersed in first free time in be transmitted.
Above-mentioned method, wherein, first business is the continuous business of non-temporal, when the multistage of second business is idle
Between it is equal, the free time that first business is interspersed in second business is transmitted, including:
By first delineation of activities into several the first business of duration identical subtasks, the first business
The duration of task is not more than any one section of free time of the second business;
According to the cephalocaudal order of the first business, successively the first business subtask is interspersed in into second industry
Transmit in the free time corresponding with the first business subtask of business.
Above-mentioned method, wherein, first business is the continuous business of non-temporal, when the multistage of second business is idle
Between, the free time that first business is interspersed in second business is transmitted, including:
According to the sequencing of free time, first business is from first to last divided into corresponding with free time one by one
The first business subtask, the sky of the duration of the first business subtask less than or equal to the second corresponding business
Idle is long;
Transmit during the first business subtask is interspersed in into the free time of the second corresponding business.
Above-mentioned method, wherein, first business includes Time Continuous business and the continuous business of non-temporal, described second
The free time of business is equal, and the free time that first business is interspersed in second business is transmitted, including:
Search duration in the free time of second business to continue more than or equal to the Time Continuous business
First free time of duration;
The Time Continuous business is transmitted within first free time;
By the continuous delineation of activities of non-temporal in first business into several the first business subtasks, first industry
The duration of business subtask is less than or equal to second business corresponding per section of second free time;
According to the time order and function order of the second business free time, the first business subtask is according to cephalocaudal suitable
Sequence is transmitted in being interspersed in the second free time of second business.
Above-mentioned method, wherein, first business includes Time Continuous business and the continuous business of non-temporal, described second
The free time of business, the free time that first business is interspersed in second business is transmitted, including:
It is more than or equal to the free time of the duration of the Time Continuous business for the Time Continuous service selection
And transmit the Time Continuous business;
Divide successively and transmit according to the length of the free time after the free time of the transmission Time Continuous business
The continuous business of non-temporal in first business, the duration of the continuous business of non-temporal of division is not more than transmits the non-temporal
The length of the free time of continuous business.
Above-mentioned method, wherein, second business include several periodic traffics, two neighboring periodic traffic it
Between be provided with free time.
Meanwhile, the present invention also provides a kind of business information transmitting device, including:
Whether the first judging unit, the initial time for judging the first business is located in the initial time section of the second business, its
Described in the second business be include in time discontinuous business, the initial time section of the second business the business duration and it is idle when
Between;
Second judging unit, if the initial time of the first business is located in the initial time of the second business, judges second
Whether total duration of business is not more than the initial time section of second business with total duration sum of the first business;
Transmission unit, if the duration of the second business is not more than first industry with the duration sum of the first business
The initial time section of business, then be transmitted the free time that the first business is interspersed in the second business.
Above-mentioned business information transmitting device, wherein, the 3rd judging unit is also included in the transmission unit, to judge
State the second business free time whether meet first business duration requirement.
Technical solution of the present invention, has the advantage that:
1. the present invention provide service information transmission method and device, by the first business be interspersed in the second business it is idle when
Between middle transmission, save the flow and bandwidth of power business, power business information transmission network is optimized to a great extent.
2. the present invention is provided service information transmission method and device, make a decision before transmission to the type of the first business,
Different methods are taken to transmit during the first business is interspersed in into the free time of the second business according to the different type of the first business,
This method and device is set to have very high applicability.
Description of the drawings
In order to be illustrated more clearly that the specific embodiment of the invention or technical scheme of the prior art, below will be to concrete
The accompanying drawing to be used needed for embodiment or description of the prior art is briefly described, it should be apparent that, in describing below
Accompanying drawing is some embodiments of the present invention, for those of ordinary skill in the art, before creative work is not paid
Put, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is the flow chart of a specific example of service information transmission method in the embodiment of the present invention 1.
Fig. 2 is the flow chart of an application example of service information transmission method in the embodiment of the present invention 1;
Fig. 3 is the structured flowchart of the business information transmitting device of the embodiment of the present invention 2.
Specific embodiment
Technical scheme is clearly and completely described below in conjunction with accompanying drawing, it is clear that described enforcement
Example is a part of embodiment of the invention, rather than the embodiment of whole.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 describing the invention, it should be noted that term " first ", " second ", " the 3rd " are only used for describing purpose,
And it is not intended that indicating or implying relative importance.
As long as additionally, technical characteristic involved in invention described below different embodiments non-structure each other
Just can be combined with each other into conflict.
Embodiment 1
The present embodiment provides a kind of service information transmission method, as shown in figure 1, comprising the steps:
S1:Whether the initial time for judging the first business is located in the initial time section of the second business, wherein described second
Business is time discontinuous business, and business duration and multistage free time are included in the initial time section of the second business, the
The initial time of one business is located in the initial time section of the second business and refers to time started of the first business and be no earlier than second
The time started of business, meanwhile, the end time of the first business is not later than the end time of the second business.
S2:If the initial time of the first business is located in the initial time of the second business, always holding for the second business is judged
Whether total duration sum of continuous duration and the first business is not more than the initial time section of second business, so judges,
It is in order to ensure the first business and the second business can be made to transfer and close in the initial time section of the second business.
S3:If the duration of the second business is not more than rising for first business with the duration sum of the first business
Begin the time period, be then transmitted the free time that the first business is interspersed in the second business.
Above-mentioned service information transmission method, transmits during the first business is interspersed in into the free time of the second business, saves
Power business flow and bandwidth, optimize to a great extent power business information transmission network.In the above-described embodiments, first
Business is the combination of Time Continuous business or the continuous business of non-temporal or Time Continuous business and the continuous business of non-temporal, the second industry
Multistage free time in business is equal or different, and this service information transmission method does not do to the type of the first business and the second business
Excessive restriction, is suitable for discontinuous business of various times, and can transmit in the free time of time discontinuous business various
First business of type so that the service information transmission method of the present invention has very high applicability, in the present embodiment, by the
One business is interspersed in before the free time of the second business is transmitted, and need to first be determined the type of the first business and be judged the second industry
Whether the free time of business is equal:
If the first business is Time Continuous business, free time that the first business is interspersed in the second business is transmitted
Step includes:
First, according to the sequencing of time, search in the free time of the second business and be more than or equal to the first business
Duration the first free time;
Secondly, the first business is interspersed in into the first free time to be transmitted.
This step, being interspersed in the first business of Continuous-time before the free time of the second business is transmitted, be
First business searches the first free time for meeting duration requirement, does not finish what is caused to be prevented effectively from the transmission of the first business
The incomplete technological deficiency of first business.
If the first business is the continuous business of non-temporal, the multistage free time of the second business is equal, and the first business is interted
The second business free time transmit, comprise the steps:
First, by the first delineation of activities into several the first business of duration identical subtasks, the first business is appointed
The duration of business is not more than any one section of free time of the second business;
Then, according to the cephalocaudal order of the first business, successively the first business subtask is interspersed in into second
Transmit in the free time corresponding with the first business subtask of business.
The continuous business of non-temporal, as detachable the opening of the business is transmitted, and the duration root of the subservice for splitting
Depending on the size of free time, that is to say, that once the available free time just can be transmitted in the second business, the first of transmission
Depending on how many portfolios of business is according to the size of free time, need to only meet and transfer the first business in the time period of regulation
Finish, specifically, the free time of the second business is ranked up according to the sequencing of time, by the first business according to from
The order of head to tail is divided into several the first business subtasks, and each first task subtask is in corresponding free time
Middle transmission, such as:The 3rd the first business subtask that sequencing according to the first business sorts arranges suitable according to time order and function
Transmit in 3rd free time of sequence sequence.
If the first business is the continuous business of non-temporal, the multistage free time of the second business, the first business is interted
It is transmitted in the free time of the second business, comprises the steps:
According to the sequencing of free time, the first business is from first to last divided into corresponding with free time one by one
One business subtask, the duration of the first business subtask is less than or equal to the free time length of the second corresponding business;
Transmit during first business subtask is interspersed in into the free time of the second corresponding business.
In this step, the first business of non-temporal continuous type is interspersed in the free time of the second business that free time is not waited
It is transmitted in time, the first business is from first to last in turn divided into by several according to the length of the free time of the second business
First business subtask, the duration of each the first business subtask is not more than the duration of corresponding free time, tool
Body is to be ranked up the free time in the second business according to the sequencing of time, by the first business according to from first to last
Order be divided into the first business subtask corresponding with the free time sorted according to upper time order and function, first task subtask
Duration according to corresponding free time depending on.
If the first business includes Time Continuous business and the continuous business of non-temporal, the free time of the second business is equal, will
First business is interspersed in the free time of the second business and is transmitted, including:
First, in the free time of the second business duration is searched more than or equal to Time Continuous industry in the first business
First free time of business duration;
Secondly, by Time Continuous business be interspersed in for the first free time in be transmitted;
Again, by the continuous delineation of activities of non-temporal in the first business into several the first business subtasks, described first
The duration of business subtask is less than or equal to second business corresponding per section of second free time.
In this step, the first business includes Time Continuous business and the continuous business of non-temporal, due to Time Continuous business
Must transfer within one section of free time, can not be split and be transmitted, the present embodiment connects first for the time in the first business
The free time of continuous traffic assignments first, if the duration that free time is unsatisfactory for the Time Continuous business in the first business is long
Degree, then no longer carry out the judgement of the continuous business of non-temporal, otherwise, the Time Continuous business in the first business is transmitted first, then
It is again the non-temporal continuous free time of traffic assignments second in the first business, because the free time of the second business is identical, divides
Into the first business subtask duration it is also identical, the duration that need to only meet the first business subtask is not more than second
Free time, while transferring within the time period of regulation.
If the first business includes Time Continuous business and the continuous business of non-temporal, the free time of the second business, incite somebody to action
First business is interspersed in the free time of the second business and is transmitted, and comprises the steps:
First, be Time Continuous service selection in the first business not less than its duration the first free time and pass
The defeated Time Continuous business;
Secondly, divide successively simultaneously according to the length of the second free time after the free time of the continuous business of transmission time
The continuous business of non-temporal in the first business is transmitted, the duration of the continuous business of non-temporal of division no more than transmits non-temporal
The length of the second free time of continuous business.
In this step, the free time in the second business is unequal, is first the Time Continuous business in the first business
Lookup meets the first free time of duration requirement, then further according to the second free time after the first free time
First delineation of activities is several the first business subtasks by length, and the second free time is sub not less than the first business of its transmission
The duration of task, if being no longer the first business here, search less than the first free time for meeting Time Continuous business
In non-temporal continuous business arrangement free time be transmitted.
In the present embodiment, the second business includes several periodic traffics, is provided between two neighboring periodic traffic
Free time, that is, the free time that the first business is interspersed between two neighboring periodic traffic is transmitted, so
Arrange, effectively prevent the wasting phenomenon for being transmitted and causing for the bandwidth of the first business and the second traffic assignments independence,
Largely optimize the bandwidth of business information transmission.
Used as concrete implementation mode, an application example is as follows:
(1) periodic traffic type is set as α, elastic business type is β, Batch Processing type is γ, triggers initial time
Point be s, triggering the end time point be e, when a length of t, business duration be tl
(2) when the network fragment that β business takes α business is transmitted, need to ensure available α business triggered time section
Within β business triggered times section interval, meanwhile, can be needed to meet β business on time dimension with the network fragment of α business
Transmission needs, that is, meet:
Wherein n=0,1,2....
(3) when the network fragment that γ business takes α business is transmitted, need to ensure the available α business triggered time
Section γ business triggered times section interval within, meanwhile, can be needed to meet γ industry on time dimension with the network fragment of α business
The transmission of business needs, due to γ business can burst characteristic, more than one week is may span across in the triggered time section of γ business
The α business of phase, that is, meet:
Wherein n=0,1,2...., δ=1,2,3....
(4) when α, β, γ business simultaneous transmission, due to β business can not burst, therefore, the periodic network fragment of α business
By priority match β business, when β business cannot trigger matching condition, then may proceed to match γ business, when γ business also cannot
Match somebody with somebody, then this time network fragment optimization failure;When the triggering of β business is matched, then rest network fragment will continue to match γ business.This
When, needs ensure after β business is matched, available α business triggered time section γ business triggered times section interval within, together
When, can be needed to meet the transmission needs of γ business on time dimension with the network fragment of α business, because β business is matched into
Really, therefore, β business triggered time initial times now will be confirmed as s 'β, triggering the end time will be confirmed as e 'β, and
Meet:
Now, γ business needs to meet:
(5) matching condition of three class business is set into corresponding function, if:For P (α, β),
For U (α, β),
For P (alpha, gamma),
For U (alpha, gamma),
For U (α, beta, gamma),
Then the matching flow process of tri- kinds of business of α, β, γ is as shown in Figure 2.
The method is realized using the mode of software defined network, during SDN controllers are integrated in the form of algorithm.The method
Suitable for the multiplexing power communication network transmission channel of the power business with cyclical transmission characteristic and deadline drive characteristic
Scene.Power cycle business, elastic type business and background class traffic have the triggered time and duration of precognition.Periodically
The free time of business is fixed reference, and elastic business is required to be matched with this reference value with Batch Processing.Elastic type
Business has a deadline drive characteristic, but can not segment transmissions, accordingly, it would be desirable to priority match periodic traffic it is idle when
Between.Background class traffic has turn off event drive characteristic, and can be segmented and be transmitted, therefore, finally match periodic traffic
Free time.
The program predefines the biography of the various power businesses with different time characteristic using the mode of software defined network
Defeated attribute, is transmitted, effective control by the way that deadline driving business is interspersed in the idle bandwidth of periodic traffic
The maximum concurrent data amount of transmission channel, reduces network fragment, improves the service efficiency of transmission channel, solves power telecom network money
Repeated construction problem caused by source utilization rate is low.
Embodiment 2
The present embodiment provides a kind of business information transmitting device, structured flowchart as shown in figure 3, including:
Whether the first judging unit 01, the initial time for judging the first business is located in the initial time section of the second business,
Wherein described second business is time discontinuous business, and business duration and free time are included in the initial time section of the second business
Time;
Second judging unit 02, if the initial time of the first business is located in the initial time of the second business, judges the
Whether total duration of two business is not more than the initial time of second business with total duration sum of the first business
Section;
Transmission unit 03, if the duration of the second business is not more than described first with the duration sum of the first business
The initial time section of business, then be transmitted the free time that the first business is interspersed in the second business.
In the present embodiment, the 3rd judging unit is also included in transmission unit, to judge that the free time of the second business is
The requirement of the no duration for meeting the first business.
Obviously, above-described embodiment is only intended to clearly illustrate example, and not to the restriction of embodiment.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 to be exhaustive to all of embodiment.And the obvious change thus extended out or
Among changing still in the protection domain of the invention.