CN108040108B - Communication switching method, device, coordination server and readable storage medium - Google Patents

Communication switching method, device, coordination server and readable storage medium Download PDF

Info

Publication number
CN108040108B
CN108040108B CN201711305098.1A CN201711305098A CN108040108B CN 108040108 B CN108040108 B CN 108040108B CN 201711305098 A CN201711305098 A CN 201711305098A CN 108040108 B CN108040108 B CN 108040108B
Authority
CN
China
Prior art keywords
server
main server
backup
backup server
main
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.)
Active
Application number
CN201711305098.1A
Other languages
Chinese (zh)
Other versions
CN108040108A (en
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.)
Hangzhou Electronic Soul Network Technology Co Ltd
Original Assignee
Hangzhou Electronic Soul Network Technology 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 Hangzhou Electronic Soul Network Technology Co Ltd filed Critical Hangzhou Electronic Soul Network Technology Co Ltd
Priority to CN201711305098.1A priority Critical patent/CN108040108B/en
Publication of CN108040108A publication Critical patent/CN108040108A/en
Application granted granted Critical
Publication of CN108040108B publication Critical patent/CN108040108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • 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/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • H04L63/1458Denial of Service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The embodiment of the invention provides a communication switching method, a communication switching device, a coordination server and a readable storage medium. The method comprises the following steps: when detecting the updated user behavior data in the main server, the coordination server backs up the updated user behavior data to each backup server; judging the state information of the main server according to the feedback condition of the main server; when the main server is judged to be in an abnormal state, selecting a target backup server from the backup servers based on a preset rule; sending a switching protocol request including identification information of a target backup server to a user terminal; and acquiring a data node corresponding to the user terminal when the main server is abnormal, sending the data node to the target backup server for verification, and finishing switching between the main server and the target backup server after the verification is passed. Therefore, the network attack can be effectively responded, the user data cannot be easily lost, and the resource consumption condition of the server is improved.

Description

Communication switching method, device, coordination server and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication handover method, an apparatus, a coordination server, and a readable storage medium.
Background
The current network environment is relatively severe, a server often faces various network attacks and network faults, for example, DDoS attacks, the attack that the server can deal with has an upper limit, and even if the server can resist the attacks, a large amount of resources can be spent. When the server encounters DDoS attack, the network connection between the user and the server is broken, so that the user data is lost, and the user experience is reduced.
Disclosure of Invention
In order to overcome the above disadvantages in the prior art, an object of the present invention is to provide a communication handover method, apparatus, coordination server and readable storage medium, which can effectively cope with network attacks, so that user data is not easily lost, user experience is greatly improved, and resource consumption of the server is improved.
In order to achieve the above object, the preferred embodiment of the present invention adopts the following technical solutions:
the preferred embodiment of the present invention provides a communication switching method, which is applied to a coordination server in communication connection with a main server and at least one backup server, wherein the coordination server is configured with identification information of the main server and each backup server. The method comprises the following steps:
when detecting the updated user behavior data in the main server, backing up the updated user behavior data to each backup server;
judging the state information of the main server according to the feedback condition of the main server, wherein the state information comprises a normal state and an abnormal state;
when the main server is judged to be in an abnormal state, selecting a target backup server from the backup servers based on a preset rule;
sending a switching protocol request including the identification information of the target backup server to a user terminal so that the user terminal responds to the switching protocol request and establishes connection with the target backup server;
and acquiring a data node corresponding to the user terminal when the main server is abnormal, sending the data node to the target backup server for verification, and finishing switching between the main server and the target backup server after the verification is passed.
In a preferred embodiment of the present invention, the determining the status information of the main server according to the feedback condition of the main server includes:
when the information fed back by the main server is not received within a preset time length, judging that the main server is abnormal; or
And when an abnormal instruction sent by the main server is received, judging that the main server has abnormality.
In a preferred embodiment of the present invention, the coordinating server is configured with priorities of backup servers, and when it is determined that the main server is in an abnormal state, the method for selecting a target backup server from the backup servers based on a preset rule includes:
and selecting the backup server with the highest priority from the backup servers as a target backup server.
In a preferred embodiment of the present invention, before the step of backing up the updated user behavior data to each backup server when the updated user behavior data in the primary server is detected, the method further includes:
configuring the priority of each backup server;
the configuring the priority of each backup server comprises:
acquiring operation parameters of each backup server, wherein the operation parameters comprise operation state parameters, routing parameters, normal operation duration and service volume capable of accommodating services;
and determining the priority of each backup server according to the operating parameters of each backup server.
In a preferred embodiment of the present invention, after acquiring the data node corresponding to the user terminal when the main server is abnormal and sending the data node to the target backup server for verification, the method further includes:
and after receiving a work recovery instruction sent by the main server, backing up the user behavior data updated in the target backup server to the main server.
In a preferred embodiment of the present invention, after receiving the recovery work instruction sent by the main server, and after backing up the updated user behavior data in the target backup server to the main server, the method further includes:
when the target backup server is judged to be abnormal, sending a switching protocol request comprising the identification information of the main server to a user terminal so that the user terminal responds to the switching protocol request and establishes connection with the main server;
and acquiring a data node corresponding to the user terminal when the target backup server is abnormal, sending the data node to the main server for verification, and finishing switching between the target backup server and the main server after the verification is passed.
The preferred embodiment of the present invention further provides a communication switching apparatus, which is applied to a coordination server in communication connection with a main server and at least one backup server, where the coordination server is configured with identification information of the main server and each backup server, and the apparatus includes:
and the backup module is used for backing up the updated user behavior data to each backup server when the updated user behavior data in the main server is detected.
And the judging module is used for judging the state information of the main server according to the feedback condition of the main server, wherein the state information comprises a normal state and an abnormal state.
And the selecting module is used for selecting the target backup server from the backup servers based on a preset rule when the main server is judged to be in an abnormal state.
And the sending module is used for sending a switching protocol request comprising the identification information of the target backup server to the user terminal so that the user terminal responds to the switching protocol request and establishes connection with the target backup server.
And the acquisition module is used for acquiring the corresponding data node of the user terminal when the main server is abnormal, sending the data node to the target backup server for verification, and finishing the switching between the main server and the target backup server after the verification is passed.
The preferred embodiment of the present invention further provides a coordination server, wherein the coordination server includes:
a storage medium;
a processor; and
a communication switching apparatus stored in the storage medium and including a software function executed by the processor, the apparatus comprising:
and the backup module is used for backing up the updated user behavior data to each backup server when the updated user behavior data in the main server is detected.
And the judging module is used for judging the state information of the main server according to the feedback condition of the main server, wherein the state information comprises a normal state and an abnormal state.
And the selecting module is used for selecting the target backup server from the backup servers based on a preset rule when the main server is judged to be in an abnormal state.
And the sending module is used for sending a switching protocol request comprising the identification information of the target backup server to the user terminal so that the user terminal responds to the switching protocol request and establishes connection with the target backup server.
And the acquisition module is used for acquiring the corresponding data node of the user terminal when the main server is abnormal, sending the data node to the target backup server for verification, and finishing the switching between the main server and the target backup server after the verification is passed.
The preferred embodiment of the present invention further provides a readable storage medium, in which a computer program is stored, and when the computer program runs, the communication switching method is implemented.
Compared with the prior art, the invention has the following beneficial effects:
embodiments of the present invention provide a communication switching method, apparatus, coordination server, and readable storage medium, where the coordination server backs up updated user behavior data to each backup server when detecting the updated user behavior data in the main server, and when it is determined that the primary server is in an abnormal state, selecting a target backup server from the backup servers based on a preset rule, then sends a handover protocol request including identification information of the target backup server to the user terminal, such that the user terminal establishes a connection with the target backup server in response to a handover protocol request, and then, acquiring a data node corresponding to the user terminal when the main server is abnormal, sending the data node to a target backup server for verification, and finishing switching between the main server and the target backup server after the verification is passed. Therefore, when the main server is in an abnormal state after being attacked, the user terminal is connected with the target backup server in an imperceptible manner, so that the network attack can be effectively responded, user data cannot be lost easily, user experience is greatly improved, and the resource consumption condition of the server is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic view of an application scenario of a communication handover method according to a preferred embodiment of the present invention;
fig. 2 is a flowchart illustrating a communication handover method according to a preferred embodiment of the present invention;
fig. 3 is another flow chart illustrating a communication handover method according to a preferred embodiment of the present invention;
FIG. 4 is a functional block diagram of a communication switching device according to a preferred embodiment of the present invention;
fig. 5 is a schematic block diagram of a coordination server according to a preferred embodiment of the present invention.
Icon: 100-a coordination server; 110-a bus; 120-a processor; 130-a storage medium; 140-bus interface; 150-a network adapter; 160-a user interface; 170-communication switching means; 171-a backup module; 172-a judgment module; 173-selecting a module; 174-a sending module; 175-an acquisition module; 200-a primary server; 300-a backup server; 400-user terminal.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Fig. 1 is a schematic view of an application scenario of the communication switching method according to the preferred embodiment of the present invention. In this embodiment, the communication switching method is applied to the coordinating server 100 in communication connection with the main server 200 and at least one backup server 300, and in general, the user terminal 400 establishes communication connection with the main server 200 to upload corresponding user behavior data to the main server 200.
Wherein the user terminal 400 may transmit or receive signals through a manner such as wired or wireless network, or may process or store the signals in a physical storage state such as a memory. Each user terminal 400 may be an electronic device comprising hardware, software, or embedded logic elements, or a combination of two or more such elements, and capable of performing the appropriate functions implemented or supported by the user terminal 400. Alternatively, the user terminal 400 may be a device with wireless transceiving function, including an indoor or outdoor, handheld, wearable or vehicle-mounted device. For example, the user terminal 400 may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in telemedicine (remote), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like. The embodiments of the present application do not limit the application scenarios.
According to some embodiments of the invention, the user terminal 400 may comprise: a processing device including an application processing section and a radio frequency/digital signal processor; a display screen; a keypad that may include physical keys, touch keys overlaid on a display, or a combination thereof; a subscriber identity module card; memory devices that may include ROM, RAM, flash memory, or any combination thereof; a Wi-Fi and/or Bluetooth interface; a wireless telephone interface; a power management circuit with an associated battery; a USB interface and a connector; an audio management system with associated microphone, speaker and headphone jack; and various optional accessory components such as cameras, global positioning systems, accelerators, etc.
In the embodiment of the present invention, the coordination server 100 should be understood as a service point providing processes, databases, and communication facilities. By way of example, the coordination server 100 may refer to a single physical processor with associated communication and data storage and repository facilities, or it may refer to a networked or clustered collection of processors, associated networks and storage devices, and operating on software and one or more repository systems and application software supporting services provided by the coordination server 100. The coordination servers 100 may vary widely in configuration or performance, but the coordination servers 100 may generally include one or more central processing units and memory units. The coordination Server 100 may also include one or more large depository devices, one or more power supplies, one or more wired or wireless network components, one or more input/output components, or one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD.
Referring to fig. 2, a flow chart of a communication switching method according to a preferred embodiment of the invention is shown, the method is executed by the coordination server 100 shown in fig. 1. It should be noted that the communication handover method provided by the embodiment of the present invention is not limited by the specific sequence shown in fig. 2 and described below. The method comprises the following specific steps:
in step S110, when the updated user behavior data in the main server 200 is detected, the updated user behavior data is backed up to each backup server 300.
In this embodiment, the user behavior data may include operation data of a user, for example, mouse click operation data or keyboard button operation data of the user.
Step S120, determining the status information of the main server 200 according to the feedback condition of the main server 200.
In this embodiment, the state information includes a normal state and an abnormal state. Optionally, when the coordination server 100 does not receive the information fed back by the main server 200 within a preset time period, it is determined that the main server 200 is abnormal, or when the coordination server 100 receives an abnormal instruction sent by the main server 200, it is determined that the main server 200 is abnormal.
In step S130, when it is determined that the main server 200 is in an abnormal state, a target backup server is selected from the backup servers 300 based on a preset rule.
Optionally, the coordinating server 100 is configured with a priority of each backup server 300, wherein the priority of each backup server 300 is related to its operation parameter. Specifically, the coordination server 100 may obtain the operation parameters of each backup server 300 in real time, where the operation parameters include an operation status parameter, a routing parameter, a normal operation duration, and a service volume capable of accommodating a service, so as to determine the priority of each backup server 300 according to the operation parameters of each backup server 300. For example, when the backup server 300 is in an abnormal operation state, the priority is the lowest, and the backup server can be directly removed. When the backup server 300 is in a normal operation state, the priority parameter of the backup server 300 may be a quotient of the routing parameter and a product of the normal operation time length and the service volume capable of accommodating the service, that is, in a case where the routing parameter is fixed, the priority parameter of the backup server 300 is larger when the normal operation time length and the service volume capable of accommodating the service are larger. Under the condition that the normal operation time length and the service volume capable of accommodating the service are fixed, the smaller the routing parameter is, the larger the priority parameter of the backup server 300 is, so that the priority parameter of each backup server 300 can be calculated, and each backup server 300 is sorted according to the calculated priority parameter.
According to the above priority ranking results, when the coordinator server 100 determines that the primary server 200 is in an abnormal state, the backup server 300 with the highest priority may be selected from the backup servers 300 as the target backup server.
Step S140, sending a switching protocol request including the identification information of the target backup server to the user terminal 400, so that the user terminal 400 responds to the switching protocol request to establish a connection with the target backup server.
In this embodiment, the coordinating server 100 stores identification information of the main server 200 and each backup server 300, optionally, the identification information may be an IP address or an MAC address, after the target backup server is determined, the coordinating server 100 sends a switching protocol request including the identification information of the target backup server to the user terminal 400, and the user terminal 400 responds to the switching protocol request to establish a communication connection with the backup server 300 with the highest priority.
Step S150, acquiring a data node corresponding to the user terminal 400 when the main server 200 is abnormal, sending the data node to the target backup server for verification, and completing the switching between the main server 200 and the target backup server after the verification is passed.
In this embodiment, after the user terminal 400 and the target backup server establish a communication connection, in order to realize the user's switching from the primary server 200 to the backup server 300 without perception, there is a data node corresponding to the primary server 200 when there is an abnormality, since the data in the primary server 200 is backed up to the target backup server in real time, the coordinating server 100 may verify by sending the data node to the target backup server, if the verification is passed, that is, the data node is consistent with the data node corresponding to the last received data packet of the target backup server, the switching between the main server 200 and the target backup server is completed, and at this time, the user terminal 400 interacts with the target backup server, thereby executing a terminal service.
Based on the above design, when the main server 200 is in an abnormal state after being attacked, the user terminal 400 is connected to the target backup server without being aware of the connection, so that the network attack can be effectively dealt with, user data cannot be lost easily, user experience is greatly improved, and resource consumption of the server is improved.
Further, referring to fig. 3, after the step S150, the method may further include:
step S160, after receiving the work restoration instruction sent by the main server 200, backing up the updated user behavior data in the target backup server to the main server 200.
In this embodiment, after the main server 200 resumes work, a work resuming instruction is sent to the coordination server 100, and after receiving the work resuming instruction, the coordination server 100 backs up the user behavior data updated in the target backup server that is currently in communication connection with the user terminal 400 to the main server 200 that resumes work.
Optionally, when the coordination server 100 determines that the target backup server is abnormal, the switching protocol request including the identification information of the main server 200 may be sent to the user terminal 400 without determining the priority of the other servers, so that the user terminal 400 responds to the switching protocol request to establish a connection with the main server 200. Then, the data node corresponding to the user terminal 400 when the target backup server is abnormal is obtained, the data node is sent to the main server 200 for verification, and the switching between the target backup server and the main server 200 is completed after the verification is passed.
Based on the above design, after the main server 200 recovers work, the updated user behavior data of the target backup server can be backed up in real time, and when the target backup server is abnormal, the user terminal 400 can be directly switched to be connected with the main server 200, so that the switching efficiency is improved, and the main server 200 is ensured to recover operation at the first time.
Further, referring to fig. 4, a communication switching device 170 according to a preferred embodiment of the present invention may include:
the backup module 171 is configured to backup the updated user behavior data to each backup server 300 when the updated user behavior data in the main server 200 is detected.
The determining module 172 is configured to determine the state information of the main server 200 according to the feedback condition of the main server 200, where the state information includes a normal state and an abnormal state.
Optionally, the manner of determining the state information of the main server 200 according to the feedback condition of the main server 200 may include: when the information fed back by the main server 200 is not received within a preset time length, judging that the main server 200 is abnormal; or when receiving an abnormal command from the main server 200, determining that the main server 200 has an abnormality.
The selecting module 173 is configured to select a target backup server from the backup servers 300 based on a preset rule when it is determined that the main server 200 is in an abnormal state.
A sending module 174, configured to send a switching protocol request including the identification information of the target backup server to the user terminal 400, so that the user terminal 400 responds to the switching protocol request to establish a connection with the target backup server.
An obtaining module 175, configured to obtain a data node corresponding to the user terminal 400 when the main server 200 is abnormal, send the data node to the target backup server for verification, and complete switching between the main server 200 and the target backup server after the verification is passed.
It can be understood that, for the specific operation method of each functional module in this embodiment, reference may be made to the detailed description of the corresponding step in the foregoing method embodiment, and no repeated description is provided herein.
Further, a readable storage medium is provided in a preferred embodiment of the present invention, and a computer program is stored in the readable storage medium, and when the computer program runs, the computer program controls the coordination server 100 where the readable storage medium is located to execute the above communication switching method.
Further, please refer to fig. 5, which is a block diagram illustrating a structure of the coordination server 100 according to a preferred embodiment of the present invention. As shown in FIG. 5, coordination server 100 may be implemented by a bus 110 as a general bus architecture. The bus 110 may include any number of interconnecting buses and bridges depending on the specific application of the coordination server 100 and the overall design constraints. Bus 110 connects various circuits together, including processor 120, storage medium 130, and bus interface 140. Alternatively, the coordination server 100 may connect a network adapter 150 or the like via the bus 110 using the bus interface 140. The network adapter 150 may be used to implement a signal processing function of a physical layer in the coordination server 100, and implement transmission and reception of radio frequency signals through an antenna. The user interface 160 may connect external devices such as: a keyboard, a display, a mouse or a joystick, etc. The bus 110 may also connect various other circuits such as timing sources, peripherals, voltage regulators, or power management circuits, which are well known in the art, and therefore, will not be described in detail.
Alternatively, the coordination server 100 may be configured as a general purpose processing system, such as what is commonly referred to as a chip, including: one or more microprocessors providing processing functions, and an external memory providing at least a portion of storage medium 130, all connected together with other support circuits through an external bus architecture.
Alternatively, the coordination server 100 may be implemented using an ASIC (application specific Integrated Circuit) having a processor 120, a bus interface 140, a user interface 160; and at least a portion of the storage medium 130 integrated in a single chip, or the coordination server 100 may be implemented using one or more FPGAs (field programmable gate arrays), PLDs (programmable logic devices), controllers, state machines, gate logic, discrete hardware components, any other suitable circuitry, or any combination of circuitry capable of performing the various functions described throughout this disclosure.
Among other things, processor 120 is responsible for managing bus 110 and general processing (including the execution of software stored on storage medium 130). Processor 120 may be implemented using one or more general-purpose processors and/or special-purpose processors. Examples of processor 120 include microprocessors, microcontrollers, DSP processors, and other circuits capable of executing software. Software should be construed broadly to mean instructions, data, or any combination thereof, whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise.
The storage medium 130 is shown separate from the processor 120 in fig. 5, however, it will be readily apparent to those skilled in the art that the storage medium 130, or any portion thereof, may be located outside of the coordination server 100. Storage medium 130 may include, for example, a transmission line, a carrier waveform modulated with data, and/or a computer product separate from the wireless node, which may be accessed by processor 120 via bus interface 140. Alternatively, the storage medium 130, or any portion thereof, may be integrated into the processor 120, e.g., may be a cache and/or general purpose registers.
The processor 120 may execute the above embodiments, specifically, the storage medium 130 may store the communication switching device 170 therein, and the processor 120 may be configured to execute the communication switching device 170.
Embodiments of the present invention provide a communication switching method and apparatus, a coordinating server 100, and a readable storage medium, where when detecting updated user behavior data in a main server 200, the coordinating server 100 backs up the updated user behavior data to each backup server 300, and, when it is determined that the main server 200 is in an abnormal state, selects a target backup server from the backup servers 300 based on a preset rule, and then transmits a handover protocol request including identification information of the target backup server to the user terminal 400, so that the user terminal 400 establishes a connection with the target backup server in response to a handover protocol request, then acquires the data node corresponding to the user terminal 400 when the main server 200 has an abnormality, and sends the data node to the target backup server for verification, and completes the switching between the main server 200 and the target backup server after the verification is passed. Therefore, when the main server 200 is in an abnormal state after being attacked, the user terminal 400 is connected with the target backup server without sensing, so that the network attack can be effectively responded, user data cannot be lost easily, user experience is greatly improved, and meanwhile, the resource consumption condition of the server is improved.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
Alternatively, all or part of the implementation may be in software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (9)

1. A communication switching method is applied to a coordination server which is in communication connection with a main server and at least one backup server, wherein identification information of the main server and each backup server is configured in the coordination server, and the method comprises the following steps:
when detecting the updated user behavior data in the main server, backing up the updated user behavior data to each backup server;
judging the state information of the main server according to the feedback condition of the main server, wherein the state information comprises a normal state and an abnormal state;
when the main server is judged to be in an abnormal state, selecting a target backup server from the backup servers based on a preset rule;
sending a switching protocol request including the identification information of the target backup server to a user terminal so that the user terminal responds to the switching protocol request and establishes connection with the target backup server;
acquiring a data node corresponding to the user terminal when the main server is abnormal, sending the data node to the target backup server for verification, and completing switching between the main server and the target backup server after the verification is passed;
the coordinating server is configured with the priority of each backup server, and when the main server is judged to be in an abnormal state, a target backup server is selected from the backup servers based on a preset rule, wherein the method comprises the following steps:
selecting a backup server with the highest priority from the backup servers as a target backup server;
when the backup server is in a normal operation state, the priority parameter of the backup server is a quotient of the routing parameter and the product of the time length of the normal operation and the service volume of the containable service.
2. The communication switching method according to claim 1, wherein the determining the status information of the primary server according to the feedback condition of the primary server comprises:
when the information fed back by the main server is not received within a preset time length, judging that the main server is abnormal; or
And when an abnormal instruction sent by the main server is received, judging that the main server has abnormality.
3. The communication handover method according to claim 1, wherein before the step of backing up the updated user behavior data to each backup server upon detection of the updated user behavior data in the primary server, the method further comprises:
configuring the priority of each backup server;
the configuring the priority of each backup server comprises:
acquiring operation parameters of each backup server, wherein the operation parameters comprise operation state parameters, routing parameters, normal operation duration and service volume capable of accommodating services;
and determining the priority of each backup server according to the operating parameters of each backup server.
4. The communication switching method according to claim 1, wherein after the obtaining of the data node corresponding to the user terminal when the main server is abnormal and sending the data node to the target backup server for verification, the method further comprises:
and after receiving a work recovery instruction sent by the main server, backing up the user behavior data updated in the target backup server to the main server.
5. The communication switching method according to claim 4, wherein after receiving the recovery work instruction sent by the primary server, and after backing up the user behavior data updated in the target backup server to the primary server, the method further comprises:
when the target backup server is judged to be abnormal, sending a switching protocol request comprising the identification information of the main server to a user terminal so that the user terminal responds to the switching protocol request and establishes connection with the main server;
and acquiring a data node corresponding to the user terminal when the target backup server is abnormal, sending the data node to the main server for verification, and finishing switching between the target backup server and the main server after the verification is passed.
6. A communication switching apparatus applied to a coordinating server communicatively connected to a main server and at least one backup server, the coordinating server being configured with identification information of the main server and each of the backup servers, the apparatus comprising:
the backup module is used for backing up the updated user behavior data to each backup server when the updated user behavior data in the main server is detected;
the judging module is used for judging the state information of the main server according to the feedback condition of the main server, wherein the state information comprises a normal state and an abnormal state;
the selecting module is used for selecting a target backup server from the backup servers based on a preset rule when the main server is judged to be in an abnormal state;
a sending module, configured to send a switching protocol request including identification information of the target backup server to a user terminal, so that the user terminal establishes a connection with the target backup server in response to the switching protocol request;
the acquisition module is used for acquiring a corresponding data node of the user terminal when the main server is abnormal, sending the data node to the target backup server for verification, and completing switching between the main server and the target backup server after the verification is passed;
the coordination server is configured with the priority of each backup server, and when the main server is judged to be in an abnormal state, the selection module is used for selecting the backup server with the highest priority from the backup servers as a target backup server;
when the backup server is in a normal operation state, the priority parameter of the backup server is a quotient of the routing parameter and the product of the time length of the normal operation and the service volume of the containable service.
7. The communication switching apparatus according to claim 6, wherein the means for determining the status information of the main server based on the feedback status of the main server includes:
when the information fed back by the main server is not received within a preset time length, judging that the main server is abnormal; or
And when an abnormal instruction sent by the main server is received, judging that the main server has abnormality.
8. A coordination server, characterized in that the coordination server comprises:
a storage medium;
a processor; and
a communication switching apparatus stored in the storage medium and including a software function executed by the processor, the apparatus comprising:
the backup module is used for backing up the updated user behavior data to each backup server when the updated user behavior data in the main server is detected;
the judging module is used for judging the state information of the main server according to the feedback condition of the main server, wherein the state information comprises a normal state and an abnormal state;
the selecting module is used for selecting a target backup server from the backup servers based on a preset rule when the main server is judged to be in an abnormal state;
a sending module, configured to send a switching protocol request including identification information of the target backup server to a user terminal, so that the user terminal establishes a connection with the target backup server in response to the switching protocol request;
the acquisition module is used for acquiring a corresponding data node of the user terminal when the main server is abnormal, sending the data node to the target backup server for verification, and completing switching between the main server and the target backup server after the verification is passed;
the coordination server is configured with the priority of each backup server, and when the main server is judged to be in an abnormal state, the selection module is used for selecting the backup server with the highest priority from the backup servers as a target backup server;
when the backup server is in a normal operation state, the priority parameter of the backup server is a quotient of the routing parameter and the product of the time length of the normal operation and the service volume of the containable service.
9. A readable storage medium, in which a computer program is stored, the computer program implementing the communication switching method according to any one of claims 1 to 5 when executed.
CN201711305098.1A 2017-12-11 2017-12-11 Communication switching method, device, coordination server and readable storage medium Active CN108040108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711305098.1A CN108040108B (en) 2017-12-11 2017-12-11 Communication switching method, device, coordination server and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711305098.1A CN108040108B (en) 2017-12-11 2017-12-11 Communication switching method, device, coordination server and readable storage medium

Publications (2)

Publication Number Publication Date
CN108040108A CN108040108A (en) 2018-05-15
CN108040108B true CN108040108B (en) 2020-10-16

Family

ID=62101975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711305098.1A Active CN108040108B (en) 2017-12-11 2017-12-11 Communication switching method, device, coordination server and readable storage medium

Country Status (1)

Country Link
CN (1) CN108040108B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557650B (en) * 2018-05-30 2022-04-05 视联动力信息技术股份有限公司 Data processing system based on video network
CN110831023B (en) * 2018-08-09 2021-11-09 华为技术有限公司 Parameter configuration method
CN110830281B (en) * 2018-08-13 2022-06-14 浙江宇视科技有限公司 Hot standby method and system based on mesh network structure
CN109445995A (en) * 2018-09-04 2019-03-08 深圳市宝德计算机系统有限公司 Server data processing method, device and storage medium
CN109344014B (en) * 2018-09-26 2022-02-11 新华三大数据技术有限公司 Main/standby switching method and device and communication equipment
US11068351B2 (en) * 2018-11-19 2021-07-20 International Business Machines Corporation Data consistency when switching from primary to backup data storage
CN111628880A (en) * 2019-02-27 2020-09-04 深圳迈瑞生物医疗电子股份有限公司 Method for transferring failure of in-hospital equipment and monitoring system
CN110868327A (en) * 2019-11-28 2020-03-06 武汉极意网络科技有限公司 Behavior verification control method, behavior verification control device, behavior verification control equipment and storage medium
CN111277373B (en) * 2020-01-14 2022-08-16 深圳震有科技股份有限公司 Server switching control method, terminal and storage medium
CN113448769A (en) * 2020-03-27 2021-09-28 西安诺瓦星云科技股份有限公司 Parameter backup method and device, and parameter recovery method and device
CN111417089A (en) * 2020-04-14 2020-07-14 高新兴物联科技有限公司 Method, terminal and computer-readable storage medium for providing data service for application
CN111414247A (en) * 2020-04-24 2020-07-14 北京金山云网络技术有限公司 Server switching method, device, management node and storage medium
CN111884847B (en) * 2020-07-20 2022-06-28 北京百度网讯科技有限公司 Method and device for processing fault
CN112422320B (en) * 2020-10-27 2022-11-11 北京金山云网络技术有限公司 Master-slave switching method and device of server and server
CN114650283A (en) * 2020-12-21 2022-06-21 京东科技控股股份有限公司 Method and device for dynamically switching cloud storage service, electronic equipment and storage medium
CN112965855A (en) * 2021-02-02 2021-06-15 杭州城市大脑有限公司 Urban brain digital management system
CN113190371B (en) * 2021-05-18 2024-04-05 京东科技信息技术有限公司 Task compensation method and device, electronic equipment and readable storage medium
CN113489154B (en) * 2021-07-16 2023-07-28 广东电网有限责任公司 Power grid monitoring system data loss prevention method based on main and standby channel switching technology
CN113472469B (en) * 2021-07-27 2023-12-05 厦门亿联网络技术股份有限公司 Data synchronization method, device, equipment and storage medium
CN114138732A (en) * 2021-09-29 2022-03-04 聚好看科技股份有限公司 Data processing method and device
CN115277377A (en) * 2022-05-19 2022-11-01 亿点云计算(珠海)有限公司 Service acquisition method, device, terminal and storage medium based on distributed cloud
CN115051910A (en) * 2022-05-19 2022-09-13 北京声智科技有限公司 Request processing method and device, electronic equipment and storage medium
CN115242807A (en) * 2022-06-30 2022-10-25 深圳震有科技股份有限公司 Data access method in 5G communication system and related equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030037284A1 (en) * 2001-08-15 2003-02-20 Anand Srinivasan Self-monitoring mechanism in fault-tolerant distributed dynamic network systems
CN101651691B (en) * 2009-08-31 2013-03-27 中兴通讯股份有限公司 Network system, access equipment and application layer service assess method
CN102083049B (en) * 2009-11-30 2013-03-13 中国移动通信集团四川有限公司 Startup and shutdown system and switching method thereof
CN102916825A (en) * 2011-08-01 2013-02-06 中兴通讯股份有限公司 Management equipment of dual-computer hot standby system, management method and dual-computer hot standby system
CN102404146B (en) * 2011-11-17 2014-10-29 福建星网锐捷网络有限公司 Master-slave switching method, network device and DHCP server

