PPPOE routing IPTV live broadcast method, apparatus and device, and storage medium
By analyzing and converting PPPOE media streams and directly distributing them to the user-side ports, the problems of multi-level processing and multiple copies within the gateway are solved, the forwarding performance and adaptability of IPTV live broadcasts are improved, and multi-wan link scenarios are supported.
Patent Information
- Application Number
- CN202411109024.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, PPPOE routing IPTV live broadcast requires multiple levels of processing and multiple copies within the gateway, resulting in poor forwarding performance and does not support multiple PPPOE routing wan business configuration scenarios and multi-wan link scenarios.
By analyzing the media playback request message sent by the set-top box on the user side, extracting program IP information, capturing PPPOE media stream based on the stream capture feature, and converting it into an ipoe media stream based on the hard acceleration feature, distributing it to the corresponding user side port to avoid multi-level Process and copy multiple times.
It improves the forwarding performance of iPoe media streams, supports multiple PPPOE routes wan's business configuration scenarios, and has higher adaptability, solving the problem of poor forwarding performance of media streams in the gateway.
Smart Images

Figure CN119211586A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent gateways, and in particular to a PPPOE routing IPTV live broadcast method, device, equipment and storage medium. Background Art
[0002] At present, some operators require the use of PPPOE (Point-to-Point Protocol Over Ethernet) routing WAN to carry IPTV services. Among them, the gateway acts as a proxy and is responsible for the processing of protocols and data; the network side interaction uses the PPPOE encapsulation format, and the user side interaction uses the IPoe encapsulation format. Therefore, the PPPOE media stream on the network side needs to be format converted on the gateway to become an IPoe encapsulated media stream that can be recognized by the user side.
[0003] In the related technology, a mapping relationship between the PPPX network card and br0 is established based on the multicast routing table (mroute) of the protocol stack, and then the multicast routing table and the mapping relationship between the PPPX network card and br0 are used to convert the network side PPPOE unicast media stream into an IPOE multicast media stream and distribute it to users.
[0004] However, there is a one-to-one mapping relationship between the PPPX network card and br0 established based on the multicast routing table (mroute) of the protocol stack, so it does not support the business configuration scenario of multiple PPPOE routing WANs, nor does it support the multi-bridge scenario of the currently popular openwrt system, resulting in the need for multi-level processing and multiple copies of the media stream in the gateway, and poor forwarding performance. Summary of the invention
[0005] The invention provides a PPPOE routing IPTV live broadcast method, device, equipment and storage medium, which can solve the technical problems existing in the prior art that the media stream needs to be processed at multiple levels and copied multiple times in the gateway and the forwarding performance is poor.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present invention provides a PPPOE routing IPTV live broadcast method, the method comprising:
[0008] After determining that the IPTV service configuration of the user-side port supports the PPPOE routing multicast service, parse the media play request message sent by the user-side set-top box and extract the program IP information in the media play request message;
[0009] Based on the stream capture feature, capture the PPPOE media stream from the media stream;
[0010] Based on the program IP information in the media play request message, the PPPOE media stream is converted to obtain the ipoe media stream;
[0011] Based on the hard acceleration feature, the ipoe media stream is distributed to the corresponding user-side port.
[0012] In a second aspect, an embodiment of the present invention provides a PPPOE routing IPTV live broadcast device, the device comprising:
[0013] The information extraction module is configured to parse the media playback request message sent by the user-side set-top box and extract the program IP information in the media playback request message after determining that the IPTV service configuration of the user-side port supports the PPPOE routing multicast service;
[0014] The information capture module is configured to capture the PPPOE media stream from the media stream based on the stream capture feature;
[0015] A conversion module is configured to convert the PPPOE media stream based on the program IP information in the media play request message to obtain an ipoe media stream;
[0016] The information sending module is configured to distribute the ipoe media stream to the corresponding user side port based on the hard acceleration feature.
[0017] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a memory, a processor; the processor is used to read and execute a computer program stored in the memory to implement the aforementioned PPPOE routing IPTV live broadcast method.
[0018] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and when the computer executable instructions are executed, the aforementioned PPPOE routing IPTV live broadcast method is implemented.
[0019] The beneficial effects brought by the technical solution provided by the embodiment of the present invention include:
[0020] After determining that the IPTV service configuration of the user-side port supports the PPPOE routing multicast service, the media play request message sent by the user-side set-top box is parsed to extract the program IP information in the media play request message; based on the stream capture feature, the PPPOE media stream is captured from the media stream; based on the program IP information in the media play request message, the PPPOE media stream is converted to obtain the ipoe media stream; based on the hard acceleration feature, the ipoe media stream is distributed to the corresponding user-side port. According to the present invention, based on the stream capture feature, the PPPOE media stream can be captured from the media stream. The PPPOE media stream is then converted into an ipoe media stream, and based on the hard acceleration feature, the ipoe media stream can be distributed to the corresponding user-side port, which greatly improves the forwarding performance of the ipoe media stream, and does not need to rely on the one-to-one mapping relationship between the pppx network card and br0. It supports the business configuration scenarios of multiple PPPOE routing wans, avoids multi-level processing and multiple copies of the media stream in the gateway, and has higher adaptability to multi-wan link scenarios, solving the technical problems in the prior art that the media stream needs to be processed at multiple levels and copied multiple times in the gateway, and the forwarding performance is poor. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 A schematic diagram of the process of the first embodiment of the PPPOE routing IPTV live broadcast method of the present invention;
[0023] Figure 2 It is a schematic diagram of the overall framework of the PPPOE routing IPTV live broadcast method of the present invention;
[0024] Figure 3 It is a core function call diagram of PPPOE media stream processing of the present invention;
[0025] Figure 4 A schematic diagram of the flow chart of the second embodiment of the PPPOE routing IPTV live broadcast method of the present invention;
[0026] Figure 5 A schematic diagram of functional modules of an embodiment of a PPPOE routing IPTV live broadcast device of the present invention;
[0027] Figure 6 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] To make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0030] In a first aspect, an embodiment of the present invention provides a PPPOE routing IPTV live broadcast method.
[0031] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the PPPOE routing IPTV live broadcast method of the present invention. Figure 1 As shown, the PPPOE routing IPTV live broadcast method includes:
[0032] Step S10, when it is determined that the IPTV service configuration of the user-side port supports the PPPOE routing multicast service, the media playback request message sent by the user-side set-top box is parsed to extract the program IP information in the media playback request message;
[0033] In this embodiment, refer to Figure 2 , Figure 2 The overall framework diagram of the PPPOE routing IPTV live broadcast method of the present invention is shown in FIG. Figure 2 As shown, S01 represents an IPoe media request (play or leave) initiated by a user; S02 represents an IPoe query message periodically sent by a gateway; S03 represents a PPPoE media request (play or leave) sent by a gateway to the upstream network; S04 represents a PPPoE query message periodically sent by an upstream network; S05 represents a PPPoE media stream sent by an upstream network; S06 represents an IPoe media stream after format conversion, which is subsequently distributed to users through an accelerated channel.
[0034] When the software process is started, the configuration management unit generates the IPTV service configuration of the user side port based on the IPTV service-related configuration read from the data model of the gateway, and saves it in the memory.
[0035] The read IPTV service-related configurations include: the IP address of the PPPoE router WAN; the MAC address of the PPPoE router WAN, i.e. the DMAC (destination MAC address) of the subsequent PPPoE media stream; the VLAN to which the PPPoE router WAN is connected, i.e. the VLAN of the subsequent PPPoE media stream; the bound port configuration of the PPPoE router WAN (LAN port and WiFi port, i.e. the port information that supports the PPPoE router multicast service), which is divided into port binding configuration and VLAN binding configuration.
[0036] The generated IPTV service configuration of the user-side port consists of three core elements: the user-side physical port number, the network-side VLAN, and the user-side VLAN. The network-side VLAN is derived from the VLAN connected to the PPPoE router WAN; the user-side VLAN is derived from the port binding configuration or VLAN binding configuration of the PPPoE router WAN. For the port binding configuration, the effective user-side VLAN is 0, that is, untag; for the VLAN binding configuration, the effective user-side VLAN is tag.
[0037] After determining that the IPTV service configuration of the user-side port supports PPPOE routing multicast services, the protocol processing unit parses the media playback request message sent by the user-side set-top box, and extracts the program IP information in the media playback request message sent by the user-side set-top box, so as to subsequently create media stream features and stream acceleration features.
[0038] In another embodiment, when it is determined that the IPTV service configuration of the user-side port does not support the PPPOE routing multicast service, the captured media play request message sent by the user-side set-top box is deleted.
[0039] Step S20, capturing the PPPOE media stream from the media stream based on the stream capture feature;
[0040] In this embodiment, continue to refer to Figure 2 , through the data processing unit based on the PPPOE routing WAN attribute encapsulation PPPOE format IGMP\MLD media request message, based on the read routing WAN IP and MAC, send a request to obtain the media stream to the IPTV server. Create a stream capture feature based on the PPPOE routing WAN vlan, the PPPOE header of the media playback request message, the PPPOE routing WAN MAC address and the program IP information in the media playback request message, refer to Figure 3 , Figure 3 It is a core function call diagram of PPPOE media stream processing of the present invention, such as Figure 3As shown, the sdk_mcast_whitelist_handle() function is used to capture the media stream that meets the stream capture characteristics from the media stream, that is, the PPPOE media stream is obtained. The sdk mcast whitelist handle() function is a multicast whitelist function. The downstream stream that meets the multicast characteristics will be allowed to enter the ONU (Optical Network Unit).
[0041] Optionally, in one embodiment, the flow capture features include the vlan of the PPPOE routing wan, the PPPOE header of the media playback request message, the MAC address of the PPPOE routing wan, and the program IP information in the media playback request message.
[0042] In this embodiment, the MAC address of the PPPOE routing WAN and the VLAN of the PPPOE routing WAN are read from the data model of the gateway, the media play request message sent by the user-side set-top box is parsed, the program IP information in the media play request message is extracted, and the stream capture feature is created based on the VLAN of the PPPOE routing WAN, the PPPOE header of the media play request message, the MAC address of the PPPOE routing WAN, and the program IP information in the media play request message, that is, the stream capture feature is: VLAN+PPPOE header+DMAC+DIP. Among them, DMAC is the destination MAC address, that is, the MAC address of the PPPOE routing WAN; DIP is the destination IP address, that is, the program IP information in the media play request message.
[0043] Step S30, based on the program IP information in the media play request message, convert the PPPOE media stream to obtain the ipoe media stream;
[0044] In this embodiment, continue to refer to Figure 3 , parse the igmp\mld message in ipoe encapsulation format, that is, the media playback request message sent by the user-side set-top box, and obtain the program IP information in the message. The captured PPPOE media stream is sent to the kernel stream processing API through the Eth_br_prerouting_handle() function. Based on the program IP information in the media playback request message, the PPPOE media stream is converted into an ipoe media stream through the Fh_eth_igmp_hook() function and the Fh_iptv_pppoe_data_handle() function so as to be sent to the corresponding user port.
[0045] The eth_br_prerouting_handle() function is a built-in hook function of the bridge. Messages that meet the characteristics will be captured, such as igmp protocol messages, mld protocol messages, and media streams that meet the stream capture characteristics.
[0046] The fh_eth_igmp_hook() function is a built-in hook function for kernel forwarding, which is responsible for parsing and classifying packets that meet the flow capture characteristics.
[0047] The fh_iptv_pppoe_data_handle() function is a hook function built into the fh_eth_igmp_hook() function, which is responsible for receiving and processing the pppoe media stream.
[0048] Optionally, in one embodiment, step S30 includes:
[0049] The user-side VLAN of the port covers the VLAN of the PPPOE media stream, wherein the VLAN of the PPPOE media stream and the network-side VLAN of the port are configured the same;
[0050] And, strip the PPPOE header of the PPPOE media stream;
[0051] Moreover, based on the program IP information in the media play request message, the program MAC is calculated and updated to the DMAC field of the media play request message to obtain the IPoe media stream.
[0052] In this embodiment, the VLAN of the PPPOE media stream is stripped, the VLAN is transparently transmitted, and the VLAN translation is processed by the Fh_iptv_pppoe_data_handle() function, so that the VLAN of the PPPOE media stream is configured the same as the network side VLAN of the port. The Fh_eth_igmp_hook() function is used to detect whether the VLAN of the PPPOE media stream is configured the same as the network side VLAN of the port. When the VLAN of the PPPOE media stream is configured the same as the network side VLAN of the port, the VLAN of the PPPOE media stream is covered by the user side VLAN of the port.
[0053] In the PPPOE routing multicast service scenario, the traffic required by users is the ipoe-encapsulated media stream, while the media stream that reaches the gateway is the PPPOE-encapsulated media stream. Therefore, the PPPOE media stream needs to be stripped of the PPPOE header and converted to dmac before it can go through the subsequent acceleration channel and be used by users.
[0054] Based on the program IP information in the media play request message, the program MAC is calculated and updated to the DMAC field of the media play request message to obtain the IPoe media stream. Among them, calculating the program MAC address is a specification defined by the network standard. The multicast MAC address corresponds to the multicast IP address. IANA (Internet Assigned Number Authority) stipulates that the high 24 bits of the multicast MAC address are 0x01005e, and the low 23 bits of the MAC address are the low 23 bits of the multicast IP address.
[0055] Step S40: Distribute the ipoe media stream to the corresponding user-side port based on the hard acceleration feature.
[0056] In this embodiment, a hard acceleration feature is created based on the VLAN attribute of the user side, the program IP information in the media playback request message, and the physical port number of the user side. Based on the hard acceleration feature, the IPoe media stream is distributed to the corresponding user side port.
[0057] Specifically, taking the VLAN attribute of the user side as untag, the program IP information in the media play request message as 235.1.2.3, and the physical port number of the user side as port1 as an example, the characteristics of creating a hard acceleration channel are: untag+235.1.2.3+port1.
[0058] After converting the PPPoE media stream to the IPoe media stream, the hard acceleration channel feature (untag+235.1.2.3) is matched and the IPoe media stream is sent to port 1. The hard acceleration feature is a multicast stream forwarding strategy of the SDK, a hardware resource, and the specification is generally 1024.
[0059] Optionally, in one embodiment, the hard acceleration table features include: VLAN attributes on the user side, program IP information in the media play request message, and a physical port number on the user side.
[0060] In this embodiment, the hard acceleration table features are: vlan+dip+port, wherein vlan is the VLAN attribute of the user side, dip is the program IP information in the media play request message, and port is the physical port number of the user side.
[0061] In this embodiment, after determining that the IPTV service configuration of the user-side port supports the PPPOE routing multicast service, the media play request message sent by the user-side set-top box is parsed to extract the program IP information in the media play request message; based on the stream capture feature, the PPPOE media stream is captured from the media stream; based on the program IP information in the media play request message, the PPPOE media stream is converted to obtain the ipoe media stream; based on the hard acceleration feature, the ipoe media stream is distributed to the corresponding user-side port. According to this embodiment, based on the stream capture feature, the PPPOE media stream can be captured from the media stream. The PPPOE media stream is converted into an ipoe media stream, and then based on the hard acceleration feature, the ipoe media stream can be distributed to the corresponding user-side port, which greatly improves the forwarding performance of the ipoe media stream, and does not need to rely on the one-to-one mapping relationship between the pppx network card and br0. It supports the business configuration scenarios of multiple PPPOE routing wans, avoids multi-level processing and multiple copies of media streams in the gateway, and has higher adaptability to multi-wan link scenarios, which solves the technical problems in the prior art that the media stream needs to be processed at multiple levels and copied multiple times in the gateway and the forwarding performance is poor.
[0062] Optionally, in one embodiment, referring to Figure 4 , Figure 4 FIG. 2 is a flow chart of the second embodiment of the PPPOE routing IPTV live broadcast method of the present invention. Figure 4 As shown, before step S10, it includes:
[0063] Step S001, capturing a media play request message sent by a user-side set-top box;
[0064] Step S002, parsing the media play request message to obtain port information and vlan information corresponding to the media play request message;
[0065] Step S003: Based on the port information and the vlan information, determine whether the IPTV service configuration of the user-side port supports the PPPOE routing multicast service.
[0066] In this embodiment, continue to refer to Figure 3 The starting point of the message capture is in the SDK. After the media stream enters the ONU (Optical Network Unit) and before acceleration, the SDK captures the media playback request message sent by the user-side set-top box through the Eth_br_prerouting_handle() function.
[0067] Parse the media play request message sent by the user side set-top box to obtain the port information and VLAN information corresponding to the media play request message.
[0068] The port information and VLAN information corresponding to the media play request message are matched with the IPTV service configuration of the user side port, and based on the matching result, it is determined whether the IPTV service configuration of the user side port supports the PPPOE routing multicast service.
[0069] Optionally, in one embodiment, the step of determining whether the IPTV service configuration of the user side port supports the PPPOE routing multicast service based on the port information and the vlan information includes:
[0070] Compare the port information with the port binding information of the PPPOE routing wan to obtain a first comparison result;
[0071] Compare the vlan information with the vlan information of the PPPOE routing wan connection to obtain a second comparison result;
[0072] If the first comparison result and the second comparison result are the same, it is determined that the iptv service configuration of the user side port supports the PPPOE routing multicast service.
[0073] In this embodiment, the port information corresponding to the media play request message is compared with the port binding information of the PPPOE router WAN, that is, the user side VLAN, to obtain a first comparison result. Among them, the port information corresponding to the media play request message includes physical port information such as a LAN port or a WiFi port connected to a set-top box. The port binding information of the PPPOE router WAN includes the LAN port or the WiFi port, that is, the port information supporting the PPPOE router groupcast service.
[0074] The VLAN information corresponding to the media play request message is compared with the VLAN information of the PPPOE routing WAN connection, that is, the network side VLAN, to obtain a second comparison result.
[0075] If the first comparison result and the second comparison result are the same, it is determined that the iptv service configuration of the user side port supports the PPPOE routing multicast service; if the first comparison result or the second comparison result is different, it is determined that the iptv service configuration of the user side port does not support the PPPOE routing multicast service.
[0076] Optionally, in one embodiment, after the step of distributing the ipoe media stream to the corresponding user-side port based on the hard acceleration feature, the method further comprises:
[0077] When a media stop play request message sent by a user-side set-top box is captured, program IP information in the media stop play request message is extracted;
[0078] The program IP information corresponding to the stream capture feature and the hard acceleration feature in the media stop request message are deleted.
[0079] In this embodiment, when the software product is started, based on the configuration related to the IPTV service read from the data model of the gateway, the IPTV service configuration of the user side port is generated and saved in the memory. When the media stop play request message sent by the user side set top box is captured, the program IP information in the media stop request message is extracted. The stream capture feature and the hard acceleration feature containing the program IP information in the media stop request message are deleted, thereby stopping the capture of the PPPoE media stream and the forwarding of the IPoe media stream.
[0080] In a second aspect, an embodiment of the present invention further provides a PPPOE routing IPTV live broadcast device.
[0081] In one embodiment, referring to Figure 5 , Figure 5 This is a functional module diagram of an embodiment of a PPPOE routing IPTV live broadcast device of the present invention. Figure 5 As shown, the PPPOE routing IPTV live broadcast device includes:
[0082] The information extraction module 10 is configured to parse the media playback request message sent by the user-side set-top box and extract the program IP information in the media playback request message after determining that the IPTV service configuration of the user-side port supports the PPPOE routing multicast service;
[0083] The information capture module 20 is configured to capture the PPPOE media stream from the media stream based on the stream capture feature;
[0084] The conversion module 30 is configured to convert the PPPOE media stream based on the program IP information in the media play request message to obtain the ipoe media stream;
[0085] The information sending module 40 is configured to distribute the ipoe media stream to the corresponding user-side port based on the hard acceleration feature.
[0086] Optionally, in one embodiment, the PPPOE routing IPTV live broadcast device further includes a detection module configured to:
[0087] Capture the media playback request message sent by the user-side set-top box;
[0088] Parse the media play request message to obtain port information and vlan information corresponding to the media play request message;
[0089] Based on the port information and the vlan information, determine whether the IPTV service configuration of the user side port supports the PPPOE routing multicast service.
[0090] Optionally, in one embodiment, the detection module is further configured to:
[0091] Compare the port information with the port binding information of the PPPOE routing wan to obtain a first comparison result;
[0092] Compare the vlan information with the vlan information of the PPPOE routing wan connection to obtain a second comparison result;
[0093] If the first comparison result and the second comparison result are the same, it is determined that the iptv service configuration of the user side port supports the PPPOE routing multicast service.
[0094] Optionally, in one embodiment, the flow capture features include the vlan of the PPPOE routing wan, the PPPOE header of the media playback request message, the MAC address of the PPPOE routing wan, and the program IP information in the media playback request message.
[0095] Optionally, in one embodiment, the conversion module 30 is configured to:
[0096] The user-side VLAN of the port covers the VLAN of the PPPOE media stream, wherein the VLAN of the PPPOE media stream and the network-side VLAN of the port are configured the same;
[0097] And, strip the PPPOE header of the PPPOE media stream;
[0098] Moreover, based on the program IP information in the media play request message, the program MAC is calculated and updated to the DMAC field of the media play request message to obtain the IPoe media stream.
[0099] Optionally, in one embodiment, the hard acceleration table features include: VLAN attributes on the user side, program IP information in the media play request message, and a physical port number on the user side.
[0100] Optionally, in one embodiment, the PPPOE routing IPTV live broadcast device further includes a deletion module configured to:
[0101] When a media stop play request message sent by a user-side set-top box is captured, program IP information in the media stop play request message is extracted;
[0102] The program IP information corresponding to the stream capture feature and the hard acceleration feature in the media stop request message are deleted.
[0103] Among them, the functional implementation of each module in the above-mentioned PPPOE routing IPTV live broadcast device corresponds to the steps in the above-mentioned PPPOE routing IPTV live broadcast method embodiment, and its functions and implementation processes are no longer repeated here one by one.
[0104] In a third aspect, an embodiment of the present invention further provides an electronic device, whose structure is as follows: Figure 6 As shown, it includes: a memory and a processor, wherein the processor is used to read and execute the computer program stored in the memory to implement the aforementioned PPPOE routing IPTV live broadcast method.
[0105] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and when the computer executable instructions are executed, the aforementioned PPPOE routing IPTV live broadcast method is implemented.
[0106] Finally, it should be noted that: in some processes described in the embodiments of the present invention, multiple operations or steps appearing in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present invention or may be executed in parallel, and the sequence number of the operation is only used to distinguish between different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0107] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A PPPOE routing IPTV live broadcast method, characterized in that: The method comprises: After determining that the IPTV service configuration of the user-side port supports the PPPOE routing multicast service, parse the media play request message sent by the user-side set-top box and extract the program IP information in the media play request message; Based on the stream capture feature, capture the PPPOE media stream from the media stream; Based on the program IP information in the media play request message, the PPPOE media stream is converted to obtain the ipoe media stream; Based on the hard acceleration feature, the ipoe media stream is distributed to the corresponding user-side port.
2. A PPPOE routing IPTV live broadcast method according to claim 1, characterized in that: Before the step of parsing the media play request message sent by the user-side set-top box and extracting the program IP information in the media play request message after determining that the IPTV service configuration of the user-side port supports the PPPOE routing multicast service, the method includes: Capture the media playback request message sent by the user-side set-top box; Parse the media play request message to obtain port information and vlan information corresponding to the media play request message; Based on the port information and the vlan information, determine whether the IPTV service configuration of the user side port supports the PPPOE routing multicast service.
3. A PPPOE routing IPTV live broadcast method according to claim 2, characterized in that: The step of determining whether the IPTV service configuration of the user side port supports the PPPOE routing multicast service based on the port information and the vlan information comprises: Compare the port information with the port binding information of the PPPOE routing wan to obtain a first comparison result; Compare the vlan information with the vlan information of the PPPOE routing wan connection to obtain a second comparison result; If the first comparison result and the second comparison result are the same, it is determined that the iptv service configuration of the user side port supports the PPPOE routing multicast service.
4. A PPPOE routing IPTV live broadcast method according to claim 1, characterized in that: The flow capture features include the vlan of the PPPOE routing wan, the PPPOE header of the media play request message, the mac address of the PPPOE routing wan and the program ip information in the media play request message.
5. A PPPOE routing IPTV live broadcast method according to claim 1, characterized in that: The step of converting the PPPOE media stream based on the program IP information in the media play request message to obtain the ipoe media stream includes: The user-side VLAN of the port covers the VLAN of the PPPOE media stream, wherein the VLAN of the PPPOE media stream and the network-side VLAN of the port are configured the same; And, strip the PPPOE header of the PPPOE media stream; Moreover, based on the program IP information in the media play request message, the program MAC is calculated and updated to the DMAC field of the media play request message to obtain the IPoe media stream.
6. A PPPOE routing IPTV live broadcast method according to claim 1, characterized in that: The characteristics of the hard acceleration table include: VLAN attributes on the user side, program IP information in the media play request message, and the physical port number on the user side.
7. A PPPOE routing IPTV live broadcast method according to any one of claims 1 to 6, characterized in that: After the step of distributing the ipoe media stream to the corresponding user side port based on the hard acceleration feature, the method further comprises: When a media stop play request message sent by a user-side set-top box is captured, program IP information in the media stop play request message is extracted; The program IP information corresponding to the stream capture feature and the hard acceleration feature in the media stop request message are deleted.
8. A PPPOE routing IPTV live broadcast device, characterized in that: The device comprises: The information extraction module is configured to parse the media playback request message sent by the user-side set-top box and extract the program IP information in the media playback request message after determining that the IPTV service configuration of the user-side port supports the PPPOE routing multicast service; The information capture module is configured to capture the PPPOE media stream from the media stream based on the stream capture feature; A conversion module is configured to convert the PPPOE media stream based on the program IP information in the media play request message to obtain an ipoe media stream; The information sending module is configured to distribute the ipoe media stream to the corresponding user side port based on the hard acceleration feature.
9. An electronic device, characterized in that: include: Memory and processor; The processor is used to read and execute the computer program stored in the memory to implement the steps of the PPPOE routing IPTV live broadcast method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed, the steps of the PPPOE routing IPTV live broadcast method as described in any one of claims 1-7 are implemented.
