A video service multi-instance multi-port scheduling method and system

By monitoring and dynamically allocating port weights in real time through the streaming media management service system, the complexity caused by differences in network interfaces in streaming media services is solved, achieving efficient multi-port management, improving the performance and reliability of streaming media services, and supporting more application scenarios.

CN119815084BActive Publication Date: 2025-11-04CHINA TELECOM CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411773022.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-11-04
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

Existing multi-port management technologies for streaming media services have failed to effectively address the significant differences in bandwidth jitter and latency between different network interfaces, increasing the complexity and challenges of multipath transmission, leading to increased server load and performance bottlenecks.

Method used

The system employs a multi-instance video service and multi-instance port scheduling method. By monitoring access information in real time through the streaming media management service system and dynamically allocating port weights, it achieves dynamic loading and group management of streaming media service instances and ports, supporting access from smart terminals with different network interfaces.

Benefits of technology

It improves the reliability, stability, scalability, and user access flexibility of streaming media services, optimizes resource allocation and load balancing, enhances security, and supports more application scenarios and business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119815084B_ABST
    Figure CN119815084B_ABST
Patent Text Reader

Abstract

The application provides a video service multi-instance and multi-instance port scheduling method and system, wherein the method comprises the following steps: an access service receives an access request sent by an intelligent device corresponding to a service instance, the access request at least carrying device information and an access state of the intelligent device, and the device information is sent to a media management service and a scheduling service respectively; the scheduling service loads a scheduling strategy in real time and sends it to a real-time calculation service, and calculates an access point of the intelligent device based on the loaded scheduling strategy; the real-time calculation service monitors access information of the intelligent device in real time, and assigns a port weight according to a preset port model based on the access information, wherein the preset port model is a port configuration strategy preset for a terminal user of the intelligent device based on the needs of a business scene; and the media management service dynamically loads a streaming media service instance and a port based on the port weight assigned by the real-time calculation service. The application can improve the calling performance and scalability of the streaming media multi-service and multi-port in a distributed environment.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of video monitoring, in particular to a video service multi-instance and multi-port scheduling method and system. BACKGROUND

[0002] It is well known that streaming media services have wide applications in smart cities, city management, emergency command, government-enterprise supervision, smart parks, smart transportation, industrial Internet of Things and other fields. Multi-port management technology can meet the needs of high-quality, low-latency and strong-interactive audio and video services in these fields.

[0003] Traditional streaming media transmission methods require servers to handle a large number of point-to-point connections, which increases the load of the server and can cause performance bottlenecks. For this reason, the prior art provides various multi-port-based streaming media service management solutions, however, the existing multi-port management of streaming media services mainly focuses on how to improve the efficiency, stability and accessibility of streaming media transmission.

[0004] In fact, streaming media services have a very high demand for bandwidth resources, especially when a large number of clients access simultaneously, which can cause great pressure on network bandwidth. Moreover, different network interfaces such as WiFi and LTE often show significant differences in bandwidth jitter, latency and other aspects.

[0005] Although the prior art has proposed solutions to the point-to-point bottleneck problem, this solution only improves the efficiency, stability and accessibility of streaming media as a whole, however, the significant differences in bandwidth jitter, latency and other aspects of different network interfaces within the multi-port still exist, which undoubtedly increases the complexity and challenges of multi-path transmission technology. SUMMARY

[0006] The present application shows a video service multi-instance and multi-instance port scheduling method and system.

[0007] In a first aspect, the present application shows a video service multi-instance and multi-instance port scheduling method, the method comprising:

[0008] Applied to a streaming media management service system with service instance management function, the streaming media management service system is used to provide access service, streaming media management service, scheduling service and real-time computing service; the streaming media service instance management function covers the life cycle from creation to termination of the service instance, and the method comprises:

[0009] The access service receives an access request sent by an intelligent device corresponding to the service instance, the access request at least carrying device information and an access state of the intelligent device, and sends the device information to the media management service and the scheduling service respectively;

[0010] The scheduling service loads a scheduling policy in real time and sends it to the real-time computing service, and calculates an access point of the intelligent device based on the loaded scheduling policy;

