CN111464362A - System for automatically switching one server and multiple servers - Google Patents
System for automatically switching one server and multiple servers Download PDFInfo
- Publication number
- CN111464362A CN111464362A CN202010270770.3A CN202010270770A CN111464362A CN 111464362 A CN111464362 A CN 111464362A CN 202010270770 A CN202010270770 A CN 202010270770A CN 111464362 A CN111464362 A CN 111464362A
- Authority
- CN
- China
- Prior art keywords
- network
- server
- main
- module
- standby
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/2521—Translation architectures other than single NAT servers
- H04L61/2528—Translation at a proxy
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a system for automatically switching a server from one master to multiple slave. The system of the invention comprises a plurality of main/standby switching modules. Each main/standby switching module comprises a service side network interface module, a network address agent module, a network side network interface module, a server and network state detection module, a main/standby role arbitration module and a network channel switch control module. The invention is suitable for a redundant backup system of a plurality of servers, realizes the automatic switching of the main and standby servers of the plurality of servers through the main and standby switching module outside the servers, and has the advantages of no increase of server burden, no perception of users during switching, network island resistance, rapid switching and the like.
Description
Technical Field
The invention relates to the technical field of high availability of servers, in particular to a system for automatically switching a server from a master to a slave.
Background
In a server redundancy backup system, a module for main/standby arbitration is often required to be installed on a server, and a special program is also required to determine a current server address so that a user can access the current server. Meanwhile, a set of main and standby servers of the whole system can only be placed in one room, and if the system is an application scene such as a video conference system of a plurality of rooms, once the room in which the servers are placed is powered off or a network providing services to the outside is powered off, a plurality of network islands are formed, and the whole system is broken down. This approach has several drawbacks:
a) the complexity of server configuration is increased, and the operation load of the server is increased;
b) the main-standby switching can cause use interruption or additional program development is needed to realize seamless switching;
c) the main-standby switching time is longer
d) Service incapable of providing multiple sets of main and standby servers
e) Once the interconnection channel between networks is unavailable, forming a network island, the service in the island will not be available.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a system for automatic server-master-slave switching. The invention is suitable for redundancy backup of a plurality of servers, realizes self-election of the main server by using the main/standby switching module externally arranged on the server, and simultaneously realizes the effect that the network address of the main server is not changed along with the main/standby switching by using the network address proxy technology. The invention has the advantages of simple configuration, no increase of server burden when decoupling with the server, no perception of the main/standby switch to the user terminal, network island resistance and the like.
The technical scheme of the invention is specifically introduced as follows.
A system for automatically switching a main server and a plurality of standby servers comprises a plurality of main/standby switching modules; the different main/standby switching modules are correspondingly connected with different servers and used for server state collection, main/standby role self-selection and server network address proxy; the main and standby switching module is connected with the same network switch: each active/standby switching module includes:
the server side network interface module is used for carrying out bidirectional transmission of network packets with the server;
the network address agent module is used for converting the network address of the server into a fixed network address;
the network side network interface module is used for carrying out bidirectional transmission of network packets with a network switch;
the server and network state detection module is used for collecting network state information including network address size, network speed, network disconnection or shutdown of the server, whether the switch is disconnected or not and manually configured priority from network interfaces of the server and the network switch as the basis of main-standby arbitration;
the main/standby role arbitration module is used for receiving and sending heartbeat messages, calculating the main/standby roles according to the data provided by the server and the network state detection module and the main/standby arbitration basis analyzed from the messages received by other main/standby switching modules, and sending the calculation result to the network channel switch control module; sending heartbeat messages to a network switch at regular time, and informing other main/standby switching modules of the state of the local machine;
and the network channel switch control module is used for switching off the network channel to the network switch according to the main/standby arbitration result given by the main/standby role arbitration module.
In the invention, the network proxy supported by the network address proxy module comprises network address translation NAT and HTTP proxy gateway technology; the method can realize the user non-perception during the main-standby switching, and the supported network agent is timely.
In the invention, the network type of the connection between the main/standby switching module and the server is Ethernet or CAN bus network.
In the invention, the modes of sending the heartbeat message by the main and standby role arbitration modules comprise multicast, broadcast and unicast.
In the invention, in the main and standby role arbitration module, the main and standby role calculation basis comprises network address size, network speed, server network disconnection or shutdown, whether the server is disconnected with the switch or not, and the priority of manual configuration.
In the invention, the network type of the connection and connection between the main/standby switching module and the network switch is Ethernet or CAN bus
A network. When the machine is in standby service, the network channel switch control module closes the network connection to the switch.
In the invention, the number of network connecting lines between the service side network interface module and the server is more than or equal to 1.
In the invention, the number of network connecting lines between the network side network interface module and the network switch is more than or equal to 1.
Compared with the prior art, the invention has the beneficial effects that: the method is suitable for redundancy backup of a plurality of servers, self-election of the main server is realized by using a main/standby switching module externally arranged on the server, and meanwhile, the effect that the network address of the main server is not changed along with the main/standby switching is realized by using a network address proxy technology. The invention has the advantages of simple configuration, no increase of server burden when decoupling with the server, no perception of the main/standby switching to the user terminal and the like.
Drawings
Fig. 1 is a block diagram of a system for displaying video in multiple channels according to an embodiment.
Reference numbers in the figures: 1-main/standby switching module, 11-service side network interface module, 12-network address agent module, 13-network side network interface module, 14-server and network state detection module, 15-main/standby role arbitration module, 16-network channel switch control module.
Detailed Description
The technical solution of the present invention will be described in detail with reference to the accompanying drawings and embodiments.
Example 1
FIG. 1 is a block diagram of a system for server-master-slave automatic switching in an embodiment, as shown in FIG. 1
The device comprises a plurality of main/standby switching modules 1. Each master/slave switching module comprises a service-side network interface module 11, a network address agent module 12, a network-side network interface module 13, a server and network state detection module 14, a master/slave role arbitration module 15, and a network channel switch control module 16. Different main/standby switching modules 1 are respectively connected with corresponding servers and simultaneously connected with the same network switch, the connection mode includes not limited to Ethernet or CAN bus network, and the number of network connection lines is more than or equal to 1. In each main/standby switching module 1, a service-side network interface module 11 is sequentially and bidirectionally connected with a network address agent module 12 and a network-side network interface module 13, the service-side network interface module 11 is sequentially and unidirectionally connected with a server and network state detection module 14, a main/standby role arbitration module 15, a network channel switch control module 16 and a network-side network interface module 13, and the network-side network interface module 13 is bidirectionally connected with the main/standby role arbitration module 15.
The structure and function of the components of the system in the embodiments are as follows:
A. the main/standby switching module 1 is used for server state collection, main/standby role self-election and server network address proxy;
B. the service-side network interface module 11 is used for performing bidirectional transmission of network packets with the server;
C. the network address proxy module 12 is used for converting the network address of the server into a fixed network address;
D. the network side network interface module 13 is used for performing bidirectional transmission of network packets with a network switch;
E. the server and network state detection module 14 is used for collecting network state information, such as on-off, network speed, flow and the like, from network interfaces of the server and the switch, and taking the information as a basis for main-standby arbitration;
F. the main and standby role arbitration module 15 is used for receiving and transmitting heartbeat messages, and data used by the main and standby arbitration are embedded in the heartbeat messages. According to the data provided by D4 and the main/standby arbitration basis analyzed from the messages received by other main/standby switching modules, calculating the main/standby roles, and sending the calculation result to 16; judging according to the priority:
a) switching on and off a network;
b) the network speed is high or low;
c) the size of the priority;
d) a network address size;
G. the network channel switch control module 16 is used to shut off the network channel to the switch according to the main/standby arbitration result given by 15. The method comprises the following specific steps:
a) the node is taken as a main node and a network channel of the switch is opened;
b) the node is standby and switches off the network channel of the switch.
In this embodiment, the active/standby switching module 1 externally disposed on the server is used to implement the self-election of the active server, and meanwhile, the network address proxy technology is used to implement the effect that the network address of the active server does not change with the active/standby switching. The invention has the advantages of simple configuration, no increase of server burden when decoupling with the server, no perception of the main-standby switching to the user terminal and the like.
Compared with the prior art, the invention has the beneficial effects that: the method has the advantages of simple configuration, no increase of server burden when decoupling with the server, no perception of main/standby switching to a user terminal, network island resistance and the like.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (8)
1. A system for automatic server-master-slave switching is characterized in that: the system comprises a plurality of main/standby switching modules (1);
different main/standby switching modules (1) are correspondingly connected with different servers and are used for server state collection, main/standby role self-selection and server network address proxy; the main/standby switching module (1) is connected with the same network switch: each active/standby switching module includes:
the server side network interface module (11) is used for carrying out bidirectional transmission of network packets with the server;
a network address proxy module (12) for translating the network address of the server to a fixed network address;
the network side network interface module (13) is used for carrying out bidirectional transmission of network packets with a network switch;
the server and network state detection module (14) is used for collecting network state information including network address size, network speed, network disconnection or shutdown of the server, whether the switch is disconnected and the priority of manual configuration from the network interfaces of the server and the network switch as the basis of main-standby arbitration;
the main/standby role arbitration module (15) is used for receiving and sending heartbeat messages, calculating main/standby roles according to data provided by the server and the network state detection module (14) and main/standby arbitration basis analyzed from messages received by other main/standby switching modules, and sending the calculation result to the network channel switch control module (16); sending heartbeat messages to a network switch at regular time, and informing the state of the local machine to other main/standby switching modules (1);
and the network channel switch control module (16) is used for switching off the network channel to the network switch according to the main/standby arbitration result given by the main/standby role arbitration module (15).
2. The system of claim 1, wherein the network proxy supported by the network address proxy module (12) comprises Network Address Translation (NAT) and HTTP proxy gateway technologies.
3. The system according to claim 1, characterized in that the network type of the connection between the active/standby switching module (1) and the server is ethernet or CAN bus network.
4. The system according to claim 1, wherein the manner of sending the heartbeat message by the active/standby role arbitration module (15) includes multicast, broadcast and unicast.
5. The system according to claim 1, wherein in the master/slave role arbitration module (15), the calculated criteria of the master/slave roles include network address size, network speed, server network disconnection or shutdown, whether the server is disconnected from the switch, and manually configured priority.
6. The system according to claim 1, characterized in that the network type of the connection and connection of the active/standby switching module (1) and the network switch is ethernet or CAN bus network.
7. The system according to claim 1, wherein the network connection between the service-side network interface module (11) and the server is greater than or equal to 1.
8. The system according to claim 1, characterized in that the network connection between the network side network interface module (13) and the network switch is equal to or greater than 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010270770.3A CN111464362B (en) | 2020-04-08 | 2020-04-08 | System for automatically switching one server for master server and multiple servers for backup server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010270770.3A CN111464362B (en) | 2020-04-08 | 2020-04-08 | System for automatically switching one server for master server and multiple servers for backup server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111464362A true CN111464362A (en) | 2020-07-28 |
CN111464362B CN111464362B (en) | 2023-04-07 |
Family
ID=71681221
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010270770.3A Active CN111464362B (en) | 2020-04-08 | 2020-04-08 | System for automatically switching one server for master server and multiple servers for backup server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111464362B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112235150A (en) * | 2020-12-16 | 2021-01-15 | 北京宇信科技集团股份有限公司 | Automatic take-over method and system for main and standby machines |
CN113325689A (en) * | 2021-08-02 | 2021-08-31 | 中国人民解放军海军工程大学 | Full-time domain hot standby method of control system based on data synchronization |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582787A (en) * | 2008-05-16 | 2009-11-18 | 中兴通讯股份有限公司 | Double-computer backup system and backup method |
CN103049348A (en) * | 2012-12-21 | 2013-04-17 | 四川川大智胜软件股份有限公司 | Data fault tolerant storage method under multiserver environment |
CN107995123A (en) * | 2016-10-27 | 2018-05-04 | 贵州白山云科技有限公司 | A kind of SiteServer LBS and method based on interchanger |
CN109507866A (en) * | 2018-12-07 | 2019-03-22 | 天津津航计算技术研究所 | A kind of double-machine redundancy system and method based on network address drift technology |
CN109597723A (en) * | 2018-11-26 | 2019-04-09 | 南京轨道交通系统工程有限公司 | Two-node cluster hot backup redundancy for subway comprehensive monitoring system realizes system and method |
CN110474797A (en) * | 2019-07-25 | 2019-11-19 | 北京旷视科技有限公司 | API operation system, the method and device of active-standby switch |
-
2020
- 2020-04-08 CN CN202010270770.3A patent/CN111464362B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582787A (en) * | 2008-05-16 | 2009-11-18 | 中兴通讯股份有限公司 | Double-computer backup system and backup method |
CN103049348A (en) * | 2012-12-21 | 2013-04-17 | 四川川大智胜软件股份有限公司 | Data fault tolerant storage method under multiserver environment |
CN107995123A (en) * | 2016-10-27 | 2018-05-04 | 贵州白山云科技有限公司 | A kind of SiteServer LBS and method based on interchanger |
CN109597723A (en) * | 2018-11-26 | 2019-04-09 | 南京轨道交通系统工程有限公司 | Two-node cluster hot backup redundancy for subway comprehensive monitoring system realizes system and method |
CN109507866A (en) * | 2018-12-07 | 2019-03-22 | 天津津航计算技术研究所 | A kind of double-machine redundancy system and method based on network address drift technology |
CN110474797A (en) * | 2019-07-25 | 2019-11-19 | 北京旷视科技有限公司 | API operation system, the method and device of active-standby switch |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112235150A (en) * | 2020-12-16 | 2021-01-15 | 北京宇信科技集团股份有限公司 | Automatic take-over method and system for main and standby machines |
CN112235150B (en) * | 2020-12-16 | 2021-03-02 | 北京宇信科技集团股份有限公司 | Automatic take-over method and system for main and standby machines |
CN113325689A (en) * | 2021-08-02 | 2021-08-31 | 中国人民解放军海军工程大学 | Full-time domain hot standby method of control system based on data synchronization |
CN113325689B (en) * | 2021-08-02 | 2021-12-28 | 中国人民解放军海军工程大学 | Full-time domain hot standby method of control system based on data synchronization |
Also Published As
Publication number | Publication date |
---|---|
CN111464362B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1763204B1 (en) | System and method for redundant switches taking into account learning bridge functionality | |
CN103095480B (en) | Method, Network Management Equipment and the head-end system of head-end system active-standby switch | |
US20170026228A1 (en) | Method and apparatus for diagnosing faults in a hybrid internet protocol network | |
CN101420362B (en) | Method, system and router for multicast flow switching | |
CN111464362B (en) | System for automatically switching one server for master server and multiple servers for backup server | |
CN200990617Y (en) | Intermediate network equipment | |
EP1768318A1 (en) | A method and apparatus for implementing the broadcasting or multicasting service in rpr | |
CN101841432A (en) | Port backup method, device and system for service access router | |
CN104993988A (en) | Method for scheduling and controlling energy Internet | |
CN109729388B (en) | Method and device for switching video networking servers | |
US8203936B2 (en) | Gateway unit | |
CN101202705A (en) | Method and router for increasing multicast reliability | |
WO2016124117A1 (en) | Method, switching device and network controller for protecting links in software-defined network (sdn) | |
CN105704068B (en) | Service mixing centralized processing method and device | |
CN110690989A (en) | Service data transmission method, device and computer readable storage medium | |
JPH09331334A (en) | Redundancy configuration method for network server and redundancy configuration system for the same | |
CN112286041A (en) | Switching method and switching control system for electrical equipment redundancy monitoring device | |
CN211457141U (en) | Device for automatically switching one server and multiple servers | |
CN108111323B (en) | Realization system of igmpsnooping protocol under vxworks system | |
CN211454255U (en) | Device for automatically switching main server and standby server | |
CN106209552A (en) | Plug and play network-building method, Apparatus and system | |
JP2007104309A (en) | Gateway device | |
CN102215272B (en) | Method and system for emergency switching | |
CN113438606B (en) | Message transmission method, device, related equipment and storage medium | |
KR20080009858A (en) | Multicasting system and network device for agency transmission of data, and method for agency transmission of data thereof |
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 | ||
CB03 | Change of inventor or designer information |
Inventor after: Qiu Hao Inventor after: Wang Xia Inventor after: Pan Weiming Inventor after: Cao Zhen Inventor after: Chen Peng Inventor after: Wang Meng Inventor before: Qiu Hao Inventor before: Pan Weiming Inventor before: Cao Zhen |
|
CB03 | Change of inventor or designer information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |