IDC node parsing method, device, equipment and medium for game client

By sorting the preset IDC node addresses to determine the available IP addresses, and determining the access IDC node addresses based on the client's province and operator information, the problem of high delay and packet loss rate when the client interacts with the IDC nodes is solved, and more efficient access quality is achieved.

CN119011436BActive Publication Date: 2025-04-01GUANGZHOU SANQI DREAM NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410974543.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2025-04-01
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

When the client interacts with the IDC node, the delay data is large and the packet loss rate is high, resulting in a decline in the access quality of the game client.

Method used

By sorting the preset IDC node addresses to delay dial-test, the available IP addresses of each operator in each province and/or each province are determined, and the access IDC node address is determined based on the current client's province information and/or operator information, so as to realize the access of the client and the IDC nodes of the same province or operator.

Benefits of technology

It reduces the delay and packet loss rate when the client interacts with the IDC node, and improves the access quality of the game client.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011436B_ABST
    Figure CN119011436B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for resolving IDC nodes of a game client, and the present application belongs to the field of communication technology. The method comprises: reading the test results of at least two game clients on a preset IP address in a pre-stored IP address test result queue, and determining the sorting results of the preset IP addresses of at least two game clients according to the delay data in the test results; determining the first available IP address of each province and / or each operator in each province according to the preset IP address sorting results; receiving the request of the current game client, and determining the access IDC node address of the current client based on the province information and / or operator information of the current client and the first available IP address. Through this technical solution, the purpose of the game client accessing the IDC node of the same province and / or the same operator can be achieved, and the delay and packet loss rate when the client interacts with the IDC node can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to an IDC node parsing method, device, equipment and medium for a game client. Background Art

[0002] IDC (Internet Data Center) is a platform with complete equipment (including high-speed Internet access bandwidth, high-performance local area network, safe and reliable computer room environment, etc.), professional management, and complete application service platform. Based on this platform, IDC service providers can provide customers with Internet basic platform services (such as server hosting, virtual hosting, mail cache, virtual mail, etc.) and various value-added services (such as site rental services, domain name system services, load balancing systems, database systems, data backup services, etc.).

[0003] In related technologies, game companies deploy their services in multiple IDC nodes and multiple different operators. When a client wants to access a game address, the server uses a DNS polling mechanism to resolve the domain name reported by the client to obtain the IP address that the client can finally access, that is, the IDC node that the client can use. However, since the DNS polling mechanism performs domain name resolution for the purpose of load balancing, the IP address that is finally resolved may have large delay data and high packet loss rate when the client interacts with the IDC node due to problems such as long access links between the client and the IP address, cross-regional access, and cross-operator access. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an IDC node parsing method, device, equipment and medium for a game client, which solves the problems of large delay data and high packet loss rate when the client interacts with the IDC node in the related technology. By sorting the preset IDC node addresses for delayed dialing, the available IP addresses of each province and / or each operator in each province are determined, and then the access IDC node address of the current client is determined according to the province information and / or operator information of the current client. The purpose of the game client accessing the IDC node in the same province and / or the same operator can be achieved, and the delay and packet loss rate when the client interacts with the IDC node are reduced.

[0005] In a first aspect, an embodiment of the present application provides an IDC node parsing method for a game client, the method comprising:

[0006] Reading test results of at least two game clients on a preset IP address in a pre-stored IP address test result queue, and determining the sorting results of the preset IP addresses of the at least two game clients according to the delay data in the test results, wherein the at least two clients are clients of different provinces and / or different operators, and the preset IP address is a preset IDC node address;

[0007] Determine the first available IP address of each province and / or each operator in each province according to the preset IP address sorting result;

[0008] Receive a request from a current game client, and determine province information and / or operator information of the current client based on the request;

[0009] The access IDC node address of the current client is determined based on the province information and / or operator information of the current client and the first available IP address.

[0010] Furthermore, before reading the test results of at least two game clients on the preset IP address in the pre-stored IP address test result queue, the method further includes:

[0011] Sending a preset IP address to the at least two game clients so that the at least two game clients can perform delayed dialing on the preset IP address respectively, wherein the preset IP address is a preset game promotion IP address;

[0012] The delayed dialing test results of the at least two game clients are received, and the delayed dialing test results are stored in an IP address test result queue according to a receiving time.

[0013] Furthermore, the determining of the first available IP address of each province and / or each operator of each province according to the preset IP address sorting result includes:

[0014] According to the provinces and / or operators of the at least two clients, the preset IP address sorting results are merged for the same province and / or the same operator to obtain the preset IP address sorting merged results for the same province and / or the same operator;

[0015] Based on a preset ratio, the preset IP address sorting and merging results are screened to obtain the first available IP address of each province and / or each operator in each province.

[0016] Further, the determining the province information and / or operator information of the current client based on the request includes:

[0017] Determine the identity information of the current client based on the identity information field in the request;

[0018] The pre-stored registration information of the identity information is read, and the province information and / or operator information of the current client is determined based on the telephone number field in the registration information.

[0019] Further, the determining the province information and / or operator information of the current client based on the request includes:

[0020] Read the IP address in the request, and determine the province information of the current client based on the province field in the IP address;

[0021] A registration message of the current client is received, and operator information in the registration message is obtained by parsing according to a preset operator identifier.

[0022] Further, the determining the access IDC node address of the current client based on the province information and / or operator information of the current client and the first available IP address includes:

[0023] Determine at least two second available IP addresses of the current client according to the province information and / or operator information of the current client and the first available IP address;

[0024] Determine the test results of the at least two second available IP addresses according to the pre-stored IP address test result queue, and determine the access IP address of the current client based on the delay data of each of the second available IP addresses in the test results;

[0025] The access IDC node of the current client is determined according to the mask field of the access IP address and a preset IDC node database.

[0026] Furthermore, before determining the test results of the at least two second available IP addresses according to the pre-stored IP address test result queue, the method further includes:

[0027] Read the test data of the preset IP address in the test result, the test data including receiving delay, packet loss rate and survival time;

[0028] Identify whether there is fault data exceeding a preset test threshold in the test data;

[0029] When there is fault data exceeding a preset test threshold in the test data, a preset IP address corresponding to the fault data is determined as a fault IP address, and the fault IP address in the first available IP addresses is deleted to update the first available IP address.

[0030] In a second aspect, an embodiment of the present application provides an IDC node parsing device for a game client, the device comprising:

[0031] An address sorting module is used to read the test results of at least two game clients on the preset IP address in the pre-stored IP address test result queue, and determine the preset IP address sorting results of the at least two clients according to the delay data in the test results, wherein the at least two clients are clients of different provinces and / or different operators;

[0032] An address confirmation module, used to determine the first available IP address of each province and / or each operator in each province according to the preset IP address sorting result;

[0033] An information determination module, used to receive a request from a current game client, and determine the province information and / or operator information of the current client based on the request;

[0034] A node determination module is used to determine the access IDC node address of the current client based on the province information and / or operator information of the current client and the first available IP address.

[0035] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0036] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0037] In the fifth aspect, an embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and at least one processor of the device reads and executes the computer program from the computer-readable storage medium, so that the device performs the method described in the first aspect.

[0038] In an embodiment of the present application, the test results of at least two game clients on the preset IP address in the pre-stored IP address test result queue are read, and the sorting results of the preset IP addresses of the at least two game clients are determined according to the delay data in the test results, the at least two clients are clients of different provinces and / or different operators, and the preset IP address is a preset IDC node address; the first available IP address of each province and / or each operator in each province is determined according to the preset IP address sorting result; the request of the current game client is received, and the province information and / or operator information of the current client is determined based on the request; the access IDC node address of the current client is determined based on the province information and / or operator information of the current client and the first available IP address. Through the above-mentioned IDC node parsing method for a game client, the problems of large delay data and high packet loss rate when the client interacts with the IDC node in the related technology are solved. The available IP addresses of each province and / or each operator in each province are determined by sorting the preset IDC node addresses through delayed dialing, and then the access IDC node address of the current client is determined according to the province information and / or operator information of the current client. The purpose of the game client accessing the IDC node in the same province and / or the same operator can be achieved, thereby reducing the delay and packet loss rate when the client interacts with the IDC node. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a flowchart of an IDC node parsing method of a game client provided in an embodiment of the present application;

[0040] Figure 2 It is a flow chart for creating an IP address test result queue provided in an embodiment of the present application;

[0041] Figure 3 It is a flow chart for determining the first available IP address provided in an embodiment of the present application;

[0042] Figure 4 It is a determination flow chart of a client accessing an IDC node provided in an embodiment of the present application;

[0043] Figure 5 It is a structural block diagram of an IDC node parsing device of a game client provided in an embodiment of the present application;

[0044] Figure 6 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0046] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0047] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0048] First of all, the usage scenario of this solution can be a scenario in which the game client's access to the IDC node is parsed, especially the scenario in which the game client's access to the IDC node is parsed in different provinces and / or different operators. For example: accessing the game client of Guangzhou Telecom in Guangdong Province to the IDC node of Guangzhou Telecom, etc. By performing delayed dialing on the preset IDC node address and determining the access IDC node address of the current client based on the province information and / or operator information of the current client, the delay and packet loss rate when the client interacts with the IDC node can be effectively reduced. Based on the above usage scenarios, it can be understood that the executor of this solution can be a server.

[0049] In conjunction with the accompanying drawings, the following describes in detail an IDC node parsing method, device, equipment and medium for a game client provided by an embodiment of the present application through specific embodiments and their application scenarios.

[0050] Figure 1 1 is a flowchart of an IDC node parsing method for a game client provided in an embodiment of the present application. Figure 1 As shown, the specific steps include:

[0051] S101, reading the test results of at least two game clients on the preset IP addresses in the pre-stored IP address test result queue, and determining the sorting results of the preset IP addresses of at least two game clients according to the delay data in the test results.

[0052] Among them, the IP address test result queue can be a storage queue for the dialing test results obtained by the game client performing delayed dialing test on the preset IP address. For example: the storage queue of middleware such as redis or kafka. Dial test can be a technology used for network performance monitoring and troubleshooting, used to evaluate the availability and performance of the network. The dial test in this solution is mainly a technical means for testing whether the IDC node of the preset IP address is available. For example: ping delayed dial test. The game client sends a test data packet to the preset IP address and determines whether the preset IP address is available or stable by measuring its response time, packet loss rate, bandwidth and other indicators. The dial test result can be the response delay data, packet loss rate and survival time of the preset IP address for the test data packet. The IDC node can be a node deployed in an IDC (Internet Data Center). These nodes are usually located in a high-speed, highly available data center network environment, and are designed to help users detect the performance and stability of network links. Through these nodes, users can obtain detailed information about network performance, including but not limited to delay, packet loss rate, bandwidth usage, etc., so as to optimize network configuration and improve service quality and user experience.

[0053] The game client may be a client that issues a game access request. The game client is a client of different provinces and / or different operators. This solution no longer uses a third party for dialing, but directly performs delayed dialing by accessing the game client to obtain the optimal IP address that each game client can access. The preset IP address may be the IP address corresponding to the preset IDC node. The preset IDC node may be a computer room node preset by the game operation and maintenance personnel for carrying and processing game services. For example: a computer room node for carrying the advertising business of the game. The preset IDC node may be a computer room node in the same or different provinces and / or a computer room node that supports the services of different operators. The delay data may be the time from when the game client sends a test data packet to when the game client receives a response signal returned by the preset IP address. The sorting result of the preset IP address may be the result obtained by sorting the preset IP address by each game client according to the delay data of the preset IP address.

[0054] In one embodiment, the test results of at least two game clients on each preset IP address in the pre-stored IP address test result queue can be obtained by reading the data stored in the memory or middleware. The delay data in the test results are sorted in the order of small to large or from large to small to obtain the sorting results of each game client testing each preset IP address.

[0055] S102: Determine the first available IP address of each province and / or each operator in each province according to the preset IP address sorting result.

[0056] The first available IP address may be an IP address that can feedback response data based on a test data packet sent by a game client.

[0057] In one embodiment, since different game clients are from different provinces and / or operators, the ranking results of each game client testing each preset IP address are the ranking results of the province and / or operator of the game client for the preset IP address. According to the ranking results, the preset IP address with the smallest delay data can be determined, and the preset IP address with the smallest delay data can be used as the first available IP address of each province and / or each operator in each province.

[0058] S103, receiving a request from the current game client, and determining the province information and / or operator information of the current client based on the request.

[0059] The request of the current game client may be information sent by the game client at the current moment to request to log in or access the game. The request of the current client may include the request content, request method, identity information field and address field, etc. pre-entered by the current client.

[0060] In one embodiment, a request from the current game client can be received through an interface that interacts with the current client, an address identifier in an address field in the request can be identified, and the province information where the current client is located can be determined based on the association between the address identifier and the province information. The format of the request content in the request can be identified, and the operator that supports the request can be determined based on the format of the request content, thereby determining the operator used by the current game client.

[0061] In one embodiment, optionally, determining the province information and / or operator information of the current client based on the request includes:

[0062] Determine the identity information of the current client based on the identity information field in the request;

[0063] Read the pre-stored registration information of the identity information, and determine the province information and / or operator information of the current client based on the telephone number field in the registration information.

[0064] The identity information of the current client may be information that can distinguish the current client from other clients. For example, the client URL, IP address, and client ID. The registration information may be information entered by the current client when logging into the game for the first time. The registration information may include the user name, password, phone number, and email address of the current client.

[0065] In one embodiment, if the current client is a registered client, the identity information of the current client can be determined by reading the identity information field in the request, and the registration information corresponding to the current client pre-stored in the storage unit can be read according to the identity information of the current client. The telephone number characteristics of the current client are determined according to the telephone number field in the registration information, and the province information and / or operator information of the current client are determined according to the telephone number characteristics of the current client and the telephone number characteristics of the operators in each province.

[0066] This solution can improve the accuracy of obtaining the province information and / or operator information of the current client by determining the identity information of the current client based on the request and determining the province information and / or operator information of the current client according to the pre-stored telephone number field corresponding to the identity information.

[0067] In one embodiment, optionally, determining the province information and / or operator information of the current client based on the request includes:

[0068] Read the IP address in the request and determine the province information of the current client based on the province field in the IP address;

[0069] Receive the registration message of the current client, and parse the operator information in the registration message according to the preset operator identifier.

[0070] Among them, the IP address in the request may be the IP address of the current client that issued the request. The IP address in the request may include information such as the country and province where the current client is located. The registration message of the current client may be a message with the registration information of the current client generated when the current client requests registration. The registration message is used to identify and record the registration status of the current client, and may include information such as the identity of the current client, the type of registered service, and the registration status (success or failure). The preset operator identifier may be a pre-set mark for distinguishing between various operators. For example: characters or patterns, etc. When registering, the current client can enter its own operator information into the registration message by selecting a preset operator identifier.

[0071] In one embodiment, if the current client is an unregistered client, the IP address in the request is read, the province information of the current client is obtained by parsing the province field of the IP address, and the registration message reported by the current client during the registration process is received, and the operator information in the registration message is determined according to the preset operator identifier and the operator identifier selected by the current client in the registration message, that is, the operator information of the current client.

[0072] This solution determines the province information of the current client by reading the province field of the IP address in the request, and determines the operator information of the current client based on the received registration message of the current client and the preset operator identifier. This can achieve the purpose of parsing the province information and operator information of the current client that has not registered, and further improves the efficiency and accuracy of obtaining the province information and / or operator information of the current client.

[0073] S104, determining the access IDC node address of the current client based on the province information and / or operator information of the current client and the first available IP address.

[0074] Among them, the access IDC node address of the current client can be the IP address of the computer room node that is in the same province as the current client, can support the current client operator service and can be accessed by the current client.

[0075] In one embodiment, an IP address that is the same as the province where the current client is located and / or supports the operator service of the current client can be determined based on the province information and / or operator information of the current client and the province information and / or operator information corresponding to the first available IP address, and the IDC node corresponding to the IP address can be used as the access IDC node address of the current client.

[0076] The technical solution provided in the embodiment of the present application reads the test results of at least two game clients on the preset IP address in the pre-stored IP address test result queue, determines the sorting results of the preset IP addresses of the at least two game clients according to the delay data in the test results, the at least two clients are clients of different provinces and / or different operators, and the preset IP address is a preset IDC node address; determines the first available IP address of each province and / or each operator in each province according to the preset IP address sorting result; receives the request of the current game client, and determines the province information and / or operator information of the current client based on the request; determines the access IDC node address of the current client based on the province information and / or operator information of the current client and the first available IP address. Through the above-mentioned IDC node parsing method for a game client, the problems of large delay data and high packet loss rate when the client interacts with the IDC node in the related technology are solved. The available IP addresses of each province and / or each operator in each province are determined by sorting the preset IDC node addresses through delayed dialing, and then the access IDC node address of the current client is determined according to the province information and / or operator information of the current client. The purpose of the game client accessing the IDC node in the same province and / or the same operator can be achieved, thereby reducing the delay and packet loss rate when the client interacts with the IDC node.

[0077] Figure 2 This is a flow chart of creating an IP address test result queue provided by the embodiment of the present application. Figure 2 As shown, the specific steps include:

[0078] S201, sending a preset IP address to at least two game clients, so that the at least two game clients can perform delayed dialing test on the preset IP address respectively, where the preset IP address is a preset game promotion IP address.

[0079] The preset IP address may be a game promotion IP address preset by a game operation and maintenance personnel. The preset IP address may be stored in a memory unit associated with the corresponding game.

[0080] In one embodiment, the preset IP address of the game can be sent to at least two game clients through the interface with the game client. The at least two game clients can send test data packets to the preset IP address for delayed dialing test. The delayed dialing test method of the at least two game clients can be ping dialing test.

[0081] S202, receiving delayed dialing test results of at least two game clients, and storing the delayed dialing test results in an IP address test result queue according to the receiving time.

[0082] The receiving time may be the time point when at least two game clients report the delayed dialing test results. The at least two game clients may send the delayed dialing test results immediately after receiving the feedback information of the preset IP address.

[0083] In one embodiment, delayed dialing test results of at least two game clients may be received, and the delayed dialing test results may be stored in an IP address test result queue according to the receiving time.

[0084] The technical solution provided in the embodiment of the present application can achieve the purpose of using the game client to directly perform delayed dialing test on the game promotion IP address by sending the game promotion IP address to at least two game clients so that at least two game clients can perform delayed dialing test on the preset IP address respectively. By storing the dialing test results in the IP address test result queue according to the receiving time, the queue order of the test results can be consistent with the delay data size, which is conducive to the subsequent determination of the preset IP address with the minimum delay.

[0085] Figure 3 This is a flow chart for determining the first available IP address provided by the embodiment of the present application. Figure 3 As shown, the specific steps include:

[0086] S301, according to the provinces and / or operators of at least two clients, the preset IP address sorting results of the same province and / or the same operator are merged to obtain the preset IP address sorting merge results of the same province and / or the same operator.

[0087] In one embodiment, since different game clients may be in the same province but different operators, or in different provinces but the same operator, the preset IP address sorting results may be merged for the same province and / or the same operator. The preset IP address sorting results corresponding to the game clients in the same province may be merged to obtain the preset IP address sorting merged result for the same province, the preset IP address sorting results corresponding to the game clients of the same operator may be merged to obtain the preset IP address sorting merged result for the same operator, and the preset IP address sorting results corresponding to the game clients in the same province and the same operator may be merged to obtain the preset IP address sorting merged result for the same province and the same operator.

[0088] S302: Based on a preset ratio, the preset IP address sorting and merging results are screened to obtain the first available IP address of each province and / or each operator in each province.

[0089] The preset ratio may be a preset ratio data used to screen out preset IP addresses with better effects. The preset ratio may be set to 85%.

[0090] In one embodiment, the preset IP addresses in the preset IP address sorting and merging results are screened based on a preset ratio to obtain the first available IP addresses of each province and / or each operator in each province. For example, the first 85% of the preset IP addresses with the delay data from small to large in the preset IP address sorting and merging results of Guangzhou Telecom are taken as the first available IP addresses of Guangzhou Telecom.

[0091] The technical solution provided in the embodiment of the present application can achieve the purpose of filtering out data with poor effects, and ensure the accuracy of subsequent determination of the IDC node address accessed by the current client, by merging the preset IP address sorting results according to the province and / or operator of the client, and performing available screening on the preset IP address sorting and merging results based on a preset ratio to obtain the first available IP address of each province and / or each operator in each province.

[0092] Figure 4 This is a flow chart of determining the client access to the IDC node provided by the embodiment of the present application. Figure 4 As shown, the specific steps include:

[0093] S401, determining at least two second available IP addresses of the current client according to the province information and / or operator information of the current client and the first available IP address.

[0094] Among them, the second available IP address can be an IP address in the first available IP address that is the same as the current client province information and / or operator information.

[0095] In one embodiment, at least two second available IP addresses that are the same as the province information and / or operator information of the current client can be determined from the province information and / or operator information of the current client and the first available IP address.

[0096] S402: Determine test results of at least two second available IP addresses according to a pre-stored IP address test result queue, and determine the access IP address of the current client based on delay data of each of the second available IP addresses in the test results.

[0097] In one embodiment, the test result of the IP address in the pre-stored IP address test result queue that is the same as the second available IP address can be used as the test result of at least two second available IP addresses. According to the delay data of each second available IP address in the test result, the second available IP address with the smallest delay data is used as the access IP address of the current client.

[0098] In one embodiment, optionally, before determining the test results of at least two second available IP addresses according to the pre-stored IP address test result queue, the method further includes:

[0099] Read the test data of the preset IP address in the test results, including receiving delay, packet loss rate and survival time;

[0100] Identify whether there is fault data exceeding a preset test threshold in the test data;

[0101] When there is fault data exceeding a preset test threshold in the test data, the preset IP address corresponding to the fault data is determined as the fault IP address, and the fault IP address in the first available IP address is deleted to update the first available IP address.

[0102] Among them, the test data of the preset IP address can be the data obtained by dialing the preset IP address. The test data includes receiving delay, packet loss rate and survival time. Fault data can be data in the test data that exceeds the receiving delay threshold, exceeds the packet loss rate threshold, or exceeds the survival time threshold. If the test data exceeds the receiving delay threshold, it means that the response time of the IDC node of the preset IP address is too long and the IDC node is unavailable; if the test data exceeds the packet loss rate threshold, it means that the current game client has a poor network connection with the preset IP address or the connection link is too long; if the test data exceeds the survival time threshold, it means that the network configuration is incorrect and the survival time has expired. The faulty IP address can be the preset IP address whose feedback test data is faulty data.

[0103] In one embodiment, the test data of the preset IP address in the test result can be read according to the test name in the test result, and the fault data exceeding the preset test threshold value can be identified by comparing the size of each test data with the preset test threshold value corresponding to each test data. In the case that the fault data exceeding the preset test threshold value exists in the test data, the preset IP address for feedback fault data is determined as the fault IP address. Since the fault IP address may be a preset IP address that has a packet loss rate but can still feedback information to the game client, it is necessary to delete the fault IP address in the first available IP address to update the first available IP address.

[0104] This solution determines fault data by reading the test data of the preset IP address in the test result and the preset test threshold, and deletes the faulty IP address in the first available IP address according to the fault data to update the first available IP address, thereby achieving the purpose of further screening the available IP addresses and further optimizing the available IP address finally determined by the current client.

[0105] S403: Determine the access IDC node of the current client according to the mask field of the access IP address and a preset IDC node database.

[0106] The mask field may be a binary code field used to distinguish network segments. The mask field includes a network address field and a host address field. The preset IDC node database may be a pre-set database used to store associations between IDC nodes and mask fields.

[0107] In one embodiment, a field stored in a preset IDC node database that is identical to the mask field of the access IP address may be identified, and the IDC node associated with the field may be determined as the access IDC node of the current client.

[0108] The technical solution provided in the embodiment of the present application determines at least two second available IP addresses among the first available IP addresses through the province information and / or operator information of the current client, determines the access IP address of the current client according to the test results of the second available IP addresses, and determines the access IDC node of the current client according to the mask field of the access IP address and a preset IDC node database, thereby achieving the purpose of enabling the current client to access the IDC node with the same province and operator as its own, and effectively reducing the delay and packet loss rate when the client interacts with the IDC node.

[0109] Figure 5 1 is a structural block diagram of an IDC node parsing device for a game client provided in an embodiment of the present application. Figure 5 As shown, specifically including the following:

[0110] The address sorting module 501 is used to read the test results of at least two game clients on the preset IP address in the pre-stored IP address test result queue, and determine the preset IP address sorting results of at least two clients according to the delay data in the test results, and at least two clients are clients of different provinces and / or different operators;

[0111] The address confirmation module 502 is used to determine the first available IP address of each province and / or each operator in each province according to the preset IP address sorting result;

[0112] The information determination module 503 is used to receive a request from the current game client and determine the province information and / or operator information of the current client based on the request;

[0113] The node determination module 504 is used to determine the access IDC node address of the current client based on the province information and / or operator information of the current client and the first available IP address.

[0114] Furthermore, the device also includes:

[0115] A delayed dialing test module is used to send a preset IP address to at least two game clients, so that at least two game clients can perform delayed dialing test on the preset IP address respectively, and the preset IP address is a preset game promotion IP address;

[0116] The dial test result storage module is used to receive the delayed dial test results of at least two game clients and store the delayed dial test results in the IP address test result queue according to the receiving time.

[0117] Furthermore, the address confirmation module 502 is specifically used for:

[0118] According to the provinces and / or operators of at least two clients, the preset IP address sorting results are merged for the same province and / or the same operator to obtain the preset IP address sorting merged results for the same province and / or the same operator;

[0119] Based on a preset ratio, the preset IP address sorting and merging results are screened to obtain the first available IP address of each province and / or each operator in each province.

[0120] Furthermore, the information determination module 503 is specifically used to:

[0121] Determine the identity information of the current client based on the identity information field in the request;

[0122] Read the pre-stored registration information of the identity information, and determine the province information and / or operator information of the current client based on the telephone number field in the registration information.

[0123] Furthermore, the information determination module 503 is specifically used to:

[0124] Read the IP address in the request and determine the province information of the current client based on the province field in the IP address;

[0125] Receive the registration message of the current client, and parse the operator information in the registration message according to the preset operator identifier.

[0126] Furthermore, the node determination module 504 is specifically configured to:

[0127] Determine at least two second available IP addresses of the current client according to the province information and / or operator information of the current client and the first available IP address;

[0128] Determine test results of at least two second available IP addresses according to a pre-stored IP address test result queue, and determine the access IP address of the current client based on delay data of each of the second available IP addresses in the test results;

[0129] The access IDC node of the current client is determined according to the mask field of the access IP address and the preset IDC node database.

[0130] Furthermore, the node determination module 504 is further configured to:

[0131] Read the test data of the preset IP address in the test results, including receiving delay, packet loss rate and survival time;

[0132] Identify whether there is fault data exceeding a preset test threshold in the test data;

[0133] When there is fault data exceeding a preset test threshold in the test data, the preset IP address corresponding to the fault data is determined as the fault IP address, and the fault IP address in the first available IP address is deleted to update the first available IP address.

[0134] The technical solution provided in the embodiment of the present application includes an address sorting module, which is used to read the test results of at least two game clients on the preset IP address in the pre-stored IP address test result queue, and determine the preset IP address sorting results of at least two clients according to the delay data in the test results; an address confirmation module, which is used to determine the first available IP address of each province and / or each operator in each province according to the preset IP address sorting result; an information determination module, which is used to receive the request of the current game client, and determine the province information and / or operator information of the current client based on the request; a node determination module, which is used to determine the access IDC node address of the current client based on the province information and / or operator information of the current client and the first available IP address. Through the above-mentioned IDC node parsing device for a game client, the problems of large delay data and high packet loss rate when the client interacts with the IDC node in the related technology are solved. By sorting the preset IDC node addresses for delayed dialing, the available IP addresses of each province and / or each operator in each province are determined, and then the access IDC node address of the current client is determined according to the province information and / or operator information of the current client. The purpose of the game client accessing the IDC node in the same province and / or the same operator can be achieved, thereby reducing the delay and packet loss rate when the client interacts with the IDC node.

[0135] An IDC node parsing device of a game client in an embodiment of the present application can be configured in a device, or in a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0136] In an embodiment of the present application, an IDC node parsing device of a game client may be an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0137] An IDC node parsing device for a game client provided in an embodiment of the present application can implement each process implemented in the above-mentioned method embodiments. To avoid repetition, they will not be described here.

[0138] like Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned IDC node resolution method embodiment of a game client is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0139] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0140] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned IDC node parsing method embodiment of a game client is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0141] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0142] The present application embodiment further provides a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the method according to various exemplary embodiments of the present application described above in this specification. For example, the computer device can execute an IDC node parsing method for a game client recorded in an embodiment of the present application. The program product can be implemented in any combination of one or more readable media.

[0143] It should be noted that, in this article, the term "comprises", "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0144] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0145] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0146] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A method for parsing an IDC node of a game client, characterized in that: The method comprises: Sending multiple preset IP addresses to at least two game clients, so that the at least two game clients can perform delayed dialing tests on the multiple preset IP addresses respectively, wherein the preset IP addresses are preset IDC node addresses, receiving delayed dialing test results of the at least two game clients, and storing the delayed dialing test results in an IP address delayed dialing test result queue according to a receiving time; Reading delayed dialing test results of at least two game clients for multiple preset IP addresses in a pre-stored IP address delayed dialing test result queue, and determining the sorting results of the multiple preset IP addresses of the at least two game clients according to the delay data in the delayed dialing test results, wherein the at least two game clients are game clients from different provinces and / or different operators; Determine the first available IP address of each province and / or each operator in each province according to the plurality of preset IP address sorting results, which includes: merging the plurality of preset IP address sorting results for the same province and / or the same operator according to the province and / or operator of the at least two game clients to obtain a preset IP address sorting merge result for the same province and / or the same operator, and performing available screening on the preset IP address sorting merge result based on a preset ratio to obtain the first available IP address of each province and / or each operator in each province; Receive a request from a current game client, and determine province information and / or operator information of the current game client based on the request; Determine the access IDC node address of the current game client based on the province information and / or operator information of the current game client and the first available IP address.

2. The IDC node parsing method of the game client according to claim 1, characterized in that: The determining the province information and / or operator information of the current game client based on the request includes: Determine the identity information of the current game client based on the identity information field in the request; Read the pre-stored registration information of the identity information, and determine the province information and / or operator information of the current game client based on the telephone number field in the registration information.

3. The IDC node parsing method of the game client according to claim 1, characterized in that: The determining the province information and / or operator information of the current game client based on the request includes: Read the IP address in the request, and determine the province information of the current game client based on the province field in the IP address; A registration message of the current game client is received, and operator information in the registration message is obtained by parsing according to a preset operator identifier.

4. The IDC node parsing method of the game client according to claim 1, characterized in that: The determining the access IDC node address of the current game client based on the province information and / or operator information of the current game client and the first available IP address includes: Determine at least two second available IP addresses of the current game client according to the province information and / or operator information of the current game client and the first available IP address; Determine the delayed dialing test results of the at least two second available IP addresses according to the pre-stored IP address delayed dialing test result queue, and determine the access IP address of the current game client based on the delay data of each of the second available IP addresses in the delayed dialing test results; The access IDC node of the current game client is determined according to the mask field of the access IP address and a preset IDC node database.

5. The IDC node parsing method of the game client according to claim 4, characterized in that: Before determining the delayed dialing test results with the at least two second available IP addresses according to the pre-stored IP address delayed dialing test result queue, the method further includes: Read the test data of the preset IP address in the delay dialing test result, wherein the test data includes receiving delay, packet loss rate and survival time; Identify whether there is fault data exceeding a preset test threshold in the test data; When there is fault data exceeding a preset test threshold in the test data, a preset IP address corresponding to the fault data is determined as a fault IP address, and the fault IP address in the first available IP addresses is deleted to update the first available IP address.

6. An IDC node parsing device for a game client, characterized in that: The device comprises: A delayed dialing test module, used for sending a plurality of preset IP addresses to at least two game clients, so that the at least two game clients can respectively perform delayed dialing tests on the plurality of preset IP addresses, wherein the preset IP addresses are preset IDC node addresses; A dial test result storage module, used for receiving the delayed dial test results of the at least two game clients, and storing the delayed dial test results in an IP address delayed dial test result queue according to the receiving time; An address sorting module is used to read delayed dialing test results of at least two game clients for multiple preset IP addresses in a pre-stored IP address delayed dialing test result queue, and determine the sorting results of the multiple preset IP addresses of the at least two game clients according to the delay data in the delayed dialing test results, wherein the at least two game clients are game clients from different provinces and / or different operators; An address confirmation module is used to determine the first available IP address of each province and / or each operator in each province according to the plurality of preset IP address sorting results, which includes: merging the plurality of preset IP address sorting results for the same province and / or the same operator according to the province and / or operator of the at least two game clients to obtain a preset IP address sorting merge result for the same province and / or the same operator, and performing available screening on the preset IP address sorting merge result based on a preset ratio to obtain the first available IP address of each province and / or each operator in each province; An information determination module, used to receive a request from a current game client, and determine the province information and / or operator information of the current game client based on the request; A node determination module is used to determine the access IDC node address of the current game client based on the province information and / or operator information of the current game client and the first available IP address.

7. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of an IDC node parsing method for a game client as described in any one of claims 1 to 5 are implemented.

8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the IDC node parsing method of a game client as described in any one of claims 1-5 are implemented.

Citation Information

Patent Citations

  • Adaptive Quality of Service for Latency-Sensitive Applications

    CN111405618A

  • Game service system and game service method for global game service

    US20150365489A1