CN111800447A - Server scheduling method and device for cloud game and readable storage medium - Google Patents

Server scheduling method and device for cloud game and readable storage medium Download PDF

Info

Publication number
CN111800447A
CN111800447A CN201910893824.9A CN201910893824A CN111800447A CN 111800447 A CN111800447 A CN 111800447A CN 201910893824 A CN201910893824 A CN 201910893824A CN 111800447 A CN111800447 A CN 111800447A
Authority
CN
China
Prior art keywords
terminal
information
list
scheduling request
operator
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910893824.9A
Other languages
Chinese (zh)
Inventor
杜晶
王廖荣
林顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Yaji Software Co Ltd
Original Assignee
Xiamen Yaji Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Yaji Software Co Ltd filed Critical Xiamen Yaji Software Co Ltd
Priority to CN201910893824.9A priority Critical patent/CN111800447A/en
Publication of CN111800447A publication Critical patent/CN111800447A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a server scheduling method, a server scheduling device and a readable storage medium for a cloud game, wherein the method comprises the following steps: receiving a first scheduling request sent by a terminal, wherein the first scheduling request comprises Domain Name System (DNS) information of the terminal; acquiring region information and operator information of a terminal based on DNS information of the terminal; sorting all DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and the region information, the operator information and the load information of all region server DSs corresponding to the BS; and sending the DS list to the terminal so that the terminal tries to connect with each DS in the DS list in sequence until the terminal is successfully connected with one DS, and sending a second scheduling request to a target DS which is successfully connected so that the target DS schedules a game server GS for the terminal according to the second scheduling request. The scheme ensures that the link path after the terminal is connected with the target GS is optimal, and indirectly ensures the link quality of the cloud game service, thereby ensuring the final presentation effect of the cloud game.

Description

Server scheduling method and device for cloud game and readable storage medium
Technical Field
The application relates to the technical field of computers, in particular to a server scheduling method and device for a cloud game and a readable storage medium.
Background
The cloud game is characterized in that a game running at a local end runs on a cloud server, the running result is transmitted to the local end through a network to present pictures and sounds, and the service quality of a connection link between the local end and the cloud server directly influences the final presenting effect of the cloud game.
At present, in the scheduling process of a cloud server of a cloud game, only the factor of whether the cloud server has a load is considered, and only the cloud server scheduled for a local end has a load, but the service quality of a connection link between the local end and the cloud server cannot be ensured, and further the final presentation effect of the cloud game cannot be ensured.
Disclosure of Invention
The purpose of the present application is to solve at least one of the above technical drawbacks, and to provide the following solutions:
in a first aspect, an embodiment of the present application provides a server scheduling method for a cloud game, where the method is applied to a central server BS, and includes:
receiving a first scheduling request sent by a terminal, wherein the first scheduling request comprises Domain Name System (DNS) information of the terminal;
acquiring region information and operator information of a terminal based on DNS information of the terminal;
sorting all DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and the region information, the operator information and the load information of all region server DSs corresponding to the BS;
and sending the DS list to the terminal so that the terminal tries to connect with each DS in the DS list in sequence until the terminal is successfully connected with one DS, and sending a second scheduling request to a target DS which is successfully connected so that the target DS schedules a game server GS for the terminal according to the second scheduling request.
Optionally, based on the region information and the operator information of the terminal, and the region information, the operator information, and the load information of each DS corresponding to the BS, each DS corresponding to the BS is sorted to obtain a DS list, which specifically includes:
obtaining a first sequencing score corresponding to each DS based on the matching degree of the region information of the terminal and the region information of each DS;
obtaining a second sequencing score corresponding to each DS based on the matching degree of the operator information of the terminal and the operator information of each DS;
obtaining a third sorting score corresponding to each DS based on the load information of each DS;
and determining the sequencing of the DSs based on the first sequencing scores, the second sequencing scores and the third sequencing scores to obtain a DS list.
Optionally, determining the rank of each DS based on each first rank score, each second rank score, and each third rank score specifically includes:
determining the final sorting score of each DS based on each first sorting score, each second sorting score, each third sorting score, a first preset weight corresponding to the region information, a second preset weight corresponding to the operator information and a third preset weight corresponding to the load information;
and determining the sorting of each DS according to the final sorting score of each DS, wherein the higher the final sorting score of each DS is, the higher the sorting is.
In a second aspect, an embodiment of the present application provides a server scheduling method for a cloud game, where the method is applied to a regional server DS, and includes:
receiving a second scheduling request sent by the terminal, wherein the second scheduling request comprises Domain Name System (DNS) information of the terminal;
acquiring region information and operator information of a terminal based on DNS information of the terminal;
based on the region information and the operator information of the terminal, the region information, the operator information and the load information of each game server GS corresponding to the DS and the service quality of a corresponding connection link, sequencing each GS corresponding to the DS to obtain a GS list;
and sending the GS list to the terminal so that the terminal can try to connect with each GS in the GS list in sequence until the connection is successful, and establishing a connection link with the target GS which is successfully connected.
Optionally, the corresponding connection link is a connection link between another terminal and the GS, where the terminal has the same region information and the same operator information.
Optionally, based on the region information and the operator information of the terminal, the region information, the operator information, the load information of the game server GS corresponding to the DS, and the service quality of the corresponding connection link, the GS corresponding to the DS is sorted to obtain a GS list, which specifically includes:
obtaining a fourth sorting score corresponding to each GS based on the matching degree of the region information of the terminal and the region information of each GS;
obtaining a fifth sorting score corresponding to each GS based on the matching degree of the operator information of the terminal and the operator information of each GS;
obtaining a sixth sorting score corresponding to each GS based on the load information of each GS;
obtaining a seventh sorting score corresponding to each GS based on the service quality of the connection link corresponding to each GS;
and determining the ordering of the GS based on the fourth ordering scores, the fifth ordering scores, the sixth ordering scores and the seventh ordering scores to obtain a GS list.
Optionally, determining the ranking of each GS based on each fourth ranking score, each fifth ranking score, each sixth ranking score, and each seventh ranking score specifically includes:
determining the final sorting score of each GS based on each fourth sorting score, each fifth sorting score, each sixth sorting score, each seventh sorting score, a fourth preset weight corresponding to the region information, a fifth preset weight corresponding to the operator information, a sixth preset weight corresponding to the load information and a seventh preset weight corresponding to the service quality of the connecting link;
and determining the sequencing of each GS according to the final sequencing score of each GS, wherein the higher the final sequencing score of each GS is, the higher the sequencing is.
In a third aspect, an embodiment of the present application provides a server scheduling method for a cloud game, where the method is applied to a terminal and includes:
when the starting triggering operation of the cloud game is acquired, a first scheduling request is sent to a center server BS, the first scheduling request comprises domain name system DNS information of a terminal, so that the BS acquires region information and operator information of the terminal based on the DNS information of the terminal, and sorts DS corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and region information, operator information and load information of a regional server DS corresponding to the BS;
receiving a DS list sent by a BS, trying to connect with each DS in the DS list in sequence until the DS is successfully connected with one DS, sending a second scheduling request to a target DS which is successfully connected, wherein the second scheduling request comprises terminal DNS information, so that the target DS obtains terminal region information and operator information based on the terminal DNS information, and sorts each GS corresponding to the DS to obtain a GS list based on the terminal region information and operator information, and region information, operator information, load information and service quality of a corresponding connection link of each game server GS corresponding to the target DS;
and receiving a GS list sent by the target DS, trying to connect with each GS in the GS list in sequence until the connection with one GS is successful, and establishing a connection link with the target GS which is successfully connected.
In a fourth aspect, an embodiment of the present application provides a server scheduling apparatus for a cloud game, where the apparatus includes:
the first scheduling request receiving module is used for receiving a first scheduling request sent by a terminal, wherein the first scheduling request comprises Domain Name System (DNS) information of the terminal;
the first information acquisition module is used for acquiring the region information and the operator information of the terminal based on the DNS information of the terminal;
the DS list acquisition module is used for sequencing all DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and the region information, the operator information and the load information of all region server DSs corresponding to the BS;
and the DS list sending module is used for sending the DS list to the terminal so that the terminal tries to connect with each DS in the DS list in sequence until the terminal is successfully connected with one DS, and sending a second scheduling request to a target DS which is successfully connected so that the target DS schedules the game server GS for the terminal according to the second scheduling request.
In a fifth aspect, an embodiment of the present application provides a server scheduling apparatus for a cloud game, where the apparatus includes:
the second scheduling request receiving module is used for receiving a second scheduling request sent by the terminal, wherein the second scheduling request comprises Domain Name System (DNS) information of the terminal;
the second information acquisition module is used for acquiring the region information and the operator information of the terminal based on the DNS information of the terminal;
the system comprises a GS list acquisition module, a service quality analysis module and a service quality analysis module, wherein the GS list acquisition module is used for sequencing various GS corresponding to the DS to obtain a GS list based on the region information and the operator information of a terminal, the region information, the operator information, the load information and the service quality of a corresponding connection link of various game servers GS corresponding to the DS;
and the GS list sending module is used for sending the GS list to the terminal so that the terminal can try to connect with each GS in the GS list in sequence until the connection is successful, and establishing a connection link with the target GS which is successfully connected.
In a sixth aspect, an embodiment of the present application provides a server scheduling apparatus for a cloud game, where the apparatus includes:
the system comprises a first scheduling request sending module, a central server BS and a second scheduling request sending module, wherein the first scheduling request sending module is used for sending a first scheduling request to the central server BS when the starting triggering operation of the cloud game is obtained, the first scheduling request comprises Domain Name System (DNS) information of a terminal, so that the BS can obtain region information and operator information of the terminal based on the DNS information of the terminal, and rank the DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and the region information, the operator information and the load information of a regional server DS corresponding to the BS;
the second scheduling request sending module is used for receiving the DS list sent by the BS, trying to connect with each DS in the DS list in sequence until the DS is successfully connected with one DS, sending a second scheduling request to a target DS which is successfully connected, wherein the second scheduling request comprises terminal DNS information so that the target DS can obtain the terminal region information and operator information based on the terminal DNS information, and sort the GS corresponding to the target DS to obtain the GS list based on the terminal region information and operator information, the region information, operator information, load information and the service quality of a corresponding connection link of each game server GS corresponding to the DS;
and the target GS acquisition module is used for receiving the GS list sent by the target DS, trying to connect with each GS in the GS list in sequence until the connection with one GS is successful, and establishing a connection link with the target GS which is successfully connected.
In a seventh aspect, an embodiment of the present application provides an electronic device, including a memory and a processor;
the memory has a computer program stored therein;
a processor configured to execute a computer program to implement the methods provided in the first, second, third, fourth, fifth or sixth aspect embodiments.
In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the methods provided in the embodiments of the first aspect, the second aspect, the third aspect, the fourth aspect, the fifth aspect, or the sixth aspect.
The beneficial effect that technical scheme that this application provided brought is:
in the global scheduling stage of scheduling the DS for the terminal by the BS, the matching degree of the region information between each DS corresponding to the BS and the terminal, the matching degree of the operator information between each DS and the terminal, and the load information of each DS are utilized to determine the quality of the service of the connecting link after each DS is connected with the terminal, in the regional scheduling stage of scheduling the GS for the terminal by the target DS, the matching degree of the region information between each GS corresponding to the target DS and the terminal, the matching degree of the operator information between each GS and the terminal, the load information of each GS, and the service quality of the connecting link corresponding to each GS are utilized to determine the quality of the connecting link after each GS is connected with the terminal, according to the scheme, the target DS is determined, the target GS is determined, and the optimal link path after the terminal is connected with the target GS is ensured, the link quality of the cloud game service is indirectly guaranteed, and therefore the final presentation effect of the cloud game is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a server scheduling method for a cloud game according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a server scheduling method for a cloud game according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a server scheduling method for a cloud game according to an embodiment of the present application;
fig. 4 is a schematic multi-end interaction diagram of a server scheduling method for a cloud game according to an embodiment of the present application;
fig. 5 is a block diagram illustrating a server scheduling apparatus for a cloud game according to an embodiment of the present disclosure;
fig. 6 is a block diagram illustrating a server scheduling apparatus for a cloud game according to an embodiment of the present disclosure;
fig. 7 is a block diagram illustrating a server scheduling apparatus for a cloud game according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device to which the embodiment of the present application is applied.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The cloud game is characterized in that a game running at a local end runs on a cloud server, the running result is transmitted to the local end through a network to present pictures and sounds, and the service quality of a connection link between the local end and the cloud server directly influences the final presenting effect of the cloud game.
Currently, the cloud server scheduling methods for cloud games generally include the following two methods:
the first method is as follows: according to the load condition of the cloud game server, a game server with available load is selected, and the game server is dispatched to the terminal, but the mode only considers whether the game server is available or not, the service quality of a connection link between the terminal and the selected game server cannot be guaranteed, and therefore the presenting effect of the cloud game cannot be guaranteed. The second method comprises the following steps: the load conditions of all game servers and the service quality of the connection link are listed on the display interface of the terminal, so that the user can select one game server to connect. However, in this manner, when the user selects a game server by himself, it is difficult to consider the load condition of the selected server and the service quality of the connection link, that is, the selected game server may be a game server with a large available load but a poor service quality of the connection link, or a game server with a good service quality of the connection link but a small available load, and thus the presentation effect of the cloud game cannot be ensured.
In view of the foregoing problems, an embodiment of the present application provides a server scheduling method for a cloud game, where an execution subject of the method is a central server bs (business set), and as shown in fig. 1, the method may include:
step S101, receiving a first scheduling request sent by a terminal, where the first scheduling request includes domain Name system (dns) information of the terminal.
Wherein the first scheduling request is a request sent by the terminal to the BS to schedule the DS list of the area server for the terminal. It is understood that the connection between the terminal and the BS may be wired or wireless, and is determined by the networking mode of the terminal.
The DNS information may specifically be an IP address.
Step S102, acquiring region information and operator information of the terminal based on the DNS information of the terminal.
In practical applications, the region information may correspond to an administrative division, for example, if the region information of the terminal a is "city a in a certain province", and the region information of the terminal B is "city B in a certain province", the region information of the terminal a and the region information of the terminal B are different. The operator information of the terminal refers to information of an operator providing a networking service for the terminal, for example, if the operator information of the terminal a is "operator a" and the operator information of the terminal B is "operator a", the operator information of the terminal a and the operator information of the terminal B are the same.
Specifically, the BS acquires DNS information of the terminal from the first scheduling request, and then analyzes region information and operator information of the terminal from the DNS information.
Step S103, based on the region information and the operator information of the terminal, and the region information, the operator information, and the load information of the region server DS (dispatch server) corresponding to the BS, sorting the DSs corresponding to the BS to obtain a DS list.
The region information and the operator information of the cloud server (including the DS and the GS) have the same meanings as those of the terminal. The load information of the cloud server may indicate a load condition on the cloud server, that is, whether there is an available load and a size of the available load.
Specifically, the terminal sends the first scheduling request to the BS, and the BS first needs to schedule the corresponding DS to the terminal, and in order to ensure the presentation effect of the cloud game, it needs to ensure the service quality of a connection link between the terminal and the DS after the terminal is connected to the DS. Due to the matching degree of the region information between the terminal and the cloud server, the matching degree of the operator information of the terminal and the cloud server, and the load information of the cloud server are all key factors influencing the service quality of a connection link after the terminal is connected with the cloud server. Further, the higher the matching degree of the region information between the terminal and the cloud server is, the higher the matching degree of the operator information of the terminal and the cloud server is, the larger the available load of the cloud server is, and the better the service quality of a connection link after the terminal is connected with the cloud server is.
Then, the matching degree of the region information between each DS and the terminal corresponding to the BS, the matching degree of the operator information between each DS and the terminal, and the load information of each DS may be used to determine the quality of service of the connection link after each DS and the terminal are connected, and then the DSs are sorted according to the quality of service sequence of the corresponding connection link to obtain the DS list.
The BS stores region information, operator information, and load information of each DS corresponding to the BS.
And step S104, sending the DS list to the terminal so that the terminal can try to connect with each DS in the DS list in sequence according to the list sequence until the terminal is successfully connected with one DS, and sending a second scheduling request to a target DS which is successfully connected so that the target DS schedules GS for the terminal according to the second scheduling request.
The terminal generally tries to connect to the corresponding DSs in sequence from the head of the DS list, and the DS corresponding to the head of the DS list is also generally the DS with the best quality of service for the connection link after connecting to the terminal (i.e., the DS list is arranged from the head to the tail of the list according to the quality of service from good to bad). In practical application, in the process of trying to connect, the probability that the DS corresponding to the head of the DS list is successfully connected is high, that is, the terminal generally needs to try to connect once to obtain the target DS.
Specifically, after the BS schedules the terminal to the optimal target DS, the terminal sends a second scheduling request to the target DS, so that the target DS schedules the GS for the terminal according to the second scheduling request. The process of scheduling GS for the terminal by the target DS may include: acquiring region information and operator information of a terminal based on DNS information of the terminal; acquiring region information and operator information of a terminal based on DNS information of the terminal; based on the region information and the operator information of the terminal, the region information, the operator information and the load information of each game server GS corresponding to the DS and the service quality of a corresponding connection link, sequencing each GS corresponding to the DS to obtain a GS list; and sending the GS list to the terminal so that the terminal can try to connect with each GS in the GS list in sequence according to the list sequence and establish a connection link with the target GS which is successfully connected.
In the process that the DS schedules the target GS for the terminal, the matching degree of the region information between each GS and the terminal corresponding to the target DS, the matching degree of the operator information of each GS and the terminal, the load information of each GS and the historical data of the service quality of the specified connection link of each GS are also utilized to determine the quality of the service of the connection link after each GS is connected with the terminal, and then the GS are sequenced according to the quality of service to obtain the GS list.
In the server scheduling method for the cloud game provided by the embodiment of the application, in the global scheduling stage of scheduling DSs for terminals by a BS, the matching degree of region information between each DS corresponding to the BS and the terminal, the matching degree of operator information between each DS and the terminal, and the load information of each DS are utilized to determine the quality of service of a connecting link after each DS is connected with the terminal, in the regional scheduling stage of scheduling GS for the terminals by a target DS, the matching degree of region information between each GS corresponding to the target DS and the terminal, the matching degree of operator information between each GS and the terminal, the load information of each GS, and the quality of service of the connecting link after each GS is connected with the terminal are utilized to determine the quality of the connecting link, according to the scheme, the target DS is determined first, the target GS is determined, and then the target GS is determined, and therefore, the optimal link path of the terminal connected with the target GS is ensured, the link quality of the cloud game service is indirectly ensured, and the final presentation effect of the cloud game is ensured.
In an optional embodiment of the present application, based on the region information and the operator information of the terminal, and the region information, the operator information, and the load information of each DS corresponding to the BS, each DS corresponding to the BS is sorted to obtain a DS list, which specifically includes:
obtaining a first sequencing score corresponding to each DS based on the matching degree of the region information of the terminal and the region information of each DS;
obtaining a second sequencing score corresponding to each DS based on the matching degree of the operator information of the terminal and the operator information of each DS;
obtaining a third sorting score corresponding to each DS based on the load information of each DS;
and determining the sequencing of the DSs based on the first sequencing scores, the second sequencing scores and the third sequencing scores to obtain a DS list.
The matching degree between the region information of the terminal and the region information of the DS may be measured by whether the geographic location of the terminal is the same as the geographic location of the DS, or may be measured by the distance between the geographic location of the terminal and the geographic location of the DS. For example, if the region information of the terminal is "a city in a certain province" and the region information of the DS is "B city in a certain province", the degree of matching between the region information of the terminal and the region information of each DS may be different between the terminal and the DS, or may be the distance between the a city and the B city. The matching degree of the operator information of the terminal and the operator information of the DS can be measured by whether the operator information of the terminal and the operator information of the DS are the same.
In practical applications, the first ranking score and the second ranking score may be set according to the corresponding matching degree, and the higher the matching degree is, the higher the corresponding ranking score is. For example, if the geographic location of the terminal is the same as the geographic location of the DS, the first ranking score is 1, otherwise, the first ranking score is 0; and if the operator information of the terminal is the same as the operator information of the DS, the second sorting score is 1, otherwise, the second sorting score is 0. The third rank score is set according to the size of the available load of the DS, for example, the third rank score is 1 when the available load of the DS is within a first load range, and the third rank score is other values when the available load of the DS is within other load ranges. It will be appreciated that for DSs with no available load, it can be directly excluded from the list of DSs, i.e., not involved in the sorting.
In an optional embodiment of the present application, determining the rank of each DS based on each first rank score, each second rank score, and each third rank score specifically includes:
determining the final sorting score of each DS based on each first sorting score, each second sorting score, each third sorting score, a first preset weight corresponding to the region information, a second preset weight corresponding to the operator information and a third preset weight corresponding to the load information;
and determining the sorting of each DS according to the final sorting score of each DS, wherein the higher the final sorting score of each DS is, the higher the sorting is.
In the process of sorting each DS, the first preset weight of the region information, the second preset weight of the operator information, and the third preset weight of the load information may be determined according to the degree of matching between the terminal and the DS region information, the degree of matching between the terminal and the operator information of the DS, and whether the DS has an available load on the service quality of the connection link in practical application. For example, the first preset weight may be set to 0.6, and the second preset weight and the third preset weight may be set to 0.2, respectively, that is, it indicates that the degree of matching between the terminal and the DS region information has a greater influence on the service quality of the connection link.
Specifically, for each DS, the final ranking score is obtained by summing the first ranking score, the second ranking score and the third ranking score of each DS multiplied by the corresponding preset weight value. The higher the first sequencing score is, the higher the matching degree of the DS and the regional information of the terminal is, the better the service quality of the corresponding connection link is; the higher the second sorting score is, the higher the matching degree of the DS and the operator information of the terminal is, the better the service quality of the corresponding connection link is; the higher the third ranking score, the higher the available load of the DS, and the better the quality of service of the corresponding link, then the higher the final ranking score, the better the quality of service of the corresponding link, and the earlier it is ranked in the list of DS (i.e., at the head of the list).
Fig. 2 is a schematic flowchart of a server scheduling method for a cloud game provided in an embodiment of the present application, where an execution subject of the method is a DS, and as shown in fig. 2, the method may include:
step S201, receiving a second scheduling request sent by the terminal, where the second scheduling request includes DNS information of the terminal.
Wherein the second scheduling request is a request sent by the terminal to the target DS for scheduling the GS for the terminal. It is understood that the connection mode between the terminal and the target DS may be a wired mode or a wireless mode, and is determined by the networking mode of the terminal.
Step S202, acquiring the region information and the operator information of the terminal based on the DNS information of the terminal.
Specifically, the target DS acquires DNS information of the terminal from the second scheduling request, and then resolves region information and operator information of the terminal from the DNS information.
Step S203, based on the region information and the operator information of the terminal, the region information, the operator information, the load information, and the service quality of the corresponding connection link of each GS corresponding to the DS, sorts each GS corresponding to the DS to obtain a GS list.
Here, the region information and the operator information of the GS have the same meanings as those of the terminal. The load information of the GS may indicate the load situation on the GS, i.e. whether there is available load and the size of the available load. The quality of service of the connection link corresponding to the GS may indicate the quality of service of the connection link between the GS and the other terminal.
Specifically, the terminal sends the second request to the target DS, the target DS needs to schedule the corresponding GS to the terminal, and in order to ensure the presentation effect of the remote application program, the service quality of a connection link between the terminal and the GS after the terminal is connected to the GS needs to be ensured. Due to the matching degree of the region information between the terminal and the cloud server, the matching degree of the operator information of the terminal and the operator information of the cloud server, the load information of the cloud server and the service quality of a connection link corresponding to the cloud server. Further, the higher the matching degree of the region information between the terminal and the cloud server is, the higher the matching degree of the terminal and the cloud server is, the larger the available load of the cloud server is, the higher the service quality of the connection link corresponding to the cloud server is, and the better the service quality of the connection link after the terminal is connected with the cloud server is.
Then, the quality of the service quality of the connection link after the connection between each GS and the terminal can be determined by using the matching degree of the region information between each GS and the terminal corresponding to the target DS, the matching degree of the operator information of each GS and the terminal, the load information of each GS, and the service quality of the connection link corresponding to each GS, and then the GS lists are obtained by sorting the GS according to the quality of the service of the corresponding connection link.
The target DS stores therein the region information, the operator information, the load information, and the service quality of the corresponding connection link of each GS.
And step S204, sending the GS list to the terminal, so that the terminal tries to connect with each GS in the GS list in sequence until the connection is successful, and establishing a connection link with the target GS which is successfully connected.
The terminal generally tries to connect with the corresponding GS in sequence from the head of the GS list, and the GS corresponding to the head of the GS list is also generally the GS with the best quality of service of the connection link after being connected with the terminal (i.e., the GS list is arranged from the head to the tail of the list according to the quality of service from good to bad). In practical application, in the process of trying to connect, the probability of successful connection of the GS corresponding to the head of the GS list is high, that is, the target GS can be obtained only by trying to connect once.
In the server scheduling method for the cloud game provided by the embodiment of the application, in the global scheduling stage of scheduling DSs for terminals by a BS, the matching degree of region information between each DS corresponding to the BS and the terminal, the matching degree of operator information between each DS and the terminal, and the load information of each DS are utilized to determine the quality of service of a connecting link after each DS is connected with the terminal, in the regional scheduling stage of scheduling GS for the terminals by a target DS, the matching degree of region information between each GS corresponding to the target DS and the terminal, the matching degree of operator information between each GS and the terminal, the load information of each GS, and the quality of service of the connecting link after each GS is connected with the terminal are utilized to determine the quality of the connecting link, according to the scheme, the target DS is determined first, the target GS is determined, and then the target GS is determined, and therefore, the optimal link path of the terminal connected with the target GS is ensured, the link quality of the cloud game service is indirectly ensured, and the final presentation effect of the cloud game is ensured.
In an optional embodiment of the present application, the corresponding connection link is a connection link between a GS and another terminal having the same regional information and the same operator information as the terminal.
It can be understood that the corresponding connection link is a connection link between the GS and another terminal having the same region information and operator information as the current terminal, and the corresponding connection link is the same as the connection link established between the GS and the current terminal, and under the condition that other factors are not changed, the corresponding connection link can accurately reflect the connection link established between the GS and the current terminal, so that the service quality of the corresponding connection link can be used as a basis for determining the service quality of the connection link established between the GS and the current terminal. In practical applications, generally, historical data of the service quality of the corresponding connection link is obtained.
In an optional embodiment of the present application, based on the region information and the operator information of the terminal, and the region information, the operator information, the load information, and the service quality of the corresponding connection link of the game server GS corresponding to the DS, the GS corresponding to the DS is sorted to obtain a GS list, which specifically includes:
obtaining a fourth sorting score corresponding to each GS based on the matching degree of the region information of the terminal and the region information of each GS;
obtaining a fifth sorting score corresponding to each GS based on the matching degree of the operator information of the terminal and the operator information of each GS;
obtaining a sixth sorting score corresponding to each GS based on the load information of each GS;
obtaining a seventh sorting score corresponding to each GS based on the service quality of the connection link corresponding to each GS;
and determining the ordering of the GS based on the fourth ordering scores, the fifth ordering scores, the sixth ordering scores and the seventh ordering scores to obtain a GS list.
The matching degree between the geographical information of the terminal and the geographical information of the GS may be measured by whether the geographical location of the terminal is the same as the geographical location of the GS, or may be measured by a distance between the geographical location of the terminal and the geographical location of the GS. For example, if the region information of the terminal is "city a in a certain province" and the region information of the GS is "city B in a certain province", the degree of matching between the region information of the terminal and the region information of each GS may be different between the terminal and the GS or may be a distance between city a and city B. The matching degree of the operator information of the terminal and the operator information of the GS can be measured by whether the operator information of the terminal and the operator information of the GS are the same.
In practical applications, the fourth ranking score and the fifth ranking score may be set according to the corresponding matching degree, and the higher the matching degree is, the higher the corresponding ranking score is. For example, if the geographic position of the terminal is the same as the geographic position of the GS, the fourth ranking score is 1, otherwise, the fourth ranking score is 0; and if the operator information of the terminal is the same as the operator information of the GS, the fifth sorting score is 1, otherwise, the fifth sorting score is 0. The sixth ranking score is set according to the magnitude of the available load of the GS, for example, the sixth ranking score is 1 when the available load of the GS is within the second load range, and the sixth ranking score is other values when the available load of the GS is within other load ranges. It will be appreciated that for DSs with no available load, it can be directly excluded from the list of DSs, i.e., not involved in the sorting. The seventh ranking score is set according to the quality of service value of the connection link corresponding to the GS, for example, when the quality of service of the connection link corresponding to the GS is in the first value range, the seventh ranking score is 1, and when the quality of service of the connection link corresponding to the GS is in another range, the seventh ranking score is another value.
In an optional embodiment of the present application, determining the ranking of each GS based on each fourth ranking score, each fifth ranking score, each sixth ranking score, and each seventh ranking score specifically includes:
determining the final sorting score of each GS based on each fourth sorting score, each fifth sorting score, each sixth sorting score, each seventh sorting score, a fourth preset weight corresponding to the region information, a fifth preset weight corresponding to the operator information, a sixth preset weight corresponding to the load information and a seventh preset weight corresponding to the service quality of the connecting link;
and determining the sequencing of each GS according to the final sequencing score of each GS, wherein the higher the final sequencing score of each GS is, the higher the sequencing is.
In the process of sorting the GS, the fourth preset weight of the region information, the fifth preset weight of the operator information, the sixth preset weight of the load information, and the seventh preset weight of the service quality of the corresponding connection link may be determined according to the degree of matching between the terminal and the GS region information in the actual application, the degree of matching between the terminal and the operator information of the GS, whether the GS has an available load, and the degree of influence of the service quality of the connection link corresponding to the GS on the service quality of the connection link. For example, the fourth preset weight, the fifth preset weight and the seventh preset weight may be respectively set to 0.2, and the seventh preset weight may be set to 0.4, that is, the service quality of the connection link corresponding to the GS is more influenced on the service quality of the connection link.
Specifically, for each GS, the final ranking score is obtained by summing the fourth ranking score, the fifth ranking score, the sixth ranking score and the seventh ranking score of each GS multiplied by corresponding preset weight values. The higher the fourth sorting score is, the higher the matching degree of the GS and the region information of the terminal is, the better the service quality of the corresponding connection link is; the higher the fifth ranking score is, the higher the matching degree of the GS and the operator information of the terminal is, the better the service quality of the corresponding connection link is; the higher the sixth ranking score is, the higher the available load of the GS is, and the better the service quality of the corresponding connection link is; the higher the seventh ranking score is, the better the quality of service of the corresponding connection link is, and the better the quality of service of the corresponding connection link is, the higher the final ranking score is, the better the quality of service of the corresponding connection link is, and the higher the ranking is in the GS list (i.e. the top of the list).
Fig. 3 is a schematic flowchart of a server scheduling method for a cloud game provided in an embodiment of the present application, where an execution subject of the method is a terminal, and as shown in fig. 3, the method may include:
step 301, when a start triggering operation of a cloud game is acquired, sending a first scheduling request to a central server BS, where the first scheduling request includes domain name system DNS information of a terminal, so that the BS acquires region information and operator information of the terminal based on the DNS information of the terminal, and sorts DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and region information, operator information, and load information of a regional server DS corresponding to the BS.
The cloud game starting triggering operation refers to an instruction for starting the cloud game, and the triggering operation can be a clicking operation on the cloud game and can be specific character or voice information input to the terminal.
Step 302, receiving the DS list sent by the BS, attempting to connect with each DS in the DS list in sequence until successful connection with one of the DS, and sending a second scheduling request to a target DS that is successfully connected, where the second scheduling request includes terminal DNS information, so that the target DS obtains terminal region information and operator information based on the terminal DNS information, and sorts each GS corresponding to the DS to obtain a GS list based on the terminal region information and operator information, and the region information, operator information, load information, and service quality of a corresponding connection link of each GS corresponding to the DS.
And step 303, receiving the GS list sent by the target DS, trying to connect with each GS in the GS list in sequence according to the list order until the connection with one GS is successful, and establishing a connection link with the target GS which is successfully connected.
In the server scheduling method for the cloud game provided by the embodiment of the application, in the global scheduling stage of scheduling DSs for terminals by a BS, the matching degree of region information between each DS corresponding to the BS and the terminal, the matching degree of operator information between each DS and the terminal, and the load information of each DS are utilized to determine the quality of service of a connecting link after each DS is connected with the terminal, in the regional scheduling stage of scheduling GS for the terminals by a target DS, the matching degree of region information between each GS corresponding to the target DS and the terminal, the matching degree of operator information between each GS and the terminal, the load information of each GS, and the quality of service of the connecting link after each GS is connected with the terminal are utilized to determine the quality of the connecting link, according to the scheme, the target DS is determined first, the target GS is determined, and then the target GS is determined, and therefore, the optimal link path of the terminal connected with the target GS is ensured, the link quality of the cloud game service is indirectly ensured, and the final presentation effect of the cloud game is ensured.
Fig. 4 is a schematic multi-end interaction diagram of a server scheduling method for a cloud game provided in an embodiment of the present application, and as shown in fig. 4, the scheme may include the following steps:
401. the terminal sends a first scheduling request to the BS; the first scheduling request comprises DNS information of the terminal;
402. the BS sends a DS list to the terminal; the BS acquires region information and operator information of the terminal based on DNS information of the terminal; sorting all DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and the region information, the operator information and the load information of all region server DSs corresponding to the BS;
403. the terminal sends a second scheduling request to the target DS; the terminal tries to connect with each DS in the DS list in sequence until the terminal is successfully connected with one DS, and sends a second scheduling request to a target DS which is successfully connected, wherein the second scheduling request comprises DNS information of the terminal;
404. the target DS sends a GS list to the terminal; the method comprises the steps that a target DS acquires region information and operator information of a terminal based on DNS information of the terminal, and sorts various GS corresponding to the DS to obtain a GS list based on the region information and the operator information of the terminal, the region information, the operator information and the load information of various GS corresponding to the DS and the service quality of a corresponding connection link;
405. the terminal establishes a connection link with a target GS; and the terminal receives the GS list sent by the target DS, tries to connect with each GS in the GS list in sequence according to the list sequence until the connection with one GS is successful, and establishes a connection link with the target GS which is successfully connected.
Fig. 5 is a block diagram illustrating a server scheduling apparatus for a cloud game according to an embodiment of the present invention, and as shown in fig. 5, the apparatus 500 includes: a first scheduling request receiving module 501, a first information obtaining module 502, a DS list obtaining module 503, and a DS list sending module 504, where:
the first scheduling request receiving module 501 is configured to receive a first scheduling request sent by a terminal, where the first scheduling request includes domain name system DNS information of the terminal;
the first information obtaining module 502 is configured to obtain region information and operator information of a terminal based on DNS information of the terminal;
the DS list acquisition module 503 is configured to sort the DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal, and the region information, the operator information, and the load information of the DSs corresponding to the BS;
the DS list sending module 504 is configured to send the DS list to the terminal, so that the terminal tries to connect with each DS in the DS list in sequence until the terminal is successfully connected with one of the DSs, and send a second scheduling request to a target DS that is successfully connected, so that the target DS schedules the game server GS for the terminal according to the second scheduling request.
The server scheduling device for the cloud games determines the quality of service of a connecting link after connection of each DS and a terminal by utilizing the matching degree of region information between each DS and the terminal corresponding to the BS, the matching degree of operator information between each DS and the terminal and the load information of each DS in the global scheduling stage of scheduling the DS for the terminal by the BS, determines the quality of service of the connecting link after connection of each GS and the terminal by utilizing the matching degree of the region information between each GS and the terminal corresponding to a target DS, the matching degree of the operator information between each GS and the terminal, the load information of each GS and the service quality of the connecting link corresponding to each GS in the regional scheduling stage of scheduling the GS for the terminal by the target DS, determines the quality of the connecting link according to the scheme, firstly determines the target DS and then determines the target GS, and therefore, the optimal link path of the terminal connected with the target GS is ensured, the link quality of the cloud game service is indirectly ensured, and the final presentation effect of the cloud game is ensured.
In an optional embodiment of the present application, the DS list obtaining module is specifically configured to:
obtaining a first sequencing score corresponding to each DS based on the matching degree of the region information of the terminal and the region information of each DS;
obtaining a second sequencing score corresponding to each DS based on the matching degree of the operator information of the terminal and the operator information of each DS;
obtaining a third sorting score corresponding to each DS based on the load information of each DS;
and determining the sequencing of the DSs based on the first sequencing scores, the second sequencing scores and the third sequencing scores to obtain a DS list.
In an optional embodiment of the present application, the DS list obtaining module is specifically configured to:
determining the final sorting score of each DS based on each first sorting score, each second sorting score, each third sorting score, a first preset weight corresponding to the region information, a second preset weight corresponding to the operator information and a third preset weight corresponding to the load information;
and determining the sorting of each DS according to the final sorting score of each DS, wherein the higher the final sorting score of each DS is, the higher the sorting is.
Fig. 6 is a block diagram of a server scheduling apparatus for a cloud game according to an embodiment of the present application, and as shown in fig. 6, the apparatus 600 includes: a second scheduling request receiving module 601, a second information obtaining module 602, an GS list obtaining module 603, and an GS list sending module 604, wherein:
the second scheduling request receiving module 601 is configured to receive a second scheduling request sent by a terminal, where the second scheduling request includes domain name system DNS information of the terminal;
the second information obtaining module 602 is configured to obtain region information and operator information of the terminal based on DNS information of the terminal;
the GS list obtaining module 603 is configured to rank, based on the region information and the operator information of the terminal, and the region information, the operator information, the load information, and the service quality of the corresponding connection link of each game server GS corresponding to the DS, each GS corresponding to the DS to obtain a GS list;
the GS list sending module 604 is configured to send the GS list to the terminal, so that the terminal sequentially attempts to connect with each GS in the GS list until the connection is successful, and establishes a connection link with the target GS which is successfully connected.
The server scheduling device for the cloud games determines the quality of service of a connecting link after connection of each DS and a terminal by utilizing the matching degree of region information between each DS and the terminal corresponding to the BS, the matching degree of operator information between each DS and the terminal and the load information of each DS in the global scheduling stage of scheduling the DS for the terminal by the BS, determines the quality of service of the connecting link after connection of each GS and the terminal by utilizing the matching degree of the region information between each GS and the terminal corresponding to a target DS, the matching degree of the operator information between each GS and the terminal, the load information of each GS and the service quality of the connecting link corresponding to each GS in the regional scheduling stage of scheduling the GS for the terminal by the target DS, determines the quality of the connecting link according to the scheme, firstly determines the target DS and then determines the target GS, and therefore, the optimal link path of the terminal connected with the target GS is ensured, the link quality of the cloud game service is indirectly ensured, and the final presentation effect of the cloud game is ensured.
In an optional embodiment of the present application, the GS list obtaining module is specifically configured to:
obtaining a fourth sorting score corresponding to each GS based on the matching degree of the region information of the terminal and the region information of each GS;
obtaining a fifth sorting score corresponding to each GS based on the matching degree of the operator information of the terminal and the operator information of each GS;
obtaining a sixth sorting score corresponding to each GS based on the load information of each GS;
obtaining a seventh sorting score corresponding to each GS based on the service quality of the connection link corresponding to each GS;
and determining the ordering of the GS based on the fourth ordering scores, the fifth ordering scores, the sixth ordering scores and the seventh ordering scores to obtain a GS list.
In an optional embodiment of the present application, the GS list obtaining module is specifically configured to:
determining the final sorting score of each GS based on each fourth sorting score, each fifth sorting score, each sixth sorting score, each seventh sorting score, a fourth preset weight corresponding to the region information, a fifth preset weight corresponding to the operator information, a sixth preset weight corresponding to the load information and a seventh preset weight corresponding to the service quality of the connecting link;
and determining the sequencing of each GS according to the final sequencing score of each GS, wherein the higher the final sequencing score of each GS is, the higher the sequencing is.
Fig. 7 is a block diagram illustrating a server scheduling apparatus for a cloud game according to an embodiment of the present application, where as shown in fig. 7, the apparatus 700 includes: a first scheduling request sending module 701, a second scheduling request sending module 702, and a target GS obtaining module 703, wherein:
the first scheduling request sending module 701 is configured to send a first scheduling request to a central server BS when a start triggering operation of a cloud game is obtained, where the first scheduling request includes domain name system DNS information of a terminal, so that the BS obtains region information and operator information of the terminal based on the DNS information of the terminal, and sorts DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and region information, operator information, and load information of a regional server DS corresponding to the BS;
the second scheduling request sending module 702 is configured to receive a DS list sent by a BS, attempt connection with each DS in the DS list in sequence until connection with one of the DS is successful, and send a second scheduling request to a target DS that is successfully connected, where the second scheduling request includes DNS information of a terminal, so that the target DS obtains, based on the DNS information of the terminal, region information and operator information of the terminal, and ranks, based on the region information and operator information of the terminal, and region information, operator information, load information, and service quality of a corresponding connection link of each game server GS corresponding to the DS, to obtain a GS list;
the target GS obtaining module 703 is configured to receive a GS list sent by the target DS, and attempt to connect with each GS in the GS list in sequence until the connection with one GS is successful, and establish a connection link with the target GS that is successfully connected.
The server scheduling device for the cloud games determines the quality of service of a connecting link after connection of each DS and a terminal by utilizing the matching degree of region information between each DS and the terminal corresponding to the BS, the matching degree of operator information between each DS and the terminal and the load information of each DS in the global scheduling stage of scheduling the DS for the terminal by the BS, determines the quality of service of the connecting link after connection of each GS and the terminal by utilizing the matching degree of the region information between each GS and the terminal corresponding to a target DS, the matching degree of the operator information between each GS and the terminal, the load information of each GS and the service quality of the connecting link corresponding to each GS in the regional scheduling stage of scheduling the GS for the terminal by the target DS, determines the quality of the connecting link according to the scheme, firstly determines the target DS and then determines the target GS, and therefore, the optimal link path of the terminal connected with the target GS is ensured, the link quality of the cloud game service is indirectly ensured, and the final presentation effect of the cloud game is ensured.
Based on the same principle, an embodiment of the present application further provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method provided in any optional embodiment of the present application is implemented, and the following specific cases may be implemented:
the first condition is as follows: receiving a first scheduling request sent by a terminal, wherein the first scheduling request comprises Domain Name System (DNS) information of the terminal; acquiring region information and operator information of a terminal based on DNS information of the terminal; sorting all DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and the region information, the operator information and the load information of all region server DSs corresponding to the BS; and sending the DS list to the terminal so that the terminal tries to connect with each DS in the DS list in sequence until the terminal is successfully connected with one DS, and sending a second scheduling request to a target DS which is successfully connected so that the target DS schedules a game server GS for the terminal according to the second scheduling request.
Case two: receiving a second scheduling request sent by the terminal, wherein the second scheduling request comprises Domain Name System (DNS) information of the terminal; acquiring region information and operator information of a terminal based on DNS information of the terminal; based on the region information and the operator information of the terminal, the region information, the operator information and the load information of each game server GS corresponding to the DS and the service quality of a corresponding connection link, sequencing each GS corresponding to the DS to obtain a GS list; and sending the GS list to the terminal so that the terminal can try to connect with each GS in the GS list in sequence until the connection is successful, and establishing a connection link with the target GS which is successfully connected.
Case three: when the starting triggering operation of the cloud game is acquired, a first scheduling request is sent to a center server BS, the first scheduling request comprises domain name system DNS information of a terminal, so that the BS acquires region information and operator information of the terminal based on the DNS information of the terminal, and sorts DS corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and region information, operator information and load information of a regional server DS corresponding to the BS; receiving a DS list sent by a BS, trying to connect with each DS in the DS list in sequence until the DS is successfully connected with one DS, sending a second scheduling request to a target DS which is successfully connected, wherein the second scheduling request comprises terminal DNS information, so that the target DS obtains terminal region information and operator information based on the terminal DNS information, and sorts each GS corresponding to the DS to obtain a GS list based on the terminal region information and operator information, and region information, operator information, load information and service quality of a corresponding connection link of each game server GS corresponding to the target DS; and receiving a GS list sent by the target DS, trying to connect with each GS in the GS list in sequence until the connection with one GS is successful, and establishing a connection link with the target GS which is successfully connected.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method shown in any embodiment of the present application.
It is understood that the medium may store a computer program corresponding to a server scheduling method of a cloud game.
Fig. 8 is a schematic structural diagram of an electronic device to which the embodiment of the present application is applied, and as shown in fig. 8, an electronic device 800 shown in fig. 8 includes: a processor 801 and a memory 803. Wherein the processor 801 is coupled to a memory 803, such as via a bus 802. Further, the electronic device 800 may also include a transceiver 804, and the electronic device 800 may interact with other electronic devices through the transceiver 804. It should be noted that the transceiver 804 is not limited to one in practical applications, and the structure of the electronic device 800 is not limited to the embodiment of the present application.
The processor 801 is applied to this embodiment, and may be configured to implement the functions of the first scheduling request receiving module, the first information obtaining module, the DS list obtaining module, and the DS list sending module shown in fig. 5, the functions of the second scheduling request receiving module, the second information obtaining module, the GS list obtaining module, and the GS list sending module shown in fig. 6, and the functions of the first scheduling request sending module, the second scheduling request sending module, and the target GS obtaining module shown in fig. 7.
The processor 801 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 801 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 802 may include a path that transfers information between the above components. The bus 802 may be a PCI bus or an EISA bus, etc. The bus 802 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
The memory 803 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 803 is used for storing application program code for performing the present solution and is controlled in execution by the processor 801. The processor 801 is configured to execute the application program codes stored in the memory 803 to implement the actions of the server scheduling apparatus of the cloud game provided by the embodiment shown in fig. 5, fig. 6 or fig. 7.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (13)

1. A server scheduling method of a cloud game is applied to a central server BS, and comprises the following steps:
receiving a first scheduling request sent by a terminal, wherein the first scheduling request comprises Domain Name System (DNS) information of the terminal;
acquiring region information and operator information of the terminal based on DNS information of the terminal;
sorting all DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and the region information, the operator information and the load information of all region server DSs corresponding to the BS;
and sending the DS list to the terminal so that the terminal can try to connect with each DS in the DS list in sequence until the terminal is successfully connected with one DS, and sending a second scheduling request to a target DS which is successfully connected so that the target DS schedules a game server GS for the terminal according to the second scheduling request.
2. The method of claim 1, wherein the sorting the DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and the region information, the operator information, and the load information of the DSs corresponding to the BS specifically comprises:
obtaining a first sequencing score corresponding to each DS based on the matching degree of the region information of the terminal and the region information of each DS;
obtaining a second sorting score corresponding to each DS based on the matching degree of the operator information of the terminal and the operator information of each DS;
obtaining a third sorting score corresponding to each DS based on the load information of each DS;
and determining the sequencing of the DSs based on the first sequencing scores, the second sequencing scores and the third sequencing scores to obtain the DS list.
3. The method of claim 2, wherein determining the rank of each DS based on each first rank score, each second rank score, and each third rank score comprises:
determining the final sorting score of each DS based on each first sorting score, each second sorting score, each third sorting score, a first preset weight corresponding to the region information, a second preset weight corresponding to the operator information and a third preset weight corresponding to the load information;
and determining the sorting of each DS according to the final sorting score of each DS, wherein the higher the final sorting score of each DS is, the higher the sorting is.
4. A server scheduling method of a cloud game is applied to a region server (DS), and comprises the following steps:
receiving a second scheduling request sent by a terminal, wherein the second scheduling request comprises Domain Name System (DNS) information of the terminal;
acquiring region information and operator information of the terminal based on DNS information of the terminal;
based on the region information and the operator information of the terminal, the region information, the operator information and the load information of each game server GS corresponding to the DS, and the service quality of a corresponding connection link, sequencing each GS corresponding to the DS to obtain a GS list;
and sending the GS list to the terminal, so that the terminal can try to connect with each GS in the GS list in sequence until the connection is successful, and establishing a connection link with the target GS which is successfully connected.
5. The method according to claim 4, wherein the corresponding connection link is a connection link between a GS and another terminal having the same regional information and operator information as the terminal.
6. The method according to claim 4 or 5, wherein the sorting of the GS corresponding to the DS to obtain a GS list based on the region information and the operator information of the terminal, the region information, the operator information, the load information of the game server GS corresponding to the DS, and the service quality of the corresponding connection link specifically comprises:
obtaining a fourth sorting score corresponding to each GS based on the matching degree of the region information of the terminal and the region information of each GS;
obtaining a fifth sorting score corresponding to each GS based on the matching degree of the operator information of the terminal and the operator information of each GS;
obtaining a sixth sorting score corresponding to each GS based on the load information of each GS;
obtaining a seventh sorting score corresponding to each GS based on the service quality of the connection link corresponding to each GS;
and determining the ordering of the GS based on the fourth ordering scores, the fifth ordering scores, the sixth ordering scores and the seventh ordering scores to obtain the GS list.
7. The method according to claim 6, wherein determining the ranking of the GS based on the fourth ranking scores, the fifth ranking scores, the sixth ranking scores, and the seventh ranking scores comprises:
determining the final sorting score of each GS based on each fourth sorting score, each fifth sorting score, each sixth sorting score, each seventh sorting score, a fourth preset weight corresponding to the region information, a fifth preset weight corresponding to the operator information, a sixth preset weight corresponding to the load information and a seventh preset weight corresponding to the service quality of the connecting link;
and determining the sequencing of each GS according to the final sequencing score of each GS, wherein the higher the final sequencing score of each GS is, the higher the sequencing is.
8. A server scheduling method of a cloud game is applied to a terminal and comprises the following steps:
when the starting triggering operation of the cloud game is acquired, a first scheduling request is sent to a central server BS, wherein the first scheduling request comprises Domain Name System (DNS) information of the terminal, so that the BS acquires region information and operator information of the terminal based on the DNS information of the terminal, and sorts DSs corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and region information, operator information and load information of a regional server DS corresponding to the BS;
receiving the DS list sent by the BS, trying to connect with each DS in the DS list in sequence until the DS is successfully connected with one DS, sending a second scheduling request to a target DS which is successfully connected, wherein the second scheduling request comprises DNS information of the terminal, so that the target DS can acquire region information and operator information of the terminal based on the DNS information of the terminal, and sort the GS corresponding to the DS to obtain a GS list based on the region information and the operator information of the terminal, the region information, the operator information, the load information and the service quality of a corresponding connection link of each game server GS corresponding to the target DS;
and receiving the GS list sent by the target DS, trying to connect with each GS in the GS list in sequence until the connection with one GS is successful, and establishing a connection link with the target GS which is successfully connected.
9. A server scheduling apparatus for a cloud game, comprising:
the first scheduling request receiving module is used for receiving a first scheduling request sent by a terminal, wherein the first scheduling request comprises Domain Name System (DNS) information of the terminal;
the first information acquisition module is used for acquiring region information and operator information of the terminal based on DNS information of the terminal;
a DS list acquisition module, configured to rank, based on the region information and the operator information of the terminal, and the region information, the operator information, and the load information of each DS of the regional servers corresponding to the BS, each DS corresponding to the BS to obtain a DS list;
and the DS list sending module is used for sending the DS list to the terminal so that the terminal can try to connect with each DS in the DS list in sequence until the terminal is successfully connected with one DS, and sending a second scheduling request to a target DS which is successfully connected so that the target DS schedules the game server GS for the terminal according to the second scheduling request.
10. A server scheduling apparatus for a cloud game, comprising:
the second scheduling request receiving module is used for receiving a second scheduling request sent by a terminal, wherein the second scheduling request comprises Domain Name System (DNS) information of the terminal;
the second information acquisition module is used for acquiring the region information and the operator information of the terminal based on the DNS information of the terminal;
a GS list obtaining module, configured to rank, based on the region information and the operator information of the terminal, and the region information, the operator information, the load information, and the service quality of the corresponding connection link of each game server GS corresponding to the DS, each GS corresponding to the DS to obtain a GS list;
and the GS list sending module is used for sending the GS list to the terminal so that the terminal can try to connect with each GS in the GS list in sequence until the connection is successful, and establishing a connection link with the target GS which is successfully connected.
11. A server scheduling apparatus for a cloud game, comprising:
the first scheduling request sending module is used for sending a first scheduling request to a central server BS when the start triggering operation of the cloud game is obtained, wherein the first scheduling request comprises Domain Name System (DNS) information of the terminal, so that the BS obtains region information and operator information of the terminal based on the DNS information of the terminal, and sorts DS corresponding to the BS to obtain a DS list based on the region information and the operator information of the terminal and region information, operator information and load information of a regional server DS corresponding to the BS;
a second scheduling request sending module, configured to receive the DS list sent by the BS, attempt to connect with each DS in the DS list in sequence until the DS is successfully connected with one of the DS, and send a second scheduling request to a target DS that is successfully connected, where the second scheduling request includes DNS information of the terminal, so that the target DS obtains, based on the DNS information of the terminal, region information and operator information of the terminal, and sorts, based on the region information, operator information, load information, and quality of service of a connection link corresponding to each game server GS corresponding to the DS, each GS corresponding to the target DS to obtain a GS list;
and the target GS acquisition module is used for receiving the GS list sent by the target DS, trying to connect with each GS in the GS list in sequence until the connection with one GS is successful, and establishing a connection link with the target GS which is successfully connected.
12. An electronic device comprising a memory and a processor;
the memory has stored therein a computer program;
the processor for executing the computer program to implement the method of any one of claims 1 to 8.
13. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method of any one of claims 1 to 8.
CN201910893824.9A 2019-09-20 2019-09-20 Server scheduling method and device for cloud game and readable storage medium Pending CN111800447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910893824.9A CN111800447A (en) 2019-09-20 2019-09-20 Server scheduling method and device for cloud game and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910893824.9A CN111800447A (en) 2019-09-20 2019-09-20 Server scheduling method and device for cloud game and readable storage medium

Publications (1)

Publication Number Publication Date
CN111800447A true CN111800447A (en) 2020-10-20

Family

ID=72805524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910893824.9A Pending CN111800447A (en) 2019-09-20 2019-09-20 Server scheduling method and device for cloud game and readable storage medium

Country Status (1)

Country Link
CN (1) CN111800447A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422367A (en) * 2020-11-11 2021-02-26 成都渊数科技有限责任公司 Method and system for realizing network delay detection by cloud control strategy and multi-protocol
CN112436981A (en) * 2020-11-16 2021-03-02 成都渊数科技有限责任公司 Method and system for measuring network flow by cloud control strategy and multi-protocol implementation
CN112583948A (en) * 2020-11-23 2021-03-30 北京三快在线科技有限公司 Domain name loading method and device, electronic equipment and storage medium
CN115412738A (en) * 2021-05-26 2022-11-29 武汉斗鱼网络科技有限公司 Server scheduling method and device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6397072B1 (en) * 1998-12-22 2002-05-28 Alcatel Service means to provide a service to a user, method realized by such a service means and a telecommunication network including such a service means
KR20150015598A (en) * 2013-07-31 2015-02-11 정준성 Method for managing game item mediation service, system and computer-readable medium recording the method
CN105721423A (en) * 2014-12-19 2016-06-29 三星电子株式会社 Electronic Apparatus, Cloud Server, Game Service Providing System And Game Service Providing Method Thereof
CN107493331A (en) * 2017-08-16 2017-12-19 网宿科技股份有限公司 A kind of client access method, server and system
CN107635015A (en) * 2017-10-25 2018-01-26 深圳市和讯华谷信息技术有限公司 The optimal route selection system and method that mobile terminal links with server end
CN108654092A (en) * 2018-04-17 2018-10-16 网宿科技股份有限公司 A kind of method and apparatus of synchronous cloud game archives

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6397072B1 (en) * 1998-12-22 2002-05-28 Alcatel Service means to provide a service to a user, method realized by such a service means and a telecommunication network including such a service means
KR20150015598A (en) * 2013-07-31 2015-02-11 정준성 Method for managing game item mediation service, system and computer-readable medium recording the method
CN105721423A (en) * 2014-12-19 2016-06-29 三星电子株式会社 Electronic Apparatus, Cloud Server, Game Service Providing System And Game Service Providing Method Thereof
CN107493331A (en) * 2017-08-16 2017-12-19 网宿科技股份有限公司 A kind of client access method, server and system
CN107635015A (en) * 2017-10-25 2018-01-26 深圳市和讯华谷信息技术有限公司 The optimal route selection system and method that mobile terminal links with server end
CN108654092A (en) * 2018-04-17 2018-10-16 网宿科技股份有限公司 A kind of method and apparatus of synchronous cloud game archives

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422367A (en) * 2020-11-11 2021-02-26 成都渊数科技有限责任公司 Method and system for realizing network delay detection by cloud control strategy and multi-protocol
CN112422367B (en) * 2020-11-11 2021-10-22 成都渊数科技有限责任公司 Method and system for realizing network delay detection by cloud control strategy and multi-protocol
CN112436981A (en) * 2020-11-16 2021-03-02 成都渊数科技有限责任公司 Method and system for measuring network flow by cloud control strategy and multi-protocol implementation
CN112436981B (en) * 2020-11-16 2021-10-15 成都渊数科技有限责任公司 Method and system for measuring network flow by cloud control strategy and multi-protocol implementation
CN112583948A (en) * 2020-11-23 2021-03-30 北京三快在线科技有限公司 Domain name loading method and device, electronic equipment and storage medium
CN115412738A (en) * 2021-05-26 2022-11-29 武汉斗鱼网络科技有限公司 Server scheduling method and device and storage medium
CN115412738B (en) * 2021-05-26 2023-09-08 广西三方大供应链技术服务有限公司 Scheduling method and device of server and storage medium

Similar Documents

Publication Publication Date Title
CN111800447A (en) Server scheduling method and device for cloud game and readable storage medium
CN108762907B (en) Task processing method and system based on multiple clients
CN110138652B (en) Session updating method and device and client device
CN111991803B (en) Cloud game switching method and device and computer readable storage medium
CN108600399A (en) Information-pushing method and Related product
JP2019215865A (en) Method for displaying chat room list and medium
CN112040407B (en) Beacon data processing method and device, electronic equipment and readable storage medium
CN112138376A (en) Cloud game archiving method and device and electronic equipment
CN110708360A (en) Information processing method and system and electronic equipment
CN108229133B (en) Service operation method and device and service permission obtaining method and device
CN112148393A (en) User team forming method based on social platform mini-game
CN106911559B (en) Method and device for establishing voice connection
CN107330069B (en) Multimedia data processing method and device, server and storage medium
EP4176950A1 (en) Data processing method and apparatus, device, and storage medium
US10785602B2 (en) Information processing method and apparatus
CN108923938B (en) Channel selection method and equipment
CN111311150B (en) Distribution task grouping method, platform, electronic equipment and storage medium
CN109150720A (en) Business chain message forwarding method, device, equipment and computer readable storage medium
CN114549106A (en) Method and device for displaying merchant information, storage medium and electronic equipment
CN113807912A (en) Method and computer program product for dynamically matching user and broker connections
CN112612401A (en) Prompt message processing method, device, system, equipment and storage medium
CN109102415A (en) Data processing method and system
CN106844502B (en) Data consistency processing method and equipment
CN115226152B (en) Communication method, system, electronic equipment and storage medium of satellite network
CN113115200B (en) User relationship identification method and device and computing equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201020

RJ01 Rejection of invention patent application after publication