CN104901834A - Method and system for automatically switching between network servers - Google Patents

Method and system for automatically switching between network servers Download PDF

Info

Publication number
CN104901834A
CN104901834A CN201510260745.6A CN201510260745A CN104901834A CN 104901834 A CN104901834 A CN 104901834A CN 201510260745 A CN201510260745 A CN 201510260745A CN 104901834 A CN104901834 A CN 104901834A
Authority
CN
China
Prior art keywords
detection data
service device
fault
preset duration
networking service
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
CN201510260745.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.)
Guangdong Efly Network Co Ltd
Original Assignee
Guangdong Efly Network 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 Guangdong Efly Network Co Ltd filed Critical Guangdong Efly Network Co Ltd
Priority to CN201510260745.6A priority Critical patent/CN104901834A/en
Publication of CN104901834A publication Critical patent/CN104901834A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention relates to the technical field of the internet and specifically to a method and a system for automatically switching between network servers. The method comprises the steps as follows: a link switch receives fault detection data triggered and transmitted by a main network server at preset intervals, determines the working state of the main network server according to a condition whether the fault detection data is received again within one preset interval, and determines whether to switch to connect with a standby network server according to the working state. By using the above technical solution, the method and the system of the embodiment of the invention is free from the dependence on the third-party inspection service and realizes independent network fault detection and hot switch. The method of the invention simplifies the hot switch solution of the network service, and can achieve self-repairing, and is good in generality, simple and fast.

Description

The method and system that a kind of webserver automatically switches
Technical field
The embodiment of the present invention relates to Internet technical field, particularly relates to the method and system that a kind of webserver automatically switches.
Background technology
Along with the fast development of Internet technology, big and small network system every day provides service miscellaneous for ten hundreds of users.Wherein, a lot of service all needs continually to provide for 24 hours, but any fault that software and hardware occurs all may cause the interruption of network service, so just there is network failure automatic switchover technology.Current failover scheme is of a great variety, but handover scheme current is generally all comparatively complicated, and switching time is long.And, existing handover scheme is generally detect service operation state by third-party service, then carry out service to switch when detecting that service is unavailable, higher to the dependence of the operation system of itself, can not be general, and handoff functionality will be caused to lose efficacy when third party's service is broken down, service impactingly uninterruptedly to provide.
Summary of the invention
The object of this invention is to provide the method and system that the webserver automatically switches, ensure incomplete problem with, the poor universality higher to the dependence of operation system itself solving that existing webserver handover scheme causes because depending on third party and detecting service.
On the one hand, embodiments provide a kind of method that webserver automatically switches, comprising:
Links switch receives primary networking service device and triggers the fault-detection data sent according to preset duration interval;
Whether described links switch receives described fault-detection data again according in preset duration, determines the operating state of primary networking service device;
According to described operating state, described links switch determines whether that switching is connected to backup network server.
Further, whether described links switch receives described fault-detection data again according in preset duration, determine the operating state of primary networking service device, be specially: when described links switch does not again receive described fault-detection data in preset duration, then determine that network service failure appears in primary networking service device;
Described links switch determines whether to switch to backup network server according to described operating state, is specially: when network service failure appears in primary networking service device, then described links switch switching is connected to backup network server.
Further, trigger to links switch transmission fault-detection data every preset duration by adding default trigger code to realize in original code of primary networking service device.
On the other hand, embodiments provide the system that a kind of webserver automatically switches, comprising:
Links switch, the fault-detection data sent is triggered according to preset duration interval for receiving primary networking service device, whether described fault-detection data is again received according in preset duration, determine the operating state of primary networking service device, determine whether that switching is connected to backup network server according to described operating state;
Primary networking service device, sends fault-detection data to links switch for triggering according to preset duration interval;
Backup network server, for when described links switch determines that switching is connected to backup network server, sets up the connection with described links switch.
Further, described links switch specifically for: when described links switch does not again receive described fault-detection data in preset duration, then determine that network service failure appears in primary networking service device, and switch be connected to backup network server.
Further, trigger to links switch transmission fault-detection data every preset duration by adding default trigger code to realize in original code of primary networking service device.
The method that the webserver provided in the embodiment of the present invention automatically switches, receive primary networking service device by links switch and trigger the fault-detection data sent according to preset duration interval, whether again receive according in preset duration the operating state that fault-detection data determines primary networking service device, and determine whether that switching is connected to backup network server according to operating state.By adopting technique scheme, having broken away from dependence third party being detected to service, having achieved independently Network Fault Detection and hot-swap, and having this process simplify the hot-swap scheme of network service, versatility is good, simple and quick and can realize selfreparing.
Accompanying drawing explanation
The flow chart of the method that a kind of webserver that Fig. 1 provides for the embodiment of the present invention one automatically switches;
The structured flowchart of the system that a kind of webserver that Fig. 2 provides for the embodiment of the present invention two automatically switches.
Embodiment
Technical scheme of the present invention is further illustrated by embodiment below in conjunction with accompanying drawing.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not entire infrastructure.
Embodiment one
The flow chart of the method that a kind of webserver that Fig. 1 provides for the embodiment of the present invention one automatically switches, the system that the method can be automatically switched by the webserver performs, and this system comprises links switch, primary networking service device and backup network server.As shown in Figure 1, the method comprises:
Step 101, links switch receive primary networking service device and trigger the fault-detection data sent according to preset duration interval.
The webserver provides various network service by network to other equipment, as domain name system (Domain Name System, DNS) service, ICMP (Internet Control Message Protocol, ICMP) service and file transfer protocol (FTP) (File Transfer Protocol, FTP) service etc.The webserver needs to be connected with links switch usually, and in existing connection scheme, and links switch only can learn the current connected webserver whether charging operation, but cannot learn that whether its service provided is normal.
Exemplary, in the embodiment of the present invention, on the primary networking service device be connected with links switch, the service detected for network of a common support switch can be opened again.Original service that described primary networking service device provides is called as main service, and the described service for network detection of opening again is called as NQA (Network Quality Analyzer, Network Quality Analysis) service.NQA service is used for sending fault-detection data to links switch.
Concrete, trigger to links switch transmission fault-detection data every preset duration by adding default trigger code to realize in original code of primary networking service device.In other words, the core code part by the main service in primary networking service device adds regular trigger code, and while primary networking service device provides main service, regular trigger code can realize triggering NQA service every preset duration.Thus, NQA service is customized to house dog (Watchdog) pattern, and namely needing regularly to trigger can continuous firing, triggers, quit work if do not obtain.
Whether step 102, links switch receive fault-detection data again according in preset duration, determine the operating state of primary networking service device.
Concrete, NQA service due to primary networking service device is that fixed time interval triggers, so start when links switch receives fault-detection data, after preset duration, again do not receive fault-detection data, namely illustrate that the NQA service in primary networking service device is not again triggered in preset duration, quit work.Again because the regular trigger code for realizing triggering every preset duration NQA service is added in the core code of main service, so when NQA service is not triggered, illustrate that primary networking service device has stopped providing main service, so can determine that network service failure appears in primary networking service device thus.
According to operating state, step 103, links switch determine whether that switching is connected to backup network server.
Concrete, reserve link can be set in advance in links switch, for connecting backup network server.When determining that network service failure appears in primary networking service device, links switch can be connected to backup network server according to the reserve link switching pre-set, now exchange with link and connect the backup network server after successful connection and can continue to provide main service, thus achieve the automatic switchover of the webserver.
The method that the webserver that the embodiment of the present invention one provides automatically switches, receive primary networking service device by links switch and trigger the fault-detection data sent according to preset duration interval, whether again receive according in preset duration the operating state that fault-detection data determines primary networking service device, and determine whether that switching is connected to backup network server according to operating state.By adopting technique scheme, having broken away from dependence third party being detected to service, having achieved independently Network Fault Detection and hot-swap, and having this process simplify the hot-swap scheme of network service, versatility is good, simple and quick and can realize selfreparing.
Embodiment two
The structured flowchart of the system that a kind of webserver that Fig. 2 provides for the embodiment of the present invention two automatically switches.As shown in Figure 2, this system comprises: links switch 201, primary networking service device 202 and backup network server 203.
Wherein, links switch 201, the fault-detection data sent is triggered according to preset duration interval for receiving primary networking service device 202, whether again fault-detection data is received according in preset duration, determine the operating state of primary networking service device 202, determine whether that switching is connected to backup network server 203 according to operating state; Primary networking service device 202, sends fault-detection data to links switch 201 for triggering according to preset duration interval; Backup network server 203, for when links switch 201 determines that switching is connected to backup network server 203, sets up the connection with links switch 201.
Preferably, according to actual conditions, this system can comprise two or more backup network server, and can pre-set the priority orders of multiple backup network server, when network service failure appears in primary networking service device, automatically switched according to priority orders by links switch.
Further, described links switch 201 can be specifically for: when links switch 201 does not again receive fault-detection data in preset duration, then determine that network service failure appears in primary networking service device 202, and switch and be connected to backup network server 203.
Further, fault-detection data is sent every preset duration triggering to links switch 201 by adding default trigger code to realize in original code of primary networking service device 202.
The system that the webserver that the embodiment of the present invention two provides automatically switches, primary networking service device 202 triggers according to preset duration interval and sends fault-detection data to links switch 201, whether again fault-detection data is received according in preset duration by links switch 201, determine the operating state of primary networking service device 202, and then determine whether that switching is connected to backup network server 203.By adopting technique scheme, having broken away from dependence third party being detected to service, having achieved independently Network Fault Detection and hot-swap, and having this process simplify the hot-swap scheme of network service, versatility is good, simple and quick and can realize selfreparing.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.

