A media stream service quality policy control method and device, and a computer device
By receiving gateway requests, querying the resource status of media processing nodes, and dynamically adjusting policy schemes, the problem of media stream transmission quality when network nodes are busy is solved, and efficient media stream service quality control is achieved.
Patent Information
- Application Number
- CN202310834576.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-10
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2043-07-10
AI Technical Summary
When network nodes are busy, the media stream service quality policy fails to be acquired, resulting in a decrease in the quality of media stream transmission.
By receiving policy requests from the gateway, a query request is generated for the media processing node to query the resource status of the media processing node. Based on the media type and content parameters, the initial policy scheme is dynamically adjusted, and the adjusted policy scheme is generated, instructing the gateway to send the media stream to the target media processing node for processing.
It enables dynamic adjustment of quality of service (QoS) policies based on the type of media stream and resource status, improving the quality and efficiency of media stream transmission and ensuring stable transmission of media streams when network nodes are busy.
Smart Images

Figure CN116760806B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to the mobile communication technical field, and in particular relates to a media stream service quality policy control method and device, a computer device, a storage medium and a computer program product. BACKGROUND
[0002] With the development of holographic communication, sensory interconnection and other multi-sensory immersive services, the content transmitted on the network is not limited to text, graphics, video and the like, and various new media streams appear, which requires a policy management method to manage the media streams.
[0003] In the related art, a matching policy management method is formulated according to the type of the media stream, and is stored in a policy management unit, so that the media stream service quality policy can be directly obtained from the policy management unit. However, in the case where the network node is busy, the media stream service quality policy acquisition fails. SUMMARY
[0004] Therefore, it is necessary to provide a media stream service quality policy control method, device, computer device, storage medium and computer program product to solve the above technical problems.
[0005] In a first aspect, the application provides a data updating method of a high-precision map.
[0006] In one of the embodiments, the method further comprises:
[0007] receiving a policy request for media stream service quality sent by a gateway, wherein the policy request comprises a policy identifier of service quality determined by the gateway according to a media type contained in the media stream, the media type, and media content parameters, and the policy identifier corresponds to an initial policy scheme of media stream service quality pre-set;
[0008] generating a query request of a media processing node according to the policy request, and querying a resource state of the media processing node based on the query request;
[0009] obtaining a corresponding initial quality policy scheme based on the policy identifier, and updating the initial quality policy scheme according to the queried resource state of the media processing node, the media type and the media content parameters to obtain an adjusted policy scheme;
[0010] returning a policy identifier corresponding to the adjusted policy scheme to the gateway in response to the policy request, so as to instruct the gateway to send the media stream to a target media processing node for processing according to the dynamically adjusted policy scheme.
[0011] In one of the embodiments, the adjusted policy scheme comprises an address of a target media processing node for processing the media stream corresponding to the policy request and a quality of service control parameter, and the returning the adjusted policy scheme to the gateway for instructing the gateway to send the media stream to the target media processing node for processing according to the adjusted policy scheme comprises:
[0012] sending the media stream to the target media processing node for processing according to the address of the target media processing node;
[0013] sending the policy identifier to the target processing node for instructing the target processing node to process the media stream according to the quality of service control parameter in the adjusted policy scheme corresponding to the policy identifier.
[0014] In one of the embodiments, the querying the resource status of the media processing node based on the query request comprises:
[0015] refreshing the resource status of the media processing node to obtain the refreshed resource status of the media processing node.
[0016] In one of the embodiments, the policy identifier in the policy request comprises a policy identifier determined by the gateway based on a media type contained in the media stream and / or whether there is specified type of sensitive data in the media stream.
[0017] and, when it is determined that the media stream contains a specified type of media type and / or there is a specified type of sensitive data in the media stream, the received policy identifier is a specific policy identifier determined by the gateway.
[0018] In one of the embodiments, before generating the query request of the media processing node according to the policy request, the method further comprises:
[0019] judging whether the policy identifier is a specific policy identifier of a pre-type;
[0020] if yes, generating the query request of the media processing node according to the policy request.
[0021] In one of the embodiments, the updating the initial quality policy scheme according to the queried resource status, media type and media content parameter of the media processing node to obtain an adjusted policy scheme comprises:
[0022] comparing the resource status, media type and media content parameter of the media processing node with the content in the initial quality policy scheme;
[0023] adjust and / or select content in the initial quality policy scheme according to the comparison result, the adjustment and selection at least satisfying service requirements of the media stream quality of service.
[0024] In one of the embodiments, before the corresponding initial quality policy scheme is acquired based on the policy identifier, the method further comprises:
[0025] If the initial quality policy scheme corresponding to the policy identifier is not acquired by the query, a new adjusted policy scheme is generated according to the resource state of the media processing node, the media type and the media content parameter, and the new adjusted policy scheme is associated with the policy identifier.
[0026] In a second aspect, the application further provides a data updating device for a high-precision map. The device comprises:
[0027] The receiving module is configured to receive a policy request for media stream quality of service sent by a gateway, the policy request comprising a policy identifier of quality of service determined by the gateway according to a media type contained in the media stream, the media type and media content parameter, the policy identifier corresponding to an initial policy scheme of media stream quality of service set in advance;
[0028] The querying module is configured to generate a query request for a media processing node according to the policy request, and query the resource state of the media processing node based on the query request;
[0029] The updating module is configured to acquire a corresponding initial quality policy scheme based on the policy identifier, and update the initial quality policy scheme according to the queried resource state of the media processing node, the media type and the media content parameter, to obtain an adjusted policy scheme;
[0030] The sending module is configured to return a policy identifier corresponding to the adjusted policy scheme to the gateway in response to the policy request, so as to instruct the gateway to send the media stream to a target media processing node for processing according to the dynamically adjusted policy scheme.
[0031] In one of the embodiments, the adjusted policy scheme comprises an address of a target media processing node for processing the media stream corresponding to the policy request and a quality of service control parameter, and the returning of the adjusted policy scheme to the gateway to instruct the gateway to send the media stream to the target media processing node for processing according to the adjusted policy scheme comprises:
[0032] sending the media stream to the target media processing node for processing according to the address of the target media processing node;
[0033] sending the policy identifier to the target processing node to instruct the target processing node to process the media stream according to a quality of service control parameter in a corresponding adjusted policy scheme corresponding to the policy identifier.
[0034] In one of the embodiments, the querying the resource status of the media processing node based on the query request comprises:
[0035] refreshing the resource status of the media processing node to obtain a refreshed resource status of the media processing node.
[0036] In one of the embodiments, the policy identifier in the policy request comprises a policy identifier determined by the gateway based on a media type contained in the media stream and / or whether there is a specified type of sensitive data in the media stream.
[0037] And, when it is determined that the media stream contains a specified type of media type and / or there is a specified type of sensitive data in the media stream, the received policy identifier is a specific policy identifier determined by the gateway.
[0038] In one of the embodiments, before generating the query request of the media processing node according to the policy request, the apparatus further comprises:
[0039] a judging module configured to judge whether the policy identifier is a specific policy identifier of a pre-type;
[0040] If yes, generating the query request of the media processing node according to the policy request.
[0041] In one of the embodiments, the updating the initial quality policy scheme to obtain an adjusted policy scheme according to the queried resource status, media type and media content parameter of the media processing node comprises:
[0042] comparing the resource status, media type and media content parameter of the media processing node with content in the initial quality policy scheme;
[0043] adjusting and / or selecting the content in the initial quality policy scheme according to a comparison result, wherein the adjusting and selecting at least meet a service requirement of quality of service of the media stream.
[0044] In one of the embodiments, before obtaining the corresponding initial quality policy scheme based on the policy identifier, the apparatus further comprises:
[0045] If the initial quality scheme corresponding to the policy identifier is not obtained through the querying, generating a new adjusted policy scheme according to the resource status, media type and media content parameter of the media processing node, and associating the new adjusted policy scheme with the policy identifier.
[0046] In a third aspect, the present application provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the media stream quality of service policy control method in any one of the embodiments of the first aspect when executing the computer program.
[0047] In a fourth aspect, the present application provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program implements the media stream quality of service policy control method in any one of the embodiments of the first aspect when executed by a processor.
[0048] In a fifth aspect, the present application provides a computer program product. The computer program product comprises a computer program, and the computer program implements the media stream quality of service policy control method in any one of the embodiments of the first aspect when executed by a processor.
[0049] The media stream quality of service policy control method has at least the following beneficial effects:
[0050] The policy identifier can be determined according to the media type of the media stream, the resource state of the media processing node can be queried, the policy scheme of the quality of service can be dynamically adjusted according to the resource state of the media processing node, and the media stream can be sent to the target media processing node for processing according to the dynamically adjusted policy scheme. The node information can be dynamically adjusted according to the node query, and the media stream quality of service policy control can be dynamically performed. BRIEF DESCRIPTION OF DRAWINGS
[0051] Figure 1 FIG. 1 is a diagram of an application environment of the media stream quality of service policy control method in one embodiment;
[0052] Figure 2 FIG. 2 is a flowchart of the media stream quality of service policy control method in one embodiment;
[0053] Figure 3 FIG. 3 is a schematic diagram of the media stream quality of service policy control method in one embodiment;
[0054] Figure 4 FIG. 4 is a flowchart of the media stream quality of service policy control method in one embodiment;
[0055] Figure 5 FIG. 5 is a structural block diagram of the media stream quality of service policy control device in one embodiment;
[0056] Figure 6 FIG. 6 is a structural block diagram of the media stream quality of service policy control device in one embodiment;
[0057] Figure 7Fig. 1 is a schematic diagram of an internal structure of a computer device in one embodiment;
[0058] Figure 8 Fig. 2 is a schematic diagram of an internal structure of a server in one embodiment. DETAILED DESCRIPTION
[0059] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application.
[0060] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties.
[0061] The embodiments of the present disclosure provide a media stream quality of service policy control method, which can be applied to an application environment as shown in Figure 1 . The terminal 102 communicates with the server 104 through the network. The data storage system can store the data required to be processed by the server 104. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers. The terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0062] In one embodiment, as shown in Figure 2 , a media stream quality of service policy control method is provided. Taking the server 104 in Figure 1 as an example, the method includes the following steps:
[0063] Step S202, receiving a policy request of media stream quality of service sent by a gateway, the policy request including a policy identifier of quality of service determined by the gateway according to a media type contained in the media stream, the media type, and a media content parameter, the policy identifier corresponding to an initial policy scheme of media stream quality of service pre-set.
[0064] The media stream is a streaming manner, so that the streaming media is played on the network, which can include audio stream, video stream, touch stream, dynamic stream and other types. Different media streams require different transmission bandwidth, transmission delay, jitter rate, and different quality of service. The quality of service policy request can be formulated according to the type of media stream to improve the transmission quality.
[0065] Figure 3 For a schematic diagram of the media stream quality of service policy control method in one embodiment, it can include a media gateway, a dynamic policy engine, and a network perception engine. The application end or some intermediate processing node sends the media stream to the media gateway, which can confirm the media stream quality of service policy request according to the type of the media stream. The policy request can include the quality of service policy identifier, media type, and media content parameters. The policy identifier is determined based on the media stream, for example, the policy identifier is a multi-bit binary value, and the value of a certain bit is 1, which represents a specified media stream, such as 0001 for audio stream, 0011 for audio stream + video stream, and 0100 for touch stream. The media type can include audio stream, video stream, touch stream, dynamic stream, etc. The media content parameters can include the size and code rate of the media stream.
[0066] The media stream can have a pre-set initial media stream quality of service policy scheme, wherein one policy identifier can correspond to one initial policy scheme.
[0067] Step S204, generating a query request of a media processing node according to the policy request, and querying the resource state of the media processing node based on the query request.
[0068] The dynamic policy engine can generate a query request of a media processing node according to the policy request, which is used to query the resource state of the media processing node. When multiple media streams are transmitted at the same time, the quality of service of the media stream may be affected due to the occupation of the node, and the resource state of the media processing node needs to be queried. The resource state of the node can include node in use, node available, node occupation, node offline, etc. The dynamic policy engine supports distributed deployment, and can have multiple query interfaces with the network perception engine.
[0069] Step S206, obtaining the corresponding initial quality policy scheme based on the policy identifier, and updating the initial quality policy scheme according to the queried resource state of the media processing node, media type, and media content parameters to obtain an adjusted policy scheme.
[0070] The network perception engine can perform a refreshing operation on all nodes connected to the network perception engine after receiving the query request to obtain the latest resource state information of the nodes. The network perception engine can send the latest resource state information to the dynamic policy engine. The resource state information can include resource duty ratio, node address, etc. The resource duty ratio of a node can be queried through the node address. The target node is specified according to whether the node is busy.
[0071] According to the policy identifier in the policy request, an initial policy scheme of the media stream quality of service is obtained. The resource state, media type, and media content parameters of the queried media processing node are updated to the initial quality policy scheme, and an adjusted policy scheme is obtained.
[0072] In step S208, in response to the policy request, a policy identifier corresponding to the adjusted policy scheme is returned to the gateway to instruct the gateway to send the media stream to the target media processing node for processing according to the dynamically adjusted policy scheme.
[0073] The policy identifier corresponds to the policy scheme. The adjusted policy scheme includes a policy identifier, a node address, a quality of service parameter, etc. The policy identifier can be returned to the gateway. The gateway can obtain the latest node address according to the policy identifier and send the media stream to the target media processing node for processing.
[0074] In the above media stream quality of service policy control method, the policy identifier can be determined according to the media type of the media stream, and the resource state of the media processing node is queried. The policy scheme of the quality of service is dynamically adjusted according to the resource state of the media processing node. The media gateway can send the media stream to the target media processing node for processing according to the dynamically adjusted policy scheme. The node information is dynamically adjusted according to the node query, and the media stream quality of service policy control can be dynamically performed.
[0075] In some embodiments of the present disclosure, the adjusted policy scheme includes an address of a target media processing node processing the media stream corresponding to the policy request and a quality of service control parameter. The return of the adjusted policy scheme to the gateway to instruct the gateway to send the media stream to the target media processing node for processing according to the adjusted policy scheme includes:
[0076] According to the address of the target media processing node, the media stream is sent to the target media processing node for processing;
[0077] The policy identifier is sent to the target media processing node to instruct the target media processing node to call the quality of service control parameter in the adjusted policy scheme corresponding to the policy identifier to process the media stream.
[0078] The resource occupation ratio of the node can be queried by the media processing node address, the resource occupation ratio is compared with the quality of service control parameter, and the target media processing node is specified according to whether the node is busy. The target media processing node can be one or more. The adjusted strategy scheme can include the address of the target media processing node processing the media stream corresponding to the strategy request and the quality of service control parameter. The media stream can be sent to the target media processing node for processing. The target media processing node obtains the corresponding strategy scheme according to the policy identifier, and can call the quality of service control parameter in the adjusted strategy scheme corresponding to the policy identifier to process the media stream.
[0079] In some embodiments of the present disclosure, the resource state of the media processing node is queried based on the query request, including:
[0080] The resource state of the media processing node is refreshed, and the refreshed resource state of the media processing node is obtained.
[0081] After the network perception engine obtains the query request, the resource state of the media processing node can be refreshed, that is, the latest node resource state is obtained, and it is judged whether the node is idle or busy.
[0082] In some embodiments of the present disclosure, the policy identifier in the strategy request includes a policy identifier determined by the gateway based on the media type contained in the media stream and / or whether there is specified type of sensitive data in the media stream;
[0083] And when it is determined that the media stream contains a specified type of media type, and / or there is a specified type of sensitive data in the media stream, the received policy identifier is a specific policy identifier determined by the gateway.
[0084] The policy identifier can be identified by numbers, letters, symbols, etc. The policy identifier corresponds to the policy scheme. The policy identifier can be determined according to the media type contained in the media stream, and / or used to specify sensitive data. The media type can include video stream, audio stream, tactile stream, dynamic stream, etc. The sensitive data can include personal information, social attributes, etc. of the user, and also includes special face information, fingerprint information, etc. When the media stream contains a specified type of media type, and / or sensitive data, such policy identifier can be determined as a specific policy identifier.
[0085] In some embodiments of the present disclosure, Figure 4 The flowchart of the media stream quality of service policy control method in one embodiment is shown. Before generating the query request of the media processing node according to the strategy request, the method further includes:
[0086] Step 402, determining whether the policy identifier is a specific policy identifier of a pre-type;
[0087] If yes, a query request of the media processing node is generated according to the policy request.
[0088] Before the query request of the media processing node is generated, if it is judged that the policy identifier is a specific policy identifier of a specified type, special information can be processed, and then the query request of the media processing node is generated according to the policy request. For example, user privacy data is shielded, or face information and fingerprint information are encrypted.
[0089] In some embodiments of the present disclosure, the initial quality policy scheme is updated according to the resource state, the media type and the media content parameter of the media processing node to obtain an adjusted policy scheme, including:
[0090] The resource state, the media type and the media content parameter of the media processing node are compared with the content in the initial quality policy scheme;
[0091] According to the comparison result, the content in the initial quality policy scheme is adjusted and / or selected, and the adjustment and selection at least meet the service requirements of the media stream quality of service.
[0092] After the network-aware engine refreshes the node, the latest resource state of the media processing node can be obtained, the policy identifier can be obtained according to the type of the media stream, the policy identifier corresponds to the initial policy scheme, the initial policy scheme includes the original resource state, the media type and the media content parameter, and the latest information of the media processing node is compared to judge whether the parameters are adjusted and whether the node is replaced, according to the comparison result, the content in the initial quality policy scheme is adjusted and / or selected to meet the service requirements of the media stream quality of service.
[0093] In some embodiments of the present disclosure, before the initial quality policy scheme corresponding to the policy identifier is obtained, the method further includes:
[0094] If the initial quality scheme corresponding to the policy identifier is not obtained through the query, a new adjusted policy scheme is generated according to the resource state, the media type and the media content parameter of the media processing node, and the new adjusted policy scheme is associated with the policy identifier.
[0095] The initial quality scheme may be invalid or difficult to query due to poor network quality. If the initial quality scheme corresponding to the policy identifier is not obtained through the query, a new adjusted policy scheme can be generated according to the resource state, the media type and the media content parameter of the media processing node, and the policy identifier is selected to correspond to the policy scheme.
[0096] It should be understood that although each step in the flowchart involved in the above embodiments is shown in sequence according to the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, as described above, at least part of the steps in the flowchart involved in the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or steps or stages in other steps.
[0097] Based on the same inventive concept, the embodiments of the present application also provide a media stream quality of service policy control device for implementing the above-mentioned media stream quality of service policy control device. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more media stream quality of service policy control device embodiments provided below can refer to the limitations of the media stream quality of service policy control method described above, and will not be repeated here.
[0098] In one embodiment, as shown in Figure 5 A media stream quality of service policy control device 500 is provided, comprising:
[0099] The receiving module 502 is configured to receive a media stream quality of service policy request sent by a gateway, wherein the policy request comprises a quality of service policy identifier determined by the gateway according to a media type contained in the media stream, the media type, and media content parameters, and the policy identifier corresponds to a pre-set initial quality of service policy scheme of the media stream;
[0100] The query module 504 is configured to generate a query request of a media processing node according to the policy request, and query the resource state of the media processing node based on the query request;
[0101] The updating module 506 is configured to obtain a corresponding initial quality policy scheme based on the policy identifier, and update the initial quality policy scheme according to the queried resource state of the media processing node, the media type, and the media content parameters to obtain an adjusted policy scheme;
[0102] The sending module 508 is configured to return a policy identifier corresponding to the adjusted policy scheme to the gateway in response to the policy request, so as to instruct the gateway to send the media stream to a target media processing node for processing according to the dynamically adjusted policy scheme.
[0103] In one of the embodiments, the adjusted policy scheme comprises an address of a target media processing node for processing the media stream corresponding to the policy request and a quality of service control parameter, and the returning the adjusted policy scheme to the gateway for instructing the gateway to send the media stream to the target media processing node for processing according to the adjusted policy scheme comprises:
[0104] sending the media stream to the target media processing node for processing according to the address of the target media processing node;
[0105] sending the policy identifier to the target processing node for instructing the target processing node to process the media stream according to the quality of service control parameter in the adjusted policy scheme corresponding to the policy identifier.
[0106] In one of the embodiments, the querying the resource status of the media processing node based on the query request comprises:
[0107] refreshing the resource status of the media processing node to obtain the refreshed resource status of the media processing node.
[0108] In one of the embodiments, the policy identifier in the policy request comprises a policy identifier determined by the gateway based on a media type contained in the media stream and / or whether there is specified type of sensitive data in the media stream;
[0109] and, when it is determined that the media stream contains a specified type of media type and / or there is a specified type of sensitive data in the media stream, the received policy identifier is a specific policy identifier determined by the gateway.
[0110] In one of the embodiments, Figure 6 a structural block diagram of a media stream quality of service policy control device in one of the embodiments, before generating a query request of a media processing node according to the policy request, the device further comprises:
[0111] a judging module 602 for judging whether the policy identifier is a specific policy identifier of a pre-type;
[0112] if yes, generating a query request of a media processing node according to the policy request.
[0113] In one of the embodiments, the updating the initial quality of service policy scheme according to the queried resource status, media type and media content parameter of the media processing node to obtain an adjusted policy scheme comprises:
[0114] comparing the resource status, media type and media content parameter of the media processing node with the content in the initial quality of service policy scheme;
[0115] According to the comparison result, content in the initial quality policy scheme is adjusted and / or selected, and the adjustment and selection at least satisfy the service requirement of the media stream quality of service.
[0116] In one of the embodiments, before the corresponding initial quality policy scheme is acquired based on the policy identifier, the apparatus further comprises:
[0117] If the initial quality scheme corresponding to the policy identifier is not acquired by the query, a new adjusted policy scheme is generated according to the resource state of the media processing node, the media type and the media content parameter, and the new adjusted policy scheme is associated with the policy identifier.
[0118] As to the apparatus in the above embodiments, the specific manners in which the respective modules perform operations have been described in detail in the embodiments of the method, and thus will not be described in detail here.
[0119] The respective modules in the above apparatus for media stream quality of service policy control can be realized by software, hardware and combinations thereof in whole or in part. The respective modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to the respective modules.
[0120] In one embodiment, a computer device, which can be a server, is provided, and an internal structure diagram of the computer device can be as shown in Figure 7 The computer device comprises a processor, a memory and a network interface connected through a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The database of the computer device is configured to store media streams. The network interface of the computer device is configured to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a media stream quality of service policy control method.
[0121] In one embodiment, a computer device, which can be a terminal, is provided, and an internal structure diagram of the computer device can be as shown in Figure 8As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a media streaming quality of service policy control method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0122] Those skilled in the art will understand that Figure 7 , Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the computer device to which the present disclosure is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0123] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the methods described in any embodiment of this disclosure.
[0124] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the methods described in any embodiment of this disclosure.
[0125] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided by the present disclosure can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided by the present disclosure can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0126] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist, it should be considered as the scope of the present disclosure.
[0127] The above embodiments only express several implementation manners of the present disclosure, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present disclosure. It should be noted that for ordinary skilled persons in the art, without departing from the concept of the present disclosure, a number of modifications and improvements can be made, which are within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the appended claims.
Claims
1. A method of controlling a quality of service policy for a media stream, the method comprising: The method comprises: receiving a policy request of media stream quality of service sent by a gateway, the policy request comprising a policy identifier of quality of service determined by the gateway according to a media type contained in the media stream, the media type, and media content parameters, the policy identifier corresponding to a pre-set initial policy scheme of media stream quality of service; generating a query request of a media processing node according to the policy request, and querying a resource state of the media processing node based on the query request, comprising: querying a resource occupation ratio of the node through a media processing node address, comparing the resource occupation ratio with a quality of service control parameter, and specifying a target media processing node according to whether the node is busy, the target media processing node being one or more; obtaining a corresponding initial quality policy scheme based on the policy identifier, and updating the initial quality policy scheme according to the queried resource state of the media processing node, the media type, and the media content parameters to obtain an adjusted policy scheme; in response to the policy request, returning a policy identifier corresponding to the adjusted policy scheme to the gateway to instruct the gateway to send the media stream to the target media processing node for processing according to the dynamically adjusted policy scheme.
2. The method of claim 1, wherein, The adjusted policy scheme comprises an address and a quality of service control parameter of a target media processing node processing the media stream corresponding to the policy request, and the returning of the adjusted policy scheme to the gateway to instruct the gateway to send the media stream to the target media processing node for processing according to the adjusted policy scheme comprises: sending the media stream to the target media processing node for processing according to the address of the target media processing node; sending the policy identifier to the target media processing node to instruct the target media processing node to call the quality of service control parameter in the adjusted policy scheme corresponding to the policy identifier to process the media stream.
3. The method of claim 1, wherein, The querying of the resource state of the media processing node based on the query request comprises: refreshing the resource state of the media processing node to obtain a refreshed resource state of the media processing node.
4. The method of claim 1, wherein, The policy identifier in the policy request comprises a policy identifier determined by the gateway based on the media type contained in the media stream and / or whether there is specified type of sensitive data in the media stream; and when it is determined that the media stream contains a specified type of media type and / or there is a specified type of sensitive data in the media stream, the received policy identifier is a specific policy identifier determined by the gateway.
5. The method of claim 4, wherein, Before generating the query request of the media processing node according to the policy request, the method further comprises: determining whether the policy identifier is a specific policy identifier of a specified type; if yes, generating the query request of the media processing node according to the policy request.
6. The method of claim 1, wherein, The updating of the initial quality policy scheme according to the queried resource state of the media processing node, the media type, and the media content parameters to obtain the adjusted policy scheme comprises: comparing the resource state of the media processing node, the media type, and the media content parameters with the content in the initial quality policy scheme; Adjust and / or select the content in the initial quality policy scheme according to the comparison result, the adjustment and selection at least satisfying the service requirement of the media stream quality of service.
7. The method of claim 1, wherein, Before obtaining the corresponding initial quality policy scheme according to the policy identifier, the method further comprises: If the initial quality policy corresponding to the policy identifier is not obtained through the query, a new adjusted policy scheme is generated according to the resource state of the media processing node, the media type and the media content parameter, and the new adjusted policy scheme is associated with the policy identifier.
8. A media flow quality of service policy control apparatus characterized by comprising: The device comprises: The receiving module is configured to receive a policy request of media stream quality of service sent by a gateway, the policy request comprising a policy identifier of quality of service determined by the gateway according to a media type contained in the media stream, the media type, and media content parameter, the policy identifier corresponding to an initial policy scheme of media stream quality of service preset in advance; The querying module is configured to generate a query request of a media processing node according to the policy request, and query the resource state of the media processing node based on the query request, including querying the resource occupation ratio of the node through the address of the media processing node, comparing the resource occupation ratio with the quality of service control parameter, and specifying a target media processing node according to whether the node is busy, the target media processing node being one or more; The updating module is configured to obtain a corresponding initial quality policy scheme based on the policy identifier, and update the initial quality policy scheme according to the queried resource state of the media processing node, the media type and the media content parameter, to obtain an adjusted policy scheme; The sending module is configured to return the policy identifier corresponding to the adjusted policy scheme to the gateway in response to the policy request, so as to instruct the gateway to send the media stream to the target media processing node for processing according to the dynamically adjusted policy scheme.
9. The apparatus of claim 8, wherein, The adjusted policy scheme comprises the address and the quality of service control parameter of the target media processing node for processing the media stream corresponding to the policy request, and the return of the adjusted policy scheme to the gateway to instruct the gateway to send the media stream to the target media processing node for processing according to the adjusted policy scheme comprises: sending the media stream to the target media processing node for processing according to the address of the target media processing node; and sending the policy identifier to the target media processing node to instruct the target media processing node to call the quality of service control parameter in the adjusted policy scheme corresponding to the policy identifier to process the media stream.
10. The apparatus of claim 8, wherein, The querying of the resource state of the media processing node based on the query request comprises: refreshing the resource state of the media processing node to obtain the refreshed resource state of the media processing node.
11. The apparatus of claim 8, wherein, The policy identifier in the policy request comprises a policy identifier determined by the gateway based on the media type contained in the media stream and / or whether there is specified type of sensitive data in the media stream; and when it is determined that the media stream contains a specified type of media type and / or there is a specified type of sensitive data in the media stream, the received policy identifier is a specific policy identifier determined by the gateway.
12. The apparatus of claim 11, wherein, Before generating the query request of the media processing node according to the policy request, the apparatus further comprises: a judging module for judging whether the policy identifier is a specific policy identifier of a specified type; if yes, generating the query request of the media processing node according to the policy request.
13. The apparatus of claim 8, wherein, The updating of the initial quality policy scheme according to the queried resource state, media type and media content parameter of the media processing node to obtain an adjusted policy scheme comprises: comparing the resource state, media type and media content parameter of the media processing node with the content in the initial quality policy scheme; adjusting and / or selecting the content in the initial quality policy scheme according to the comparison result, the adjustment and selection at least satisfying the service requirement of the media stream quality of service.
14. The apparatus of claim 8, wherein, Before obtaining the corresponding initial quality policy scheme based on the policy identifier, the apparatus further comprises: if the initial quality scheme corresponding to the policy identifier is not obtained through the query, generating a new adjusted policy scheme according to the resource state, media type and media content parameter of the media processing node, and associating the new adjusted policy scheme with the policy identifier.
15. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to implement the steps of the method in any one of claims 1 to 7.
16. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 7.
17. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 7.
Citation Information
Patent Citations
Model architecture for realizing streaming media experience quality strategy management of mobile peer-to-peer network
CN102523291A