CN111082903A - Method and device for switching main server and standby server - Google Patents

Method and device for switching main server and standby server Download PDF

Info

Publication number
CN111082903A
CN111082903A CN201811231034.6A CN201811231034A CN111082903A CN 111082903 A CN111082903 A CN 111082903A CN 201811231034 A CN201811231034 A CN 201811231034A CN 111082903 A CN111082903 A CN 111082903A
Authority
CN
China
Prior art keywords
file transmission
base station
server
command
link
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
Application number
CN201811231034.6A
Other languages
Chinese (zh)
Other versions
CN111082903B (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201811231034.6A priority Critical patent/CN111082903B/en
Publication of CN111082903A publication Critical patent/CN111082903A/en
Application granted granted Critical
Publication of CN111082903B publication Critical patent/CN111082903B/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
    • 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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method and a device for switching a main server and a standby server. The method comprises the following steps: acquiring a first file transmission rate of a main server interface; sending a wake-up command to a standby server under the condition that the first file transmission rate is greater than a file transmission congestion threshold; wherein the wake-up command instructs the standby server to enter a wake-up state; receiving a response message for entering a wake-up state returned by the standby server; selecting at least one base station from a plurality of base stations connected to the main server by a file transmission link according to a preset rule; transmitting a first link switching command to the at least one base station; wherein the first link switch command instructs the at least one base station to switch a file transmission link to the standby server. The invention can effectively utilize the equipment resources, avoid the waste of the equipment resources, further reduce the occurrence of file transmission congestion and further improve the file transmission efficiency.

Description

Method and device for switching main server and standby server
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for switching between a master server and a slave server.
Background
In the current LTE (Long Term Evolution) system, an OMC (operation and maintenance Center) is used as an operation and maintenance device for managing all enbs (evolved node bs). In the management of the eNB network element, it is necessary to obtain various file information such as a performance original file, an MR (Measurement report) original file, a signaling file, and the like of the eNB. The eNB network element transmits the above File information to the server in a periodic form within substantially the same period of time, which may cause a large increase in the size of files generated by the eNB and the number of files under special conditions such as eNB software upgrade and MR task change, and may cause File transmission congestion due to the limitation of the FTP (File Transfer Protocol) server interface rate, or even cause a large amount of File loss, and may have a great influence on the network KPI (Key Performance Indicators) indicator statistics.
At present, the network element deployment of the FTP server of the OMC in the existing network basically has a standby machine, and when the host machine does not break down and can work normally, the standby machine is in a standby state all the time. The FTP server standby state, which cannot be actively applied, not only wastes device resources, but also results in failure to optimize file transfer under the condition of file transfer congestion.
Disclosure of Invention
The invention provides a method and a device for switching a main server and a standby server, which are used for solving the problems that the existing FTP server standby machine cannot be actively applied, not only equipment resources are wasted, but also the file transmission cannot be optimized under the condition of file transmission congestion.
In order to solve the above problems, the present invention is realized by:
in a first aspect, an embodiment of the present invention discloses a method for switching between a master server and a slave server, including: acquiring a first file transmission rate of a main server interface; sending a wake-up command to a standby server under the condition that the first file transmission rate is greater than a file transmission congestion threshold; wherein the wake-up command instructs the standby server to enter a wake-up state; receiving a response message for entering a wake-up state returned by the standby server; selecting at least one base station from a plurality of base stations connected to the main server by a file transmission link according to a preset rule; transmitting a first link switching command to the at least one base station; wherein the first link switch command instructs the at least one base station to switch a file transmission link to the standby server.
Preferably, the step of sending a wake-up command to the standby server when the first file transfer rate is greater than the file transfer congestion threshold includes: starting a hysteresis timer under the condition that the first file transmission rate is greater than a file transmission congestion threshold; judging whether the first timing time of the hysteresis timer is greater than a first set time; and if so, sending a wake-up command to the standby server and closing the hysteresis timer.
Preferably, after the step of selecting at least one base station according to a preset rule from a plurality of base stations connected to the master server by the slave file transmission link, the method further includes: saving the at least one base station to a link switching list.
Preferably, after the step of sending the first link switching command to the at least one base station, the method further includes: starting the hysteresis timer when the first file transmission rate is less than or equal to the file transmission congestion threshold; judging whether the second timing time of the hysteresis timer is greater than a second set time; if yes, sending a second link switching command to at least one base station in the link switching list; wherein the second link switch command instructs the at least one base station to switch a file transmission link to the primary server.
Preferably, after the step of sending the second link switching command to at least one base station in the link switching list, the method further includes: receiving a return message of switching the file transmission link returned by the at least one base station to the main server; sending a standby command to the standby server; wherein the standby command instructs the standby server to enter a standby state.
In a second aspect, an embodiment of the present invention discloses a device for switching between a master server and a slave server, including: the file transmission rate acquisition module is used for acquiring a first file transmission rate of the main server interface; the wake-up command sending module is used for sending a wake-up command to the standby server under the condition that the first file transmission rate is greater than the file transmission congestion threshold; wherein the wake-up command instructs the standby server to enter a wake-up state; a response message receiving module, configured to receive a response message for entering an awake state, where the response message is returned by the standby server; the base station selection module is used for selecting at least one base station from a plurality of base stations connected to the main server through the file transmission link according to a preset rule; a handover command sending module, configured to send a first link handover command to the at least one base station; wherein the first link switch command instructs the at least one base station to switch a file transmission link to the standby server.
Preferably, the wake-up command sending module includes: a first timer starting sub-module, configured to start a hysteresis timer when the first file transmission rate is greater than a file transmission congestion threshold; the first time judgment submodule is used for judging whether the first timing time of the hysteresis timer is greater than a first set time; and the wake-up command sending submodule is used for sending a wake-up command to the standby server and closing the hysteresis timer under the condition that the first timing time is greater than the first set time.
Preferably, the method further comprises the following steps: and the base station storage module is used for storing the at least one base station to a link switching list.
Preferably, the method further comprises the following steps: a second timer starting module, configured to start the hysteresis timer when the first file transmission rate is less than or equal to the file transmission congestion threshold; the second time judging module is used for judging whether the second timing time of the hysteresis timer is greater than a second set time; a second switching command sending module, configured to send a second link switching command to at least one base station in the link switching list when the second timing time is greater than the second set time; wherein the second link switch command instructs the at least one base station to switch a file transmission link to the primary server.
Preferably, the method further comprises the following steps: a return message receiving module, configured to receive a return message sent by the at least one base station when the file transmission link is switched to the main server; a standby command sending module, configured to send a standby command to the standby server; wherein the standby command instructs the standby server to enter a standby state.
Compared with the prior art, the invention has the following advantages:
the embodiment of the invention provides a method and a device for switching a main server and a standby server, wherein a first file transmission rate of an interface of the main server is obtained, a wake-up command is sent to the standby server under the condition that the first file transmission rate is greater than a file transmission congestion threshold, the wake-up command indicates that the standby server enters a wake-up state, a response message returned by the standby server to enter the wake-up state is received, at least one base station is selected from a plurality of base stations connected to the main server through a file transmission link, and a first link switching command is sent to the at least one base station, wherein the first link switching command indicates that the at least one base station switches the file transmission link to the standby server. By the scheme provided by the embodiment of the invention, the standby server can be awakened to receive the file transmitted by the selected base station when the file transmission rate of the interface of the main server is seriously reduced, so that the equipment resources can be effectively utilized, the waste of the equipment resources is avoided, the occurrence of file transmission congestion is further reduced, and the file transmission efficiency is further improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for switching between a master server and a standby server according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a method for switching between a master server and a standby server according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for switching between active and standby servers according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example one
Referring to fig. 1, a flowchart illustrating steps of a method for switching between a master server and a standby server according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101: a first file transfer rate of a host server interface is obtained.
The embodiment of the invention can be applied to an OMC operation maintenance system, and the OMC can be used for managing all eNBs. In the management of the eNB network element, it is necessary to acquire various file information such as a performance original file, an MR original file, a signaling file, and the like of the eNB. And the eNB network element transmits the file information to the server in a periodic form within basically the same period of time.
The system is provided with a main server and a standby server in advance, where the main server and the standby server may be FTP servers, and the FTP servers are computers providing file storage and access services on the internet, and of course, the main server and the standby server may also be other types of servers, which is not limited in this embodiment of the present invention.
The main server may be used to receive various file information transmitted by the eNB. The OMC may detect a first file transfer rate of the main server interface in real time. A detection timer may also be preset, and when the set interval time is reached, the first file transmission rate of the host server interface is detected once, which is not limited in the embodiment of the present invention.
It can be understood that the OMC detecting the file transfer rate of the main server interface is a mature technology in the field, and any scheme in the prior art that can detect the first file transfer rate of the main server interface can be applied to the present invention, and the embodiments of the present invention are not described herein again.
After the first file transfer rate of the host server interface is obtained, step 102 is performed.
Step 102: and sending a wake-up command to the standby server under the condition that the first file transmission rate is greater than the file transmission congestion threshold.
The OMC system stores a file transmission congestion threshold corresponding to the main server in advance, the file transmission congestion threshold of the main server is obtained by research and development personnel according to actual experience, and the embodiment of the invention does not describe too much for the setting mode of the file transmission congestion threshold.
After obtaining the first file transfer rate of the primary server interface, the first file transfer rate may then be compared to a file transfer congestion threshold.
And when the first file transmission rate is less than or equal to the file transmission congestion threshold, the situation that the master server receives the file sent by the eNB is normal, and the situation that the file transmission congestion does not occur, the OMC continues to detect the first file transmission rate of the interface of the master server.
When the master server receives the eNB normally, the standby server corresponding to the master server is in a standby state. And under the condition that the first file transmission rate is greater than the file transmission congestion threshold, the situation that the number of the eNB sending files received by the main server interface is too large and file transmission congestion may occur is indicated, an awakening command is sent to the standby server corresponding to the main server by the OMC, and the awakening command can be used for indicating the standby server to enter an awakening state from a standby state.
After sending the wake-up command to the standby server, step 103 is performed.
Step 103: and receiving a response message for entering the awakening state returned by the standby server.
After the standby server receives the wake-up command sent by the OMC, the standby server may enter the wake-up state from the standby state according to the wake-up command, and after the standby server enters the wake-up state, a response message corresponding to the wake-up command may be generated and returned to the OMC.
After receiving the response message of entering the wake-up state returned by the standby server, the OMC executes step 104.
Step 104: and selecting at least one base station from a plurality of base stations connected to the main server by the file transmission link according to a preset rule.
The base station with the file transmission link connected to the main server means that a file transmission link protocol, such as an FTP protocol, is established between the base station and the main server, and then a normal file transmission process can be performed between the base station and the main server according to the file transmission link protocol.
In the OMC system, base station identifiers of a plurality of base stations connected to the main server by each file transmission link are pre-stored, and the base station identifiers may be digital identifiers, such as "1", "5", "6", and the like, or may be in other forms. The base station identification of each base station is unique, and a plurality of base stations which are connected to the main server through the file transmission link can be obtained through the pre-stored base station identification.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be construed as the only limitations of the present invention.
Of course, in the prior art, a person skilled in the art may also use other methods to obtain multiple base stations where the file transmission link is connected to the main server, and the embodiments of the present invention are not described in detail herein.
In the embodiment of the present invention, the preset rule may be a file non-transmission rule, and the master server does not currently receive a file uploaded by a certain eNB, for example, if the master server does not receive a file uploaded by eNB3, eNB3 is the selected base station.
The preset rule may also be a percentage threshold that the number of files needs to reach the total number of enbs that are transmitting files, that is, the number of files that the eNB transmits to the main server reaches a set percentage of the total number that needs to be uploaded, for example, the set percentage is 50%, the total number of files that the eNB2 needs to upload to the main server is 100, and when 60 files are uploaded, the eNB2 is the selected base station.
In practical applications, other rules may also be used to select the base station, and the embodiment of the present invention is not limited thereto.
Of course, in the embodiment of the present invention, the base station whose file is not transmitted to the main server is preferentially selected as the selected base station, and the rest of the base stations whose files have been uploaded are randomly selected from the base stations.
After selecting at least one base station among the plurality of base stations connected to the main server from the file transmission link according to a preset rule, step 105 is performed.
Step 105: transmitting a first link handover command to the at least one base station.
After selecting the at least one base station, the OMC may send a first link switching command to the selected at least one base station, and the first link switching command may be used to instruct the selected at least one base station to switch the file transmission link to the standby server.
And if the eNB transmitting the file is selected, the eNB needs to wait for the eNB to complete the transmission of the file currently being transmitted and then respond to the first link switching command.
After responding to the first link switching command, the base station can switch the file transmission link to the standby server, and further can transmit the file to the standby server, so that the file transmission congestion phenomenon of the FTP host can be relieved or solved.
The embodiment of the invention provides a method for switching a main server and a standby server, which comprises the steps of acquiring a first file transmission rate of an interface of the main server, sending a wake-up command to the standby server under the condition that the first file transmission rate is greater than a file transmission congestion threshold, wherein the wake-up command indicates that the standby server enters a wake-up state, receiving a response message returned by the standby server to enter the wake-up state, selecting at least one base station from a plurality of base stations connected to the main server by a file transmission link according to a preset rule, and sending a first link switching command to the at least one base station, wherein the first link switching command indicates that the at least one base station switches the file transmission link to the standby server. By the scheme provided by the embodiment of the invention, the standby server can be awakened to receive the file transmitted by the selected base station when the file transmission rate of the interface of the main server is seriously reduced, so that the equipment resources can be effectively utilized, the waste of the equipment resources is avoided, the occurrence of file transmission congestion is further reduced, and the file transmission efficiency is further improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of a method for switching between active and standby servers according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 201: a first file transfer rate of a host server interface is obtained.
The embodiment of the invention can be applied to an OMC operation maintenance system, and the OMC can be used for managing all eNBs. In the management of the eNB network element, it is necessary to acquire various file information such as a performance original file, an MR original file, a signaling file, and the like of the eNB. And the eNB network element transmits the file information to the server in a periodic form within basically the same period of time.
The system is provided with a main server and a standby server in advance, where the main server and the standby server may be FTP servers, and the FTP servers are computers providing file storage and access services on the internet, and of course, the main server and the standby server may also be other types of servers, which is not limited in this embodiment of the present invention.
The main server may be used to receive various file information transmitted by the eNB. The OMC may detect a first file transfer rate of the main server interface in real time. A detection timer may also be preset, and when the set interval time is reached, the first file transmission rate of the host server interface is detected once, which is not limited in the embodiment of the present invention.
It can be understood that the OMC detecting the file transfer rate of the main server interface is a mature technology in the field, and any scheme in the prior art that can detect the first file transfer rate of the main server interface can be applied to the present invention, and the embodiments of the present invention are not described herein again.
After the first file transfer rate of the host server interface is obtained, step 202 is performed.
Step 202: and starting a hysteresis timer under the condition that the first file transmission rate is greater than a file transmission congestion threshold.
The OMC system stores a file transmission congestion threshold corresponding to the main server in advance, the file transmission congestion threshold of the main server is obtained by research and development personnel according to actual experience, and the embodiment of the invention does not describe too much for the setting mode of the file transmission congestion threshold.
After obtaining the first file transfer rate of the primary server interface, the first file transfer rate may then be compared to a file transfer congestion threshold.
And when the first file transmission rate is less than or equal to the file transmission congestion threshold, the situation that the master server receives the file sent by the eNB is normal, and the situation that the file transmission congestion does not occur, the OMC continues to detect the first file transmission rate of the interface of the master server.
When the master server receives the eNB normally, the standby server corresponding to the master server is in a standby state. And when the first file transmission rate is greater than the file transmission congestion threshold, indicating that the number of the eNB-sent files received by the main server interface is too large and a file transmission congestion situation may occur, the OMC may start a preset hysteresis timer.
After starting the hysteresis timer, step 203 is performed.
Step 203: and judging whether the first timing time of the hysteresis timer is greater than a first set time.
The OMC system is preset with a first set time, which may be 3min, 5min, and the like, and this is not limited in the embodiment of the present invention.
After the hysteresis timer is started, timing is started, and the magnitude relation between the first timing time of the hysteresis timer and the first set time is judged.
When the first timing time of the hysteresis timer is greater than the first set time, step 204 is executed.
Step 204: and sending a wake-up command to the standby server and closing the hysteresis timer.
And when the first timing time of the hysteresis timer is longer than the first set time, sending a wake-up command to the standby server corresponding to the main server by the OMC, wherein the wake-up command can be used for indicating the standby server to enter a wake-up state from a standby state.
After the wake-up command is sent by the OMC to the standby server, the hysteresis timer is turned off by the OMC and step 205 is performed.
Step 205: and receiving a response message for entering the awakening state returned by the standby server.
After the standby server receives the wake-up command sent by the OMC, the standby server may enter the wake-up state from the standby state according to the wake-up command, and after the standby server enters the wake-up state, a response message corresponding to the wake-up command may be generated and returned to the OMC.
After receiving the response message of entering the awake state returned by the standby server, the OMC executes step 206.
Step 206: and selecting at least one base station from a plurality of base stations connected to the main server by the file transmission link according to a preset rule.
The base station with the file transmission link connected to the main server means that a file transmission link protocol, such as an FTP protocol, is established between the base station and the main server, and then a normal file transmission process can be performed between the base station and the main server according to the file transmission link protocol.
In the OMC system, base station identifiers of a plurality of base stations connected to the main server by each file transmission link are pre-stored, and the base station identifiers may be digital identifiers, such as "1", "5", "6", and the like, or may be in other forms. The base station identification of each base station is unique, and a plurality of base stations which are connected to the main server through the file transmission link can be obtained through the pre-stored base station identification.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be construed as the only limitations of the present invention.
Of course, in the prior art, a person skilled in the art may also use other methods to obtain multiple base stations where the file transmission link is connected to the main server, and the embodiments of the present invention are not described in detail herein.
In the embodiment of the present invention, the preset rule may be a file non-transmission rule, and the master server does not currently receive a file uploaded by a certain eNB, for example, if the master server does not receive a file uploaded by eNB3, eNB3 is the selected base station.
The preset rule may also be a percentage threshold that the number of files needs to reach the total number of enbs that are transmitting files, that is, the number of files that the eNB transmits to the main server reaches a set percentage of the total number that needs to be uploaded, for example, the set percentage is 50%, the total number of files that the eNB2 needs to upload to the main server is 100, and when 60 files are uploaded, the eNB2 is the selected base station.
In practical applications, other rules may also be used to select the base station, and the embodiment of the present invention is not limited thereto.
Of course, in the embodiment of the present invention, the base station whose file is not transmitted to the main server is preferentially selected as the selected base station, and the rest of the base stations whose files have been uploaded are randomly selected from the base stations.
After selecting at least one base station among the plurality of base stations connected to the main server from the file transmission link according to a preset rule, step 207 is performed.
Step 207: saving the at least one base station to a link switching list.
A link switching list may also be preset in the OMC system, where the link switching list may store the selected at least one base station, and the link switching list may store a base station name or a base station identifier of the selected at least one base station, and the like.
After saving the selected at least one base station to the link switching list, step 208 is performed.
Step 208: transmitting a first link handover command to the at least one base station.
After selecting the at least one base station, the OMC may send a first link switching command to the selected at least one base station, and the first link switching command may be used to instruct the selected at least one base station to switch the file transmission link to the standby server.
And if the eNB transmitting the file is selected, the eNB needs to wait for the eNB to complete the transmission of the file currently being transmitted and then respond to the first link switching command.
After responding to the first link switching command, the base station can switch the file transmission link to the standby server, and further can transmit the file to the standby server, so that the file transmission congestion phenomenon of the FTP host can be relieved or solved.
Step 209 is performed in transmitting a first link handover command to the selected at least one base station.
Step 209: and starting the hysteresis timer under the condition that the first file transmission rate is less than or equal to the file transmission congestion threshold.
In the embodiment of the present invention, the OMC always detects the first file transmission rate of the interface of the main server during and after the switching of the main server and the standby server, and starts the hysteresis timer when the detected first file transmission rate is less than or equal to the file transmission congestion threshold and indicates that the file sent by the eNB and received by the main server is recovered to normal, thereby performing step 210.
Step 210: and judging whether the second timing time of the hysteresis timer is greater than a second set time.
The second set time is preset in the OMC system, and the second set time may be 3min, 5min, and the like, which is not limited in the embodiment of the present invention.
And starting timing after the hysteresis timer is started, and judging the magnitude relation between the second timing time of the hysteresis timer and the second set time.
When the second timing time of the hysteresis timer is greater than the second set time, step 211 is executed.
Step 211: sending a second link switch command to at least one base station in the link switch list.
When the second timing time of the hysteresis timer is greater than the second set time, the OMC may send a second link switching command to at least one base station in the link switching list, where the second link switching command may be used to instruct the at least one base station to switch the file transmission link to the main server.
Step 212 is performed after sending the second link switch command to the at least one base station in the link switch list.
Step 212: and receiving a return message of switching the file transmission link returned by the at least one base station to the main server.
After at least one base station in the link switching list receives the second link switching command, when a certain base station is transmitting a file to the standby server, the base station needs to wait for the completion of the transmission of the file being transmitted, and then respond to the second link switching command to switch the file transmission link of the base station to the main server.
And when the base station does not perform file transmission with the standby server, the file transmission link of the base station is switched to the main server by directly responding to the second link switching command.
And after the base station switches the file transmission link to the main server, generating a return message for switching the file transmission link to the main server, and sending the return message to the OMC.
The OMC receives a return message of switching the file transmission link returned by at least one base station to the main server, and executes step 213.
Step 213: and sending a standby command to the standby server.
After receiving a return message from the main server to which the file transmission links returned by all the base stations in the link switching list are switched, the OMC may send a standby command to the standby server, where the standby command may be used to instruct the standby server to enter a standby state, and after receiving the standby command, the standby server switches the awake state to the standby state according to the instruction command.
The embodiment of the invention provides a method for switching a main server and a standby server, which comprises the steps of acquiring a first file transmission rate of an interface of the main server, sending a wake-up command to the standby server under the condition that the first file transmission rate is greater than a file transmission congestion threshold, wherein the wake-up command indicates that the standby server enters a wake-up state, receiving a response message returned by the standby server to enter the wake-up state, selecting at least one base station from a plurality of base stations connected to the main server by a file transmission link according to a preset rule, and sending a first link switching command to the at least one base station, wherein the first link switching command indicates that the at least one base station switches the file transmission link to the standby server. By the scheme provided by the embodiment of the invention, the standby server can be awakened to receive the file transmitted by the selected base station when the file transmission rate of the interface of the main server is seriously reduced, so that the equipment resources can be effectively utilized, the waste of the equipment resources is avoided, the occurrence of file transmission congestion is further reduced, and the file transmission efficiency is further improved.
EXAMPLE III
Referring to fig. 3, a schematic structural diagram of a main/standby server switching device provided in an embodiment of the present invention is shown, which may specifically include:
a file transmission rate obtaining module 310, configured to obtain a first file transmission rate of a main server interface; a wake-up command sending module 320, configured to send a wake-up command to the standby server when the first file transmission rate is greater than a file transmission congestion threshold; wherein the wake-up command instructs the standby server to enter a wake-up state; a response message receiving module 330, configured to receive a response message entering an awake state, where the response message is returned by the standby server; a base station selection module 340, configured to select at least one base station from a plurality of base stations connected to the main server through a file transmission link according to a preset rule; a handover command sending module 350, configured to send a first link handover command to the at least one base station; wherein the first link switch command instructs the at least one base station to switch a file transmission link to the standby server.
Preferably, the wake-up command sending module 320 includes: a first timer starting sub-module, configured to start a hysteresis timer when the first file transmission rate is greater than a file transmission congestion threshold; the first time judgment submodule is used for judging whether the first timing time of the hysteresis timer is greater than a first set time; and the wake-up command sending submodule is used for sending a wake-up command to the standby server and closing the hysteresis timer under the condition that the first timing time is greater than the first set time.
Preferably, the method further comprises the following steps: and the base station storage module is used for storing the at least one base station to a link switching list.
Preferably, the method further comprises the following steps: a second timer starting module, configured to start the hysteresis timer when the first file transmission rate is less than or equal to the file transmission congestion threshold; the second time judging module is used for judging whether the second timing time of the hysteresis timer is greater than a second set time; a second switching command sending module, configured to send a second link switching command to at least one base station in the link switching list when the second timing time is greater than the second set time; wherein the second link switch command instructs the at least one base station to switch a file transmission link to the primary server.
Preferably, the method further comprises the following steps: a return message receiving module, configured to receive a return message sent by the at least one base station when the file transmission link is switched to the main server; a standby command sending module, configured to send a standby command to the standby server; wherein the standby command instructs the standby server to enter a standby state.
The embodiment of the invention provides a main and standby server switching device, which comprises the steps of acquiring a first file transmission rate of a main server interface, sending a wake-up command to a standby server under the condition that the first file transmission rate is greater than a file transmission congestion threshold, wherein the wake-up command indicates that the standby server enters a wake-up state, receiving a response message returned by the standby server and entering the wake-up state, selecting at least one base station from a plurality of base stations connected to the main server through a file transmission link according to a preset rule, and sending a first link switching command to the at least one base station, wherein the first link switching command indicates that the at least one base station switches the file transmission link to the standby server. By the scheme provided by the embodiment of the invention, the standby server can be awakened to receive the file transmitted by the selected base station when the file transmission rate of the interface of the main server is seriously reduced, so that the equipment resources can be effectively utilized, the waste of the equipment resources is avoided, the occurrence of file transmission congestion is further reduced, and the file transmission efficiency is further improved.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present invention is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 like elements in a process, method, article, or apparatus that comprises the element.
The method for switching between the main server and the standby server and the device for switching between the main server and the standby server provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for switching between a main server and a standby server is characterized by comprising the following steps:
acquiring a first file transmission rate of a main server interface;
sending a wake-up command to a standby server under the condition that the first file transmission rate is greater than a file transmission congestion threshold; wherein the wake-up command instructs the standby server to enter a wake-up state;
receiving a response message for entering a wake-up state returned by the standby server;
selecting at least one base station from a plurality of base stations connected to the main server by a file transmission link according to a preset rule;
transmitting a first link switching command to the at least one base station; wherein the first link switch command instructs the at least one base station to switch a file transmission link to the standby server.
2. The method of claim 1, wherein the step of sending a wake-up command to the standby server in case the first file transfer rate is greater than a file transfer congestion threshold comprises:
starting a hysteresis timer under the condition that the first file transmission rate is greater than a file transmission congestion threshold;
judging whether the first timing time of the hysteresis timer is greater than a first set time;
and if so, sending a wake-up command to the standby server and closing the hysteresis timer.
3. The method of claim 2, wherein after the step of selecting at least one base station from the plurality of base stations connected to the master server from the file transmission link according to a preset rule, further comprising:
saving the at least one base station to a link switching list.
4. The method of claim 3, wherein after the step of sending the first link handover command to the at least one base station, further comprising:
starting the hysteresis timer when the first file transmission rate is less than or equal to the file transmission congestion threshold;
judging whether the second timing time of the hysteresis timer is greater than a second set time;
if yes, sending a second link switching command to at least one base station in the link switching list; wherein the second link switch command instructs the at least one base station to switch a file transmission link to the primary server.
5. The method of claim 4, further comprising, after the step of sending a second link switch command to at least one base station in the link switch list:
receiving a return message of switching the file transmission link returned by the at least one base station to the main server;
sending a standby command to the standby server; wherein the standby command instructs the standby server to enter a standby state.
6. A master-slave server switching apparatus, comprising:
the file transmission rate acquisition module is used for acquiring a first file transmission rate of the main server interface;
the wake-up command sending module is used for sending a wake-up command to the standby server under the condition that the first file transmission rate is greater than the file transmission congestion threshold; wherein the wake-up command instructs the standby server to enter a wake-up state;
a response message receiving module, configured to receive a response message for entering an awake state, where the response message is returned by the standby server;
the base station selection module is used for selecting at least one base station from a plurality of base stations connected to the main server through the file transmission link according to a preset rule;
a handover command sending module, configured to send a first link handover command to the at least one base station; wherein the first link switch command instructs the at least one base station to switch a file transmission link to the standby server.
7. The apparatus of claim 6, wherein the wake command sending module comprises:
a first timer starting sub-module, configured to start a hysteresis timer when the first file transmission rate is greater than a file transmission congestion threshold;
the first time judgment submodule is used for judging whether the first timing time of the hysteresis timer is greater than a first set time;
and the wake-up command sending submodule is used for sending a wake-up command to the standby server and closing the hysteresis timer under the condition that the first timing time is greater than the first set time.
8. The apparatus of claim 7, further comprising:
and the base station storage module is used for storing the at least one base station to a link switching list.
9. The apparatus of claim 8, further comprising:
a second timer starting module, configured to start the hysteresis timer when the first file transmission rate is less than or equal to the file transmission congestion threshold;
the second time judging module is used for judging whether the second timing time of the hysteresis timer is greater than a second set time;
a second switching command sending module, configured to send a second link switching command to at least one base station in the link switching list when the second timing time is greater than the second set time; wherein the second link switch command instructs the at least one base station to switch a file transmission link to the primary server.
10. The apparatus of claim 9, further comprising:
a return message receiving module, configured to receive a return message sent by the at least one base station when the file transmission link is switched to the main server;
a standby command sending module, configured to send a standby command to the standby server; wherein the standby command instructs the standby server to enter a standby state.
CN201811231034.6A 2018-10-22 2018-10-22 Method and device for switching main server and standby server Active CN111082903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811231034.6A CN111082903B (en) 2018-10-22 2018-10-22 Method and device for switching main server and standby server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811231034.6A CN111082903B (en) 2018-10-22 2018-10-22 Method and device for switching main server and standby server

Publications (2)

Publication Number Publication Date
CN111082903A true CN111082903A (en) 2020-04-28
CN111082903B CN111082903B (en) 2021-04-30

Family

ID=70309821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811231034.6A Active CN111082903B (en) 2018-10-22 2018-10-22 Method and device for switching main server and standby server

Country Status (1)

Country Link
CN (1) CN111082903B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100023797A1 (en) * 2008-07-25 2010-01-28 Rajeev Atluri Sequencing technique to account for a clock error in a backup system
CN101674619A (en) * 2009-10-21 2010-03-17 中兴通讯股份有限公司 Switching method, active node and switching system
US20100088543A1 (en) * 2006-01-04 2010-04-08 Hitachi, Ltd. Restarting Mehtod Using a Snapshot
CN102739453A (en) * 2012-07-03 2012-10-17 华为软件技术有限公司 Master-standby switching method, device and system
CN104778102A (en) * 2015-03-27 2015-07-15 深圳市创梦天地科技有限公司 Master-slave switching method and system
CN106789246A (en) * 2016-12-22 2017-05-31 广西防城港核电有限公司 The changing method and device of a kind of active/standby server
CN107846294A (en) * 2016-09-19 2018-03-27 北京京东尚科信息技术有限公司 A kind of active and standby service switch method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088543A1 (en) * 2006-01-04 2010-04-08 Hitachi, Ltd. Restarting Mehtod Using a Snapshot
US20100023797A1 (en) * 2008-07-25 2010-01-28 Rajeev Atluri Sequencing technique to account for a clock error in a backup system
CN101674619A (en) * 2009-10-21 2010-03-17 中兴通讯股份有限公司 Switching method, active node and switching system
CN102739453A (en) * 2012-07-03 2012-10-17 华为软件技术有限公司 Master-standby switching method, device and system
CN104778102A (en) * 2015-03-27 2015-07-15 深圳市创梦天地科技有限公司 Master-slave switching method and system
CN107846294A (en) * 2016-09-19 2018-03-27 北京京东尚科信息技术有限公司 A kind of active and standby service switch method and device
CN106789246A (en) * 2016-12-22 2017-05-31 广西防城港核电有限公司 The changing method and device of a kind of active/standby server

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DAN LI, CHUANXIONG GUO, HAITAO WU, KUN TAN: ""FiConn: Using Backup Port for Server Interconnection in Data Centers"", 《IEEE INFOCOM 2009》 *
郭丽,季焕淑: ""一个服务级双机热备系统设计"", 《硅谷 高新技术产业发展》 *

Also Published As

Publication number Publication date
CN111082903B (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US10659979B2 (en) Method and device for handling cell outage
CN113498093B (en) SCG failure processing method, device, terminal and network side equipment
CN104412640B (en) High layer compression is carried out using low layer signaling
CN101610593B (en) Access point, access controller and method for access point to select access controller
CN101621852B (en) Repeated accessing method of wireless access point of MESH network and wireless access point equipment
CN103384382A (en) Radio link management method, user equipment and base station
US20210377755A1 (en) Communication method for scenario with secondary cell group failure
CN104853391A (en) Terminal wake-up method and access point AP
CN104394465A (en) Method for waking up stand-by state and equipment
CN104901834A (en) Method and system for automatically switching between network servers
US20130003670A1 (en) Method and System for Releasing Resources and Evolved Node Base
CN108289030B (en) Base station fault identification processing method and device
JP6007988B2 (en) Standby system apparatus, operational system apparatus, redundant configuration system, and load distribution method
CN111082903B (en) Method and device for switching main server and standby server
KR102294882B1 (en) Method, apparatus, terminal and recording medium for transmitting measurement report
CN110430606A (en) A kind of method, terminal and base station that system information obtains
CN104038955B (en) A kind of method of fault detect and treatment in GSM and base station
CN114615337B (en) Equipment scheduling method, system, server and storage medium
CN102595457B (en) A kind of method and system of maintenance customer's terminal coordinated multipoint transmission
CN107155222B (en) Context management method and device based on keep-alive
WO2021184797A1 (en) State switching control method and apparatus, electronic device, and storage medium
CN103067953A (en) Method and device for neighborhood state reporting, acquiring, monitoring and controlling
CN111836293B (en) Method for reporting beam failure recovery BFR, terminal and network side equipment
CN104066151A (en) Base station device and access control method thereof
CN103220631B (en) Trunked communication system, monitor terminal and Adding Way 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
GR01 Patent grant
GR01 Patent grant