CN110224875A - A kind of multichannel main/slave link fast switch over method and system - Google Patents

A kind of multichannel main/slave link fast switch over method and system Download PDF

Info

Publication number
CN110224875A
CN110224875A CN201910567944.XA CN201910567944A CN110224875A CN 110224875 A CN110224875 A CN 110224875A CN 201910567944 A CN201910567944 A CN 201910567944A CN 110224875 A CN110224875 A CN 110224875A
Authority
CN
China
Prior art keywords
link
state
slave
main
primary
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
CN201910567944.XA
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.)
Hubei Xin Intentia System Technology Ltd By Share Ltd
Original Assignee
Hubei Xin Intentia System Technology Ltd By Share 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 Hubei Xin Intentia System Technology Ltd By Share Ltd filed Critical Hubei Xin Intentia System Technology Ltd By Share Ltd
Priority to CN201910567944.XA priority Critical patent/CN110224875A/en
Publication of CN110224875A publication Critical patent/CN110224875A/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention proposes a kind of multichannel main/slave link fast switch over method and systems, for each of the links, unique immutable link rank is set, and the state of each link of real-time monitoring, it selects that link state is in activity and the highest link of the highest-ranking link of link is primary link, simplifies the selection rule of main/slave link;Effective reserve link of the configuration at least one in addition to primary link, when primary link communication disruption, this module quickly enables reserve link and is transmitted, and guarantees the continuity of data transmission;When primary link restores normal, reserve link automatically exits from primary link rank and restores stand-by state.

Description

