Implementation method of service device redirection in large-scale camera access scenario

By hiding the implementation details differences between different manufacturers in large-scale camera access scenarios and building a unified redirection scheduling service, the problem of fragmentation and inconsistent management of redirection in the existing technology is solved, and the unified service output specifications and business stability is improved.

CN119182824BActive Publication Date: 2025-03-14HANGZHOU ARTECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411676912.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-03-14
Estimated Expiration
2044-11-22

AI Technical Summary

Technical Problem

The prior art is difficult to achieve unified service equipment redirection in large-scale camera access scenarios, resulting in fragmentation of redirection and inconsistent management, increasing technical complexity and cost.

Method used

By hiding the implementation details differences between different manufacturers, these differences are integrated into a unified implementation framework, the redirection function is stripped out and a new redirection scheduling service is independently built, and protocols for different access methods are integrated to realize the redirection function.

Benefits of technology

It has realized the elimination of the differences in redirection implementation between different access methods, ensured the unified service output specifications, simplified the service management process, and improved the stability and high availability of business operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182824B_ABST
    Figure CN119182824B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for implementing service device redirection in a large-scale camera access scenario. When the gateway is started, it needs to send a registration message to the redirection scheduling service. The gateway needs to report its internal device capacity and the specific device list allocated to the gateway to the redirection scheduling service at a preset fixed time interval; the redirection scheduling service calculates the remaining access capacity of each gateway in real time according to the current capacity and maximum capacity reported by each gateway. When a device initiates registration with the service, the redirection scheduling service allocates a suitable gateway to the device according to the scheduling strategy; the present invention integrates the differences in implementation details between different manufacturers into a unified implementation framework. The redirection function is stripped out from the traditional registration process, and a new redirection scheduling service is independently constructed. This is to achieve high efficiency and flexibility in the camera access redirection process, thereby better meeting the needs of service device redirection in large-scale camera access scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of video surveillance and security, and in particular relates to a method for implementing service device redirection in a large-scale camera access scenario. Background Art

[0002] Camera access redirection technology is an advanced method for optimizing and managing camera data stream access, especially in distributed networks, video surveillance, smart transportation, smart homes and other diversified application scenarios. In environments involving large-scale camera access, specific servers or gateways may face the risk of overload, which may lead to delays in video data transmission or even data loss. To solve this problem, redirection technology came into being. It can achieve load balancing among multiple access servers or edge gateways, ensuring that camera traffic is evenly distributed, thereby significantly improving the overall performance and stability of the system.

[0003] In addition, in complex large-scale systems, gateway failures are difficult to completely avoid. In order to maintain high availability and stability of the system, camera access redirection technology demonstrates its unique value. This technology can automatically adjust the camera's data access path when a gateway failure or performance degradation is detected, and quickly redirect the device to other available servers or gateways to ensure the continuous transmission and integrity of the camera data is not affected.

[0004] In the access scenario of GB / T 28181 protocol, large-scale video surveillance systems generally use a centralized management platform to implement comprehensive management functions. The platform integrates fine-grained control of camera access and redirection, while being able to monitor device status and optimize load balancing. Once the server load is too high or maintenance is required, the platform can intelligently redirect camera access requests to other available server gateways based on SIP protocol specifications to ensure continuous and stable operation of the system.

[0005] However, the situation is relatively complicated for each manufacturer's proprietary protocol access methods. Each manufacturer usually implements device access and redirection functions through its own SDK, and the implementation methods of different manufacturers vary, making it difficult to perform unified management and standardized operations. This situation has brought many challenges, such as the need to redevelop and implement new access methods, the differences in redirection and device registration implementation methods between different manufacturers leading to cumbersome management, and service anomalies that may cause redirection functions to fail.

[0006] In summary, the current technology has the following obvious shortcomings:

[0007] 1. Fragmentation of redirection implementation: Current technology fails to effectively unify the redirection details of different access methods. Every time a new access method is introduced, targeted development and implementation are required, which means that the implementation needs to be done again, increasing the technical complexity and cost.

[0008] 2. Inconsistent management between manufacturers: Since different manufacturers have different ways of implementing redirection and device registration, some are separate and some are coupled, which makes unified management of different access methods extremely cumbersome. In addition, once the service is abnormal, it is likely to directly lead to the unavailability of redirection, further exacerbating the difficulty of management. Summary of the invention

[0009] In view of the inherent limitations of current related technologies, the present invention is committed to proposing an implementation method for service device redirection in large-scale camera access scenarios. This implementation scheme hides the differences in implementation details between different manufacturers and integrates these differences into a unified implementation framework. It is particularly worth mentioning that the present invention innovatively separates the redirection function from the traditional registration process and independently constructs a new redirection scheduling service. In order to achieve efficiency and flexibility in the camera access redirection process, the needs of service device redirection in large-scale camera access scenarios can be better met.

