Summary of the invention
The technical problem that the present invention will solve provides a kind of compatibility method, terminal and system of Access point identifier, can the form of this side Access point identifier be set automatically according to the form of Access point identifier of the equipment of butt joint, and processing procedure is flexible.
For solving the problems of the technologies described above, embodiments of the invention provide technical scheme following:
On the one hand, a kind of compatibility method of Access point identifier is provided, comprises:
The Access point identifier that the receiving terminal receiving end/sending end sends;
Said receiving terminal obtains first form of said Access point identifier;
Said receiving terminal judges whether second form of desired value of the Access point identifier that said first form and said reception are distolateral is consistent, generates judged result;
When said judged result when being inconsistent, the 3rd form of the transmission value of the Access point identifier that second form of the desired value of the Access point identifier that said receiving terminal is distolateral with said reception and said reception are distolateral changes to consistent with said first form.
The compatibility method of described Access point identifier also comprises:
Said receiving terminal carries out matching treatment to the value of the said Access point identifier of consistent said desired value of form and reception.
The compatibility method of described Access point identifier also comprises:
Said receiving terminal is when service signal is lost, and the 3rd form of the transmission value of the Access point identifier that second form of the desired value of the Access point identifier that said reception is distolateral and said reception are distolateral changes to default mode;
After said receiving terminal receives service signal, carry out the judgment processing of the form of Access point identifier again.
The step of the Access point identifier that said receiving terminal receiving end/sending end sends is specially: the Access point identifier that the ASCII character stream that said receiving terminal receiving end/sending end sends is formed;
The step that said receiving terminal obtains first form of said Access point identifier is: said receiving terminal judge the frame head tagged word of said Access point identifier whether be LF; If for being, the judged result that then generates is: first form for the frame head tagged word be LF ASCII character stream; Otherwise the judged result of generation is: first form for do not contain LF ASCII character stream.
Said frame head tagged word is in latter two byte of said ASCII character stream.
Said Access point identifier is the Access point identifier of section overhead, the Access point identifier of Higher Order Path Overhead or the Access point identifier of lower order path overhead.
On the other hand, a kind of terminal is provided, it is characterized in that, comprising:
Receiving element, the Access point identifier that receiving end/sending end sends;
Acquiring unit obtains first form of said Access point identifier;
Judging unit judges whether second form of desired value of the Access point identifier that said first form and said reception are distolateral is consistent, generates judged result;
The change unit, when said judged result when being inconsistent, the 3rd form of the transmission value of the Access point identifier that second form of the desired value of the Access point identifier that said reception is distolateral and said reception are distolateral changes to consistent with said first form.
Described terminal also comprises:
Matching unit carries out matching treatment to the value of the said Access point identifier of consistent said desired value of form and reception.
Said receiving element is specially: the Access point identifier that the ASCII character stream that said receiving terminal receiving end/sending end sends is formed;
Said acquiring unit is specially: the frame head tagged word of judging said Access point identifier whether be LF; If for being, the judged result that then generates is: first form for the frame head tagged word be LF ASCII character stream; Otherwise the judged result of generation is: first form for do not contain LF ASCII character stream.
On the other hand, a kind of compatible system of Access point identifier is provided, comprises: first terminal and second terminal,
Said first terminal is used for, and receives the Access point identifier that send at said second terminal; Obtain first form of said Access point identifier; Judge whether said first form is consistent with second form of the desired value of the Access point identifier of said first end side, generate judged result; When said judged result when being inconsistent, change to the 3rd form of the transmission value of second form of the desired value of the Access point identifier of said first end side and the Access point identifier of said first end side consistent with said first form;
Said second terminal is used for, and sends Access point identifier to said first terminal.
Embodiments of the invention have following beneficial effect:
In the such scheme, can the form of this side Access point identifier be set automatically according to the form of Access point identifier of the equipment of butt joint, not need to carry out in advance manual setting, processing procedure is flexible.
Embodiment
For technical problem, technical scheme and advantage that embodiments of the invention will be solved is clearer, will combine accompanying drawing and specific embodiment to be described in detail below.
As shown in Figure 1, the compatibility method for a kind of Access point identifier of the present invention comprises:
Step 11, the Access point identifier that the receiving terminal receiving end/sending end sends; This step is specially: the Access point identifier that the ASCII character stream that said receiving terminal receiving end/sending end sends is formed;
Step 12, said receiving terminal are obtained first form of said Access point identifier; This step is specially: said receiving terminal judge the frame head tagged word of said Access point identifier whether be LF; If for being, the judged result that then generates is: first form for the frame head tagged word be LF ASCII character stream; Otherwise the judged result of generation is: first form for do not contain LF ASCII character stream.Said frame head tagged word is in latter two byte of said ASCII character stream.Said Access point identifier is the Access point identifier of section overhead, the Access point identifier of Higher Order Path Overhead or the Access point identifier of lower order path overhead.
Step 13, said receiving terminal judge whether second form of desired value of the Access point identifier that said first form and said reception are distolateral is consistent, generate judged result;
Step 14; When said judged result when being inconsistent, the 3rd form of the transmission value of the Access point identifier that second form of the desired value of the Access point identifier that said receiving terminal is distolateral with said reception and said reception are distolateral changes to consistent with said first form.
In the such scheme, receiving terminal has the function of Access point identifier self adaptation form, can the form of this side Access point identifier be set automatically according to the form of Access point identifier of the equipment of butt joint, does not need to carry out in advance manual setting, and processing procedure is flexible.
Optional, the compatibility method of described Access point identifier also comprises:
Step 15, said receiving terminal carries out matching treatment to the value of the said Access point identifier of consistent said desired value of form and reception.This step is specially: receiving terminal is provided with the APID value that an expectation receives in advance; When the tracking information that receives and this desired value do not match; Produce the alarm of trace identifier mismatch; Receiving terminal confirms whether be in lasting connection status with the transmitting terminal of appointment in view of the above, thereby follows the trail of connection status.The network provider utilizes tracking information to find in advance and to deal with problems, and what prevent to transmit is professional influenced, shortens the network recovery time.
Optional, the compatibility method of described Access point identifier also comprises:
Step 16, said receiving terminal are when service signal is lost, and the 3rd form of the transmission value of the Access point identifier that second form of the desired value of the Access point identifier that said reception is distolateral and said reception are distolateral changes to default mode; This step can prevent the problem that APID that the device upgrade of docking possibly cause when being the adaptive mode of APID frequently switches.
Step 17 after said receiving terminal receives service signal, is carried out the judgment processing of the form of Access point identifier again.Similar and the above-mentioned steps 11-14 of this step.After the device upgrade that this step can prevent to dock, the form of the APID of the equipment of butt joint has had variation, if take the last form that connects after the reception business again, possibly cause the alarm erroneous judgement.
As shown in Figure 2, be a kind of terminal of the present invention, comprising:
Receiving element 21, the Access point identifier that receiving end/sending end sends;
Acquiring unit 22 obtains first form of said Access point identifier;
Judging unit 23 judges whether second form of desired value of the Access point identifier that said first form and said reception are distolateral is consistent, generates judged result;
Change unit 24, when said judged result when being inconsistent, the 3rd form of the transmission value of the Access point identifier that second form of the desired value of the Access point identifier that said reception is distolateral and said reception are distolateral changes to consistent with said first form.
Described terminal also comprises:
Matching unit 25 carries out matching treatment to the value of the said Access point identifier of consistent said desired value of form and reception.
Said receiving element 21 is specially: the Access point identifier that the ASCII character stream that said receiving terminal receiving end/sending end sends is formed;
Said acquiring unit 22 is specially: the frame head tagged word of judging said Access point identifier whether be LF; If for being, the judged result that then generates is: first form for the frame head tagged word be LF ASCII character stream; Otherwise the judged result of generation is: first form for do not contain LF ASCII character stream.
As shown in Figure 3, the compatible system for a kind of Access point identifier of the present invention comprises: first terminal 31 and second terminal 32,
Said first terminal 31 is used for, and receives the Access point identifier that send at said second terminal 32; Obtain first form of said Access point identifier; Judge whether said first form is consistent with second form of the desired value of the Access point identifier of said first end side, generate judged result; When said judged result when being inconsistent, change to the 3rd form of the transmission value of second form of the desired value of the Access point identifier of said first end side and the Access point identifier of said first end side consistent with said first form;
Said second terminal 32 is used for, and sends Access point identifier to said first terminal 31.
The present invention can be used for synchronous digital transmission system (SDH/SONET; Synchronous Digital Hierarchy/Synchronous Optical Network) in; Processing procedure is: terminal equipment receives the APID of opposite end; Identify the configuration format of APID according to field information, decide the configuration format of the tracking information of local terminal again according to this configuration format, thereby realize docking with the normal of opposite equip..
Below describe an embodiment of the compatibility method of Access point identifier of the present invention, step is following:
Steps A: the receiving terminal of transmission equipment sends APID according to the tracking information form of acquiescence to the opposite end;
Step B: the receiving terminal of said transmission equipment is received the tracking information that transmitting terminal sends over;
Step C: receiving terminal is judged the configuration format of transmitting terminal tracking information according to the field type of the APID information of receiving;
Step D: if the acquiescence mode of receiving terminal is consistent with the tracking information configuration format of transmitting terminal, handling process finishes.
Step e: if the acquiescence mode of receiving terminal is inconsistent with the tracking information configuration format received, then receiving terminal is the tracking information transmission value of local terminal and the configuration format of desired value, change to consistent with the configuration format of transmitting terminal, the handling process end.
In the present invention, said step C comprises the steps:
C1: CR judging that whether the frame head tagged word be, if CR, judge that the tracking information form is first kind of above-mentioned form, that is: the ASCII character stream format of frame head tagged word CR being; If not LF, just get into next step identification;
C2: whether the byte of judging APID is ASCII character; If ASCII character; Judge the tracking information form be the frame head tagged word be not LF the ASCII character stream format; This step is optional, also can work as the frame head tagged word and not be LF the time, directly judge the tracking information form be the frame head tagged word be not LF the ASCII character stream format.
In the method for the present invention; After said step e; For the device upgrade that prevents to dock is the problem that the APID that possibly cause after the adaptive mode of APID frequently switches, when receiving terminal was lost at service signal, the tracking information form of receiving terminal changed to the mode of acquiescence; After receiving service signal, carry out the coupling of APID form again.
As shown in Figure 4, for an embodiment of the compatibility method of a kind of Access point identifier of the present invention, be example with the J0 field, comprising:
The first step: receiving terminal B send band LF the J0 field " r "; The J0 desired value of its local terminal be " r ", be the band LF the ASCII character form;
Second the step: receiving terminal B receives the J0 field " UNITRANS " that transmitting terminal A sends over, be not with LF ASCII character;
The 3rd step: receiving terminal B analyzes the J0 field " UNITRANS " receive, they are different with the J0 configuration format of local terminal CR latter two byte does not have.
The 4th step: the tracking information mode of receiving terminal B change local terminal for band LF mode, send not with LF J0 field " UNITRANS "; The desired value of its local terminal changes to " UNITRANS "; Be be not with LF the ASCII character stream format;
The 5th step: the J0 field that transmitting terminal A and receiving terminal B send at this moment all is " UNITRANS ", and its desired value all is " UNITRANS ", so far accomplishes normal the connection.
The 6th step: transmitting terminal A upgrades to new equipment, and in escalation process, receiving terminal B can receive LOS (dropout), then receiving terminal B revise J0 field transmission value and desired value be the acquiescence mode " r ";
The 7th step: after transmitting terminal A upgrades successfully, send the J0 field " n " CR being with; The J0 desired value of its local terminal be " r ";
The 8th step: receiving terminal B, receive the J0 field that transmitting terminal A sends over " r ", consistent with the J0 form of local terminal, keep the J0 form of local terminal, so far accomplish connection.
Fig. 5 is another embodiment of the compatibility method of a kind of Access point identifier of the present invention, is applicable to two inconsistent stylish used equipment butt joint situation of SDH equipment veneer J0 processing mode, and the later butt joint situation of used equipment upgrading.With the J0 field is example, and transmitting terminal is a used equipment, to the processing mode of J0 is: the frame head tagged word of J0 field be LF the ASCII character stream format; Receiving terminal is a new equipment, to the processing mode of J0 is: the J0 field be the frame head tagged word be not LF the ASCII character stream format, but receiving device has been done compatible processing.
Said method step is following:
New equipment is with after used equipment is connected, and used equipment is transmitting terminal A, the transmit frame headband LF the J0 field " r ", new equipment is receiving terminal B, send not with LF J0 field " UNITRANS ".
The first step: receiving terminal B send not with LF J0 field " UNITRANS "; The J0 desired value of its local terminal is " UNITRANS ", be not with LF the ASCII character form;
Second step: receiving terminal B receive the J0 field that transmitting terminal A sends over " r ", be band LF ASCII character;
The 3rd step: receiving terminal B analyzes the J0 field " n " receive, its latter two byte (frame head tagged word) be " n ", CR discovery has, different with the J0 configuration format of local terminal.
The 4th step: the tracking information mode of receiving terminal B change local terminal for band LF mode, send band LF the J0 field " r "; The desired value of its local terminal change to " r "; Be the band LF the ASCII character stream format;
The 5th step: the J0 field that transmitting terminal A and receiving terminal B send at this moment all be " r ", its desired value all be " r ", normally connection of completion so far.
The 6th step: transmitting terminal A upgrades to new equipment, and in escalation process, receiving terminal B can receive LOS (dropout), so receiving terminal B revises J0 field transmission value and desired value is " UNITRANS " of acquiescence mode;
The 7th the step: after transmitting terminal A upgrade successfully, the transmission not with CR J0 field " UNITRANS "; The J0 desired value of its local terminal is " UNITRANS ";
The 8th step: receiving terminal B, receive the J0 field " UNITRANS " that transmitting terminal A sends over, consistent with the J0 form of local terminal, the J0 form of maintenance local terminal is so far accomplished connection.
The present invention provides a kind of upward compatible method of tracking information; Receiving terminal is discerned the configuration format of transmitting terminal according to the tracking information of receiving, handles the format match of tracking information then with adaptive mode; Accomplish configuration automatically; Thereby avoided the complexity of manual webmaster operation and the problem of easy error, and make operation maintenance become simple and the cost reduction, reliability is improved simultaneously.In addition, tracking information done compatible self-adaptive processing after, receiving terminal can be supported the tracking information of different-format, has reduced bookkeeping.
The present invention go for having Access point identifier self adaptation form function first terminal and do not have the interaction scenarios at second terminal of the function of Access point identifier self adaptation form; In this scene; First terminal can be receiving terminal, and second terminal can be transmitting terminal.
One of ordinary skill in the art will appreciate that; Realize that all or part of step in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium, and this program comprises the step like above-mentioned method embodiment when carrying out; Described storage medium; As: magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
In each method embodiment of the present invention; The sequence number of said each step can not be used to limit the sequencing of each step; For those of ordinary skills, under the prerequisite of not paying creative work, the priority of each step is changed also within protection scope of the present invention.
The above is a 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 principle according to the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.