CN113992578A - Method, device and equipment for switching servers by cloud desktop terminal and storage medium - Google Patents

Method, device and equipment for switching servers by cloud desktop terminal and storage medium Download PDF

Info

Publication number
CN113992578A
CN113992578A CN202111054529.8A CN202111054529A CN113992578A CN 113992578 A CN113992578 A CN 113992578A CN 202111054529 A CN202111054529 A CN 202111054529A CN 113992578 A CN113992578 A CN 113992578A
Authority
CN
China
Prior art keywords
network
server
address
interface
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.)
Granted
Application number
CN202111054529.8A
Other languages
Chinese (zh)
Other versions
CN113992578B (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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202111054529.8A priority Critical patent/CN113992578B/en
Publication of CN113992578A publication Critical patent/CN113992578A/en
Application granted granted Critical
Publication of CN113992578B publication Critical patent/CN113992578B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

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

Abstract

The invention provides a method, a device, equipment and a storage medium for switching a server by a cloud desktop terminal, which are used for solving the technical problem of low detection efficiency when the cloud desktop terminal equipment is switched among multiple networks. In the invention, after the terminal equipment is switched over, the upper layer application acquires the network interface address according to the network interface address change event reported by the network card, and matches the interface network segment address in the switching information table, the switching information table records the corresponding relation among the server, the interface network segment address and the DNS address, if the matching is successful, a network connectivity detection tool is used for detecting whether the server corresponding to the interface network segment address can be communicated, and if the server can be communicated, the corresponding server is connected. The method and the system effectively shorten the network detection time of the cloud desktop terminal during network switching, improve the network identification efficiency and further improve the network switching efficiency.

Description

Method, device and equipment for switching servers by cloud desktop terminal and storage medium
Technical Field
The invention relates to the technical field of cloud computing, in particular to a method, a device, equipment and a storage medium for switching servers of a cloud desktop terminal.
Background
When a user has two networks and requires the requirement of complete isolation between the networks, the cloud desktop dual-network function can be used for realizing. The cloud Desktop dual-network function is based on a Virtual Desktop Infrastructure (VDI) which is mainstream in the industry, integrates functions and advantages of a CAS product of a telecom-level virtualization platform, can host a Desktop environment of a user to a high-performance server in a data center in a Virtual machine mode, and isolates Desktop resources on a back-end server. The administrator can realize visual convenient management of all cloud desktop resources, and can rapidly deploy cloud desktops in batches to meet the requirements of a large number of users and other operations. A user can use the cloud desktop of the user through various terminals such as a PC (personal computer) and a thin terminal, and tasks such as daily office work and management can be conveniently completed.
The dual-network function supports a user to connect two management platforms in different networks, only one of the networks is allowed to be started at the same time, and the dual-network function is connected with a cloud desktop authorized by the corresponding management platform. The dual-network isolation function is that the single-network card thin terminal device switches the network by means of the network switcher to complete the management platform switching function in different networks.
Through the network switcher, the terminal equipment can be flexibly and conveniently switched between the network A and the network B, and the cloud desktop can be flexibly and conveniently switched by a user by utilizing the function of automatically connecting the terminal program with the cloud desktop.
In the above dual-network isolated use scenario, the network switch may be continuously switched for multiple times, and after the switching is stopped, the terminal device may not or not easily determine the current network and the corresponding server to be connected. The network identification efficiency becomes a key point of the cloud desktop switching performance.
Assuming that the network A and the network B both use DHCP dynamic networks, switches directly connected with the terminals are both configured with edge ports to accelerate the dynamic address allocation of the terminals. And after the physical network switcher is switched, the state of the physical network card of the terminal is switched, and the address is redistributed. The terminal system informs the upper application network address of switching, and the application program detects the network and selects the server, connects the server of the current network and recovers the service.
Based on the scheme, the application program detects the high efficiency of the network method and directly influences the network switching efficiency.
Assuming that an application configures addresses of two management platforms A and B, the existing network detection method comprises the following steps:
(1) and if the A server can be switched to the Ping server, the switching to the network where the A server is located is indicated, and the client is triggered to log in the address A of the server. And (2) if the server A cannot Ping in a certain number of times and within a time range, executing.
(2) And if the B server can be switched to the Ping server, the network Ping server B indicates that the server B is switched to the network where the server B is located, and the client is triggered to log in the server address B. And (1) if the server B can not be Ping-enabled within a certain number of times and time range, executing.
Repeating the operations (1) and (2) for a plurality of times for a long time, if the Ping can not pass through the A or B server, the server can not be selected correctly.
According to the method, under the condition that both networks use the dynamic host configuration protocol DHCP address, the correct server A or B can be selected unless the network link has problems.
In the detection scheme, the network where the A, B server is located is detected blindly, Ping operation detection is used, asynchronous message interaction consumes long time, and detection efficiency is low.
Disclosure of Invention
In view of this, the invention provides a method, an apparatus, a device and a storage medium for switching a server by a cloud desktop terminal, which are used for solving the technical problem of low detection efficiency when a cloud desktop terminal device performs multi-network switching.
On the basis of one aspect of the embodiment of the invention, the invention provides a method for switching servers by a cloud desktop terminal, which is applied to cloud desktop terminal equipment and comprises the following steps:
after receiving a network interface address change event notification reported by a local network card, acquiring a network interface address of the local network card;
matching the interface network segment address in the switching information table by using the acquired network interface address; the switching information table is used for storing the corresponding relation among the server, the interface network segment address of the network where the server is located and the domain name server DNS address;
when the interface network segment address is matched, a network connectivity detection tool is used for detecting whether a first server in a network to which the matched interface network segment address belongs is reachable;
connecting to the first server if the first server is reachable.
Further, the method further comprises:
when the interface network segment address is not matched, using a network connectivity detection tool to detect whether the first server is reachable;
under the condition that the first server is accessible, writing the interface network segment address and the DNS address of the network where the current network card is located into a record corresponding to the first server in the switching information table;
in the case that the first server is not reachable, detecting whether a second server is reachable by using a network connectivity detection tool;
and under the condition that the second server is accessible, writing the interface network segment address and the DNS address of the network where the current network card is located into a record corresponding to the second server in the switching information table.
Further, the method further comprises: and recording the switching information table into a database or a local configuration file, and loading the switching information table into a memory during initialization.
Further, the method further comprises:
under the condition that the obtained network interface address is not matched with the interface network segment address in the switching information table, a server connected before network switching is obtained;
in the case that the server connected before the switching is the first server, detecting whether the second server is reachable by using a connectivity detection tool;
and when the second server is reachable, acquiring the interface network segment address and the DNS address of the network interface address of the current network card and recording the interface network segment address and the DNS address into the switching information table.
On the other hand, the present invention further provides a device for switching servers of a cloud desktop terminal, where the device is applied to a cloud desktop terminal device, and the device includes:
the switching response module is used for acquiring the network interface address of the local network card after receiving the network interface address change event notification reported by the local network card;
the switching information table is used for storing the corresponding relation among the server, the interface network segment address of the network where the server is located and the domain name server DNS address;
the network matching module is used for matching the interface network segment address in the switching information table by using the acquired network interface address;
the server detection module is used for detecting whether a first server in a network to which the matched interface network segment address belongs can be reached by using a network connectivity detection tool when the interface network segment address is matched;
a connection module, configured to connect to the first server if the first server is reachable.
Further, the server detection module is further configured to detect whether the first server is reachable by using a network connectivity detection tool when the interface network segment address is not matched;
under the condition that the first server is accessible, writing the interface network segment address and the DNS address of the network where the current network card is located into a record corresponding to the first server in the switching information table;
in the case that the first server is not reachable, detecting whether a second server is reachable by using a network connectivity detection tool;
and under the condition that the second server is accessible, writing the interface network segment address and the DNS address of the network where the current network card is located into a record corresponding to the second server in the switching information table.
Further, the server detection module is further configured to record the switching information table in a database or a local configuration file, and load the switching information table into a memory during initialization.
Further, the server detection module is further configured to acquire a server connected before network handover when the acquired network interface address is not matched with the interface network segment address in the handover information table;
in the case that the server connected before the switching is the first server, detecting whether the second server is reachable by using a connectivity detection tool;
and when the second server is reachable, acquiring the interface network segment address and the DNS address of the network interface address of the current network card and recording the interface network segment address and the DNS address into the switching information table.
In the technical scheme of the invention, after the terminal equipment is switched over, the upper layer application acquires the network interface address according to the network interface address change event reported by the network card and matches the interface network segment address in the switching information table, the switching information table records the corresponding relation among the server, the interface network segment address and the DNS address, if the matching is successful, a network connectivity detection tool is used for detecting whether the server corresponding to the interface network segment address can be communicated, and if the server corresponding to the interface network segment address can be communicated, the corresponding server is connected. The method and the system effectively shorten the network detection time of the cloud desktop terminal during network switching, improve the network identification efficiency and further improve the network switching efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments of the present invention or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings may be obtained according to the drawings of the embodiments of the present invention.
Fig. 1 is a schematic view of a link structure between a cloud desktop terminal device with a multi-network isolation function and a server according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for switching servers of a cloud desktop terminal according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device for implementing a method for switching a server by a cloud desktop terminal according to an embodiment of the present invention.
Detailed Description
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the invention. As used in this embodiment of the invention, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used to describe various information in embodiments of the present invention, the information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of embodiments of the present invention. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
The invention provides a method for switching a server by a cloud desktop terminal, which aims to solve the technical problem that the network switching detection speed of terminal equipment in a Virtual Desktop Infrastructure (VDI) in a multi-network isolation scene is low.
Taking the case that a cloud desktop terminal is connected to two servers isolated by a physical network as an example, fig. 1 illustrates a schematic diagram of a link structure between a cloud desktop terminal device with a multi-network isolation function and the servers, where a main board or a CPU of the cloud desktop terminal device (terminal device for short) is integrated with a gigabit media access controller GMAC, and is connected to a physical network card (network card or PHY for short) through a reduced gigabit media independent interface RGMII, the PHY is connected to a physical network switch (switch for short) through a media related interface MDI, the network switch is respectively connected to two physical interfaces RJ45_1 and RJ45_2 through the MDI, and the network switch can realize switching between two networks a and B isolated from each other under program or switch control. The number of networks connected with the cloud desktop terminal is not limited, the number of the networks can be more than 2, and correspondingly, the network switcher can also switch among more than 2 isolated networks.
In this embodiment, the terminal device externally presents two network ports, but only one physical network card is provided in the device, and the network switch is used for network switching. Only one logical network card exists in the operating system of the terminal equipment.
Suppose that two virtual machines to be connected by the terminal device are a virtual machine a located on a server a (address 1.1.1.1) in a network a and a virtual machine B located on a server B (address 2.2.2.2) in a network B, and both networks use a dynamic host configuration protocol.
Before executing the method for switching servers by using a cloud desktop terminal provided in this embodiment, a switching information table needs to be initialized, where the switching information table in an initial state is shown in table 1:
TABLE 1
Server address Network type Static address Interface network segment address DNS address acquisition mode DNS address
Server A (1.1.1.1) DHCP Is free of Automatic acquisition
Server B (2.2.2.2) DHCP Is free of Automatic acquisition
The interface network segment address and a Domain Name Server (DNS) address are acquired during the execution of the method.
The following steps are steps and flows of the method for switching the server by the cloud desktop terminal provided by the embodiment, the steps and flows of the method are applied to an application program on the terminal device, and the application program can be a cloud desktop client, and the method includes:
step 201, the network switch is switched, the network card on the terminal device generates an offline down/online up event, the network interface address of the network card changes, and the network interface address change event is reported to the upper application program by the network card.
Step 202, after receiving the reported network interface address change event, the application program acquires a network interface address, matches the acquired network interface address with the interface network segment address recorded in table 1, and executes step 203 if the interface network segment address in table 1 is empty in the initial state and the matching fails.
Step 203, the application program acquires the DNS address, matches the DNS address of the record, and similarly, in the initial state, the DNS address in table 1 is also empty, and in the case of a failure in matching, step 204 is executed.
Step 204, the application program uses a network connectivity detection tool (for example, Ping program) to detect whether the server a is reachable, if the server a is reachable, it indicates that the current network has been switched to the network a where the server a is located, at this time, the interface network segment address of the interface network address of the current network card and the DNS address of the network a are obtained and recorded in the above table 1, and then the application program can be connected to the server a.
And 204, if the application program detects that the server A cannot be reached by using the connectivity detection tool, continuing to detect whether the server A can be reached with the server B, if the server B can be reached, indicating that the current network is switched to the network B where the server B is located, acquiring the interface network segment address of the interface network address of the current network card and the DNS address of the network B at the moment, recording the interface network segment address and the DNS address into the table 1, and then connecting the application program with the server B.
After network switching is carried out and the network is successfully connected to the server A and the server B, the corresponding relation among the server address, the interface network segment address of the current network where the local network card is located and the DNS address can be established through the switching information table, and the established corresponding relation can be used for carrying out rapid switching when network switching is carried out next time. For example, table 2 illustrates an example of the handover information table after information of network a and network B is successfully acquired.
TABLE 2
Server address Network type Static address Interface network segment address DNS address acquisition mode DNS address
Server A (1.1.1.1) DHCP Is free of 1.1.2.0/24 Automatic acquisition 5.5.5.5
Server B (2.2.2.2) DHCP Is free of 2.2.3.0/24 Automatic acquisition 4.4.4.4
Based on the switching information table with complete information, when network switching is performed again, the method for switching the server by the cloud desktop terminal in the embodiment includes the following steps:
and step 211, after the network switch executes network switching, the network card of the terminal device generates a down/up event, the network interface address of the network card changes, and the network card informs the upper application program of the network interface address change event.
Step 212, after receiving the notification of the network interface address change event, the application program acquires the network interface address of the network card (assumed to be 1.1.2.3/24), matches the network interface address recorded in the switching information table (1.1.2.0/24), if the matching is successful, a network connectivity detection tool (for example, Ping program) can be further used for detecting whether the link of the server a is reachable, if so, the current switching to the network a where the server a is located is determined, the application program can be connected with the server a, and the dual-network switching is finished.
In an embodiment of the present invention, after successfully connecting to the server each time, information such as an interface network segment address and a DNS address corresponding to a network interface address of the current network card is updated to the switching information table, so as to implement dynamic update of the switching information table.
In an embodiment of the present invention, the application program records the switching information table in the database or the local configuration file, loads the table from the database or the local configuration file into the memory when the application program is initialized during running, and keeps the contents of the memory and the database or the local configuration file consistent each time the switching information table is updated. Therefore, after the server is started every time, when the network is switched, the server where the network is switched can be quickly selected and switched through matching based on the loaded switching information table, and the purpose of quick switching is achieved.
In an embodiment of the present invention, in order to increase the network switching speed of the application program, the success rate of the first switching may be increased as follows:
after the application program obtains the current network interface address of the network card, under the condition that the network interface address of the network card is not matched with the interface network segment address in the switching information table, the server connected before network switching is obtained, if the server A is connected in the past, the application program uses a connectivity detection tool to detect whether the server B is reachable, if the server B is reachable, the current network is switched to the network B where the server B is located, the interface network segment address and the DNS address of the network interface address of the current network card are obtained, and the interface network segment address and the DNS address are recorded in the table 1.
In the initial case, assuming that the application was connected to server a in network a before the switch, the application may record the address of the currently connected server a in a history table, when the user uses the switch button to switch, according to the normal use habit of the user, if the user is in the network A before, the user switches to the network B with a higher probability, because the interface network segment address of the network B and the DNS address are not initialized, if the application program obtains the network interface address of the current network card according to a fixed matching sequence and matches the network interface address, the matching fails, if probing is still performed in the order of probe server a first and probe server B at this time, the process of probing server a is obviously useless, extending the probing time, and therefore probing server B directly, and if the server B is connected, updating the interface network segment address and the DNS address corresponding to the server B in the table 1. In the embodiment, by recording the address of the server connected at the previous time and directly detecting another server address different from the address of the server connected at the previous time after network switching, the success rate of first detection is improved and the switching efficiency is improved.
The invention can learn the operation network environment (interface network segment address, DNS address) in the program operation process, and use the configuration file to solidify the operation process data, guide the network switching, improve the switching efficiency and success rate, and achieve the purpose of rapidly identifying the network and switching the server.
Fig. 2 is a schematic structural diagram of an apparatus for switching a server of a cloud desktop terminal according to an embodiment of the present invention, and each functional module in the apparatus 20 may be implemented by software, hardware, or a combination of software and hardware.
The device 20 is applied to a cloud desktop terminal device, and the device 20 includes:
the switching response module 21 is configured to obtain a network interface address of the local network card after receiving a network interface address change event notification reported by the local network card;
the network matching module 22 is used for matching the interface network segment address in the switching information table by using the acquired network interface address;
the server detection module 23 is configured to, when the interface segment address is matched, detect whether a first server in a network to which the matched interface segment address belongs is reachable by using a network connectivity detection tool;
a connection module 24, configured to connect to the first server if the first server is reachable;
and a switching information table 25, configured to store a correspondence between the server, an interface network segment address of a network where the server is located, and a domain name server DNS address.
In an embodiment of the present invention, the server detecting module 23 is further configured to detect whether the first server is reachable by using a network connectivity detecting tool when the interface network segment address is not matched;
under the condition that the first server is accessible, writing the interface network segment address and the DNS address of the network where the current network card is located into a record corresponding to the first server in the switching information table;
in the case that the first server is not reachable, detecting whether a second server is reachable by using a network connectivity detection tool;
and under the condition that the second server is accessible, writing the interface network segment address and the DNS address of the network where the current network card is located into a record corresponding to the second server in the switching information table.
In an embodiment of the present invention, the server detection module 23 is further configured to record the switching information table in a database or a local configuration file, and load the switching information table into a memory during initialization.
In an embodiment of the present invention, the server detection module 23 is further configured to, in a case that the obtained network interface address is not matched with the interface network segment address in the switching information table, obtain a server connected before network switching;
in the case that the server connected before the switching is the first server, detecting whether the second server is reachable by using a connectivity detection tool;
and when the second server is reachable, acquiring the interface network segment address and the DNS address of the network interface address of the current network card and recording the interface network segment address and the DNS address into the switching information table.
Fig. 3 is a schematic structural diagram of an electronic device for implementing a method for switching a server between cloud desktop terminals according to an embodiment of the present invention, where the device 300 includes: a processor 310, such as a Central Processing Unit (CPU), a communication bus 320, a communication interface 340 (e.g., a physical network card), and a storage medium 330. Wherein the processor 310 and the storage medium 330 may communicate with each other through a communication bus 320. The storage medium 330 stores a computer program, and when the computer program is executed by the processor 310, the functions of the steps of the method for switching the server of the cloud desktop terminal according to the present invention can be implemented. The storage medium 330 may include the cloud desktop terminal switching server apparatus 200 composed of software modules.
The storage medium may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. In addition, the storage medium may be at least one memory device located remotely from the processor. The Processor may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), etc.; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It should be recognized that embodiments of the present invention can be realized and implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory memory. The method may be implemented in a computer program using standard programming techniques, including a non-transitory storage medium configured with the computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose. Further, operations of processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) collectively executed on one or more processors, by hardware, or combinations thereof. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable interface, including but not limited to a personal computer, mini computer, mainframe, workstation, networked or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and the like. Aspects of the invention may be embodied in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optically read and/or write storage medium, RAM, ROM, or the like, such that it may be read by a programmable computer, which when read by the storage medium or device, is operative to configure and operate the computer to perform the procedures described herein. Further, the machine-readable code, or portions thereof, may be transmitted over a wired or wireless network. The invention described herein includes these and other different types of non-transitory computer-readable storage media when such media include instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. The invention also includes the computer itself when programmed according to the methods and techniques described herein.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for switching servers by a cloud desktop terminal is applied to cloud desktop terminal equipment and comprises the following steps:
after receiving a network interface address change event notification reported by a local network card, acquiring a network interface address of the local network card;
matching the interface network segment address in the switching information table by using the acquired network interface address; the switching information table is used for storing the corresponding relation among the server, the interface network segment address of the network where the server is located and the domain name server DNS address;
when the interface network segment address is matched, a network connectivity detection tool is used for detecting whether a first server in a network to which the matched interface network segment address belongs is reachable;
connecting to the first server if the first server is reachable.
2. The method of claim 1, further comprising:
when the interface network segment address is not matched, using a network connectivity detection tool to detect whether the first server is reachable;
under the condition that the first server is accessible, writing the interface network segment address and the DNS address of the network where the current network card is located into a record corresponding to the first server in the switching information table;
in the case that the first server is not reachable, detecting whether a second server is reachable by using a network connectivity detection tool;
and under the condition that the second server is accessible, writing the interface network segment address and the DNS address of the network where the current network card is located into a record corresponding to the second server in the switching information table.
3. The method of claim 1, further comprising:
and recording the switching information table into a database or a local configuration file, and loading the switching information table into a memory during initialization.
4. The method of claim 2, further comprising:
under the condition that the obtained network interface address is not matched with the interface network segment address in the switching information table, a server connected before network switching is obtained;
in the case that the server connected before the switching is the first server, detecting whether the second server is reachable by using a connectivity detection tool;
and when the second server is reachable, acquiring the interface network segment address and the DNS address of the network interface address of the current network card and recording the interface network segment address and the DNS address into the switching information table.
5. The device for switching the servers of the cloud desktop terminals is applied to cloud desktop terminal equipment and comprises the following components:
the switching response module is used for acquiring the network interface address of the local network card after receiving the network interface address change event notification reported by the local network card;
the switching information table is used for storing the corresponding relation among the server, the interface network segment address of the network where the server is located and the domain name server DNS address;
the network matching module is used for matching the interface network segment address in the switching information table by using the acquired network interface address;
the server detection module is used for detecting whether a first server in a network to which the matched interface network segment address belongs can be reached by using a network connectivity detection tool when the interface network segment address is matched;
a connection module, configured to connect to the first server if the first server is reachable.
6. The apparatus of claim 5,
the server detection module is also used for detecting whether the first server is reachable by using a network connectivity detection tool when the interface network segment address is not matched;
under the condition that the first server is accessible, writing the interface network segment address and the DNS address of the network where the current network card is located into a record corresponding to the first server in the switching information table;
in the case that the first server is not reachable, detecting whether a second server is reachable by using a network connectivity detection tool;
and under the condition that the second server is accessible, writing the interface network segment address and the DNS address of the network where the current network card is located into a record corresponding to the second server in the switching information table.
7. The apparatus of claim 5,
the server detection module is further configured to record the switching information table in a database or a local configuration file, and load the switching information table into a memory during initialization.
8. The apparatus of claim 6,
the server detection module is also used for acquiring a server connected before network switching under the condition that the acquired network interface address is not matched with the interface network segment address in the switching information table;
in the case that the server connected before the switching is the first server, detecting whether the second server is reachable by using a connectivity detection tool;
and when the second server is reachable, acquiring the interface network segment address and the DNS address of the network interface address of the current network card and recording the interface network segment address and the DNS address into the switching information table.
9. An electronic device is characterized by comprising a processor, a communication interface, a storage medium and a communication bus, wherein the processor, the communication interface and the storage medium are communicated with each other through the communication bus;
a storage medium for storing a computer program;
a processor for performing the method steps of any one of claims 1 to 4 when executing a computer program stored on a storage medium.
10. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN202111054529.8A 2021-09-09 2021-09-09 Method, device, equipment and storage medium for switching servers of cloud desktop terminal Active CN113992578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111054529.8A CN113992578B (en) 2021-09-09 2021-09-09 Method, device, equipment and storage medium for switching servers of cloud desktop terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111054529.8A CN113992578B (en) 2021-09-09 2021-09-09 Method, device, equipment and storage medium for switching servers of cloud desktop terminal