[0010] To achieve the above-mentioned purpose, the technical solution adopted by the present invention is: a method for implementing service device redirection in a large-scale camera access scenario, which at least includes a redirection scheduling service and a gateway; wherein the gateway and the redirection scheduling service are interconnected through a network; the redirection scheduling service manages the managed gateways in a unified manner;

[0011] When the gateway starts up, it needs to send a registration message to the redirection scheduling service for a heartbeat response. The registration message contains the basic information of the gateway. The gateway needs to report its internal device capacity and the specific device list assigned to the gateway to the redirection scheduling service at a preset fixed time interval.

[0012] The redirection scheduling service calculates the remaining access capacity of each gateway in real time based on the current capacity and maximum capacity reported by each gateway. When a device initiates registration with the service, the redirection scheduling service assigns a suitable gateway to the device based on the scheduling strategy; the redirection scheduling service includes service self-scheduling and / or external control scheduling.

[0013] Furthermore, the scheduling process steps of the service's own scheduling are as follows: S1. All devices that need to be included in the management must submit a registration application to the redirection scheduling service, and use different ports for access according to the access protocol type of the device;

[0014] S2, the redirection dispatch service will internally evaluate and assign it to the gateway with the lowest load;

[0015] S3. The redirection scheduling service will synchronize the information of the allocated device to the target gateway according to the access protocol of the device and the method supported by each protocol; the synchronized information at least includes the user name, password, registration ID, channel information and related authentication information of the device;

[0016] S4. The redirection scheduling service will return a redirection address to the device, and the device needs to continue the registration process based on this address;

[0017] S5. The device needs to initiate a registration request to the provided redirection address;

[0018] S6. The target gateway will perform internal authentication on the device information. If the authentication is successful, the device will be officially online. If the authentication fails, the device needs to restart the registration process from step S1.

[0019] S7. The target gateway will report its load status regularly, and the redirection scheduling service will record and update the current load information of each gateway.

[0020] Furthermore, the scheduling process steps of the external control scheduling are as follows: S1, external call redirection scheduling service provided interface;

[0021] S2. Perform a search operation to find the gateway to which the device belongs;

[0022] S3. Send a request to the original gateway to cancel the scheduling of the device;

[0023] S4. The redirection scheduling service will re-establish the binding relationship between the device and the gateway;

[0024] S5. The original gateway checks the online status of the device. If the device is online, the logout operation is performed.

[0025] S6. The device will actively initiate a new registration request to the redirection scheduling service;

[0026] S7, the redirection scheduling service synchronizes the latest information of the device to the new gateway;

[0027] S8. The device receives the new redirection gateway address returned by the redirection scheduling service;

[0028] S9. The device will continue the registration process based on the new redirection address.

[0029] S10. The new target gateway will perform internal authentication on the device. If the authentication is successful, the device will be online. Otherwise, the device needs to re-execute the registration process from step 1.

[0030] S11. The target gateway will report its load status regularly, and the redirection scheduling service will record and update the current load information.

[0031] Furthermore, by hiding the differences in implementation details between different vendors, these differences are integrated into a unified implementation framework; the redirection function is separated from the traditional registration process, and a new redirection scheduling service is independently built;

[0032] The redirection scheduling service integrates protocols of different access methods to realize the redirection function. The protocols include at least the SIP protocol of GB28181 and the manufacturer's private SDK protocol, realizing comprehensive coverage of the redirection function protocol; and encapsulating it into a unified process, exposing only two core functions: device registration and returning the redirection address to the device, so as to better meet the needs of service device redirection in large-scale camera access scenarios.

[0033] The present invention adopts the above technical solution and provides a set of universal redirection business processes with wide applicability; the redirection scheduling service calculates the remaining access capacity of each gateway in real time based on the current capacity and maximum capacity reported by each gateway. When a device initiates registration to the service, the redirection scheduling service allocates a suitable gateway to the device according to the scheduling strategy.

[0034] At least the following beneficial effects are achieved:

[0035] 1. The differences in redirection implementation between different access methods are eliminated, ensuring the unification of service output specifications, thereby ensuring the wide applicability and consistency of the redirection process. Most previous technical solutions are only applicable to access redirection of single-protocol devices. When facing multi-protocol redirection requirements, multiple redirection services need to be deployed, and the implementation details of each service are different, which undoubtedly increases the complexity of service management. This solution successfully eliminates these differences, unifies service output specifications, and simplifies the service management process.

[0036] 2. Earlier, some solutions tried to integrate redirection with other functions such as device access, but this design method can easily lead to interruption of the overall service when other functions are abnormal, thus affecting the normal use of the redirection function. This solution, by independently extracting the redirection business, not only achieves lightweight services, but also significantly reduces the risk of downtime caused by other functional abnormalities, ensuring high availability of services.