Claims (6)

1. a method for webserver automatic switchover, is characterized in that, comprising:
Links switch receives primary networking service device and triggers the fault-detection data sent according to preset duration interval;
Whether described links switch receives described fault-detection data again according in preset duration, determines the operating state of primary networking service device;
According to described operating state, described links switch determines whether that switching is connected to backup network server.
2. method according to claim 1, is characterized in that, whether described links switch receives described fault-detection data again according in preset duration, determines the operating state of primary networking service device, is specially:
When described links switch does not again receive described fault-detection data in preset duration, then determine that network service failure appears in primary networking service device;
Described links switch determines whether to switch to backup network server according to described operating state, is specially:
When network service failure appears in primary networking service device, then described links switch switching is connected to backup network server.
3. method according to claim 1, is characterized in that, triggers to links switch transmission fault-detection data every preset duration by adding default trigger code to realize in original code of primary networking service device.
4. a system for webserver automatic switchover, is characterized in that, comprising:
Links switch, the fault-detection data sent is triggered according to preset duration interval for receiving primary networking service device, whether described fault-detection data is again received according in preset duration, determine the operating state of primary networking service device, determine whether that switching is connected to backup network server according to described operating state;
Primary networking service device, sends fault-detection data to links switch for triggering according to preset duration interval;
Backup network server, for when described links switch determines that switching is connected to backup network server, sets up the connection with described links switch.
5. system according to claim 4, is characterized in that,
Described links switch specifically for:
When described links switch does not again receive described fault-detection data in preset duration, then determine that network service failure appears in primary networking service device, and switching is connected to backup network server.
6. system according to claim 4, is characterized in that, triggers to links switch transmission fault-detection data every preset duration by adding default trigger code to realize in original code of primary networking service device.
CN201510260745.6A 2015-05-20 2015-05-20 Method and system for automatically switching between network servers Pending CN104901834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510260745.6A CN104901834A (en) 2015-05-20 2015-05-20 Method and system for automatically switching between network servers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510260745.6A CN104901834A (en) 2015-05-20 2015-05-20 Method and system for automatically switching between network servers

Publications (1)

Publication Number Publication Date
CN104901834A true CN104901834A (en) 2015-09-09

Family

ID=54034238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510260745.6A Pending CN104901834A (en) 2015-05-20 2015-05-20 Method and system for automatically switching between network servers

Country Status (1)