A kind of multichannel main/slave link fast switch over method and system
Technical field
The present invention relates to network technique field more particularly to a kind of multichannel main/slave link fast switch over method and systems.
Background technique
In data among systems communication process, often due to network cause or other uncontrollable factors, cause data logical Letter interrupts, loss of data.The application more demanding for Information Security, timeliness, data-transmission interruptions, loss of data are not Allow.In order to effectively control the generation of this insecurity factor, multilink active/standby mode is generallyd use, prevention and control are carried out. But in the selection of main/slave link and handoff procedure, the reserve link chosen less than or chosen there are reserve link is not The problems such as optimal reserve link, the method for choosing reserve link is complicated, and the active/standby link switchover time is long, process is complicated, therefore, To solve the above problems, the present invention provides simple, the efficient multichannel main/slave link fast switch over method of one kind and system.
Summary of the invention
In view of this, the invention proposes a kind of simple, efficient multichannel main/slave link fast switch over method and systems.
The technical scheme of the present invention is realized as follows: on the one hand, the present invention provides a kind of multichannel main/slave link is fast Fast switching method, comprising the following steps:
S1, the link name of each link, link state and link rank are stored in global variable map set, In, link state includes off-state, state in state and communication in activity, and the initial link circuit state of each link is to disconnect shape State;
S2, each link carry out TCP request and are connected to communication ends, connect the link being successfully established and enter main/slave link selection Stage, and link state is changed to state in activity, it carries out in next step;The link that failure is established in connection repeats S2 until connection It is successfully established;
S3, poll take out all link in global variable map set, choose link state in S2 be in activity state and The highest-ranking link of link is primary link;
S4, primary link itself read link state when state, to start to communicate with opposite end in communication;When primary link is logical When occurring abnormal during letter, link state is changed to off-state, and by the link information from global variable map set It deletes, is that the selection highest-ranking link of link is reserve link in the link of state in activity from remaining link state;
S5, step S2-S4 is repeated, selecting link state is the state and highest-ranking link of link is main chain in activity Road.
On the basis of above technical scheme, it is preferred that link rank is divided into 1-15 grades in S1, and highest level 1 is minimum Rank is 15.
It is further preferred that poll time is 5s in S3.
It is further preferred that S3 is further comprising the steps of:
S301, when there are link state be in global variable map set communicate in state link when and rank highest, with The link is primary link;
S302, when global variable map set in do not have link state be communication in state link when, selection S2 in link State is the state and highest-ranking link of link is primary link in activity.
It is further preferred that S4 is further comprising the steps of:
S401, primary link itself read link state when state, to start to communicate with opposite end, other link shapes in communication State is constant and keeps and the heartbeat of opposite end;
S402, when heartbeat response time-out, illustrate that the link disconnects, link state goes off state, and repeats S2 Step.
It is further preferred that other links keep with the time of the heartbeat of opposite end being more than or equal to 20s in S401;
It is more than 15s that the standard of heartbeat response time-out, which is response time, in S402.
It is further preferred that the time that link disconnects in S402 is no more than 50s.
On the other hand, a kind of multichannel main/slave link fast switching system, including main/slave link monitoring module, configuration strategy Module, memory and multilink;
Configuration strategy module configures the rank and state of each link;
Main/slave link monitoring module monitors the link state of each link in real time, chooses master according to each link state and rank Link;
The result that memory stores title, rank and the state of each link and main/slave link monitoring module is chosen.
It is further preferred that link state include off-state, activity in state and communication in state, each link it is initial Link state is off-state;
Link rank is divided into 1-15 grades, highest level 1, lowest level 15.
It is further preferred that it is in activity and the highest-ranking chain of link that main/slave link monitoring module, which chooses each link state, Road is primary link.
A kind of multichannel main/slave link fast switch over method of the invention and system have following have compared with the existing technology Beneficial effect:
(1) unique immutable link rank, and the state of each link of real-time monitoring are set for each of the links, select chain Line state is in activity and the highest link of the highest-ranking link of link is primary link, simplifies the selection rule of main/slave link Then;
(2) effective reserve link of the configuration at least one in addition to primary link, when primary link communication disruption, this module is fast Speed enables reserve link and is transmitted, and guarantees the continuity of data transmission;When primary link restores normal, reserve link moves back automatically Primary link rank restores stand-by state out.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of multichannel main/slave link fast switch over method of the present invention;
Fig. 2 is the further step of S3 in a kind of multichannel main/slave link fast switch over method of the present invention;
Fig. 3 is the further step of S4 in a kind of multichannel main/slave link fast switch over method of the present invention;
Fig. 4 is a kind of structure chart of multichannel main/slave link fast switching system of the present invention.
Specific embodiment
Below in conjunction with embodiment of the present invention, the technical solution in embodiment of the present invention is carried out clearly and completely Description, it is clear that described embodiment is only some embodiments of the invention, rather than whole embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all Other embodiments shall fall within the protection scope of the present invention.
Embodiment one,
As shown in Figure 1, a kind of multichannel main/slave link fast switch over method of the invention, comprising the following steps:
S1, the link name of each link, link state and link rank are stored in global variable map set, In, link state includes off-state, state in state and communication in activity, and the initial link circuit state of each link is to disconnect shape State;
Wherein, link rank is divided into 1-15 grades in S1, and highest level 1, lowest level 15, the rank of link is someone For configuration, each of the links only have a unique rank, and will not change.
S2, each link carry out TCP request and are connected to communication ends, connect the link being successfully established and enter main/slave link selection Stage, and link state is changed to state in activity, it carries out in next step;The link that failure is established in connection repeats S2 until connection It is successfully established;
Wherein, the connection establishment process of TCP is also known as TCP three-way handshake.Sender's host is sent out to recipient's host first Play synchronization (SYN) request for establishing connection;Recipient's host is same to the side's of sending host response one after receiving this request Step/confirmation (SYN/ACK) response;Sender's host receives this Bao Houzai and sends a confirmation (ACK) to recipient's host, at this time TCP connection is successfully established.
S3, poll take out all link in global variable map set, choose link state in S2 be in activity state and The highest-ranking link of link is primary link;
Wherein, poll time 5s, i.e., it is primary every 5s poll.
As shown in Fig. 2, further comprising the steps of in this step:
S301, when there are link state be in global variable map set communicate in state link when and rank highest, with The link is primary link;
S302, when global variable map set in do not have link state be communication in state link when, selection S2 in link State is the state and highest-ranking link of link is primary link in activity.
S4, primary link itself read link state when state, to start to communicate with opposite end in communication;When primary link is logical When occurring abnormal during letter, link state is changed to off-state, and by the link information from global variable map set It deletes, is that the selection highest-ranking link of link is reserve link in the link of state in activity from remaining link state;Its In, the primary link of deletion repeats step S2 and writes the information of primary link again when primary link is connect with communication ends to be successfully established Enter in global variable map set;
As shown in figure 3, the step in it is further comprising the steps of:
S401, primary link itself read link state when state, to start to communicate with opposite end, other link shapes in communication State is constant and keeps and the heartbeat of opposite end;
S402, when heartbeat response time-out, illustrate that the link disconnects, link state goes off state, and repeats S2 Step.
Wherein, other links keep being more than or equal to 20s with the time of the heartbeat of opposite end in S401, and heartbeat is answered in S402 It is more than 15s that the standard for answering time-out, which is response time, is more than or equal to 20s or opposite end response when the time of the heartbeat with opposite end Time is more than 15s, then illustrates that the link disconnects, and also require link turn-off time no more than 50s in the present embodiment.
S5, step S2-S4 is repeated, selecting link state is the state and highest-ranking link of link is main chain in activity Road.
The state that setting steps S5 is primarily due to each of the links is all changing, and needs to choose link state in communication and is State and the highest-ranking link of link are primary link in activity, and therefore, it is necessary to the real time status informations of each link of circulatory monitoring. By step S5 can different moments select in current time link state for state in activity and link it is highest-ranking Link.
Embodiment two,
On the basis of example 1, the present embodiment provides a kind of multichannel main/slave link fast switching systems, including master Standby link monitoring module, configuration strategy module, memory and multilink.
Wherein, configuration strategy module configures the rank and state of each link.In the present embodiment, link state includes disconnected State in state and communication in open state, activity, the initial link circuit state of each link is off-state;Link rank is divided into 1-15 Grade, highest level 1, lowest level 15, the rank of link is that have artificial configuration, and each of the links only have a unique grade Not, and will not change.
In the present embodiment, at least both links are provided with, primarily to work as primary link communication disruption, it can be quick It enables reserve link to be transmitted, and guarantees the continuity of data transmission;When primary link restores normal, reserve link is automatically exited from Primary link rank restores stand-by state.
Main/slave link monitoring module monitors the link state of each link in real time, chooses master according to each link state and rank Link.Each link is off-state in the initial state, and each link needs to carry out TCP request and be connected to communication ends, is connected The link being successfully established enters main/slave link and chooses the stage, and link state is changed to state in activity;Failure is established in connection Link repeat TCP request until connection be successfully established, main/slave link monitoring module only choose link state for activity in State and the highest-ranking link of link are primary link.
The result that memory stores title, rank and the state of each link and main/slave link monitoring module is chosen.Such as Shown in Fig. 4, in the multichannel main/slave link fast switching system that application program A transfers data to the present embodiment, each link It receives, memory stores the current rank and state of each link, and main/slave link monitoring module monitors the state of each link, root in real time Primary link is chosen according to each link state and rank, and in memory by the storage of the result of selection, each link is according to main/slave link The primary link that monitoring module selects is communicated, and realizes the communication of opposite end.
The foregoing is merely better embodiments of the invention, are not intended to limit the invention, all of the invention Within spirit and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of multichannel main/slave link fast switch over method, it is characterised in that: the following steps are included:
S1, the link name of each link, link state and link rank are stored in global variable map set, wherein chain Line state includes off-state, state in state and communication in activity, and the initial link circuit state of each link is off-state;
S2, each link carry out TCP request and are connected to communication ends, connect the link being successfully established and enter main/slave link selection rank Section, and link state is changed to state in activity, it carries out in next step;The link that failure is established in connection repeats S2 until connection is built It stands successfully;
S3, poll take out link all in global variable map set, and choosing link state in S2 is state and link in activity Highest-ranking link is primary link;
S4, primary link itself read link state when state, to start to communicate with opposite end in communication;When primary link was communicating When occurring abnormal in journey, link state is changed to off-state, and the link information is deleted from global variable map set It removes, is that the selection highest-ranking link of link is reserve link in the link of state in activity from remaining link state;
S5, step S2-S4 is repeated, selecting link state is the state and highest-ranking link of link is primary link in activity.
2. a kind of multichannel main/slave link fast switch over method as described in claim 1, it is characterised in that: link in the S1 Rank is divided into 1-15 grades, highest level 1, lowest level 15.
3. a kind of multichannel main/slave link fast switch over method as claimed in claim 2, it is characterised in that: poll in the S3 Time is 5s.
4. a kind of multichannel main/slave link fast switch over method as claimed in claim 3, it is characterised in that: the S3 further includes Following steps:
S301, when there are link state be in global variable map set communicate in state link when and rank highest, with the chain Road is primary link;
S302, when global variable map set in do not have link state be communication in state link when, selection S2 in link state For state in activity and the highest-ranking link of link is primary link.
5. a kind of multichannel main/slave link fast switch over method as claimed in claim 4, it is characterised in that: the S4 further includes Following steps:
S401, primary link itself read link state when state, to start to communicate with opposite end, other link states are not in communication Become and keeps the heartbeat with opposite end;
S402, when heartbeat response time-out, illustrate that the link disconnects, link state goes off state, and repeats S2 step.
6. a kind of multichannel main/slave link fast switch over method as claimed in claim 5, it is characterised in that: its in the S401 Its link keeps with the time of the heartbeat of opposite end being more than or equal to 20s;
It is more than 15s that the standard of heartbeat response time-out, which is response time, in the S402.
7. a kind of multichannel main/slave link fast switch over method as claimed in claim 6, it is characterised in that: chain in the S402 The time that road disconnects is no more than 50s.
8. a kind of multichannel main/slave link fast switching system, it is characterised in that: including main/slave link monitoring module, configuration strategy Module, memory and multilink;
The configuration strategy module configures the rank and state of each link;
The main/slave link monitoring module monitors the link state of each link in real time, chooses master according to each link state and rank Link;
The result that the memory stores title, rank and the state of each link and main/slave link monitoring module is chosen.
9. a kind of multichannel main/slave link fast switching system as claimed in claim 8, it is characterised in that: the link state Including state in state in off-state, activity and communication, the initial link circuit state of each link is off-state;
The link rank is divided into 1-15 grades, highest level 1, lowest level 15.
10. a kind of multichannel main/slave link fast switching system as claimed in claim 9, it is characterised in that: the active and standby chain Each link state of road monitoring module selection is in activity and the highest-ranking link of link is primary link.
CN201910567944.XA 2019-06-27 2019-06-27 A kind of multichannel main/slave link fast switch over method and system Pending CN110224875A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910567944.XA CN110224875A (en) 2019-06-27 2019-06-27 A kind of multichannel main/slave link fast switch over method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910567944.XA CN110224875A (en) 2019-06-27 2019-06-27 A kind of multichannel main/slave link fast switch over method and system

