# US 2017/0289059 A1 · Container-based mobile code offloading support system in cloud environment and offloading method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0289059 A1
- Document ID: US20170289059A1
- Status: Published application
- Kind: A1
- Application number: 15/258,763
- Filed: 2016-09-07
- Published: 2017-10-05
- Earliest claimed: 2016-03-29
- Assignees: Huazhong University of Science and Technology
- Applicants: Huazhong University of Science and Technology
- Inventors: Song WU; Chao NIU; Hai JIN
- Web page: https://patentgrep.com/patent/US20170289059A1

## CPC

- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 16/90: Details of database functions independent of the retrieved data types
- H04L 47/70: Admission control; Resource allocation
- H04L 67/566: Grouping or aggregating service requests, e.g. for unified processing
- H04L 67/567: Integrating service provisioning from a plurality of service providers
- H04L 67/62: Establishing a time schedule for servicing the requests
- G06F 2209/509: Offload
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present invention discloses a container-based mobile code offloading support system in a cloud environment and the offloading method thereof, comprising a front-end processing layer, a runtime layer and a back-end resource layer. The front-end processing layer is responsible for responding to an arrived request and managing a status of a container, which is realized by a request distribution module, a code caching module and a monitoring and scheduling module; the runtime layer provides the same execution environment as that of a terminal, which is realized by a runtime module consisted of a plurality of mobile cloud containers; and the back-end resource layer solves incompatibility of a cloud platform with an mobile terminal environment and provides underlying resource support for a runtime, which is realized by a resource sharing module and an extended kernel module within a host operating system. The present invention utilizes the built mobile cloud container as the runtime environment for offloading code, ensuring execution requirements of offloading tasks and improving the computing performance of a cloud; cooperation between respective modules makes a further optimization to the performance of the platform, guaranteeing an efficient operation for the system.

## Claims

### Claim 1

A container-based mobile code offloading support system in a cloud environment, characterized in that the system comprises a front-end processing layer, a runtime layer and a back-end resource layer, wherein:
the front-end processing layer is located at a cloud portal and used for responding to an arrived offloading request in the first place, and comprises a request distribution module, a code caching module and a monitoring and scheduling module, wherein:
the request distribution module is used to capture a user offloading request and distribute the request to a particular container runtime environment for execution; the code caching module is used to search for an offloading code to be executed in cached data according to an application source of the request, and directly take the part of the code out of the cached data without making a request to a terminal if the offloading code is present; the monitoring and scheduling module is used to monitor usage of a container and reallocate improper resource configurations to update status data of the container;
the runtime layer is located at a main body of a cloud platform and used to provide an execution environment for a mobile code, and comprises a runtime module, wherein:
the runtime module is consisted of a plurality of mobile cloud containers causing a customized operating system to be run in a container environment, so as to simulate an execution environment consistent with that of a terminal for an offloaded mobile application;
the back-end resource layer is located at the lowermost layer of a cloud server and used to support a platform, and comprises a resource sharing module and an extended kernel module, wherein:
the resource sharing module extracts and provides the common part in the plurality of mobile cloud containers of the runtime layer as shared resource; the extended kernel module performs a dynamic extension to a kernel of a host operating system of an original cloud platform, adds a kernel characteristic of a mobile operating system, and realizes the sharing of the kernel between the host operating system and the mobile cloud container, providing a precondition for the running of the mobile operating system in the container.

### Claim 2 (depends on 1)

An offloading method on the basis of the container-based mobile code offloading support system in a cloud environment according to claim 1, wherein characterized in that the method comprises the following steps:
(1) whether it is the first time that a platform responds to an offloading request is detected, if yes, the method goes to step (2), otherwise, the method goes to step (3);
(2) when it is the first time that the platform responds to mobile code offloading, an initial cloud platform system loads an extended kernel module to make a kernel support a kernel characteristic of a mobile operating system, so as to provide shared kernel support for mobile cloud containers in the runtime module; meanwhile, a resource sharing module is initialized to prepare shared resources required by a runtime for the mobile cloud container;
(3) a request distribution module captures offloading request data, and queries status data of a container to determine whether there is an available container execution environment at present, if yes, the method goes to step (4), otherwise, the method goes to step (5);
(4) a new mobile cloud container is started, in comparison with start procedure of a conventional virtual machine in which a kernel is loaded and a file system is prepared for an operating system, initialization process of the operating system is directly performed in start procedure of the mobile operating system in the container; the status data of the container is updated, and a newly started container and information such as the resource configuration thereof are written into a container status data storage;
(5) a source application of the offloading request is analyzed, and it is queried whether the part of the code is in currently cached codes, if yes, the method goes to step (7), otherwise, the method goes to step (6);
(6) a request is sent to a terminal device and a mobile code that is to execute the offloading request is received when the part of the code is not present in the cached data;
(7) the offloading request is distributed to a particular runtime environment for execution, and the execution result of the request is returned after the execution is completed; and it is determined whether a request flow is ended, if not, the method goes to step (3), otherwise, the method goes to step (8);
(8) after the task of code offloading is completed, the cloud platform offloads the extended kernel module to return to the initial status of the cloud platform, and the method ends.

### Claim 3 (depends on 2)

The container-based mobile code offloading method in a cloud environment according to claim 2, wherein in step (1), the kernel extension is dynamically loaded by means of module mounting, and the extended module is consisted of a core driver specific to the mobile operating system.

### Claim 4 (depends on 2)

The container-based mobile code offloading method in a cloud environment according to claim 2, wherein the initialization utilization of the resource sharing module comprises shared class libraries, shared read and write I/O, network controller and shared drivers in step (2).

### Claim 5 (depends on 2)

The container-based mobile code offloading method in a cloud environment according to claim 2, in step (6), the network connection established by the terminal device and a cloud transmits mobile application code that is to be executed.