Also Published As

Publication number Publication date
CN108040108A (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN108040108B (en) Communication switching method, device, coordination server and readable storage medium
CN107995036B (en) Data transmission method, device, server and readable storage medium
CN110380917B (en) Control method and device of federal learning system, terminal equipment and storage medium
EP3531290B1 (en) Data backup method, apparatus, electronic device, storage medium, and system
CN106095458B (en) The management method and device of plug-in unit in a kind of application program
CN102819461B (en) Desktop synchronous method, device, equipment and system
CN111770169B (en) Method, device, equipment and storage medium for upgrading equipment firmware
CN108733459B (en) Distributed timing method, server and system
CN104184756A (en) Data synchronization method, device and system
CN115211225B (en) Satellite link information determining method and device
CN103037195A (en) Method and device used for setting video call parameters and transmission capacity parameters
CN112398689A (en) Network recovery method and device, storage medium and electronic equipment
CN112272118A (en) Network repairing method, device, storage medium and electronic equipment
KR20200031900A (en) Apparatus and method for controlling protocol data unit session
CN110336592B (en) Data transmission method suitable for Bluetooth card reader, electronic equipment and storage medium
CN111930565B (en) Process fault self-healing method, device and equipment for components in distributed management system
WO2015070718A1 (en) Communication number notification method and communication device
CN107615826B (en) Method for determining network type in wireless communication network, access point equipment, terminal equipment and wireless network controller
CN114327846A (en) Cluster capacity expansion method and device, electronic equipment and computer readable storage medium
CN107819761B (en) Data processing method and device and readable storage medium
CN113747423B (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN111371896A (en) Network acceleration method, terminal and storage medium
WO2022222968A1 (en) Conference call recovery method, apparatus and system, electronic device, and readable storage medium
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
CN106790343B (en) Resource downloading method and server

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
GR01 Patent grant
GR01 Patent grant