CN113438696A - Mobile terminal switching method, device, equipment and storage medium - Google Patents

Mobile terminal switching method, device, equipment and storage medium Download PDF

Info

Publication number
CN113438696A
CN113438696A CN202110688910.3A CN202110688910A CN113438696A CN 113438696 A CN113438696 A CN 113438696A CN 202110688910 A CN202110688910 A CN 202110688910A CN 113438696 A CN113438696 A CN 113438696A
Authority
CN
China
Prior art keywords
edge node
mobile terminal
state data
server
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110688910.3A
Other languages
Chinese (zh)
Other versions
CN113438696B (en
Inventor
李鹤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
MIGU Interactive Entertainment Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Interactive Entertainment Co Ltd
MIGU Culture Technology 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 China Mobile Communications Group Co Ltd, MIGU Interactive Entertainment Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110688910.3A priority Critical patent/CN113438696B/en
Publication of CN113438696A publication Critical patent/CN113438696A/en
Application granted granted Critical
Publication of CN113438696B publication Critical patent/CN113438696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a mobile terminal switching method, a device, equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps that when a mobile terminal is connected with a first edge node of a server side, state data are obtained, and when the mobile terminal is detected to move, first moving information of the mobile terminal is obtained; based on the first mobile information, pre-estimating a second edge node of the server side, and sending the state data to the second edge node; and when a preset switching condition is met, switching the mobile terminal and the first edge node into the second edge node so that the mobile terminal can interact with the second edge node based on the state data. The application copies the state data on the previous first edge node in advance, and then dynamically and invisibly switches the mobile terminal to the second edge node without interrupting the connection process of the mobile terminal, such as a game process.

Description

Mobile terminal switching method, device, equipment and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method, an apparatus, a device, and a storage medium for switching a mobile terminal.
Background
With the development of video streams such as hand games, it is possible for a user to play video streams such as cloud games on a vehicle moving at a high speed such as a high-speed rail, however, since the displacement, speed and direction of the vehicle in operation often change and the amplitude of the change in displacement is generally large, service nodes connected to a mobile terminal often change, for example, there are service nodes, that is, edge nodes, in both Nanjing and Shanghai to provide cloud game services, the user sits on the high-speed rail from Nanjing to Shanghai, and plays cloud games all the time in the process, when the user starts playing games, it is obvious that the service is provided by the edge nodes in Nanjing, and when the user is closer to the edge nodes in Shanghai than the edge nodes in Nanjing, the service nodes corresponding to the terminal change such as to switch the edge nodes connected to Shanghai. In the prior art, when the terminal is switched to be connected to the edge node in the Shanghai, the video stream of the mobile terminal is interrupted, such as game interruption.
Disclosure of Invention
The present application mainly aims to provide a mobile terminal switching method, apparatus, device and storage medium, and aims to solve the technical problem that when an existing mobile terminal switches a connection service node, a video stream service of the mobile terminal is interrupted.
In order to achieve the above object, the present application provides a mobile terminal switching method, where the mobile terminal switching method includes:
when detecting that a mobile terminal connected with a first edge node of a server side moves, acquiring first movement information of the mobile terminal;
the method comprises the steps that when a mobile terminal is connected with a first edge node of a server side, state data are obtained, and when the mobile terminal is detected to move, first moving information of the mobile terminal is obtained;
based on the first mobile information, pre-estimating a second edge node of the server side, and sending the state data to the second edge node;
and when a preset switching condition is met, switching the mobile terminal and the first edge node into the second edge node so that the mobile terminal can interact with the second edge node based on the state data.
Optionally, the first moving information includes a first position and a first moving speed of the mobile terminal, and the step of predicting the second edge node at the server based on the first moving information includes:
determining a second position of each edge node of the server side;
estimating the inclined position of the mobile terminal according to the first position and the first moving speed;
and determining a second edge node to be connected with the mobile terminal according to the inclined position and the second position.
Optionally, before the step of switching from the first edge node to the second edge node when a preset switching condition is met, the method includes:
estimating the moving time required by the mobile terminal to move to the second edge node;
determining a first preset time period according to the moving time, and determining a first distance from the mobile terminal to the first edge node and a second distance from the mobile terminal to the second edge node at intervals of the first preset time period;
and if the first distance is greater than or equal to the second distance, determining that a preset switching condition is met.
Optionally, each edge node of the server side includes an instance server and a control server, and a communication connection is established between the instance servers of each edge node; the step of sending the state data to the second edge node comprises:
sending, by the instance server of the first edge node, the state data to a control server of the first edge node;
sending the state data to a control server of the second edge node based on the control server of the first edge node;
and the control server for controlling the second edge node sends the state data to the instance server of the second edge node.
Optionally, after the step of sending the status data to the second edge node, the method includes:
if a re-estimation instruction is detected, determining a third edge node of the server side;
sending the state data to the third edge node.
Optionally, before the step of determining the third edge node at the server end when the re-estimation instruction is detected, the method includes:
determining a second preset time period, and acquiring a second moving speed of the mobile terminal every other second preset time period;
determining a movement included angle between the second movement speed and a first movement speed in the first movement information;
and if the moving included angle is larger than or equal to a preset included angle, confirming that a re-estimated instruction is detected.
Optionally, the step of sending the status data to the third edge node includes:
if all the state data are sent to the second edge node, determining a third distance between the second edge node and the third edge node and a fourth distance between the first edge node and the third edge node; when the third distance is greater than or equal to the fourth distance, controlling the second edge node to send the state data to the third edge node;
and if the state data are not completely sent to the second edge node, controlling the first edge node to send the state data to the third edge node.
The present application further provides a mobile terminal switching device, the mobile terminal switching device includes:
the first acquisition module is used for acquiring state data when the mobile terminal is connected with a first edge node of the server side;
the second acquisition module is used for acquiring first movement information of the mobile terminal when the mobile terminal is detected to move;
the first pre-estimation module is used for pre-estimating a second edge node of the server side based on the first mobile information;
a first sending module, configured to send the status data to the second edge node;
and the switching module is used for switching the first edge node into the second edge node when a preset switching condition is met, so that the mobile terminal can interact with the second edge node based on the state data.
Optionally, the first estimation module includes:
a first determining unit, configured to determine a second position of each edge node of the server;
the first estimation unit is used for estimating the inclined position of the mobile terminal according to the first position and the first moving speed;
the first determining unit is further configured to determine a second edge node to be connected to the mobile terminal according to the inclined position and the second position.
Optionally, the apparatus comprises:
the second pre-estimating module is used for pre-estimating the moving time required by the mobile terminal to move to the second edge node;
a first determining module, configured to determine a first preset time period according to the moving time, and determine, every interval of the first preset time period, a first distance from the mobile terminal to the first edge node and a second distance from the mobile terminal to the second edge node;
and the judging module is used for determining that a preset switching condition is met if the first distance is greater than or equal to the second distance.
Optionally, each edge node of the server side includes an instance server and a control server, and a communication connection is established between the instance servers of each edge node; the first obtaining module comprises:
a first obtaining unit, configured to send the state data to a control server of the first edge node through an instance server of the first edge node;
a first sending unit, configured to send the state data to a control server of the second edge node based on the control server of the first edge node;
and the second sending unit is used for controlling the control server of the second edge node and sending the state data to the instance server of the second edge node.
Optionally, the apparatus further comprises:
the second determining module is used for determining a third edge node of the server side if the re-estimation instruction is detected;
a second sending module, configured to send the state data to the third edge node.
Optionally, the apparatus further comprises:
a third determining module, configured to determine a second preset time period, and obtain a second moving speed of the mobile terminal every other second preset time period;
a third obtaining module, configured to determine a movement included angle between the second movement speed and the first movement speed in the first movement information;
and the triggering module is used for confirming that a re-estimated instruction is detected if the moving included angle is larger than or equal to a preset included angle.
Optionally, the first sending module comprises:
a second determining unit, configured to determine a third distance between the second edge node and the third edge node and a fourth distance between the first edge node and the third edge node if all the state data is sent to the second edge node;
a third sending unit, configured to control the second edge node to send the state data to the third edge node when the third distance is greater than or equal to the fourth distance;
a fourth sending unit, configured to control the first edge node to send the state data to the third edge node if all the state data are not sent to the second edge node.
The present application further provides a mobile terminal switching device, where the mobile terminal switching device is an entity node device, and the mobile terminal switching device includes: a memory, a processor and a program of the mobile terminal handover method stored on the memory and executable on the processor, which when executed by the processor, may implement the steps of the mobile terminal handover method as described above.
The present application further provides a storage medium having stored thereon a program for implementing the above-mentioned mobile terminal handover method, wherein the program for implementing the mobile terminal handover method implements the steps of the above-mentioned mobile terminal handover method when executed by a processor.
The present application also provides a computer program product, comprising a computer program, which when executed by a processor, implements the steps of the above-described mobile terminal handover method.
Compared with the prior art that video streaming service of a mobile terminal is interrupted when the mobile terminal is switched to connect with a service node, the method, the device, the equipment and the storage medium for switching the mobile terminal have the advantages that in the method, the mobile terminal acquires state data when being connected with a first edge node of a server side, and acquires first mobile information of the mobile terminal when detecting that the mobile terminal moves; based on the first mobile information, pre-estimating a second edge node of the server side, and sending the state data to the second edge node; and when a preset switching condition is met, switching the mobile terminal and the first edge node into the second edge node so that the mobile terminal can interact with the second edge node based on the state data. That is, in the present application, the state data on the previous first edge node has been copied in advance before the edge node, i.e., the service node, is switched, so that the mobile terminal can be dynamically and noninductively switched to the second edge node, and the video stream service process of the mobile terminal is not interrupted.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a mobile terminal handover method according to a first embodiment of the present application;
fig. 2 is a flowchart illustrating a detailed step of step S20 in the handover method of the mobile terminal according to the present application;
fig. 3 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In a first embodiment of the method for switching a mobile terminal of the present application, the method is applied to a server side, where the server side includes a plurality of edge nodes, and referring to fig. 1, the method for switching a mobile terminal includes:
step S10, when the mobile terminal is connected with the first edge node of the server, the mobile terminal acquires the state data, and when the mobile terminal is detected to move, the mobile terminal acquires the first movement information of the mobile terminal;
step S20, pre-estimating a second edge node of the server end based on the first mobile information, and sending the state data to the second edge node;
step S30, when a preset switching condition is satisfied, switching the first edge node to the second edge node, so that the mobile terminal interacts with the second edge node based on the state data.
The method comprises the following specific steps:
step S10, when the mobile terminal is connected with the first edge node of the server, the mobile terminal acquires the state data, and when the mobile terminal is detected to move, the mobile terminal acquires the first movement information of the mobile terminal;
in this embodiment, it should be noted that the mobile terminal switching method may be applied to a server side, and may also be applied to a mobile terminal switching system composed of the server side and a corresponding mobile terminal, where the mobile terminal switching system is subordinate to a mobile terminal switching device.
In this embodiment, when the mobile terminal is connected to the first edge node of the server, state data is acquired, where the state data refers to data such as a progress of a game, a node of the game, a screen parameter of the game, and a scene of the game.
In this embodiment, the server and the mobile terminal perform a communication connection, where the communication connection specifically refers to: the server side transmits audio and video streams to the mobile terminal, the mobile terminal transmits an operation instruction stream to the server side, specifically, the server side transmits game audio and video streams to the mobile terminal, and the mobile terminal transmits a game operation instruction stream to the server side, so that each user can realize cloud playing of a game on the mobile terminal.
In this embodiment, the specific application scenarios may be: the user plays a cloud game on a vehicle moving at a high speed (the vehicle spans different cities or different areas), and because the vehicle spans different areas or different cities, when the vehicle travels to different cities or different areas, the mobile terminal needs to be in communication connection with service nodes in different areas of a server end based on the requirements of time delay and experience, for example, the user plays the cloud game all the time from south Beijing to Shanghai while sitting on a high-speed rail, when the user starts playing the game, it is obvious that the mobile terminal is served by the service node of south Beijing, when the user is closer to the service node of Shanghai than the service node of south Beijing, the terminal needs to be switched to the service node of Shanghai, in the prior art, when the terminal is switched to the service node of Shanghai, the game interruption or connection interruption of the mobile terminal is caused, that is, when the terminal is switched to the service node in shanghai, since the service node in shanghai does not store the state data corresponding to the game (the corresponding state data is at the service node in Nanjing), the game service may be interrupted first until the service node in shanghai has acquired or copied the state data, which obviously seriously affects the user experience.
In this embodiment, since the handover connection generally occurs at the boundary (edge) of the city, the service node is called an edge node, or an edge computing node, and in this embodiment, the specific edge node may refer to: and the sub-resource servers or the sub-computing servers are positioned at the server sides of different city boundaries.
In this embodiment, since the state data is copied to the estimated edge node in advance, the state data does not need to be temporarily acquired when the edge node is switched (resulting in a serious time delay of the game), thereby avoiding interruption of the game and further improving the experience.
In this embodiment, the server includes a plurality of edge nodes.
In this embodiment, it should be noted that the server specifically includes an instance server (denoted by M) and a control server (denoted by S), specifically, an ICE connection is established with the mobile terminal through the instance server, the instance server transmits game audio and video streams to the mobile terminal, and the mobile terminal transmits a game operation instruction stream to the instance server.
In this embodiment, it should be noted that the first edge node may be E0, the second edge node is E1 or Ea (Ea before switching (edge node may be changed), and E1 during or after switching), the control server in E1 is S1, the instance server is M1, the control server in E0 is S0, and the instance server is M0.
In this embodiment, when a mobile terminal start instruction is detected, a cloud game instance M0 is started on E0, so that an ICE connection is established between a mobile terminal (UE) and M0, an audio/video stream is transmitted from M0 to the UE, the UE transmits an operation instruction stream to M0, and a time t0 at this time can be recorded.
That is, when the mobile terminal is started, the server determines a set Ce of all edge nodes capable of providing service for the mobile terminal, and when the user equipment UE initiates a resource application, a first edge node E0 closest to the terminal is allocated according to the current geographical location, and E0 belongs to Ce;
when detecting that a mobile terminal connected with a first edge node moves, recording a time t1 at this time, and acquiring first movement information of the mobile terminal, specifically, when the UE displaces, the UE reports the position information, the displacement direction, and the speed to a server (specifically, implemented by the first edge node).
Step S20, pre-estimating a second edge node of the server end based on the first mobile information, and sending the state data to the second edge node;
and estimating a second edge node to be connected with the mobile terminal based on the first mobile information, wherein the second edge node to be connected with the mobile terminal is possibly required to be switched to the edge node Ea.
In this embodiment, the manner of determining the second edge node to be connected may be:
the first method is as follows: acquiring a target position preset by the mobile terminal, and determining a second edge node according to the target position;
the second method comprises the following steps: if the fact that the user corresponding to the mobile terminal moves on the high-speed rail is detected, ticket information of the user corresponding to the mobile terminal can be collected, and a second edge node is determined according to the ticket information;
the third method comprises the following steps: referring to fig. 2, the first mobility information includes a first location and a first mobility speed of the mobile terminal, and the step of predicting the second edge node at the server based on the first mobility information includes:
step S21, determining a second position of each edge node of the server side;
in this embodiment, the second position of each edge node (including the first edge node) is determined, and vectors D0, D1, and … … Dn corresponding to each edge node are formed by taking the current position of the UE as a starting point and the positions of other edge nodes as end points. In this embodiment, the second position of each edge node refers to a position where the control server corresponding to each edge node is located.
In the present embodiment, the first position and the first moving speed in the first moving information are also acquired.
Step S22, estimating the inclined position of the mobile terminal according to the first position and the first moving speed;
and step S23, determining a second edge node to be connected with the mobile terminal according to the inclined position and the second position.
In this embodiment, the current position (i.e., the first position) of the UE is taken as a starting point, the running speed v1 is taken as a direction, the included angles between v1 and D0 and D1 … … Dn are respectively calculated to obtain a0 and a1 … … An, the a0 and a1 … … An belong to the set Ca, the minimum value of Ca is taken as a, that is, a is min (Ca), the inclined position of the mobile terminal is estimated through the a, the inclined position is the position of the mobile terminal in the moving process along the direction, the second position closest to the inclined position is further determined (the second position is the shortest from the perpendicular segment of the direction), and Ea is obtained, that is, the edge node corresponding to a is Ea.
In this embodiment, the state data is sent to the second edge node, specifically, the state data of the mobile terminal when being connected to the first edge node is stored in the first edge node, so that the server (specifically, the central control node) extracts the state data from the first edge node and sends the state data to the second edge node for storage by the second edge node.
Wherein, each edge node of the server end includes an instance server and a control server, a communication connection is established between the instance servers of each edge node, and the step of sending the state data to the second edge node includes:
step a1, sending the status data to the control server of the first edge node through the instance server of the first edge node;
in this embodiment, a process of how to send the status data to the second edge node is described, before sending the status data to the second edge node, there is an estimation process, by which a time for sending the status data is determined, specifically, the service end calculates a time Ta required for the UE to move to an estimation target Ea (second edge node) according to a current position (first position) of the UE, a direction and a speed (first speed) of a displacement (first displacement), and if Ta satisfies [ (t1-t0) + Ta) ]/Tmax is 0.8 or Tmax/[ (t1-t0) + Ta ] ≦ 0.8, it is considered that the status data needs to be sent (it is considered that switching to the edge node Ea is likely to be needed), where a maximum online duration of the user game is Tmax.
In this embodiment, after determining the time for sending the state data, the server-side central control node C notifies the control server S0 of E0 to transmit the state data to the control server S1 of E1, at this time, the instance server M0 and the control server S0 of E0 establish a TCP connection, the instance server of the first edge node obtains the state data of the mobile terminal when connecting with the first edge node, and sends the state data to the control server of the first edge node through the instance server of the first edge node.
A step a2 of sending the state data to the control server of the second edge node based on the control server of the first edge node;
in this embodiment, the communication connection between the control server of the first edge node and the control server of the second edge node, i.e., the control server S0 in E0 and the control server S1 in E1, establishes a TCP connection to send the state data to the control server of the second edge node based on the control server of the first edge node, i.e., the state data is transmitted from S0 to S1.
Step a3, controlling the control server of the second edge node, and sending the state data to the instance server of the second edge node.
In this embodiment, S1 allocates an idle instance server to the terminal UE in E1, and S1 transmits the status data to the allocated instance server, thereby completing the transmission of the status data of E0- > E1. It should be noted that after the example server allocation of E1 is completed, S1 locks the example server, and the example server cannot be used in the case where the edge node which is predicted to be switched does not change (the condition for recalculating Ea is not triggered, or the condition for recalculating Ea is triggered, but the calculation result does not change). Unlocking the instance server if the edge node for which the switch is predicted changes.
Step S30, when a preset switching condition is satisfied, switching the first edge node to the second edge node, so that the mobile terminal interacts with the second edge node based on the state data.
In this embodiment, when a preset switching condition is satisfied, switching the first edge node to the second edge node for the mobile terminal to interact with the second edge node based on the state data, where the preset switching condition may be: and the distance between the mobile terminal and the second edge node is less than or equal to the distance between the mobile terminal and the first edge node.
Before the step of switching from the first edge node to the second edge node when the preset switching condition is met, the method includes:
step S31, predicting a moving time required for the mobile terminal to move to the second edge node;
in this embodiment, a moving time required for the mobile terminal to move to the second edge node is estimated, where the moving time is Ta.
Step S32, according to the moving time, determining a first preset time period, and determining a first distance from the mobile terminal to the first edge node and a second distance from the mobile terminal to the second edge node every the first preset time period;
and determining a first preset time period according to the moving time, wherein the first preset time period can be a time interval of Ta/12. And determining a first distance from the mobile terminal to the first edge node and a second distance from the mobile terminal to the second edge node every the first preset time period, namely calculating a distance L0 from the UE to E0 and a distance L1 from the UE to E1 respectively by a central control node C at the server side according to the position of the UE.
In step S33, if the first distance is greater than or equal to the second distance, it is determined that a preset switching condition is satisfied.
If the first distance is greater than or equal to the second distance, it is determined that a preset switching condition is satisfied, i.e., if L1< L0, the central control node C notifies S1 to start the instance server M0 locked in E1. The UE establishes ICE connection with the instance server M0, after the connection is established, the connection between the UE and the instance server in E0 is disconnected, and the instance server in E1 provides service for the UE, so that the dynamic switching of the edge node is completed. When the distance between the UE and the E1 is the shortest, the cloud game instance server is started on the edge node E1, the UE and the cloud game instance server establish ICE connection, when the connection is established, the cloud game instance server transmits audio and video streams to the UE, and the UE transmits an operation instruction stream to the cloud game instance server.
If the connection establishment is unsuccessful and remains unsuccessful after a number of retries (network or other reasons), the central control node C notifies S1 to unlock the problematic instance server and reassigns the instance server for the pre-boot game play operation S1.
Compared with the prior art that video streaming service of a mobile terminal is interrupted when the mobile terminal is switched to connect with a service node, the method, the device, the equipment and the storage medium for switching the mobile terminal have the advantages that in the method, the mobile terminal acquires state data when being connected with a first edge node of a server side, and acquires first mobile information of the mobile terminal when detecting that the mobile terminal moves; based on the first mobile information, pre-estimating a second edge node of the server side, and sending the state data to the second edge node; and when a preset switching condition is met, switching the mobile terminal and the first edge node into the second edge node so that the mobile terminal can interact with the second edge node based on the state data. That is, in the present application, the state data on the previous first edge node has been copied in advance before the edge node, i.e., the service node, is switched, so that the mobile terminal can be dynamically and noninductively switched to the second edge node, and the video stream service process of the mobile terminal is not interrupted.
Further, based on the first embodiment in the present application, another embodiment of the present application is provided, in which after the step of sending the state data to the second edge node, the method includes:
step A1, if a re-estimation instruction is detected, determining a third edge node of the server side;
in this embodiment, if a re-estimation instruction is detected, determining a third edge node of the server, that is, if a condition for re-calculating Ea is satisfied, the server generates the re-estimation instruction, and further determines a third edge node Ea-new to be connected to the mobile terminal based on the re-estimation instruction, where the third edge node Ea-new is Ea-old, and a TCP connection is established through E0 and the latest Ea-new.
Step A2, sending the status data to the third edge node.
In this embodiment, before the mobile terminal interacts with the second edge node based on the status data, the server side controls to send the status data to the third edge node through the second edge node or the first edge node, and when E0 finishes sending the status data to Ea-new, sends a switching message to Ea-old, and Ea-old deletes the status data. And records the time Tb at this time. After Tb, each time the status data changes, incremental change data is transmitted to Ea-new to avoid erroneous transmission of messages.
In this embodiment, if a re-estimation instruction is detected, a third edge node of the server side is determined; sending the state data to the third edge node through the second edge node or the first edge node. In this embodiment, the edge node may be estimated again, so as to improve the fault tolerance.
Further, based on the first embodiment and the second embodiment in the present application, another embodiment of the present application is provided, in which before the step of determining the third edge node on the server side when the re-estimation instruction is detected, the method includes:
step B1, determining a second preset time period, and acquiring a second moving speed of the mobile terminal every other second preset time period;
in this embodiment, the moving time required for the mobile terminal to move to the second edge node may be estimated, where the moving time is Ta, and a second preset time period may be determined according to the moving time, and the first preset time period may be a time interval of Ta/12 (that is, may be the same as the first preset time period).
Step B2, determining a movement included angle between the second movement speed and the first movement speed in the first movement information;
and acquiring second mobile information of the mobile terminal every second preset time period, and determining a mobile included angle between the second mobile speed and the first mobile speed in the first mobile information, specifically determining a displacement direction V2 of the UE after the second preset time period, according to an included angle A between V1 and V2.
And step B3, if the moving included angle is larger than or equal to a preset included angle, confirming that a re-estimation instruction is detected.
And if the moving included angle is larger than or equal to the preset included angle, confirming that a re-estimation instruction is detected, specifically, if A > is 45 degrees, confirming that the re-estimation instruction is detected, namely, recalculating Ea.
In this embodiment, a second preset time period is further determined, and a second moving speed of the mobile terminal is obtained every second preset time period; determining a movement included angle between the second movement speed and a first movement speed in the first movement information; and if the moving included angle is larger than or equal to a preset included angle, confirming that a re-estimated instruction is detected. In this embodiment, a condition for triggering re-estimation is determined to re-estimate the edge node, thereby improving the fault tolerance.
Further, based on the above-mentioned embodiments in the present application, another embodiment of the present application is provided, where the step of sending the state data to the third edge node includes:
step C1, if all the state data are sent to the second edge node, determining a third distance between the second edge node and the third edge node, and a fourth distance between the first edge node and the third edge node; when the third distance is greater than or equal to the fourth distance, controlling the second edge node to send the state data to the third edge node;
in this embodiment, if a condition for recalculating Ea is triggered and Ea changes, E0 establishes a TCP connection with the latest Ea-new, when E0 finishes transmitting status data to Ea-new, it is determined whether the first edge node finishes transmitting all the status data to the second edge node, and if the status data is completely transmitted to the second edge node, a third distance between the second edge node and the third edge node and a fourth distance between the first edge node and the third edge node are determined.
In this embodiment, if the third distance is greater than or equal to the fourth distance, the state data is sent to the third edge node through the second edge node, that is, if the edge node triggers a condition for recalculating Ea in the process of switching from E0 to E1, the calculation result is predicted to be switched to E2. At this time, if the data transmission of E0- > E1 is completed, the edge node closest to E2 is selected from E0 and E1 by the central control node C to transmit the state data.
Step C2, if the status data is not completely sent to the second edge node, controlling the first edge node to send the status data to the third edge node.
If the first edge node does not send the state data to the second edge node completely, that is, if the data transmission of E0- > E1 is not completed, the central control node C notifies the control server S0 in E0, interrupts the data transmission of E0- > E1, and starts the data transmission of E0 to E2. I.e. sending the status data to the third edge node via the first edge node. In this embodiment, it should be noted that the control server of each edge node reports the data transmission state to the central control node C, and the central control node C records the data transmission state of each edge node.
In this embodiment, it is determined whether the first edge node completely sends the status data to the second edge node; if all the state data are sent to the second edge node, determining a third distance between the second edge node and the third edge node and a fourth distance between the first edge node and the third edge node; when the third distance is greater than or equal to the fourth distance, controlling the second edge node to send the state data to the third edge node; and if the state data are not completely sent to the second edge node, controlling the first edge node to send the state data to the third edge node. In this embodiment, the state data is sent by the shortest path, so that the switching efficiency is improved.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 3, the mobile terminal switching apparatus may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used for realizing connection communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Optionally, the mobile terminal switching device may further include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. The rectangular user interface may comprise a Display screen (Display), an input sub-module such as a Keyboard (Keyboard), and the optional rectangular user interface may also comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the mobile terminal switching device configuration shown in fig. 3 does not constitute a limitation of the mobile terminal switching device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 3, a memory 1005, which is a kind of storage medium, may include therein an operating system, a network communication module, and a mobile terminal handover program. The operating system is a program that manages and controls the hardware and software resources of the mobile terminal switching device, supporting the operation of the mobile terminal switching program as well as other software and/or programs. The network communication module is used for communication among the components within the memory 1005, as well as with other hardware and software in the mobile terminal switching system.
In the mobile terminal handover apparatus shown in fig. 3, the processor 1001 is configured to execute a mobile terminal handover program stored in the memory 1005, so as to implement the steps of the mobile terminal handover method according to any one of the above.
The specific implementation of the mobile terminal switching device of the present application is substantially the same as the embodiments of the mobile terminal switching method described above, and is not described herein again.
The present application further provides a mobile terminal switching device, the mobile terminal switching device includes:
the first acquisition module is used for acquiring state data when the mobile terminal is connected with a first edge node of the server side;
the second acquisition module is used for acquiring first movement information of the mobile terminal when the mobile terminal is detected to move;
the first pre-estimation module is used for pre-estimating a second edge node of the server side based on the first mobile information;
a first sending module, configured to send the status data to the second edge node;
and the switching module is used for switching the first edge node into the second edge node when a preset switching condition is met, so that the mobile terminal can interact with the second edge node based on the state data.
Optionally, the first estimation module includes:
a first determining unit, configured to determine a second position of each edge node of the server;
the first estimation unit is used for estimating the inclined position of the mobile terminal according to the first position and the first moving speed;
the first determining unit is further configured to determine a second edge node to be connected to the mobile terminal according to the inclined position and the second position.
Optionally, the apparatus comprises:
the second pre-estimating module is used for pre-estimating the moving time required by the mobile terminal to move to the second edge node;
a first determining module, configured to determine a first preset time period according to the moving time, and determine, every interval of the first preset time period, a first distance from the mobile terminal to the first edge node and a second distance from the mobile terminal to the second edge node;
and the judging module is used for determining that a preset switching condition is met if the first distance is greater than or equal to the second distance.
Optionally, each edge node of the server side includes an instance server and a control server, and a communication connection is established between the instance servers of each edge node; the first obtaining module comprises:
a first obtaining unit, configured to send the state data to a control server of the first edge node through an instance server of the first edge node;
a first sending unit, configured to send the state data to a control server of the second edge node based on the control server of the first edge node;
and the second sending unit is used for controlling the control server of the second edge node and sending the state data to the instance server of the second edge node.
Optionally, the apparatus further comprises:
the second determining module is used for determining a third edge node of the server side if the re-estimation instruction is detected;
a second sending module, configured to send the state data to the third edge node.
Optionally, the apparatus further comprises:
a third determining module, configured to determine a second preset time period, and obtain a second moving speed of the mobile terminal every other second preset time period;
a third obtaining module, configured to determine a movement included angle between the second movement speed and the first movement speed in the first movement information;
and the triggering module is used for confirming that a re-estimated instruction is detected if the moving included angle is larger than or equal to a preset included angle.
Optionally, the first sending module comprises:
a second determining unit, configured to determine a third distance between the second edge node and the third edge node and a fourth distance between the first edge node and the third edge node if all the state data is sent to the second edge node;
a third sending unit, configured to control the second edge node to send the state data to the third edge node when the third distance is greater than or equal to the fourth distance;
a fourth sending unit, configured to control the first edge node to send the state data to the third edge node if all the state data are not sent to the second edge node.
The specific implementation of the mobile terminal switching device of the present application is substantially the same as the embodiments of the mobile terminal switching method described above, and is not described herein again.
The embodiment of the present application provides a storage medium, and the storage medium stores one or more programs, and the one or more programs are further executable by one or more processors for implementing the steps of the mobile terminal handover method according to any one of the above.
The specific implementation of the storage medium of the present application is substantially the same as the embodiments of the mobile terminal handover method described above, and is not described herein again.
The present application also provides a computer program product, comprising a computer program, which when executed by a processor, implements the steps of the above-described mobile terminal handover method.
The specific implementation of the computer program product of the present application is substantially the same as the embodiments of the mobile terminal handover method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A mobile terminal switching method is applied to a server side, and comprises the following steps:
the method comprises the steps that when a mobile terminal is connected with a first edge node of a server side, state data are obtained, and when the mobile terminal is detected to move, first moving information of the mobile terminal is obtained;
based on the first mobile information, pre-estimating a second edge node of the server side, and sending the state data to the second edge node;
and when a preset switching condition is met, switching the mobile terminal and the first edge node into the second edge node so that the mobile terminal can interact with the second edge node based on the state data.
2. The method for handing over a mobile terminal according to claim 1, wherein the first mobility information includes a first location and a first mobility speed of the mobile terminal, and the step of predicting the second edge node at the server end based on the first mobility information includes:
determining a second position of each edge node of the server side;
estimating the inclined position of the mobile terminal according to the first position and the first moving speed;
and determining a second edge node to be connected with the mobile terminal according to the inclined position and the second position.
3. The method according to any of claims 1-2, wherein before the step of switching from the first edge node to the second edge node when a preset switching condition is met, the method comprises:
estimating the moving time required by the mobile terminal to move to the second edge node;
determining a first preset time period according to the moving time, and determining a first distance from the mobile terminal to the first edge node and a second distance from the mobile terminal to the second edge node at intervals of the first preset time period;
and if the first distance is greater than or equal to the second distance, determining that a preset switching condition is met.
4. The mobile terminal handover method according to claim 1, wherein each edge node of the server includes an instance server and a control server, and a communication connection is established between the instance servers of each edge node;
the step of sending the state data to the second edge node comprises:
sending, by the instance server of the first edge node, the state data to a control server of the first edge node;
sending the state data to a control server of the second edge node based on the control server of the first edge node;
and the control server for controlling the second edge node sends the state data to the instance server of the second edge node.
5. The mobile terminal handover method according to any of claims 1-2, wherein after the step of sending the status data to the second edge node, the method comprises:
if a re-estimation instruction is detected, determining a third edge node of the server side;
sending the state data to the third edge node.
6. The method as claimed in claim 5, wherein before the step of determining the third edge node at the server end when the re-estimation command is detected, the method comprises:
determining a second preset time period, and acquiring a second moving speed of the mobile terminal every other second preset time period;
determining a movement included angle between the second movement speed and a first movement speed in the first movement information;
and if the moving included angle is larger than or equal to a preset included angle, confirming that a re-estimated instruction is detected.
7. The mobile terminal handoff method of claim 5 wherein said step of sending said status data to said third edge node comprises:
if all the state data are sent to the second edge node, determining a third distance between the second edge node and the third edge node and a fourth distance between the first edge node and the third edge node; when the third distance is greater than or equal to the fourth distance, controlling the second edge node to send the state data to the third edge node;
and if the state data are not completely sent to the second edge node, controlling the first edge node to send the state data to the third edge node.
8. A mobile terminal switching device, characterized in that the mobile terminal switching device comprises:
the first acquisition module is used for acquiring state data when the mobile terminal is connected with a first edge node of the server side;
the second acquisition module is used for acquiring first movement information of the mobile terminal when the mobile terminal is detected to move;
the first pre-estimation module is used for pre-estimating a second edge node of the server side based on the first mobile information;
a first sending module, configured to send the status data to the second edge node;
and the switching module is used for switching the first edge node into the second edge node when a preset switching condition is met, so that the mobile terminal can interact with the second edge node based on the state data.
9. A mobile terminal switching device, characterized in that the mobile terminal switching device comprises: a memory, a processor, and a program stored on the memory for implementing the mobile terminal handover method,
the memory is used for storing programs for realizing the switching method of the mobile terminal;
the processor is configured to execute a program for implementing the mobile terminal handover method, so as to implement the steps of the mobile terminal handover method according to any one of claims 1 to 7.
10. A storage medium having stored thereon a program for implementing a mobile terminal handover method, the program being executed by a processor to implement the steps of the mobile terminal handover method according to any one of claims 1 to 7.
CN202110688910.3A 2021-06-22 2021-06-22 Mobile terminal switching method, device, equipment and storage medium Active CN113438696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110688910.3A CN113438696B (en) 2021-06-22 2021-06-22 Mobile terminal switching method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110688910.3A CN113438696B (en) 2021-06-22 2021-06-22 Mobile terminal switching method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113438696A true CN113438696A (en) 2021-09-24
CN113438696B CN113438696B (en) 2022-09-13