[0037] 3. The implementation scheme provided by the present invention hides the differences in implementation details between different manufacturers and integrates these differences into a unified implementation framework. The present invention innovatively separates the redirection function from the traditional registration process and independently builds a new redirection scheduling service. It significantly improves the stability and high availability of business operations and reduces potential risks caused by other functional abnormalities. It can achieve high efficiency and flexibility in the camera access redirection process, thereby better meeting the needs of service device redirection in large-scale camera access scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 It is a schematic diagram of the scheduling between redirecting different gateways of the present invention;

[0040] Figure 2 It is a schematic diagram of the scheduling process of the present invention. DETAILED DESCRIPTION

[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0042] See also Figure 1 This embodiment provides a method for implementing service device redirection in a large-scale camera access scenario, which at least includes a redirection scheduling service and a gateway; wherein the gateway and the redirection scheduling service are interconnected through a network; and the redirection scheduling service manages the managed gateways in a unified manner;

[0043] When the gateway is started, it needs to send a registration message to the redirection scheduling service, which contains the basic information of the gateway; the gateway needs to report its internal device capacity and the specific device list assigned to the gateway to the redirection scheduling service at a preset fixed time interval;

[0044] The redirection scheduling service calculates the remaining access capacity of each gateway in real time based on the current capacity and maximum capacity reported by each gateway. When a device initiates registration with the service, the redirection scheduling service assigns a suitable gateway to the device based on the scheduling strategy; the redirection scheduling service includes service self-scheduling and / or external control scheduling.

[0045] like Figure 2 As shown, as a preferred implementation mode, the scheduling process steps of the service self-scheduling in this embodiment are as follows: S1, all devices to be managed must submit a registration application to the redirection scheduling service, and use different ports for access according to the access protocol type of the device;

[0046] S2, the redirection dispatch service will internally evaluate and assign it to the gateway with the lowest load;

[0047] S3. The redirection scheduling service will synchronize the information of the allocated device to the target gateway according to the access protocol of the device and the method supported by each protocol; the synchronized information at least includes the user name, password, registration ID, channel information and related authentication information of the device;

[0048] S4. The redirection scheduling service will return a redirection address to the device, and the device needs to continue the registration process based on this address;

[0049] S5. The device needs to initiate a registration request to the provided redirection address;

[0050] S6. The target gateway will perform internal authentication on the device information. If the authentication is successful, the device will be officially online. If the authentication fails, the device needs to restart the registration process from step S1.

[0051] S7. The target gateway will report its load status regularly, and the redirection scheduling service will record and update the current load information of each gateway.

[0052] like Figure 2 As shown, as a preferred implementation, the scheduling process steps of external control scheduling in this embodiment are as follows: S1, external call redirection scheduling service provided interface;

[0053] S2. Perform a search operation to find the gateway to which the device belongs;

[0054] S3. Send a request to the original gateway to cancel the scheduling of the device;

[0055] S4. The redirection scheduling service will re-establish the binding relationship between the device and the gateway;

[0056] S5. The original gateway checks the online status of the device. If the device is online, the logout operation is performed.

[0057] S6. The device will actively initiate a new registration request to the redirection scheduling service;

[0058] S7, the redirection scheduling service synchronizes the latest information of the device to the new gateway;

[0059] S8. The device receives the new redirection gateway address returned by the redirection scheduling service;

[0060] S9. The device will continue the registration process based on the new redirection address.

[0061] S10. The new target gateway will perform internal authentication on the device. If the authentication is successful, the device will be online. Otherwise, the device needs to re-execute the registration process from step 1.

[0062] S11. The target gateway will report its load status regularly, and the redirection scheduling service will record and update the current load information.

[0063] In this embodiment, the differences in implementation details between different manufacturers are hidden and integrated into a unified implementation framework; the redirection function is separated from the traditional registration process, and a new redirection scheduling service is independently constructed; the redirection scheduling service integrates protocols of different access methods to implement the redirection function, and the protocol includes at least the SIP protocol of GB28181 and the manufacturer's private SDK protocol, achieving comprehensive coverage of the redirection function protocol; and it is encapsulated into a unified process, exposing only the two core functions of device registration and returning the redirection address to the device, so as to better meet the needs of service device redirection in large-scale camera access scenarios.

[0064] This embodiment provides a set of universal redirection business processes with wide applicability; the redirection scheduling service calculates the remaining access capacity of each gateway in real time according to the current capacity and maximum capacity reported by each gateway. When a device initiates registration with the service, the redirection scheduling service assigns a suitable gateway to the device according to the scheduling strategy. The present invention eliminates the differences in redirection implementation between different access methods, ensures the unification of service output specifications, and thus ensures the wide applicability and consistency of the redirection process. Most of the previous technical solutions are only applicable to the access redirection of single-protocol devices. When facing the requirements of multi-protocol redirection, multiple redirection services need to be deployed, and the implementation details of each service are different, which undoubtedly increases the complexity of service management. However, this solution successfully eliminates these differences, realizes the unification of service output specifications, and simplifies the service management process. The implementation scheme provided by the present invention integrates these differences into a unified implementation framework by hiding the differences in implementation details between different manufacturers. The present invention innovatively strips the redirection function from the traditional registration process and independently constructs a new redirection scheduling service. The stability and high availability of business operations are significantly improved, and the potential risks caused by other functional abnormalities are reduced. To achieve efficiency and flexibility in the camera access redirection process, so as to better meet the needs of service device redirection in large-scale camera access scenarios.

[0065] Although the embodiments of the present invention have been shown and described above, it will be appreciated that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, substitute and vary the above embodiments within the scope of the present invention.

Claims

1. A method for implementing service device redirection in a large-scale camera access scenario, characterized in that: It at least includes a redirection scheduling service and a gateway; wherein the gateway and the redirection scheduling service are interconnected through a network; and the redirection scheduling service manages the managed gateways in a unified manner; When the gateway is started, it needs to send a registration message to the redirection scheduling service, which contains the basic information of the gateway; the gateway needs to report its internal device capacity and the specific device list assigned to the gateway to the redirection scheduling service at a preset fixed time interval; The redirection scheduling service calculates the remaining access capacity of each gateway in real time based on the current capacity and maximum capacity reported by each gateway. When a device initiates registration with the service, the redirection scheduling service assigns the appropriate gateway to the device based on the scheduling strategy. The redirection scheduling service includes service self-scheduling and external control scheduling. The scheduling process steps of the service's own scheduling are as follows: S1. All devices that need to be managed must submit a registration application to the redirection scheduling service, and use different ports for access according to the access protocol type of the device; S2, the redirection dispatch service will internally evaluate and assign it to the gateway with the lowest load; S3. The redirection scheduling service will synchronize the information of the allocated device to the target gateway according to the access protocol of the device and the method supported by each protocol; the synchronized information at least includes the user name, password, registration ID, channel information and related authentication information of the device; S4. The redirection scheduling service will return a redirection address to the device, and the device needs to continue the registration process based on this address; S5. The device needs to initiate a registration request to the provided redirection address; S6. The target gateway will perform internal authentication on the device information. If the authentication is successful, the device will be officially online. If the authentication fails, the device needs to restart the registration process from step S1. S7. The target gateway will report its load status regularly, and the redirection scheduling service will record and update the current load information of each gateway; The scheduling process steps of external control scheduling are as follows: S1, interface provided by external call redirection scheduling service; S2. Perform a search operation to find the gateway to which the device belongs; S3. Send a request to the original gateway to cancel the scheduling of the device; S4. The redirection scheduling service will re-establish the binding relationship between the device and the gateway; S5. The original gateway checks the online status of the device. If the device is online, the logout operation is performed. S6. The device will actively initiate a new registration request to the redirection scheduling service; S7, the redirection scheduling service synchronizes the latest information of the device to the new gateway; S8. The device receives the new redirection gateway address returned by the redirection scheduling service; S9. The device will continue the registration process based on the new redirection address. S10. The new target gateway will perform internal authentication on the device. If the authentication is successful, the device will be online. Otherwise, the device needs to re-execute the registration process from step 1. S11. The target gateway will report its load status regularly, and the redirection scheduling service will record and update the current load information; In the implementation shown, the redirection function is separated from the traditional registration process, and a new redirection scheduling service is independently constructed to achieve efficiency and flexibility in the camera access redirection process, thereby better meeting the needs of service device redirection in large-scale camera access scenarios; By hiding the differences in implementation details between different vendors, these differences are integrated into a unified implementation framework; the redirection function is separated from the traditional registration process, and a new redirection scheduling service is independently built; The redirection scheduling service integrates protocols of different access methods to implement the redirection function. The protocols include at least the SIP protocol of GB28181 and the manufacturer's private SDK protocol, achieving comprehensive coverage of the redirection function protocol; and encapsulating it into a unified process, exposing only the two core functions of device registration and returning the redirection address to the device, so as to better meet the needs of service device redirection in large-scale camera access scenarios; it eliminates the differences in redirection implementation between different access methods, ensures the unification of service output specifications, and thus guarantees the wide applicability and consistency of the redirection process.

Citation Information

Patent Citations

  • Cloud platform service access method and redirection server

    CN110445873A

  • Redirection cascade mode application method based on GAT28181 protocol

    CN110602141A