Publications (2)

Publication Number Publication Date
CN113992578A true CN113992578A (en) 2022-01-28
CN113992578B CN113992578B (en) 2023-11-03

Family

ID=79735514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111054529.8A Active CN113992578B (en) 2021-09-09 2021-09-09 Method, device, equipment and storage medium for switching servers of cloud desktop terminal

Country Status (1)

Country Link
CN (1) CN113992578B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584608A (en) * 2022-02-09 2022-06-03 北信源系统集成有限公司 Network switching method, device, equipment and storage medium
CN114826969A (en) * 2022-03-17 2022-07-29 阿里巴巴(中国)有限公司 Network connectivity checking method, device, equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100128696A1 (en) * 2006-10-31 2010-05-27 Telecom Italia S.P.A. Management of seamless handover between different communication systems in an ip dual-mode terminal
CN102026263A (en) * 2010-12-09 2011-04-20 苏州捷泰科信息技术有限公司 Wireless communication network connection method
CN102917426A (en) * 2012-11-15 2013-02-06 中国联合网络通信集团有限公司 Operator network switching method and device for IOT (Internal of Things) terminal
CN103997422A (en) * 2014-05-05 2014-08-20 大唐移动通信设备有限公司 Fault processing method and device for IP interface board
CN104066129A (en) * 2014-06-30 2014-09-24 深圳市中兴移动通信有限公司 Network switching method and system
CN104967538A (en) * 2015-06-30 2015-10-07 北京奇虎科技有限公司 Method, device and system for network fault switching
CN106851758A (en) * 2017-03-17 2017-06-13 广东欧珀移动通信有限公司 Communication network changing method and terminal device
CN108696395A (en) * 2018-05-23 2018-10-23 湖南麒麟信安科技有限公司 Network switching device and its application process under a kind of Multi net voting isolation environment
CN108737188A (en) * 2018-05-24 2018-11-02 郑州云海信息技术有限公司 A kind of net card failure switching system
CN110519401A (en) * 2019-07-05 2019-11-29 中国平安财产保险股份有限公司 Improve method, apparatus, equipment and the storage medium of network Access Success Rate
CN110856225A (en) * 2018-08-20 2020-02-28 中兴通讯股份有限公司 Network switching method, device, terminal and storage medium
CN113366815A (en) * 2019-04-11 2021-09-07 深圳市欢太科技有限公司 Network resource request method, device, electronic equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100128696A1 (en) * 2006-10-31 2010-05-27 Telecom Italia S.P.A. Management of seamless handover between different communication systems in an ip dual-mode terminal
CN102026263A (en) * 2010-12-09 2011-04-20 苏州捷泰科信息技术有限公司 Wireless communication network connection method
CN102917426A (en) * 2012-11-15 2013-02-06 中国联合网络通信集团有限公司 Operator network switching method and device for IOT (Internal of Things) terminal
CN103997422A (en) * 2014-05-05 2014-08-20 大唐移动通信设备有限公司 Fault processing method and device for IP interface board
CN104066129A (en) * 2014-06-30 2014-09-24 深圳市中兴移动通信有限公司 Network switching method and system
CN104967538A (en) * 2015-06-30 2015-10-07 北京奇虎科技有限公司 Method, device and system for network fault switching
CN106851758A (en) * 2017-03-17 2017-06-13 广东欧珀移动通信有限公司 Communication network changing method and terminal device
CN108696395A (en) * 2018-05-23 2018-10-23 湖南麒麟信安科技有限公司 Network switching device and its application process under a kind of Multi net voting isolation environment
CN108737188A (en) * 2018-05-24 2018-11-02 郑州云海信息技术有限公司 A kind of net card failure switching system
CN110856225A (en) * 2018-08-20 2020-02-28 中兴通讯股份有限公司 Network switching method, device, terminal and storage medium
CN113366815A (en) * 2019-04-11 2021-09-07 深圳市欢太科技有限公司 Network resource request method, device, electronic equipment and storage medium
CN110519401A (en) * 2019-07-05 2019-11-29 中国平安财产保险股份有限公司 Improve method, apparatus, equipment and the storage medium of network Access Success Rate

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584608A (en) * 2022-02-09 2022-06-03 北信源系统集成有限公司 Network switching method, device, equipment and storage medium
CN114584608B (en) * 2022-02-09 2024-05-24 北信源系统集成有限公司 Network switching method, device, equipment and storage medium
CN114826969A (en) * 2022-03-17 2022-07-29 阿里巴巴(中国)有限公司 Network connectivity checking method, device, equipment and storage medium
CN114826969B (en) * 2022-03-17 2024-02-06 阿里巴巴(中国)有限公司 Network connectivity checking method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113992578B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
CN113992578B (en) Method, device, equipment and storage medium for switching servers of cloud desktop terminal
US10880163B2 (en) System and method for hardware management and configuration in a datacenter using augmented reality and available sensor data
EP3410288B1 (en) Online upgrade method, device and system
CN113285822B (en) Method and system for troubleshooting hardware devices of a network switching fabric
CN112596960A (en) Distributed storage service switching method and device
CN109391514B (en) High-availability-based equipment deployment method, server, storage medium and device
US10282120B2 (en) Method, apparatus and system for inserting disk
US20200252302A1 (en) System and Method for Remote Hardware Support Using Augmented Reality and Available Sensor Data
CN110297867B (en) Database cluster operation method and system based on domestic CPU and distributed container cluster
CN113055252B (en) Method, device, equipment and storage medium for detecting newly added service host
CN113505027B (en) Business system backup method, device, equipment and storage medium
CN108462756B (en) Data writing method and device
CN111835559A (en) Automatic configuration method, device, equipment and machine readable storage medium
US20050268043A1 (en) Reconfiguring logical settings in a storage system
CN106897303A (en) Data query method and device
CN106911508B (en) DNS configuration recovery method and device
CN110781039B (en) Sentinel process election method and device
CN109656679B (en) Storage access method and device of virtual machine
CN112214413A (en) Application program testing method, device, equipment and storage medium
CN109614354B (en) Interface distribution method, board card, equipment and storage medium
CN114008545A (en) Configurable memory device connected to a microprocessor
CN114050990B (en) Method and device for testing network isolation equipment, storage medium and electronic equipment
CN103561128A (en) FC ID recycling method and network equipment
US20200342109A1 (en) Baseboard management controller to convey data
CN111858187A (en) Electronic equipment and service switching method and device

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