Multimedia streaming and network device and operation method thereof
阅读说明:本技术 多媒体串流及网路装置及其运作方法 (Multimedia streaming and network device and operation method thereof ) 是由 吴亦宽 于 2018-08-14 设计创作,主要内容包括:一种多媒体串流及网路装置,包括:路由模块、储存模块及处理模块。处理模块执行储存模块的应用程序以执行包括下列步骤的多媒体串流及网路装置运作方法。透过局域网路通讯埠接收实体机上盒的第一串流要求封包;开启路由模块对应于局域网路通讯埠的群播及硬件卸载功能;运作机上盒虚拟机,以执行机上盒功能;接收对应机上盒虚拟机的第二串流要求封包;开启路由模块对应于处理模块通讯埠的群播及硬件卸载功能;使路由模块将视讯串流透过局域网路通讯埠及处理模块通讯埠分别传送至实体机上盒及机上盒虚拟机进行处理并播放。(A multimedia streaming and networking device, comprising: the device comprises a routing module, a storage module and a processing module. The processing module executes the application program of the storage module to execute the multimedia streaming and network device operation method comprising the following steps. Receiving a first serial request packet from the physical set-top box through a local area network communication port; starting the multicast and hardware unloading functions of the routing module corresponding to the local area network communication port; operating the set-top box virtual machine to execute the set-top box function; receiving a second streaming request packet corresponding to the on-board virtual machine; starting the multicast and hardware unloading functions of the routing module corresponding to the communication port of the processing module; the routing module transmits the video stream to the physical set-top box and the set-top box virtual machine for processing and playing through the local area network communication port and the processing module communication port respectively.)
1. A multimedia streaming and networking device, comprising:
a routing module;
a storage module configured to store an application program; and
a processing module, electrically coupled to the routing module and the storage module, configured to perform network communication via the routing module, and access the application program from the storage module, so as to execute a multimedia streaming and network device operation method when executing the application program, the multimedia streaming and network device operation method comprising:
receiving a first serial request packet of an external physical set-top box through a local area network communication port;
starting a multicast and hardware offload (hardware offload) function of the routing module corresponding to the local area network communication port;
operating a one-machine box-loading virtual machine to execute one-machine box-loading functions;
receiving a second streaming request packet corresponding to the set-top box virtual machine;
opening a multicast and hardware unloading function of the routing module corresponding to a communication port of a processing module; and
the routing module transmits at least one video stream from a remote server and corresponding to the first and second stream request packets to the physical set-top box and the set-top box virtual machine through the local area network communication port and the processing module communication port respectively for processing and playing.
2. The multimedia streaming and networking device of claim 1, wherein the step of enabling the multicast and hardware offload function further comprises:
storing the information of the LAN communication port and the set-top box in a multicast group list;
updating a multicast register of the routing module to add to the LAN communication port;
storing the information of the processing module communication port and the set-top box virtual machine in the multicast group list; and
updating the multicast register of the routing module to add to the processing module communication port.
3. The multimedia streaming and networking device of claim 1, wherein the method further comprises:
determining that the first stream request packet and the second stream request packet correspond to the same channel;
enabling the routing module to transmit a video stream request packet to the remote server according to the channel; and
the routing module receives the video stream from the remote server, and further transmits the video stream to the physical set-top box and the set-top box virtual machine for processing and playing through the local area network communication port and the processing module communication port, respectively.
4. The multimedia streaming and networking device of claim 1, wherein the method further comprises:
determining that the first stream request packet and the second stream request packet correspond to a first channel and a second channel which are different;
enabling the routing module to transmit a first video stream request packet to the remote server according to the first channel;
the routing module receives the first video stream from the remote server, and further transmits the first video stream to the physical machine upper box through the local area network communication port for processing and playing;
enabling the routing module to transmit a second video stream request packet to the remote server according to the second channel;
the routing module receives the first video stream from the remote server, and further transmits the first video stream to the set-top box virtual machine through the communication port of the processing module for processing and playing.
5. The multimedia streaming and networking device of claim 1, wherein the routing module receives the first video stream from the remote server from a wide area network communication port.
6. A multimedia streaming and network device operation method is applied to a multimedia streaming and network device, the multimedia streaming and network device includes a routing module, a storage module configured to store an application program, and a processing module electrically coupled to the routing module and the storage module, wherein the processing module is configured to perform network communication via the routing module and access the application program from the storage module, so as to execute the multimedia streaming and network device operation method when executing the application program, the multimedia streaming and network device operation method includes:
receiving a first serial request packet of an external physical set-top box through a local area network communication port;
opening a multicast and hardware unloading function of the routing module corresponding to the local area network communication port;
operating a one-machine box-loading virtual machine to execute one-machine box-loading functions;
receiving a second streaming request packet corresponding to the set-top box virtual machine;
opening a multicast and hardware unloading function of the routing module corresponding to a communication port of a processing module; and
the routing module transmits at least one video stream from a remote server and corresponding to the first and second stream request packets to the physical set-top box and the set-top box virtual machine through the local area network communication port and the processing module communication port respectively for processing and playing.
7. The method of claim 6, wherein the step of enabling the multicast and hardware offload functions further comprises:
storing the information of the LAN communication port and the set-top box in a multicast group list;
updating a multicast register of the routing module to add to the LAN communication port;
storing the information of the processing module communication port and the set-top box virtual machine in the multicast group list; and
updating the multicast register of the routing module to add to the processing module communication port.
8. The method of claim 6, further comprising:
determining that the first stream request packet and the second stream request packet correspond to the same channel;
enabling the routing module to transmit a video stream request packet to the remote server according to the channel; and
the routing module receives the video stream from the remote server, and further transmits the video stream to the physical set-top box and the set-top box virtual machine for processing and playing through the local area network communication port and the processing module communication port, respectively.
9. The method of claim 6, further comprising:
determining that the first stream request packet and the second stream request packet correspond to a first channel and a second channel which are different;
enabling the routing module to transmit a first video stream request packet to the remote server according to the first channel;
the routing module receives the first video stream from the remote server, and further transmits the first video stream to the physical machine upper box through the local area network communication port for processing and playing;
enabling the routing module to transmit a second video stream request packet to the remote server according to the second channel;
the routing module receives the first video stream from the remote server, and further transmits the first video stream to the set-top box virtual machine through the communication port of the processing module for processing and playing.
10. The method of claim 6, wherein the routing module receives the first video stream from the remote server from a WAN port.
Technical Field
The present invention relates to multimedia streaming and networking technologies, and more particularly, to a multimedia streaming and networking device and an operating method thereof.
Background
With the advent of the network era, multimedia streaming film suppliers have grown up and provided different film supply modes. Since the multimedia streaming video data is transmitted via the network, a general user must simultaneously install a network device and a multimedia streaming device to access the network via the network device and process the video streaming received from the network via the multimedia streaming device.
For users, the network device and the multimedia streaming device not only have higher purchase cost, but also need to occupy larger space. However, the network device and the multimedia streaming device are integrated into a composite device, which cannot provide multicast (multicast) and hardware offload functions at the same time, and thus the composite device itself cannot receive multicast packets or the amount of operations of the processor is increased.
Therefore, how to design a new multimedia streaming and network device and its operation method to solve the above-mentioned drawbacks is an urgent problem to be solved in the industry.
Disclosure of Invention
The present invention provides a multimedia streaming and network device, comprising: the device comprises a routing module, a storage module and a processing module. The storage module is configured to store an application program. The processing module is electrically coupled to the routing module and the storage module, is configured to perform network communication through the routing module, and accesses the application program from the storage module to execute the multimedia streaming and network device operation method when executing the application program, and the multimedia streaming and network device operation method includes: receiving a first serial request packet of an external physical set-top box through a local area network communication port; starting the multicast and hardware offload (hardware offload) function of the routing module corresponding to the local area network communication port; operating the set-top box virtual machine to execute the set-top box function; receiving a second streaming request packet corresponding to the on-board virtual machine; starting the multicast and hardware unloading functions of the routing module corresponding to the communication port of the processing module; and the routing module transmits at least one video stream from the remote server and corresponding to the first and second stream request packets to the physical set-top box and the set-top box virtual machine through the local area network communication port and the processing module communication port respectively for processing and playing.
Another objective of the present invention is to provide a method for operating a multimedia streaming and network device, which is applied to a multimedia streaming and network device, the multimedia streaming and network device including a routing module, a storage module configured to store an application program, and a processing module electrically coupled to the routing module and the storage module, wherein the processing module is configured to perform network communication via the routing module and access the application program from the storage module, so as to execute the method for operating the multimedia streaming and network device when executing the application program, the method comprising: receiving a first serial request packet of an external physical set-top box through a local area network communication port; starting the multicast and hardware unloading functions of the routing module corresponding to the local area network communication port; operating the set-top box virtual machine to execute the set-top box function; receiving a second streaming request packet corresponding to the on-board virtual machine; starting the multicast and hardware unloading functions of the routing module corresponding to the communication port of the processing module; and the routing module transmits at least one video stream from the remote server and corresponding to the first and second stream request packets to the physical set-top box and the set-top box virtual machine through the local area network communication port and the processing module communication port respectively for processing and playing.
The invention has the advantages that the multimedia streaming and network device can receive the video streaming of the remote server through the routing module to process and play simultaneously by the multicast of the local area network communication port and the communication port of the processing module and the opening of the hardware unloading function. Therefore, the multimedia streaming and network device can make the set-top box virtual machine supporting software perform multicast video streaming while maintaining the hardware unloading function of the physical set-top box.
Drawings
FIG. 1 is a block diagram of a multimedia streaming and networking device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for operating a multimedia streaming and networking device according to an embodiment of the present invention; and
FIG. 3 is a block diagram of a system implemented by multimedia streaming and networking devices according to an embodiment of the invention.
[ notation ] to show
1: multimedia streaming and networking device
101: application program
104: processing module
112: local area network communication port
116: group broadcast temporary storage
160: box port on physical machine
201-208: step (ii) of
3: system for controlling a power supply
302: network software bridge
306: multicast control layer
REQ: video stream request packet
SRE 2: second stream request packet
100: routing module
102: storage module
110: wide area network communication
114: processing module communication port
150: remote server
200: multimedia streaming and network device operation method
300: box on machine virtual machine
304: multicast group list
INFO1, INFO 2: information
SRE 1: first stream request packet
VS: video streaming
Detailed Description
Please refer to fig. 1. Fig. 1 is a block diagram of a multimedia streaming and networking device 1 according to an embodiment of the present invention. The multimedia streaming and networking apparatus 1 comprises: a
The
In one embodiment, the
In various embodiments, the
The
In one embodiment, the
In more detail, after the
Please refer to fig. 2 and fig. 3. The detailed functions of the multimedia streaming and network device 1 will be described in the following paragraphs with reference to fig. 2 and 3.
FIG. 2 is a flow chart of a
Fig. 3 is a block diagram of a system 3 implemented by the multimedia streaming and networking device 1 according to an embodiment of the present invention. Wherein the
The system 3 includes a software portion and a hardware portion. The software component, which includes the set-top box virtual machine 300, the network software bridge 302, and the multicast group manifest 304, is a software module that is executed by the
The hardware portion includes the
The
In
In one embodiment, the physical set-
The stream request packet 301 may include information related to the video stream that the user wants to view, such as but not limited to a code of a certain channel.
In
In one embodiment, the multicast control layer 306 stores the information INFO1 of the lan communication port 112 and the
The multicast control layer 306 then updates the multicast register 116 of the
In this manner, the multicast control layer 306 can configure the software (multicast group list 304) and the hardware (multicast register 116) to enable the
In one embodiment, the first streaming request packet SRE1 is an Internet Group Management Protocol (IGMP) packet, and the mbs group list 304 is a network group Management Protocol (mp) group list for multicast communication and configuration.
In
In one embodiment, multicast control layer 306 may construct a virtual system environment by executing, for example, but not limited to, the Xen architecture or other operating systems, to further establish and manage on-machine box virtual machine 300 in the virtual system environment.
In
In one embodiment, the second stream request packet SRE2 may be generated by a user via an external remote controller, received by a corresponding receiving module (not shown) of the multimedia stream and network device 1, and transmitted to the
The second stream request packet SRE2 may include information about the video stream that the user wants to view, such as but not limited to the code of a certain channel.
In
In one embodiment, the multicast control layer 306 stores the information INFO2 of the processing module communication port 114 of the
The multicast control layer 306 then updates the multicast register 116 of the
In this manner, the multicast control layer 306 can configure the software (multicast group list 304) and the hardware (multicast register 116) to enable the
In one embodiment, the second stream request packet SRE2 is an nmp packet, and the mbs list 304 is an nmp group list for multicast communication and setup by the nmp.
In
When the first stream request packets SRE1 and SRE2 correspond to the same channel, the
In more detail, the
For example, the
For the set-
When the first serial request packets SRE1 and SRE2 correspond to different first and second channels, in
In more detail, the
It should be noted that in an implementation case, taking the lan communication port 112 corresponding to the physical set-
Since the
It is noted that the flow of fig. 2 illustrates that the request for the video stream is first made by the physical set-
Also, the system 3 of fig. 3 is only shown as an example. In other embodiments, it is also possible to operate a system comprising different software modules depending on the
The invention has the advantages that the multimedia streaming and network device can receive the video streaming of the remote server through the routing module to process and play simultaneously by the multicast of the local area network communication port and the processing module communication port and the opening of the hardware unloading function. Therefore, the multimedia streaming and network device can make the set-top box virtual machine supporting software perform multicast video streaming while maintaining the hardware unloading function of the physical set-top box.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit of the present invention are intended to be included within the scope of the present invention.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:一种处于不同局域网下的投屏方法、系统及智能装置