# US 2020/0403933 A1 · Service Processing Method and System and Device

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

- Number: US 2020/0403933 A1
- Document ID: US20200403933A1
- Status: Published application
- Kind: A1
- Application number: 17/011,207
- Filed: 2020-09-03
- Published: 2020-12-24
- Earliest claimed: 2013-10-29
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jianbing Jiao
- Web page: https://patentgrep.com/patent/US20200403933A1

## CPC

- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 41/0668: by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
- H04L 47/70: Admission control; Resource allocation
- H04L 47/781: {Centralised allocation of resources}
- H04L 67/1008: based on parameters of servers, e.g. available memory or workload (monitoring of computer activity G06F11/30)
- H04L 67/1012: based on compliance of requirements or conditions with available server resources
- H04N 7/18: Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A service processing method and system, and a device to reduce a large quantity of back end servers, and to simplify a structure of a distributed system where the method includes receiving, by a master device in a resource pool, a service processing request, determining, by the master device, a resource required by a service, determining, according to a remaining resource of each slave device in the resource pool, a slave device that satisfies the resource required by the service, and assigning, by the master device, the service to the corresponding slave device for processing, where the master device and the slave device are both video surveillance front end devices, and the master device determines a device that is in the front end devices and whose remaining resource satisfies a preset threshold as the slave device.

## Claims

### Claim 1

A service processing method, applied to a video surveillance system, wherein the video surveillance system comprises a master camera and multiple slave cameras, and wherein the master camera and the slave cameras form a resource pool, wherein the service processing method comprises:
receiving, by the master camera, a service processing request;
determining, by the master camera, resources required by a service requested by the service processing request;
determining, by the master camera according to available resources of each slave camera in the resource pool, one or more of the slave cameras that satisfies the resources required by the service requested, wherein the remaining resources comprise at least one of a computation resource, a memory resource, a network bandwidth resource, an encoding resource, a decoding resource, an encryption resource, a decryption resource, or a storage resource; and
assigning, by the master camera, the service to the determined one or more slave cameras for processing.

### Claim 2 (depends on 1)

The service processing method of claim 1, wherein the service processing method comprises:
dividing, by the master camera, the service into multiple sub-services, and assigning, each sub-service of the multiple sub-services to the one or more slave camera, wherein the available resources of each assigned camera are no less than resources required by the corresponding sub-service.

### Claim 3 (depends on 1)

The service processing method of claim 1, wherein the service processing method further comprises determining, by the master camera, a camera whose available resources satisfy a preset threshold as the slave camera.

### Claim 4 (depends on 3)

The service processing method of claim 3, further comprising removing the slave camera from the resource pool when the master camera determines that each available processing capability value of the slave camera is lower than the preset threshold.

### Claim 5 (depends on 2)

The service processing method of claim 2, wherein the service processing method comprises:
sending, by the master camera to a video storage module in the video surveillance system, a list of the assigned slave cameras and an assignment correspondence between each of the assigned slave cameras in the list and the corresponding sub-service;
receiving, by the master camera, a processing result reported by each assigned slave camera; and
combining, by the master camera, the processing result reported by each assigned slave camera.

### Claim 6 (depends on 1)

The service processing method of claim 1, wherein when the master camera is faulty, selecting an idle slave camera from the slave cameras and is used as the master camera.

### Claim 7 (depends on 1)

The service processing method of claim 1, further comprising calculating the computation resource as a product of, one minus a central processing unit percentage, times a benchmark value.

### Claim 8 (depends on 1)

The service processing method of claim 1, further comprising calculating the memory resource as a difference between a total memory and a used memory.

### Claim 9 (depends on 1)

The service processing method of claim 1, further comprising calculating the network bandwidth resource as a difference between a total bandwidth and a used bandwidth.

### Claim 10 (depends on 1)

The service processing method of claim 1, further comprising calculating the encoding resource and the decoding resource as a difference between a total quantity of codec frames and a used quantity of codec frames.

### Claim 11 (depends on 1)

The service processing method of claim 1, wherein the encryption resource and the decryption resource comprise a difference between a total quantity of encrypted frames and a used quantity of encrypted frames.

### Claim 12 (depends on 1)

The service processing method of claim 1, further comprising calculating the storage resource as a difference between a total quantity of storage capability frames and a used quantity of storage capability frames.

### Claim 13 (depends on 1)

The service processing method of claim 1, wherein:
the step of determining one or more of the slave cameras that satisfies the resources required by the service requested comprises: determining, by the master camera according to available resources of each slave camera in the resource pool, one of the slave cameras that satisfies all of the resources required by the service requested;
the step of assigning the service to the determined one or more slave cameras for processing comprises: assigning, by the master camera, the service to the determined one slave camera for processing.

### Claim 14

A video surveillance system, comprising:
a master camera; and
multiple slave cameras,
wherein the master camera and the slave cameras form a resource pool of the video surveillance system,
wherein the master camera is configured to:
receive a service processing request;
determine resources required by a service requested by the service processing request;
determine according to available resources of each slave camera in the resource pool, one or more of the slave cameras that satisfies the resources required by the service requested, wherein the available resources comprise at least one of a computation resource, a memory resource, a network bandwidth resource, an encoding resource, a decoding resource, an encryption resource, a decryption resource, or a storage resource; and
assign the service to the one or more determined slave cameras for processing; and
the determined one or more of the slave cameras are configured to:
process the service assigned by the master camera.

### Claim 15 (depends on 14)

The video surveillance system of claim 14, wherein the master camera is configured to:
divide the service into multiple sub-services, and assign, each sub-service of the multiple sub-service to the one or more slave camera, wherein the available resources of each assigned camera is no less than resources required by corresponding sub-service.

### Claim 16 (depends on 14)

The video surveillance system of claim 14, wherein the master camera is configured to: determine a camera whose available resources is higher than a preset threshold as the slave camera.

### Claim 17 (depends on 16)

The video surveillance system of claim 16, the master camera is configured to:
remove the slave camera from the resource pool when the master camera determines that each available processing capability value of the slave camera is lower than the preset threshold.

### Claim 18 (depends on 14)

The video surveillance system of claim 14, wherein the master camera is configured to:
send a corresponding sub-service to each assigned slave camera;
send to a video storage module in the video surveillance system, a list of the assigned slave cameras and an assignment correspondence between each of the assigned slave cameras in the list and the corresponding sub-service;
receive a processing result reported by each assigned slave camera, wherein each assigned slave camera sends a video data acquisition request to the video storage module to acquire a video stream required for processing the sub-service, perform corresponding video processing, and send the processing result to the master camera; and
combine the processing result reported by each assigned slave camera.

### Claim 19 (depends on 14)

The video surveillance system of claim 14, wherein when the master camera is faulty, an idle slave camera is configured to re-selected from the slave cameras and is used as the master camera.

### Claim 20 (depends on 14)

The video surveillance system of claim 14, wherein the master camera is configured to:
determine according to available resources of each slave camera in the resource pool, one of the slave cameras that satisfies all of the resources required by the service requested, wherein the available resources comprise at least one of a computation resource, a memory resource, a network bandwidth resource, an encoding resource, a decoding resource, an encryption resource, a decryption resource, or a storage resource; and
assign the service to the one determined slave cameras for processing.

### Claim 21

A video surveillance system, comprising:
a master camera; and
multiple slave cameras,
wherein the master camera and the slave cameras form a resource pool of the video surveillance system,
wherein the master camera comprises:
a first video capture circuit configured to capture video data;
a first receiver configured to receive a service processing request; and
a first processor coupled to the first video capture circuit and the first receiver and configured to:
divide, the service into multiple sub-services;
assign, the multiple sub-services to the multiple slave cameras, wherein each sub-service of the multiple sub-services is corresponding to one of the multiple slave cameras, the available resources of each slave camera of the multiple slave cameras is no less than resources required by a corresponding sub-service; and
send the assigned multiple sub-services to corresponding slave cameras;
wherein each of the multiple slave cameras comprises:
a second video capture circuit configured to capture video data;
a second receiver configured to receive the corresponding sub-service assigned by the master camera;
a second processor coupled to the second video capture circuit and the second receiver and configured to process the corresponding sub-service.

### Claim 22 (depends on 21)

The video surveillance system of claim 21, wherein each of the multiple slave cameras comprises:
an available resource feedback circuit coupled to the second processor and configured to send the available resources to the master camera.

### Claim 23 (depends on 22)

The video surveillance system of claim 22, wherein the master camera further comprises a slave camera determining circuit coupled to the first processor, and wherein the available resource feedback circuit is further configured to:
convert, according to a preset available capability reference, an available resource of the slave camera into a corresponding available processing capability value; and
report the available processing capability value to the slave camera determining circuit, wherein the slave camera determining circuit is configured to determine a slave camera whose available processing capability value satisfies a preset capability threshold as the slave camera.

### Claim 24 (depends on 21)

The video surveillance system of claim 21, wherein the first processor is further configured to:
send, to a video storage module in the video surveillance system, a list of the assigned slave cameras and an assignment correspondence between each of the slave cameras in the list and the sub-service;
receive a processing result reported by each assigned slave camera, wherein each assigned slave camera sends a video data acquisition request to the video storage module to acquire a video stream required for processing the sub-service, perform corresponding video processing, and send the processing result to the master camera; and
combine the processing result reported by each assigned slave camera.
