Embodiment
As stated in the Background Art, the configuration of APS mode of operation (comprising backup mode and switch mode) is carried out in existing communication equipment, all often carry out manually, need on the one hand to increase more manual operation, on the other hand, when only carrying out the configuration of APS mode of operation to the communication equipment of link one end or upgrade, also need to consider the adaptation with the APS mode of operation of the communication equipment of opposite end, operating process is loaded down with trivial details, and allocative efficiency is low.
In order to overcome such problem, the present invention proposes a kind of collocation method of APS mode of operation, when carrying out the configuration of APS mode of operation to a communication equipment, the APS mode of operation that can directly configure according to the communication equipment of opposite end carries out local automatic configuration or renewal, thus, while raising allocative efficiency, also achieve the adaptation of the APS mode of operation configured with the communication equipment of opposite end, ensure that the normal operation of the APS mode of operation after configuration.
As shown in Figure 3, be the schematic flow sheet of the collocation method of a kind of APS mode of operation of the present invention's proposition, the method specifically comprises the following steps:
Step S301, communication equipment receive the SDH frame of the communication equipment of opposite end.
In concrete application scenarios, sending SDH frame to adjacent communication equipment is that communication equipment normality is under normal operating conditions arranged, therefore, in this step, communication equipment access network and start after, the reception of the SDH frame that the communication equipment that just directly can carry out opposite end sends.
Step S302, communication equipment determine whether the APS mode of operation configuration carrying out self according to opposite end APS mode of operation.
When the APS mode of operation configuration carrying out self according to opposite end APS mode of operation determined by communication equipment, perform step S303;
When the APS mode of operation configuration not carrying out self according to opposite end APS mode of operation determined by communication equipment, communication equipment configures the APS mode of operation of self according to the backup mode information of local terminal and shift mode information.
Step S303, communication equipment judge to be received from the SDH frame of the communication equipment of opposite end whether comprise shift mode information.
If judge that this SDH frame comprises shift mode information, perform step S304;
If judge that this SDH frame does not comprise shift mode information, communication equipment configures the APS mode of operation of self according to the backup mode information of local terminal and shift mode information.
Step S304, communication equipment configure the APS mode of operation of self according to the backup mode information in SDH frame and shift mode information.
After executing above-mentioned processing procedure, communication equipment completes the configuration of the APS mode of operation of self, and afterwards, self APS communication device initiated, performs corresponding business process.
Further, after self APS communication device initiated, if communication equipment receives APS interrupt Indication message, also need to carry out corresponding APS mode of operation update process, concrete handling process as shown in Figure 4, comprises the following steps:
Step S401, communication equipment determine whether the APS mode of operation configuration carrying out self according to opposite end APS mode of operation.
When the APS mode of operation configuration carrying out self according to opposite end APS mode of operation determined by communication equipment, perform step S402;
When the APS mode of operation configuration not carrying out self according to opposite end APS mode of operation determined by communication equipment, the APS mode of operation upgrading self abandoned by communication equipment.
Step S402, communication equipment judge the APS received interrupts whether comprising shift mode information in Indication message.
If communication equipment judges that APS interrupts comprising shift mode information in Indication message, perform step S403;
If communication equipment judges that APS interrupts not comprising shift mode information in Indication message, communication equipment stops the APS mode of operation of amendment self.
Step S403, communication equipment judge the backup mode information of backup mode information that APS interrupts comprising in Indication message and shift mode information and the APS pattern information of self and shift mode information whether consistent.
If judged result is inconsistent, then need the APS pattern information reconfiguring local terminal, perform step S404;
If judged result is consistent, then do not need the APS pattern information reconfiguring local terminal, communication equipment stops the APS mode of operation of amendment self.
Step S404, communication equipment interrupt the APS mode of operation of backup mode information and the shift mode information renewal self comprised in Indication message according to APS.
Compared with prior art, the present invention has the following advantages:
By applying technical scheme of the present invention, communication equipment can be made by corresponding communication information to be known the APS mode of operation of the communication equipment of opposite end, and the APS mode of operation of adaptive configuration self accordingly, thus, achieve the automatic configuration of communication equipment for the APS mode of operation of self, ensure that the consistency of the APS mode of operation of local terminal and opposite end, reduce the complexity of the layoutprocedure of communication equipment being carried out to APS mode of operation, decrease the wrong hidden danger that the process of manually carrying out the configuration of APS mode of operation and inquiry opposite end configuration information is brought, improve allocative efficiency and the accuracy of corresponding APS layoutprocedure.
Below, in conjunction with concrete application scenarios, technical scheme proposed by the invention is described.
As shown in Figure 5, be the schematic flow sheet of the collocation method of the APS mode of operation under a kind of embody rule scene of the present invention's proposition, after communication device configured APS startup comes into force, the method specifically comprises the following steps:
The SDH frame that the communication equipment that step S501, communication equipment receive opposite end sends.
Step S502, communication equipment determine whether the APS mode of operation configuration carrying out self according to opposite end APS mode of operation.
If judged result is yes, perform step S503;
If judged result is no, perform step S506.
In the application scenarios of reality, consider the compatibility with the technology of existing manual configuration APS mode of operation, in technical scheme proposed by the invention simultaneously compatible manual configuration with automatically configure two kinds of configuration modes, concrete implementation is the setting being configured mode in a communications device, communication equipment needs at it identification being configured mode during configuration or the renewal carrying out APS mode of operation, if recognition result is auto configuration mode, the APS mode of operation configuration of self is then carried out according to opposite end APS mode of operation, if recognition result is manual configuration, then continue to use the configuration that existing manual configuration mode carries out APS mode of operation.By such technical scheme, can be implemented in communication equipment carries out APS mode of operation flexibly configuration by auto configuration mode or manual configuration mode, increase the flexibility of corresponding hardware configuration deployment strategy.
In concrete application scenarios, the way of realization of above-mentioned configuration mode can be realized by instruction mode, specifically as shown in table 1.
The instruction of table 1 configuration mode
Command forms |
Order implication |
Mode-Gen peer-Match |
The APS mode of operation of the communication equipment of coupling opposite end |
Mode-Gen Local-Config |
The APS mode of operation configuration of coupling local terminal |
In concrete enforcement scene, if the content recognized is " Mode-Gen peer-Match ", then determine that the configuration mode of the APS mode of operation of self is that the APS mode of operation of the communication equipment of adaptive opposite end carries out adaptation, if the content recognized is " Mode-Gen Local-Config ", then determine that the configuration mode of the APS mode of operation of self is the configuration that the configuration information directly applying local terminal carries out APS mode of operation, the similar and manual configuration process flow process of the prior art of concrete workflow.
In the application of reality; above-mentioned instruction type and setting means can adjust according to actual needs; and the processing mode that can reach configuration mode setting equally can be applied to the technical program equally, and such change does not affect protection scope of the present invention.
The content of the K2 byte in the SDH frame received by step S503, communication equipment obtain.
In concrete application scenarios, the whether effective basis for estimation of APS operating mode information for opposite end in technical scheme proposed by the invention can set for the byte in SDH frame format head in conjunction with in APS handoff protocol, is set by the content of information entrained in SDH frame.
Such as, can by the content in the K2 byte of SDH frame as basis for estimation, in existing APS handoff protocol, the implication representated by the content in the bit6 ~ bit8 of K2 byte is as shown in table 2:
Table 2 K2 [6:8] Operation Mode or Non-APS Use
(mode of operation state representated by the bit6 ~ bit8 of K2 byte or non-APS purposes)
Bit contents |
Representative state content |
111 |
Line AIS (Line Alarm Indication Signal, alarm indication signal link) |
110 |
Line RDI (Line Remote Defect Indication, remote bug instruction link) |
101 |
Bidirectional Mode (two-way switch mode) |
100 |
Unidirectional Mode (unidirectional handover pattern) |
Other |
Reserved for future use (being that other following purposes are reserved) |
Consider in above-mentioned every content, other guide all illustrates the state content of non-APS, and only have 101 and 100 to illustrate switch mode in APS mode of operation, also only have the APS mode of operation just representing opposite end at this moment in running order, therefore, if need to carry out APS mode of operation to the communication equipment of local terminal to be configured, so, in order to ensure that the APS mode of operation after configuring can normally work, need by the APS mode of operation of local terminal and the APS mode of operation of opposite end suitable, namely the APS mode of operation configured according to the communication equipment of opposite end carries out the APS mode of operation configuration of local terminal.
Based on above-mentioned analysis, pre-conditionedly can be set as aforesaid: the content in the bit6 ~ bit8 of the K2 byte of the SDH frame received is 101 or 100, to be i.e. in the bit6 ~ bit8 of K2 byte, to carry the switch mode configuration information of the communication equipment of opposite end.Only when meeting this and being pre-conditioned, just determine that the APS mode of operation of the communication equipment of opposite end starts, this APS operating mode information entrained by SDH frame is effective, otherwise, judge that the APS mode of operation of the communication equipment of opposite end is not activated, this APS operating mode information entrained by SDH frame is invalid.
Based on above-mentioned analysis, after getting the content of K2 byte of SDH frame, perform step S504 further.
Step S504, communication equipment judge that whether Bit6 ~ the Bit8 of K2 byte is effective.
If effectively, namely the content of Bit6 ~ Bit8 is 101 or 100, then perform step S505;
If invalid, namely the content of Bit6 ~ Bit8 is the other guide beyond 101 or 100, then perform step S506.
The APS operating mode information that the communication equipment that step S505, communication equipment obtain opposite end from SDH frame configures, and the APS mode of operation configuring self according to APS operating mode information.
As stated in the Background Art, APS mode of operation mainly comprises switch mode and backup mode, therefore, if the switch mode of the communication equipment of opposite end and the configuration information of backup mode can be obtained, then local communication equipment just can carry out the configuration of local APS mode of operation according to such configuration information, so, in the application process of reality, the processing procedure of the APS operating mode information that the communication equipment obtaining opposite end in SDH frame in this step configures is specially the process of the switch mode of the communication equipment obtaining opposite end in SDH frame respectively and the configuration information of backup mode.
Further combined with aforesaid application scenarios, when the content judging in the bit6 ~ bit8 of K2 byte is in step s 302 101 or 100, communication equipment confirms that the APS operating mode information entrained by SDH frame is effective, therefore, obtain the content in the bit6 ~ bit8 of K2 byte as the communication equipment of opposite end switch mode configuration information (as previously mentioned, 101 is two-way switch mode, 100 is unidirectional handover pattern), and obtain the backup mode configuration information of the content in the bit5 of K2 byte as the communication equipment of opposite end further (in the application of reality, the backup mode of 1+1 can be represented with 0, the backup mode of 1 expression 1:n), after the switch mode configuration information of communication equipment completing opposite end and the acquisition of backup mode configuration information, this communication equipment just can complete the configuration of the APS mode of operation of self according to these configuration informations.
Step S506, communication equipment use the APS mode of operation of the APS mode of operation configuration self of local terminal.
If the judged result in step S502 is no, then represent that this communication equipment still continues to use prior art, directly carry out the configuration of the APS mode of operation of this communication equipment according to the APS work mode configuration information of local terminal.
If and the judged result in step S504 is invalid, then represent that the APS mode of operation in the communication equipment of opposite end is not activated, or the APS operating mode information that cannot get in the communication equipment of opposite end accurately, therefore, the configuration of the APS mode of operation of self can not be carried out according to the APS operating mode information of the communication equipment of opposite end, in concrete application scenarios, on the one hand, the APS mode of operation of the APS mode of operation configuration self of the use local terminal proposed in this step can be applied, on the other hand, processing policy in such cases can also be pre-configured in, such as:
(1) default configuration
Be configured according to acquiescence APS mode of operation collocation strategy, such acquiescence APS mode of operation collocation strategy can pre-set in a communications device, also can be a kind of default configuration being applicable to all communication equipments, everyly all will directly apply this default configuration when not configuring concrete ASP operating mode information, thus, ensure that communication equipment can configure APS mode of operation, and carry out follow-up start treatment, the content of concrete acquiescence APS mode of operation collocation strategy can adjust according to the needs of embody rule scene, such change does not affect protection scope of the present invention.
(2) manual configuration
Namely the mode of carrying out configuration automatically according to the APS operating mode information of the communication equipment of opposite end is abandoned; and again continue to use existing manual configuration scheme; the APS operating mode information of manual configuration can be configured to (i.e. the APS mode of operation of the APS mode of operation configuration self of aforesaid use local terminal) in communication equipment in advance; also can when the judged result of step S504 be invalid; prompting or alarm is sent by communication equipment; manual configuration is carried out in prompting, and such change does not affect protection scope of the present invention.
(3) configuration is abandoned
Namely when the judged result of step S504 is invalid, directly abandon the configuration this communication equipment being carried out to APS mode of operation, this kind of strategy can be applied in the system environments allowing not apply APS, and, if abandon configuration, whether send prompting to user or network manager, can be configured according to actual needs.
In the application scenarios of reality, except above-mentioned three kinds of subsequent treatment strategies, can also determine the processing policy of other types according to actual needs, which kind of subsequent treatment strategy of embody rule, can't affect protection scope of the present invention.
By the processing procedure of above-mentioned steps S505 or step S506, communication equipment completes the configuration of the APS mode of operation of self, then, performs step S507.
Step S507, communication equipment normally start APS process, realize corresponding transfer of data to the communication equipment of opposite end.
It is further noted that, starting APS process and carrying out in the process of normal transfer of data, if the communication equipment of opposite end needs adjustment APS mode of operation, the APS that the communication equipment that communication equipment can receive opposite end sends interrupts Indication message, notify that this communication equipment carries out the config update of APS mode of operation, corresponding renewal process and aforesaid layoutprocedure similar, its schematic flow sheet as shown in Figure 6, specifically comprises the following steps:
Step S601, communication equipment receive APS and interrupt Indication message.
Step S602, communication equipment determine whether the APS mode of operation configuration carrying out self according to opposite end APS mode of operation.
If judged result is yes, perform step S603;
If judged result is no, perform step S608.
APS received by step S603, communication equipment obtain interrupts the content of the K2 byte in Indication message.
In concrete enforcement scene, the effect that APS interrupts Indication message can be specially the change notifying K2 byte, so the K2 change information that this step is directly interrupted in Indication message according to APS carries out follow-up basis for estimation.
Step S604, communication equipment judge that whether Bit6 ~ the Bit8 of K2 byte is effective.
Concrete judgment rule arranges the explanation with reference to aforesaid step S503 to step S504, at this no longer repeated description.
If effectively, namely the content of Bit6 ~ Bit8 is 101 or 100, then perform step S605;
If invalid, namely the content of Bit6 ~ Bit8 is the other guide beyond 101 or 100, then perform step S608.
The information of the APS mode of operation that the communication equipment that step S605, communication equipment interrupt obtaining opposite end Indication message from APS configures.
Concrete acquisition process is with reference to the explanation in aforesaid step S505, and the content obtained comprises the switch mode of the communication equipment of opposite end and the configuration information of backup mode.
Step S606, communication equipment judge that whether self current configured APS mode of operation is consistent with the APS mode of operation that the communication equipment of the opposite end again got configures.
Namely the renewal that there occurs APS operating mode information is determined whether.
If inconsistent, then perform step S607;
If consistent, then perform step S608.
Step S607, communication equipment upgrade the APS mode of operation of self according to the APS operating mode information again got.
After renewal completes, communication equipment restarts APS process, continues to realize corresponding transfer of data to the communication equipment of opposite end.
The APS mode of operation upgrading self abandoned by step S608, communication equipment.
Under the scene performing this step, communication equipment continues to perform current APS process, carries out transfer of data with the communication equipment of opposite end.
By above-mentioned configuration flow and more new technological process, realize automatic configuration and the renewal of the APS mode of operation in communication equipment, and keep adaptive with the APS mode of operation that configures in the communication equipment of opposite end, thus, ensure that the normal operation of APS process in communication equipment.
Compared with prior art, the present invention has the following advantages:
By applying technical scheme of the present invention, communication equipment can be made by corresponding communication information to be known the APS mode of operation of the communication equipment of opposite end, and the APS mode of operation of adaptive configuration self accordingly, thus, achieve the automatic configuration of communication equipment for the APS mode of operation of self, ensure that the consistency of the APS mode of operation of local terminal and opposite end, reduce the complexity of the layoutprocedure of communication equipment being carried out to APS mode of operation, decrease the wrong hidden danger that the process of manually carrying out the configuration of APS mode of operation and inquiry opposite end configuration information is brought, improve allocative efficiency and the accuracy of corresponding APS layoutprocedure.
In order to realize technical scheme of the present invention, based on aforesaid explanation, the invention allows for a kind of communication equipment, as shown in Figure 7, this communication equipment specifically comprises its structural representation:
Communication module 71, the SDH frame that the communication equipment for receiving opposite end sends;
Determination module 72, for determining whether the APS mode of operation configuration carrying out local terminal according to opposite end APS mode of operation;
Judge module 73, during for determining the APS mode of operation configuration carrying out local terminal according to opposite end APS mode of operation when determination module 72, judges communication module 71 is received from the SDH frame of the communication equipment of opposite end whether comprise shift mode information;
Configuration module 74, during for judging that this SDH frame comprises shift mode information at judge module 73, configures the APS mode of operation of local terminal according to the backup mode information in SDH frame and shift mode information.
Further, configuration module 74, time also for determining the APS mode of operation configuration not carrying out local terminal according to opposite end APS mode of operation when determination module 72, according to the backup mode information of local terminal and the APS mode of operation of shift mode information configuration local terminal.
In the application scenarios of reality, due to the renewal process of APS mode of operation also may be there is, so above-mentioned each module also has following functions:
Communication module 71, also interrupts Indication message for receiving APS;
Determination module 72, time also for receiving APS interruption Indication message in communication module 71, determines whether the APS mode of operation configuration carrying out local terminal according to opposite end APS mode of operation;
Judge module 73, time also for determining the APS mode of operation configuration carrying out local terminal according to opposite end APS mode of operation when determination module 72, judge the APS that communication module 71 receives interrupts whether comprising shift mode information in Indication message, and when judged result is for comprising, judge the backup mode information of backup mode information that this APS interrupts comprising in Indication message and shift mode information and the APS pattern of local terminal and shift mode information whether consistent;
Configuration module 74, also for when the judged result of judge module 73 is consistent, upgrade the APS mode of operation of local terminal according to the backup mode information in APS interruption Indication message and shift mode information, when the judged result of judge module 73 is inconsistent, stop the APS mode of operation of amendment local terminal.
Under this application scenarios, configuration module 74, also interrupts Indication message for receiving APS in communication module 71, and when determination module 72 determines the APS mode of operation configuration not carrying out local terminal according to opposite end APS mode of operation, stops the APS mode of operation of amendment local terminal; Or,
When judge module 73 judges that the APS that communication module 71 receives interrupts not comprising shift mode information in Indication message, stop the APS mode of operation of amendment local terminal.
What needs further illustrated is, based on technological thought of the present invention, communication equipment also needs to have the function APS mode of operation of self being informed to the communication equipment of opposite end, therefore, communication module 71, also for after the APS mode of operation that configures at configuration module 74 or upgrade local terminal, the communication equipment to opposite end comprises the backup mode information of local terminal and the SDH frame of shift mode information.
Compared with prior art, the present invention has the following advantages:
By applying technical scheme of the present invention, communication equipment can be made by corresponding communication information to be known the APS mode of operation of the communication equipment of opposite end, and the APS mode of operation of adaptive configuration self accordingly, thus, achieve the automatic configuration of communication equipment for the APS mode of operation of self, ensure that the consistency of the APS mode of operation of local terminal and opposite end, reduce the complexity of the layoutprocedure of communication equipment being carried out to APS mode of operation, decrease the wrong hidden danger that the process of manually carrying out the configuration of APS mode of operation and inquiry opposite end configuration information is brought, improve allocative efficiency and the accuracy of corresponding APS layoutprocedure.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention can by hardware implementing, and the mode that also can add necessary general hardware platform by software realizes.Based on such understanding, 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 some instructions and perform each method implementing described in scene of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
It will be appreciated by those skilled in the art that accompanying drawing is a schematic diagram preferably implementing scene, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device implemented in scene can carry out being distributed in the device of enforcement scene according to implementing scene description, also can carry out respective change and being arranged in the one or more devices being different from this enforcement scene.The module of above-mentioned enforcement scene can merge into a module, also can split into multiple submodule further.
The invention described above sequence number, just to describing, does not represent the quality implementing scene.
Be only several concrete enforcement scene of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.