LCAS is the de-mapping method of harmless switch data bandwidth dynamically
Technical field:
The present invention relates to the dynamically de-mapping method of harmless switch data bandwidth of a kind of LCAS.
Background technology:
In the SDH transport service, LCAS (Link Capacity Adjustment Scheme, Link Capacity Adjustment Scheme) major function is to utilize the self-defined control frame structure of SDH overhead byte, separate the needed VC of mapping (Virtual Capacity with in-band method control institute data carried by data service bandwidth, virtual container) number, and support dynamically harmless bandwidth (being the virtual container number) to switch.Here, the LCAS technology is done with simple introduction.LCAS is called VBA (Variable Bandwidth Allocation, bandwidth varying distributes) technology at first again.As can be seen, the LCAS technology has characteristics such as the flexible and dynamic adjustment of bandwidth, when user bandwidth changes, can adjust VCG (Virtual Concatenation Group, empty appearance group) Member (member) in is the virtual container number, and this adjustment can not produce user's regular traffic to be interrupted.In addition, the LCAS technology also provides a kind of fault tolerant mechanism: certain virtual container in void appearance group lost efficacy, and whole empty appearance group was lost efficacy, but automatically the virtual container that lost efficacy is rejected from void appearance group, and remaining normal virtual container continues transport service; After the virtual container that lost efficacy recovers, system should add empty appearance group by the inefficacy virtual container automatically.In general, the LCAS technology is adjusted VCG two reasons, is respectively, and Link State changes: when LCAS detects when occurring certain Member on the network and losing efficacy, reduce the capacity of VCG automatically; If after detecting the Member reparation of inefficacy, then automatically increase the capacity of VCG.This capacity adjustment all is feasible concerning each Member.Band width configuration changes: the source end of LCAS and the controlling mechanism between the destination, can adjust used VCG capacity according to service traffics and bandwidth particularly according to the capacity of the actual service bandwidth demand adjustment VCG that carries out.In addition, VCG also has identification field GID (Group Identification bit, group id), and it is used for identifying VCG, and the GID of all virtual containers of same VCG is identical.
Considered multiple possible control procedure among the LCAS.Be that convenience is understood, the LCAS control procedure when only losing efficacy with a certain VC that is in the sequence centre among the VCG is below set forth its operation principle.Certain VC among the VCG (being made as virtual container i) lost efficacy:
A.VCG link endpoint node at first detects fault and sends virtual container thrashing message (MST=FAIL), the virtual container of pointing out to lose efficacy (virtual container i) to head end;
B. headend node is changed to the control field CTRL of virtual container i " unavailable (DNU) ", mails to endpoint node;
C. endpoint node begins only to adopt normal VC reorganization VCG, is about to VC deletion temporarily from VCG of losing efficacy;
Inefficacy VC recovers the back:
D. headend node also with VC deletion temporarily from VCG of losing efficacy, only adopts normal VC to send data;
The VC that e.VCG link endpoint node at first detects inefficacy recovers, and sends " virtual container recovers message (MST=OK) " to head end;
F. head end is changed to the control field CTRL of this virtual container " normal (NORM) ", mails to endpoint node.
Though improved the bandwidth availability ratio of transmission system during LCAS technology carrying multiple data service, but it is byte output to VCG output byte (separating mapping process) time, be its single separate the mapping byte be byte, when bandwidth variations, cause the entanglement of from the SDH frame, separating the VC payload data that interleaves easily, thereby influence the quality of transfer of data, cause partial data to lose.
Summary of the invention:
At the existing problem and shortage of de-mapping method of existing LCAS switch data bandwidth, the purpose of this invention is to provide the dynamically de-mapping method of harmless switch data bandwidth of a kind of LCAS that bandwidth can dynamically be adjusted and do not have a data degradation.
The present invention is achieved in that the dynamically de-mapping method of harmless switch data bandwidth of a kind of LCAS, void appearance group wherein is by 16 connected in series forming of virtual container, and set up principal solution mapping table and the standby mapping table of separating, the described mapping table of separating is separated mapping to data in the following manner:
According to the principal solution mapping table, if effective virtual container number n of empty appearance group is then carried out 4 output functions to described empty appearance group and separated the mapping cycle as one less than 4; If effective virtual container number n of empty appearance group, is then carried out 16 output functions to described empty appearance group and separated the mapping cycle as one smaller or equal to 16 more than or equal to 4, wherein, preceding n time is the practical operation work, and back 16-n time is do-nothing operation;
If the standby mapping table of separating is disposed in the bandwidth adjustment, wait for after the effective virtual container that disposes in the principal solution mapping table has been exported the data of a LCAS multi-frame the standby mapping table of separating being switched to the principal solution mapping table that former principal solution mapping table becomes the standby mapping table of separating automatically at once;
Described output function is maximum 4 bytes of each output, and minimum is 0 byte.
Further, described do-nothing operation is the not operation of output byte.
Further, after described data bandwidth is adjusted, empty appearance group with 0 address of the principal solution mapping table of new configuration as initial address.
Further, the standby mapping table of separating of described configuration is specially the standby quantity of separating effective virtual container of mapping table of appointment.
Further, to organize each virtual container all identical for described empty appearance.
Further, each virtual container of described virtual container set can be among VC-3, VC-4, VC-12 or the VC-11 any one.
The present invention is connected in series by 16 identical VC by VCG is set, and adopts the multibyte mapping in the present invention, has improved data bandwidth greatly.Because the multi-frame of LCAS is made up of 16 single frames, the present invention is by being provided with the principal solution mapping table, data are carried out data output by the mapping relations of principal solution mapping table, after bandwidth is adjusted, at first dispose the standby mapping table of separating, it provides bandwidth adjusted data output relation, the standby mapping table of separating is switched to the principal solution mapping table after disposing the data of having exported a LCAS multi-frame among the effective VC among end to be configured and the wait VCG, the data flow of Dao Daing will be exported in the effective VC of new configuration from VCG with new bandwidth afterwards at once.Also be that the present invention only just adjusts VCG when all byte outputs of effective Member of VCG, also promptly a boundary at the LCAS multi-frame switches.This has guaranteed the order of whole data, and data can entanglement.
Description of drawings:
Below in conjunction with accompanying drawing, the present invention is made detailed description.
Fig. 1 separates the mapping process schematic diagram for multibyte of the present invention;
Fig. 2 is a FPGA internal structure schematic diagram of the present invention.
Embodiment:
Empty appearance group of the present invention (VCG) is by connected in series the forming of 16 virtual containers (VC), and the mode of data being separated mapping is as follows:
If effective virtual container number n of empty appearance group is then carried out 4 output functions to described empty appearance group and is separated the mapping cycle as one less than 4;
If effective virtual container number n of empty appearance group, is then carried out 16 output functions to described empty appearance group and separated the mapping cycle as one smaller or equal to 16 more than or equal to 4, wherein, preceding n time is the practical operation work, and back 16-n time is do-nothing operation.If data bandwidth has change, adjust effective virtual container number when only all bytes of all the effective virtual containers in void appearance group are exported, carry out on the border that promptly is adjusted at multi-frame.
Single of the present invention is separated mapping can export a plurality of bytes simultaneously, and minimum 0 byte is 4 bytes to the maximum; Data bandwidth is each adjust after, empty appearance group all with 0 address as initial address.Here, it is all identical to form each virtual container in the empty appearance group, and it can be any kind, includes VC-3, VC-4, VC-12 and VC-11.
The present invention can be achieved by the FPGA platform, and FPGA includes Streams Module, principal solution mapping table, standby mapping table, LCAS protocol analysis module and the VCG of separating.Wherein Streams Module takes out the data byte of configuration in the effective VC among the VCG according to the extraction relation of separating mapping table and providing, and is organized into the data flow of 4 byte wides; The extraction that separating mapping table provides concerns by LCAS protocol analysis block configuration, adjust for convenience, design active and standby two and separated mapping table, the main data pick-up relation that mapping table provides the current bandwidth correspondence of separating of using, the standby mapping table of separating provides bandwidth adjusted data pick-up relation.After LCAS protocol analysis module parses will change to data bandwidth, can be configured the standby mapping table of separating according to new bandwidth value, configuration finish and wait for the data that extracted a LCAS multi-frame among the VCG among the effective VC of configuration after horse back the standby mapping table of separating is switched to the master with separating mapping table, afterwards will be from VCG new extracted data in the effective VC of band width configuration.Each virtual container set has been reserved the bandwidth of 16 virtual containers in the present invention, for understanding the simplification of mapping table configuration, validity to the virtual container of virtual container set has been done to give a definition: each effective virtual container must be at the VC virtual container of determining after the LCAS protocol negotiation to use in this VCG, and each virtual container puts in order in VCG and must arrange with its SQ that is assigned with in the LCAS agreement (serial number), automatically reject for the virtual container needs that DNU (Don ' tUse) state occurs, and fill up by the VC virtual container of next SQ correspondence.Like this, separate mapping table and just have 16.
The present invention separates mapping for the multibyte virtual container: in present system because the restriction of clock frequency, for the more data traffic of high bandwidth is provided, often adopt the mode of growth data bit wide, but it is the requirement that mapping mode can't satisfy bandwidth of separating of unit with single byte that the increase of data bit width makes traditional, so the present invention adopts the mode of separating mapping table to design the de-mapping method that is applicable to m (m=0,1,2,3,4) byte.As shown in Figure 1, separate the situation of mapping 4 bytes for single, byte A1 among virtual container VC_4, VC_5, VC_6 and the VC_0, A2, A3, A4 separate simultaneously respectively according to the configuration of separating mapping table and are mapped in the Streams Module, all export up to all bytes of all virtual containers of VC_0 to VC_6.The mapping table of separating of the present invention is meant that the bytes of payload that is used for a plurality of VC virtual containers is fetched into the list item of the required corresponding relation of the data flow of multibyte bit wide.To separate map bandwidth in order improving, can to export the individual byte of m (m=0,1,2,3,4) at every turn simultaneously, concrete number is relevant with the VC number that has disposed.Because LCAS protocol requirement dynamic nondestructive is adjusted professional data bandwidth, promptly dynamically adjust the number of effective VC, and every separated the corresponding relation that mapping table is only represented a kind of data bandwidth, therefore need switch separating between the mapping table of difference configuration when the dynamic adjusting data bandwidth.
The present invention support at present in the configuration of every kind of data bandwidth effectively the VC number be j (j=0,1,2 ... .16), the result that every single is separated mapping takes out a byte from certain VC virtual container, separate at the multibyte virtual container under the situation of mapping, may from a plurality of VC virtual containers, each taking-up simultaneously go into a byte at every turn.But be 4 to the maximum owing to separate the byte number of mapping table control output at every turn, in effective VC virtual container number is under the situation of non-4 integral multiple, every single is separated mapping result may cause that the remaining byte number of employed each effective VC virtual container does not wait under the current data bandwidth, promptly the border of VC virtual container separate at every single that mapping finishes may be unjustified.Under the constant situation of data bandwidth, the unjustified situation in above-mentioned VC virtual container border does not influence the multibyte data flow of output, but when bandwidth is adjusted, if the byte of output makes the border of mapping table unjustified, if switch and to separate mapping table and may cause a part of data entanglement and lose, thus the byte order entanglement that the multibyte data that causes exporting flows.The design is switched the opportunity of separating mapping table in order to support the bandwidth of dynamically harmless adjustment data service by LCAS control.At first must satisfy the byte number of separating mapping table circulation one week output should be able to make the remaining byte capacity of each VC virtual container equate, because separating mapping table output word joint number is 4 to the maximum, effectively the number of VC virtual container is indefinite between 0 to 16 again, therefore if only take out 4 bytes from each effective VC virtual container every one week of circulation, just can after 16 operations, respectively take out 4 bytes from 16 effective VC virtual containers at most, if effective VC virtual container number of configuration is n (4<=n<=16), then can take out 4 bytes from n VC virtual container after n operation, residue (16-n) individual single is separated the operation of mapping and is not taken out byte; 0<n<4 o'clock only need to take out operation 4 times.Be cycle period with 16 like this, can make each effective VC virtual container take out identical byte number in every one week of circulation.Secondly, with the multiple of 4 bytes as the remaining byte capacity value of VC virtual container of separating after one week of mapping, be necessary for the integral multiple of 4 bytes with regard to the capacity that requires Member, independent application VC-3, VC-4 at SDH all can't satisfy like this, but because the LCAS multi-frame is formed this condition by 16 single frames, as long as switch, promptly can not cause the entanglement of data and lose at the boundary of LCAS multi-frame.Therefore, VCG adopts 16 VC connected in series, and its capacity can satisfy above-mentioned condition, and can support any byte to separate the mapping switching in multiframe boundaries.
Because the dynamic adjusting data bandwidth need switch in different separating between the mapping table, reading of contents in table for convenience requires when each the switching all with 0 address as initial.Data flow bit wide among the present invention is i.e. 4 bytes of 32bit, each receivable byte number may in 0,1,2,3,4 any one, if want the output word joint number of each list item original position to have periodically, promptly separate the mapping relations words by the list item configuration capable of circulation, the byte number of list item circulation one week output must be 4 integral multiple, form this condition in conjunction with the LCAS multi-frame by 16 single frames again, VCG is connected in series by 16 VC.
As shown in Figure 2, the present invention can realize as verification platform with FPGA, FPGA by Streams Module D, principal solution mapping table M, standbyly separate mapping table M`, modules such as LCAS protocol analysis module L, VC virtual container set VCG constitute.Wherein Streams Module D takes out the data byte of configuration in the effective VC among the VCG according to the extraction relation of separating mapping table M and providing, and is organized into the data flow of 4 byte wides; The extraction that separating mapping table M provides concerns by LCAS protocol analysis block configuration, adjust for convenience, design active and standby two and separated mapping table, the main data pick-up relation that mapping table M provides the current bandwidth correspondence of separating of using, the standby mapping table M` that separates provides bandwidth adjusted data pick-up relation.When LCAS protocol analysis module L is resolved to after data bandwidth will change, can be configured the standby mapping table M` that separates according to new bandwidth value, configuration finish and wait for the data that extracted a LCAS multi-frame among the VCG among the effective VC of configuration after horse back the standby mapping table M` that separates is switched to the master with separating mapping table M, afterwards Streams Module D will be from VCG new extracted data in the effective VC of band width configuration.