Family

ID=77756943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110688910.3A Active CN113438696B (en) 2021-06-22 2021-06-22 Mobile terminal switching method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113438696B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115794139A (en) * 2023-01-16 2023-03-14 腾讯科技(深圳)有限公司 Mirror image data processing method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050243735A1 (en) * 2001-12-28 2005-11-03 Tsuyoshi Kashima Node selecting method
CN107046700A (en) * 2016-02-05 2017-08-15 中兴通讯股份有限公司 It is a kind of to predict the method and apparatus that mobile terminal switches base station
CN109257432A (en) * 2018-10-12 2019-01-22 桂林电子科技大学 A kind of target switching method, computer installation and readable storage medium storing program for executing
CN112672392A (en) * 2020-12-14 2021-04-16 武汉市烽视威科技有限公司 Content distribution method, device, equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050243735A1 (en) * 2001-12-28 2005-11-03 Tsuyoshi Kashima Node selecting method
CN107046700A (en) * 2016-02-05 2017-08-15 中兴通讯股份有限公司 It is a kind of to predict the method and apparatus that mobile terminal switches base station
CN109257432A (en) * 2018-10-12 2019-01-22 桂林电子科技大学 A kind of target switching method, computer installation and readable storage medium storing program for executing
CN112672392A (en) * 2020-12-14 2021-04-16 武汉市烽视威科技有限公司 Content distribution method, device, equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115794139A (en) * 2023-01-16 2023-03-14 腾讯科技(深圳)有限公司 Mirror image data processing method, device, equipment and medium

Also Published As

Publication number Publication date
CN113438696B (en) 2022-09-13

Similar Documents

Publication Publication Date Title
CN109644199B (en) Virtual network state management in mobile edge computing
CN113179540B (en) Mobile switching method and related equipment
US11224085B2 (en) Method and apparatus for initiating user plane path re-establishment and communications system
CN109936615B (en) Action edge platform server and migration management method of user equipment content
US11083039B2 (en) Mobile network optimization processing method, device, and system
KR100971868B1 (en) Handover in a cellular communication system
EP2843993B1 (en) Method and apparatus for maintaining service continuity of user equipment after tracking area is updated
JP7104172B2 (en) Voice service network handover method and equipment
CN111093225B (en) Method, device and medium for monitoring and reporting data path service quality
JP6432515B2 (en) Communication apparatus and communication control method in communication system
CN113676977B (en) Application repositioning method and device, electronic equipment and storage medium
CN107113662A (en) Switching method, the apparatus and system of MEC platforms
EP3585100A1 (en) Bearer identifier determination method and device and storage medium
CN112187495B (en) Communication method and communication system for terminal and server
KR20100029869A (en) Apparatus and method for supporting media independent seamless service in heterogeneous wireless network
CN110167092B (en) Service migration method and device
EP3297333A1 (en) Access method and corresponding access node, terminal and communication network
CN107959918B (en) Session management method, mobility management function and session management function
CN113438696B (en) Mobile terminal switching method, device, equipment and storage medium
CN112714413A (en) Internet of vehicles service processing method, equipment and storage medium
KR101220176B1 (en) System and Method of adapative media transport control for vertical handovers in heterogeneous access networks
CN114172869A (en) Method, system and related equipment for managing media transmission path
KR20200105513A (en) Method and apparatus for downlink data transmission
US20090003268A1 (en) Client resource reservation in access networks for roaming
CN111314967B (en) Switching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant