CN113660314A - Media stream scheduling method and device based on network equipment and readable storage medium - Google Patents

Media stream scheduling method and device based on network equipment and readable storage medium Download PDF

Info

Publication number
CN113660314A
CN113660314A CN202110849820.8A CN202110849820A CN113660314A CN 113660314 A CN113660314 A CN 113660314A CN 202110849820 A CN202110849820 A CN 202110849820A CN 113660314 A CN113660314 A CN 113660314A
Authority
CN
China
Prior art keywords
media stream
target
target media
receiving
network device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110849820.8A
Other languages
Chinese (zh)
Inventor
姜文波
赵贵华
蔺飞
袁旭稚
鲍放
李栋成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING GEFEI TECHNOLOGY CO LTD
China Media Group
Original Assignee
BEIJING GEFEI TECHNOLOGY CO LTD
China Media Group
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING GEFEI TECHNOLOGY CO LTD, China Media Group filed Critical BEIJING GEFEI TECHNOLOGY CO LTD
Priority to CN202110849820.8A priority Critical patent/CN113660314A/en
Publication of CN113660314A publication Critical patent/CN113660314A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2441Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests

Abstract

The embodiment of the application provides a media stream scheduling method, a media stream scheduling device and a readable storage medium based on network equipment, wherein a static routing table sent by computer equipment is received, and a target media stream and corresponding target media stream receiving equipment are determined according to the static routing table; then receiving an access control list sent by the computer equipment, and weighting the target media stream according to the access control list; and finally, receiving a pull stream request initiated by the target media stream receiving equipment, and pushing the target media stream to the target media stream receiving equipment according to the pull stream request and the pushing sequence represented by the target weight.

Description

Media stream scheduling method and device based on network equipment and readable storage medium
Technical Field
The present application relates to broadcast television technologies, and in particular, to a media stream scheduling method and apparatus based on a network device, and a readable storage medium.
Background
At present, provincial and major prefectural broadcast television stations in China are in the exploratory stage of upgrading to ultra-high-definition systems. The SDI (serial digital interface) baseband technology is increasingly difficult to meet the requirements of service development in response to transmission, distribution and scheduling of ultra-high definition signals. In the related art, because the uncompressed media stream has a large data volume, a problem of network congestion may occur, and in order to achieve normal scheduling of the uncompressed media stream, there are two schemes for implementing processing of an ultra-high-definition signal, that is, the uncompressed media stream.
In the first related technology, the stream receiving device may be directly utilized to communicate with the network device receiving the media stream, and this way may occupy two signal bandwidths of the stream receiving device to implement stream pulling and address changing for different multicast addresses, which wastes bandwidth resources of the stream receiving device and results in a problem that the working efficiency of the receiving device is halved, although the scheduling of uncompressed media streams may be implemented.
In the second related technology, a multifunctional router is used to implement scheduling of uncompressed media streams, and although this method does not occupy twice the bandwidth of a stream receiving device, the router capable of implementing the above scheme is expensive, which results in high cost of the whole scheduling system, and is not suitable for the scenes of medium and small-sized scheduling systems (e.g., application scenes such as studios, relay carriages, etc.).
Disclosure of Invention
The embodiment of the application provides a media stream scheduling method and device based on network equipment and a readable storage medium.
In a first aspect, an embodiment of the present application provides a media stream scheduling method based on a network device, which is applied to a network device, where the network device is in communication connection with a computer device and a plurality of media stream receiving devices, and the network device receives a plurality of media streams, where the method includes:
receiving a static routing table sent by computer equipment, determining a target media stream from a plurality of media streams according to the static routing table, and determining target media stream receiving equipment from the plurality of media stream receiving equipment;
receiving an access control list sent by computer equipment, and acquiring the target weight of a target media stream according to the access control list; the target weight is used for representing the pushing sequence of the target media stream;
and receiving a pull stream request initiated by the target media stream receiving equipment, and pushing the target media stream to the target media stream receiving equipment according to the pull stream request and the pushing sequence represented by the target weight.
In one possible implementation, a network device includes a plurality of media stream inlets and a plurality of media stream outlets, the network device receiving a media stream through the media stream inlets, the network device communicatively coupled to the media stream receiving device through the media stream outlets, a static routing table including a first correspondence of the media stream inlets and the media stream outlets;
determining a target media stream from a plurality of media streams according to a static routing table, and determining a target media stream receiving device from a plurality of media stream receiving devices, including;
determining a target media stream inlet from the plurality of media stream inlets and a target media stream outlet from the plurality of media stream outlets corresponding to the target media stream inlet based on the first correspondence;
determining a media stream accessed through a target media stream inlet as a target media stream;
and determining the media stream receiving device which is connected through the target media stream outlet in communication as the target media stream receiving device.
In one possible embodiment, the access control list includes a second correspondence between a plurality of priority identifications and a plurality of weights, and the target media stream includes a pre-configured target priority identification;
obtaining a target weight of a target media stream according to an access control list, comprising:
determining a comparison priority identifier which is the same as the target priority identifier from the plurality of priority identifiers;
taking the weight corresponding to the comparison priority mark as a target weight according to the second corresponding relation;
the target media stream is weighted based on the target weight.
In one possible implementation, the number of the target media streams is multiple, and the number of the target media stream receiving devices is multiple; the method further comprises the following steps:
receiving a static routing table, determining a plurality of target media streams from a plurality of media streams according to the static routing table, and determining a plurality of target media stream receiving devices corresponding to the plurality of target media streams from a plurality of media stream receiving devices;
receiving an access control list, and acquiring the target weight of each target media stream according to the access control list;
and receiving a pull stream request, and sequentially pushing a plurality of target media streams to a plurality of target media stream receiving devices according to the pull stream request and the pushing sequence represented by each target weight.
In a possible implementation, the access control list further includes sorting criteria, the network device is configured with a plurality of push queues, and before the step of receiving the pull request, the method further includes:
classifying the plurality of target media streams according to a classification standard to obtain a classification result of each target media stream;
distributing a plurality of target media streams to a plurality of pushing queues according to the classification result;
receiving a pull stream request, and sequentially pushing a plurality of target media streams to a plurality of target media stream receiving devices according to the pull stream request and the pushing sequence represented by each target weight, wherein the method comprises the following steps:
and receiving a pull stream request, and determining a dequeuing sequence of a plurality of push queues according to the pull stream request and a push sequence so as to push a plurality of target media streams to a plurality of target media stream receiving devices.
In a second aspect, an embodiment of the present application provides a media stream scheduling method based on a network device, which is applied to a computer device, where the computer device is in communication connection with the network device and is in communication connection with a plurality of media stream receiving devices, the network device is in communication connection with the plurality of media stream receiving devices, and the network device receives a plurality of media streams, and the method includes:
sending the static routing table to the network equipment so that the network equipment determines a target media stream from the multiple media streams according to the static routing table and determines a target media stream receiving equipment from the multiple media stream receiving equipment;
sending the access control list to the network equipment so that the network equipment can acquire the target weight of the target media stream according to the access control list; the target weight is used for representing the pushing sequence of the target media stream;
and sending a scheduling instruction to the target media stream receiving equipment so that the target media stream receiving equipment sends a stream pulling request to the network equipment, and the network equipment pushes the target media stream to the target media stream receiving equipment according to the stream pulling request and the pushing sequence represented by the target weight.
In a third aspect, an embodiment of the present application provides a media stream scheduling apparatus based on a network device, which is applied to a network device, where the network device is in communication connection with a computer device and a plurality of media stream receiving devices, and the network device receives a plurality of media streams, and the apparatus includes:
the receiving module is used for receiving a static routing table sent by the computer equipment, determining a target media stream from a plurality of media streams according to the static routing table, and determining a target media stream receiving equipment from the plurality of media stream receiving equipment; receiving an access control list sent by computer equipment, and acquiring the target weight of a target media stream according to the access control list; the target weight is used for representing the pushing sequence of the target media stream;
and the scheduling module is used for receiving a pull stream request initiated by the target media stream receiving equipment and pushing the target media stream to the target media stream receiving equipment according to the pull stream request and the pushing sequence represented by the target weight.
In one possible implementation, a network device includes a plurality of media stream inlets and a plurality of media stream outlets, the network device receiving a media stream through the media stream inlets, the network device communicatively coupled to the media stream receiving device through the media stream outlets, a static routing table including a first correspondence of the media stream inlets and the media stream outlets;
the receiving module is specifically configured to:
determining a target media stream inlet from the plurality of media stream inlets and a target media stream outlet from the plurality of media stream outlets corresponding to the target media stream inlet based on the first correspondence; determining a media stream accessed through a target media stream inlet as a target media stream; and determining the media stream receiving device which is connected through the target media stream outlet in communication as the target media stream receiving device.
In a fourth aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a non-volatile memory storing computer instructions, and when the computer instructions are executed by the processor, the computer device performs a media stream scheduling method based on a network device in at least one possible implementation manner of the first aspect and the second aspect.
In a fifth aspect, an embodiment of the present application provides a readable storage medium, where the readable storage medium includes a computer program, and the computer program controls, when running, a computer device in which the readable storage medium is located to perform the method for scheduling a media stream based on a network device in at least one possible implementation manner of the first aspect and the second aspect.
By adopting the media stream scheduling method, the device and the readable storage medium based on the network equipment, which are provided by the embodiment of the application, the target media stream and the corresponding target media stream receiving equipment are determined according to the static routing table by receiving the static routing table sent by the computer equipment; then receiving an access control list sent by computer equipment, and acquiring the target weight of the target media stream according to the access control list; and finally, receiving a pull stream request initiated by the target media stream receiving equipment, and pushing the target media stream to the target media stream receiving equipment according to the pull stream request and the pushing sequence represented by the target weight.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic view of a scene interaction of a media stream scheduling system based on a network device according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a step of a media stream scheduling method based on a network device according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating a step of a media stream scheduling method based on a network device according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a step of a media stream scheduling method based on a network device according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a structure of a media stream scheduling apparatus based on a network device for executing the media stream scheduling method based on a network device in fig. 2 according to an embodiment of the present application;
fig. 6 is a schematic block diagram of a structure of a media stream scheduling apparatus of a computer device for executing the network device based media stream scheduling method in fig. 2 according to an embodiment of the present disclosure.
Detailed Description
In the process of implementing the present application, the inventor finds that, in order to implement scheduling of uncompressed IP (Internet Protocol, Internet interconnection Protocol) streams such as video and audio, i.e., media streams, it makes up for the disadvantages in the prior art that either bandwidth resources of a media stream receiving device need to be occupied or professional routing devices need to participate in scheduling, and the like, and can meet the increasing demands in application scenarios of small and medium-sized scheduling systems.
In view of the above problems, an embodiment of the present application provides a media stream scheduling method based on a network device, where a general network device is used as a medium, a received media stream is configured based on a received static routing table and an access control list, and a target media stream to be processed is weighted after configuration is completed, so as to determine a push sequence of the received media stream, and finally, a purpose of successfully pushing the received media stream to a media stream receiving device in a scenario where multiple ultra-high-definition media streams coexist and a bandwidth resource of the network device is limited is achieved.
The scheme in the embodiment of the application can be implemented by adopting various computer languages, such as object-oriented programming language Java and transliterated scripting language JavaScript.
In order to make the technical solutions and advantages of the embodiments of the present application more apparent, the following further detailed description of the exemplary embodiments of the present application with reference to the accompanying drawings makes it clear that the described embodiments are only a part of the embodiments of the present application, and are not exhaustive of all embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic view of a scene interaction of a media stream scheduling system based on a network device according to an embodiment of the present application, where the media stream scheduling system based on a network device may include a network device 200, a computer device 100 communicatively connected to the network device 200, and a plurality of media stream receiving devices 300, and the network device 200 further receives a plurality of media streams. In other embodiments of the present application, the network device based media stream scheduling system may also be composed of more or less components, which is not limited herein.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a step of a media stream scheduling method based on a network device according to an embodiment of the present application, where the media stream scheduling method based on the network device may be implemented by the network device 200 in fig. 1 as an execution subject, and the media stream scheduling method based on the network device is described in detail below.
Step S201, receiving the static routing table sent by the computer device 100, determining a target media stream from the multiple media streams according to the static routing table, and determining the target media stream receiving device 300 from the multiple media stream receiving devices 300.
Step S202, receiving the access control list sent by the computer device 100, and obtaining the target weight of the target media stream according to the access control list.
Wherein the target weight is used for characterizing the push order of the target media stream.
Step S203, receiving a pull request initiated by the target media stream receiving device 300, and pushing the target media stream to the target media stream receiving device 300 according to the pull request and the pushing sequence represented by the target weight.
In the embodiment of the present application, the computer device 100 may refer to a control device operated by a user, including but not limited to a mobile phone, a computer, or a server. Network device 200 may refer to a general-purpose network device 200 such as a switch or a general router. It should be understood that in the embodiment of the present application, the media stream received by the network device 200 may be from a media device, and the media device may be a device that generates a media stream in a media stream production scene (e.g., program production), such as a camera, a switching station, a gateway, and a server. The media stream receiving device 300 to which the network device 200 needs to schedule a plurality of media streams after receiving the media streams may be a switching station, a monitoring device, a gateway, a recording device, and the like.
In the above interaction scenario, a static routing table from the computer device 100 may be received, where the static routing table may be used to determine an access port and an output port of the network device 200, that is, to determine a target media stream that needs to be scheduled in a plurality of accessed media streams and a target media stream access device in a plurality of stream access devices corresponding to the target media stream.
For example, the target media stream is a video/audio media stream of a program without compression from a camera, and needs to be scheduled to a switching station for processing, so that the switching station is the target access device. After determining the target media stream to be processed and the corresponding target media stream receiving device 300, the access control list sent by the computer device 100 may be received.
Upon receiving the access control list, the target media stream may be weighted using parameters configured in the access control list. In this embodiment of the present application, the target weight may represent a push sequence of a target media stream, and it should be noted that, a media stream scheduling scheme performed in this embodiment of the present application may not only process one target media stream, but also process a plurality of lossless and uncompressed media streams, and in a case of network congestion, the configured target weight determines a processing sequence of the target media stream by the network device 200, so that a target media stream that a user wants to process preferentially can be scheduled to the target media stream receiving device 300 for processing smoothly.
Through the scheme, the configured static routing list and the access control list are utilized, the network equipment 200 performs weighting processing on the target media stream, and then performs ordered scheduling, so that the problem that bandwidth of the media stream receiving equipment 300 needs to be occupied or expensive professional routing equipment needs to be introduced to realize lossless media stream scheduling in the related technology is solved, and non-blocking stream-by-stream scheduling of lossless and uncompressed audio and video IP streams is realized.
In one possible embodiment, please refer to fig. 3 in combination, the network device 200 includes a plurality of media stream inlets and a plurality of media stream outlets, the network device 200 receives a media stream through the media stream inlets, the network device 200 is communicatively connected to the media stream receiving device 300 through the media stream outlets, the static routing table includes a first corresponding relationship between the media stream inlets and the media stream outlets; the foregoing step S201 can be implemented by the following specific embodiments.
Substep S201-1 determines a target media stream inlet from the plurality of media stream inlets and a target media stream outlet from the plurality of media stream outlets corresponding to the target media stream inlet based on the first correspondence.
And a substep S201-2, determining the media stream accessed through the target media stream inlet as the target media stream.
Sub-step S201-3, the media stream receiving apparatus 300 communicatively connected through the target media stream outlet is determined as the target media stream receiving apparatus 300.
In this embodiment, the network device 200 may have a plurality of network ports, and may include a plurality of media stream inlets and a plurality of media stream outlets, where the media stream inlet may be a network port through which the network device 200 is communicatively connected to the aforementioned media device, and the multimedia stream outlet may be a network port through which the network device 200 is communicatively connected to the media stream receiving device 300, and may determine, according to the first corresponding relationship included in the static routing table, a target media stream that needs to be processed and a network port at which the target media stream receiving device 300 is located, so as to perform positioning of the target media stream and the target media stream receiving device 300. In the embodiment of the present application, the static routing table may be an IGMP (Internet Group Management Protocol) static routing table, so as to achieve the above-mentioned purpose.
In one possible embodiment, please refer to fig. 4 in combination, the access control list includes a second correspondence relationship between a plurality of priority identifiers and a plurality of weights, and the target media stream includes a pre-configured target priority identifier; the aforementioned step S202 may be implemented by the following steps.
The substep S202-1 determines a comparison priority flag identical to the target priority flag from the plurality of priority flags.
And a substep S202-2 of using the weight corresponding to the comparison priority mark as a target weight according to the second corresponding relation.
Sub-step S202-3, weighting the target media stream based on the target weight.
In this embodiment of the present application, the target media stream may be configured with a priority identifier in advance, and the network device 200 may determine the target weight matched with the priority identifier carried by the target media stream by using the access control list including a second corresponding relationship between a plurality of priority identifiers and a plurality of weights. In the embodiment of the present application, the Access Control list may be an Access Control List (ACL) policy, so as to determine and configure the target weight of the target media stream. For example, for a video stream and an audio stream, the video stream is relatively important, and the configured priority identifier may have a higher weight relative to the configured priority identifier of the audio stream. In addition, for the target media stream, the priority identifier of the main stream may also be higher than the corresponding weight of the priority identifier of the standby stream, and in other embodiments of the embodiment of the present application, the priority identifier may also be configured according to other criteria in advance, which is not limited herein.
In one possible embodiment, there are a plurality of target media streams, and a plurality of target media stream receiving devices 300; the embodiment of the present application also provides the following implementation modes.
Step S204, receiving the static routing table, determining a plurality of target media streams from the plurality of media streams according to the static routing table, and determining a plurality of target media stream receiving devices 300 corresponding to the plurality of target media streams from the plurality of media stream receiving devices 300.
Step S205, receiving the access control list, and obtaining the target weight of each target media stream according to the access control list.
Step S206, receiving the pull request, and sequentially pushing the plurality of target media streams to the plurality of target media stream receiving devices 300 according to the pull request and the pushing sequence represented by each target weight.
As described above, the network device 200 can process a plurality of lossless, uncompressed audio/video streams in the same time period, and since the data amount of the plurality of media streams in this state is large, it is necessary to perform a sorting process. The static routing table may include a plurality of target media streams and a corresponding relationship between each target media stream and the target media stream receiving device 300 corresponding to each target media stream, based on which, the network device 200 may receive an access control list, and the access control list may also include a corresponding relationship between a priority identifier pre-configured for the plurality of target media streams and a weight corresponding to the priority identifier. Through the above steps, the network device 200 determines the corresponding relationship between each target media stream and the target media device, and determines the push sequence according to the target weight of each target media stream. Then, after receiving the pull stream request, the target media stream can be scheduled according to the determined push sequence. It should be noted that, in the case that a plurality of target media stream receiving devices 300 exist, each target media stream receiving device 300 may issue a pull stream request to the network device 200, and the network device 200 implements scheduling according to the determined push sequence, so as to solve various problems caused by network congestion.
In a possible implementation manner, the access control list further includes a sorting criterion, the network device 200 is configured with a plurality of push queues, and before the foregoing step S203, the following steps are further provided in this embodiment of the present application.
Step S207, classifying the plurality of target media streams according to the classification standard to obtain a classification result of each target media stream.
Step S208, according to the classification result, distributing a plurality of target media streams to a plurality of pushing queues.
Accordingly, the foregoing step S206 may be implemented by the following steps.
Sub-step S206-1, receiving the pull request, determining a dequeuing order of the plurality of push queues according to the push order according to the pull request, so as to push the plurality of target media streams to the plurality of target media stream receiving devices 300.
It should be understood that, in an actual application scenario, after receiving a target media stream, the network device 200 classifies the target media stream into a push queue, in order to improve subsequent processing efficiency, the target media stream with a consistent classification result may be allocated to the same queue, and a specific classification criterion may be the same source IP address, destination IP address, source port number, destination port number, protocol number, and so on, without limitation, after the classification, the priority identifier configured for each target media stream is combined to perform weight allocation on the target media stream, so as to determine a dequeue sequence, and the target media stream is pushed to the corresponding target media stream receiving device 300 according to the dequeue sequence. In the embodiment of the present application, the above scheme may be implemented based on WFQ (Weighted Fair Queuing), and may also be implemented with reference to QoS (Quality of Service) technology.
In order to more clearly describe the scheme provided by the embodiment of the present application, a more detailed scheme is provided below. The network device 200 is communicatively connected to a plurality of media streams and a plurality of media stream receiving devices 300, at this time, a user needs to determine a plurality of target media streams from the plurality of media streams to schedule, and may send a static routing table to the network device 200, after receiving the static routing table, the network device 200 determines the target media streams and the target media stream receiving devices 300 corresponding to the target media streams, and then the network device 200 further receives an access control list sent by the user through the computer device 100, and determines a pushing sequence of each target media stream, where the pushing sequence may be determined by a priority identifier configured for each target media stream. Through the scheme, configuration of professional equipment is not needed, the method can be realized only through the universal network equipment 200, all related instructions adopt an open standard protocol, interaction with a multi-manufacturer switch interface can be established, a special network control module provided by a network equipment 200 manufacturer is not needed, and scheduling of the lossless and uncompressed ultra-high-definition media stream can be achieved without reducing or sacrificing the performance of the media stream receiving equipment 300 or introducing new professional equipment.
The embodiment of the present application also provides another example of a network device-based media stream scheduling method, which may be implemented by the computer device 100 in fig. 1 as an execution subject. The media stream scheduling method based on the network device is introduced below.
Step S301, sending the static routing table to the network device 200, so that the network device 200 determines the target media stream from the multiple media streams according to the static routing table, and determines the target media stream receiving device 300 from the multiple media stream receiving devices 300.
Step S302, sending the access control list to the network device 200, so that the network device 200 obtains the target weight of the target media stream according to the access control list.
Wherein the target weight is used for characterizing the push order of the target media stream.
Step S303, sending a scheduling instruction to the target media stream receiving device 300, so that the target media stream receiving device 300 sends a pull request to the network device 200, and the network device 200 pushes the target media stream to the target media stream receiving device 300 according to the pull request and according to the pushing sequence represented by the target weight.
In this embodiment of the application, the above-mentioned scheme in which the computer device 100 serves as the execution subject may refer to the above-mentioned scheme in which the network device 200 serves as the execution subject, and the two schemes correspond to each other one to one, which is not described herein again. It should be understood that, in the embodiment of the present application, the target media stream receiving device 300 sending the pull stream request to the network device 200 may be generated based on the scheduling instruction issued by the computer device 100, that is, the entire network device based media stream scheduling system may be highly uniformly executed by the user on the computer device 100. In other embodiments of the present application, a user may operate at the media stream receiving device 300 to autonomously initiate a pull request, and in order to enable the media stream receiving device 300 to complete the foregoing scheme, in this application embodiment, the computer device 100 may send the static routing table and the access control list to the network device 200 and simultaneously send the static routing table and the access control list to each media stream receiving device 300, so as to implement the scheme.
In addition, in this embodiment of the application, the network device 200 may correspondingly regulate and control the multiple media stream receiving devices 300, and the computer device 100 may also control the multiple network devices 200 at the same time, which is not limited herein.
An embodiment of the present application provides a media stream scheduling apparatus 110 based on a network device, which is applied to a network device 200, the network device 200 is in communication connection with a computer device 100 and a plurality of media stream receiving devices 300, the network device 200 receives a plurality of media streams, please refer to fig. 5 in combination, and the media stream scheduling apparatus 110 based on a network device includes:
a receiving module 1101, configured to receive a static routing table sent by the computer device 100, determine a target media stream from the multiple media streams according to the static routing table, and determine a target media stream receiving device 300 from the multiple media stream receiving devices 300; receiving an access control list sent by the computer device 100, and acquiring a target weight of a target media stream according to the access control list; the target weight is used to characterize the push order of the target media stream.
The scheduling module 1102 is configured to receive a pull request initiated by the target media stream receiving device 300, and push the target media stream to the target media stream receiving device 300 according to the pull request and the push sequence represented by the target weight.
In one possible implementation, network device 200 includes a plurality of media stream inlets through which network device 200 receives media streams and a plurality of media stream outlets through which network device 200 is communicatively coupled to media stream receiving device 300, the static routing table including a first correspondence of media stream inlets and media stream outlets;
the receiving module 1101 is specifically configured to:
determining a target media stream inlet from the plurality of media stream inlets and a target media stream outlet from the plurality of media stream outlets corresponding to the target media stream inlet based on the first correspondence; determining a media stream accessed through a target media stream inlet as a target media stream; the media stream receiving apparatus 300 communicatively connected through the target media stream outlet is determined as the target media stream receiving apparatus 300.
In one possible embodiment, the access control list includes a second correspondence between a plurality of priority identifications and a plurality of weights, and the target media stream includes a pre-configured target priority identification;
the receiving module 1101 is specifically configured to:
determining a comparison priority identifier which is the same as the target priority identifier from the plurality of priority identifiers; taking the weight corresponding to the comparison priority mark as a target weight according to the second corresponding relation; the target media stream is weighted based on the target weight.
In one possible embodiment, there are a plurality of target media streams, and a plurality of target media stream receiving devices 300; the receiving module 1101 is further configured to:
receiving a static routing table, determining a plurality of target media streams from the plurality of media streams according to the static routing table, and determining a plurality of target media stream receiving devices 300 corresponding to the plurality of target media streams from the plurality of media stream receiving devices 300; receiving an access control list, and acquiring the target weight of each target media stream according to the access control list; and receiving the pull stream request, and sequentially pushing the plurality of target media streams to the plurality of target media stream receiving devices 300 according to the pull stream request and the pushing sequence represented by each target weight.
In a possible implementation, the access control list further includes a sorting criterion, the network device 200 is configured with a plurality of push queues, and the receiving module 1101 is further configured to:
classifying the plurality of target media streams according to a classification standard to obtain a classification result of each target media stream; and distributing the target media streams to a plurality of pushing queues according to the classification result.
The scheduling module 1102 is specifically configured to:
receiving the pull request, determining a dequeuing order of the plurality of push queues according to the pull request in the push order, so as to push the plurality of target media streams to the plurality of target media stream receiving devices 300.
The embodiment of the present application provides a media stream scheduling apparatus 110 based on a network device, which is applied to a computer device 100, where the computer device 100 is in communication connection with a network device 200 and in communication connection with a plurality of media stream receiving devices 300, the network device 200 is in communication connection with the plurality of media stream receiving devices 300, the network device 200 receives a plurality of media streams, and the media stream scheduling apparatus 110 based on a network device includes:
a scheduling module 1102, configured to send a static routing table to the network device 200, so that the network device 200 determines a target media stream from the multiple media streams according to the static routing table, and determines the target media stream receiving device 300 from the multiple media stream receiving devices 300; sending the access control list to the network device 200, so that the network device 200 obtains the target weight of the target media stream according to the access control list; the target weight is used for representing the pushing sequence of the target media stream; and sending a scheduling instruction to the target media stream receiving device 300, so that the target media stream receiving device 300 sends a pull stream request to the network device 200, and the network device 200 pushes the target media stream to the target media stream receiving device 300 according to the pull stream request according to the push sequence represented by the target weight.
It should be noted that, for the implementation principle of the foregoing media stream scheduling apparatus 110 based on a network device, reference may be made to the implementation principle of the foregoing media stream scheduling method based on a network device, and details are not repeated here. It should be understood that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the receiving module 1101 may be a processing element separately set up, or may be implemented by being integrated into a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and the processing element of the apparatus calls and executes the functions of the receiving module 1101. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when some of the above modules are implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can call program code. As another example, these modules may be integrated together, implemented in the form of a system-on-a-chip (SOC).
The embodiment of the present invention provides a computer device 100, where the computer device 100 includes a processor and a non-volatile memory storing computer instructions, and when the computer instructions are executed by the processor, the computer device 100 executes the foregoing network device-based media stream scheduling apparatus 110. As shown in fig. 6, fig. 6 is a block diagram of a computer device 100 according to an embodiment of the present invention. The computer device 100 comprises a network device based media stream scheduler 110, a memory 111, a processor 112 and a communication unit 113.
To facilitate the transfer or interaction of data, the elements of the memory 111, the processor 112 and the communication unit 113 are electrically connected to each other, directly or indirectly. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The network device based media stream scheduler 110 includes at least one software functional module which can be stored in the memory 111 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the computer device 100. The processor 112 is configured to execute the network device based media stream scheduling apparatus 110 stored in the memory 111, for example, software functional modules and computer programs included in the network device based media stream scheduling apparatus 110.
The readable storage medium includes a computer program, and when the computer program runs, the computer device where the readable storage medium is located is controlled to execute the foregoing media stream scheduling method based on the network device.
In summary, by using the media stream scheduling method, device and readable storage medium based on the network device provided by the embodiments of the present application, the problem of non-blocking scheduling of uncompressed audio and video streams is solved, the problem of twice bandwidth resource occupation of a stream receiving device is solved, and the problem of high cost of a core routing-based implementation scheme is solved, so that a solution is provided for non-blocking and stream-by-stream scheduling of small-scale uncompressed audio and video IP streams.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A media stream scheduling method based on a network device, applied to a network device, wherein the network device is in communication connection with a computer device and a plurality of media stream receiving devices, and the network device receives a plurality of media streams, the method comprising:
receiving a static routing table sent by the computer equipment, determining a target media stream from the multiple media streams according to the static routing table, and determining a target media stream receiving equipment from the multiple media stream receiving equipments;
receiving an access control list sent by the computer equipment, and acquiring the target weight of the target media stream according to the access control list; the target weight is used for representing the pushing sequence of the target media stream;
and receiving a pull stream request initiated by the target media stream receiving equipment, and pushing the target media stream to the target media stream receiving equipment according to the pull stream request and the pushing sequence represented by the target weight.
2. The method of claim 1, wherein the network device comprises a plurality of media stream inlets through which the media stream is received by the network device and a plurality of media stream outlets through which the network device is communicatively coupled to the media stream receiving device, wherein the static routing table comprises a first correspondence of the media stream inlets and the media stream outlets;
determining a target media stream from the plurality of media streams and determining a target media stream receiving device from the plurality of media stream receiving devices according to the static routing table, wherein the determining comprises the steps of;
determining a target media stream inlet from said plurality of media stream inlets and a target media stream outlet from said plurality of media stream outlets corresponding to said target media stream inlet based on said first correspondence;
determining a media stream accessed through the target media stream inlet as the target media stream;
determining a media stream receiving device communicatively connected through the target media stream outlet as the target media stream receiving device.
3. The method of claim 1, wherein the access control list comprises a second correspondence of a plurality of priority identifications and a plurality of weights, and wherein the target media stream comprises a pre-configured target priority identification;
the obtaining the target weight of the target media stream according to the access control list includes:
determining a comparison priority identifier which is the same as the target priority identifier from the plurality of priority identifiers;
taking the weight corresponding to the comparison priority mark as the target weight according to the second corresponding relation;
weighting the target media stream based on the target weight.
4. The method of claim 1, wherein the target media stream is plural, and the target media stream receiving device is plural; the method further comprises the following steps:
receiving the static routing table, determining a plurality of target media streams from the plurality of media streams according to the static routing table, and determining a plurality of target media stream receiving devices corresponding to the plurality of target media streams from the plurality of media stream receiving devices;
receiving the access control list, and acquiring the target weight of each target media stream according to the access control list;
and receiving the pull stream request, and sequentially pushing the target media streams to the target media stream receiving devices according to the pull stream request and the pushing sequence represented by each target weight.
5. The method of claim 4, wherein the access control list further comprises sorting criteria, wherein the network device is configured with a plurality of push queues, and wherein prior to the step of receiving the pull request, the method further comprises:
classifying the target media streams according to the classification standard to obtain a classification result of each target media stream;
distributing the target media streams to the push queues according to the classification result;
the receiving the pull stream request, and sequentially pushing the plurality of target media streams to the plurality of target media stream receiving devices according to the pull stream request and the pushing sequence represented by each target weight includes:
and receiving the pull stream request, and determining the dequeuing sequence of the plurality of push queues according to the pull stream request and the push sequence so as to push the plurality of target media streams to the plurality of target media stream receiving devices.
6. A media stream scheduling method based on a network device is applied to a computer device, the computer device is in communication connection with the network device and is in communication connection with a plurality of media stream receiving devices, the network device is in communication connection with the plurality of media stream receiving devices, the network device receives a plurality of media streams, and the method comprises the following steps:
sending a static routing table to the network device, so that the network device determines a target media stream from the multiple media streams according to the static routing table, and determines a target media stream receiving device from the multiple media stream receiving devices;
sending an access control list to the network equipment so that the network equipment acquires the target weight of the target media stream according to the access control list; the target weight is used for representing the pushing sequence of the target media stream;
and sending a scheduling instruction to the target media stream receiving equipment so that the target media stream receiving equipment sends a pull stream request to the network equipment, and the network equipment pushes the target media stream to the target media stream receiving equipment according to the pull stream request and the push sequence represented by the target weight.
7. A media stream scheduling apparatus based on a network device, applied to a network device, the network device being communicatively connected to a computer device and a plurality of media stream receiving devices, the network device receiving a plurality of media streams, the apparatus comprising:
a receiving module, configured to receive a static routing table sent by the computer device, determine a target media stream from the multiple media streams according to the static routing table, and determine a target media stream receiving device from the multiple media stream receiving devices; receiving an access control list sent by the computer equipment, and acquiring the target weight of the target media stream according to the access control list; the target weight is used for representing the pushing sequence of the target media stream;
and the scheduling module is used for receiving a pull stream request initiated by the target media stream receiving equipment and pushing the target media stream to the target media stream receiving equipment according to the pull stream request and the pushing sequence represented by the target weight.
8. The apparatus of claim 7, wherein the network device comprises a plurality of media stream inlets through which the media stream is received by the network device and a plurality of media stream outlets through which the network device is communicatively coupled to the media stream receiving device, wherein the static routing table comprises a first correspondence of the media stream inlets and the media stream outlets;
the receiving module is specifically configured to:
determining a target media stream inlet from said plurality of media stream inlets and a target media stream outlet from said plurality of media stream outlets corresponding to said target media stream inlet based on said first correspondence; determining a media stream accessed through the target media stream inlet as the target media stream; determining a media stream receiving device communicatively connected through the target media stream outlet as the target media stream receiving device.
9. A computer device comprising a processor and a non-volatile memory storing computer instructions, wherein the computer instructions, when executed by the processor, cause the computer device to perform the method of network device based media stream scheduling of any of claims 1-6.
10. A readable storage medium, comprising a computer program, wherein the computer program controls a computer device on which the readable storage medium is executed to perform the method for scheduling media streams based on a network device according to any one of claims 1 to 6.
CN202110849820.8A 2021-07-27 2021-07-27 Media stream scheduling method and device based on network equipment and readable storage medium Pending CN113660314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110849820.8A CN113660314A (en) 2021-07-27 2021-07-27 Media stream scheduling method and device based on network equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110849820.8A CN113660314A (en) 2021-07-27 2021-07-27 Media stream scheduling method and device based on network equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113660314A true CN113660314A (en) 2021-11-16

Family

ID=78490674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110849820.8A Pending CN113660314A (en) 2021-07-27 2021-07-27 Media stream scheduling method and device based on network equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113660314A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090080328A1 (en) * 2007-09-20 2009-03-26 At&T Knowledge Ventures, Lp SYSTEM AND METHOD of COMMUNICATING A MEDIA STREAM
US20150113047A1 (en) * 2013-10-22 2015-04-23 Salesforce.Com, Inc. Rules-based multipoint routing of real-time information using client-server architecture
CN106792257A (en) * 2016-11-22 2017-05-31 北京大米科技有限公司 Method and device, method for routing and device for Streaming Media forwarding
CN110213072A (en) * 2018-04-19 2019-09-06 腾讯科技(深圳)有限公司 Network equipment control method and network service processing method
US10892984B1 (en) * 2019-06-27 2021-01-12 Amazon Technologies, Inc. Framework for routing media streams in a provider network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090080328A1 (en) * 2007-09-20 2009-03-26 At&T Knowledge Ventures, Lp SYSTEM AND METHOD of COMMUNICATING A MEDIA STREAM
US20150113047A1 (en) * 2013-10-22 2015-04-23 Salesforce.Com, Inc. Rules-based multipoint routing of real-time information using client-server architecture
CN106792257A (en) * 2016-11-22 2017-05-31 北京大米科技有限公司 Method and device, method for routing and device for Streaming Media forwarding
CN110213072A (en) * 2018-04-19 2019-09-06 腾讯科技(深圳)有限公司 Network equipment control method and network service processing method
US10892984B1 (en) * 2019-06-27 2021-01-12 Amazon Technologies, Inc. Framework for routing media streams in a provider network

