技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种互联网电视组网方法及系统。The present invention relates to the field of communication technology, and in particular, to an Internet TV networking method and system.
背景技术Background technique
IPTV、OTT互联网电视通过机顶盒作为物理承载,均可向用户提供视频内容观看服务,其中IPTV电视需使用专网通道,OTT互联网电视使用互联网通道,目前IPTV电视、OTT互联网电视需使用与其对应的机顶盒设备。IPTV and OTT Internet TV use set-top boxes as physical carriers to provide users with video content viewing services. IPTV TV needs to use a dedicated network channel, and OTT Internet TV uses an Internet channel. Currently, IPTV TV and OTT Internet TV need to use their corresponding set-top boxes. equipment.
(一)IPTV机顶盒现有技术方案(1) Existing technical solutions for IPTV set-top boxes
IPTV机顶盒必须接入家庭网关(光猫)的专用端口,且该专用端口配置在桥接模式;其他非IPTV专用端口配置在路由模式,无法提供给IPTV业务接入使用。The IPTV set-top box must be connected to the dedicated port of the home gateway (optical modem), and the dedicated port is configured in bridge mode; other non-IPTV dedicated ports are configured in routing mode and cannot be provided for IPTV service access.
IPTV机顶盒开机后,在获取地址时通过IPOE进行身份认证,家庭网关(光猫)转发机顶盒发起的基于以太网的IP通讯协议(IP Over Ethernet,IPOE)认证消息到认证授权记账(Authentication、Authorization、Accounting,AAA)服务器,AAA服务器认证通过后,IPTV机顶盒可获取到IP地址,用户可使用IPTV业务,若认证不通过,用户无法使用IPTV的所有业务,IPTV机顶盒的认证过程示意图如图1所示。After the IPTV set-top box is turned on, identity authentication is performed through IPOE when obtaining the address. The home gateway (optical modem) forwards the Ethernet-based IP communication protocol (IP Over Ethernet, IPOE) authentication message initiated by the set-top box to the authentication, authorization and accounting (Authentication, Authorization) , Accounting, AAA) server. After the AAA server authentication is passed, the IPTV set-top box can obtain the IP address and the user can use IPTV services. If the authentication fails, the user cannot use all IPTV services. The schematic diagram of the authentication process of the IPTV set-top box is shown in Figure 1 Show.
(二)OTT机顶盒现有技术方案(2) Existing technical solutions for OTT set-top boxes
OTT机顶盒工作在互联网模式,用户组网环境只要能正常上网即可使用OTT电视业务,无接入网络端口及网络认证限制。The OTT set-top box works in Internet mode. As long as the user's network environment can access the Internet normally, they can use the OTT TV service without restrictions on access network ports and network authentication.
现有技术方案存在以下缺点:The existing technical solutions have the following shortcomings:
1、机顶盒设备不能共用1. Set-top box equipment cannot be shared
现有IPTV、OTT互联网电视通过不同的机顶盒设备承载,不能在同一台机顶盒设备上实现IPTV、OTT互联网电视业务的自适应切换。Existing IPTV and OTT Internet TV are carried through different set-top box devices, and adaptive switching of IPTV and OTT Internet TV services cannot be realized on the same set-top box device.
2、家庭网关(光猫)端口不能共用2. Home gateway (optical modem) ports cannot be shared
(1)IPTV机顶盒必须使用专用端口(1) IPTV set-top boxes must use dedicated ports
IPTV机顶盒必须接入家庭网关(光猫)的IPTV业务专用端口,不允许使用其他端口或接入第三方路由器,否则将无法使用IPTV机顶盒上的任何功能。The IPTV set-top box must be connected to the dedicated IPTV service port of the home gateway (optical modem). It is not allowed to use other ports or connect to a third-party router, otherwise you will not be able to use any functions on the IPTV set-top box.
(2)OTT机顶盒必须使用非IPTV专用端口(2) OTT set-top boxes must use non-IPTV dedicated ports
OTT机顶盒不能接入家庭网关(光猫)的IPTV业务专用端口,只能使用其他端口或接入第三方路由器,否则将无法使用OTT机顶盒上的业务。The OTT set-top box cannot be connected to the IPTV service dedicated port of the home gateway (optical modem). It can only use other ports or connect to a third-party router. Otherwise, the services on the OTT set-top box will not be available.
以上端口接入规则增加了使用门槛,不利于用户便捷使用业务。The above port access rules increase the usage threshold and are not conducive to users' convenient use of services.
发明内容Contents of the invention
本发明提供的互联网电视组网方法及系统,用于克服现有技术中存在的上述问题,能够通过向网关发送认证请求获取网络端口IP地址,实现网关端口的动态复用,并根据对用户身份认证结果实现对互联网电视的自适应组网。The Internet TV networking method and system provided by the present invention are used to overcome the above-mentioned problems existing in the prior art. They can obtain the network port IP address by sending an authentication request to the gateway, realize dynamic multiplexing of the gateway port, and obtain the IP address of the network port according to the user identity. The certification results enable adaptive networking for Internet TV.
第一方面,本发明提供的一种互联网电视组网方法,包括:In a first aspect, the present invention provides an Internet TV networking method, including:
向网关发送基于以太网的IP通讯协议IPOE认证请求,以获取目标IP地址;Send an Ethernet-based IP communication protocol IPOE authentication request to the gateway to obtain the target IP address;
将DISCOVER消息发送给所述网关;Send a DISCOVER message to the gateway;
接收所述网关反馈的目标OFFER消息,并根据所述目标OFFER消息确定组网模式;Receive the target OFFER message fed back by the gateway, and determine the networking mode according to the target OFFER message;
其中,所述DISCOVER消息中携带有用户账号及用户密码;Wherein, the DISCOVER message carries the user account number and user password;
所述目标OFFER消息是由所述网关对IPTV模式专用VLAN端口、所述用户账号及所述用户密码进行认证后确定的。The target OFFER message is determined by the gateway after authenticating the IPTV mode dedicated VLAN port, the user account and the user password.
根据本发明提供的一种互联网电视组网方法,所述根据所述目标OFFER消息确定组网模式,包括:According to an Internet TV networking method provided by the present invention, determining the networking mode according to the target OFFER message includes:
若确定所述目标OFFER消息中携带有预设固定字符串的OPTION125信息,则将所述组网模式切换至IPTV模式。If it is determined that the target OFFER message carries the OPTION125 information of the preset fixed string, the networking mode is switched to the IPTV mode.
根据本发明提供的一种互联网电视组网方法,所述根据所述目标OFFER消息确定组网模式,还包括:According to an Internet TV networking method provided by the present invention, determining the networking mode according to the target OFFER message also includes:
若确定所述目标OFFER消息中未携带有预设固定字符串的OPTION125信息,或若确定所述目标OFFER消息中未携带OPTION125信息,则将所述组网模式切换至OTT模式。If it is determined that the target OFFER message does not carry the OPTION125 information of the preset fixed string, or if it is determined that the target OFFER message does not carry the OPTION125 information, the networking mode is switched to the OTT mode.
第二方面,本发明提供的一种互联网电视组网方法,包括:In a second aspect, the present invention provides an Internet TV networking method, including:
接收终端发送的IPOE认证请求,并在认证通过后将目标IP地址发送给所述终端;Receive the IPOE authentication request sent by the terminal, and send the target IP address to the terminal after the authentication is passed;
接收所述终端发送的DISCOVER消息;Receive the DISCOVER message sent by the terminal;
对IPTV模式专用VLAN端口、所述DISCOVER消息中携带的用户账号及用户密码进行认证,并根据认证结果将目标OFFER消息发送给所述终端,以供所述终端根据所述目标OFFER消息确定组网模式;Authenticate the IPTV mode dedicated VLAN port, the user account and user password carried in the DISCOVER message, and send a target OFFER message to the terminal according to the authentication result, so that the terminal determines the networking based on the target OFFER message. model;
其中,所述目标IP地址是通过向认证授权记账AAA服务器发送所述IPOE认证请求,并在所述AAA服务器对所述IPOE认证请求校验通过后获取的。Wherein, the target IP address is obtained by sending the IPOE authentication request to the authentication, authorization and accounting AAA server, and after the AAA server passes the verification of the IPOE authentication request.
根据本发明提供的一种互联网电视组网方法,所述对IPTV模式专用VLAN端口、所述DISCOVER消息中携带的用户账号及用户密码进行认证,并根据认证结果将目标OFFER消息发送给所述终端,包括:According to an Internet TV networking method provided by the present invention, the IPTV mode dedicated VLAN port, the user account and user password carried in the DISCOVER message are authenticated, and a target OFFER message is sent to the terminal according to the authentication result. ,include:
若确定所述IPTV模式专用VLAN端口可用、所述用户账号和所述用户密码认证通过,则将携带有预设固定字符串的OPTION125信息的所述目标OFFER消息发送给所述终端。If it is determined that the IPTV mode dedicated VLAN port is available and the user account and user password are authenticated, then the target OFFER message carrying the OPTION125 information of the preset fixed string is sent to the terminal.
根据本发明提供的一种互联网电视组网方法,所述对IPTV模式专用VLAN端口、所述DISCOVER消息中携带的用户账号及用户密码进行认证,并根据认证结果将目标OFFER消息发送给所述终端,还包括:According to an Internet TV networking method provided by the present invention, the IPTV mode dedicated VLAN port, the user account and user password carried in the DISCOVER message are authenticated, and a target OFFER message is sent to the terminal according to the authentication result. ,Also includes:
若确定所述IPTV模式专用VLAN端口不可用或所述用户账号或所述用户密码认证未通过,则将未携带有预设固定字符串的OPTION125信息的所述目标OFFER消息发送给所述终端;或If it is determined that the IPTV mode dedicated VLAN port is unavailable or the user account or user password authentication fails, then the target OFFER message that does not carry the OPTION125 information of the preset fixed string is sent to the terminal; or
将未携带OPTION125信息的所述目标OFFER消息发送给所述终端。The target OFFER message that does not carry OPTION125 information is sent to the terminal.
第三方面,本发明还提供一种互联网电视组网系统,包括:地址获取模块、消息发送模块以及组网确定模块;In a third aspect, the present invention also provides an Internet TV networking system, including: an address acquisition module, a message sending module and a networking determination module;
所述地址获取模块,用于向所述网关发送IPOE认证请求,以获取目标IP地址;The address acquisition module is used to send an IPOE authentication request to the gateway to obtain the target IP address;
所述消息发送模块,用于将DISCOVER消息发送给网关;The message sending module is used to send the DISCOVER message to the gateway;
所述组网确定模块,用于接收所述网关反馈的目标OFFER消息,并根据所述目标OFFER消息确定组网模式;The networking determination module is used to receive the target OFFER message fed back by the gateway, and determine the networking mode according to the target OFFER message;
其中,所述DISCOVER消息中携带有用户账号及用户密码;Wherein, the DISCOVER message carries the user account number and user password;
所述目标OFFER消息是由所述网关对IPTV模式专用VLAN端口、所述用户账号及所述用户密码进行认证后确定的。The target OFFER message is determined by the gateway after authenticating the IPTV mode dedicated VLAN port, the user account and the user password.
第四方面,本发明还提供一种互联网电视组网系统,包括:地址发送模块、消息接收模块以及组网确定模块;In a fourth aspect, the present invention also provides an Internet TV networking system, including: an address sending module, a message receiving module and a networking determining module;
所述地址发送模块,用于接收终端发送的IPOE认证请求,并在认证通过后将目标IP地址发送给所述终端;The address sending module is used to receive the IPOE authentication request sent by the terminal, and send the target IP address to the terminal after the authentication is passed;
所述消息接收模块,用于接收所述终端发送的DISCOVER消息;The message receiving module is used to receive the DISCOVER message sent by the terminal;
所述组网确定模块,用于对IPTV模式专用VLAN端口、所述DISCOVER消息中携带的用户账号及用户密码进行认证,并根据认证结果将目标OFFER消息发送给所述终端,以供所述终端根据所述目标OFFER消息确定组网模式;The networking determination module is used to authenticate the IPTV mode dedicated VLAN port, the user account and user password carried in the DISCOVER message, and send the target OFFER message to the terminal according to the authentication result for the terminal to Determine the networking mode according to the target OFFER message;
其中,所述目标IP地址是通过向AAA服务器发送所述IPOE认证请求,并在所述AAA服务器对所述IPOE认证请求校验通过后获取的。Wherein, the target IP address is obtained by sending the IPOE authentication request to the AAA server and after the AAA server passes the verification of the IPOE authentication request.
第五方面,本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述互联网电视组网方法的步骤。In a fifth aspect, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, any one of the above is implemented. Describe the steps of the Internet TV networking method.
第六方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述互联网电视组网方法的步骤。In a sixth aspect, the present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned Internet TV networking methods are implemented.
本发明提供的互联网电视组网方法及系统,通过向网关发送认证请求获取网络端口IP地址,实现网关端口的动态复用,并根据对用户身份认证结果实现对互联网电视的自适应组网。The Internet TV networking method and system provided by the present invention obtain the network port IP address by sending an authentication request to the gateway, realize dynamic multiplexing of the gateway port, and realize adaptive networking of Internet TV based on the user identity authentication result.
附图说明Description of the drawings
为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are of the present invention. For some embodiments of the invention, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1是现有技术提供的IPTV机顶盒的认证过程示意图;Figure 1 is a schematic diagram of the authentication process of an IPTV set-top box provided by the prior art;
图2是本发明提供的互联网电视组网方法的流程示意图之一;Figure 2 is one of the flow diagrams of the Internet TV networking method provided by the present invention;
图3是本发明提供的目标IP地址获取的流程示意图;Figure 3 is a schematic flow chart of obtaining a target IP address provided by the present invention;
图4是本发明提供的互联网电视组网方法的流程示意图之二;Figure 4 is the second schematic flow chart of the Internet TV networking method provided by the present invention;
图5是本发明提供的互联网电视组网系统的结构示意图之一;Figure 5 is one of the structural schematic diagrams of the Internet TV networking system provided by the present invention;
图6是本发明提供的互联网电视组网系统的结构示意图之二;Figure 6 is the second structural schematic diagram of the Internet TV networking system provided by the present invention;
图7是本发明提供的电子设备的结构示意图之一;Figure 7 is one of the structural schematic diagrams of the electronic device provided by the present invention;
图8是本发明提供的电子设备的结构示意图之二。FIG. 8 is the second structural schematic diagram of the electronic device provided by the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention more clear, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention. , not all examples. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the present invention.
图2是本发明提供的互联网电视组网方法的流程示意图之一,如图2所示,方法包括:Figure 2 is one of the flow diagrams of the Internet TV networking method provided by the present invention. As shown in Figure 2, the method includes:
S1、向网关发送基于以太网的IP通讯协议IPOE认证请求,以获取目标IP地址;S1. Send an Ethernet-based IP communication protocol IPOE authentication request to the gateway to obtain the target IP address;
S2、将DISCOVER消息发送给网关;S2. Send the DISCOVER message to the gateway;
S3、接收网关反馈的目标OFFER消息,并根据目标OFFER消息确定组网模式;S3. Receive the target OFFER message fed back by the gateway, and determine the networking mode based on the target OFFER message;
其中,DISCOVER消息中携带有用户账号及用户密码;Among them, the DISCOVER message carries the user account and user password;
目标OFFER消息是由网关对IPTV模式专用VLAN端口、用户账号及用户密码进行认证后确定的。The target OFFER message is determined by the gateway after authenticating the IPTV mode dedicated VLAN port, user account and user password.
需要说明的是,上述方法的执行主体可以是计算机设备或终端设备,其中终端设备可以是机顶盒终端,下面以机顶盒终端直连网关(光猫)场景中执行上述方法为例进行说明。It should be noted that the execution subject of the above method can be a computer device or a terminal device, where the terminal device can be a set-top box terminal. The following is an example of executing the above method in a scenario where a set-top box terminal is directly connected to a gateway (optical modem).
可选地,机顶盒终端向网关(光猫)发送IPOE认证请求,以获取目标IP地址。网关(光猫)一般设置VLAN1接口和VLAN2接口,其中,VLAN1接口用于供手机、掌上计算机等电子设备上网使用,VLAN2接口用于为机顶盒终端提供网络接口,以供互联网电视(如IPTV或OTT)进行上网使用。Optionally, the set-top box terminal sends an IPOE authentication request to the gateway (optical modem) to obtain the target IP address. The gateway (optical modem) is generally equipped with a VLAN1 interface and a VLAN2 interface. Among them, the VLAN1 interface is used for electronic devices such as mobile phones and handheld computers to access the Internet. The VLAN2 interface is used to provide a network interface for set-top box terminals for Internet TV (such as IPTV or OTT). ) for online use.
本发明中机顶盒终端获取目标IP地址的流程示意图如图3所示,具体地:The schematic flow chart of the set-top box terminal obtaining the target IP address in the present invention is shown in Figure 3. Specifically:
步骤1:普通上网VLAN1接口IP获取IP地址;Step 1: Obtain the IP address through the common Internet access VLAN1 interface IP;
网关(光猫)采取PPPOE(Point-to-Point Protocol Over Ethernet)认证或IPOE认证方式,在通过用户账号及用户密码认证后,网关(光猫)从AAA服务器获取到IP地址。The gateway (optical cat) adopts PPPOE (Point-to-Point Protocol Over Ethernet) authentication or IPOE authentication. After passing the user account and user password authentication, the gateway (optical cat) obtains the IP address from the AAA server.
步骤2:网关IPTV专用VLAN2接口获取目标IP地址;Step 2: The gateway IPTV dedicated VLAN2 interface obtains the target IP address;
网关(光猫)采取PPPOE认证或IPOE认证方式,在通过IPTV模式专用VLAN端口(VLAN2端口)、用户账号及用户密码认证后,网关(光猫)从AAA服务器获取目标IP地址。The gateway (optical modem) adopts PPPOE authentication or IPOE authentication method. After passing the IPTV mode dedicated VLAN port (VLAN2 port), user account and user password authentication, the gateway (optical modem) obtains the target IP address from the AAA server.
步骤3:机顶盒终端到网关(光猫)获取IP地址;Step 3: The set-top box terminal goes to the gateway (optical modem) to obtain the IP address;
机顶盒终端采取IPOE认证方式到网关(光猫)获取目标IP地址,其中目标IP地址是在通过IPOE认证后,由网关随机分配的。The set-top box terminal uses IPOE authentication to obtain the target IP address from the gateway (optical modem). The target IP address is randomly assigned by the gateway after passing IPOE authentication.
IPOE认证方式:IPoE是DHCP+认证的技术,DHCP可以配合其他技术实现认证,例如Web+Radius,还例如,DHCP+OPTION扩展字段进行认证,所有这些扩展方式都统称为DHCP+认证,又可称为IPoE认证方式。IPOE authentication method: IPoE is a DHCP+ authentication technology. DHCP can cooperate with other technologies to achieve authentication, such as Web+Radius, and also, for example, DHCP+OPTION extension field for authentication. All these extension methods are collectively called DHCP+ authentication, and can also be called IPoE. verification method.
在IPTV的应用中,机顶盒终端通过IPOE认证,它发送的DISCOVER消息中包含OPTION60,标识这是一台机顶盒。当宽带接入服务器(BroadbandRemoteAccessServer,BRAS)收到这个DISCOVER后会为这个用户建立一个虚拟接口,然后在DISCOVER后加入OPTION82,一起发送给DHCP Server,DHCP Server收到这个请求后会剥离OPTION60和OPTION82,并把信息发送给Radius,Radius认证发现这是一台机顶盒,并且知道了它上线的时间和位置,认证成功后返回accept,DHCP Server随后完成OFFER,并将OFFER消息反馈给机顶盒终端,以使机顶盒终端拿到IP地址。In IPTV applications, the set-top box terminal is IPOE certified, and the DISCOVER message it sends contains OPTION60, identifying it as a set-top box. When the broadband access server (BroadbandRemoteAccessServer, BRAS) receives this DISCOVER, it will establish a virtual interface for the user, then add OPTION82 after DISCOVER, and send it to the DHCP Server together. After receiving this request, the DHCP Server will strip off OPTION60 and OPTION82. And send the information to Radius. Radius authentication finds that this is a set-top box and knows the time and location of its online. After successful authentication, it returns accept. The DHCP Server then completes the OFFER and feeds back the OFFER message to the set-top box terminal so that the set-top box The terminal gets the IP address.
机顶盒终端通过DISCOVER消息发送给网关(光猫),接收网关(光猫)反馈的目标OFFER消息,并根据目标OFFER消息的内容确定组网模式。其中,DISCOVER消息中携带有OPTION60信息,并在OPTION60中填充用户账号和用户密码。The set-top box terminal sends the DISCOVER message to the gateway (optical modem), receives the target OFFER message fed back by the gateway (optical modem), and determines the networking mode based on the content of the target OFFER message. Among them, the DISCOVER message carries OPTION60 information, and the user account and user password are filled in OPTION60.
本发明提供的互联网电视组网方法,通过向网关发送认证请求获取目标IP地址,实现网关端口的动态复用,并根据对用户身份认证结果实现对互联网电视的自适应组网。The Internet TV networking method provided by the present invention obtains the target IP address by sending an authentication request to the gateway, realizes dynamic multiplexing of gateway ports, and realizes adaptive networking of Internet TV based on the user identity authentication results.
进一步地,在一个实施例中,步骤S3中可以具体包括:Further, in one embodiment, step S3 may specifically include:
S31、若确定目标OFFER消息中携带有预设固定字符串的OPTION125信息,则将组网模式切换至IPTV模式。S31. If it is determined that the target OFFER message carries the OPTION125 information of the preset fixed string, the networking mode is switched to the IPTV mode.
可选地,网关(光猫)在完成对用户账号及用户密码认证后将VLAN2 IP地址等信息封装成DHCP OFFER包的时候,将OPTION125信息封装DHCP OFFER包中再发送给机顶盒终端。Optionally, when the gateway (optical modem) encapsulates the VLAN2 IP address and other information into a DHCP OFFER packet after completing the authentication of the user account and user password, it encapsulates the OPTION125 information in the DHCP OFFER packet and sends it to the set-top box terminal.
机顶盒终端在接收到OFFER包以后,首先查看该OFFER包所带的OPTION125信息是否包括有预设固定字符串,如查看OPTION125的“Option-data 1”字段中所填写的特征值,并与预设固定字符串进行比对,若比对结果一致,则认为网关(光猫)支持IPTV,机顶盒终端启用IPTV模式。After receiving the OFFER packet, the set-top box terminal first checks whether the OPTION125 information carried in the OFFER packet includes a preset fixed string. For example, check the characteristic value filled in the "Option-data 1" field of OPTION125 and compare it with the preset Compare the fixed strings. If the comparison results are consistent, it is considered that the gateway (optical modem) supports IPTV and the set-top box terminal enables IPTV mode.
需要说明的是,机顶盒终端还可以通过向网关(光猫)发送REQUEST消息,并在REQUEST消息中携带OPTION60消息,并通过接收网关(光猫)反馈的ACK消息中的OPTION125信息,确定网关是否支持IPTV,并在确定网关(光猫)支持IPTV时,对应将组网模式切换至IPTV模式,其中,机顶盒终端判定网关是否支持IPTV的方法与步骤S1-S3的过程一致。It should be noted that the set-top box terminal can also send a REQUEST message to the gateway (optical modem) and carry the OPTION60 message in the REQUEST message, and determine whether the gateway supports the OPTION125 information in the ACK message fed back by the gateway (optical modem). IPTV, and when it is determined that the gateway (optical modem) supports IPTV, the networking mode is correspondingly switched to the IPTV mode. The method for the set-top box terminal to determine whether the gateway supports IPTV is consistent with the process of steps S1-S3.
本发明提供的互联网电视组网方法,通过在获取地址的IPOE协议交互中引入约定的认证算法,以及约定在协议消息中约定包含特征值的OPTION125消息,机顶盒终端可自动识别上层组网设备支持IPTV组网,并根据识别结果,自动启用IPTV模式。The Internet TV networking method provided by the present invention introduces the agreed authentication algorithm in the IPOE protocol interaction for obtaining the address, and agrees to include the OPTION125 message containing the characteristic value in the protocol message. The set-top box terminal can automatically identify that the upper layer networking equipment supports IPTV. Establish a network and automatically enable IPTV mode based on the recognition results.
进一步地,在一个实施例中,步骤S3还可以具体包括:Further, in one embodiment, step S3 may also specifically include:
S32、若确定目标OFFER消息中未携带有预设固定字符串的OPTION125信息,或若确定目标OFFER消息中未携带OPTION125信息,则将组网模式切换至OTT模式。S32. If it is determined that the target OFFER message does not carry the OPTION125 information of the preset fixed string, or if it is determined that the target OFFER message does not carry the OPTION125 information, switch the networking mode to the OTT mode.
可选地,网关(光猫)在确定IPTV模式专用VLAN端口不可用时,或对机顶盒终端发起的用户账号或用户密码认证未通过后,正常反馈目标OFFER消息给机顶盒终端,并重新分配IP地址,此时,机顶盒终端在接收到网关(光猫)发送的目标OFFER消息后,第一时间确定目标OFFER消息中是否携带OPTION125信息或目标OFFER中的OPTION125信息是否携带有预设固定字符串,若确定目标OFFER消息中未携带有预设固定字符串的OPTION125信息,或若确定目标OFFER消息中未携带OPTION125信息,则根据接收到的重新分配的IP地址更新原先分配的IP地址,并确定网关(光猫)不支持IPTV,机顶盒终端启用OTT模式。Optionally, when the gateway (optical modem) determines that the dedicated VLAN port in IPTV mode is unavailable, or after the user account or user password authentication initiated by the set-top box terminal fails, it normally feeds back the target OFFER message to the set-top box terminal and reassigns the IP address. At this time, after receiving the target OFFER message sent by the gateway (optical modem), the set-top box terminal immediately determines whether the target OFFER message carries OPTION125 information or whether the OPTION125 information in the target OFFER carries a preset fixed string. If so, The target OFFER message does not carry the OPTION125 information with the preset fixed string, or if it is determined that the target OFFER message does not carry the OPTION125 information, the originally assigned IP address is updated based on the received reassigned IP address, and the gateway (optical) is determined. Cat) does not support IPTV, and the set-top box terminal enables OTT mode.
需要说明的是,机顶盒终端还可以通过向网关(光猫)发送REQUEST消息,并在REQUEST消息中携带OPTION60信息,并通过接收网关(光猫)反馈的ACK消息中的OPTION125信息,确定网关是否支持IPTV,并在确定网关(光猫)不支持IPTV时,对应将组网模式切换至OTT模式,其中,机顶盒终端判定网关是否支持IPTV的方法与步骤S1-S3的过程一致。It should be noted that the set-top box terminal can also send a REQUEST message to the gateway (optical modem), carrying OPTION60 information in the REQUEST message, and determine whether the gateway supports the OPTION125 information in the ACK message fed back by the gateway (optical modem). IPTV, and when it is determined that the gateway (optical modem) does not support IPTV, the networking mode is correspondingly switched to the OTT mode. The method for the set-top box terminal to determine whether the gateway supports IPTV is consistent with the process of steps S1-S3.
本发明提供的互联网电视组网方法还可以适用于机顶盒终端上联路由器,路由器对接网关(光猫)的场景,具体地:The Internet TV networking method provided by the present invention can also be applied to the scenario where the set-top box terminal is connected to the router and the router is connected to the gateway (optical modem). Specifically:
路由器通过DHCP向网关(光猫)申请当前网络端口IP地址,机顶盒终端仍按照上述机顶盒终端直连网关(光猫)场景模式向路由器发起IPOE认证,由于路由器为公共第三方网络设备,无法识别的机顶盒终端发起的DISCOVER消息中携带的OPTION60信息,此时,路由器会正常分配IP地址给当前网络端口,路由器在反馈的OFFER消息中不包含预设固定字符串的OPTION125信息。The router applies for the current network port IP address from the gateway (optical modem) through DHCP. The set-top box terminal still initiates IPOE authentication to the router according to the above scenario mode of the set-top box terminal directly connecting to the gateway (optical modem). Since the router is a public third-party network device, it cannot be identified. The OPTION60 information carried in the DISCOVER message initiated by the set-top box terminal. At this time, the router will normally assign an IP address to the current network port. The router will not include the OPTION125 information of the preset fixed string in the feedback OFFER message.
机顶盒终端收到的OFFER消息中没有包含预设固定字符串的OPTION125信息,则认为上联路由器设备不支持IPTV,机顶盒终端启用OTT模式。If the OFFER message received by the set-top box terminal does not contain the OPTION125 information of the preset fixed string, it is considered that the uplink router device does not support IPTV, and the set-top box terminal enables the OTT mode.
本发明提供的互联网电视组网方法,通过在获取地址的IPOE协议交互中引入约定的认证算法,以及约定在协议消息中约定包含特征值的OPTION125消息,机顶盒终端可自动识别上层组网设备不支持IPTV组网,并根据识别结果,自动启用OTT模式。The Internet TV networking method provided by the present invention introduces the agreed authentication algorithm in the IPOE protocol interaction for obtaining the address, and agrees to include the OPTION125 message containing the characteristic value in the protocol message. The set-top box terminal can automatically identify that the upper layer networking equipment does not support IPTV network is established, and the OTT mode is automatically enabled based on the recognition results.
图4是本发明提供的互联网电视组网方法的流程示意图之二,如图4所示,方法包括:Figure 4 is the second schematic flow chart of the Internet TV networking method provided by the present invention. As shown in Figure 4, the method includes:
S4、接收终端发送的IPOE认证请求,并在认证通过后将目标IP地址发送给终端;S4. Receive the IPOE authentication request sent by the terminal, and send the target IP address to the terminal after the authentication is passed;
S5、接收终端发送的DISCOVER消息;S5. Receive the DISCOVER message sent by the terminal;
S6、对IPTV模式专用VLAN端口、DISCOVER消息中携带的用户账号及用户密码进行认证,并根据认证结果将目标OFFER消息发送给终端,以供终端根据目标OFFER消息确定组网模式;S6. Authenticate the IPTV mode dedicated VLAN port and the user account and user password carried in the DISCOVER message, and send the target OFFER message to the terminal based on the authentication result, so that the terminal can determine the networking mode based on the target OFFER message;
其中,目标IP地址是通过向认证授权记账AAA服务器发送IPOE认证请求,并在AAA服务器对IPOE认证请求校验通过后获取的。The target IP address is obtained by sending an IPOE authentication request to the authentication, authorization and accounting AAA server, and after the AAA server passes the verification of the IPOE authentication request.
需要说明的是,上述方法的执行主体可以是计算机设备或网关,其中网关设备可以是光网络终端如光猫,下面以机顶盒终端直连网关场景中网关为光猫执行上述方法为例进行说明。It should be noted that the execution subject of the above method can be a computer device or a gateway, where the gateway device can be an optical network terminal such as an optical modem. The following is an example of the gateway executing the above method for an optical modem in a scenario where a set-top box terminal is directly connected to a gateway.
可选地,光猫接收终端(机顶盒终端)发送IPOE认证请求,并在认证通过后将当前网络端口IP地址法发送给机顶盒终端。Optionally, the optical modem receiving terminal (set-top box terminal) sends an IPOE authentication request, and after passing the authentication, sends the current network port IP address to the set-top box terminal.
光猫一般设置VLAN1接口和VLAN2接口,其中,VLAN1接口用于供手机、掌上计算机等电子设备上网使用,VLAN2接口用于为机顶盒终端提供网络接口,以供互联网电视(如IPTV或OTT)进行上网使用。Optical modems generally have a VLAN1 interface and a VLAN2 interface. The VLAN1 interface is used for electronic devices such as mobile phones and handheld computers to access the Internet. The VLAN2 interface is used to provide a network interface for set-top box terminals for Internet TV (such as IPTV or OTT) to access the Internet. use.
其中,目标IP地址是光猫通过向认证授权记账AAA服务器发送IPOE认证请求,并在AAA服务器对IPOE认证请求校验通过后获取的,具体步骤如下:Among them, the target IP address is obtained by Optical Mode by sending an IPOE authentication request to the authentication, authorization and accounting AAA server, and after the AAA server passes the verification of the IPOE authentication request. The specific steps are as follows:
步骤1:普通上网VLAN1接口获取IP地址;Step 1: Obtain the IP address through the normal Internet access VLAN1 interface;
光猫采取PPPOE认证或IPOE认证方式,在通过用户账号及用户密码认证后,光猫从AAA服务器获取到VLAN1的IP地址。Optical modem adopts PPPOE authentication or IPOE authentication method. After passing the user account and user password authentication, optical modem obtains the IP address of VLAN1 from the AAA server.
步骤2:网关IPTV专用VLAN2接口IP地址获取;Step 2: Obtain the IP address of the gateway IPTV dedicated VLAN2 interface;
光猫采取PPPOE认证或IPOE认证方式,在通过IPTV模式专用VLAN端口(VLAN2端口)、用户账号及用户密码认证后,光猫从AAA服务器获取到目标IP地址。Optical modem adopts PPPOE authentication or IPOE authentication method. After passing the IPTV mode dedicated VLAN port (VLAN2 port), user account and user password authentication, optical modem obtains the target IP address from the AAA server.
光猫接收来自机顶盒终端发送的DISCOVER消息,并对IPTV模式专用VLAN端口、DISCOVER消息中携带的用户账号及用户密码进行认证,根据认证结果将生成目标OFFER消息,并将目标OFFER消息发送给机顶盒终端,以供机顶盒终端根据目标OFFER消息的内容确定组网模式。The optical modem receives the DISCOVER message sent from the set-top box terminal and authenticates the IPTV mode dedicated VLAN port and the user account and user password carried in the DISCOVER message. Based on the authentication result, the target OFFER message will be generated and sent to the set-top box terminal. , for the set-top box terminal to determine the networking mode based on the content of the target OFFER message.
需要说明的是,机顶盒终端发送的DISCOVER消息中携带有OPTION60信息,OPTION60信息中填充用户账号和用户密码。It should be noted that the DISCOVER message sent by the set-top box terminal carries OPTION60 information, and the OPTION60 information is filled with the user account and user password.
本发明提供的互联网电视组网方法,通过向网关发送认证请求获取目标IP地址,实现网关端口的动态复用,并根据对用户身份认证结果实现对互联网电视的自适应组网。The Internet TV networking method provided by the present invention obtains the target IP address by sending an authentication request to the gateway, realizes dynamic multiplexing of gateway ports, and realizes adaptive networking of Internet TV based on the user identity authentication results.
进一步地,在一个实施例中,步骤S6可以具体包括:Further, in one embodiment, step S6 may specifically include:
S61、若确定IPTV模式专用VLAN端口可用、用户账号和用户密码认证通过,则将携带有预设固定字符串的OPTION125信息的目标OFFER消息发送给终端。S61. If it is determined that the dedicated VLAN port in IPTV mode is available and the user account and user password authentication is passed, then send the target OFFER message carrying the OPTION125 information of the preset fixed string to the terminal.
可选地,光猫在确定IPTV模式专用VLAN端口可用(处于空闲状态,且是由合法DHCP分配的IP地址)且对用户账号及用户密码认证通过后,将OPTION125信息封装DHCP OFFER包,生成目标OFFER消息发送给机顶盒终端,其中,目标OFFER消息中所携带的OPTION125信息包括有预设固定字符串,如在OPTION125信息的“Option-data 1”字段中填写固定特征值。Optionally, after the optical modem determines that the dedicated VLAN port in IPTV mode is available (in an idle state and is an IP address assigned by a legal DHCP) and the user account and user password are authenticated, it encapsulates the OPTION125 information in a DHCP OFFER packet and generates the target The OFFER message is sent to the set-top box terminal, in which the OPTION125 information carried in the target OFFER message includes a preset fixed string, such as filling in a fixed feature value in the "Option-data 1" field of the OPTION125 information.
需要说明的是,光猫还可以根据接收到的机顶盒终端发送REQUEST消息携带的OPTION60信息,对当前网络端口IP地址、用户账号及用户密码进行认证,并根据认证结果将ACK消息发送给机顶盒终端,其中,ACK消息中同样携带有预设固定字符串的OPTION125信息。It should be noted that the optical modem can also authenticate the current network port IP address, user account and user password based on the OPTION60 information carried in the REQUEST message sent by the received set-top box terminal, and send an ACK message to the set-top box terminal based on the authentication result. Among them, the ACK message also carries OPTION125 information with a preset fixed string.
本发明提供的互联网电视组网方法,通过在获取地址的IPOE协议交互中引入约定的认证算法,以及约定在协议消息中约定包含特征值的OPTION125消息,机顶盒可自动识别上层组网设备支持IPTV组网,并根据识别结果,自动启用IPTV模式。The Internet TV networking method provided by the present invention introduces the agreed authentication algorithm into the IPOE protocol interaction for obtaining the address, and agrees to include the OPTION125 message containing the characteristic value in the protocol message. The set-top box can automatically identify that the upper layer networking equipment supports the IPTV group. network, and automatically enable IPTV mode based on the recognition results.
进一步地,在一个实施例中,步骤S6还可以具体包括:Further, in one embodiment, step S6 may also specifically include:
S62、若确定IPTV模式专用VLAN端口不可用或用户账号或用户密码认证未通过,则对将未携带有预设固定字符串的OPTION125信息的目标OFFER消息发送给终端;或S62. If it is determined that the dedicated VLAN port in IPTV mode is unavailable or the user account or user password authentication fails, send the target OFFER message that does not carry the OPTION125 information with the preset fixed string to the terminal; or
将未携带OPTION125信息的目标OFFER消息发送给终端。Send the target OFFER message that does not carry OPTION125 information to the terminal.
可选地,光猫在确定当前网络端口IP地址不可用时,或对机顶盒终端发起的用户账号或用户密码认证未通过后,将未携带OPTION125信息的目标OFFFER消息或未携带有预设固定字符串的OPTION125信息的目标OFFER消息发送给机顶盒终端,以使机顶盒终端根据接收到的目标OFFER消息的内容确定光猫不支持IPTV,从而机顶盒终端启用OTT模式。Optionally, when the optical modem determines that the current network port IP address is unavailable, or after the user account or user password authentication initiated by the set-top box terminal fails, the target OFFER message that does not carry the OPTION125 information or does not carry the preset fixed string The target OFFER message of the OPTION125 information is sent to the set-top box terminal, so that the set-top box terminal determines that the optical modem does not support IPTV based on the content of the received target OFFER message, so that the set-top box terminal enables the OTT mode.
需要说明的是,光猫还可以根据接收到的机顶盒终端发送的携带OPTION60信息的REQUEST消息,对当前网络端口IP地址、用户账号或用户密码进行认证,并在认证通过后将未携带OPTION125信息的ACK消息或未携带有预设固定字符串的OPTION125信息的ACK消息发送给机顶盒终端,以使机顶盒终端根据接收到的ACK消息的内容确定光猫不支持IPTV,从而机顶盒终端启用OTT模式。It should be noted that Optical Mode can also authenticate the current network port IP address, user account or user password based on the received REQUEST message carrying OPTION60 information sent by the set-top box terminal, and after passing the authentication, it will authenticate the current network port IP address, user account or user password that does not carry OPTION125 information. The ACK message or the ACK message that does not carry the OPTION125 information with the preset fixed string is sent to the set-top box terminal, so that the set-top box terminal determines that the optical modem does not support IPTV based on the content of the received ACK message, so that the set-top box terminal enables the OTT mode.
本发明提供的互联网电视组网方法还可以适用于机顶盒终端上联路由器,路由器对接网关(光猫)的场景,具体地:The Internet TV networking method provided by the present invention can also be applied to the scenario where the set-top box terminal is connected to the router and the router is connected to the gateway (optical modem). Specifically:
路由器作为网关通过DHCP向光猫申请目标IP地址,机顶盒终端仍按照上述机顶盒终端直连光猫场景模式向路由器发起IPOE认证,由于路由器为公共第三方网络设备,无法识别的机顶盒终端发起的DISCOVER消息中携带的OPTION60信息,此时,路由器会正常分配IP地址,路由器在反馈的OFFER消息中不包含预设固定字符串的OPTION125信息。As a gateway, the router applies for the target IP address from the optical modem through DHCP. The set-top box terminal still initiates IPOE authentication to the router according to the above scene mode of direct connection of the set-top box terminal to the optical modem. Since the router is a public third-party network device, the DISCOVER message initiated by the set-top box terminal cannot be recognized. At this time, the router will allocate the IP address normally, and the router does not include the OPTION125 information of the preset fixed string in the feedback OFFER message.
机顶盒终端收到的OFFER消息中没有包含预设固定字符串的OPTION125信息,则认为上联路由器设备不支持IPTV,机顶盒终端启用OTT模式。If the OFFER message received by the set-top box terminal does not contain the OPTION125 information of the preset fixed string, it is considered that the uplink router device does not support IPTV, and the set-top box terminal enables the OTT mode.
本发明提供的互联网电视组网方法,通过在获取地址的IPOE协议交互中引入约定的认证算法,以及约定在协议消息中约定包含特征值的OPTION125消息,机顶盒可自动识别上层组网设备不支持IPTV组网,并根据识别结果,自动启用OTT模式。The Internet TV networking method provided by the present invention introduces the agreed authentication algorithm into the IPOE protocol interaction for obtaining the address, and agrees to include the OPTION125 message containing the characteristic value in the protocol message. The set-top box can automatically identify that the upper layer networking equipment does not support IPTV. Establish a network and automatically enable OTT mode based on the recognition results.
下面对本发明提供的互联网电视组网系统进行描述,下文描述的互联网电视组网系统与上文描述的互联网电视组网方法可相互对应参照。The Internet TV networking system provided by the present invention is described below. The Internet TV networking system described below and the Internet TV networking method described above can be mutually referenced.
图5是本发明提供的互联网电视组网系统的结构示意图之一,如图5所示,地址获取模块510、消息发送模块511以及组网确定模块512;Figure 5 is one of the structural schematic diagrams of the Internet TV networking system provided by the present invention. As shown in Figure 5, the address acquisition module 510, the message sending module 511 and the networking determination module 512;
地址获取模块510,用于向网关发送IPOE认证请求,以获取目标IP地址;The address acquisition module 510 is used to send an IPOE authentication request to the gateway to obtain the target IP address;
消息发送模块511,用于将DISCOVER消息发送给网关;The message sending module 511 is used to send the DISCOVER message to the gateway;
组网确定模块512,用于接收网关反馈的目标OFFER消息,并根据目标OFFER消息确定组网模式;The networking determination module 512 is used to receive the target OFFER message fed back by the gateway, and determine the networking mode according to the target OFFER message;
其中,DISCOVER消息中携带有用户账号及用户密码;Among them, the DISCOVER message carries the user account and user password;
目标OFFER消息是由网关对IPTV模式专用VLAN端口、用户账号及用户密码进行认证后确定的。The target OFFER message is determined by the gateway after authenticating the IPTV mode dedicated VLAN port, user account and user password.
本发明提供的互联网电视组网系统,通过向网关发送认证请求获取目标IP地址,实现网关端口的动态复用,并根据对用户身份认证结果实现对互联网电视的自适应组网。The Internet TV networking system provided by the present invention obtains the target IP address by sending an authentication request to the gateway, realizes dynamic multiplexing of gateway ports, and realizes adaptive networking of Internet TV based on the user identity authentication results.
图6是本发明提供的互联网电视组网系统的结构示意图之二,如图6所示,包括:地址发送模块610、消息接收模块611以及组网确定模块612;Figure 6 is the second structural schematic diagram of the Internet TV networking system provided by the present invention. As shown in Figure 6, it includes: an address sending module 610, a message receiving module 611 and a networking determination module 612;
地址发送模块610,用于接收终端发送的IPOE认证请求,并在认证通过后将目标IP地址发送给终端;The address sending module 610 is used to receive the IPOE authentication request sent by the terminal, and send the target IP address to the terminal after the authentication is passed;
消息接收模块611,用于接收终端发送的DISCOVER消息;The message receiving module 611 is used to receive the DISCOVER message sent by the terminal;
组网确定模块612,用于对IPTV模式专用VLAN端口、DISCOVER消息中携带的用户账号及用户密码进行认证,并根据认证结果将目标OFFER消息发送给终端,以供终端根据目标OFFER消息确定组网模式;The networking determination module 612 is used to authenticate the IPTV mode dedicated VLAN port, the user account and user password carried in the DISCOVER message, and send the target OFFER message to the terminal according to the authentication result, so that the terminal can determine the networking based on the target OFFER message. model;
其中,目标IP地址是通过向AAA服务器发送IPOE认证请求,并在AAA服务器对所述IPOE认证请求校验通过后获取的。The target IP address is obtained by sending an IPOE authentication request to the AAA server and after the AAA server passes the verification of the IPOE authentication request.
本发明提供的互联网电视组网系统,通过向网关发送认证请求获取目标IP地址,实现网关端口的动态复用,并根据对用户身份认证结果实现对互联网电视的自适应组网。The Internet TV networking system provided by the present invention obtains the target IP address by sending an authentication request to the gateway, realizes dynamic multiplexing of gateway ports, and realizes adaptive networking of Internet TV based on the user identity authentication results.
图7是本发明提供的一种电子设备的实体结构示意图之一,如图7所示,该电子设备可以包括:处理器(processor)710、通信接口(communication interface)711、存储器(memory)712和总线(bus)713,其中,处理器710,通信接口711,存储器712通过总线713完成相互间的通信。处理器710可以调用存储器712中的逻辑指令,以执行如下方法:Figure 7 is one of the physical structural schematic diagrams of an electronic device provided by the present invention. As shown in Figure 7, the electronic device may include: a processor (processor) 710, a communication interface (communication interface) 711, and a memory (memory) 712 and bus 713, wherein the processor 710, the communication interface 711, and the memory 712 complete communication with each other through the bus 713. Processor 710 can call logical instructions in memory 712 to perform the following methods:
向网关发送基于以太网的IP通讯协议IPOE认证请求,以获取目标IP地址;Send an Ethernet-based IP communication protocol IPOE authentication request to the gateway to obtain the target IP address;
将DISCOVER消息发送给网关;Send the DISCOVER message to the gateway;
接收网关反馈的目标OFFER消息,并根据目标OFFER消息确定组网模式;Receive the target OFFER message fed back by the gateway, and determine the networking mode based on the target OFFER message;
其中,DISCOVER消息中携带有用户账号及用户密码;Among them, the DISCOVER message carries the user account and user password;
目标OFFER消息是由网关对IPTV模式专用VLAN端口、用户账号及用户密码进行认证后确定的。The target OFFER message is determined by the gateway after authenticating the IPTV mode dedicated VLAN port, user account and user password.
此外,上述的存储器中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机电源屏(可以是个人计算机,服务器,或者网络电源屏等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logical instructions in the memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer power panel (which can be a personal computer, a server, or a network power panel, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
图8是本发明提供的一种电子设备的实体结构示意图之二,如图8所示,该电子设备可以包括:处理器(processor)810、通信接口(communication interface)811、存储器(memory)812和总线(bus)813,其中,处理器810,通信接口811,存储器812通过总线813完成相互间的通信。处理器810可以调用存储器812中的逻辑指令,以执行如下方法:Figure 8 is a second schematic diagram of the physical structure of an electronic device provided by the present invention. As shown in Figure 8, the electronic device may include: a processor (processor) 810, a communication interface (communication interface) 811, and a memory (memory) 812 and bus 813, wherein the processor 810, the communication interface 811, and the memory 812 complete communication with each other through the bus 813. Processor 810 can call logical instructions in memory 812 to perform the following methods:
接收终端发送的IPOE认证请求,并在认证通过后将目标IP地址发送给终端;Receive the IPOE authentication request sent by the terminal, and send the target IP address to the terminal after the authentication is passed;
接收终端发送的DISCOVER消息;Receive the DISCOVER message sent by the terminal;
对IPTV模式专用VLAN端口、DISCOVER消息中携带的用户账号及用户密码进行认证,并根据认证结果将目标OFFER消息发送给终端,以供终端根据目标OFFER消息确定组网模式;Authenticate the IPTV mode dedicated VLAN port and the user account and user password carried in the DISCOVER message, and send the target OFFER message to the terminal based on the authentication result, so that the terminal can determine the networking mode based on the target OFFER message;
其中,目标IP地址是通过向认证授权记账AAA服务器发送IPOE认证请求,并在AAA服务器对IPOE认证请求校验通过后获取的。The target IP address is obtained by sending an IPOE authentication request to the authentication, authorization and accounting AAA server, and after the AAA server passes the verification of the IPOE authentication request.
此外,上述的存储器中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机电源屏(可以是个人计算机,服务器,或者网络电源屏等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logical instructions in the memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer power panel (which can be a personal computer, a server, or a network power panel, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
进一步地,本发明公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的互联网电视组网方法,例如包括:Further, the present invention discloses a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer , the computer can execute the Internet TV networking method provided by each of the above method embodiments, including, for example:
向网关发送基于以太网的IP通讯协议IPOE认证请求,以获取目标IP地址;Send an Ethernet-based IP communication protocol IPOE authentication request to the gateway to obtain the target IP address;
将DISCOVER消息发送给网关;Send the DISCOVER message to the gateway;
接收网关反馈的目标OFFER消息,并根据目标OFFER消息确定组网模式;Receive the target OFFER message fed back by the gateway, and determine the networking mode based on the target OFFER message;
其中,DISCOVER消息中携带有用户账号及用户密码;Among them, the DISCOVER message carries the user account and user password;
目标OFFER消息是由网关对IPTV模式专用VLAN端口、用户账号及用户密码进行认证后确定的。The target OFFER message is determined by the gateway after authenticating the IPTV mode dedicated VLAN port, user account and user password.
进一步地,本发明公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的互联网电视组网方法,例如包括:Further, the present invention discloses a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer , the computer can execute the Internet TV networking method provided by each of the above method embodiments, including, for example:
接收终端发送的IPOE认证请求,并在认证通过后将目标IP地址发送给终端;Receive the IPOE authentication request sent by the terminal, and send the target IP address to the terminal after the authentication is passed;
接收终端发送的DISCOVER消息;Receive the DISCOVER message sent by the terminal;
对IPTV模式专用VLAN端口、DISCOVER消息中携带的用户账号及用户密码进行认证,并根据认证结果将目标OFFER消息发送给终端,以供终端根据目标OFFER消息确定组网模式;Authenticate the IPTV mode dedicated VLAN port and the user account and user password carried in the DISCOVER message, and send the target OFFER message to the terminal based on the authentication result, so that the terminal can determine the networking mode based on the target OFFER message;
其中,目标IP地址是通过向认证授权记账AAA服务器发送IPOE认证请求,并在AAA服务器对IPOE认证请求校验通过后获取的。The target IP address is obtained by sending an IPOE authentication request to the authentication, authorization and accounting AAA server, and after the AAA server passes the verification of the IPOE authentication request.
另一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的互联网电视组网方法,例如包括:On the other hand, the present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. The computer program is implemented when executed by a processor to execute the Internet TV networking method provided by the above embodiments, for example include:
向网关发送基于以太网的IP通讯协议IPOE认证请求,以获取目标IP地址;Send an Ethernet-based IP communication protocol IPOE authentication request to the gateway to obtain the target IP address;
将DISCOVER消息发送给网关;Send the DISCOVER message to the gateway;
接收网关反馈的目标OFFER消息,并根据目标OFFER消息确定组网模式;Receive the target OFFER message fed back by the gateway, and determine the networking mode based on the target OFFER message;
其中,DISCOVER消息中携带有用户账号及用户密码;Among them, the DISCOVER message carries the user account and user password;
目标OFFER消息是由网关对IPTV模式专用VLAN端口、用户账号及用户密码进行认证后确定的。The target OFFER message is determined by the gateway after authenticating the IPTV mode dedicated VLAN port, user account and user password.
另一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的互联网电视组网方法,例如包括:On the other hand, the present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. The computer program is implemented when executed by a processor to execute the Internet TV networking method provided by the above embodiments, for example include:
接收终端发送的IPOE认证请求,并在认证通过后将目标IP地址发送给终端;Receive the IPOE authentication request sent by the terminal, and send the target IP address to the terminal after the authentication is passed;
接收终端发送的DISCOVER消息;Receive the DISCOVER message sent by the terminal;
对IPTV模式专用VLAN端口、DISCOVER消息中携带的用户账号及用户密码进行认证,并根据认证结果将目标OFFER消息发送给终端,以供终端根据目标OFFER消息确定组网模式;Authenticate the IPTV mode dedicated VLAN port and the user account and user password carried in the DISCOVER message, and send the target OFFER message to the terminal based on the authentication result, so that the terminal can determine the networking mode based on the target OFFER message;
其中,目标IP地址是通过向认证授权记账AAA服务器发送IPOE认证请求,并在AAA服务器对IPOE认证请求校验通过后获取的。The target IP address is obtained by sending an IPOE authentication request to the authentication, authorization and accounting AAA server, and after the AAA server passes the verification of the IPOE authentication request.
以上所描述的系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The system embodiments described above are only illustrative. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in One location, or it can be distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Persons of ordinary skill in the art can understand and implement the method without any creative effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机电源屏(可以是个人计算机,服务器,或者网络电源屏等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the part of the above technical solution that essentially contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., including a number of instructions to cause a computer power panel (which can be a personal computer, a server, or a network power panel, etc.) to execute the methods described in various embodiments or certain parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be used Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent substitutions are made to some of the technical features; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110475006.4ACN115278373B (en) | 2021-04-29 | 2021-04-29 | Internet television networking method and system |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110475006.4ACN115278373B (en) | 2021-04-29 | 2021-04-29 | Internet television networking method and system |
| Publication Number | Publication Date |
|---|---|
| CN115278373A CN115278373A (en) | 2022-11-01 |
| CN115278373Btrue CN115278373B (en) | 2023-10-27 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110475006.4AActiveCN115278373B (en) | 2021-04-29 | 2021-04-29 | Internet television networking method and system |
| Country | Link |
|---|---|
| CN (1) | CN115278373B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117319353B (en)* | 2023-11-29 | 2024-03-08 | 西安优光谱信息科技有限公司 | Address allocation method and system for down-hanging terminal in FTTR sub-optical cat bridge mode |
| CN118102035B (en)* | 2024-04-23 | 2024-07-16 | 四川天邑康和通信股份有限公司 | Set top box network connection method and system based on detection network environment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102480399A (en)* | 2010-11-30 | 2012-05-30 | 中国电信股份有限公司 | Multi-service authentication method and system based on IPoE |
| CN105871792A (en)* | 2015-01-23 | 2016-08-17 | 中兴通讯股份有限公司 | Multimedia content sending and receiving method and device, and home gateway |
| WO2018214154A1 (en)* | 2017-05-26 | 2018-11-29 | Thomson Licensing | Data forwarding method to support media access control over the top gateway |
| CN110830333A (en)* | 2018-08-09 | 2020-02-21 | 中兴通讯股份有限公司 | Intelligent household equipment access authentication method, device, gateway and storage medium |
| CN112437355A (en)* | 2020-11-23 | 2021-03-02 | 深圳市友华软件科技有限公司 | Method and system for realizing three-layer multicast |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102480399A (en)* | 2010-11-30 | 2012-05-30 | 中国电信股份有限公司 | Multi-service authentication method and system based on IPoE |
| CN105871792A (en)* | 2015-01-23 | 2016-08-17 | 中兴通讯股份有限公司 | Multimedia content sending and receiving method and device, and home gateway |
| WO2018214154A1 (en)* | 2017-05-26 | 2018-11-29 | Thomson Licensing | Data forwarding method to support media access control over the top gateway |
| CN110830333A (en)* | 2018-08-09 | 2020-02-21 | 中兴通讯股份有限公司 | Intelligent household equipment access authentication method, device, gateway and storage medium |
| CN112437355A (en)* | 2020-11-23 | 2021-03-02 | 深圳市友华软件科技有限公司 | Method and system for realizing three-layer multicast |
| Title |
|---|
| 一种多业务融合终端的设计方案;李明春, 李长春;光通信研究;2017年(第04期);全文* |
| 基于DHCP技术的广电网多业务接入认证应用;潘洪涛, 董立彪;广播电视信息;2013年(第05期);全文* |
| 移动互联网时代运营商OTT业务网络承载方案浅论;李昀, 储轶钢;中国新通信;第16卷(第21期);全文* |
| Publication number | Publication date |
|---|---|
| CN115278373A (en) | 2022-11-01 |
| Publication | Publication Date | Title |
|---|---|---|
| CN100388739C (en) | Method and system for realizing DHCP address safety distribution | |
| US8125980B2 (en) | User terminal connection control method and apparatus | |
| CN102726069B (en) | The dynamic Service group of dialogue-based attribute | |
| CN101110847B (en) | Method, device and system for obtaining medium access control address | |
| US20060274766A1 (en) | Smart intermediate authentication management (SIAM) system and method for multiple permanent virtual circuit (PVC) access environment | |
| CN108738013A (en) | Network access method, device and network equipment | |
| US11265244B2 (en) | Data transmission method, PNF SDN controller, VNF SDN controller, and data transmission system | |
| WO2016192608A2 (en) | Authentication method, authentication system and associated device | |
| CN101478576A (en) | Method, apparatus and system for selecting service network | |
| US20070195804A1 (en) | Ppp gateway apparatus for connecting ppp clients to l2sw | |
| CN101043331A (en) | System and method for distributing address for network equipment | |
| US20140161121A1 (en) | Method, System and Device for Authenticating IP Phone and Negotiating Voice Domain | |
| CN106487788A (en) | A kind of user access method, SDN controller, forwarding unit and subscriber access system | |
| CN115278373B (en) | Internet television networking method and system | |
| EP2615788A1 (en) | Method for dual stack user management and broadband access server | |
| CN108206772A (en) | A kind of dispatching method, system and controller | |
| WO2014110984A1 (en) | Authentication method and apparatus for accessing network by user terminal | |
| CN101141492B (en) | Method and system for implementing DHCP address safety allocation | |
| US8769623B2 (en) | Grouping multiple network addresses of a subscriber into a single communication session | |
| CN108307694A (en) | A kind of network connection information acquisition methods and router | |
| WO2024000975A1 (en) | Session establishment system and method, electronic device, and storage medium | |
| CN106131177B (en) | Message processing method and device | |
| CN107046568B (en) | Authentication method and device | |
| CN103684968A (en) | Access network deployment method, terminal equipment, network core equipment and system | |
| WO2013107055A1 (en) | Method and apparatus for acquiring user information |
| 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |