Disclosure of Invention
The embodiment of the invention provides a method and a device for switching a mobile edge computing MEC host of a mobile terminal, electronic equipment and a computer storage medium, which can more accurately switch the MEC host of the mobile terminal.
In a first aspect, a method for switching an MEC host for mobile edge operations of a mobile terminal is provided, which is applied to a source MEC host of the mobile terminal, and includes:
acquiring current position information of the mobile terminal;
acquiring MEC host list information based on the current position information; the MEC host list information comprises address information and current load information of each optional MEC host;
based on the MEC host list information, sending user context information of the mobile terminal to each selectable MEC host for switching the source MEC host to a target MEC host in all selectable MEC hosts; and the address information and the current load information of the target MEC host meet the preset switching condition.
Optionally, the obtaining current location information of the mobile terminal includes:
sending a current position acquisition instruction to the mobile terminal at intervals of a preset period;
and receiving current position information of the mobile terminal sent by the mobile terminal based on a preset period and the current position acquisition instruction.
Optionally, the obtaining, based on the current location information, MEC host list information includes:
determining the position information of each prejudgment target of the mobile terminal based on the current position information;
and acquiring MEC host list information based on the position information of each prejudged target.
Optionally, obtaining the MEC host list information based on the location information of each pre-determined destination includes:
sending an MEC host list information acquisition request to an MEC host management server based on the position information of each prejudged target;
and receiving MEC host list information sent by the MEC host management server.
Optionally, the user context information includes terminal identification information and quality of service information, and based on the MEC host list information, the method sends the user context information of the mobile terminal to each selectable MEC host, and includes:
and sending the terminal identification information and the service quality information of the mobile terminal to each optional MEC host based on the MEC host list information.
Optionally, after sending the user context information of the mobile terminal to each optional MEC host based on the MEC host list information, the method further includes:
and receiving and responding to MEC host switching completion information sent by the target MEC host.
Optionally, after receiving and responding to the MEC host handover completion information sent by the target MEC host, the method further includes:
sending a request for deleting the user context information to each non-target MEC host in all the selectable MEC hosts;
and receiving the deletion completion information of the user context information sent by each non-target MEC host.
In a second aspect, a device for switching a mobile edge computing MEC host of a mobile terminal is provided, which is applied to a source MEC host of the mobile terminal, and includes:
the first acquisition module is used for acquiring the current position information of the mobile terminal;
the second acquisition module is used for acquiring MEC host list information based on the current position information; the MEC host list information comprises address information and current load information of each optional MEC host;
a sending module, configured to send user context information of the mobile terminal to each selectable MEC host based on the MEC host list information, so that the source MEC host is switched to a target MEC host among all selectable MEC hosts; and the address information and the current load information of the target MEC host meet the preset switching condition.
Optionally, the first obtaining module is configured to send a current position obtaining instruction to the mobile terminal at intervals of a preset period; and receiving current position information of the mobile terminal sent by the mobile terminal based on a preset period and the current position acquisition instruction.
Optionally, the second obtaining module is configured to determine location information of each pre-judgment destination of the mobile terminal based on the current location information; and acquiring MEC host list information based on the position information of each prejudged target.
Optionally, the second obtaining module is further configured to send an MEC host list information obtaining request to the MEC host management server based on the location information of each pre-determined destination; and receiving MEC host list information sent by the MEC host management server.
Optionally, the user context information includes terminal identification information and quality of service information, and the sending module is configured to send the terminal identification information and the quality of service information of the mobile terminal to each optional MEC host based on the MEC host list information.
Optionally, the sending module is further configured to receive and respond to MEC host handover completion information sent by the target MEC host.
Optionally, the sending module is further configured to send a request for deleting the user context information to each non-target MEC host of all the optional MEC hosts; and receiving the deletion completion information of the user context information sent by each non-target MEC host.
In a third aspect, an electronic device is provided, which includes: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements the method for switching the mobile edge computing MEC host of the mobile terminal in the first aspect or any one of the optional implementations of the first aspect.
In a fourth aspect, a computer storage medium is provided, where computer program instructions are stored on the computer storage medium, and when executed by a processor, the computer program instructions implement the method for switching the mobile edge computing MEC host of the mobile terminal in the first aspect or any optional implementation manner of the first aspect.
The method, the device, the electronic equipment and the computer storage medium for switching the mobile edge operation MEC host of the mobile terminal can more accurately switch the MEC host of the mobile terminal. The method for switching the mobile edge operation MEC host of the mobile terminal obtains the list information of the MEC host based on the current position information of the mobile terminal; the MEC host list information includes address information and current load information of each optional MEC host. Because the selectable MEC hosts are judged in advance based on the current position information of the mobile terminal, the current load information of the selectable MEC hosts is obtained, the user context information of the mobile terminal is sent to each selectable MEC host, pre-switching is carried out in a small-range user context information broadcasting mode, and therefore the target MEC hosts which are really switched are always in the selectable MEC hosts, the problem that QoE prediction errors aiming at the high-speed mobile terminal occur due to mobility of the high-speed mobile terminal or temporary load changes of the target MEC hosts in the prior art is solved, and further the condition of secondary MEC host switching is avoided.
Detailed Description
Features of various aspects and exemplary embodiments of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Currently, in the related art, when performing MEC host handover, the MEC host is required to participate in Quality of Experience (QoE) prediction, so as to determine a target MEC host in advance and perform pre-handover operation of the MEC host.
However, when QoE prediction is performed, QoE prediction determination is performed based on various conditions (wireless signals, transmission, network element resources of a core network, MEC host load, and the like) and complex algorithms, a large amount of MEC host computing power needs to be consumed, and due to mobility of the high-speed mobile terminal or temporary load change of a target MEC host, a QoE prediction error for the high-speed mobile terminal may occur, which may further cause a situation of secondary switching of the MEC host.
In order to solve the prior art problems, embodiments of the present invention provide a method and an apparatus for switching a mobile edge computing MEC host of a mobile terminal, an electronic device, and a computer storage medium. The following first introduces a method for switching a mobile edge computing MEC host of a mobile terminal according to an embodiment of the present invention.
Fig. 1 is a schematic flowchart of a method for switching a mobile edge computing MEC host of a mobile terminal according to an embodiment of the present invention. As shown in fig. 1, the method for switching the MEC host of the mobile edge operation of the mobile terminal may include:
s101, obtaining current position information of the mobile terminal.
In order to accurately acquire the current location information of the mobile terminal, in one embodiment, acquiring the current location information of the mobile terminal may include: sending a current position acquisition instruction to the mobile terminal at intervals of a preset period; and receiving current position information of the mobile terminal sent by the mobile terminal based on a preset period and the current position acquisition instruction. The preset period may be 1 second or 5 seconds, and is not particularly limited.
S102, acquiring MEC host list information based on the current position information; the MEC host list information includes address information and current load information of each optional MEC host.
After the current location information of the mobile terminal is obtained, the MEC host list information may be obtained based on the current location information, where the MEC host list information includes address information and current load information of each selectable MEC host.
To accurately acquire MEC host list information, in one embodiment, acquiring MEC host list information based on the current location information may include: determining position information of each pre-judgment target of the mobile terminal based on the current position information; and acquiring MEC host list information based on the position information of each prejudged target. In one embodiment, the position information in each possible moving direction after a preset time interval may be pre-determined according to the current position information and the moving speed of the mobile terminal, that is, the position information of each pre-determined destination of the mobile terminal is determined.
In one embodiment, obtaining the MEC host list information based on the location information of each pre-determined destination may include: sending an MEC host list information acquisition request to an MEC host management server based on the position information of each prejudged target; and receiving MEC host list information sent by the MEC host management server. In one embodiment, the MEC host management server may determine, according to each pre-determined destination location information, an MEC host covering the pre-determined destination location, that is, an MEC host to which the pre-determined destination location information belongs. After the MEC host to which the position information of each pre-judging destination belongs is respectively determined, the MEC host list information can be determined. At this time, the source MEC host of the mobile terminal may send an MEC host list information acquisition request to the MEC host management server, and the MEC host management server may also send MEC host list information to the source MEC host in response to the request.
S103, based on the MEC host list information, sending user context information of the mobile terminal to each selectable MEC host for switching the source MEC host into a target MEC host in all selectable MEC hosts; and the address information and the current load information of the target MEC host meet the preset switching condition.
After acquiring the MEC host list information, sending user context information of the mobile terminal to each selectable MEC host based on the MEC host list information so as to switch a source MEC host into a target MEC host in all selectable MEC hosts; and the address information and the current load information of the target MEC host meet the preset switching condition. In one embodiment, the user context information of the mobile terminal is sent to each optional MEC host based on the MEC host list information, however, not all optional MEC hosts may be the target MEC host, and only the optional MEC host whose address information and current load information both satisfy the preset handover condition may be the target MEC host.
After the mobile terminal finishes moving, the actual target position information can be determined. The MEC master to which each piece of pre-destination location information belongs, i.e., all optional MEC masters, has been determined above. The actual destination location information is also bound to one or more of the optional MEC hosts, and how to judge whether the actual destination location information is bound is determined according to the actual destination location information and the address information of the optional MEC hosts, that is, when the distance between the actual destination location information and the address information of the optional MEC hosts is smaller than a preset distance threshold value, the actual destination location information is considered to be bound to the one or more optional MEC hosts. By this, the preliminary screening of the target MEC host has been completed.
For one or more selected MEC hosts screened preliminarily, the corresponding current load conditions are determined according to the respective current load information, and only when the current load conditions of the selected MEC hosts are lower than a preset load threshold value, the selected MEC hosts can be used as target MEC hosts. By this time, the secondary screening of the target MEC host has been completed.
In one embodiment, the sending the user context information of the mobile terminal to each optional MEC host based on the MEC host list information includes: and sending the terminal identification information and the service quality information of the mobile terminal to each optional MEC host based on the MEC host list information.
In one embodiment, after sending the user context information of the mobile terminal to each optional MEC host based on the MEC host list information, the method may further include: and receiving and responding to MEC host switching completion information sent by the target MEC host.
In one embodiment, after receiving and responding to the MEC host handover completion information sent by the target MEC host, the method may further include: sending a request for deleting the user context information to each non-target MEC host in all the selectable MEC hosts; and receiving the deletion completion information of the user context information sent by each non-target MEC host.
The method for switching the mobile edge operation MEC host of the mobile terminal obtains the list information of the MEC host based on the current position information of the mobile terminal; the MEC host list information includes address information and current load information of each selectable MEC host. The selectable MEC hosts are judged in advance based on the current position information of the mobile terminal, the current load information of the selectable MEC hosts is obtained, the user context information of the mobile terminal is sent to each selectable MEC host, pre-switching is carried out in a small-range user context information broadcasting mode, so that the target MEC hosts which are really switched are always in the selectable MEC hosts, the problem that QoE prediction errors aiming at the high-speed mobile terminal are caused by mobility of the high-speed mobile terminal or temporary load changes of the target MEC hosts in the prior art is solved, and further the condition of secondary switching of the MEC hosts is avoided. In addition, the embodiment of the invention avoids QoE prediction judgment in the related technology, and does not need to perform QoE prediction judgment based on various conditions (wireless signals, transmission, core network element resources, MEC host load and the like) and complex algorithms, thereby avoiding consuming a large amount of MEC host computing power.
The following describes the above with an embodiment, and the specific contents are as follows:
as shown in fig. 2, fig. 2 is a schematic flow chart of another method for switching a mobile edge computing MEC Host of a mobile terminal according to an embodiment of the present invention, where in fig. 2, High-Speed UE is a High-Speed terminal, Source MEC Host is a Source MEC Host, Target MEC Host 1 is a Target MEC Host 1, Target MEC Host 2 is a Target MEC Host 2, and MEC Mgt Platform is an MEC Host management Platform. The steps shown in fig. 2 are as follows:
step a: the high-speed terminal is anchored on a certain source MEC host, and periodically reports position information, and the source MEC host carries out simple switching prediction judgment according to the position.
Step b: and after the source MEC host carries out simple switching prediction judgment, when the high-speed terminal is found to be moved out of the position range in charge of the high-speed terminal, requesting corresponding MEC host information from the MEC host management platform according to the adjacent position information.
Step c: and the MEC host management platform returns corresponding MEC host list information (mainly comprising information such as MEC host addresses and current loads).
D, e: the source MEC host broadcasts the user context (mainly including terminal identification, QoS, etc.) of the high-speed terminal to the MEC hosts in the MEC host list.
Step f: the high-speed termination completes the handover to the MEC master 1 (mainly including the source MEC master information).
Step g: the MEC host 1 informs the Source MEC host that the high-speed terminal is switched.
Step h: the Source MEC master replies to MEC master 1.
Step i: the Source MEC host informs other pre-broadcast MEC hosts to delete the corresponding user context information.
Step j: the other MEC hosts delete the user context and respond to the source MEC host after the deletion is complete.
The embodiment adopts a simpler prediction method based on the position, only relates to the relation among the terminal, the position area and the MEC host, is much simpler than the prediction conditions of QoE prediction in the prior art (mainly comprising the complex factors of the terminal, the position area, the wireless network, the transmission network, the core network element, the MEC host and the like), and does not need a complex QoE algorithm, so the resource occupation is reduced.
In addition, due to the fact that pre-switching is carried out in a small-range broadcasting mode, the MEC host which is really switched can fall into a prediction range certainly, and the problem that secondary switching is carried out due to prediction errors caused by mobility of a high-speed mobile terminal or temporary load change of a target MEC host after switching is carried out only depending on QoE prediction in the prior art is solved.
The following describes a switching device, an electronic device, and a computer storage medium of a mobile edge computing MEC host of a mobile terminal according to embodiments of the present invention, and the switching device, the electronic device, and the computer storage medium of the mobile edge computing MEC host of the mobile terminal described below and the switching method of the mobile edge computing MEC host of the mobile terminal described above may be referred to correspondingly. Fig. 3 is a schematic structural diagram of a switching apparatus of a mobile edge computing MEC host of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 3, the switching apparatus of the mobile edge computing MEC host of the mobile terminal is applied to a source MEC host of the mobile terminal, and includes:
a first obtaining module 301, configured to obtain current location information of a mobile terminal;
a second obtaining module 302, configured to obtain MEC host list information based on the current location information; the MEC host list information comprises address information and current load information of each optional MEC host;
a sending module 303, configured to send user context information of the mobile terminal to each optional MEC host based on the MEC host list information, so that the source MEC host is switched to a target MEC host in all optional MEC hosts; and the address information and the current load information of the target MEC host meet the preset switching condition.
Optionally, in an embodiment, the first obtaining module 301 is configured to send a current position obtaining instruction to the mobile terminal at intervals of a preset period; and receiving current position information of the mobile terminal sent by the mobile terminal based on a preset period and the current position acquisition instruction.
Optionally, in an embodiment, the second obtaining module 302 is configured to determine, based on the current location information, location information of each pre-determined destination of the mobile terminal; and acquiring MEC host list information based on the position information of each prejudged target.
Optionally, in an embodiment, the second obtaining module 302 is further configured to send an MEC host list information obtaining request to the MEC host management server based on the location information of each pre-determined destination; and receiving MEC host list information sent by the MEC host management server.
Optionally, in an embodiment, the user context information includes terminal identification information and quality of service information, and the sending module 303 is configured to send the terminal identification information and the quality of service information of the mobile terminal to each optional MEC host based on the MEC host list information.
Optionally, in an embodiment, the sending module 303 is further configured to receive and respond to MEC host handover completion information sent by the target MEC host.
Optionally, in an embodiment, the sending module 303 is further configured to send a request for deleting the user context information to each non-target MEC host in all the optional MEC hosts; and receiving the deletion completion information of the user context information sent by each non-target MEC host.
Each module in the switching apparatus of the mobile edge computing MEC host of the mobile terminal provided in fig. 3 has a function of implementing each step in the example shown in fig. 1, and achieves the same technical effect as the switching method of the mobile edge computing MEC host of the mobile terminal shown in fig. 1, and is not described herein again for brevity.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
The electronic device may include a processor 401 and a memory 402 storing computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. The memory 402 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid-state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically Alterable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement the switching method of the mobile edge computing MEC host of the mobile terminal shown in fig. 1.
In one example, the electronic device may also include a communication interface 403 and a bus 410. As shown in fig. 4, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
Bus 410 includes hardware, software, or both coupling the components of the online data traffic charging apparatus to one another. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 410 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, embodiments of the present invention may be implemented by providing a computer storage medium. The computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement the method for switching a mobile edge computing MEC host of a mobile terminal as shown in fig. 1.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.