Country Link
CN (1) CN104901834A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872568A (en) * 2015-11-19 2016-08-17 乐视云计算有限公司 Method and device for transmitting video data based on cloud live broadcast platform
CN107426327A (en) * 2017-08-04 2017-12-01 无锡天脉聚源传媒科技有限公司 A kind of link switch-over method and device
CN108429674A (en) * 2018-03-23 2018-08-21 上海地面通信息网络股份有限公司 A kind of network tunnel automatic switching control equipment based on network quality
CN109358983A (en) * 2018-09-04 2019-02-19 深圳市宝德计算机系统有限公司 Server data processing method, device and storage medium
CN109445995A (en) * 2018-09-04 2019-03-08 深圳市宝德计算机系统有限公司 Server data processing method, device and storage medium
CN110300004A (en) * 2018-03-21 2019-10-01 北京京东尚科信息技术有限公司 A kind of method and apparatus of handover network service
CN113973067A (en) * 2017-02-16 2022-01-25 施耐德电气It公司 System and method for determining and repairing network connection problems

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624567A (en) * 2012-03-25 2012-08-01 沈阳通用软件有限公司 Hardware type network safety control server thermal backup device
CN102868560A (en) * 2012-09-28 2013-01-09 南京恩瑞特实业有限公司 System and method for realizing hot standby of servers
CN102970160A (en) * 2012-11-08 2013-03-13 浙江宇视科技有限公司 Method and device for assisting in rapid communication between monitor terminal and standby server
CN103235752A (en) * 2013-04-02 2013-08-07 浪潮电子信息产业股份有限公司 Method for ensuring service availability of server management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624567A (en) * 2012-03-25 2012-08-01 沈阳通用软件有限公司 Hardware type network safety control server thermal backup device
CN102868560A (en) * 2012-09-28 2013-01-09 南京恩瑞特实业有限公司 System and method for realizing hot standby of servers
CN102970160A (en) * 2012-11-08 2013-03-13 浙江宇视科技有限公司 Method and device for assisting in rapid communication between monitor terminal and standby server
CN103235752A (en) * 2013-04-02 2013-08-07 浪潮电子信息产业股份有限公司 Method for ensuring service availability of server management system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872568A (en) * 2015-11-19 2016-08-17 乐视云计算有限公司 Method and device for transmitting video data based on cloud live broadcast platform
CN113973067A (en) * 2017-02-16 2022-01-25 施耐德电气It公司 System and method for determining and repairing network connection problems
CN113973067B (en) * 2017-02-16 2024-04-30 施耐德电气It公司 System and method for determining and repairing network connection problems
CN107426327A (en) * 2017-08-04 2017-12-01 无锡天脉聚源传媒科技有限公司 A kind of link switch-over method and device
CN110300004A (en) * 2018-03-21 2019-10-01 北京京东尚科信息技术有限公司 A kind of method and apparatus of handover network service
CN110300004B (en) * 2018-03-21 2023-12-08 北京京东尚科信息技术有限公司 Method and device for switching network services
CN108429674A (en) * 2018-03-23 2018-08-21 上海地面通信息网络股份有限公司 A kind of network tunnel automatic switching control equipment based on network quality
CN109358983A (en) * 2018-09-04 2019-02-19 深圳市宝德计算机系统有限公司 Server data processing method, device and storage medium
CN109445995A (en) * 2018-09-04 2019-03-08 深圳市宝德计算机系统有限公司 Server data processing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN104901834A (en) Method and system for automatically switching between network servers
US10649866B2 (en) Method and apparatus for indirectly assessing a status of an active entity
WO2016095344A1 (en) Link switching method and device, and line card
EP2892274B1 (en) Fault recovery method of operation and maintenance channel and network management terminal
CN104283711A (en) Fault detection method based on BFD, nodes and system
CN103916226A (en) Redundant backup method based on embedded equipment
CN105516252A (en) TCP (Transmission Control Protocol) connection switching method, apparatus and system
CN104135417A (en) Quick recovery method for ethernet ring network link interruption and corresponding ethernet ring network
CN103118387A (en) Lightweight access point (AP) redundancy access control method of active standby mode
JP6007988B2 (en) Standby system apparatus, operational system apparatus, redundant configuration system, and load distribution method
CN109981353B (en) Method and system for protecting adjacent station redundancy in frame type network communication equipment
EP2774323B1 (en) Method, communication system and non-transitory computer readable medium for optimizing network performance after a temporary loss of connection
CN102546304B (en) BFD detection method, equipment and system
JP6538639B2 (en) Wireless communication device, method and program
CN112948177A (en) Disaster recovery backup method and device, electronic equipment and storage medium
JP2013162155A (en) Communication control device, communication control method, and communication control program
CN104038955A (en) Fault detection and processing method in mobile communication system, and base station
JP5372978B2 (en) Control method and radio base station apparatus
KR101128366B1 (en) Water-administration automation system and method with self-sensing of loss communication and auto-resume feature in dynamic ip environment
US20050216578A1 (en) Methods, devices and computer program products using a node affiliation protocol for monitoring and/or controlling networkable devices
CN105337996B (en) A kind of data processing method and system
CN111221316A (en) Drive control timing synchronization system and drive control timing synchronization method
JP6204397B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
CN113395188B (en) Method and system for determining working state of server
JP5922601B2 (en) Network equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 705-708, room two, No. 121, north south of the Five Ridges Avenue, Chancheng District, Guangdong, Foshan, 528000

Applicant after: GUANGDONG RUIJIANG CLOUD COMPUTING CO., LTD.

Address before: Chancheng District of Guangdong city of Foshan province south of the Five Ridges 528000 Avenue North 121 East International A District Office 7-8

Applicant before: Guangdong Efly Network Co., Ltd.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication

Application publication date: 20150909

RJ01 Rejection of invention patent application after publication