[0011] The real-time computing service monitors access information of the intelligent device in real time, and assigns port weights according to a preset port model based on the access information, the preset port model being a port configuration policy preset for an end user of the intelligent device based on a service scenario requirement;

[0012] The media management service dynamically loads a streaming media service instance and a port based on the port weights assigned by the real-time computing service.

[0013] Preferably, the step of dynamically loading, by the media management service, the streaming media service instance and the port based on the port weights assigned by the real-time computing service comprises:

[0014] The media management service dynamically loads a streaming media service instance and a port based on a preset field model and according to the assigned port weights; wherein,

[0015] The preset field model at least includes one of the following fields: instance ID, home IDC ID, home machine ID, instance state, whether enabled, instance version, instance label, instance load, instance weight, and audit field.

[0016] Preferably, after the media management service dynamically loads the streaming media service instance and the port, grouping management is performed in a port mode, the port mode including a port exclusive mode and a port shared mode.

[0017] Preferably, the port at least includes one of the following: instance ID, port range start value, port range end value, port category, port purpose, instance load, and instance weight.

[0018] Preferably, the step of dynamically loading, by the media management service, the streaming media service instance and the port based on the port weights assigned by the real-time computing service comprises:

[0019] The media management service dynamically loads a streaming media service instance and a port in a chain queue mode based on the port weights assigned by the real-time computing service.

[0020] Preferably, the port strategy is configured in the following manner, including:

[0021] Obtaining streaming media service instance information and port information to be loaded, and initializing the port information;

[0022] When the head identifier and the tail identifier point to the same position, it is determined that the queue from the head to the tail is an empty queue, and the queue size is a maximum port value provided by a used protocol after loading grouping.

[0023] Preferably, the port strategy is configured in the following manner, further comprising:

[0024] When a port is added, the element is placed in the position pointed to by the tail identifier, and the tail identifier is moved down one position;

[0025] When a port is applied for use, the port at the current position of the head is set to an empty position, and the head identifier is moved down to the next port;

[0026] When a port is returned for use, the returned port is placed in the tail position, the tail identifier is moved down to the next position, and when the current port queue is full, it is determined whether there is an empty position at the head: if there is no empty position, the port queue is expanded; if there is an empty position, the port queue forms a circular queue, and the tail and head identifiers are moved to a position one greater than the size of the queue when the queue is full.

[0027] In a second aspect, the application shows a video service multi-instance and multi-instance port scheduling system, applied to a streaming media management service system with service instance management function, the streaming media management service system is used to provide access service, streaming media management service, scheduling service and real-time computing service; the streaming media service instance management function covers the life cycle from creation to termination of the service instance, and the system comprises:

[0028] An access request receiving module is configured to receive an access request sent by an intelligent device corresponding to a service instance through an access service, wherein the access request carries at least device information and an access state of the intelligent device, and the device information is sent to a media management service and a scheduling service respectively;

[0029] An access point calculation module is configured to load a scheduling strategy in the scheduling service in real time and send it to the real-time computing service, and calculate an access point of the intelligent device based on the loaded scheduling strategy.

[0030] A port configuration module is configured to monitor access information of the intelligent device in the real-time computing service in real time, and allocate port weights based on the access information and according to a preset port model, wherein the preset port model is a port configuration strategy preset by a terminal user of the intelligent device based on a business scenario requirement.

[0031] A scheduling module is configured to dynamically load a streaming media service instance and a port based on the port weights allocated by the real-time computing service in the media management service.

[0032] In a third aspect, the application shows an electronic device, comprising a processor, a memory for storing processor-executable instructions, wherein the processor is configured to execute the method of any of the above aspects.

[0033] In a fourth aspect, the present application shows a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method according to any one of the preceding aspects.

[0034] In a fifth aspect, the present application shows a computer program product, when instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to perform the method according to any one of the preceding aspects.

[0035] The technical scheme provided by the present application can include the following beneficial effects:

[0036] The video service multi-instance and multi-instance port scheduling method provided by the present application can effectively improve the calling performance and scalability of multi-service and multi-port of streaming media in a distributed environment. BRIEF DESCRIPTION OF DRAWINGS

[0037] Figure 1 is a step flow chart of a video service multi-instance and multi-instance port scheduling method of the present application;

[0038] Figure 2 is a media instance and port model schematic diagram of a video service multi-instance and multi-instance port scheduling method of the present application;

[0039] Figure 3 is a streaming media instance chain computing real-time ordering schematic diagram of a video service multi-instance and multi-instance port scheduling method of the present application;

[0040] Figure 4 is a streaming media instance and port model relationship schematic diagram of a video service multi-instance and multi-instance port scheduling method of the present application;

[0041] Figure 5 is a certain protocol port cyclic scheduling flowchart of a streaming media instance of a video service multi-instance and multi-instance port scheduling method of the present application;

[0042] Figure 6 is a structure schematic diagram of a video service multi-instance and multi-instance port scheduling method of the present application;

[0043] Figure 7 is a structure schematic diagram of a video service multi-instance and multi-instance port scheduling system of the present application;

[0044] Figure 8 is a block diagram of an electronic device of the present application;

[0045] Figure 9 is a block diagram of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present application.

[0047] Embodiment 1

[0048] Referring to Figure 1 , a step flowchart of a video service multi-instance and multi-instance port scheduling method of the present application is shown, applied to a streaming media management service system with service instance management function, the streaming media management service system being used to provide access service, streaming media management service, scheduling service and real-time computing service; the streaming media service instance management function covers the life cycle of service instance from creation to termination, and the method comprises:

[0049] Step S1: the access service receives an access request sent by an intelligent device corresponding to the service instance, the access request at least carrying device information and an access state of the intelligent device, and sends the device information to the media management service and the scheduling service respectively;

[0050] The streaming media service instance includes instance ID (IDENTITY DOCUMENT, identity certificate identification number), home ID (IDENTITY DOCUMENT, identity certificate identification number) C_ID (IDENTITY DOCUMENT, identity certificate identification number), home machine ID, instance state, whether to enable, instance version, instance label, instance load, instance weight, audit field; the instance port includes instance ID, instance port range start value, instance port range end value, instance port category, instance port purpose, instance load, instance weight; the scheduling strategy includes computing the streaming media service instance, the streaming media service instance load, and the instance port management mode.

[0051] Step S2: the scheduling service loads the scheduling strategy in real time and sends it to the real-time computing service, and calculates the access point of the intelligent device based on the loaded scheduling strategy;

[0052] Step S3: the real-time computing service monitors the access information of the intelligent device in real time, and assigns port weight according to a preset port model based on the access information, the preset port model being a port configuration strategy preset by a terminal user of the intelligent device based on the needs of a business scenario;

[0053] The media management service dynamically loads the streaming media service instance and the port based on the port weight assigned by the real-time computing service, and the step comprises:

[0054] The media management service dynamically loads the streaming media service instance and the port based on the preset field model and according to the assigned port weight; wherein,

[0055] The port at least comprises one of the instance ID, the port range start value, the port range end value, the port category, the port use, the instance load, and the instance weight.

[0056] Of course, the preset field model can also at least comprise one of the instance ID, the home IDC ID, the home machine ID, the instance state, whether to enable, the instance version, the instance label, the instance load, the instance weight, and the audit field.

[0057] The media management service dynamically loads the streaming media service instance and the port based on the port weight assigned by the real-time computing service, and the step comprises:

[0058] The media management service dynamically loads the streaming media service instance and the port in a chain queue mode based on the port weight assigned by the real-time computing service.

[0059] The port strategy is configured in the following manner, which comprises:

[0060] The streaming media service instance information and the port information to be loaded are acquired, and the port information is initialized.

[0061] When the head identifier and the tail identifier point to the same position, it is determined that the queue from the head to the tail is an empty queue, and the queue size is the maximum port value provided by the used protocol after the loading group.

[0062] The port strategy is configured in the following manner, which further comprises:

[0063] When the port is newly added, the element is placed in the position pointed by the tail identifier, and the tail identifier is moved down by one position.

[0064] When the port is applied for use, the port at the current position of the head is set as an empty position, and the head identifier is moved down to the next port.

[0065] When the port is returned for use, the returned port is placed in the tail position, the tail identifier is moved to the next position, and when the current port queue is full, it is determined whether there is an empty position at the head: if there is no empty position, the port queue is expanded; if there is an empty position, the port queue forms a circular queue, and the tail and the head are moved to the position of the queue size plus one when the queue is full.

[0066] Step S4: The media management service dynamically loads the stream media service instances and ports based on the port weights assigned by the real-time computing service.

[0067] The demand for bandwidth resources by stream media services is extremely high, especially when a large number of clients access simultaneously, which can cause great pressure on network bandwidth. Different network interfaces (such as WiFi and LTE) have significant differences in bandwidth jitter, latency, etc., which increases the complexity and challenges of multi-path transmission technology. Stream media multi-port management technology dynamically starts multiple ports through stream media services, and multi-port intelligent management algorithms, so that intelligent terminals establish different network connections to achieve grouping and independent access.

[0068] To improve the reliability and stability of stream media services, stream media services can provide services on multiple ports simultaneously, so as to ensure that even if a port fails or is congested, other ports can still work normally, providing continuous and stable stream media services for users.

[0069] To enhance the scalability of stream media services, as the number of users and demand increases, stream media services need to quickly expand their service capabilities. Multi-port management enables stream media services to flexibly add new ports to meet more concurrent requests and higher bandwidth demands.

[0070] To optimize resource allocation and load balancing, stream media services can more intelligently allocate server resources and distribute different requests to different ports for processing, thereby achieving load balancing. This not only improves server utilization, but also reduces the load pressure on individual ports, avoiding service interruptions or performance degradation due to individual port overload.

[0071] To improve the flexibility and convenience of user access, users may be in different network environments or use different devices to access stream media services. Multi-port management enables stream media services to support more network protocols and device types, providing more flexible and convenient access methods, such as some ports may support HTTP protocol, while other ports may support RTSP or RTMP protocol to meet the needs of different users.

[0072] To enhance the security and privacy protection of stream media services, through multi-port management, stream media services can implement more stringent security policies and access control mechanisms, such as different ports can be configured with different security levels and access permissions to ensure that only authenticated and authorized users can access specific stream media content. This not only protects the copyright and privacy of stream media content, but also prevents unauthorized access and malicious attacks.

[0073] Support more application scenarios and business needs, streaming media services have been widely used in video on demand, live service, distance education, security monitoring and other fields. Multi-port management enables streaming media services to support more application scenarios and business needs, such as supporting high-definition video transmission, multi-screen interaction, intelligent recommendation and other functions, so as to provide users with more rich and personalized experience.

[0074] In summary, the multi-port management method of streaming media service can improve the reliability, stability, scalability, resource allocation efficiency, user access flexibility and security of streaming media service, and support more application scenarios and business needs.

[0075] Embodiment 2:

[0076] As shown in Figure 6 The application provides a video service multi-instance and multi-instance port scheduling method, which realizes the scheduling and task distribution of intelligent terminal access requests through streaming media instance management, instance port management and scheduling, and realizes the intelligent scheduling of video service multi-instance and multi-instance port: applied to a streaming media management service system with service instance management function, the streaming media management service system is used to provide access service, streaming media management service, scheduling service and real-time computing service; the streaming media service instance management function covers the life cycle from creation to termination of the service instance, and the specific method includes:

[0077] Step S1: The access service receives the access request sent by the intelligent device corresponding to the service instance, and the access request at least carries the device information and the access state of the intelligent device, and sends the device information to the media management service and the scheduling service respectively;

[0078] Step S2: The scheduling service loads the scheduling strategy in real time and sends it to the real-time computing service, and calculates the access point of the intelligent device based on the loaded scheduling strategy;

[0079] Among them, the core fields of the streaming media instance include instance ID (IDENTITY DOCUMENT, identity identification number), home ID, C_ID (IDENTITY DOCUMENT, identity identification number), home machine ID, instance state, whether to enable, instance version, instance label, instance load, instance weight, audit field and other fields; The core fields of the multi-instance port of the streaming media instance include instance ID, instance port range start value, instance port range end value, instance port category, instance port purpose, instance load, instance weight and other fields, as shown in Figure 2

[0080] ​Step S3: The real-time computing service monitors the access information of the intelligent device in real time, and assigns port weights based on the access information and according to a preset port model, which is a port configuration strategy preset by a terminal user of the intelligent device based on the needs of a business scenario;

[0081] The media service manages dynamic loading of media service instances and instance ports, and the real-time computing service calculates the access number, load and other dimensional data of each service instance in real time. Considering the scalability of resource pools and nodes, the chain queue is adopted for dynamic scaling of the media service instances, because the chain queue can conveniently add and delete new media service instance nodes. However, the chain queue needs to dynamically allocate memory when adding nodes, which is a resource- and time-consuming process. If the instance number length is fixed and high performance is required, a queue in a sequential representation manner can be used. The media service instance screening process is as follows: an initial weight is set for each media service instance in the initial state, the real-time computing service obtains the statistical data of various dimensions of each instance, the instances are labeled, and the scheduling module sorts the instances in a chain manner according to the specified strategy. The sorting is not reflected by the value of the weight, but by the chain manner, in which each element stores the addresses of the previous and next elements. Each time the sorting is changed, only the pointers of the corresponding media service instance nodes need to be changed. Advantage: less change, and no performance problem caused by too many changes. For details, see Figure 3 .

[0082] The above algorithm realizes the screening of media service instances according to the specified strategy, and further screening and management of the media service instance ports are required. According to the protocol, the media service instances provide different instance port ranges in a dedicated / shared manner, and the instance ports need to be managed in groups. For details, see Figure 4 .

[0083] After grouping, the instance ports are screened according to the strategy. For details, see Figure 5, the service starts loading the stream media instance information and instance port information, and the instance port information is initialized. When the array as a whole is empty, the head of the queue is marked by begin, and the tail of the queue is marked by next. The head of the queue and the tail of the queue point to the same position (the place where the array is 0). When the head of the queue == the tail of the queue, the queue is empty. The size is the maximum instance port total value provided by the protocol after loading the group. When an instance port is added, the element is placed in the position pointed to by the tail of the queue next, and the tail of the queue next is moved down. When the instance port is applied, the current position of the head of the queue is empty, and the head of the queue is moved to the next instance port. When the instance port is returned, it is placed in the position pointed to by the tail of the queue next, and the tail of the queue next is moved to the next position. If it cannot be moved, it means that the current instance port queue is full. Then it is judged whether there is a free position at the head. If there is no free position, the instance port queue needs to be expanded. If there is a free position in front, the instance port queue forms a circular queue. When the tail of the queue next + 1 == the head of the queue begin, it means that the queue is full, and the instance port queue needs to be expanded. The tail of the queue next is moved to the size + 1 position.

[0084] The method of the chain queue includes: obtaining loaded stream media service instance information and instance port information, and initializing the instance port information. When the array as a whole is empty, the head of the queue is marked by begin, and the tail of the queue is marked by next. When the head of the queue == the tail of the queue, the queue is empty. The size is the maximum instance port total value provided by the protocol after loading the group. When an instance port is added, the element is placed in the position pointed to by the tail of the queue next, and the tail of the queue next is moved down. When the instance port is applied, the current position of the head of the queue is empty, and the head of the queue is moved to the next instance port. When the instance port is returned, it is placed in the position pointed to by the tail of the queue next, and the tail of the queue next is moved to the next position. If it cannot be moved, it means that the current instance port queue is full. Then it is judged whether there is a free position at the head. If there is no free position, the instance port queue needs to be expanded. If there is a free position in front, the instance port queue forms a circular queue. When the tail of the queue next + 1 == the head of the queue begin, it means that the queue is full, and the instance port queue needs to be expanded. The tail of the queue next is moved to the size + 1 position.

[0085] Step S4: The media management service dynamically loads the stream media service instance and port based on the port weight allocated by the real-time computing service.

[0086] It should be noted that for the method embodiments, the series of acts combinations are described for simplicity, but those skilled in the art should understand that the present application is not limited by the order of the acts described, as some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should understand that the embodiments described in the specification are all optional embodiments, and the acts involved are not necessarily essential to the present application.

[0087] The application provides a streaming media multi-instance and multi-instance port management method, which can effectively improve the calling performance and scalability of streaming media multi-service and multi-instance ports in a distributed environment. Although the application has been described in detail above with general description and specific embodiments, some parameter modifications or improvements can be made on the basis of the application, which is obvious to those skilled in the art. Therefore, these modifications or improvements made on the basis of not deviating from the idea of the application are within the scope of the application.

[0088] Embodiment 3

[0089] Referring to Figure 7 , a structural block diagram of a video service multi-instance and multi-instance port scheduling system of the application is shown, the system comprises:

[0090] The system of the application can manage streaming media service instances and instance instance ports. The service instance management function covers the whole life cycle management of service instances from creation to termination, including configuration management, monitoring and alarm, expansion and contraction, update and maintenance, security management, etc. Through reasonable configuration and management, the stable operation and efficient management of service instances can be ensured, and the availability and maintainability of the system can be improved. The service instance multi-instance port management function aims to realize efficient, safe and flexible management of multiple instance ports on the service instance. It allows users to configure, monitor, expand and protect multiple instance ports on the service instance to meet the needs of different business scenarios.

[0091] The application is applied to a streaming media management service system with service instance management function, the streaming media management service system is used for providing access service, streaming media management service, scheduling service and real-time computing service; the streaming media service instance management function covers the life cycle of service instances from creation to termination, and the system comprises:

[0092] An access request receiving module is configured to receive an access request sent by an intelligent device corresponding to the service instance by the access service, wherein the access request carries at least device information and an access state of the intelligent device, and the device information is sent to the media management service and the scheduling service respectively;

[0093] An access point calculation module is configured to calculate the access point of the intelligent device based on the loaded scheduling strategy by the scheduling service in real time.

[0094] A port configuration module is configured to monitor the access information of the intelligent device by the real-time calculation service in real time, and assign port weights based on the access information and according to a preset port model, which is a port configuration strategy preset for the end user of the intelligent device based on the business scenario needs.

[0095] The media management service dynamically loads the streaming media service instance and the port based on the assigned port weights and according to the preset field model.

[0096] The preset field model includes at least one of the following fields: instance ID, home IDC ID, home machine ID, instance state, whether enabled, instance version, instance label, instance load, instance weight, and audit field.

[0097] After the media management service dynamically loads the streaming media service instance and the port, grouping management is performed in a port mode, which includes a port exclusive mode and a port shared mode.

[0098] The port includes at least one of the following: instance ID, port range start value, port range end value, port category, port purpose, instance load, and instance weight.

[0099] Based on the port weights assigned by the real-time calculation service, the media management service dynamically loads the streaming media service instance and the port in a chain queue mode.

[0100] The port strategy is configured in the following manner, including:

[0101] Obtain the information of the streaming media service instance to be loaded and the port information, and initialize the port information.

[0102] When the head identifier and the tail identifier point to the same position, it is determined that the queue from the head to the tail is an empty queue, and the queue size is the maximum port value provided by the used protocol after the loading grouping.

[0103] The port strategy is configured in the following manner, and further includes:

[0104] When a port is added, the element is placed in the position pointed to by the tail identifier, and the tail identifier is moved down one position.

[0105] When a port is applied for use, the port at the current position of the head is set to an empty position, and the head identifier is moved down to the next port.

[0106] When the port is returned to use, the returned port is put into the tail position, the tail identifier is moved to the next position, and when the current port queue is full, it is determined whether the head has an empty position: if there is no empty position, the port queue expansion is started; if there is an empty position, the port queue forms a circular queue, the tail and the head are started to expand the port queue when the queue is full, and the tail identifier is moved to the position of the queue size plus one.

[0107] The scheduling module is configured to load the streaming media service instance and the port based on the port weight assigned by the real-time computing service.