Publications (1)

Publication Number Publication Date
CN110224875A true CN110224875A (en) 2019-09-10

Family

ID=67815111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910567944.XA Pending CN110224875A (en) 2019-06-27 2019-06-27 A kind of multichannel main/slave link fast switch over method and system

Country Status (1)

Country Link
CN (1) CN110224875A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111724276A (en) * 2020-05-19 2020-09-29 浙江浙能长兴天然气热电有限公司 Power plant data transmission method and system integrating self-diagnosis and channel optimization
CN112263849A (en) * 2020-09-29 2021-01-26 湖北鑫英泰系统技术股份有限公司 Stirring speed control method and device based on environmental pressure
CN113676405A (en) * 2021-08-18 2021-11-19 上海晨驭信息科技有限公司 Load sharing-based rapid link master-slave switching distributed system and method
CN116566568A (en) * 2021-04-07 2023-08-08 华为技术有限公司 Information indication method and communication device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852141A (en) * 2005-08-16 2006-10-25 华为技术有限公司 Method for realizing upward link back-up
CN107465611A (en) * 2017-09-05 2017-12-12 北京东土科技股份有限公司 The pretection switch method and device of SDN controllers and Switch control link
US20190007302A1 (en) * 2017-06-29 2019-01-03 Cisco Technology, Inc. Mechanism for Dual Active Detection Link Monitoring in Virtual Switching System with Hardware Accelerated Fast Hello

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852141A (en) * 2005-08-16 2006-10-25 华为技术有限公司 Method for realizing upward link back-up
US20190007302A1 (en) * 2017-06-29 2019-01-03 Cisco Technology, Inc. Mechanism for Dual Active Detection Link Monitoring in Virtual Switching System with Hardware Accelerated Fast Hello
CN107465611A (en) * 2017-09-05 2017-12-12 北京东土科技股份有限公司 The pretection switch method and device of SDN controllers and Switch control link

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111724276A (en) * 2020-05-19 2020-09-29 浙江浙能长兴天然气热电有限公司 Power plant data transmission method and system integrating self-diagnosis and channel optimization
CN111724276B (en) * 2020-05-19 2021-09-03 浙江浙能长兴天然气热电有限公司 Power plant data transmission method and system integrating self-diagnosis and channel optimization
CN112263849A (en) * 2020-09-29 2021-01-26 湖北鑫英泰系统技术股份有限公司 Stirring speed control method and device based on environmental pressure
CN112263849B (en) * 2020-09-29 2021-09-28 湖北鑫英泰系统技术股份有限公司 Stirring speed control method and device based on environmental pressure
CN116566568A (en) * 2021-04-07 2023-08-08 华为技术有限公司 Information indication method and communication device
CN116566568B (en) * 2021-04-07 2023-11-03 华为技术有限公司 Information indication method and communication device
US11943811B2 (en) 2021-04-07 2024-03-26 Huawei Technologies Co., Ltd. Information indication method and communication apparatus
CN113676405A (en) * 2021-08-18 2021-11-19 上海晨驭信息科技有限公司 Load sharing-based rapid link master-slave switching distributed system and method

Similar Documents

Publication Publication Date Title
CN110224875A (en) A kind of multichannel main/slave link fast switch over method and system
RU2178240C2 (en) Method for data transmission in mobile communication system
US9219701B2 (en) Distributed method and system for implementing link aggregation control protocol (LACP) standard state machines
EP2725840A1 (en) Method and device for handling cell outage
WO2012066625A1 (en) Method of controlling communication system, communication system, communication device
CN103534982A (en) Method, equipment and network virtualization system for protecting business reliability
CN102752040A (en) Hybrid networking and communication method based on wireless and power line carrier
CN107801222A (en) Bluetooth and WiFi switching method and system, client and wireless access point equipment
CN111343019B (en) Reconnection method, reconnection device and storage medium
CN103780365A (en) Method and system for dynamically transmitting multilink redundant data
CN103001799A (en) Method and node for achieving redundancy on basis of chain network
US9906412B2 (en) Collaboration method and system in distributed resilient network interconnect system
CN111294289A (en) Multi-link switching robot communication method and system
CN105101361A (en) Node devices and communication method thereof
CN104734868A (en) Service processing method and device among service nodes
CN109151082A (en) A kind of multi-connection method for building up, device and system
JPS62189823A (en) Communication system using line in common
CN109639512A (en) A kind of heat backup method of VTS multi-sensor information total system
KR20050054872A (en) Communication terminal, power save processing method to be performed by the communication terminal, program for executing the method, and recording medium containing the program
CN102724658A (en) Terminal and multi-channel data connection concurrent processing method
CN109981353B (en) Method and system for protecting adjacent station redundancy in frame type network communication equipment
CN101350636B (en) Method and system for link redundant backup base on photoelectric multiplexing port
CN101599907B (en) Method and system for forwarding flow
CN109768850A (en) A kind of vehicle-mounted communication method and system
CN112198788B (en) Implementation method of dual-machine hot standby system based on third state

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20190910