CN105763381A - Lossless processing method and system of main-standby switching messages - Google Patents

Lossless processing method and system of main-standby switching messages Download PDF

Info

Publication number
CN105763381A
CN105763381A CN201610231611.6A CN201610231611A CN105763381A CN 105763381 A CN105763381 A CN 105763381A CN 201610231611 A CN201610231611 A CN 201610231611A CN 105763381 A CN105763381 A CN 105763381A
Authority
CN
China
Prior art keywords
ethernet message
sel
message
standby
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610231611.6A
Other languages
Chinese (zh)
Inventor
任中耀
陈涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201610231611.6A priority Critical patent/CN105763381A/en
Publication of CN105763381A publication Critical patent/CN105763381A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0681Configuration of triggering conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention relates to the field of main-standby switching of IPRAN equipment, and especially relates to a lossless processing method and system of main-standby switching messages. The method comprises the steps of: A, determining a main-standby state of each cross disk; B, after that the cross disk receives sel, if the sel is located in front of a frame head of an Ethernet message of a main disk, stopping outputting the Ethernet message of the main disk; if the sel is located between the frame head and a frame tail of the Ethernet message of the main disk, controlling the Ethernet message of the main disk to be output continuously; and if the sel is located between a frame head and a frame tail of the Ethernet message of a standby disk, waiting for that the sel is located behind the frame tail of the Ethernet message, and outputting the Ethernet message of the standby disk. According to the invention, the generation of a broken frame can be avoided in the main-standby switching process and the possibility of abnormalities of docking modules and chips is lowered, so that the stability and the reliability of the network are ensured.

Description

