Embodiment:
As shown in Figure 1, be the workflow schematic diagram of the harmless master and backup pages method for designing of switching of realization LCAS agreement of the present invention.Specifically comprise the following aspects:
1. active and standbyly adopt a dual-port ram to realize that a port is read-only, is used for the meter reading item with list item, another port is only write, and is used for the configuration of list item, distinguishes master and backup pages by highest address bit.
2. the configuration of list item (being writing of ram) is finished the configuration to standby list item this moment by control module control highest address bit.Different with most in the past designs, can not consider fully and the cooperating of real time data frame to the configuration of standby list item that here also needn't consider opportunity of disposing, control module can optionally dispose.
3. the reading of list item (promptly main use with the page) according to the high address that list item high address latch module is sent here, read the content of table and used for operational module.
4. latching of high address finished the switching of master and backup pages, finishes the synchronous of contents in table and real time data frame simultaneously, and it is the part of most critical among the design.After control module configures standby contents in table, revise the list item high address, do not finish active and standby switching this moment,, do switching again by the arrival of high address latch module wait switching machine meeting.
Switching machine can the generation strict guarantee at the frame boundaries place of LCAS multi-frame (16 frame), thereby guarantee cooperating of contents in table and real time data frame.
Fig. 2 shows the workflow diagram of the present invention's one specific embodiment.In the present embodiment, comprised at the source end and realized the harmless method of switching of LCAS agreement, also be included in the place end and realize the harmless method of switching of LCAS agreement.Among the figure:
SOURCE holds (source end), and workflow is as follows:
1. control module is selected mapping item by revising the high address;
2. control module is selected the LCAS control frame corresponding with mapping item by revising the high address;
3. locate standby LCAS control frame is changed into main using in adjustment chance (MFI1=0000);
4. equipment sends main LCAS control frame with the page;
5. the LCAS control frame of the actual transmission of device parses provides the selection information of mapping item;
6. mapping item is located the standby page is changed into the main page of using in adjustment chance (MFI1=0000);
By the above frame composition module that operates in data message is mapped to the SDH frame;
SINK holds (Su Duan), in two kinds of situation:
One, do when adding MEMBER (the minimum virtual container unit in the logical channel) operation, workflow is as follows:
1 ', resolve the LCAS control frame;
2 ', submit control module LCAS resolving information to;
3 ', control module revise logical channel ← → the standby mapping table of virtual container, revise the list item high address then, equipment switches to the standby page (control module notification source end adds successfully) when switching machine meeting (MFI1=0000);
4 ', equipment is resolved the LCAS control frame voluntarily, and when this Virtual Container Trunk did not have data, this passage of notice reconstructed module was invalid; When this virtual container had data, this passage of notice reconstructed module was effective, simultaneously reconfiguration information is submitted to reconstructed module;
5 ', reconstructed module is selected mapping table according to the reconfiguration information structural physical map information of each virtual container;
6 ', mapping table changes the standby page into the main page of using in change place of real data formation.
Two, when deleting MEMBER or DNU (interim obsolete virtual container in the Virtual Concatenation logical channel) operation, workflow is as follows:
A ', parsing LCAS control frame, when this Virtual Container Trunk did not have data, this passage of notice reconstructed module was invalid;
B ', reconstructed module select mapping table according to the reconfiguration information structural physical map information of each virtual container;
Certain virtual container of C ', notice control module logical channel is deleted or is in the DNU state;
Convert data message to by the above frame composition module SDH frame that operates in;
Wherein, mapping item is operated in the physical channel mapping relations after the reconstruct rather than is operated in the logical mappings relation of logical channel.Be illustrated in figure 9 as physical channel recombination function schematic diagram.For example, certain logical channel is made of 1,2,3 (DNU) and 4, through reconstruct, is configured to physical channel 1 ', 2 ' and 3 ' by 1,2 and 4 of reality use.So only need equal the mapping table of MEMBER quantity rather than equal the mapping table of 2^MEMBER quantity, effectively reduce the quantity of mapping item, determine mapping table voluntarily for equipment and lay a good foundation.
Fig. 3 to Fig. 8 shows the mutual control flow of LCAS processing module and control module.
Fig. 3 to Fig. 5 shows the interaction flow of source end and control module, and " modify steps A " among the figure refers to:
Revise the UPMAPPER mapping table
→ modification LCAS control word
→ modification VCG ← → VC NUM table
→ revise VCG ← → VC NUM shows the high address
→ modification LCAS control frame high address
As shown in Figure 3, for SO adds the MEMBER flow process, among the figure:
STEP1: issue the interpolation order by control module;
STEP2: revise the standby page of LCAS control frame, revise the standby page of mapping table, revise LCAS control frame high address;
STEP3, STEP4, STEP5: determine to add order according to the feedback of far-end and whether confirmed by far-end;
STEP6: re-construct data frame structure;
STEP7: whether inquiry far-end ACK overturns, and determines whether to send next order.
As shown in Figure 4, for SO deletes the MEMBER flow process, among the figure:
STEP1: issue by control module and to delete order;
STEP2: revise the standby page of LCAS control frame, revise the standby page of mapping table, revise LCAS control frame high address, re-construct data frame structure;
STEP3, STEP4, STEP5: determine to delete according to the feedback of far-end whether order is confirmed by far-end;
STEP6: whether inquiry far-end ACK overturns, and determines whether to send next order.
As shown in Figure 5, be the flow process of SO processing DNU, among the figure:
STEP1, STEP2: the LCAS control frame of resolving far-end confirms to have DNU to produce;
STEP3: revise the standby page of LCAS control frame, revise the standby page of mapping table, revise LCAS control frame high address, re-construct data frame structure;
STEP4: the LCAS control frame of resolving far-end confirms to have DNU to recover to produce;
STEP5: revise the standby page of LCAS control frame, revise the standby page of mapping table, revise LCAS control frame high address, re-construct data frame structure.
Fig. 6 to Fig. 8 shows the interaction flow of SK end and control module." modify steps B " refers among the figure:
Modification with reference to MST → modification VCG ← → VC NUM table
As shown in Figure 6, for SK deletes the flow process of MEMBER, among the figure:
STEP1: the LCAS control frame of resolving far-end defines deletes order, and logic is the reconstruct data frame voluntarily;
STEP2: the notice administration module is revised database, and administration module is received by the order of LCAS notice far-end;
STEP3: administration module is sent out ACK order notice far-end can receive next order.
As shown in Figure 7, be the flow process of SK interpolation MEMBER, among the figure:
STEP1: the LCAS control frame of resolving far-end defines and adds order, and logic is the reconstruct data frame voluntarily;
STEP2: the notice administration module is revised database, and administration module is revised mapping item;
STEP3: administration module is received by the order of LCAS notice far-end;
STEP4: the data that receive reconstruct;
STEP5: administration module is sent out ACK order notice far-end can receive next order.
As shown in Figure 8, for SK handles the DNU flow process, among the figure:
STEP1: the LCAS control frame of resolving far-end defines DNU, and logic is the reconstruct data frame voluntarily;
STEP2: the notice administration module is revised database, and administration module is revised mapping item;
STEP3: the LCAS control frame of resolving far-end defines DNU and recovers, and logic is the reconstruct data frame voluntarily;
STEP4: the notice administration module is revised database, and administration module is revised mapping item.