[0108] For the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the part of the method embodiment.

[0109] Optionally, the embodiment of the application further provides an electronic device, comprising: a processor, a memory, a computer program stored in the memory and executable on the processor, which implements various processes of the method embodiment of the above method when executed by the processor, and can achieve the same technical effects, to avoid repetition, which will not be repeated here.

[0110] Figure 8 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0111] Referring to Figure 8 , the electronic device 800 can include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0112] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 can include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0113] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, images, videos, etc. The memory 804 can be implemented by any type of volatile or nonvolatile memory, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disc, or optical disc.

[0114] The power supply component 806 supplies power for various components of the electronic device 800. The power supply component 806 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0115] The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 808 includes a front camera and / or a back camera. The front camera and / or the back camera can receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each of the front and back cameras can be a fixed optical lens system or have a focal length and optical zoom capability.

[0116] The audio component 810 is configured to output and / or input an audio signal. For example, the audio component 810 includes a microphone (MIC) configured to receive an external audio signal when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting an audio signal.

[0117] The I / O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which can be a keypad, a click wheel, buttons, etc. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0118] The sensor component 814 includes one or more sensors for providing status assessments for various aspects of the electronic device 800. For example, the sensor component 814 can detect an open / closed position of the device 800, relative positioning of components, such as a display and a keypad of the electronic device 800, a change in position of the electronic device 800 or a component of the electronic device 800, presence or absence of user contact with the electronic device 800, orientation or acceleration / deceleration / g-force and temperature of the electronic device 800. The sensor component 814 can include an optical sensor for detecting ambient light, a proximity sensor for detecting nearby objects without any physical touch, a CMOS or CCD image sensor for use in imaging applications, or an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor in some embodiments.

[0119] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, a cellular network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In an example embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 816 can further include a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) techniques, infrared data association (IrDA) techniques, ultra-wideband (UWB) techniques, Bluetooth (BT) techniques, and other techniques.

[0120] In an example embodiment, the electronic device 800 can be implemented using one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic elements for performing the above-described methods.

[0121] In an example embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, is also provided, which can be executed by the processor 820 of the electronic device 800 to implement the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0122] Embodiment 4:

[0123] The embodiment of the present application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to realize each process of the method embodiment and achieve the same technical effects. To avoid repetition, details are not described herein. The computer readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0124] Figure 9 Fig. 19 is a block diagram of a computer readable storage medium 1900 according to an embodiment of the present application. For example, the computer readable storage medium 1900 can be provided as a server.

[0125] Referring to Figure 9 The computer readable storage medium 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932, for storing instructions executable by the processing component 1922, such as an application program. The application program stored in the memory 1932 can include one or more than one module each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute the instructions to perform the method described above.

[0126] The computer readable storage medium 1900 can further include a power supply component 1926 configured to perform power management of the computer readable storage medium 1900, a wired or wireless network interface 1950 configured to connect the computer readable storage medium 1900 to a network, and an input / output (I / O) interface 1958. The computer readable storage medium 1900 can operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.

[0127] It should be noted that in this document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or include elements inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or device including the element.

[0128] Those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, air conditioner, or network device) execute the methods described in various embodiments of the present application.

[0129] The embodiments of the present application are described above in conjunction with the drawings, but the present application is not limited to the specific embodiments described above, which are only illustrative rather than limiting, and those of ordinary skill in the art can make many forms without departing from the purpose of the present application and the scope protected by the claims.

[0130] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present application can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solutions. Those of ordinary skill in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0131] Those of ordinary skill in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.

[0132] In the embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed ones can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0133] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0134] In addition, the functional units in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically, or two or more units can be integrated into one unit.

[0135] The functions, if realized in the form of software functional units and sold or used as independent products, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or the part of the present application that essentially contributes to the prior art or the part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various program code storage media.

[0136] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for scheduling multiple instances and multiple ports of a video service, characterized in that, This is applied to a streaming media management service system with service instance management functionality, wherein the streaming media management service system provides access services, streaming media management services, scheduling services, and real-time computing services; The streaming media service instance management function covers the lifecycle of a service instance from creation to termination, and the method includes: The access service receives an access request sent by the smart device corresponding to the service instance. The access request carries at least the device information and access status of the smart device, and sends the device information to the media management service and the scheduling service respectively. The scheduling service loads the scheduling strategy in real time and sends it to the real-time computing service, and calculates the access point of the intelligent device based on the loaded scheduling strategy. The real-time computing service monitors the access information of the smart device in real time, and allocates port weights based on the access information and according to a preset port model. The preset port model is a port configuration strategy preset by the end user of the smart device based on the needs of the business scenario. The media management service dynamically loads streaming media service instances and ports based on the port weights assigned by the real-time computing service.

2. The video service multi-instance multi-port scheduling method according to claim 1, characterized in that, The steps of dynamically loading streaming media service instances and ports based on the port weights assigned by the real-time computing service include: The media management service dynamically loads streaming media service instances and ports based on a preset field model and according to the assigned port weights; wherein, The preset field model includes at least one of the following fields: instance ID, home IDC_ID, home machine ID, instance status, whether enabled, instance version, instance tag, instance load, instance weight, and audit field.

3. The video service multi-instance multi-port scheduling method according to claim 1, characterized in that, Also includes: After the media management service dynamically loads the streaming media service instance and port, it performs group management based on port methods, including: dedicated port method and shared port method.

4. The video service multi-instance multi-port scheduling method according to claim 1, characterized in that, The port must include at least one of the following: instance ID, port range start value, port range end value, port category, port purpose, instance load, and instance weight.

5. The video service multi-instance multi-port scheduling method according to claim 1, characterized in that, The steps of dynamically loading streaming media service instances and ports based on the port weights assigned by the real-time computing service include: Based on the port weights assigned by the real-time computing service, the media management service dynamically loads streaming media service instances and ports in a chained queue manner.

6. The video service multi-instance multi-port scheduling method according to claim 5, characterized in that, Configure the port policy as follows: Obtain the instance information and port information of the streaming media service to be loaded, and initialize the port information; If the head identifier and tail identifier point to the same location, the queue from the head to the tail is considered an empty queue, and the queue size is the maximum port value provided by the protocol used after loading the packet.

7. The video service multi-instance multi-port scheduling method according to claim 6, characterized in that, Configure the port policy as follows, including: When a new port is added, the element is placed at the position pointed to by the tail indicator, and the tail indicator is moved down one position. Once a port is requested and claimed, the port at the head of the queue is set to an empty position, and the head of the queue is moved to the next port. When a port is returned for use, the returned port is placed at the tail of the queue, and the tail indicator is moved to the next position. If the current port queue is full, it is checked whether there is an empty position at the head: if there is no empty position, the port queue is expanded; if there is an empty position, the port queue forms a circular queue, and the tail and head of the queue are expanded when the queue is full, and the tail indicator is moved to the position of the queue size plus one.

8. A video service multi-instance multi-port scheduling system, characterized in that, This is applied to a streaming media management service system with service instance management functionality, wherein the streaming media management service system provides access services, streaming media management services, scheduling services, and real-time computing services; The streaming media service instance management function covers the lifecycle of a service instance from creation to termination. The system includes: The access request receiving module is used to receive access requests sent by the smart device corresponding to the service instance. The access request carries at least the device information and access status of the smart device, and sends the device information to the media management service and the scheduling service respectively. The access point calculation module is used for the scheduling service to load the scheduling policy in real time and send it to the real-time calculation service, and to calculate the access point of the smart device based on the loaded scheduling policy. The port configuration module is used by the real-time computing service to monitor the access information of the smart device in real time, and to allocate port weights based on the access information and according to a preset port model. The preset port model is a port configuration strategy preset by the end user of the smart device based on the needs of the business scenario. The scheduling module is used by the media management service to dynamically load streaming media service instances and ports based on the port weights allocated by the real-time computing service.

9. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Service-aware distributed video cluster high-efficiency scaling method and service-aware distributed video cluster high-efficiency scaling system

    CN112543354A

  • Dynamic port allocation method and system based on Kubernetes

    CN116048713A