Similar Documents

Publication Publication Date Title
EP3610670B1 (en) Service provision for offering network slices to a customer
US11829789B2 (en) Cross-function virtualization of a telecom core network
US20190327177A1 (en) Method and device for offloading processing of data flows
CN108476456B (en) Data sending method, data receiving method, sending end and receiving end
CN109996307B (en) Data routing method and terminal
US11601343B2 (en) Dynamic adaptive network
WO2015123879A1 (en) Method for realizing network virtualization and related device and communication system
US20180124592A1 (en) Distributed data store-equipped evolved packet core apparatus and method
CN113746671B (en) Service acceleration method, terminal equipment and home gateway
CN109889521A (en) Memory, communication channel multiplexing implementation method, device and equipment
US10512091B2 (en) Data communications over a distributed multi-core wireless communication network
CN110830826A (en) Video transcoding equipment scheduling method and system
CN112073215B (en) Method for realizing application and service controller
CN113660314A (en) Media stream scheduling method and device based on network equipment and readable storage medium
CN112804162B (en) Scheduling method, scheduling device, terminal equipment and storage medium
CN116074784A (en) Vehicle-mounted data transmission method and device and storage medium
CN110474956B (en) Method and device for sealing number of video networking equipment, electronic equipment and readable storage medium
CN114598825B (en) Video and audio signal scheduling method and device, computer equipment and readable storage medium
WO2021134347A1 (en) Resource allocation method, apparatus, and system
CN111586339A (en) Conference scheduling method, server, electronic device and storage medium
CN114598825A (en) Video and audio signal scheduling method and device, computer equipment and readable storage medium
CN111262740B (en) Method, system and equipment for creating cloud host through network policy template
CN114900470B (en) Flow control method, device, equipment and storage medium
JP7259099B2 (en) Multi-route communication system and route selection system
WO2023213156A1 (en) Communication method, communication apparatus, and communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination