CN106411585A - Server switching method, adapter, server and scheduling device - Google Patents
Server switching method, adapter, server and scheduling device Download PDFInfo
- Publication number
- CN106411585A CN106411585A CN201610839213.2A CN201610839213A CN106411585A CN 106411585 A CN106411585 A CN 106411585A CN 201610839213 A CN201610839213 A CN 201610839213A CN 106411585 A CN106411585 A CN 106411585A
- Authority
- CN
- China
- Prior art keywords
- server
- communication link
- servers
- information
- switching
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000004891 communication Methods 0.000 claims abstract description 122
- 230000002159 abnormal effect Effects 0.000 claims description 12
- 230000000737 periodic effect Effects 0.000 claims description 3
- 230000004044 response Effects 0.000 claims description 3
- 230000008901 benefit Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0659—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
- H04L41/5054—Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the invention discloses a server switching method. The server switching method is applied to an adapter installed on industrial equipment, and comprises the following steps: establishing a first communication link with a first server; after the first communication link is disconnected due to a fault, receiving information of a second server sent by a network side scheduling device; and establishing a communication link with the second server. By adoption of the method disclosed by the embodiment, in the case of communication failure of the adapter and the original server, a new server can be switched quickly to re-establish the communication link with the new server for communication. The invention further discloses an adapter, a server and a scheduling device.
Description
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a method for server switching, an adapter, a server and a scheduling device.
Background
The industrial internet of things simply means that industrial equipment needs to be networked, and aims to send various operation states and data of the industrial equipment to a network side server, and the network side server is responsible for receiving the data, storing the data, processing the data, and counting and analyzing the data. Today, with the continuous development of microprocessor technology, most industrial equipment has self-control and servo functions and is realized by the controller at the end, so that the industrial equipment is very powerful. The design of these devices is itself in a conventional fashion and does not take into account networking requirements. The adapter is an intermediate adapter device which is produced according to the requirement of the internet of things of the traditional device. The adaptation means that the industrial device communicates with the industrial device in an adaptive manner and transmits the operating state and data of the industrial device to the network side server on the premise of maintaining the original device without any change.
Usually, the adapter establishes a communication link with the network side server to communicate with the server, but in some cases, communication between the adapter and the server fails, for example, the server fails. In this case, the adapter needs to switch from the original server to the new server to reestablish the communication link with the new server for communication. At present, no clear server switching method exists.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method for server switching, so that an adapter can switch to a new server in time to reestablish a communication link with the new server for communication when a communication failure occurs with an original server. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
In some optional embodiments, the method for server switching is for an adapter installed on an industrial device, comprising: establishing a first communication link with a first server; after the first communication link is disconnected due to a fault, receiving second server information sent by a network side scheduling device; and establishing a second communication link with the second server.
In some optional embodiments, the method for server switching is used for a network side scheduling device, and includes: obtaining state information of a plurality of servers; after the first server state is found to be abnormal, selecting an available server from the plurality of servers; and sending the information of the available servers to one or more adapters for establishing a communication link with the first server.
In some optional embodiments, the method for server switching is used for a network side scheduling device, and includes: receiving a request message for server switching, and selecting an available server from a plurality of servers; sending information of the available servers to one or more adapters; the communication link between the one or more adapters and the first server is broken due to the failure.
In some optional embodiments, the method for server switching is used for a server, and includes: establishing a communication link with one or more adapters; and after the communication link is disconnected due to the fault, sending a request message for server switching to a scheduling device.
Another object of the invention is to propose an adapter.
In some alternative embodiments, the adapter is for mounting on an industrial device, comprising: a first communication link unit for establishing a first communication link with a first server;
the information receiving unit is used for receiving second server information sent by the network side scheduling device after the first communication link is disconnected due to faults;
and the second communication link unit is used for establishing a second communication link with the second server.
Another object of the present invention is to provide a scheduling apparatus.
In some optional embodiments, the scheduling apparatus comprises: an information acquisition unit for acquiring status information of a plurality of servers; a selection unit for selecting an available server; the selection unit is started after the scheduling device finds that the state of the first server is abnormal; the information sending unit is used for sending the information of the available servers to a part or all of adapters which establish communication links with the first server; the first server is one of the plurality of servers.
In some optional embodiments, the scheduling apparatus comprises: a message receiving unit, configured to receive a request message for server switching; a selection unit for selecting an available server; the information sending unit is used for sending the information of the available servers to one or more adapters; the communication link between the one or more adapters and the first server is broken due to the failure. Another object of the invention is to propose a server.
In some optional embodiments, the server comprises: a communication unit for establishing a communication link with one or more adapters; and the switching request unit is used for sending a request message for switching the server to the scheduling device after the communication link is disconnected due to the fault.
For the purposes of the foregoing and related ends, the one or more embodiments include the features hereinafter fully described and particularly pointed out in the claims. The following description and the annexed drawings set forth in detail certain illustrative aspects and are indicative of but a few of the various ways in which the principles of the various embodiments may be employed. Other benefits and novel features will become apparent from the following detailed description when considered in conjunction with the drawings and the disclosed embodiments are intended to include all such aspects and their equivalents.
Drawings
FIG. 1 is a schematic diagram of an alternative system for switching servers;
FIG. 2 is a schematic flow diagram of an alternative method for switching servers;
FIG. 3 is a schematic flow chart of an alternative method for switching servers;
FIG. 4 is a schematic flow chart of an alternative method for switching servers;
FIG. 5 is a schematic flow chart of an alternative method for switching servers;
FIG. 6 is a schematic flow chart of an alternative method for switching servers;
FIG. 7 is a schematic flow chart of an alternative method for switching servers;
FIG. 8 is a schematic of an alternative adapter construction;
FIG. 9 is a schematic structure of an alternative scheduler structure;
FIG. 10 is a schematic structure of an alternative scheduler structure;
fig. 11 is a schematic structure of an alternative server configuration.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of embodiments of the invention encompasses the full ambit of the claims, as well as all available equivalents of the claims. Embodiments of the invention may be referred to herein, individually or collectively, by the term "invention" merely for convenience and without intending to voluntarily limit the scope of this application to any single invention or inventive concept if more than one is in fact disclosed.
The method for realizing server switching can be specifically designed according to different requirements and different scenes, and has no conventional technical means.
Fig. 1 shows an alternative system for switching servers, comprising a scheduling device 10, a server 20 and an industrial installation 30. Each industrial device 30 has an adapter mounted thereon through which a communication link is established with the server 20 for communication. Each server 20 communicates with a plurality of industrial devices 30 and with a scheduling device 10. The scheduling means communicates with the plurality of servers 20, obtains status information of the plurality of servers 20, and can select an available server from other servers and transmit information of the available server to the relevant industrial equipment 30 when a failure occurs in a certain server 20, so that the relevant industrial equipment 30 can switch from the failed server to the available server, thereby continuing communication with the network side.
In some application scenarios, the server 20 may be a public cloud server, and the scheduling apparatus may be installed on a server of a private cloud, or may be a stand-alone device, or may be the private cloud server itself.
Fig. 2 shows an alternative method flow for switching servers.
In this alternative embodiment, the industrial device establishes a communication link with the network-side server to perform communication (step S101), and the server transmits its status information to the scheduling device (step S102). When the server fails (step S103), the communication link between the industrial device and the server is disconnected (step S104). The industrial device will not be able to continue communicating with the server. The communication link between the industrial equipment and the original server is disconnected and then the industrial equipment and other standby servers try to connect. And if the industrial equipment is successfully connected with the standby server, switching to the standby server. If the industrial device fails to connect to the backup server (step S105), a request message for server switching is transmitted to the scheduling device (step S106). After receiving the request message sent by the industrial device, the scheduling device selects an available server and sends information of the available server to the industrial device (step S107). After receiving the information sent by the scheduling device, the industrial device establishes a communication link with the available server for communication (step S108).
In other alternative embodiments, the industrial equipment establishes a communication link with a network-side server for communication, and the server sends the state information of the industrial equipment to the scheduling device. When the server fails, the communication link between the industrial equipment and the server is disconnected, and the industrial equipment cannot continuously communicate with the server. In this case, the industrial equipment transmits a request message for server switching to the scheduling device. And after receiving the request message sent by the industrial equipment, the scheduling device selects an available server and sends the information of the available server to the industrial equipment. And after receiving the information sent by the scheduling equipment, the industrial equipment establishes a communication link with the available server for communication.
Fig. 3 shows another alternative method flow for switching servers.
In this alternative embodiment, the industrial device establishes a communication link with the network-side server to perform communication (step S101), and the server transmits its status information to the scheduling device (step S102). When the server fails (step S103), the communication link between the industrial device and the server is disconnected (step S104), and the industrial device cannot continue to communicate with the server. The server sends the abnormal status information to the scheduling device (step S302), and the scheduling device receives the information sent by the server and then knows that the server has a fault. The industrial device transmits a request message for server switching to the scheduling apparatus (S106). After receiving the request message sent by the industrial device, the scheduling device selects an available server and sends information of the available server to the industrial device (step S107). After receiving the information sent by the scheduling device, the industrial device establishes a communication link with the available server for communication (step S108).
In the above alternative embodiment, the server may send its status information to the scheduling apparatus periodically, or may send its status information to the scheduling apparatus by event triggering. Alternatively, the server may send its status information to the scheduling apparatus after receiving the query message sent by the scheduling apparatus, so as to respond to the query of the scheduling apparatus.
Accordingly, the manner in which the scheduling device obtains the server status information includes, but is not limited to: acquiring state information of each server in a periodic reporting mode; or acquiring the state information of each server in an event triggering and reporting mode; or, the state information of each server is obtained in a query response mode; alternatively, the state information of each server is obtained by detecting the state of each server.
Fig. 4 shows another alternative method flow for switching servers.
In this alternative embodiment, the industrial device establishes a communication link with the network side server to perform communication (step S101), and the scheduling device detects the status of the server (step S202). The server fails (step S103), and the scheduling apparatus finds the server failed (step S203). The communication link between the industrial device and the server is broken (step S104) and the industrial device cannot continue to communicate with the server. The communication link between the industrial equipment and the original server is disconnected and then the industrial equipment and other standby servers try to connect. And if the industrial equipment is successfully connected with the standby server, switching to the standby server. If the industrial device fails to connect to the backup server (step S105), a request message for server switching is transmitted to the scheduling device (step S106). After receiving the request message sent by the industrial device, the scheduling device selects an available server and sends information of the available server to the industrial device (step S107). After receiving the information sent by the scheduling device, the industrial device establishes a communication link with the available server for communication (step S108).
Fig. 5 shows another alternative method flow for switching servers.
In this alternative embodiment, the industrial device establishes a communication link with the network-side server to perform communication (step S101), and the server transmits its status information to the scheduling device (step S102). When the server fails (step S103), the communication link between the industrial device and the server is disconnected (step S104), and the industrial device cannot continue to communicate with the server. The server sends the abnormal status information to the scheduling device (step S302), and the scheduling device receives the information sent by the server and then knows that the server has a fault. The scheduling means will actively select an available server and transmit information of the available server to the industrial equipment (step S107). After receiving the information sent by the scheduling device, the industrial device establishes a communication link with the available server for communication (step S108).
Fig. 6 shows another alternative method flow for switching servers.
In this alternative embodiment, the industrial device establishes a communication link with the network side server to perform communication (step S101), and the scheduling device detects the status of the server (step S202). The server fails (step S103), and the scheduling apparatus finds the server failed (step S203). The communication link between the industrial device and the server is broken (step S104) and the industrial device cannot continue to communicate with the server. The scheduling device actively selects an available server after discovering that the server is out of order, and transmits information of the available server to the industrial equipment (step S107). After receiving the information sent by the scheduling device, the industrial device establishes a communication link with the available server for communication (step S108).
Fig. 7 shows another alternative method flow for switching servers.
In this alternative embodiment, the industrial device establishes a communication link with the network-side server to perform communication (step S101), and the server transmits its status information to the scheduling device (step S102). When the server fails (step S103), the communication link between the industrial device and the server is disconnected (step S104), and the industrial device cannot continue to communicate with the server. The server sends the abnormal status information to the scheduling device (step S302), and the scheduling device receives the information sent by the server and then knows that the server has a fault. The server transmits a request message for server switching to the scheduling device (S303). After receiving the request message sent by the server, the scheduling device selects an available server and sends information of the available server to the industrial equipment (step S107). After receiving the information sent by the scheduling device, the industrial device establishes a communication link with the available server for communication (step S108).
In some optional embodiments, the method for server switching is used for an adapter installed on an industrial device, the method comprising: establishing a first communication link with a first server; after the first communication link is disconnected due to a fault, receiving second server information sent by a network side scheduling device; and establishing a second communication link with the second server. Wherein, the first communication link further comprises, after failure disconnection: attempting to establish a communication link with a standby server; and after the communication link with the standby server fails to be established, sending a request message for server switching to the network side scheduling device, and waiting for receiving second server information sent by the network side scheduling device.
In other optional embodiments, the method for server switching is used for a network-side scheduling apparatus, and the method includes: obtaining state information of a plurality of servers, wherein the state information comprises the working state of each server, the number of industrial equipment communicated with each server and the ID of each industrial equipment communicated with each server; after the first server is found to be abnormal, selecting an available server; sending the information of the available servers to a part or all of adapters which establish communication links with the first server; the first server is one of the plurality of servers. Wherein, before selecting the available server, the method further comprises: a request message for server switching is received.
In other optional embodiments, the method for server switching is used for a network-side scheduling apparatus, and the method includes: obtaining state information of a plurality of servers, wherein the state information comprises the working state of each server, the number of industrial equipment communicated with each server and the ID of each industrial equipment communicated with each server; after the first server is found to be abnormal, selecting an available server; sending the information of the available servers to a part or all of adapters which establish communication links with the first server; the first server is one of the plurality of servers. Wherein, before selecting the available server, the method further comprises: receiving a request message for server switching; the request message for server switching comes from the first server or from part or all of the adapter establishing the communication link with the first server.
In other optional embodiments, the method for server switching is used for a network-side scheduling apparatus, and the method includes: receiving a request message for server switching, and selecting an available server; sending information of the available servers to one or more adapters; the communication link between the one or more adapters and the first server is broken due to a failure, and the request message for server switching is from the first server or from the one or more adapters.
In other optional embodiments, the method for server switching is used for a network-side scheduling apparatus, and the method includes: receiving a request message for server switching, and selecting an available server; sending information of the available servers to one or more adapters; the communication link between the one or more adapters and the first server is broken due to a failure, and the request message for server switching is from the first server or from the one or more adapters. The method comprises the steps of obtaining state information of a plurality of servers before selecting an available server, wherein the first server is one of the plurality of servers, and the state information comprises the working state of each server, the number of industrial equipment communicated with each server and the ID of each industrial equipment communicated with each server.
In the foregoing optional embodiments, the obtaining the state information of the plurality of servers includes: acquiring the state information of the servers in a periodic reporting mode; or acquiring the state information of the servers in a mode of event triggering and reporting; or, the state information of the plurality of servers is obtained in a query response mode; or, the state information of the plurality of servers is obtained by detecting the states of the plurality of servers.
In the above alternative embodiments, selecting the available server according to the load balancing principle includes selecting the available server by using a dynamic adjustment method or a load balancing algorithm.
The dynamic adjustment method compares the current running state of a server with the average value of the running states of all the servers, and reduces the number of adapters connected with the server if the current running state of the server is inferior to the average value of the running states of all the servers. If the current running state of the server is better than the average of the running states of all the servers, the number of adapters connected with the server is increased until an overall balance is reached.
The selection of the available server according to the load balancing principle is to select the available server by adopting a dynamic adjustment method. The benefit of this scheme is that the processing power of other servers can be dynamically balanced. An optional selection of available servers using dynamic adjustment, comprising: and selecting a server with the current running state better than the average value of the running states of all the servers as an available server.
The selection of the available server according to the load balancing principle is to select the available server by adopting a balancing algorithm. The benefit of the equitable algorithm is to mainly address how requests are sent to the back-end service. The equalization algorithm comprises the following steps: a random algorithm, a round-robin algorithm, a consistent-hash algorithm, or a master-slave algorithm.
And selecting the available server according to the load balancing principle is to select the available server by adopting a main-standby algorithm. The algorithm can realize that the adapter is put on a certain server as much as possible, other servers are used for backup, and if a problem occurs, the adapter is switched to another server. In order to ensure the timeliness of data submitted by each adapter, the adapters can be connected to a certain server as much as possible, and when a problem occurs in the server, other servers are used.
When the main/standby algorithm is adopted, the hash (hash) conversion can be firstly carried out on the IP Port (IP: Port) of each server, then the servers are sorted from big to small, the first server is the main server, and all adapters are connected to the main server. If the first has a problem, the second is taken as the main server.
An optional active-standby algorithm for selecting an available server, comprising: and selecting the server with the largest rank as an available server according to a preset sequence. And sequencing the servers in sequence according to the size of the hash value of the IP port of each server.
In further alternative embodiments, the method for server switching is used for a server, the method comprising: establishing a communication link with one or more adapters; and after the communication link is disconnected due to the fault, sending a request message for server switching to a scheduling device. The method also comprises the step of periodically sending the state information of the equipment to the scheduling device; the state information includes the operating state of the device, the number of industrial devices communicating with the device, and the IDs of the industrial devices communicating with the device.
In further alternative embodiments, the method for server switching is used for a server, the method comprising: establishing a communication link with one or more adapters; and after the communication link is disconnected due to the fault, sending a request message for server switching to a scheduling device. And after the communication link is disconnected due to the fault, sending information of abnormal state of the equipment to the scheduling device.
An adapter is also disclosed herein for mounting on an industrial device.
FIG. 8 shows an alternative schematic configuration of an adapter, the alternative adapter configuration comprising: the system comprises a first communication link unit 301 for establishing a first communication link with a first server, an information receiving unit 302 for receiving second server information sent by a network side scheduling device after the first communication link is disconnected due to a fault, and a second communication link unit 303 for establishing a second communication link with a second server. Wherein, still include: a third communication link unit for establishing a communication link with the standby server; and a request sending unit, configured to send a request message for server switching to the network-side scheduling device after the third communication link unit fails to establish the communication link with the standby server.
Fig. 9 shows an alternative schematic structure of a scheduler, which comprises: an information obtaining unit 304 for obtaining status information of a plurality of servers, a selecting unit 305 for selecting an available server, wherein the selecting unit 305 is started after the scheduling device finds that a first server status is abnormal; and an information sending unit 306, configured to send information of the available servers to one or more adapters that establish a communication link with the first server; the first server is one of the plurality of servers. Wherein, still include: and the message receiving unit is used for receiving a request message for server switching.
Fig. 10 shows another alternative schematic structure of a scheduling apparatus, which comprises: a message receiving unit 307 for receiving a request message for server switching, a selecting unit 305, and an information transmitting unit 306. Wherein a communication link between the one or more adapters and the first server is broken due to the failure.
The selection unit 305 selects an available server according to a load balancing principle. Alternatively, the selection unit 305 selects an available server by using a dynamic adjustment method or a load balancing algorithm.
The selection unit 305 selects an available server using a dynamic adjustment method. The benefit of this scheme is that the processing power of other servers can be dynamically balanced. In an alternative implementation, the selection unit 305 selects a server, of which the current operating state is better than the average of the operating states of all servers, as an available server.
Selection unit 305 selects an available server using a master-slave algorithm. In order to ensure the timeliness of data submitted by each adapter, the adapters can be connected to a certain server as much as possible, and when a problem occurs in the server, other servers are used. In an alternative implementation manner, the selection unit 305 selects the server with the largest rank as the available server according to a preset order. And sequencing the servers in sequence according to the size of the hash value of the IP port of each server.
Fig. 11 shows an alternative schematic structure of a server, the alternative server structure comprising: a communication unit 308 for establishing a communication link with one or more adapters, a handover request unit 309 for sending a request message for server handover to the scheduling device after the communication link is disconnected due to a failure. Wherein, still include: a status sending unit, configured to send status information of the device to the scheduling apparatus; the state information includes the operating state of the device, the number of industrial devices communicating with the device, and the IDs of the industrial devices communicating with the device. After the communication link is disconnected due to a fault, the state sending unit is further configured to send information that the state of the device is abnormal to the scheduling apparatus.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims and drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Claims (11)
1. A method for server switching for an adapter installed on an industrial device, comprising:
establishing a first communication link with a first server;
after the first communication link is disconnected due to a fault, receiving second server information sent by a network side scheduling device; and,
establishing a second communication link with the second server.
2. The method of claim 1, wherein the failure to disconnect the first communication link further comprises:
attempting to establish a communication link with a standby server;
and after the communication link with the standby server fails to be established, sending a request message for server switching to the network side scheduling device, and waiting for receiving second server information sent by the network side scheduling device.
3. A method for server switching, which is used for a network side scheduling device, is characterized by comprising the following steps:
obtaining state information of a plurality of servers;
after the first server state is found to be abnormal, selecting an available server from the plurality of servers;
and sending the information of the available servers to one or more adapters for establishing a communication link with the first server.
4. The method of claim 3, wherein obtaining state information for a plurality of servers comprises:
acquiring the state information of the servers in a periodic reporting mode; or,
acquiring the state information of the servers in a mode of event triggering and reporting; or,
obtaining the state information of the plurality of servers in a query response mode; or,
obtaining the state information of the plurality of servers by detecting the states of the plurality of servers.
5. A method for server switching, which is used for a network side scheduling device, is characterized by comprising the following steps:
receiving a request message for server switching, and selecting an available server from a plurality of servers;
sending information of the available servers to one or more adapters;
the communication link between the one or more adapters and the first server is broken due to the failure.
6. A method according to claim 3, 4 or 5, characterised by selecting available servers on a load balancing basis.
7. A method for server switching, for a server, comprising:
establishing a communication link with one or more adapters;
and after the communication link is disconnected due to the fault, sending a request message for server switching to a scheduling device.
8. An adapter for mounting on an industrial device, comprising:
a first communication link unit for establishing a first communication link with a first server;
the information receiving unit is used for receiving second server information sent by the network side scheduling device after the first communication link is disconnected due to faults;
and the second communication link unit is used for establishing a second communication link with the second server.
9. A scheduling apparatus, comprising:
an information acquisition unit for acquiring status information of a plurality of servers;
a selection unit for selecting an available server; the selection unit is started after the scheduling device finds that the state of the first server is abnormal;
the information sending unit is used for sending the information of the available servers to a part or all of adapters which establish communication links with the first server;
the first server is one of the plurality of servers.
10. A scheduling apparatus, comprising:
a message receiving unit, configured to receive a request message for server switching;
a selection unit for selecting an available server;
the information sending unit is used for sending the information of the available servers to one or more adapters;
the communication link between the one or more adapters and the first server is broken due to the failure.
11. A server, comprising:
a communication unit for establishing a communication link with one or more adapters;
and the switching request unit is used for sending a request message for switching the server to the scheduling device after the communication link is disconnected due to the fault.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610839213.2A CN106411585A (en) | 2016-09-21 | 2016-09-21 | Server switching method, adapter, server and scheduling device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610839213.2A CN106411585A (en) | 2016-09-21 | 2016-09-21 | Server switching method, adapter, server and scheduling device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106411585A true CN106411585A (en) | 2017-02-15 |
Family
ID=57997914
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610839213.2A Pending CN106411585A (en) | 2016-09-21 | 2016-09-21 | Server switching method, adapter, server and scheduling device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106411585A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107171874A (en) * | 2017-07-21 | 2017-09-15 | 维沃移动通信有限公司 | A kind of speech engine switching method, mobile terminal and server |
CN107707654A (en) * | 2017-09-30 | 2018-02-16 | 中国联合网络通信集团有限公司 | The management method of container mirror image data, apparatus and system |
CN109358983A (en) * | 2018-09-04 | 2019-02-19 | 深圳市宝德计算机系统有限公司 | Server data processing method, device and storage medium |
CN110300071A (en) * | 2019-06-03 | 2019-10-01 | 广东美的厨房电器制造有限公司 | The server resource acquisition methods and relevant device of internet of things equipment |
CN110830281A (en) * | 2018-08-13 | 2020-02-21 | 浙江宇视科技有限公司 | Hot standby method and system based on mesh network structure |
CN110955210A (en) * | 2019-11-29 | 2020-04-03 | 广东嘉腾机器人自动化有限公司 | AGV scheduling method, device and system |
CN111970142A (en) * | 2020-07-16 | 2020-11-20 | 视联动力信息技术股份有限公司 | Communication fault processing method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101068339A (en) * | 2007-06-01 | 2007-11-07 | 华为技术有限公司 | Method, server and user end for realizing video frequency requested program broadcasting-like services |
CN101083604A (en) * | 2007-07-18 | 2007-12-05 | 中兴通讯股份有限公司 | Method for selecting and switching stream media server in content distributed network |
CN101902357A (en) * | 2010-06-29 | 2010-12-01 | 中兴通讯股份有限公司 | Method and system for dispatching business server |
CN102685237A (en) * | 2012-05-16 | 2012-09-19 | 东南大学 | Method for requesting session maintaining and dispatching in cluster environment |
-
2016
- 2016-09-21 CN CN201610839213.2A patent/CN106411585A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101068339A (en) * | 2007-06-01 | 2007-11-07 | 华为技术有限公司 | Method, server and user end for realizing video frequency requested program broadcasting-like services |
CN101083604A (en) * | 2007-07-18 | 2007-12-05 | 中兴通讯股份有限公司 | Method for selecting and switching stream media server in content distributed network |
CN101902357A (en) * | 2010-06-29 | 2010-12-01 | 中兴通讯股份有限公司 | Method and system for dispatching business server |
CN102685237A (en) * | 2012-05-16 | 2012-09-19 | 东南大学 | Method for requesting session maintaining and dispatching in cluster environment |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107171874A (en) * | 2017-07-21 | 2017-09-15 | 维沃移动通信有限公司 | A kind of speech engine switching method, mobile terminal and server |
CN107171874B (en) * | 2017-07-21 | 2020-02-18 | 维沃移动通信有限公司 | Voice engine switching method, mobile terminal and server |
CN107707654A (en) * | 2017-09-30 | 2018-02-16 | 中国联合网络通信集团有限公司 | The management method of container mirror image data, apparatus and system |
CN107707654B (en) * | 2017-09-30 | 2019-05-14 | 中国联合网络通信集团有限公司 | The management method of container mirror image data, apparatus and system |
CN110830281A (en) * | 2018-08-13 | 2020-02-21 | 浙江宇视科技有限公司 | Hot standby method and system based on mesh network structure |
CN110830281B (en) * | 2018-08-13 | 2022-06-14 | 浙江宇视科技有限公司 | Hot standby method and system based on mesh network structure |
CN109358983A (en) * | 2018-09-04 | 2019-02-19 | 深圳市宝德计算机系统有限公司 | Server data processing method, device and storage medium |
CN110300071A (en) * | 2019-06-03 | 2019-10-01 | 广东美的厨房电器制造有限公司 | The server resource acquisition methods and relevant device of internet of things equipment |
CN110955210A (en) * | 2019-11-29 | 2020-04-03 | 广东嘉腾机器人自动化有限公司 | AGV scheduling method, device and system |
CN110955210B (en) * | 2019-11-29 | 2021-10-19 | 广东嘉腾机器人自动化有限公司 | AGV scheduling method, device and system |
CN111970142A (en) * | 2020-07-16 | 2020-11-20 | 视联动力信息技术股份有限公司 | Communication fault processing method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106411585A (en) | Server switching method, adapter, server and scheduling device | |
US10649866B2 (en) | Method and apparatus for indirectly assessing a status of an active entity | |
US8027246B2 (en) | Network system and node apparatus | |
CN101420381B (en) | Method and apparatus for enhancing forwarding reliability in VRRP load balance | |
CN105450779B (en) | The method of one household appliance connection multiserver | |
KR20140009070A (en) | Network, master, hub, and method for providing a bluetooth infrastructure | |
CN104753828A (en) | SDN controller, data central system and route connection method | |
CN101925028B (en) | Short message gateway and short message isomerous network communication processing method thereof | |
CN102006189A (en) | Primary access server determination method and device for dual-machine redundancy backup | |
US20140043960A1 (en) | Method, tor switch, and system for implementing protection switchover based on trill network | |
CN103227725A (en) | Method and device for dual-server backup of firewall | |
JPWO2013133303A1 (en) | Network system, controller, and load balancing method | |
CN104901834A (en) | Method and system for automatically switching between network servers | |
CN110611590A (en) | Method and system for internet of things gateway communication backup | |
CN106375355B (en) | Load balancing processing method and device | |
US20070211629A1 (en) | Method and system for controlling wireless LAN route, apparatus for managing wireless LAN, and wireless LAN access terminal | |
CN103001822B (en) | The processing method of Network Abnormal and device | |
WO2015096432A1 (en) | Method and system for controlling network topology structure | |
KR20200072941A (en) | Method and apparatus for handling VRRP(Virtual Router Redundancy Protocol)-based network failure using real-time fault detection | |
US7738362B2 (en) | System and method for address notification in a network | |
CN104253747A (en) | Transmission method and transmission device for performing 1: 1 protection on message in link aggregation group | |
CN102064956A (en) | Method for regulating aging time, system and modulator-demodulator | |
CN114268581B (en) | Method for realizing high availability and load sharing of network equipment | |
CN102045221A (en) | Density wavelength division multiplexing network monitoring system, method and gateway network element | |
JP3570506B2 (en) | Network server and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170215 |
|
RJ01 | Rejection of invention patent application after publication |