Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
As shown in Figure 1, the schematic flow sheet of a kind of business recognition method that proposes for the embodiment of the invention one, this method may further comprise the steps:
The Cn value of a plurality of service frame in the cycle that step S101, comparison are obtained in a default measurement period determined maximum Cn value and the minimum Cn value of current business.
Concrete, in this step, obtaining of the Cn value of each service frame in the cycle is to realize that by serving clock zone side and the double-counting of client clock territory side and the mode of three-way handshake particular content is as follows:
Service clock zone side is periodically counted the service clock pulses number, and simultaneously, client clock territory side is periodically counted the client clock umber of pulse;
Service clock zone side reaches service frame during the cycle at counting, generates the ending request sign, and beginning next round counting, finishes and shakes hands for the first time;
When client clock territory side detects the ending request sign of service clock zone adnation one-tenth, count value is saved as the Cn value in this service frame cycle, and begin the next round counting;
Behind the Cn value stabilization of preserving, client clock territory side is that the ending request sign generates the corresponding response identification that finishes, and finishes second handshake;
When service clock zone side detect client clock territory side be the ending request sign generate the end response identification time, obtain the Cn value in this service frame cycle that client clock territory adnation becomes;
Service clock zone side discharges the ending request sign, finishes for the third time and shakes hands.
When client clock territory side detects service clock zone release ending request sign, discharge and finish response identification.
Need to prove; the acquisition methods of service frame Cn value in the cycle that the above-mentioned double-counting that passes through service clock zone side and client clock territory side and the mode of three-way handshake realize only is a kind of preferred embodiment among the present invention; other methods that can realize that the Cn value is obtained can be used equally in this step, and such variation does not influence protection scope of the present invention.
Step S102, search the business record that whether exists maximum Cn value and minimum Cn value with current business to be complementary in the default Cn storehouse.
Wherein, comprise a plurality of business records in the default Cn storehouse, each business record comprises the type of service of known business, the maximum Cn value of this known business and the minimum Cn value of this known business at least.
What need further specify is that the concrete account form of above-mentioned parameter is as follows:
Definite method of the maximum Cn value of known business is:
Definite method of the minimum Cn value of known business is:
Wherein, Rc represents the client signal bit rate, and Rs represents the service frame bit rate, and Pc represents the client signal frequency deviation, and Ps represents the service frame signal frequency deviation.
Based on above-mentioned Cn lab setting, the search procedure of this step is specially:
Search and whether have a business record in the default Cn storehouse, the maximum Cn value of the known business that this business record is included is more than or equal to the maximum Cn value of current business, and the minimum Cn value of the included known business of this business record is less than or equal to the minimum Cn value of current business.
When existing with the maximum Cn value of current business and business record that minimum Cn value is complementary in the default Cn storehouse, execution in step S103;
When business record that the maximum Cn value and the minimum Cn value that do not exist in the default Cn storehouse with current business are complementary, execution in step S104.
Further, search finish after, the content of operation of this step also comprises to be counted the actual queries number of times of this current business.
Step S103, determine business record the type of service of corresponding known business be the type of service of current business.
In this step, when also comprising the normal Cn value of known business in the default Cn storehouse, this method also comprise according to business record corresponding known business normal Cn value determine the Cn initial value of current business, wherein, definite method of the normal Cn value of this known business is:
Wherein, Rc represents the subscriber signal bit rate, and Rs represents the TS bit rate, and Pc represents the client signal frequency deviation.
Concrete definite mode is Cn initial value=Cn (normal).
Step S104, judge current business the actual queries number of times whether less than the maximum inquiry times of current business.
The actual queries number of times of current business changes step S101 over to during less than the maximum inquiry times of current business, and the maximum Cn value by determined current business in the default measurement period of the next one and minimum Cn value are carried out next round and searched in the Cn storehouse.
When the actual queries number of times of current business is not less than the maximum inquiry times of current business, determine the traffic identification failure of current business, finish the traffic identification of current business.
Further, when the actual queries number of times of current business is not less than the maximum inquiry times of current business, can confirm that current business is the new business different with other known business, so, said method can also comprise that the information with this current business is added into the Cn storehouse, generates new business record.
Need further be pointed out that; above-mentioned information that will this current business is added into the Cn storehouse; the operation that generates new business record is the further optimization of the technical scheme that proposes of the embodiment of the invention; can realize the timely collection of new business information and obtain do not influence protection scope of the present invention but whether comprise this step.
The technical scheme of the embodiment of the invention has the following advantages, because adopted the method for searching identification current business in Cn storehouse according to the Cn value after gathering and add up in real time, thereby, realized the accurate identification to type of service, reach raising traffic identification accuracy, simplified the effect of traffic identification flow process.
Based on the method that the invention described above embodiment one proposes, the embodiment of the invention two has also proposed a kind of traffic identification device, and its structural representation comprises as shown in Figure 2:
Determination module 1 is used for comparing the Cn value in a plurality of service frame cycle of obtaining in a default measurement period, determine maximum Cn value and the minimum Cn value of current business, specifically comprises:
The Cn value is obtained submodule 11; be used for obtaining the Cn value in each service frame cycle; concrete acquisition methods can be realized by service clock zone side illustrated in the embodiment of the invention one and the double-counting of client clock territory side and the mode of three-way handshake; can realize by other means that also the variation of concrete acquisition methods does not influence protection scope of the present invention.
Search module 2, be used for searching the business record whether default Cn storehouse exists maximum Cn value and minimum Cn value with determination module 1 determined current business to be complementary, specifically comprise:
Counting submodule 21 is used for the actual queries number of times of current business is counted.
Service identification module 3, be used for when searching module 3 when finding the business record that maximum Cn value and minimum Cn value with current business be complementary in the Cn storehouse of presetting, according to the traffic type information of this business record determine business record the type of service of corresponding known business be the type of service of current business, specifically comprise:
Judge submodule 31, whether the actual queries number of times of the current business that is used for judging that counting submodule 21 is counted is less than the maximum inquiry times of default current business;
Heavy querying triggering submodule 32, be used for when judging actual queries number of times that submodule 31 is judged current business less than the maximum inquiry times of default current business, trigger the maximum Cn value of searching the current business in the measurement period that module 2 presets by the determination module 1 determined next one and minimum Cn value and in the Cn storehouse, carry out next round and search.
Further, also comprise in the service identification module 3 and be specially one or more in the following submodule:
Add submodule 33, be used for when judging that submodule 31 judges that the actual queries number of times of current business is not less than the maximum inquiry times of default current business, the information of current business is added into the Cn storehouse;
Initial value is determined submodule 34, be used for when judging actual queries number of times that submodule 31 is judged current business less than the maximum inquiry times of default current business, determine to search the corresponding known business of business record institute that module 2 finds normal Cn value be the Cn initial value of current business.
Further, said apparatus also comprises:
Module 4 is set, is used for the measurement period that comprises a plurality of service frame cycles is set, the maximum inquiry times of current business and Cn storehouse are for each above-mentioned module provides the parameter foundation.
Above-mentioned module can be distributed in a device, also can be distributed in a plurality of devices.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
The technical scheme of the embodiment of the invention has the following advantages, because adopted the device of searching identification current business in Cn storehouse according to the Cn value after gathering and add up in real time, thereby, realized the accurate identification to type of service, reach raising traffic identification accuracy, simplified the effect of traffic identification flow process.
In the technical scheme that the above-mentioned embodiment of the invention proposes, comprise that the Cn initial value produces and traffic identification two aspects.
Below, the embodiment of the invention three is specifically described above content in conjunction with concrete enforcement scene.
In the present embodiment, at first by utilizing bilateral counting and three-way handshake mechanism accurately to obtain the Cn value in each service frame cycle, statistics by certain hour, obtain Cn maximum Cn (max), Cn minimum value Cn (min), then Cn (max), the Cn (min) that produces mated with record in the Cn storehouse, thereby obtain Cn initial value and type of service.
Its schematic flow sheet may further comprise the steps as shown in Figure 3:
Step S301, determine statistic period T and matching times M, and the initial value that actual match number of times M ' is set is 0.
Statistic period T comprises n service frame cycle, i.e. statistic period T=n* service frame cycle.
Wherein, the n value need arrange, and this n value is configured to 1 at least; In service frame cycle=service frame size/service frame speed, service frame speed is not limited to the speed of a concrete service frame, can be TS speed arbitrarily.
For convenience of description, in the present embodiment, speed is as service frame speed with TS (tributary unit, G.709 Clause19 has defined OPUk TS in the suggestion), and the service frame size remains unchanged,
Then the service frame cycle becomes service frame size/TS speed.For the OTN network of current standard definition, OPU1 is as minimum TS, and OPU2 is divided into 4 time slots (TS1, TS2, TS3, TS4), OPU3 be divided into 16 time slots (TS1, TS2 ..., TS16).For load bearing unit ODUk (k is 1,2,3), select TS speed like this, the frequency in the middle of having unified to realize is selected, and namely uses the TS time slot frequency in the middle of realizing, the service frame cycle is 15232/TS speed.
The selection that it is pointed out that TS is not limited to OPU1, and arbitrarily the parameter that can reach constructed effect such as TS time slot or minimum cross grain can be used for realizing above-mentioned steps equally.
Further, determine matching times M, namely by configuration M value, determine the follow-up Cn storehouse coupling of carrying out at most M time, the M value is configured to 1 at least.
Step S302, statistics Cn value are determined maximum Cn value and the minimum Cn value of current business.
Cn primary system meter period T has comprised n service frame cycle, each service frame cycle all can produce a Cn value, in the present embodiment, Cn value producing method preferably adopts service clock zone side and the double-counting of client clock territory side and the mode of three-way handshake to realize that Fig. 4 is its schematic flow sheet.
As shown in Figure 4, the dotted line right side is the service clock zone, and the dotted line left side is the client clock territory.
In this flow process, periodically counting clock pulse separately under the clock zone separately respectively by counter B in counter A and the client clock territory in the service clock zone, guarantee to count errorless, by three-way handshake, finish a service frame under the cycle Cn value obtain and the Cn value of cross clock domain is transmitted.
Wherein, the flow process of three-way handshake is specially: once shake hands, obtain the Cn value; Secondary is shaken hands, and transmits the Cn value; Three-way handshake finishes this and produces the Cn value, specifies as follows:
Step S401, service clock zone side counter A periodically count the service clock pulses number.
When service clock zone side counter A detects a service clock pulse, the count value of serving clock pulses number is added 1.
Step S402, service clock zone side counter A counting arrive service frame during the cycle, trigger the ending request mark.
Concrete, in the present embodiment, concrete triggering mode is high level for the home position with the ending request mark, realizes shaking hands for the first time.
Step S403, client clock territory side counter B periodically count the client clock umber of pulse.
When client clock territory side counter B detects a client clock pulse, the count value of client clock umber of pulse is added 1.
Step S404, when client clock territory side detects the ending request mark and becomes high level, then the count value of counter B is saved as the Cn value and begins new round cycle count simultaneously.
Step S405, client clock territory side are waited for after the Cn value stabilization of preserving, and trigger and finish response flag.
Concrete, in the present embodiment, concrete triggering mode is high level for the home position that will finish response flag, realizes second handshake.
Step S406, when service clock zone side detects when finishing response flag and becoming high level, then gather the Cn value that client clock territory side is preserved.
Discharging the ending request mark simultaneously, is low level with its home position, realizes shaking hands for the third time;
When client clock territory side detects the ending request mark and becomes low level, then discharge and finish the response sign, be low level with its home position.
So far, the Cn value in a service frame cycle produces and finishes.
In a statistic period T, n the Cn value that produces further added up.
By relatively, obtain maximum Cn value Cn (max), minimum Cn value Cn (min).
Step S303, search the Cn storehouse according to maximum Cn value and minimum Cn value, judge whether there is the business record that is complementary with current business in the Cn storehouse.
Professional Cn (max), Cn (normal), Cn (min) under the service frame cycle (service frame speed is specially TS speed in the present embodiment) known to having recorded at present in the Cn storehouse, every kind of business is unique in the Cn value of service frame under the cycle, do not exist its Cn of multiple business (max), Cn (normal), Cn (min) to intersect situation mutually, Cn can bring in constant renewal in along with the growth of type of service in the storehouse simultaneously.
Below, describe as follows to Cn storehouse make:
(1), constituted by many records;
(2), every record can be quintuple form, i.e. { type of service, X-TS, Cn (max), Cn (normal), Cn (min) }, wherein X-TS represents that this business need take X TS time slot bandwidth;
Be embodiment with TS=1.3Gbits/s at this, calculate some common business, the Cn storehouse of structure is as shown in table 1.
Wherein the Cn (max) of every record, Cn (min), Cn (normal) calculate generation by following formula in the Cn storehouse.
Wherein, Rc represents the client signal bit rate, and Rs represents the TS bit rate, and Pc represents the client signal frequency deviation, and Ps represents the TS signal frequency deviation.
Table 1Cn storehouse
Client |
Channel |
Cn(min) |
Cn(normal) |
Cn(max) |
STM-16 |
2-TS |
29154 |
29155 |
29157 |
STM-64 |
8-TS |
116617 |
116621 |
116627 |
STM-256 |
32-TS |
466468 |
466487 |
466506 |
1GE |
TS |
14644 |
14646 |
14648 |
10GE |
4-TS |
120816 |
120830 |
120846 |
40GE |
32-TS |
483265 |
483323 |
483382 |
100GE |
80-TS |
1208162 |
1208307 |
1208453 |
FC-1G |
TS |
12477 |
12478 |
12481 |
FC-2G |
2-TS |
24895 |
24898 |
24902 |
FC-4G |
4-TS |
49790 |
49796 |
49803 |
FC-8G |
7-TS |
99581 |
99593 |
99606 |
FC-10G |
8-TS |
123247 |
123262 |
123277 |
SD-SDI |
TS |
3163 |
3163 |
3164 |
1.5G?HD-SD |
2-TS |
17399 |
17399 |
17401 |
3G?HD-SD |
3-TS |
34798 |
34799 |
34801 |
The make that it is pointed out that the Cn storehouse is not limited to above-mentioned quintuple form, can add any useful information and the ordering of above-mentioned information is adjusted according to actual needs.
Search the Cn storehouse, judge that the idiographic flow that whether has the business record that is complementary with current business in the Cn storehouse is:
M ' adds 1 with the actual match number of times, begins the inferior Cn of M ' storehouse coupling, is about to record in Cn (max), Cn (min) that statistics obtains and the Cn storehouse mate.
Concrete matching principle is: search whether there is a business record in the Cn storehouse, the information of the corresponding a kind of known business of this business record, the maximum Cn value of this known business is more than or equal to the maximum Cn value of current business, and the minimum Cn value of this known business is less than or equal to the minimum Cn value of described current business.
When
Be when having the business record that is complementary with current business in the Cn storehouse, execution in step S304 then;
When
Be when not having the business record that is complementary with current business in the Cn storehouse, execution in step S305 then.
The type of service of the business that step S304, affirmation are complementary is the type of service of current business.
Confirm that the Cn initial value is Cn (the normal)/X in the record, the traffic identification flow process successfully finishes.
Need be pointed out that further that the Cn initial value is except can be by obtaining after the coupling Cn Kucheng merit, n the Cn value that can also produce by record in statistics Cn period T asked its mean value and obtained, and such variation belongs to protection scope of the present invention equally.
Step S305, judge whether actual match number of times M ' reaches matching times M.
When actual match number of times M ' reached matching times M Configuration Values, the failure of traffic identification flow process finished.
When actual match number of times M ' did not reach matching times M Configuration Values, execution in step S302 began new round statistics Cn and Cn storehouse matching treatment.
Further, after actual match number of times M ' reaches matching times M Configuration Values, do not have still that the match is successful, prove that then this business is the new business type, the new business type can be added in the Cn storehouse and upgrade.
The technical scheme of the embodiment of the invention has the following advantages, because adopted the device of searching identification current business in Cn storehouse according to the Cn value of gathering, thereby, realized the accurate identification of type of service and the generation of Cn initial value, reach the accuracy that improves traffic identification and Cn initial value, simplified the effect of traffic identification flow process.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize based on such understanding by the mode that software adds necessary general hardware platform, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.