A data interaction line control method, device, medium and equipment for cloud platform
Through the network address allocation and adjustment of the hybrid network cloud host, the problems of poor interoperability and high cost of network resources in video surveillance are solved, and efficient data transmission and cost optimization are achieved.
Patent Information
- Application Number
- CN202110857953.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-28
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2041-07-28
AI Technical Summary
In video surveillance scenarios, when using a single network cloud host, network resource interoperability is poor, which can easily lead to business failures, while the cost of multi-line hybrid network cloud hosts is high.
The hybrid network cloud host receives the connection request of the camera device, determines the adapted target single network cloud host according to its access network operator information, sends and connects the network address, and combines the client's access request processing to realize the network allocation and adjustment of the camera device and the client.
It improves data transmission performance, reduces the cost of using cloud platform systems, and meets diverse customer needs.
Smart Images

Figure CN115695420B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of video surveillance technology, and in particular to a method, device, medium, and equipment for controlling data interaction lines on a cloud platform. Background Art
[0002] In the field of video surveillance, enterprise developers can lease basic resources such as cloud hosts, bandwidth, and databases from cloud vendors, deploy their own business application software and databases in the basic resources, and provide business support services to the outside world through public networks.
[0003] In existing technology, cloud vendors build their own internet data centers, integrate network resources from operators, and ultimately provide these resources to enterprise developers as network resource products. When enterprise developers' business applications exchange data with external clients, they communicate with clients over these network lines, providing services to their customers.
[0004] In video surveillance scenarios, business applications require the transmission of large amounts of video stream data across the network, consuming significant network resources. Using a single network cloud host results in cross-network resource transmission, which can lead to poor interoperability and potentially cause service failures. Multi-network hybrid cloud hosts, which integrate networks from multiple major carriers, ensure efficient data transmission but are expensive and costly to use. Summary of the Invention
[0005] The embodiments of the present application provide a data interaction line control method, apparatus, medium, and equipment for a cloud platform, which can allocate and adjust the access network of camera devices and clients based on a cloud host cluster composed of different network modes, thereby improving the performance of data transmission while reducing the cost of using the cloud platform system and meeting diverse customer needs.
[0006] In a first aspect, an embodiment of the present application provides a data interaction line control method for a cloud platform, the method being executed by the cloud platform, wherein a server cluster of the cloud platform is divided into a hybrid network cloud host and at least one single network cloud host in a network mode, the method comprising:
[0007] Receiving, through the hybrid network cloud host, a connection request from the camera device after it is powered on;
[0008] Determining a target single network cloud host compatible with the camera device based on the access network operator information of the camera device;
[0009] Sending the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host to connect to the camera device;
[0010] receiving, through the hybrid network cloud host, a request from a client to access a camera device;
[0011] The network address of the target single network cloud host to which the camera device is connected is fed back to the client, so that the client can send an access request to the camera device to the target single network cloud host to connect the client to the camera device and process the access request.
[0012] In a second aspect, an embodiment of the present application provides a data interaction line control device for a cloud platform, wherein the device is configured on the cloud platform, wherein a server cluster of the cloud platform is divided into a hybrid network cloud host and at least one single network cloud host in a network mode, and the device includes:
[0013] A connection request receiving module, configured to receive a connection request from a camera device after it is powered on, via the hybrid network cloud host;
[0014] A network cloud host determination module, configured to determine a target single network cloud host compatible with the camera device based on the access network operator information of the camera device;
[0015] a network address sending module, configured to send the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host to connect to the camera device;
[0016] An access request receiving module, configured to receive an access request from a client to a camera device via the hybrid network cloud host;
[0017] The network address feedback module is used to feed back the network address of the target single network cloud host to which the camera device is connected to the client, so that the client can send an access request to the camera device to the target single network cloud host to connect the client to the camera device and process the access request.
[0018] In a third aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the data interaction line control method of the cloud platform as described in the embodiment of the present application is implemented.
[0019] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the computer program, the data interaction line control method of the cloud platform as described in the embodiment of the present application is implemented.
[0020] The technical solution provided by the embodiment of the present application receives the connection request of the camera device after it is powered on through the hybrid network cloud host; then, based on the access network operator information of the camera device, determines the target single network cloud host that is compatible with the camera device; sends the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host to connect with the camera device; then, receives the client's access request to the camera device through the hybrid network cloud host; feeds back the network address of the target single network cloud host to which the camera device is connected to the client, so that the client can send an access request to the target single network cloud host to connect the client with the camera device and process the access request. This solution can allocate and adjust the access network for camera devices and clients based on a cloud host cluster composed of different network modes, thereby improving the performance of data transmission while reducing the cost of using the cloud platform system and meeting diverse customer needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a flow chart of the data interaction line control method of the cloud platform provided in Example 1 of the present application;
[0022] Figure 2 A schematic diagram of the structure of a server cluster of a cloud platform provided in the first embodiment of the present invention;
[0023] Figure 3 This is a flow chart of a data interaction line control method for a cloud platform provided in the second embodiment of the present invention;
[0024] Figure 4 A schematic diagram of the structure of a data interaction line control device for a cloud platform provided in the third embodiment of the present invention;
[0025] Figure 5 This is a structural diagram of an electronic device provided in Example 5 of the present invention. DETAILED DESCRIPTION
[0026] The present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the present application and are not intended to limit the present application. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions of the present application, not all of the structures.
[0027] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0028] Example 1
[0029] Figure 1 This is a flow chart of a data interaction line control method for a cloud platform, provided in Example 1 of the present application. This embodiment is applicable to data interaction scenarios for video surveillance and is applied to a cloud platform, where the server cluster of the cloud platform is divided into a hybrid network cloud host and at least one single network cloud host in a network mode. This method can be executed by the data interaction line control device for the cloud platform, provided in Example 1 of the present application. This device can be implemented using software and / or hardware and can be integrated into electronic devices.
[0030] like Figure 1 As shown, the data interaction line control method of the cloud platform includes:
[0031] S110, receiving a connection request after the camera device is powered on through the hybrid network cloud host.
[0032] This solution can be implemented by a cloud platform, which includes at least one server cluster. The server cluster can be divided into at least one hybrid network cloud host and at least one single network cloud host, depending on the network model. The hybrid network cloud host can use multiple connection lines, such as a BGP (Border Gateway Protocol) network cloud host. The single network cloud host can use a single connection line, such as a telecom network cloud host, a mobile network cloud host, or a Unicom network cloud host.
[0033] The structure of the server cluster can be as follows: Figure 2 As shown, cloud host 1 is a BGP network cloud host, cloud host 2 is a telecommunications network cloud host, cloud host 3 is a mobile network cloud host, and cloud host 4 is a Unicom network cloud host.
[0034] A single network cloud host can be deployed in a distributed manner based on the region. The specific deployment strategy can be determined based on the distribution of camera devices and clients. For example, if cameras and clients in a certain area are more likely to use mobile networks, the cloud host in that area can be a mobile network cloud host. Multiple cloud hosts can be connected using the cloud provider's internal backbone network for fast and stable data transmission.
[0035] Cloud services can be deployed in the cloud host. These services may include a service processing module, a connection scheduling module, and a network diagnostic module. The service response module can be used to process service requests from clients and camera devices. The connection scheduling module can be used to schedule which cloud platform the client and camera device should connect to. The network diagnostic module can be used to monitor the network status of the client and camera device and determine whether a network switch is necessary based on preset indicators.
[0036] After being powered on, the camera device can actively send a connection request to the hybrid network cloud platform in the server cluster, and the hybrid network cloud platform can receive the connection request from the camera device. Figure 2 After being powered on, camera device 1 and camera device 2 can both send connection requests to the BGP network cloud platform in the server cluster.
[0037] S120: Determine a target single network cloud host compatible with the camera device based on the access network operator information of the camera device.
[0038] After receiving a connection request from a camera device, the hybrid network cloud platform in the server cluster can determine a target single network cloud host compatible with the camera device based on the camera device's access network operator information. The network operator information may include operator name, bandwidth, data transmission rate, etc.
[0039] For example Figure 2 The network accessed by the camera device 2 is a telecommunications network. The cloud host 1 in the cloud platform can determine that the target single network cloud host adapted to the camera device 2 is the cloud host 2 based on the access network of the camera device 2.
[0040] S130 , sending the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host to connect with the camera device.
[0041] After determining the appropriate target single network cloud host for the camera device, the hybrid network cloud platform in the server cluster sends the network address of the target single network cloud host to the camera device. The camera device can initiate a connection request to the target single network cloud host to establish a connection.
[0042] For example Figure 2 The cloud service connection scheduling module in cloud platform cloud host 1 sends the address of cloud host 2 to camera device 2, and also sends the identification information of camera device 2 to the cloud service connection scheduling module of cloud host 2, and records the redirection information of camera device 2 in the database. After receiving the network address of the redirection connection, camera device 2 will initiate a connection request to cloud host 2, so that cloud host 2 and camera device 2 can establish a connection.
[0043] S140: Receive a request from a client to access a camera device through the hybrid network cloud host.
[0044] When a client initiates its first access request to a camera device, it must send the request to the hybrid network cloud host. This request may include client information, information about the camera device being accessed, and the service request. Based on the camera device information in the request, the hybrid network cloud host can query the target single network cloud host for the camera device after redirection.
[0045] like Figure 2 As shown, when client 2 initiates an access request, the access request is first sent to cloud host 1. The connection scheduling module in cloud host 1 can query the redirected cloud host of camera device 2 as cloud host 2 based on the camera device information in the access request.
[0046] S150, feeding back the network address of the target single network cloud host to which the camera device is connected to the client, so that the client can send an access request to the camera device to the target single network cloud host to connect the client to the camera device and process the access request.
[0047] The hybrid network cloud platform in the server cluster feeds the network address of the target single network cloud host to the client. The client can then send an access request to the target single network cloud host based on the network address of the target single network cloud host. This will connect the client to the camera device and complete the processing of the client's access request.
[0048] Continue to refer Figure 2After Cloud Host 1 finds that the redirected cloud host for Camera Device 2 is Cloud Host 2, it can return the address of Cloud Host 2 to Client 2, send Client 2's account information to Cloud Host 2, and record the account redirection information in the database. Client 2 can update the access address and initiate a connection to Cloud Host 2, so that Cloud Host 2 can process the service request sent by the client.
[0049] In a feasible embodiment, optionally, the method further includes:
[0050] Determining a transmission volume parameter weight and a timeliness parameter weight of the service request according to a service request received from a client;
[0051] If the transmission volume parameter weight is greater than the timeliness parameter weight, the target single network cloud host is used to process the service;
[0052] If the transmission volume parameter weight is less than the timeliness parameter weight, a hybrid network cloud host is used to process the service.
[0053] The service request may include a transmission volume parameter weight and a timeliness parameter weight. The transmission volume parameter weight may be used to evaluate the size of the service request transmission volume, and the timeliness parameter weight may be used to evaluate the timeliness requirement of the service request.
[0054] Based on the specific business requests from clients, the cloud platform can assign requests with high data volumes and low latency requirements to a single network cloud host. For example, when a client issues a request for long-duration live video or playback, the cloud platform can use connection scheduling to handle the request using a single network cloud host. For requests with low data volumes and high latency requirements, the cloud platform can utilize a hybrid network cloud host.
[0055] In actual video surveillance scenarios, the client's pre-configured service request policy can be used to categorize specific service requests. Each service request can be weighted based on timeliness and data transmission volume requirements. The transmission volume parameter weight and the timeliness parameter weight can have the same numerical range for easier comparison and calculation, or they can have separate calculation systems, with pre-set rules used for comparison when necessary. When the timeliness parameter weight is higher, the service request is connected to a hybrid network cloud host; when the transmission volume parameter weight is higher, the request is connected to a single network cloud host. When the weights are the same, a single network cloud host can be prioritized for cost optimization; a hybrid network cloud host can be prioritized for timeliness and efficiency.
[0056] The transmission volume parameter weight and the timeliness parameter weight can be fixed in the client, or can be synchronously sent to the client through the cloud service, or can even be flexibly set by the client within a certain range.
[0057] This embodiment can perform different business processing according to specific business requests, thus saving the cost of using the cloud platform to the greatest extent and meeting the diverse needs of customers.
[0058] The technical solution provided by the embodiment of the present application receives the connection request of the camera device after it is powered on through the hybrid network cloud host; then, based on the access network operator information of the camera device, determines the target single network cloud host that is compatible with the camera device; sends the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host to connect with the camera device; then, receives the client's access request to the camera device through the hybrid network cloud host; feeds back the network address of the target single network cloud host to which the camera device is connected to the client, so that the client can send an access request to the target single network cloud host to connect the client with the camera device and process the access request. This solution can allocate and adjust the access network for camera devices and clients based on a cloud host cluster composed of different network modes, thereby improving the performance of data transmission while reducing the cost of using the cloud platform system and meeting diverse customer needs.
[0059] Example 2
[0060] Figure 3 This is a flow chart of data interaction line control of the cloud platform in the second embodiment of the present invention. This embodiment is optimized based on the above embodiment.
[0061] like Figure 3 As shown, the method of this embodiment specifically includes the following steps:
[0062] S210, receiving a connection request after the camera device is powered on through the hybrid network cloud host.
[0063] S220: Determine a target single network cloud host compatible with the camera device based on the access network operator information of the camera device.
[0064] S230, sending the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host; and sending the device information of the camera device to the target single network cloud host, so that the target single network cloud host can perform identity verification on the received connection request and connect with the camera device after the verification is passed.
[0065] The connection request may include the initiating device number, request target, request task, request time, etc. The device information of the camera device may include the device number, device model, location, connection status, and region.
[0066] After determining a suitable target single network cloud host for the camera device, the hybrid network cloud platform in the server cluster sends the network address of the target single network cloud host to the camera device, allowing the camera device to initiate a connection request to the target single network cloud host. Simultaneously, the hybrid network cloud platform in the server cluster sends the camera device's device information to the target single network cloud host, which then verifies the identity of the connection request and, if successful, connects to the camera device.
[0067] For example Figure 2 The cloud service's connection scheduling module in cloud host 1 on the cloud platform sends the address of cloud host 2 to camera device 2. It also sends camera device 2's identification information to the connection scheduling module in cloud host 2's cloud service and records the redirection information for camera device 2 in a database. After receiving the redirection address, camera device 2 initiates a connection request to cloud host 2. After verifying the connection request, the connection scheduling module in cloud host 2's cloud service forwards it to the cloud service's service response module, which then establishes a connection with camera device 2.
[0068] In this solution, the target single network cloud host needs to verify the device information of the camera device before establishing a connection, which protects the security of the cloud platform and ensures the stability of the cloud platform's operation without connection confusion.
[0069] S240: Receive a request from the client to access the camera device through the hybrid network cloud host.
[0070] S250, feeds back the network address of the target single network cloud host to which the camera device is connected to the client, so that the client can send an access request for the camera device to the target single network cloud host to connect the client with the camera device; and sends the account information of the client to the target single network cloud host, so that the target single network cloud host can perform account verification on the received access request, and connect the client with the camera device after the verification is passed to process the access request.
[0071] The access request may include the requesting device number, access target, access reason, access time, etc. The client account information may include account ID, access time, frequently used accesses, historical access records, etc.
[0072] The hybrid network cloud platform in the server cluster sends the network address of the target single network cloud host to the client. Based on the network address, the client can then send a request to the target single network cloud host for access to the camera device. Simultaneously, the hybrid network cloud platform sends the client's account information to the target single network cloud host. The target single network cloud host then verifies the account of the access request and, if verified, connects the client to the camera device.
[0073] like Figure 2 As shown in , after cloud host 1 determines that the redirected cloud host for camera device 2 is cloud host 2, it can return the address of cloud host 2 to client 2, simultaneously send client 2's account information to cloud host 2, and record the account redirection information in the database. Client 2 can then update the access address and initiate a connection to cloud host 2. After verifying the account information, the cloud service connection scheduling module in cloud host 2 forwards the access request to the service response module, which then processes the service request from the client.
[0074] In this solution, the target single network cloud host needs to verify the client's account information before establishing a connection, which protects the security of the client and ensures the reliability of the connection without connection confusion.
[0075] In this embodiment, optionally, the method further includes:
[0076] If the target single network cloud host recognizes the first network mode switching event, the network address of the hybrid network cloud host is sent to the camera device and the client, so that the camera device and the client can respectively initiate connection requests to the hybrid network cloud host;
[0077] The hybrid network cloud host establishes a network connection with the camera device and the client according to the connection request.
[0078] The first network mode switching event may be when the target single network cloud host determines that the network connection of the camera device needs to be switched to a hybrid network. When the first network mode switching event occurs, the target single network cloud host may identify the event, for example, by detecting a network failure through a network diagnostic module of the cloud service.
[0079] In this solution, optionally, the first network mode switching event includes detecting, by the target single network cloud host, that the number of network delays and / or network interruptions reaches a set threshold.
[0080] The set threshold value reached by the network delay can be a fixed network delay duration, or a network delay duration dynamically set according to specific circumstances. This embodiment can evaluate the network status based on the network delay and / or the number of network interruptions, providing an accurate evaluation standard for the target single network cloud host.
[0081] In practice, a single network cloud server can meet normal usage requirements most of the time. However, due to its inherent characteristics, single network cloud servers often face issues that cannot be resolved immediately. For example, when a carrier's network node experiences significant latency or a failure, the only solution is to rely on the carrier to repair the network. When clients have high real-time requirements for certain business scenarios, the lack of alternative routes can result in a poor customer experience.
[0082] In this case, the cloud platform can send the network address of the hybrid network cloud host to the camera device and client. The camera device and client can then initiate connection requests to the hybrid network cloud host, implementing connection scheduling. The hybrid network cloud host will then process the requests from the camera device and client. The hybrid network cloud host can then establish a network connection with the camera device and client based on the connection requests.
[0083] Based on the above embodiments, optionally, after sending the network address of the hybrid network cloud host to the camera device and the client so that the camera device and the client can respectively initiate connection requests to the hybrid network cloud host, the method further includes:
[0084] The identity information of the camera device and the client account information are sent to the hybrid network cloud host through the target single network cloud host, so that the hybrid network cloud host can verify the identity information and the account information.
[0085] Still Figure 2 Taking the content shown as an example, when the network diagnostic module of the cloud service in cloud host 2 determines that the network connection of camera 2 needs to be switched to the BGP network, the following method can be used for scheduling: cloud host 2 can send the network address of cloud host 1 to camera 2 and client 2 respectively, and can also send the account information of client 2 to cloud host 1. Client 2 and camera 2 initiate a connection to cloud host 1 based on the network address sent by cloud host 2. After receiving the request, cloud host 1 verifies the information sent by cloud host 2. After verification, the connection service is provided to camera 2 and client 2.
[0086] This solution can dynamically schedule connections in a timely manner when a single network cloud host network fails, providing timely request responses to clients, making the cloud platform more anti-interference and having good stability.
[0087] In another feasible embodiment, optionally, the method further includes:
[0088] If the hybrid network cloud host receives a second network mode switching event sent by the client, determining the network address of the target single network cloud host to which the camera device is connected;
[0089] Sending a connection switching instruction to the target single network cloud host to provide the network address of the hybrid network cloud host to the camera device through the target single network cloud host; allowing the camera device to connect to the hybrid network cloud host through the network address of the hybrid network cloud host; and sending a connection switching instruction to the client through the target single network cloud host, allowing the client to connect to the hybrid network cloud host.
[0090] The second network mode switching event may be a situation where the client determines that the network connection of the camera device needs to be switched to a hybrid network. The client may detect the network status and may also actively trigger a network switching request.
[0091] In this solution, optionally, the second network mode switching event includes detecting, by the client, that the number of network delays and / or network interruptions reaches a set threshold.
[0092] The set threshold value reached by the network delay can be a fixed network delay duration, or a network delay duration dynamically set according to specific circumstances. This embodiment can evaluate the network status by network delay and / or number of network interruptions, providing the client with an accurate evaluation standard.
[0093] After receiving the second network mode switching event from the client, the hybrid network cloud host can determine the network address of the target single network cloud host to which the camera device is connected. It will be appreciated that the hybrid network cloud host can send a connection switching instruction to the target single network cloud host, thereby providing the hybrid network cloud host's network address to the camera device via the target single network cloud host. The camera device can connect to the hybrid network cloud host using the hybrid network cloud host's network address, while simultaneously sending the connection switching instruction to the client via the target single network cloud host. This allows the client to connect to the hybrid network cloud host.
[0094] Continue with Figure 2Taking the content shown as an example, assuming that a network switching request is triggered when client 2 accesses camera 2, the scheduling method can be as follows: client 2 connects to the address of cloud host 1 and requests to establish a connection through the cloud service of cloud host 1; after receiving the information, the cloud service of cloud host 1 queries according to the account information sent by client 2 to find the network address of the corresponding target single network cloud host; the connection scheduling module of the cloud service of cloud host 1 sends a message to the cloud service scheduling module of cloud host 2 to redirect the connection of the corresponding camera device to the cloud service of cloud host 1; after receiving the message, cloud host 2 sends the address of cloud host 1 to camera 2; camera 2 initiates a connection to cloud host 1, and cloud host 1 establishes the service; cloud host 1 updates the connection server information of device information and account information.
[0095] This solution can dynamically schedule connections in a timely manner when a network failure occurs or the current network does not meet customer needs, providing clients with timely request responses, meeting customers' diverse needs, and improving customer satisfaction.
[0096] The technical solution provided by the embodiment of the present application receives a connection request from a camera device after it is powered on via a hybrid network cloud host. The hybrid network cloud host then determines a target single network cloud host compatible with the camera device based on the camera device's access network operator information. The network address of the target single network cloud host is sent to the camera device, allowing the camera device to initiate a connection request to the target single network cloud host to connect to the camera device. The hybrid network cloud host then receives a client's access request to the camera device. The network address of the target single network cloud host to which the camera device is connected is fed back to the client, allowing the client to send an access request to the target single network cloud host to connect the client to the camera device and process the access request. This solution can improve data transmission performance, reduce the cost of using the cloud platform system, and meet diverse customer needs.
[0097] Example 3
[0098] Figure 4 This is a schematic diagram of the structure of a data interaction line control device for a cloud platform provided in a fourth embodiment of the present invention. This device can execute the data interaction line control method for a cloud platform provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. The device is configured on a cloud platform, and the server cluster of the cloud platform is divided into a hybrid network cloud host and at least one single network cloud host in a network mode. The device includes:
[0099] A connection request receiving module 310 is configured to receive a connection request from a camera device after it is powered on via the hybrid network cloud host;
[0100] A network cloud host determination module 320 is configured to determine a target single network cloud host compatible with the camera device based on the access network operator information of the camera device;
[0101] A network address sending module 330 is configured to send the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host to connect to the camera device;
[0102] An access request receiving module 340 is configured to receive an access request from a client to a camera device via the hybrid network cloud host;
[0103] The network address feedback module 350 is used to feed back the network address of the target single network cloud host to which the camera device is connected to the client, so that the client can send an access request for the camera device to the target single network cloud host to connect the client to the camera device and process the access request.
[0104] In this solution, optionally, the network address sending module 330 is specifically configured to:
[0105] Sending the network address of the target single network cloud host to the camera device so that the camera device can initiate a connection request to the target single network cloud host; and sending the device information of the camera device to the target single network cloud host so that the target single network cloud host can perform identity verification on the received connection request and connect with the camera device after the verification is passed;
[0106] Accordingly, in a feasible embodiment, optionally, the network address feedback module 350 is specifically configured to:
[0107] The network address of the target single network cloud host to which the camera device is connected is fed back to the client, so that the client can send an access request for the camera device to the target single network cloud host to connect the client with the camera device; and the account information of the client is sent to the target single network cloud host, so that the target single network cloud host can perform account verification on the received access request, and connect the client with the camera device after the verification is passed to process the access request.
[0108] In this embodiment, optionally, the network cloud host determination module 320 is further configured to:
[0109] If the target single network cloud host recognizes the first network mode switching event, the network address of the hybrid network cloud host is sent to the camera device and the client, so that the camera device and the client can respectively initiate connection requests to the hybrid network cloud host;
[0110] The hybrid network cloud host establishes a network connection with the camera device and the client according to the connection request.
[0111] In another feasible embodiment, the network cloud host determination module 320 is further configured to:
[0112] The identity information of the camera device and the client account information are sent to the hybrid network cloud host through the target single network cloud host, so that the hybrid network cloud host can verify the identity information and the account information.
[0113] In this embodiment, optionally, the network cloud host determination module 320 is further configured to:
[0114] If the hybrid network cloud host receives a second network mode switching event sent by the client, determining the network address of the target single network cloud host to which the camera device is connected;
[0115] Sending a connection switching instruction to the target single network cloud host to provide the network address of the hybrid network cloud host to the camera device through the target single network cloud host; allowing the camera device to connect to the hybrid network cloud host through the network address of the hybrid network cloud host; and sending a connection switching instruction to the client through the target single network cloud host, allowing the client to connect to the hybrid network cloud host.
[0116] In the embodiment of the present invention, optionally, the first network mode switching event includes detecting, by the target single network cloud host, that the number of network delays and / or network interruptions reaches a set threshold;
[0117] The second network mode switching event includes detecting, by the client, that the number of network delays and / or network interruptions reaches a set threshold.
[0118] In a preferred embodiment, optionally, the access request receiving module 340 is further configured to:
[0119] Determining a transmission volume parameter weight and a timeliness parameter weight of the service request according to a service request received from a client;
[0120] If the transmission volume parameter weight is greater than the timeliness parameter weight, the target single network cloud host is used to process the service;
[0121] If the transmission volume parameter weight is less than the timeliness parameter weight, a hybrid network cloud host is used to process the service.
[0122] The above-mentioned product can execute the data interaction line control method of the cloud platform provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
[0123] Example 4
[0124] A fourth embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for controlling a data interaction line of a cloud platform as provided in all the embodiments of the present invention is implemented. The method is executed by a cloud platform, wherein a server cluster of the cloud platform is divided into a hybrid network cloud host and at least one single network cloud host in a network mode. The method includes:
[0125] Receiving, through the hybrid network cloud host, a connection request from the camera device after it is powered on;
[0126] Determining a target single network cloud host compatible with the camera device based on the access network operator information of the camera device;
[0127] Sending the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host to connect to the camera device;
[0128] receiving, through the hybrid network cloud host, a request from a client to access a camera device;
[0129] The network address of the target single network cloud host to which the camera device is connected is fed back to the client, so that the client can send an access request to the camera device to the target single network cloud host to connect the client to the camera device and process the access request.
[0130] Any combination of one or more computer-readable media can be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device.
[0131] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0132] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0133] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0134] Example 5
[0135] Embodiment 5 of the present application provides an electronic device. Figure 5 This is a schematic diagram of the structure of an electronic device provided in Example 5 of this application. Figure 5 As shown, this embodiment provides an electronic device 500, which includes: one or more processors 520; a storage device 510 for storing one or more programs. When the one or more programs are executed by the one or more processors 520, the one or more processors 520 implement the data interaction line control method of the cloud platform provided in the embodiment of the present application. The method is executed by the cloud platform, and the server cluster of the cloud platform is divided into a hybrid network cloud host and at least one single network cloud host in a network mode. The method includes:
[0136] Receiving, through the hybrid network cloud host, a connection request from the camera device after it is powered on;
[0137] Determining a target single network cloud host compatible with the camera device based on the access network operator information of the camera device;
[0138] Sending the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host to connect to the camera device;
[0139] receiving, through the hybrid network cloud host, a request from a client to access a camera device;
[0140] The network address of the target single network cloud host to which the camera device is connected is fed back to the client, so that the client can send an access request to the camera device to the target single network cloud host to connect the client to the camera device and process the access request.
[0141] Of course, those skilled in the art will appreciate that the processor 520 also implements the technical solution of the data interaction line control method of the cloud platform provided in any embodiment of the present application.
[0142] Figure 5 The electronic device 500 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0143] like Figure 5 As shown, the electronic device 500 includes a processor 520, a storage device 510, an input device 530, and an output device 540; the number of processors 520 in the electronic device can be one or more. Figure 5 In the figure, a processor 520 is used as an example; the processor 520, the storage device 510, the input device 530 and the output device 540 in the electronic device can be connected via a bus or other means. Figure 5The connection via bus 550 is taken as an example.
[0144] The storage device 510 is a computer-readable storage medium that can be used to store software programs, computer executable programs, and module units, such as program instructions corresponding to the data interaction line control method of the cloud platform in the embodiment of the present application.
[0145] The storage device 510 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data created based on the use of the terminal, etc. Furthermore, the storage device 510 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some instances, the storage device 510 may further include a memory remotely located relative to the processor 520, and these remote memories may be connected via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0146] The input device 530 may be used to receive input numbers, character information or voice information, and generate key signal input related to user settings and function control of the electronic device. The output device 540 may include electronic devices such as a display screen and a speaker.
[0147] The electronic device provided in the embodiment of the present application improves the performance of data transmission, reduces the cost of using the cloud platform system, and meets diverse customer needs through single network cloud host information grouping connection, dynamic scheduling switching connection and business request classification.
[0148] The cloud platform data interaction line control device, medium, and electronic device provided in the above embodiments can execute the cloud platform data interaction line control method provided in any embodiment of the present application, and have the corresponding functional modules and beneficial effects of executing the method. For technical details not fully described in the above embodiments, please refer to the cloud platform data interaction line control method provided in any embodiment of the present application.
[0149] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A data interaction line control method for a cloud platform, characterized in that: The method is performed by a cloud platform, wherein a server cluster of the cloud platform is divided into a hybrid network cloud host and at least one single network cloud host in a network mode, wherein the hybrid network cloud host supports multiple network connection lines, and the single network cloud host supports one network connection line, and the method includes: Receiving, through the hybrid network cloud host, a connection request from the camera device after it is powered on; Determining a target single network cloud host compatible with the camera device based on the access network operator information of the camera device; Sending the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host to connect to the camera device; receiving, through the hybrid network cloud host, a request from a client to access a camera device; The network address of the target single network cloud host to which the camera device is connected is fed back to the client, so that the client can send an access request to the camera device to the target single network cloud host to connect the client to the camera device and process the access request.
2. The method according to claim 1, characterized in that Sending the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host to connect with the camera device, including: Sending the network address of the target single network cloud host to the camera device so that the camera device can initiate a connection request to the target single network cloud host; and sending the device information of the camera device to the target single network cloud host so that the target single network cloud host can perform identity verification on the received connection request and connect with the camera device after the verification is passed; Accordingly, the network address of the target single network cloud host to which the camera device is connected is fed back to the client, so that the client can send an access request for the camera device to the target single network cloud host, thereby connecting the client to the camera device and processing the access request, including: The network address of the target single network cloud host to which the camera device is connected is fed back to the client, so that the client can send an access request for the camera device to the target single network cloud host to connect the client with the camera device; and the account information of the client is sent to the target single network cloud host, so that the target single network cloud host can perform account verification on the received access request, and connect the client with the camera device after the verification is passed to process the access request.
3. The method according to claim 1, characterized in that The method further comprises: If the target single network cloud host identifies a first network mode switching event, the target single network cloud host sends the network address of the hybrid network cloud host to the camera device and the client, so that the camera device and the client can respectively initiate connection requests to the hybrid network cloud host; the first network mode switching event includes detecting, by the target single network cloud host, that the number of network delays and / or network interruptions reaches a set threshold; The hybrid network cloud host establishes a network connection with the camera device and the client according to the connection request.
4. The method according to claim 3, characterized in that After sending the network address of the hybrid network cloud host to the camera device and the client, so that the camera device and the client can respectively initiate connection requests to the hybrid network cloud host, the method further includes: The identity information of the camera device and the account information of the client are sent to the hybrid network cloud host through the target single network cloud host, so that the hybrid network cloud host can verify the identity information and the account information.
5. The method according to claim 1, characterized in that The method further comprises: If the hybrid network cloud host receives a second network mode switching event sent by the client, determining the network address of the target single network cloud host to which the camera device is connected; the second network mode switching event includes detecting, by the client, that the number of network delays and / or network interruptions reaches a set threshold; Sending a connection switching instruction to the target single network cloud host to provide the network address of the hybrid network cloud host to the camera device through the target single network cloud host; allowing the camera device to connect to the hybrid network cloud host through the network address of the hybrid network cloud host; and sending a connection switching instruction to the client through the target single network cloud host, allowing the client to connect to the hybrid network cloud host.
6. The method according to claim 1, characterized in that The method further comprises: Determining a transmission volume parameter weight and a timeliness parameter weight of the service request according to a service request received from a client; If the transmission volume parameter weight is greater than the timeliness parameter weight, the target single network cloud host is used to process the service; If the transmission volume parameter weight is less than the timeliness parameter weight, a hybrid network cloud host is used to process the service.
7. A data interaction line control device for a cloud platform, characterized in that: The device is configured on a cloud platform, wherein a server cluster of the cloud platform is divided into a hybrid network cloud host and at least one single network cloud host in a network mode, wherein the hybrid network cloud host supports multiple network connection lines, and the single network cloud host supports one network connection line, and the device includes: A connection request receiving module, configured to receive a connection request from a camera device after it is powered on, via the hybrid network cloud host; A network cloud host determination module, configured to determine a target single network cloud host compatible with the camera device based on the access network operator information of the camera device; a network address sending module, configured to send the network address of the target single network cloud host to the camera device, so that the camera device can initiate a connection request to the target single network cloud host to connect to the camera device; An access request receiving module, configured to receive an access request from a client to a camera device via the hybrid network cloud host; The network address feedback module is used to feed back the network address of the target single network cloud host to which the camera device is connected to the client, so that the client can send an access request to the camera device to the target single network cloud host to connect the client to the camera device and process the access request.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the data interaction line control method of the cloud platform according to any one of claims 1 to 6 is implemented.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein: When the processor executes the computer program, the data interaction line control method of the cloud platform according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Cloud server access method and device, cloud server and storage medium
CN109587254A
Access methods and devices of hybrid clouds
CN109617906A