A kind of lossless process method and system of masterslave switchover message
Technical field
The present invention relates to the masterslave switchover field of IPRAN (wireless access network IPization) equipment, be specifically related to the lossless process method and system of a kind of masterslave switchover message.
Background technology
In IPRAN equipment, in order to ensure transmission quality, institute's organic frame has main-apparatus protection function;Shown in Figure 1, the active and standby two pieces of single-decks of Cross Trade of IPRAN equipment all issue identical configuration, and active and standby two pieces of single-decks send identical ethernet frame to backplane channel.Owing to opposite end has only to receive one group of data from master, therefore master and standby dish need according to self residing activestandby state, complete signal shielding or release flexibly.
When master and standby dish carry out masterslave switchover, master needs shielding to be sent to the message of backboard, and standby dish to start the message being sent to backboard;At present, the work indication signal of masterslave switchover sends and is made directly passage switching, the passage that shielding should not export typically via peripheral chip, enables the passage of this output.But, if signal one group complete is shielded in transmittance process or the output that is enabled in midway, then can form broken frame (such as master can produce only frame head in a frame midway shielding and, without the message of postamble, send out, for dish, the message that frame midway startup can produce to have postamble without frame head).
When opposite end chip receives message, theoretical case should be able to bear all kinds of abnormal frame, including only having frame head, only having postamble, ultrashort frame, oversized frame and check errors frame etc., but, in actual applications, broken frame may result in other to connection module or chip appearance exception.
Summary of the invention
For the defect existed in prior art, present invention solves the technical problem that for: produce broken frame when avoiding masterslave switchover.Infringement to message when the present invention can not only reduce active-standby switch, and can reduce and abnormal probability are occurred in connection module and chip, and then guarantee stability and the reliability of network.
For reaching object above, the lossless process method of masterslave switchover message provided by the invention, it is characterised in that the method comprises the following steps:
A, according to active and standby instruction, it is determined that the activestandby state of every piece of Cross Trade, activestandby state includes master state and standby plate-like state;
After B, Cross Trade receive sel, master all determines the sel position corresponding with Ethernet message with standby dish:
If before sel is positioned at the frame head of Ethernet message of master, stop the Ethernet message of output master;
If sel is between frame head and the postamble of the Ethernet message of master, the Ethernet message controlling master continues to export, until sel stops output after being positioned at the postamble of Ethernet message;
If before sel is positioned at the frame head of the Ethernet message of standby dish, the Ethernet message of standby dish is exported;
If sel is between frame head and the postamble of the Ethernet message of standby dish, wait that sel is positioned at the Ethernet message of the standby dish of output after the postamble of Ethernet message.
On the basis of technique scheme, sel described in step B is positioned at for, time before the frame head of the Ethernet message of dish, being clapped by the Ethernet message delay one of standby dish and export.
On the basis of technique scheme, further comprising the steps of between step A and B: master and standby dish synchronism output Ethernet message are to backplane channel, and shielding is for the Ethernet message of dish output.
The lossless process system of the masterslave switchover message based on said method provided by the invention, this system includes the activestandby state acquisition module and the masterslave switchover message lossless process module that are arranged in every piece of Cross Trade:
Activestandby state acquisition module is used for: according to active and standby instruction, it is determined that the activestandby state of current Cross Trade;
Masterslave switchover message lossless process module is used for: after Cross Trade receives sel, it is determined that the position that sel is corresponding with Ethernet message:
If before sel is positioned at the frame head of Ethernet message of master, stop the Ethernet message of output master;
If sel is between frame head and the postamble of the Ethernet message of master, the Ethernet message controlling master continues to export, until sel stops output after being positioned at the postamble of Ethernet message;
If before sel is positioned at the frame head of the Ethernet message of standby dish, the Ethernet message of standby dish is exported;
If sel is between frame head and the postamble of the Ethernet message of standby dish, wait that sel is positioned at the Ethernet message of the standby dish of output after the postamble of Ethernet message.
On the basis of technique scheme, when described masterslave switchover message lossless process module determines position corresponding with Ethernet message for sel, if sel is positioned at for, before the frame head of the Ethernet message of dish, being clapped by the Ethernet message delay one of standby dish and export.
On the basis of technique scheme, described masterslave switchover message lossless process module is positioned at the FPGA of Cross Trade.
Compared with prior art, it is an advantage of the current invention that:
Compared with forming broken frame with prior art, when the present invention carries out masterslave switchover, master can stop output at the time point not producing broken frame, and standby dish can start output at the time point not producing broken frame.Therefore, the present invention is not easily formed broken frame, infringement to message when can not only reduce active-standby switch, and can reduce and connection module and chip are occurred abnormal probability, and then guarantees stability and the reliability of network.
Accompanying drawing explanation
Fig. 1 is the fundamental diagram of conventional active and standby shielding in prior art;
Fig. 2 is the fundamental diagram of the lossless process method of masterslave switchover message in the embodiment of the present invention;
Fig. 3 standby in the embodiment of the present invention becomes main instruction switching signal when being positioned at before input frame head, the fundamental diagram of master;
When Fig. 4 is that in the embodiment of the present invention, the main instruction switching signal of standby change is between frame head and postamble, the fundamental diagram of master;
When Fig. 5 is that in the embodiment of the present invention, main transformer standby instruction switching signal is positioned at before input frame head, the fundamental diagram of master;
When Fig. 6 is that in the embodiment of the present invention, main transformer standby instruction switching signal is between frame head and postamble, the fundamental diagram of master.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is described in further detail.
Shown in Figure 2, the lossless process system of the masterslave switchover message in the embodiment of the present invention, including the activestandby state acquisition module being arranged in every piece of Cross Trade and FPGA (Field-ProgrammableGateArray, field programmable gate array), masterslave switchover message lossless process module it is provided with in FPGA, when this system carries out the lossless process of masterslave switchover message, comprise the following steps:
The activestandby state acquisition module of S1: every piece Cross Trade is according to active and standby instruction, it is determined that the activestandby state (master and standby dish) of current Cross Trade, in the present embodiment, No. 1 Cross Trade is master, and No. 2 Cross Trades are standby dish.
S2: master and standby dish synchronism output Ethernet message are to backplane channel, but can only be master messages owing to backboard is sent to business dish, it is impossible to send message that double is identical to business dish, it is therefore desirable to shield, by active and standby signal, the Ethernet message that standby dish exports.
S3: after Cross Trade receives sel (active and standby instruction switching signal, namely standby by main transformer), the masterslave switchover message lossless process module of master and standby dish, it is determined that the position that sel is corresponding with Ethernet message:
If before sel is positioned at the frame head of Ethernet message of master, the Ethernet message of master will not produce broken frame, shields immediately, stops output.
If sel is between frame head and the postamble of the Ethernet message of master, now as shielded master at once, then master can send the broken frame of only frame head, and now the Ethernet message of master continues to export, until sel shields after being positioned at the postamble of Ethernet message, stop output.
If before sel is positioned at the frame head of the Ethernet message of standby dish, the Ethernet message of standby dish will not produce broken frame, is sent to the output interface (postpone a bat and ensure that stablizing of Ethernet message) of standby dish after the Ethernet message of standby dish is postponed a bat by logical process.
If sel is between frame head and the postamble of the Ethernet message of standby dish, now as standby disk startup output then can produce the broken frame of only postamble, therefore needs to shield for the Ethernet message of dish, export after postamble terminates.
S3 is illustrated below by 4 kinds of situations.
One, shown in Figure 3, standby become main: needing the Ethernet message by former standby dish to start output, the Ethernet message of former master stops output;Before being positioned at the former frame head for dish Ethernet message due to sel, will not producing broken frame, therefore the input Ethernet message of former standby dish is sent to output interface after postponing a bat by logical process.
In Fig. 3, clk is clock signal, and fsi is that incoming message frame head indicates, fei is the instruction of incoming message postamble, dvi is that incoming message effectively indicates, dai is data input, fso is the instruction of outgoing message frame head, feo is the instruction of outgoing message postamble, dvo is that outgoing message effectively indicates, dao is that data export.
Two, shown in Figure 4, standby become main: needing the Ethernet message by former standby dish to start output, the Ethernet message of former master stops output;Owing to sel is between frame head and the postamble of former standby dish Ethernet message, broken frame can be produced, therefore the Ethernet message of former standby dish be shielded, after postamble terminates, start output.
Three, shown in Figure 5, standby by main transformer: needing to stop the Ethernet message of former master output, the Ethernet message of former standby dish starts output;Before the sel frame head being positioned at former master Ethernet message, broken frame will not be produced, therefore shield the Ethernet message of former master immediately, stop output.
Four, shown in Figure 6, standby by main transformer: needing to stop the Ethernet message of former master output, the Ethernet message of former standby dish starts output;Owing to sel is between frame head and the postamble of former master Ethernet message, broken frame can be produced, therefore continue to export by the Ethernet message of former master, until postamble shields after terminating, stop output.
The lossless message processing method of the present invention is tested on the IPRAN equipment of Fiberhome Telecommunication Technologies Co., Ltd., and result of the test is to reduce the business dish operation irregularity that broken frame causes, evades possible system risk.
The present invention is not limited to above-mentioned embodiment, for those skilled in the art, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, and these improvements and modifications are also considered as within protection scope of the present invention.The content not being described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.

Claims (6)

1. the lossless process method of a masterslave switchover message, it is characterised in that the method comprises the following steps:
A, according to active and standby instruction, it is determined that the activestandby state of every piece of Cross Trade, activestandby state includes master state and standby plate-like state;
After B, Cross Trade receive sel, master all determines the sel position corresponding with Ethernet message with standby dish:
If before sel is positioned at the frame head of Ethernet message of master, stop the Ethernet message of output master;
If sel is between frame head and the postamble of the Ethernet message of master, the Ethernet message controlling master continues to export, until sel stops output after being positioned at the postamble of Ethernet message;
If before sel is positioned at the frame head of the Ethernet message of standby dish, the Ethernet message of standby dish is exported;
If sel is between frame head and the postamble of the Ethernet message of standby dish, wait that sel is positioned at the Ethernet message of the standby dish of output after the postamble of Ethernet message.
2. the lossless process method of masterslave switchover message as claimed in claim 1, it is characterised in that: sel described in step B is positioned at for, time before the frame head of the Ethernet message of dish, being clapped by the Ethernet message delay one of standby dish and export.
3. the lossless process method of masterslave switchover message as claimed in claim 1 or 2, it is characterised in that: further comprising the steps of between step A and B: master and standby dish synchronism output Ethernet message are to backplane channel, and shielding is for the Ethernet message of dish output.
4. the lossless process system based on the masterslave switchover message of method described in any one of claims 1 to 3, it is characterised in that: this system includes the activestandby state acquisition module and the masterslave switchover message lossless process module that are arranged in every piece of Cross Trade:
Activestandby state acquisition module is used for: according to active and standby instruction, it is determined that the activestandby state of current Cross Trade;
Masterslave switchover message lossless process module is used for: after Cross Trade receives sel, it is determined that the position that sel is corresponding with Ethernet message:
If before sel is positioned at the frame head of Ethernet message of master, stop the Ethernet message of output master;
If sel is between frame head and the postamble of the Ethernet message of master, the Ethernet message controlling master continues to export, until sel stops output after being positioned at the postamble of Ethernet message;
If before sel is positioned at the frame head of the Ethernet message of standby dish, the Ethernet message of standby dish is exported;
If sel is between frame head and the postamble of the Ethernet message of standby dish, wait that sel is positioned at the Ethernet message of the standby dish of output after the postamble of Ethernet message.
5. the lossless process system of masterslave switchover message as claimed in claim 4, it is characterized in that: when described masterslave switchover message lossless process module determines position corresponding with Ethernet message for sel, if before sel is positioned at the frame head of the Ethernet message of standby dish, the Ethernet message delay one of standby dish is clapped and exports.
6. the lossless process system of the masterslave switchover message as described in claim 4 or 5, it is characterised in that: described masterslave switchover message lossless process module is positioned at the FPGA of Cross Trade.
CN201610231611.6A 2016-04-14 2016-04-14 Lossless processing method and system of main-standby switching messages Pending CN105763381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610231611.6A CN105763381A (en) 2016-04-14 2016-04-14 Lossless processing method and system of main-standby switching messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610231611.6A CN105763381A (en) 2016-04-14 2016-04-14 Lossless processing method and system of main-standby switching messages

