WO2020211364A1 - 实现网关异地多活的方法、装置、计算机设备及存储介质 - Google Patents
实现网关异地多活的方法、装置、计算机设备及存储介质 Download PDFInfo
- Publication number
- WO2020211364A1 WO2020211364A1 PCT/CN2019/118171 CN2019118171W WO2020211364A1 WO 2020211364 A1 WO2020211364 A1 WO 2020211364A1 CN 2019118171 W CN2019118171 W CN 2019118171W WO 2020211364 A1 WO2020211364 A1 WO 2020211364A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data center
- remote data
- gateway
- address
- client
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
-
- 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/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- 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
- H04L67/1034—Reaction to server failures by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/321—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
- H04L9/3213—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos
Definitions
- This application relates to the field of computer technology, and in particular to a method, device, computer equipment, and storage medium for realizing multiple activities of a gateway in different places.
- the network of each computer room is mainly divided into DMZ network area, SF network area and PTR network area.
- the DMZ network zone is called for the Internet
- the PTR network zone is called for the dedicated line
- the SF network zone is called for the intranet.
- this application proposes a method, device, computer equipment and storage medium for realizing multiple activities of the gateway in different places, which aims to solve the problem that the caller cannot access the computer room where the server is located when there is a problem with the application in the server room.
- the problem of business resources is a problem that the caller cannot access the computer room where the server is located when there is a problem with the application in the server room.
- This application proposes a method for realizing multiple activities of gateways in different places, which is applied to a data center system.
- the data center system includes at least two data centers. Each data center is set in a different area, and each data center passes a preset backup.
- the links are interconnected, and the methods include:
- the remote data center with the highest priority is determined from the remaining available remote data centers according to a predetermined priority strategy
- This application also proposes a device for realizing multiple activities of a gateway in different places, which is applied to a data center system.
- the data center system includes at least two data centers. Each data center is set in a different area, and each data center passes a preset
- the backup links are interconnected, and the devices include:
- the receiving module is configured to receive a request address sent by the client, where the request address includes a first IP address, and the first IP address corresponds to the local data center;
- the access module is configured to access the first gateway of the local data center according to the first IP address, and determine whether the first gateway is in an available state;
- the determining module is used to determine the remote data center with the highest priority from the remaining available remote data centers according to a predetermined priority strategy when the first gateway is in an unavailable state;
- the calling module is used to access the second gateway of the remote data center with the highest priority and call the backup link between the remote data center and the local data center with the highest priority so that the client can access the local data center through the backup link Business resources.
- the present application also proposes a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the aforementioned method for realizing multiple activities of a gateway in different places when the processor executes the computer program.
- the present application also proposes a computer-readable storage medium on which a computer program is stored.
- the computer program is executed by a processor, the steps of the aforementioned method for realizing multiple activities of the gateway in different places are realized.
- the method for realizing multiple active gateways in different places configures a backup link between each data center so that each data center can communicate with each other.
- a data center fails, the client cannot access normally.
- the data center can be accessed by switching to other available data centers and invoking the corresponding backup link, so that multiple data centers can be mutually standby, realizing multiple activities in different places. It solves the technical problem that the caller cannot access the business resources of the server room when there is a problem with the application in the server room.
- Fig. 1 is a schematic flowchart of a method for implementing multiple active gateways in different places in an implementation of this application;
- Fig. 2 is a schematic structural diagram of a device for realizing multiple active gateways in different places in an implementation of the present application
- Fig. 3 is a schematic diagram of the structure of a computer device in an implementation of the present application.
- an embodiment of the present application proposes a method for realizing multiple activities of a gateway in different places, which is applied to a data center system.
- the data center system includes at least two data centers. Each data center is set in a different area, and each data center The device is connected to each other through a preset backup link.
- This method can be executed by a device that realizes multiple activities of the gateway in different places.
- the device that realizes multiple activities of the gateway in different places can be composed of hardware and/or software, and can generally be integrated in all remote locations.
- the method includes:
- S11 Receive a request address sent by a client, where the request address includes a first IP address, and the first IP address corresponds to a local data center;
- S12 Access the first gateway of the local data center according to the first IP address, and determine whether the first gateway is in an available state;
- S14 Access the second gateway of the remote data center with the highest priority, and call the backup link between the remote data center and the local data center with the highest priority, so that the client can access the business resources of the local data center through the backup link .
- local and remote are relative terms, which are determined according to the actual access needs of the user. For example, if the user needs to access the business resources of a certain data center, then the data center can be regarded as a local data center. , And the remaining data centers can be regarded as remote data centers. These data centers can be deployed in different regions according to business needs, such as Beijing, Shanghai, and Guangzhou. Among them, different data centers store different business resources and different data. Each center has its corresponding IP address. Users can choose the data center to access according to their own business needs. Specifically, for example, the user needs to access a certain data center (at this time, the data center can be regarded as a local data center).
- the user can send a request address (for example, by entering the request address in the address bar of the Web browser) to the above device (that is, the device that realizes the gateway's remote multi-activity) through the client (such as a Web browser), where:
- the requested address contains an IP address (that is, the first IP address) corresponding to the data center in order to access the local data center.
- step S12 specifically, after receiving the request address sent by the client, the device can learn from the first IP address in the request address that the client needs to access the local data center, and to access the business resources of the local data center It needs to be achieved by accessing the first gateway of the local data center. Therefore, it is necessary to check whether the first gateway is available.
- the above-mentioned device finds the first gateway of the local data center according to the first IP address, and then accesses the first gateway ( For example, if an access request is sent to the first gateway), if the first gateway does not respond to this (ie the access request of the first gateway) during the access process, it indicates that the first gateway is in an unavailable state and cannot be accessed
- the service resources of the local data center can enter step S13 to perform related operations at this time; and if the first gateway responds to this during the access process, it indicates that the first gateway is in an available state, and the client can pass
- the first gateway directly accesses the service resources of the local data center, and obtains the required service resources therefrom.
- step S13 since the data centers are connected to each other through the pre-set backup link, when the first gateway is in an unavailable state and cannot normally obtain the required business resources from the local data center, the Switch to other available remote data centers and call the corresponding backup link to access the local data center. Since there may be multiple available remote data centers, it is necessary to select the remote data center with the highest priority first. Since the local data center and the remote data center are in different regions, the data transmission will be delayed. Therefore, the remote data center with the shortest delay can be selected as the highest priority remote data center.
- step S14 because the business resources stored in the remote data center are not the same as the business resources stored in the local data center, in order to ensure that the client can correctly obtain the business resources of the local data center instead of the business resources of the remote data center, Therefore, it is necessary to ensure that the data in the local data center is consistent with the data in the remote data center.
- the client When the client obtains the business resources of the data center, it specifically accesses the memory database (such as Redis) of the data center through the gateway, and then reads The static data in the memory database is used to obtain the required business resources, so specific static data can be written into the memory database corresponding to each data center and the preset external memory database (such as oracle) in advance, and then through Static data reconciliation to ensure that the static data in each memory database is consistent with the static data in the external storage database, so as to ensure that the static data in the local data center is consistent with the static data in the remote data center; in this step, specifically, When the remote data center with the highest priority is determined, the above device can switch the first IP address to the IP address corresponding to the remote data center with the highest priority through the domain name resolution (DNS) scheduling system, and then find it according to the IP address The second gateway of the remote data center with the highest priority is accessed.
- DNS domain name resolution
- the backup link between the remote data center with the highest priority and the local data center is invoked so that the client can pass through the
- the backup link normally accesses the business resources of the local data center, thereby realizing multiple activities in different places, and solving the technology that the caller cannot access the business resources of the server room when there is a problem with the application in the server room (ie, the local data center) problem.
- the method for realizing multiple active gateways in different places is to configure a backup link between each data center, so that each data center can communicate with each other, and at the same time, according to the configuration of the backup link, a data center
- the static data is placed in the memory database corresponding to the backup link, so that the data consistency can be guaranteed between the two data centers that are connected to each other.
- a data center fails, the client cannot access the business resources of the data center normally.
- the data center can be accessed by switching to other available data centers and invoking the corresponding backup link, so that multiple data centers can be standby for each other, realizing multiple activities in different places, and solving the problem of being a service provider.
- the caller cannot access the technical problem of the business resources in the computer room where the server is located.
- the method before the step of receiving the request address sent by the client, the method further includes:
- S09 Receive the identity information and the access token request sent by the client, and determine whether the identity information is legal;
- the user needs to be authorized by the above device to access the business resources of each data center. Specifically, before obtaining the business resources of the local data center through the client, the user needs to register a corresponding account (such as in the authentication server Register the corresponding account in the account). After the account registration is completed, use the account and the corresponding account password to log in (such as logging in to the authentication server). At this time, the above device can verify whether the account password corresponding to the account is correct through the authentication server. If it is correct, It can be determined that the identity information sent by the current client is legal. At this time, the above device can respond to the access token request sent by the client, generate a token information through the authentication server and return it to the client, and the client receives the access token.
- a corresponding account such as in the authentication server Register the corresponding account in the account.
- the above device can verify whether the account password corresponding to the account is correct through the authentication server. If it is correct, It can be determined that the identity information sent by the current client is legal.
- the information is cached in a local folder, so that subsequent clients can access the business resources specified by the local data center with the token information. In this way, by setting permissions, only the clients with the token information can access the specified business resources of the local data center. Business resources, thereby helping to improve data security and prevent the misappropriation of business resources in the local data center.
- the request address also includes access token information, accesses the second gateway of the remote data center with the highest priority, and calls the backup link between the remote data center and the local data center with the highest priority.
- access token information accesses the second gateway of the remote data center with the highest priority, and calls the backup link between the remote data center and the local data center with the highest priority.
- step S14 If the access token information is valid, perform the above step S14 to access the second gateway of the remote data center with the highest priority, and call the backup link between the remote data center and the local data center with the highest priority to make the client Access the business resources of the local data center through the backup link.
- the access token information can be judged whether the current client has the authority to access the business resources of the local data center, so that by setting the authority, it is helpful to improve data security and prevent the business resources of the local data center. Misappropriation, where the access token information is accompanied by a timestamp (that is, a timestamp can be added to the token information when the token information is generated).
- the access token information can be verified by the following methods: It has an expiration date, so it can first determine whether the access token information is legal by checking whether the timestamp has expired.
- the access token information can be determined to be illegal;
- the token information is compared with multiple access token information pre-stored in the external storage database to determine whether there is a match. If there is a match, then the access token information can be determined to be legal. If there is no match, then Based on this, it can be determined that the access token information is illegal; if the access token information is legal, it means that the current client has the authority to access the business resources of the local data center, and the above step S14 can be performed at this time; if the access token information If it is illegal, enter S14b to perform related operations.
- the method further includes:
- the access token information provided by the current client is illegal, it means that the current client does not have the authority to access the business resources of the local data center, so the current user needs to be re-authenticated, specifically,
- the client sends an authentication failure prompt message, prompting the user to re-enter the account and the corresponding account password, and then verify whether the account password corresponding to the account is correct through the authentication server. If it is correct, the identity information returned by the current client can be determined to be legitimate At the same time, it also explains that the reason for the illegal token information is probably because the time stamp has expired. At this time, the above device can regenerate a new token information through the authentication server and send it to the client.
- access priority The second gateway of the highest-level remote data center calls the backup link between the highest-priority remote data center and the local data center so that the client can access the business resources of the local data center through the backup link.
- the step of judging whether the first gateway is in an available state includes:
- S121 Send a heartbeat packet to the first gateway at a preset period, and determine whether feedback information returned by the first gateway in response to the heartbeat packet is received within a preset time;
- S122 is executed to determine that the first gateway is in an unavailable state.
- the above-mentioned device can use the DNS scheduling system to have a preset period (such as every 5 seconds, 10 seconds, 15 seconds, etc.).
- the preset period can be determined according to the actual situation.
- the first gateway if the first gateway is in an available state, when the first gateway receives the heartbeat packet, the first gateway will respond to the heartbeat Packet and reply a feedback message to the DNS scheduling system, and if the first gateway is in an unavailable state, the first gateway will not receive the heartbeat packet, and will not respond to the heartbeat packet.
- the DNS scheduling system periodically sends heartbeat packets to the first gateway to accurately determine whether the first gateway of the local data center is in an available state.
- the request address further includes the second IP address of the corresponding client.
- the step of determining the remote data center with the highest priority from the remaining available remote data centers according to a predetermined priority strategy includes:
- S13a1 Obtain the gateway status corresponding to other remote data centers, and determine all currently available remote data centers according to the gateway status;
- S13a2 Obtain the third IP address corresponding to all currently available remote data centers, and calculate the distance between the local data center and all currently available remote data centers based on the first IP address and the third IP address, and obtain multiple corresponding The first distance, and calculating the distance between the client and all currently available remote data centers according to the second IP address and the third IP address, to obtain multiple corresponding second distances;
- S13a3 Calculate the distance of the link through which the client accesses the service resource according to the first distance and the second distance, and obtain multiple corresponding link distances;
- S13a4 Select the link distance with the shortest distance from the multiple link distances, and determine the remote data center corresponding to the shortest link distance as the remote data center with the highest priority.
- the above gateway status includes the gateway is in the available state and the gateway is in the unavailable state.
- the IP addresses corresponding to the other remote data centers can be found from the external storage database, and the other remote data centers can be searched according to the found IP addresses.
- the gateway of the remote data center accesses it, and the DNS scheduling system sends heartbeat packets to the gateways corresponding to the other remote data centers to obtain the gateway status corresponding to the other remote data centers. That is, using the principle of the heartbeat mechanism, the DNS scheduling system can know what The gateway of the remote data center is in the available state, and which remote data center gateways are in the unavailable state, and this is recorded. Therefore, the gateway status corresponding to the other remote data centers can be obtained by reading the records in the DNS scheduling system, and then All currently available remote data centers can be determined based on the obtained gateway status.
- step S13a2 since each data center or client has its corresponding IP address, the location of the local data center or remote data center or client can be obtained through the IP address. For example, suppose the first IP address is 123.125 .71.38, it indicates that the location of the local data center is Beijing, the second IP address of the client is 113.65.161.23, it indicates that the location of the client is Guangzhou, and the third IP address of a remote data center is 116.234.222.36, then Indicates that the location of the remote data center is Shanghai. Therefore, specifically, when all currently available remote data centers are determined according to the gateway status, the third location corresponding to all currently available remote data centers can be found from the external storage database.
- IP address calculates the distance between the local data center and all currently available remote data centers based on the first IP address and the third IP address, and obtain multiple corresponding first distances.
- second IP address With the third IP address, the distance between the client and all currently available remote data centers can be calculated, and multiple corresponding second distances can be obtained.
- step S13a3 when the first gateway is in an unavailable state and cannot normally obtain the required service resources from the local data center, it is done by switching to other available remote data centers and calling the corresponding backup link.
- the link through which the client accesses the business resources of the local data center is: client-available remote data center-local data center, and because there may be multiple available remote data centers, Therefore, there may be multiple optional links for the client to access the business resources of the local data center. Therefore, it is necessary to select a suitable link. Specifically, by calculating the sum of the first distance and the second distance, each available The link distance corresponding to the link of the remote data center, so as to enter step S13a4 to perform related operations.
- the link distance with the shortest distance can be selected from multiple link distances, and the link distance with the shortest distance corresponds to the remote data
- the center is determined as the remote data center with the highest priority, which can minimize data delay and improve user experience.
- the step of determining the remote data center with the highest priority from the remaining available remote data centers according to a predetermined priority strategy includes:
- S13b1 Obtain network traffic corresponding to other remote data centers, and determine all currently available remote data centers based on the network traffic;
- S13b2 According to the network traffic, select the remote data center with the least network traffic from all the currently available remote data centers;
- the remote data center with the least network traffic is determined as the remote data center with the highest priority.
- the monitoring of network traffic can indirectly know which gateways of the remote data center are available and which gateways of the remote data center are not available, and then determine accordingly All currently available remote data centers, specifically, the network traffic corresponding to other remote data centers can be obtained through network traffic monitoring technologies (such as NetStream, Mirror, sFlow, etc.). If the network traffic corresponding to a certain remote data center is zero, then Based on this, it can be determined that the remote data center is unavailable, and if the network traffic corresponding to a remote data center is not zero (that is, there is network traffic), then the remote data center can be determined to be available.
- network traffic monitoring technologies such as NetStream, Mirror, sFlow, etc.
- step S13b2 when all the currently available remote data centers are determined, the remote data center with the least network traffic can be selected from all the currently available remote data centers based on the obtained network traffic to enter the step S13b3 performs related operations.
- step S13b3 when the first gateway is in an unavailable state and cannot normally obtain the required service resources from the local data center, it is done by switching to other available remote data centers and calling the corresponding backup link.
- the local data center is accessed, so the delay in the data transmission process will be affected by the "busy" degree of the remote data center itself.
- the more network traffic, the greater the amount of access, and the data center services The more "busy" it is, the greater the data delay caused, so the less network traffic, the shorter the delay. Therefore, the remote data center with the least currently available network traffic can be determined as the remote data center with the highest priority Data center, which can minimize data delay and improve user experience.
- the request address further includes the second IP address of the corresponding client.
- the step of determining the remote data center with the highest priority from the remaining available remote data centers according to a predetermined priority strategy includes:
- S13c1 Obtain the gateway status corresponding to other remote data centers, and determine all currently available remote data centers according to the gateway status;
- S13c2 Obtain the network traffic and the third IP address corresponding to all currently available remote data centers;
- S13c3 Calculate the distance between the local data center and all currently available remote data centers according to the first IP address and the third IP address, obtain multiple corresponding first distances, and, according to the second IP address and the third IP address Calculate the distance between the client and all currently available remote data centers, obtain multiple corresponding second distances, and calculate the distance of the link through which the client accesses business resources based on the first distance and the second distance, and obtain multiple Corresponding link distance;
- S13c4 Determine the remote data center with the highest priority from all currently available remote data centers based on the link distance and network traffic combined with the preset weight value.
- the above gateway status includes the gateway is in the available state and the gateway is in the unavailable state.
- the IP addresses corresponding to the other remote data centers can be found from the external storage database, and the other remote data centers can be found according to the found IP addresses.
- the gateway of the remote data center accesses it, and the DNS scheduling system sends heartbeat packets to the gateways corresponding to the other remote data centers to obtain the gateway status corresponding to the other remote data centers. That is, using the principle of the heartbeat mechanism, the DNS scheduling system can know what The gateway of the remote data center is in the available state, and which remote data center gateways are in the unavailable state, and this is recorded. Therefore, the gateway status corresponding to the other remote data centers can be obtained by reading the records in the DNS scheduling system, and then All currently available remote data centers can be determined based on the obtained gateway status.
- step S13c2 specifically, when all currently available remote data centers are determined according to the gateway status, network traffic monitoring technologies (such as NetStream, Mirror, sFlow, etc.) can be used to obtain the networks corresponding to all currently available remote data centers.
- network traffic monitoring technologies such as NetStream, Mirror, sFlow, etc.
- the third IP address corresponding to all currently available remote data centers can be found from the external storage database for subsequent related operations.
- the location of the local data center or remote data center or client can be obtained through the IP address. For example, suppose the first IP address is 123.125 .71.38, it indicates that the location of the local data center is Beijing, the second IP address of the client is 113.65.161.23, it indicates that the location of the client is Guangzhou, and the third IP address of a remote data center is 116.234.222.36, then Indicates that the location of the remote data center is Shanghai. Therefore, specifically, the distance between the local data center and all currently available remote data centers can be calculated based on the first IP address and the third IP address, and multiple corresponding data centers can be obtained.
- the first distance in the same way, can calculate the distance between the client and all currently available remote data centers based on the second IP address and the third IP address, obtain multiple corresponding second distances, and then calculate the first distance
- the sum of the second distance can obtain the link distance corresponding to the link where each available remote data center is located for subsequent related operations.
- step S13c4 when the first gateway is in an unavailable state and cannot normally obtain the required service resources from the local data center, it is done by switching to other available remote data centers and calling the corresponding backup link.
- the local data center is accessed, so the delay in the data transmission process is mainly affected by the two factors of the data transmission distance and the "busy" degree of the remote data center itself.
- the smaller the transmission distance the delay The shorter the time; the less the network traffic, the shorter the delay. Therefore, according to the link distance and network traffic combined with the preset weight value, the remote data center with the highest priority can be determined from all the currently available remote data centers.
- the preset weight value can be X: (link distance + network traffic), where X is a constant, so the network traffic corresponding to all currently available remote data centers and the link where each available remote data center is located After the corresponding link distance, the weight value corresponding to all currently available remote data centers can be calculated.
- the embodiment of the present application also proposes a device for realizing multiple activities of a gateway in different places, which is applied to a data center system.
- the data center system includes at least two data centers, and each data center is set in a different area, and each data center Connect to each other through a preset backup link, and the device includes:
- the receiving module 11 is configured to receive a request address sent by a client, where the request address includes a first IP address, and the first IP address corresponds to the local data center;
- the access module 12 is configured to access the first gateway of the local data center according to the first IP address, and determine whether the first gateway is in an available state;
- the determining module 13 is configured to determine the remote data center with the highest priority from the remaining available remote data centers according to a predetermined priority strategy when the first gateway is in an unavailable state;
- the calling module 14 is used to access the second gateway of the remote data center with the highest priority and call the backup link between the remote data center and the local data center with the highest priority so that the client can access the local data through the backup link Center’s business resources.
- an embodiment of the present application also provides a computer device.
- the computer device may be a server, and its internal structure may be as shown in FIG. 3.
- the computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the computer designed processor is used to provide calculation and control capabilities.
- the memory of the computer device includes a non-volatile storage medium and an internal memory.
- the non-volatile storage medium stores an operating system, a computer program, and a database.
- the memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
- the database of the computer equipment is used to store methods and programs for realizing multiple activities of the gateway in different places.
- the network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the method for realizing multiple liveness of the gateway in any of the above embodiments is realized.
- the embodiment of the present application also proposes a computer-readable storage medium.
- the computer-readable storage medium may be a volatile readable storage medium or a nonvolatile readable storage medium on which a computer program is stored.
- the method for realizing multiple active gateways in different places in any of the above embodiments is realized.
- Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory may include random access memory (RAM) or external cache memory.
- RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-rate data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
- SRAM static RAM
- DRAM dynamic RAM
- SDRAM synchronous DRAM
- SDRAM dual-rate data rate SDRAM
- SSRSDRAM dual-rate data rate SDRAM
- ESDRAM enhanced SDRAM
- SLDRAM synchronous Link (Synchlink) DRAM
- SLDRAM synchronous Link (Synchlink) DRAM
- Rambus direct RAM
- DRAM direct memory bus dynamic RAM
- RDRAM memory bus dynamic RAM
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请揭示了一种实现网关异地多活的方法、装置、计算机设备及存储介质,其中,实现网关异地多活的方法,包括:接收客户端发送的请求地址,其中,请求地址包括第一IP地址,第一IP地址与本地数据中心相对应;根据第一IP地址访问本地数据中心的第一网关,并判断第一网关是否处于可用状态;若第一网关处于不可用状态,则按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的异地数据中心;访问优先级最高的异地数据中心的第二网关,并调用优先级最高的异地数据中心与本地数据中心之间的备份链路。该实现网关异地多活的方法解决了当服务方所在机房的应用出现问题时,调用方无法访问服务方所在机房的业务资源的技术问题。
Description
本申请要求于2019年4月16日提交中国专利局、申请号为2019103058435,申请名称为“实现网关异地多活的方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及计算机技术领域,特别涉及一种实现网关异地多活的方法、装置、计算机设备及存储介质。
对于规模较大的企业,为了满足业务需求,往往需要在不同的地方分别搭建机房(相当于数据中心),每个机房的网络主要分为DMZ网络区域、SF网络区域和PTR网络区域,其中,DMZ网络区域是给互联网调用的,PTR网络区域是给专线调用的,SF网络区域是给内网调用的,现有技术中,为了有效路由,需要根据调用方所在区域和服务方所在机房来确定调用哪条链路,因此一旦服务方所在机房的应用(如主机、网络或者基础设施故障)出现问题而导致网关不可用,那么调用方将无法访问服务方所在机房的业务资源,例如,搭建有北京机房、上海机房和广州机房(即分别在北京、上海和广州三个地方搭建了机房),调用方所在区域为互联网,服务方所在机房为北京机房的SF网络区域,那么为了有效路由,需要调用的链路只能是北京机房的DMZ网络区域到北京机房的SF网络区域,因此一旦北京机房的应用出现了问题,那么调用方将无法访问到北京机房的业务资源。
因此,当服务方所在机房的应用出现问题时,如何使调用方仍能访问服务方所在机房的业务资源,是本领域技术人员亟待解决的技术问题。
针对现有技术不足,本申请提出一种实现网关异地多活的方法、装置、计算机设备及存储介质,旨在解决当服务方所在机房的应用出现问题时,调用方无法访问服务方所在机房的业务资源的问题。
本申请提出的技术方案是:
本申请提出一种实现网关异地多活的方法,应用于数据中心系统,数据中心系统至少包括两个数据中心,各个数据中心分别设置在不同的地区,且各个数据中心之间通过预设的备份链路相互连通,方法包括:
接收客户端发送的请求地址,其中,请求地址包括第一IP地址,第一IP地址与本地数据中心相对应;
根据第一IP地址访问本地数据中心的第一网关,并判断第一网关是否处于可用状态;
若第一网关处于不可用状态,则按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的异地数据中心;
访问优先级最高的异地数据中心的第二网关,并调用优先级最高的异地数据中心与本地数据中心之间的备份链路,以使客户端通过备份链路访问本地数据中心的业务资源。
本申请还提出一种实现网关异地多活的装置,应用于数据中心系统,数据中心系统至少包括两个数据中心,各个数据中心分别设置在不同的地区,且各个数据中心之间通过预设的备份链路相互连通,装置包括:
接收模块,用于接收客户端发送的请求地址,其中,请求地址包括第一IP地址,第一IP地址与本地数据中心相对应;
访问模块,用于根据第一IP地址访问本地数据中心的第一网关,并判断第一网关是否处于可用状态;
确定模块,用于当第一网关处于不可用状态时,按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的异地数据中心;
调用模块,用于访问优先级最高的异地数据中心的第二网关,并调用优先级最高的异地数据中心与本地数据中心之间的备份链路,以使客户端通过备份链路访问本地数据中心的业务资源。
本申请还提出一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现前述的实现网关异地多活的方法的步骤。
本申请还提出一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现前述的实现网关异地多活的方法的步骤。
本申请实施例提供的实现网关异地多活的方法通过在各个数据中心之间各配置一条备份链路,使得各个数据中心之间可相互连通,当一个数据中心出现故障而使得客户端无法正常访问该数据中心的业务资源时,可通过切换到其它可用的数据中心并调用相应的备份链路来对该数据中心进行访问,从而使得多个数据中心之间能够相互备用,实现了异地多活,解决了当服务方所在机房的应用出现问题时,调用方无法访问服务方所在机房的业务资源的技术问题。
图1是本申请一实施中实现网关异地多活的方法的流程示意图;
图2是本申请一实施中实现网关异地多活的装置的结构示意图;
图3是本申请一实施中计算机设备的结构示意图。
参照图1,本申请实施例提出一种实现网关异地多活的方法,应用于数据中心系统,数据中心系统至少包括两个数据中心,各个数据中心分别设置在不同的地区,且各个数据中心之间通过预设的备份链路相互连通,该方法可以由实现网关异地多活的装置来执行,该实现网关异地多活的装置可由硬件和/或软件组成,且一般可集成在所有包含异地多活架构设计功能的智能终端设备中,该方法包括:
S11,接收客户端发送的请求地址,其中,请求地址包括第一IP地址,第一IP地址与本地数据中心相对应;
S12,根据第一IP地址访问本地数据中心的第一网关,并判断第一网关是否处于可用状态;
若第一网关处于不可用状态,则执行S13,按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的异地数据中心;
S14,访问优先级最高的异地数据中心的第二网关,并调用优先级最高的异地数据中心与本地数据中心之间的备份链路,以使客户端通过备份链路访问本地数据中心的业务资源。
在上述步骤S11中,本地和异地是相对而言的,其根据用户的实际访问需求而定,例如用户需要访问某个数据中心的业务资源,则此时该数据中心可看作是本地数据中心,而其余数据中心可看作是异地数据中心,这些数据中心可根据业务需求部署在不同的地区,比如北京、上海、广州等,其中,不同的数据中心存储有不同的业务资源,不同的数据中心均有其对应的IP地址,用户可根据自身的业务需求选择需要访问的数据中心,具体地,例如用户需要访问某个数据中心(此时,该数据中心可看作是本地数据中心)的业务资源,则用户可通过客户端(如Web浏览器)向上述装置(即实现网关异地多活的装置)发送一个请求地址(如通过在Web浏览器的地址栏中输入请求地址),其中,该请求地址中含有与该数据中心相对应的IP地址(即第一IP地址),以便对本地数据中心进行访问。
在上述步骤S12中,具体地,接收到客户端发送的请求地址后,上述装置根据请求地址中的第一IP地址可获知客户端需要访问本地数据中心,而要访问本地数据中心的业务资源则需要通过访问本地数据中心的第一网关来实现,因此需要先检查第一网关是否可用,具体地,上述装置根据第一IP地址找到本地数据中心的第一网关,进而对第一网关进行访问(如向第一网关发出一个访问请求),若在访问的过程中,第一网关未对此(即第一网关的访问请求)做出响应,则表明第一网关处于不可用状态,进而无法访问本地数据中心的业务资源,此时可进入步骤S13执行相关操作;而若在访问的过程中,第一网关对此做出了响应,则表明第一网关处于可用状态,此时客户端可通过第一网关直接访问本地数据中心的业务资源,从中获取到所需的业务资源。
在上述步骤S13中,由于各个数据中心之间通过事先设置的备份链路相互连通,因此当第一网关处于不可用状态而无法正常从本地数据中心中获取到所需的业务资源时,可通过切换到其它可用的异地数据中心并调用相应的备份链路来对本地数据中心进行访问,而由于可用的异地数据中心可能存在多个,因此需要从中先挑选出优先级最高的异地数据中心,另外,由于本地数据中心和异地数据中心处于不同的地区,因此数据的传输会发生延迟,因此可选择延时最短的异地数据中心作为优先级最高的异地数据中心。
在上述步骤S14中,由于异地数据中心存储的业务资源与本地数据中心存储的业务资源并不相同,因此为了保证客户端能正确获取到本地数据中心的业务资源而不是异地数据中心的业务资源,因此需要保证本地数据中心的数据与异地数据中心的数据要一致,而由于客户端在获取数据中心的业务资源时,具体是通过网关来访问数据中心的内存数据库(如Redis),进而通过读取内存数据库中的静态数据来获取到所需的业务资源的,因此可事先将特定的静态数据分别写入各个数据中心对应的内存数据库以及预设的外存数据库(如oracle)中,然后通过做静态数据对账来保证各个内存数据库中的静态数据与外存数据库的静态数据一致,从而可保证本地数据中心的静态数据与异地数据中心的静态数据是一致的;在本步骤中,具体地,当确定出优先级最高的异地数据中心时,上述装置可通过域名解析(DNS)调度系统将第一IP地址切换为与优先级最高的异地数据中心相对应的IP地址,进而根据该IP地址找到优先级最高的异地数据中心的第二网关并进行访问,访问第二网关成功后,进而通过调用该优先级最高的异地数据中心与本地数据中心之间的备份链路,使得客户端可通过该备份链路正常访问本地数据中心的业务资源,从而实现异地多活,解决了当服务方所在机房(即本地数据中心)的应用出现问题时,调用方无法访问服务方所在机房的业务资源的技术问题。
在本实施例中,该实现网关异地多活的方法通过在各个数据中心之间各配置一条备份链路,使得各个数据中心之间可相互连通,同时根据备份链路的配置,将一个数据中心的静态数据放在备份链路对应的内存数据库中,使得相互连通的两个数据中心之间可保证数据的一致性,当一个数据中心出现故障而使得客户端无法正常访问该数据中心的业务资源时,可通过切换到其它可用的数据中心并调用相应的备份链路来对该数据中心进行访问,从而使得多个数据中心之间能够相互备用,实现了异地多活,解决了当服务方所在机房的应用出现问题时,调用方无法访问服务方所在机房的业务资源的技术问题。
在一个优选的实施例中,接收客户端发送的请求地址的步骤之前,还包括:
S09,接收客户端发送的身份信息和访问令牌请求,并判断身份信息是否合法;
若身份信息合法,则执行S10,响应访问令牌请求,生成访问令牌信息并将访问令牌信息发送至客户端。
在本实施例中,用户需要经过上述装置的授权方可访问各个数据中心的业务资源,具体地,在通过客户端获取本地数据中心的业务资源之前,用户需要注册相应的账号(如在认证服务器中注册相应的账号),账号注册完成后,利用该账号和对应的账号密码进行登录(如登录认证服务器),此时上述装置可通过认证服务器验证该账号对应的账号密码是否正确,若正确,则可判定当前客户端发送的身份信息是合法的,此时上述装置可响应客户端发送的访问令牌请求,通过认证服务器生成一个令牌信息并返回给客户端,客户端接收该访问令牌信息并缓存至本地文件夹中,这样后续客户端可凭借该令牌信息访问本地数据中心指定的业务资源,这样,通过设置权限,使得只有具有令牌信息的客户端才能访问本地数据中心指定的业务资源,从而有利于提高数据的安全性,防止本地数据中心的业务资源被盗用。
在一个优选的实施例中,请求地址还包括访问令牌信息,访问优先级最高的异地数据中心的第二网关,并调用优先级最高的异地数据中心与本地数据中心之间的备份链路的步骤之前,还包括:
S14a,检验访问令牌信息是否合法;
若访问令牌信息合法,则执行上述步骤S14,访问优先级最高的异地数据中心的第二网关,并调用优先级最高的异地数据中心与本地数据中心之间的备份链路,以使客户端通过备份链路访问本地数据中心的业务资源。
在本实施例中,通过检验令牌信息是否合法可判断当前客户端是否具有访问本地数据中心的业务资源的权限,从而通过设置权限,有利于提高数据的安全性,防止本地数据中心的业务资源被盗用,其中,访问令牌信息附带有时间戳(即在生成令牌信息时可为令牌信息添加一个时间戳),具体地,可通过以下方式检验访问令牌信息是否合法:由于时间戳具有有效期,因此可先通过检验时间戳是否过期来判断访问令牌信息是否合法,若时间戳已过期,则可据此判定访问令牌信息不合法;若时间戳未过期,则进一步将该访问令牌信息与预存于外存数据库中的多个访问令牌信息进行比较,判断是否存在匹配项,若存在匹配项,则可据此判定该访问令牌信息合法,若不存在匹配项,则可据此判定该访问令牌信息不合法;若该访问令牌信息合法,则说明当前客户端具有访问本地数据中心的业务资源的权限,此时可执行上述步骤S14;若该访问令牌信息不合法,则进入S14b执行相关操作。
在一个优选的实施例中,上述检验访问令牌信息是否合法的步骤之后,还包括:
若访问令牌信息不合法,则执行S14b,向客户端发送身份验证失败的提示信息,以提示用户重新输入身份信息;
S14c,接收客户端响应提示信息而返回的身份信息,并判断身份信息是否合法;
若身份信息合法,则执行S14d,重新生成新的令牌信息并发送至客户端,并访问优先级最高的异地数据中心的第二网关,并调用优先级最高的异地数据中心与本地数据中心之间的备份链路,以使客户端通过备份链路访问本地数据中心的业务资源。
在本实施例中,若当前客户端提供的访问令牌信息不合法,则说明当前客户端不具备访问本地数据中心的业务资源的权限,因此需要重新对当前用户进行身份验证,具体地,向客户端发送身份验证失败的提示信息,提示用户重新输入账号和对应的账号密码,然后通过认证服务器验证该账号对应的账号密码是否正确,若正确,则可判定当前客户端返回的身份信息是合法的,同时,也说明了造成令牌信息不合法的原因很可能是因为时间戳过期了,此时上述装置可通过认证服务器重新生成一个新的令牌信息并发送给客户端,同时,访问优先级最高的异地数据中心的第二网关,并调用优先级最高的异地数据中心与本地数据中心之间的备份链路,以使客户端通过备份链路访问本地数据中心的业务资源。
在一个优选的实施例中,判断第一网关是否处于可用状态的步骤,包括:
S121,间隔预设周期向第一网关发送心跳包,并判断预设时间内是否接收到第一网关响应心跳包而返回的反馈信息;
若预设时间内未接收到第一网关返回的反馈信息,则执行S122,判定第一网关处于不可用状态。
在本实施例中,具体地,上述装置可通过DNS调度系统间隔预设周期(如每隔5秒钟、10秒钟、15秒钟等,预设周期可根据实际情况而定,对此不作具体的限制)向本地数据中心的第一网关发送一个心跳包,根据心跳机制原理,若第一网关处于可用状态,则当第一网关接收到该心跳包时,则第一网关会响应该心跳包而回复一个反馈信息给DNS调度系统,而若第一网关处于不可用状态,则第一网关不会接收到该心跳包,进而也不会对该心跳包做出响应,因此,若在预设时间(如10秒、20秒、30秒等,预设时间可根据实际情况而定,对此不作具体的限制)内DNS调度系统未接收到第一网关返回的反馈信息,则上述装置可据此判定第一网关处于不可用状态,因此,利用心跳机制原理,通过DNS调度系统定时向第一网关发送心跳包的方式,可准确判断本地数据中心的第一网关是否处于可用状态。
在一个优选的实施例中,请求地址还包括对应客户端的第二IP地址,按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的异地数据中心的步骤,包括:
S13a1,获取其余异地数据中心对应的网关状态,并根据网关状态确定出当前所有可用的异地数据中心;
S13a2,获取当前所有可用的异地数据中心对应的第三IP地址,并根据第一IP地址和第三IP地址计算本地数据中心与当前所有可用的异地数据中心之间的距离,获得多个对应的第一距离,以及,根据第二IP地址和第三IP地址计算客户端与当前所有可用的异地数据中心之间的距离,获得多个对应的第二距离;
S13a3,根据第一距离和第二距离计算客户端访问业务资源所经链路的距离,获得多个对应的链路距离;
S13a4,从多个链路距离中挑选出距离最短的链路距离,并将距离最短的链路距离对应的异地数据中心确定为优先级最高的异地数据中心。
在上述步骤S13a1中,上述网关状态包括网关处于可用状态和网关处于不可用状态,具体地,可从外存数据库中查找出其余异地数据中心对应的IP地址,并根据查找到的IP地址对其余异地数据中心的网关进行访问,进而通过DNS调度系统定时向其余异地数据中心对应的网关发送心跳包的方式来获取其余异地数据中心对应的网关状态,即利用心跳机制原理,DNS调度系统可获知哪些异地数据中心的网关处于可用状态,哪些异地数据中心的网关处于不可用状态,并对此进行记录,因此可通过读取DNS调度系统中的记录来获取到其余异地数据中心对应的网关状态,进而可根据获取到的网关状态确定出当前所有可用的异地数据中心。
在上述步骤S13a2中,由于每个数据中心或客户端都有其对应的IP地址,因此通过IP地址可获知本地数据中心或异地数据中心或客户端的所在位置,例如,假设第一IP地址为123.125.71.38,则表明本地数据中心的所在位置为北京,客户端的第二IP地址为113.65.161.23,则表明客户端的所在位置为广州,某个异地数据中心的第三IP地址为116.234.222.36,则表明该异地数据中心的所在位置为上海,因此,具体地,当根据网关状态确定出当前所有可用的异地数据中心时,可从外存数据库中查找出当前所有可用的异地数据中心对应的第三IP地址,进而根据第一IP地址和第三IP地址可计算出本地数据中心与当前所有可用的异地数据中心之间的距离,获得多个对应的第一距离,同理,根据第二IP地址和第三IP地址可计算出客户端与当前所有可用的异地数据中心之间的距离,获得多个对应的第二距离。
在上述步骤S13a3中,由于当第一网关处于不可用状态而无法正常从本地数据中心中获取到所需的业务资源时,是通过切换到其它可用的异地数据中心并调用相应的备份链路来对本地数据中心进行访问的,因此客户端访问本地数据中心的业务资源所经的链路为:客户端-可用的异地数据中心-本地数据中心,而由于可用的异地数据中心可能存在多个,因此可能存在多条可选的链路供客户端访问本地数据中心的业务资源,因此需要从中挑选出合适的链路,具体地,通过计算第一距离和第二距离之和可获得各个可用的异地数据中心所在链路对应的链路距离,以便进入步骤S13a4执行相关操作。
在上述步骤S13a4中,由于数据在传输的过程中发生的延迟会受到传输距离的影响,一般地,传输距离越大,延时越长,因此链路距离越短,延时也就越短,因此,通过计算获得各个可用的异地数据中心所在链路对应的链路距离后,可从多个链路距离中挑选出距离最短的链路距离,并将距离最短的链路距离对应的异地数据中心确定为优先级最高的异地数据中心,这样可最大限度地缩短数据的延时,提高用户体验。
在另一个优选的实施例中,按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的异地数据中心的步骤,包括:
S13b1,获取其余异地数据中心对应的网络流量,并根据网络流量确定出当前所有可用的异地数据中心;
S13b2,根据网络流量,从当前所有可用的异地数据中心中挑选出网络流量最少的异地数据中心;
S13b3,将网络流量最少的异地数据中心确定为优先级最高的异地数据中心。
在上述步骤S13b1中,由于业务资源的获取需要经过网关,因此通过网络流量的监控可间接获知哪些异地数据中心的网关处于可用状态,哪些异地数据中心的网关处于不可用状态,进而据此确定出当前所有可用的异地数据中心,具体地,可通过网络流量监控技术(如NetStream、Mirror、sFlow等)获取其余异地数据中心对应的网络流量,若某个异地数据中心对应的网络流量为零,则可据此判定该异地数据中心不可用,而若某个异地数据中心对应的网络流量不为零(即存在网络流量),则可据此判定该异地数据中心可用。
在上述步骤S13b2中,当确定出当前所有可用的异地数据中心时,则可进一步根据获取到的网络流量,从当前所有可用的异地数据中心中挑选出网络流量最少的异地数据中心,以便进入步骤S13b3执行相关操作。
在上述步骤S13b3中,由于当第一网关处于不可用状态而无法正常从本地数据中心中获取到所需的业务资源时,是通过切换到其它可用的异地数据中心并调用相应的备份链路来对本地数据中心进行访问的,因此数据在传输的过程中发生的延迟会受到异地数据中心自身的“繁忙”程度的影响,一般地,网络流量越多,表明访问量越大,数据中心的服务也就越“繁忙”,进而引起的数据延时就越大,因此网络流量越少,延时也就越短,因此可将当前可用的网络流量最少的异地数据中心确定为优先级最高的异地数据中心,这样可最大限度地缩短数据的延时,提高用户体验。
在又一个优选的实施例中,请求地址还包括对应客户端的第二IP地址,按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的异地数据中心的步骤,包括:
S13c1,获取其余异地数据中心对应的网关状态,并根据网关状态确定出当前所有可用的异地数据中心;
S13c2,获取当前所有可用的异地数据中心对应的网络流量和第三IP地址;
S13c3,根据第一IP地址和第三IP地址计算本地数据中心与当前所有可用的异地数据中心之间的距离,获得多个对应的第一距离,以及,根据第二IP地址和第三IP地址计算客户端与当前所有可用的异地数据中心之间的距离,获得多个对应的第二距离,并根据第一距离和第二距离计算客户端访问业务资源所经链路的距离,获得多个对应的链路距离;
S13c4,根据链路距离和网络流量结合预设的权重值,从当前所有可用的异地数据中心中确定出优先级最高的异地数据中心。
在上述步骤S13c1中,上述网关状态包括网关处于可用状态和网关处于不可用状态,具体地,可从外存数据库中查找出其余异地数据中心对应的IP地址,并根据查找到的IP地址对其余异地数据中心的网关进行访问,进而通过DNS调度系统定时向其余异地数据中心对应的网关发送心跳包的方式来获取其余异地数据中心对应的网关状态,即利用心跳机制原理,DNS调度系统可获知哪些异地数据中心的网关处于可用状态,哪些异地数据中心的网关处于不可用状态,并对此进行记录,因此可通过读取DNS调度系统中的记录来获取到其余异地数据中心对应的网关状态,进而可根据获取到的网关状态确定出当前所有可用的异地数据中心。
在上述步骤S13c2中,具体地,当根据网关状态确定出当前所有可用的异地数据中心时,可通过网络流量监控技术(如NetStream、Mirror、sFlow等)获取当前所有可用的异地数据中心对应的网络流量,同时,可从外存数据库中查找出当前所有可用的异地数据中心对应的第三IP地址,以便后续进行相关操作。
在上述步骤S13c3中,由于每个数据中心或客户端都有其对应的IP地址,因此通过IP地址可获知本地数据中心或异地数据中心或客户端的所在位置,例如,假设第一IP地址为123.125.71.38,则表明本地数据中心的所在位置为北京,客户端的第二IP地址为113.65.161.23,则表明客户端的所在位置为广州,某个异地数据中心的第三IP地址为116.234.222.36,则表明该异地数据中心的所在位置为上海,因此,具体地,根据第一IP地址和第三IP地址可计算出本地数据中心与当前所有可用的异地数据中心之间的距离,获得多个对应的第一距离,同理,根据第二IP地址和第三IP地址可计算出客户端与当前所有可用的异地数据中心之间的距离,获得多个对应的第二距离,进而通过计算第一距离和第二距离之和可获得各个可用的异地数据中心所在链路对应的链路距离,以便后续进行相关操作。
在上述步骤S13c4中,由于当第一网关处于不可用状态而无法正常从本地数据中心中获取到所需的业务资源时,是通过切换到其它可用的异地数据中心并调用相应的备份链路来对本地数据中心进行访问的,因此数据在传输的过程中发生的延迟主要受到数据的传输距离和异地数据中心自身的“繁忙”程度这两个因素的影响,一般地,传输距离越小,延时越短;网络流量越少,延时越短,因此可根据链路距离和网络流量结合预设的权重值,从当前所有可用的异地数据中心中确定出优先级最高的异地数据中心,具体地,预设的权重值可为X:(链路距离+网络流量),其中,X为常数,因此,获得当前所有可用的异地数据中心对应的网络流量以及各个可用的异地数据中心所在链路对应的链路距离后,可计算出当前所有可用的异地数据中心对应的权重值,权重值越大,则数据的延时就越短,因此可将权重值最大的异地数据中心确定为优先级最高的异地数据中心,这样既可更准确地从其余可用的异地数据中心中确定出优先级最高的异地数据中心,又可最大限度地缩短数据的延时,提高用户体验。
参照图2,本申请实施例还提出一种实现网关异地多活的装置,应用于数据中心系统,数据中心系统至少包括两个数据中心,各个数据中心分别设置在不同的地区,且各个数据中心之间通过预设的备份链路相互连通,该装置包括:
接收模块11,用于接收客户端发送的请求地址,其中,请求地址包括第一IP地址,第一IP地址与本地数据中心相对应;
访问模块12,用于根据第一IP地址访问本地数据中心的第一网关,并判断第一网关是否处于可用状态;
确定模块13,用于当第一网关处于不可用状态时,按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的异地数据中心;
调用模块14,用于访问优先级最高的异地数据中心的第二网关,并调用优先级最高的异地数据中心与本地数据中心之间的备份链路,以使客户端通过备份链路访问本地数据中心的业务资源。
参照图3,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图3所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储实现网关异地多活的方法程序等。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时实现上述任一实施例中的实现网关异地多活的方法。
本申请实施例还提出一种计算机可读存储介质,该计算机可读存储介质可以是易失性可读存储介质,也可以是非易失性可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述任一实施例中的实现网关异地多活的方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储与一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM通过多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM(SSRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。
Claims (20)
- 一种实现网关异地多活的方法,其特征在于,应用于数据中心系统,所述数据中心系统至少包括两个数据中心,各个所述数据中心分别设置在不同的地区,且各个所述数据中心之间通过预设的备份链路相互连通,所述方法包括:接收客户端发送的请求地址,其中,所述请求地址包括第一IP地址,所述第一IP地址与本地数据中心相对应;根据所述第一IP地址访问所述本地数据中心的第一网关,并判断所述第一网关是否处于可用状态;若所述第一网关处于不可用状态,则按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的所述异地数据中心;访问优先级最高的所述异地数据中心的第二网关,并调用优先级最高的所述异地数据中心与所述本地数据中心之间的所述备份链路,以使所述客户端通过所述备份链路访问所述本地数据中心的业务资源。
- 根据权利要求1所述的实现网关异地多活的方法,其特征在于,所述接收客户端发送的请求地址的步骤之前,还包括:接收所述客户端发送的身份信息和访问令牌请求,并判断所述身份信息是否合法;若所述身份信息合法,则响应所述访问令牌请求,生成访问令牌信息并将所述访问令牌信息发送至所述客户端。
- 根据权利要求2所述的实现网关异地多活的方法,其特征在于,所述请求地址还包括所述访问令牌信息,所述访问优先级最高的所述异地数据中心的第二网关,并调用优先级最高的所述异地数据中心与所述本地数据中心之间的所述备份链路的步骤之前,还包括:检验所述访问令牌信息是否合法;若所述访问令牌信息合法,则执行所述访问优先级最高的所述异地数据中心的第二网关,并调用优先级最高的所述异地数据中心与所述本地数据中心之间的所述备份链路,以使所述客户端通过所述备份链路访问所述本地数据中心的业务资源的步骤。
- 根据权利要求1所述的实现网关异地多活的方法,其特征在于,所述判断所述第一网关是否处于可用状态的步骤,包括:间隔预设周期向所述第一网关发送心跳包,并判断预设时间内是否接收到所述第一网关响应所述心跳包而返回的反馈信息;若预设时间内未接收到所述第一网关返回的所述反馈信息,则判定所述第一网关处于不可用状态。
- 根据权利要求1至4中任一项所述的实现网关异地多活的方法,其特征在于,所述请求地址还包括对应所述客户端的第二IP地址,所述按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的所述异地数据中心的步骤,包括:获取其余所述异地数据中心对应的网关状态,并根据所述网关状态确定出当前所有可用的所述异地数据中心;获取当前所有可用的所述异地数据中心对应的第三IP地址,并根据所述第一IP地址和所述第三IP地址计算所述本地数据中心与当前所有可用的所述异地数据中心之间的距离,获得多个对应的第一距离,以及,根据所述第二IP地址和所述第三IP地址计算所述客户端与当前所有可用的所述异地数据中心之间的距离,获得多个对应的第二距离;根据所述第一距离和所述第二距离计算所述客户端访问所述业务资源所经链路的距离,获得多个对应的链路距离;从多个所述链路距离中挑选出距离最短的所述链路距离,并将距离最短的所述链路距离对应的所述异地数据中心确定为优先级最高的所述异地数据中心。
- 根据权利要求1至4中任一项所述的实现网关异地多活的方法,其特征在于,所述按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的所述异地数据中心的步骤,包括:获取其余所述异地数据中心对应的网络流量,并根据所述网络流量确定出当前所有可用的所述异地数据中心;根据所述网络流量,从当前所有可用的所述异地数据中心中挑选出所述网络流量最少的所述异地数据中心;将所述网络流量最少的所述异地数据中心确定为优先级最高的所述异地数据中心。
- 根据权利要求1至4中任一项所述的实现网关异地多活的方法,其特征在于,所述请求地址还包括对应所述客户端的第二IP地址,所述按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的所述异地数据中心的步骤,包括:获取其余所述异地数据中心对应的网关状态,并根据所述网关状态确定出当前所有可用的所述异地数据中心;获取当前所有可用的所述异地数据中心对应的网络流量和第三IP地址;根据所述第一IP地址和所述第三IP地址计算所述本地数据中心与当前所有可用的所述异地数据中心之间的距离,获得多个对应的第一距离,以及,根据所述第二IP地址和所述第三IP地址计算所述客户端与当前所有可用的所述异地数据中心之间的距离,获得多个对应的第二距离,并根据所述第一距离和所述第二距离计算所述客户端访问所述业务资源所经链路的距离,获得多个对应的链路距离;根据所述链路距离和所述网络流量结合预设的权重值,从当前所有可用的所述异地数据中心中确定出优先级最高的所述异地数据中心。
- 一种实现网关异地多活的装置,其特征在于,应用于数据中心系统,所述数据中心系统至少包括两个数据中心,各个所述数据中心分别设置在不同的地区,且各个所述数据中心之间通过预设的备份链路相互连通,所述装置包括:接收模块,用于接收客户端发送的请求地址,其中,所述请求地址包括第一IP地址,所述第一IP地址与本地数据中心相对应;访问模块,用于根据所述第一IP地址访问所述本地数据中心的第一网关,并判断所述第一网关是否处于可用状态;确定模块,用于当所述第一网关处于不可用状态时,按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的所述异地数据中心;调用模块,用于访问优先级最高的所述异地数据中心的第二网关,并调用优先级最高的所述异地数据中心与所述本地数据中心之间的所述备份链路,以使所述客户端通过所述备份链路访问所述本地数据中心的业务资源。
- 根据权利要求8所述的实现网关异地多活的装置,其特征在于,所述装置还包括:第一判断模块,用于接收所述客户端发送的身份信息和访问令牌请求,并判断所述身份信息是否合法;生成模块,用于若所述身份信息合法,则响应所述访问令牌请求,生成访问令牌信息并将所述访问令牌信息发送至所述客户端。
- 根据权利要求9所述的实现网关异地多活的装置,其特征在于,所述装置还包括:检验模块,用于检验所述访问令牌信息是否合法;发送模块,用于当访问令牌信息不合法时,向客户端发送身份验证失败的提示信息,以提示用户重新输入身份信息;第二判断模块,用于接收客户端响应提示信息而返回的身份信息,并判断身份信息是否合法;执行模块,用于当身份信息合法时,重新生成新的令牌信息并发送至客户端,并访问优先级最高的异地数据中心的第二网关,并调用优先级最高的异地数据中心与本地数据中心之间的备份链路,以使客户端通过备份链路访问本地数据中心的业务资源。
- 根据权利要求8所述的实现网关异地多活的装置,其特征在于,所述判断所述第一网关是否处于可用状态的步骤,包括:间隔预设周期向所述第一网关发送心跳包,并判断预设时间内是否接收到所述第一网关响应所述心跳包而返回的反馈信息;若预设时间内未接收到所述第一网关返回的所述反馈信息,则判定所述第一网关处于不可用状态。
- 根据权利要求8至11中任一项所述的实现网关异地多活的装置,其特征在于,所述请求地址还包括对应所述客户端的第二IP地址,所述确定模块包括:第一获取单元,用于获取其余所述异地数据中心对应的网关状态,并根据所述网关状态确定出当前所有可用的所述异地数据中心;第二获取单元,用于获取当前所有可用的所述异地数据中心对应的第三IP地址,并根据所述第一IP地址和所述第三IP地址计算所述本地数据中心与当前所有可用的所述异地数据中心之间的距离,获得多个对应的第一距离,以及,根据所述第二IP地址和所述第三IP地址计算所述客户端与当前所有可用的所述异地数据中心之间的距离,获得多个对应的第二距离;第一计算单元,用于根据所述第一距离和所述第二距离计算所述客户端访问所述业务资源所经链路的距离,获得多个对应的链路距离;第一确定单元,用于从多个所述链路距离中挑选出距离最短的所述链路距离,并将距离最短的所述链路距离对应的所述异地数据中心确定为优先级最高的所述异地数据中心。
- 根据权利要求8至11中任一项所述的实现网关异地多活的装置,其特征在于,所述确定模块包括:第三获取单元,用于获取其余所述异地数据中心对应的网络流量,并根据所述网络流量确定出当前所有可用的所述异地数据中心;挑选单元,用于根据所述网络流量,从当前所有可用的所述异地数据中心中挑选出所述网络流量最少的所述异地数据中心;第二确定单元,用于将所述网络流量最少的所述异地数据中心确定为优先级最高的所述异地数据中心。
- 根据权利要求8至11中任一项所述的实现网关异地多活的装置,其特征在于,所述请求地址还包括对应所述客户端的第二IP地址,所述确定模块包括:第四获取单元,用于获取其余所述异地数据中心对应的网关状态,并根据所述网关状态确定出当前所有可用的所述异地数据中心;第五获取单元,用于获取当前所有可用的所述异地数据中心对应的网络流量和第三IP地址;第二计算单元,用于根据所述第一IP地址和所述第三IP地址计算所述本地数据中心与当前所有可用的所述异地数据中心之间的距离,获得多个对应的第一距离,以及,根据所述第二IP地址和所述第三IP地址计算所述客户端与当前所有可用的所述异地数据中心之间的距离,获得多个对应的第二距离,并根据所述第一距离和所述第二距离计算所述客户端访问所述业务资源所经链路的距离,获得多个对应的链路距离;第三确定单元,用于根据所述链路距离和所述网络流量结合预设的权重值,从当前所有可用的所述异地数据中心中确定出优先级最高的所述异地数据中心。
- 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现实现网关异地多活的方法的步骤,所述方法包括:接收客户端发送的请求地址,其中,所述请求地址包括第一IP地址,所述第一IP地址与本地数据中心相对应;根据所述第一IP地址访问所述本地数据中心的第一网关,并判断所述第一网关是否处于可用状态;若所述第一网关处于不可用状态,则按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的所述异地数据中心;访问优先级最高的所述异地数据中心的第二网关,并调用优先级最高的所述异地数据中心与所述本地数据中心之间的所述备份链路,以使所述客户端通过所述备份链路访问所述本地数据中心的业务资源。
- 根据权利要求15所述的计算机设备,其特征在于,所述接收客户端发送的请求地址的步骤之前,还包括:接收所述客户端发送的身份信息和访问令牌请求,并判断所述身份信息是否合法;若所述身份信息合法,则响应所述访问令牌请求,生成访问令牌信息并将所述访问令牌信息发送至所述客户端。
- 根据权利要求16所述的计算机设备,其特征在于,所述请求地址还包括所述访问令牌信息,所述访问优先级最高的所述异地数据中心的第二网关,并调用优先级最高的所述异地数据中心与所述本地数据中心之间的所述备份链路的步骤之前,还包括:检验所述访问令牌信息是否合法;若所述访问令牌信息合法,则执行所述访问优先级最高的所述异地数据中心的第二网关,并调用优先级最高的所述异地数据中心与所述本地数据中心之间的所述备份链路,以使所述客户端通过所述备份链路访问所述本地数据中心的业务资源的步骤。
- 根据权利要求15所述的计算机设备,其特征在于,所述判断所述第一网关是否处于可用状态的步骤,包括:间隔预设周期向所述第一网关发送心跳包,并判断预设时间内是否接收到所述第一网关响应所述心跳包而返回的反馈信息;若预设时间内未接收到所述第一网关返回的所述反馈信息,则判定所述第一网关处于不可用状态。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的实现网关异地多活的方法的步骤,所述方法包括:接收客户端发送的请求地址,其中,所述请求地址包括第一IP地址,所述第一IP地址与本地数据中心相对应;根据所述第一IP地址访问所述本地数据中心的第一网关,并判断所述第一网关是否处于可用状态;若所述第一网关处于不可用状态,则按照预定的优先级策略从其余可用的异地数据中心中确定出优先级最高的所述异地数据中心;访问优先级最高的所述异地数据中心的第二网关,并调用优先级最高的所述异地数据中心与所述本地数据中心之间的所述备份链路,以使所述客户端通过所述备份链路访问所述本地数据中心的业务资源。
- 根据权利要求19所述的计算机可读存储介质,其特征在于,所述接收客户端发送的请求地址的步骤之前,还包括:接收所述客户端发送的身份信息和访问令牌请求,并判断所述身份信息是否合法;若所述身份信息合法,则响应所述访问令牌请求,生成访问令牌信息并将所述访问令牌信息发送至所述客户端。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910305843.5 | 2019-04-16 | ||
| CN201910305843.5A CN110177007B (zh) | 2019-04-16 | 2019-04-16 | 实现网关异地多活的方法、装置、计算机设备及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020211364A1 true WO2020211364A1 (zh) | 2020-10-22 |
Family
ID=67690011
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/118171 Ceased WO2020211364A1 (zh) | 2019-04-16 | 2019-11-13 | 实现网关异地多活的方法、装置、计算机设备及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110177007B (zh) |
| WO (1) | WO2020211364A1 (zh) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113037861A (zh) * | 2021-03-25 | 2021-06-25 | 北京奇艺世纪科技有限公司 | 服务节点连接方法及装置 |
| CN114327865A (zh) * | 2021-11-30 | 2022-04-12 | 浪潮电子信息产业股份有限公司 | 一种网卡通讯方法、系统、装置及计算机可读存储介质 |
| CN114745446A (zh) * | 2022-05-18 | 2022-07-12 | 上海钧正网络科技有限公司 | 一种基于异地多活场景的路由方法、装置、电子设备及存储介质 |
| CN114760615A (zh) * | 2022-04-21 | 2022-07-15 | 青岛海尔科技有限公司 | 蓝牙设备的连接建立方法、装置、设备和存储介质 |
| CN114785465A (zh) * | 2022-04-26 | 2022-07-22 | 上海识装信息科技有限公司 | 一种异地多活的实现方法、服务器及存储介质 |
Families Citing this family (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110177007B (zh) * | 2019-04-16 | 2022-03-18 | 平安科技(深圳)有限公司 | 实现网关异地多活的方法、装置、计算机设备及存储介质 |
| CN110809064B (zh) * | 2019-09-05 | 2022-12-16 | 连连银通电子支付有限公司 | 一种ip地址切换方法、装置及系统 |
| CN112565327B (zh) * | 2019-09-26 | 2022-09-30 | 广州虎牙科技有限公司 | 访问流量转发方法、集群管理方法及相关装置 |
| CN110635950A (zh) * | 2019-09-30 | 2019-12-31 | 深圳供电局有限公司 | 一种双数据中心容灾系统 |
| CN110855808B (zh) * | 2019-10-11 | 2022-09-16 | 新浪网技术(中国)有限公司 | 一种基于分布式监控策略的域名自动切换方法、装置及系统 |
| CN110868450B (zh) * | 2019-10-15 | 2022-09-23 | 平安科技(深圳)有限公司 | 双机房多入口会话保持方法、系统、装置及存储介质 |
| CN111245943A (zh) * | 2020-01-14 | 2020-06-05 | 山东汇贸电子口岸有限公司 | 一种Redis集群获取可访问IP地址的方法 |
| CN111526038B (zh) * | 2020-03-26 | 2023-01-20 | 口碑(上海)信息技术有限公司 | 业务请求分发方法、装置、计算机设备及可读存储介质 |
| CN112039710B (zh) * | 2020-09-02 | 2023-08-01 | 曙光信息产业(北京)有限公司 | 服务故障处理方法、终端设备及可读存储介质 |
| CN112187738A (zh) * | 2020-09-11 | 2021-01-05 | 中国银联股份有限公司 | 业务数据访问控制方法、装置及计算机可读存储介质 |
| CN112507381B (zh) * | 2020-12-21 | 2023-03-14 | 中电福富信息科技有限公司 | 支持多种操作系统的资产信息和安全管理装置 |
| CN114567646A (zh) * | 2022-03-08 | 2022-05-31 | 京东科技信息技术有限公司 | 数据处理方法、数据处理系统、电子设备及存储介质 |
| CN116567093A (zh) * | 2023-05-31 | 2023-08-08 | 中国银行股份有限公司 | 基于单元化架构的访问请求处理方法、装置及电子设备 |
| CN117041089B (zh) * | 2023-08-21 | 2024-01-23 | 江苏臻云技术有限公司 | 一种面向异地数据中心的设备监控系统及方法 |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150244859A1 (en) * | 2007-10-10 | 2015-08-27 | Microsoft Technology Licensing, Llc | Techniques to access messaging services for branch offices |
| CN107959626A (zh) * | 2017-12-13 | 2018-04-24 | 迈普通信技术股份有限公司 | 数据中心的通信方法、装置及系统 |
| CN108011995A (zh) * | 2017-12-19 | 2018-05-08 | 北京星河星云信息技术有限公司 | 异地多活的实现方法、异地多活服务平台及存储介质 |
| CN108199912A (zh) * | 2017-12-15 | 2018-06-22 | 北京奇艺世纪科技有限公司 | 一种异地多活的分布式消息的管理、消费方法及装置 |
| CN108924191A (zh) * | 2018-06-15 | 2018-11-30 | 青岛宇硕云联信息科技有限公司 | 通话方法及系统 |
| CN109309617A (zh) * | 2018-08-08 | 2019-02-05 | 华为技术有限公司 | 容灾切换方法、相关设备及计算机存储介质 |
| CN109617907A (zh) * | 2019-01-04 | 2019-04-12 | 平安科技(深圳)有限公司 | 认证方法、电子装置及计算机可读存储介质 |
| CN110177007A (zh) * | 2019-04-16 | 2019-08-27 | 平安科技(深圳)有限公司 | 实现网关异地多活的方法、装置、计算机设备及存储介质 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106888164A (zh) * | 2015-12-15 | 2017-06-23 | 阿里巴巴集团控股有限公司 | 一种异地多活下的业务数据路由方法及装置 |
-
2019
- 2019-04-16 CN CN201910305843.5A patent/CN110177007B/zh active Active
- 2019-11-13 WO PCT/CN2019/118171 patent/WO2020211364A1/zh not_active Ceased
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150244859A1 (en) * | 2007-10-10 | 2015-08-27 | Microsoft Technology Licensing, Llc | Techniques to access messaging services for branch offices |
| CN107959626A (zh) * | 2017-12-13 | 2018-04-24 | 迈普通信技术股份有限公司 | 数据中心的通信方法、装置及系统 |
| CN108199912A (zh) * | 2017-12-15 | 2018-06-22 | 北京奇艺世纪科技有限公司 | 一种异地多活的分布式消息的管理、消费方法及装置 |
| CN108011995A (zh) * | 2017-12-19 | 2018-05-08 | 北京星河星云信息技术有限公司 | 异地多活的实现方法、异地多活服务平台及存储介质 |
| CN108924191A (zh) * | 2018-06-15 | 2018-11-30 | 青岛宇硕云联信息科技有限公司 | 通话方法及系统 |
| CN109309617A (zh) * | 2018-08-08 | 2019-02-05 | 华为技术有限公司 | 容灾切换方法、相关设备及计算机存储介质 |
| CN109617907A (zh) * | 2019-01-04 | 2019-04-12 | 平安科技(深圳)有限公司 | 认证方法、电子装置及计算机可读存储介质 |
| CN110177007A (zh) * | 2019-04-16 | 2019-08-27 | 平安科技(深圳)有限公司 | 实现网关异地多活的方法、装置、计算机设备及存储介质 |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113037861A (zh) * | 2021-03-25 | 2021-06-25 | 北京奇艺世纪科技有限公司 | 服务节点连接方法及装置 |
| CN113037861B (zh) * | 2021-03-25 | 2023-08-22 | 北京奇艺世纪科技有限公司 | 服务节点连接方法及装置 |
| CN114327865A (zh) * | 2021-11-30 | 2022-04-12 | 浪潮电子信息产业股份有限公司 | 一种网卡通讯方法、系统、装置及计算机可读存储介质 |
| CN114760615A (zh) * | 2022-04-21 | 2022-07-15 | 青岛海尔科技有限公司 | 蓝牙设备的连接建立方法、装置、设备和存储介质 |
| CN114785465A (zh) * | 2022-04-26 | 2022-07-22 | 上海识装信息科技有限公司 | 一种异地多活的实现方法、服务器及存储介质 |
| CN114785465B (zh) * | 2022-04-26 | 2024-04-12 | 上海识装信息科技有限公司 | 一种异地多活的实现方法、服务器及存储介质 |
| CN114745446A (zh) * | 2022-05-18 | 2022-07-12 | 上海钧正网络科技有限公司 | 一种基于异地多活场景的路由方法、装置、电子设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110177007A (zh) | 2019-08-27 |
| CN110177007B (zh) | 2022-03-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020211364A1 (zh) | 实现网关异地多活的方法、装置、计算机设备及存储介质 | |
| US20240129290A1 (en) | Authenticated name resolution | |
| CN101369893B (zh) | 一种对临时用户进行局域网络接入认证的方法 | |
| US8990356B2 (en) | Adaptive name resolution | |
| CN109547458B (zh) | 登录验证方法、装置、计算机设备及存储介质 | |
| WO2021115449A1 (zh) | 跨域访问系统、方法及装置、存储介质及电子装置 | |
| CN112153155A (zh) | 服务器集群中的服务请求方法、装置、计算机设备及介质 | |
| JP2020177537A (ja) | 認証認可サーバー、クライアント、サービス提供システム、アクセス管理方法とプログラム | |
| KR20070009634A (ko) | 엔티티의 제 1 식별정보 및 제 2 식별정보 검증 방법 | |
| WO2015027743A1 (zh) | 域名解析的方法、域名缓存服务器及最终域名服务器 | |
| KR20100034321A (ko) | 네트워크 id 기반 연합 및 싱글사인온 인증 방법 | |
| JP2017097542A (ja) | 認証制御プログラム、認証制御装置、及び認証制御方法 | |
| KR20190007041A (ko) | 표준 시간대 횡단 스테이션들 간의 데이터 버전 비교를 위한 방법 및 디바이스 | |
| US9635024B2 (en) | Methods for facilitating improved user authentication using persistent data and devices thereof | |
| CN116015824A (zh) | 一种平台统一认证方法、设备、介质 | |
| CN109936515B (zh) | 接入配置方法、信息提供方法及装置 | |
| CN109274579A (zh) | 一种基于微信平台的多应用用户统一认证方法 | |
| CN102480472B (zh) | 企业内网络的应用程序整合登录方法及其验证服务器 | |
| CN115145675A (zh) | 一种h5页面与宿主登录态互通方法 | |
| CN119071058B (zh) | 一种基于零信任网关的网络访问系统、方法和存储介质 | |
| CN113194099A (zh) | 一种数据代理方法及代理服务器 | |
| WO2022006574A1 (en) | Device attestation | |
| CN117318989A (zh) | 一种固话身份验证方法、装置、设备及存储介质 | |
| CN105978866B (zh) | 一种用户访问控制的实现方法和系统、第三方用户服务器 | |
| CN110086784B (zh) | 访问认证方法、系统、装置、设备和存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19925421 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19925421 Country of ref document: EP Kind code of ref document: A1 |