Publications (1)

Publication Number Publication Date
CN105763381A true CN105763381A (en) 2016-07-13

Family

ID=56334938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610231611.6A Pending CN105763381A (en) 2016-04-14 2016-04-14 Lossless processing method and system of main-standby switching messages

Country Status (1)

Country Link
CN (1) CN105763381A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808925A (en) * 2005-01-21 2006-07-26 华为技术有限公司 Method and system of primary/standby selection and zero-loss switching for asynchronous signals
CN101043309A (en) * 2007-04-13 2007-09-26 华为技术有限公司 Method and apparatus for controlling main-slave switching
CN101615927A (en) * 2008-06-25 2009-12-30 华为技术有限公司 A kind of reverse method of multi-plexing light accessing system, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808925A (en) * 2005-01-21 2006-07-26 华为技术有限公司 Method and system of primary/standby selection and zero-loss switching for asynchronous signals
CN101043309A (en) * 2007-04-13 2007-09-26 华为技术有限公司 Method and apparatus for controlling main-slave switching
CN101615927A (en) * 2008-06-25 2009-12-30 华为技术有限公司 A kind of reverse method of multi-plexing light accessing system, device and system

Similar Documents

Publication Publication Date Title
CN105426275B (en) The method and device of disaster tolerance in dual-active group system
CN106708168B (en) multiprocessor system and clock synchronization method
KR20040007338A (en) Fault tolerant computer system re-synchronization method thereof and computer-readable storage medium having re-synchronization program thereof recorded thereon
CN104639375A (en) Interface management method and network equipment
CN107656886B (en) Cross-clock-domain signal processing circuit and processing method thereof
WO2018001168A1 (en) Method and apparatus for managing main board card and backup board card
US20130219229A1 (en) Fault monitoring device, fault monitoring method, and non-transitory computer-readable recording medium
CN108462529B (en) Main and standby board card switching method, optical transmission network equipment and storage medium
CN104639370A (en) Method for obtaining PCI-E equipment information of system by out-of-band management
CN103064761B (en) A kind of method of data synchronization, equipment and system
US10929254B2 (en) Data processing system providing service continuity protection
WO2016086582A1 (en) Signal detection method and device
CN107450987A (en) A kind of heterogeneous server of High Availabitity
CN104867437B (en) ESD protection device of MIPI module
CN104167178B (en) Display control program, display system and display control method
CN111736678A (en) Chip reset circuit, method and equipment
CN106301840A (en) The sending method of two-way converting detection BFD message and device
US6795933B2 (en) Network interface with fail-over mechanism
WO2016074350A1 (en) Burr removing method and apparatus for optical signal loss signal
CN104426624B (en) A kind of image synchronous display method and device
CN102231700B (en) Exchange card switching information transmission method and exchange card hot backup system
CN104407947A (en) Main/backup NAS (Network attached storage) switching method and device
CN103885421A (en) Standard bus controller
CN105763381A (en) Lossless processing method and system of main-standby switching messages
CN112187679A (en) Message processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160713