[go: up one dir, main page]

CN103220276B - A kind of method of network insertion, gateway and system - Google Patents

A kind of method of network insertion, gateway and system Download PDF

Info

Publication number
CN103220276B
CN103220276B CN201310110069.5A CN201310110069A CN103220276B CN 103220276 B CN103220276 B CN 103220276B CN 201310110069 A CN201310110069 A CN 201310110069A CN 103220276 B CN103220276 B CN 103220276B
Authority
CN
China
Prior art keywords
message
access
pppoed
network
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310110069.5A
Other languages
Chinese (zh)
Other versions
CN103220276A (en
Inventor
景麟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Digital Technology Co Ltd, Shenzhen Skyworth Software Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201310110069.5A priority Critical patent/CN103220276B/en
Priority to PCT/CN2013/077488 priority patent/WO2014153860A1/en
Publication of CN103220276A publication Critical patent/CN103220276A/en
Application granted granted Critical
Publication of CN103220276B publication Critical patent/CN103220276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • H04L12/287Remote access server, e.g. BRAS
    • H04L12/2872Termination of subscriber connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2858Access network architectures
    • H04L12/2859Point-to-point connection between the data network and the subscribers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开了一种网络接入的方法,包括:接收到终端发送的PPPoE报文时,检测所述PPPoE报文的报文类型,所述报文类型包括发送阶段报文PPPoED或会话阶段报文PPP,所述PPPoED携带接入标识数据;若所述PPPoE报文的报文类型为PPPoED,则根据所述PPPoED携带的接入标识数据获得与所述PPPoE报文相匹配的出口网络通道;通过所述出口网络通道,将所述终端接入网络。本发明实施例还公开了一种网关及系统。采用本发明,可实现单端口接入多种网络的功能,节省了硬件成本、网络维护成本。

The embodiment of the present invention discloses a method for network access, including: when receiving a PPPoE message sent by a terminal, detecting the message type of the PPPoE message, and the message type includes a sending stage message PPPoED or session Phase message PPP, the PPPoED carries access identification data; if the message type of the PPPoE message is PPPoED, then obtain the egress network matching the PPPoE message according to the access identification data carried by the PPPoED A channel: connect the terminal to the network through the egress network channel. The embodiment of the invention also discloses a gateway and a system. By adopting the present invention, the function of single-port access to various networks can be realized, and the cost of hardware and network maintenance can be saved.

Description

一种网络接入的方法、网关及系统Method, gateway and system for network access

技术领域technical field

本发明涉及一种通信技术,尤其涉及一种网络接入的方法、网关及系统。The invention relates to a communication technology, in particular to a network access method, gateway and system.

背景技术Background technique

随着宽带技术的发展,以及互联网电视业务的蓬勃发展,原有单纯IPTV(Internet Protocol TV,交互式网络电视)终端产品不能满足宽带运营商的业务发展需求,运营商迫切需要在IPTV技术架构下引入互联网电视业务。目前中国主流宽带运营商(中国电信、中国联通)开展IPTV业务的时候,为了保证服务质量,组建了IPTV业务专用网络,机顶盒通过PPPoE等方式接入到IPTV业务专用网络。而互联网电视业务,需要通过传统的公众互联网才能访问的到。因此,为了在终端上兼容这两种业务,机顶盒需要具备以下网络接入及服务能力:能够接入公众互联网和能够接入IPTV业务专用业务网络。With the development of broadband technology and the vigorous development of Internet TV services, the original pure IPTV (Internet Protocol TV, Interactive Network TV) terminal products cannot meet the business development needs of broadband operators, and operators urgently need Introduced Internet TV business. At present, when China's mainstream broadband operators (China Telecom and China Unicom) develop IPTV services, in order to ensure service quality, they have established a dedicated network for IPTV services, and set-top boxes are connected to the dedicated network for IPTV services through PPPoE and other methods. The Internet TV business needs to be accessed through the traditional public Internet. Therefore, in order to be compatible with these two services on the terminal, the set-top box needs to have the following network access and service capabilities: be able to access the public Internet and be able to access the dedicated service network for IPTV services.

但目前市面上销售的IPTV机顶盒通常只有一个端口固定接入IPTV业务专用业务网络,没有同时兼容IPTV业务和互联网业务,用户无法通过机顶盒连接其他的网络类型,例如:通过机顶盒访问公众互联网。这给宽带运营商的业务发展带来了瓶颈,也无法提供更多的网络供用户使用。但若运营商为解决所述问题而在机顶盒上安装多个端口以使机顶盒能接入多种网络,这却增加了硬件成本,并且需要连接两个物理网线,既不美观,也增加了网络的维护成本。However, the IPTV set-top boxes currently on the market usually have only one port fixedly connected to the IPTV service dedicated service network, and are not compatible with both IPTV services and Internet services. Users cannot connect to other network types through the set-top box, for example: access the public Internet through the set-top box. This has brought bottlenecks to the business development of broadband operators, and cannot provide more networks for users to use. However, if the operator installs multiple ports on the set-top box so that the set-top box can access multiple networks in order to solve the above problems, this increases the hardware cost and requires two physical network cables to be connected, which is not beautiful and increases the network cost. maintenance costs.

发明内容Contents of the invention

本发明实施例所要解决的技术问题在于,提供一种网络接入的方法及网关。可实现单端口接入多种网络的功能,节省了硬件成本、网络维护成本。The technical problem to be solved by the embodiments of the present invention is to provide a network access method and a gateway. It can realize the function of connecting multiple networks with a single port, saving hardware costs and network maintenance costs.

为了解决上述技术问题,本发明实施例提供了一种网络接入的方法,包括:接收到终端发送的PPPoE报文时,检测所述PPPoE报文的报文类型,所述报文类型包括发送阶段报文PPPoED或会话阶段报文PPP,所述PPPoED携带接入标识数据;In order to solve the above technical problems, an embodiment of the present invention provides a network access method, including: when receiving a PPPoE message sent by a terminal, detecting the message type of the PPPoE message, the message type includes sending Phase message PPPoED or session phase message PPP, where the PPPoED carries access identification data;

若所述PPPoE报文的报文类型为PPPoED,则根据所述PPPoED携带的接入标识数据获得与所述PPPoE报文相匹配的出口网络通道;If the message type of the PPPoE message is PPPoED, then obtain an egress network channel matching the PPPoE message according to the access identification data carried by the PPPoED;

通过所述出口网络通道,将所述终端接入网络。Connect the terminal to the network through the egress network channel.

其中,所述根据所述PPPoED携带的接入标识数据获得与所述PPPoE报文相匹配的出口网络通道包括:Wherein, the obtaining the egress network channel matching the PPPoE message according to the access identification data carried by the PPPoED includes:

解析所述PPPoED,获得所述PPPoED携带的接入标识数据,所述接入标识数据包括:PPPoED中的主机标示host-Uniq数据;Parsing the PPPoED to obtain the access identification data carried by the PPPoED, the access identification data includes: host-Uniq data marked by the host in the PPPoED;

根据所述接入标识数据,确定所述终端的拨号账号类型,所述拨号账号类型包括:因特网Internet拨号账号类型或交互式网络电视IPTV拨号账号类型;According to the access identification data, determine the dial-up account type of the terminal, the dial-up account type includes: Internet Internet dial-up account type or interactive network TV IPTV dial-up account type;

根据所述拨号账号类型,选择与所述拨号账号类型相匹配的出口网络通道。According to the type of the dial-up account, an egress network channel matching the type of the dial-up account is selected.

其中,所述通过所述出口网络通道,将所述终端接入网络,包括:Wherein, the accessing the terminal to the network through the egress network channel includes:

通过所述出口网络通道,向网络广播所述PPPoED;Broadcasting the PPPoED to the network through the egress network channel;

接收所述网络中的至少一个服务器返回的响应消息;receiving a response message returned by at least one server in the network;

根据所述响应消息,从所述至少一个服务器中选择一个服务器作为接入服务器;selecting a server from the at least one server as an access server according to the response message;

通过选择的所述接入服务器,将所述终端接入所述网络。The terminal is connected to the network through the selected access server.

其中,其特征在于,所述通过选择的所述接入服务器,将所述终端接入所述网络之后,还包括:Wherein, it is characterized in that, after the terminal is connected to the network through the selected access server, it further includes:

根据所述接入服务器分配的会话标识符,记录所述会话标识符与所述出口网络通道的映射关系;Recording the mapping relationship between the session identifier and the egress network channel according to the session identifier assigned by the access server;

所述会话标识符包括:所述接入服务器的MAC地址;或者,所述接入服务器生成的唯一标识码。The session identifier includes: the MAC address of the access server; or, a unique identification code generated by the access server.

其中,还包括:Among them, also include:

若所述PPPoE报文的报文类型为PPP,则根据PPP携带的会话标识符确定接入服务器,以及确定与所述会话标识符相映射的出口网络通道;If the message type of the PPPoE message is PPP, then determine the access server according to the session identifier carried by the PPP, and determine the egress network channel mapped with the session identifier;

通过所述出口网络通道,将所述PPPoE报文发送至所述接入服务器,使所述终端与所述接入服务器进行会话;sending the PPPoE message to the access server through the egress network channel, so that the terminal has a session with the access server;

其中,所述接收到终端发送的PPPoE报文时,检测所述PPPoE报文的报文类型之前,还包括:Wherein, when the PPPoE message sent by the terminal is received, before detecting the message type of the PPPoE message, it also includes:

创建至少一条用于将终端接入网络的出口网络通道。Create at least one egress network channel for connecting endpoints to the network.

相应地,本发明实施例还提供了一种网关,包括:Correspondingly, the embodiment of the present invention also provides a gateway, including:

检测单元,用于当接收到终端发送的PPPoE报文时,检测所述PPPoE报文的报文类型,所述报文类型包括发送阶段报文PPPoED或会话阶段报文PPP,所述PPPoED携带接入标识数据;The detection unit is configured to detect the message type of the PPPoE message when receiving the PPPoE message sent by the terminal, the message type includes a sending phase message PPPoED or a session phase message PPP, and the PPPoED carries a receiving enter the identification data;

匹配单元,用于若所述PPPoE报文的报文类型为PPPoED,则根据所述PPPoED携带的接入标识数据获得与所述PPPoE报文相匹配的出口网络通道;A matching unit, configured to obtain an egress network channel matching the PPPoE message according to the access identification data carried by the PPPoED if the message type of the PPPoE message is PPPoED;

接入单元,用于通过所述出口网络通道,将所述终端接入网络。The access unit is configured to connect the terminal to the network through the egress network channel.

其中,所述匹配单元包括:Wherein, the matching unit includes:

解析单元,用于解析所述PPPoED,获得所述PPPoED携带的接入标识数据,所述接入标识数据包括:PPPoED中的主机标示host-Uniq数据;The parsing unit is configured to parse the PPPoED and obtain the access identification data carried by the PPPoED, the access identification data including: host-Uniq data marked by the host in PPPoED;

第一确定单元,用于根据所述接入标识数据,确定所述终端的拨号账号类型,所述拨号账号类型包括:因特网Internet拨号账号类型或交互式网络电视IPTV拨号账号类型;The first determination unit is configured to determine the dial-up account type of the terminal according to the access identification data, and the dial-up account type includes: an Internet dial-up account type or an interactive network TV IPTV dial-up account type;

选择单元,用于根据所述拨号账号类型,选择与所述拨号账号类型相匹配的出口网络通道。The selection unit is configured to select an egress network channel matching the type of the dial-up account according to the type of the dial-up account.

其中,所述接入单元包括:Wherein, the access unit includes:

广播子单元,用于通过所述出口网络通道,向网络广播所述PPPoED;a broadcast subunit, configured to broadcast the PPPoED to the network through the egress network channel;

接收子单元,用于接收所述网络中的至少一个服务器返回的响应消息;a receiving subunit, configured to receive a response message returned by at least one server in the network;

选择子单元,用于根据所述响应消息,从所述至少一个服务器中选择一个服务器作为接入服务器;a selection subunit, configured to select one server from the at least one server as an access server according to the response message;

接入子单元,用于通过选择的所述接入服务器,将所述终端接入所述网络。The access subunit is configured to connect the terminal to the network through the selected access server.

其中,所述接入单元还包括:Wherein, the access unit also includes:

记录子单元,用于根据所述接入服务器分配的会话标识符,记录所述会话标识符与所述出口网络通道的映射关系;A recording subunit, configured to record the mapping relationship between the session identifier and the egress network channel according to the session identifier assigned by the access server;

所述会话标识符包括:所述接入服务器的MAC地址;或者,所述接入服务器生成的唯一标识码。The session identifier includes: the MAC address of the access server; or, a unique identification code generated by the access server.

其中,其特征在于,所述网关还包括:Wherein, it is characterized in that the gateway also includes:

第二确定单元,用于当所述PPPoE报文的报文类型为PPP时,则根据PPP携带的会话标识符确定接入服务器,以及确定与所述会话标识符相映射的出口网络通道;The second determination unit is used to determine the access server according to the session identifier carried by PPP when the message type of the PPPoE message is PPP, and determine the egress network channel mapped to the session identifier;

发送单元,用于通过所述出口网络通道,将所述PPPoE报文发送至所述接入服务器,使所述终端与所述接入服务器进行会话;a sending unit, configured to send the PPPoE message to the access server through the egress network channel, so that the terminal can have a session with the access server;

其中,所述接网关还包括:Wherein, the gateway connection also includes:

创建单元,用于创建至少一条用于将终端接入网络的出口网络通道。The creating unit is configured to create at least one egress network channel for connecting the terminal to the network.

本发明还提供一种网络接入的系统,包括:终端和服务器以及如上发明内容所述的网关。The present invention also provides a network access system, including: a terminal, a server, and the gateway as described above in the summary of the invention.

实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:

本发明实施例是在现有的数字电视终端和家庭媒体网关硬件架构下,通过对PPPoE报文中的发送阶段报文PPPoED的扩展,使发送阶段报文PPPoED携带有能够辨别网络类型的接入标识数据,并通过解析所述接入标识数据使数字电视终端能够接入对应的出口网络通道。这使数字电视终端能够支持多种网络的接入,使得现存的数字电视终端仅通过数字电视终端和网关的软件升级即可接入多种网络类型,使得用户不需通过更换单端口数字电视终端即可实现接入多种网络类型的功能,这不仅节省了硬件成本、用户的使用成本,也节约了网络维护成本。In the embodiment of the present invention, under the existing hardware architecture of digital TV terminals and home media gateways, by extending the sending phase message PPPoED in the PPPoE message, the sending phase message PPPoED carries the access network type that can distinguish the network type. identification data, and enable the digital TV terminal to access the corresponding egress network channel by parsing the access identification data. This enables digital TV terminals to support the access of multiple networks, so that existing digital TV terminals can access multiple network types only through software upgrades of digital TV terminals and gateways, so that users do not need to replace single-port digital TV terminals The function of accessing multiple network types can be realized, which not only saves hardware costs, user usage costs, but also saves network maintenance costs.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明现有的ADSL系统组网结构示意图;Fig. 1 is a schematic diagram of the present invention's existing ADSL system networking structure;

图2是本发明一种网络接入的方法的第一实施例流程示意图;FIG. 2 is a schematic flowchart of a first embodiment of a network access method according to the present invention;

图3是本发明一种网络接入的方法的第二实施例流程示意图;FIG. 3 is a schematic flowchart of a second embodiment of a method for network access according to the present invention;

图4是本发明一种网络接入的方法的第三实施例流程示意图;FIG. 4 is a schematic flowchart of a third embodiment of a method for network access according to the present invention;

图5是本发明一种网络接入的方法的第四实施例流程示意图;FIG. 5 is a schematic flowchart of a fourth embodiment of a network access method according to the present invention;

图6是本发明一种网络接入的方法的第五实施例流程示意图;FIG. 6 is a schematic flowchart of a fifth embodiment of a method for network access according to the present invention;

图7是本发明一种网关的第一实施例结构示意图;FIG. 7 is a schematic structural diagram of a first embodiment of a gateway of the present invention;

图8是本发明一种网关的第二实施例结构示意图;Fig. 8 is a schematic structural diagram of a second embodiment of a gateway of the present invention;

图9是本发明一种网关的第三实施例结构示意图;FIG. 9 is a schematic structural diagram of a third embodiment of a gateway according to the present invention;

图10是本发明一种网关的第四实施例结构示意图;FIG. 10 is a schematic structural diagram of a fourth embodiment of a gateway of the present invention;

图11是本发明一种网关的第五实施例结构示意图;Fig. 11 is a schematic structural diagram of a fifth embodiment of a gateway of the present invention;

图12是本发明一种网络接入的系统的第一实施例结构示意图。Fig. 12 is a schematic structural diagram of a first embodiment of a network access system according to the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明实施例中,终端可以是数字电视机顶盒,数字电视一体机等具备单向或双向数字电视功能的数字电视终端。In the embodiment of the present invention, the terminal may be a digital TV terminal with a one-way or two-way digital TV function, such as a digital TV set-top box and a digital TV all-in-one machine.

请参照图1,为本发明现有的ADSL(Asymmetric Digital Subscriber Line,非对称数字用户环路)系统组网结构第一实施例流程图。下面结合图1对现有ADSL系统组网结构进行详细的介绍,并对PPPoE(Point to Point Protocol overEtherne,基于以太网的点对点协议)协议进行详细介绍。Please refer to FIG. 1 , which is a flow chart of the first embodiment of the existing ADSL (Asymmetric Digital Subscriber Line, Asymmetric Digital Subscriber Line) system networking structure of the present invention. The following is a detailed introduction to the existing ADSL system network structure in conjunction with Figure 1, and a detailed introduction to the PPPoE (Point to Point Protocol over Ethernet, point-to-point protocol based on Ethernet) protocol.

具体实施例中,目前,家庭用户通常采用ADSL方式接入到运营商的网络。现有的ADSL系统组网结构一般可以分为ADSL传送系统001、ATM(Asynchronous Transfer Mode,异步传输模式)网002和接入服务器003三部分,其中,ADSL传送系统001包括终端10、解调器11和局端设备12,ADSL传送系统001负责电话线段的ADSL线路编解码和传送。ATM网002负责将来自局端设备12的用户数据以ATM PVC方式汇集到接入服务器003。接入服务器003是局端实现PPPoE功能的接入服务器,它终结由用户侧发起的PPPoE进程。例如:下行的以太帧从IP城域网经路由器送到接入服务器003,被加上PPPoE的头后送到局端设备003封装成AAL5帧,经过交叉模块发送到解调器11,由解调器11完成AAL5(ATM Adaptation Layer5,ATM适配层5)帧重组并解出以太帧发送到终端10,终端10从PPPoE包中取出IP数据包;上行的PPPoE包起源于终端10,在解调器11中封装成AAL5帧,由ATM信元传输到局端设备12,并通过设好的PVC(Permanent Virtual Circuit,永久虚电路)传送到接入服务器003中处理。局端设备12下行与解调器11之间为ATM,局端设备12上行与接入服务器003之间也是ATM,ATM PVC起止于解调器11和接入服务器003之间。局部设备内核采用ATM信元复用,结构单一,不需协议转换。由于局部设备基于ATM的完善技术设计,可支持多种业务,对这些业务提供不同的处理措施和不同的缓存空间,对不同的业务类型提供不同级别的优先级和流控,使得不同的ATM业务类型在整个业务传输线路中得到与该业务相适应的带宽,从而保证了从解调器11到接入服务器003之间高性能质量支持。In a specific embodiment, at present, home users usually use ADSL to access the operator's network. The existing ADSL system network structure can generally be divided into three parts: ADSL transmission system 001, ATM (Asynchronous Transfer Mode, asynchronous transfer mode) network 002 and access server 003, wherein, ADSL transmission system 001 includes terminal 10, demodulator 11 and the central office equipment 12, the ADSL transmission system 001 is responsible for the ADSL line codec and transmission of the telephone line segment. The ATM network 002 is responsible for collecting user data from the central office equipment 12 to the access server 003 in the form of ATM PVC. The access server 003 is an access server for realizing the PPPoE function at the central office, and it terminates the PPPoE process initiated by the user side. For example: the downlink Ethernet frame is sent from the IP metropolitan area network to the access server 003 through the router, and then sent to the central office device 003 after being added with a PPPoE header to be encapsulated into an AAL5 frame, and then sent to the demodulator 11 through the cross-connect module, and then sent to the demodulator 11 by the solution The moderator 11 completes AAL5 (ATM Adaptation Layer 5, ATM Adaptation Layer 5) frame reassembly and decodes the Ethernet frame and sends it to the terminal 10, and the terminal 10 takes out the IP data packet from the PPPoE packet; the uplink PPPoE packet originates from the terminal 10, The AAL5 frame is encapsulated in the tuner 11, and the ATM cell is transmitted to the central office equipment 12, and then transmitted to the access server 003 for processing through the set PVC (Permanent Virtual Circuit, permanent virtual circuit). ATM is used between the downlink of the central office equipment 12 and the demodulator 11 , ATM is also used between the upstream equipment 12 and the access server 003 , and the ATM PVC starts and ends between the demodulator 11 and the access server 003 . The core of some equipment adopts ATM cell multiplexing, which has a single structure and does not need protocol conversion. Due to the perfect technical design of ATM based on local equipment, it can support multiple services, provide different processing measures and different buffer spaces for these services, and provide different levels of priority and flow control for different service types, so that different ATM services The type can obtain the bandwidth suitable for the service in the whole service transmission line, thereby ensuring the high-performance quality support between the demodulator 11 and the access server 003.

目前,电信运营商的家庭媒体网关可以配置多达8路PVC,支持AUTO PVC和PVC共享功能,也支持单PVC和多PVC的多会话。为了保证Internet和IPTV业务互相不干扰,以及保障IPTV的用户质量,通常采用两路不同的PVC用于Internet和IPTV专用网络接入,并且每路PVC采用独立的PPPoE会话。另外,由于ATM PVC具有天然的安全隔离机制,采用PPPoE认证时,从每个终端10到接入接入服务器003之间的PPP会话也是相互隔离的,进一步加强了安全机制。例如:具备两个物理网络的终端,并采用双PPPoE拨号的方式同时连接到互联网和IPTV专网,实现双网双待。一般情况下网络端口类型为两个RJ45端口,或者一个RJ45端口和一个WLAN端口。当机顶盒采用两个RJ45端口的时候,其中一个连接家庭媒体网关的专用IPTV端口使用PPPoE拨号接入到IPTV专用网络,另外一个连接到家庭媒体网关Internet端口上,也采用PPPoE拨号方式接入到公众互联网。从而实现用户接入多种类型网络的功能。At present, home media gateways of telecom operators can be configured with up to 8 PVCs, support AUTO PVC and PVC sharing functions, and also support multi-session of single PVC and multiple PVCs. In order to ensure that Internet and IPTV services do not interfere with each other and ensure the quality of IPTV users, two different PVCs are usually used for Internet and IPTV private network access, and each PVC uses an independent PPPoE session. In addition, since ATM PVC has a natural security isolation mechanism, when PPPoE authentication is adopted, the PPP sessions from each terminal 10 to the access server 003 are also isolated from each other, which further strengthens the security mechanism. For example: a terminal with two physical networks, and uses dual PPPoE dial-up to connect to the Internet and IPTV private network at the same time to achieve dual-network dual-standby. Generally, the network port type is two RJ45 ports, or one RJ45 port and one WLAN port. When the set-top box uses two RJ45 ports, one of the dedicated IPTV ports connected to the home media gateway uses PPPoE dial-up to connect to the IPTV private network, and the other connects to the Internet port of the home media gateway and also uses PPPoE dial-up to connect to the public the Internet. In this way, the user can access various types of networks.

其中,用户在ADSL的数字线上进行拨号,采用专门的拨号协议PPPoE,拨号后直接由验证服务器进行检验,用户需输入用户名与密码,检验通过后就建立起一条高速的用户数字并分配相应的动态IP。PPPoE协议的工作流程包含发现和会话两个阶段,发现阶段是无状态的,目的是获得接入服务器003的以太网MAC地址,并建立一个唯一的PPPoE会话标识符。发现阶段结束后,就进入标准的PPP会话阶段。Among them, the user dials on the ADSL digital line, using the special dial-up protocol PPPoE, and the verification server directly checks after dialing. The user needs to enter the user name and password. After the verification is passed, a high-speed user number is established and assigned corresponding dynamic IP. The workflow of the PPPoE protocol includes two stages of discovery and session. The discovery stage is stateless, and its purpose is to obtain the Ethernet MAC address of the access server 003 and establish a unique PPPoE session identifier. After the discovery phase ends, it enters the standard PPP session phase.

当一个终端10想开始一个PPPoE会话,它必须首先进行发现阶段,以识别接入服务器003的以太网MAC地址,并建立一个PPPoE会话标识符。在发现阶段,基于网络的拓扑,主机可以发现多个接入服务器003,然后允许用户选择一个。当发现阶段成功完成,终端10和选择的接入服务器003都有了他们在以太网上建立PPP连接的信息。直到PPP会话建立,发现阶段一直保持无状态的客户/服务器模式。一旦PPP会话建立,终端10和接入服务器003都必须为PPP虚接口分配资源。When a terminal 10 wants to start a PPPoE session, it must first perform a discovery phase to identify the Ethernet MAC address of the access server 003 and establish a PPPoE session identifier. In the discovery stage, based on the topology of the network, the host can discover multiple access servers 003, and then allow the user to select one. When the discovery phase is successfully completed, both the terminal 10 and the selected access server 003 have information that they are establishing a PPP connection on the Ethernet. Until the PPP session is established, the discovery phase remains a stateless client/server model. Once the PPP session is established, both the terminal 10 and the access server 003 must allocate resources for the PPP virtual interface.

进一步,PPPoE报文是被封装在以太网帧的数据域内的。以太网帧头包括:目的服务器MAC地址,其后为接入服务器的地址、客户端MAC地址和以太网协议类型。其中,PPPoE数据报文的格式包括:PPPoE数据报文最开始的4位为版本域,这个域填充的内容为0x01;版本域后是4位的类型域,根据协议规定,这个域填充的内容也是0x01;代码域,占用一个字节,对于PPPoE的不同阶段这个域内容也不一样;会话标识符占用两个字节,当访问集中器时还没有分配唯一的会话ID给用户主机的话,改域的内容必须填充为0x0000;一旦主机获取了会话ID后,那么在后续的所有报文里面必须填充那个唯一的会话标识符;PPPoE的Payload长度占两个字节,PPPoE的Payload可以由多个TLV组成,每个TLV包括Tag_Type,Tag_Length,Tag_Vlaue。Furthermore, the PPPoE message is encapsulated in the data field of the Ethernet frame. The Ethernet frame header includes: the MAC address of the destination server, followed by the address of the access server, the MAC address of the client and the Ethernet protocol type. Among them, the format of the PPPoE data message includes: the first 4 bits of the PPPoE data message are the version field, and the content of this field is 0x01; after the version field is a 4-bit type field, according to the protocol, the content of this field is It is also 0x01; the code field occupies one byte, and the content of this field is different for different stages of PPPoE; the session identifier occupies two bytes, if the unique session ID has not been assigned to the user host when accessing the concentrator, change The content of the field must be filled with 0x0000; once the host obtains the session ID, the unique session identifier must be filled in all subsequent messages; the length of the PPPoE Payload occupies two bytes, and the PPPoE Payload can be composed of multiple TLV composition, each TLV includes Tag_Type, Tag_Length, Tag_Vlaue.

其中,在PPPoE发现阶段PPPoED的处理过程中可以包括以下四个阶段:首先终端10发送一个PADI帧用于初始化。这个帧将通过以太网进行广播,表示寻找接入服务;其次一个或多个接入服务器003回复一个PADO帧即响应信号响应给终端10,表示接入服务器003正在响应是否要建立连接;当终端10在指定的时间内没有接收到PADO,它会重发PADI分组,并且加倍等待时间,这个过程一般重复四次;再次终端10选择一个接入服务器003,并发送单播PADR帧即连接请求信号给该响应的接入服务器003,表示希望建立连接;最后接入服务器003发送PADS帧即PPPoE连接确认信号,表示可以建立连接并分配连接号。该连接号连同终端和接入服务器003的以太网地址,将唯一标识一个PPPoE会话。发送阶段报文PPPoED是无状态的,目的是获得PPPoE接入服务器003,即接入服务器003的以太网MAC地址或者由接入服务器003建立的一个唯一的PPPoE会话标识符,该会话标识符数据存储在PPPoE报文中的SESSION_ID中。其中,在PPPoE发现阶段的四个步骤中,PPPoE头的Payload中始终含有一个Tag_Type为0x0103的TLV:Host-Uniq。Host-Uniq为主机唯一标识,由拨号主机随机产生的随机数。Host-Uniq类似于PPP数据报文中的标识域,主要是用来匹配发送和接收端的。因为对于广播式的网络中会同时存在很多个PPPoE的数据报文。Wherein, the PPPoED process in the PPPoE discovery stage may include the following four stages: first, the terminal 10 sends a PADI frame for initialization. This frame will be broadcasted through the Ethernet, indicating that it is looking for an access service; secondly, one or more access servers 003 reply a PADO frame, that is, the response signal responds to the terminal 10, indicating that the access server 003 is responding to whether to establish a connection; when the terminal 10 does not receive PADO within the specified time, it will resend the PADI packet, and double the waiting time, this process is generally repeated four times; again terminal 10 selects an access server 003, and sends a unicast PADR frame that is a connection request signal The access server 003 that responds indicates that it wishes to establish a connection; finally, the access server 003 sends a PADS frame, that is, a PPPoE connection confirmation signal, indicating that a connection can be established and assigns a connection number. The connection number, together with the Ethernet addresses of the terminal and the access server 003, will uniquely identify a PPPoE session. The message PPPoED in the sending phase is stateless, the purpose is to obtain the PPPoE access server 003, that is, the Ethernet MAC address of the access server 003 or a unique PPPoE session identifier established by the access server 003, the session identifier data Stored in the SESSION_ID in the PPPoE packet. Among them, in the four steps of the PPPoE discovery phase, the Payload of the PPPoE header always contains a TLV whose Tag_Type is 0x0103: Host-Uniq. Host-Uniq is the unique identifier of the host, a random number randomly generated by the dial-up host. Host-Uniq is similar to the identification field in the PPP data packet, and is mainly used to match the sending and receiving ends. Because there will be many PPPoE data packets in the broadcast network at the same time.

进一步的,在PPPoE会话阶段PPP的处理过程中包括:发送一些配置报文来配置数据链路;认证;配置网络层协议;IP数据流传输和终止PPPoE会话。此时,用户通过接入服务器来进行发送或接收数据。Further, the processing of PPP in the PPPoE session stage includes: sending some configuration messages to configure data links; authentication; configuring network layer protocols; transmitting IP data streams and terminating PPPoE sessions. At this time, the user sends or receives data by accessing the server.

请参照图2,为本发明一种网络接入的方法的第一实施例流程图。如图2所示,本实施例所述的一种网络接入方法的步骤包括:Please refer to FIG. 2 , which is a flowchart of a first embodiment of a method for network access according to the present invention. As shown in Figure 2, the steps of a network access method described in this embodiment include:

S100,接收到终端发送的PPPoE报文时,检测所述PPPoE报文的报文类型,所述报文类型包括发送阶段报文PPPoED或会话阶段报文PPP,所述PPPoED携带接入标识数据。S100. When receiving a PPPoE packet sent by a terminal, detect the packet type of the PPPoE packet, where the packet type includes a sending phase packet PPPoED or a session phase packet PPP, and the PPPoED carries access identification data.

具体实施例中,设定网关端口为桥接模式,支持PPPoE报文透传。其中,PPPoE(Point to Point Protocol over Ethernet,基于以太网的点对点协议)可以使终端通过一个简单的桥接设备连到一个远端的接入服务器上,通过PPPoE协议,远端服务器能够实现对每个接入终端进行控制。例如:当终端需接入公众因特网时,终端通过发送携带接入公众因特网数据的PPPoE报文来接入公众因特网,并根据PPPoE协议与公众因特网中的相应的服务器进行传输数据。In a specific embodiment, the gateway port is set to be in bridging mode to support transparent transmission of PPPoE packets. Among them, PPPoE (Point to Point Protocol over Ethernet, point-to-point protocol based on Ethernet) can enable the terminal to connect to a remote access server through a simple bridge device. Through the PPPoE protocol, the remote server can implement each access terminal for control. For example: when a terminal needs to access the public Internet, the terminal accesses the public Internet by sending a PPPoE packet carrying access data to the public Internet, and transmits data with a corresponding server in the public Internet according to the PPPoE protocol.

进一步的,设定以太网帧检测,在桥接处理流程中加入PPPoE报文的检测。PPPoE报文包括发送阶段报文PPPoED和会话阶段报文PPP,检测所述PPPoE报文类型,再执行相应的操作。Further, Ethernet frame detection is set, and PPPoE packet detection is added in the bridging processing flow. The PPPoE message includes the sending phase message PPPoED and the session phase message PPP, the type of the PPPoE message is detected, and then corresponding operations are performed.

进一步的,当报文类型是发送阶段报文PPPoED,结合图1的第一实施例,在PPPoE发现阶段的四个步骤中,PPPoE报文中的Payload中始终含有一个TLV:Host-Uniq。Host-Uniq作为主机唯一标识,由拨号主机随机产生的随机数。Host-Uniq类似于PPP数据报文中的标识域,主要是用来匹配发送和接收端的,因为对于广播式的网络中会同时存在很多个PPPoE的数据报文。其中,我们可以利用这个始终存在的Host-Uniq来作为接入标识数据进行标识终端所需接入网络的类型。其中,如果接入账号有两个,则接入标识数据可以设置为,一种账号类型对应Host-Uniq的值在[0,C)范围之间,另一种账号类型对应Host-Uniq的值在[C,+∞)范围之间,其中C为(0,+∞)之间的一个恒定常数,例如:如果拨号使用Internet拨号账号即@internet账户,即终端需接入的是公众因特网网络,则设定Host-Uniq的值在[0,C)范围之间,如果拨号使用IPTV拨号账号即@iptv账户,即终端需接入的是IPTV专用网络,则设定Host-Uniq的值在[C,+∞)范围之间。当接入账号有多个,则接入标识数据可以设置为,一种账号类型对应Host-Uniq的值在[0,A)范围之间,另一种账号类型对应Host-Uniq的值在[A,B)范围之间,第三种账号类型对应Host-Uniq的值在[B,C)范围之间等,如此对Host-Uniq的值设置多个范围以对应多个账号。Further, when the message type is the sending phase message PPPoED, in combination with the first embodiment in FIG. 1 , in the four steps of the PPPoE discovery phase, the Payload in the PPPoE message always contains a TLV: Host-Uniq. Host-Uniq is the unique identifier of the host, a random number randomly generated by the dial-up host. Host-Uniq is similar to the identification field in the PPP data packet, and is mainly used to match the sending and receiving ends, because there will be many PPPoE data packets in the broadcast network at the same time. Among them, we can use the ever-existing Host-Uniq as the access identification data to identify the type of network that the terminal needs to access. Among them, if there are two access accounts, the access identification data can be set as, one account type corresponds to the value of Host-Uniq in the range [0, C), and the other account type corresponds to the value of Host-Uniq In the range of [C,+∞), where C is a constant between (0,+∞), for example: if the dial-up uses the Internet dial-up account, that is, the @internet account, that is, the terminal needs to access the public Internet network , then set the value of Host-Uniq in the range of [0,C). If the dial-up uses the IPTV dial-up account, that is, the @iptv account, that is, the terminal needs to access the IPTV dedicated network, then set the value of Host-Uniq in [C,+∞) range. When there are multiple access accounts, the access identification data can be set as, one account type corresponds to the value of Host-Uniq in the range [0,A), and the other account type corresponds to the value of Host-Uniq in [ Between the range of A, B), the third account type corresponds to the value of Host-Uniq in the range of [B, C), etc., so set multiple ranges for the value of Host-Uniq to correspond to multiple accounts.

S101,若所述PPPoE报文的报文类型为PPPoED,则根据所述PPPoED携带的接入标识数据获得与所述PPPoE报文相匹配的出口网络通道;S101. If the message type of the PPPoE message is PPPoED, obtain an egress network channel matching the PPPoE message according to the access identification data carried by the PPPoED;

具体实施例中,解析PPPoED报文,获得PPPoED携带的接入标识数据,所述接入标识数据可以是Payload中的主机标示Host-Uniq的数据,根据接入标识数据进行判断确定所述终端的拨号账号类型,例如:如果Host-Uniq在[0,C)范围之间,则该报文来自Internet拨号账号,则PPPoED报文被映射到PVC1网络通道上,所述PVC1网络通道接入的服务器是因特网服务器。如果Host-Uniq在[C,+∞)范围之间,则该报文来自IPTV拨号,则将PPoED报文被映射到PVC2网络通道上,所述PVC2网络通道接入的服务器是IPTV服务器。其中,所述PVC1和PVC2是PVC永久虚电路,当PPPoED报文被映射到对应的网络通道上,再根据PPPoE协议执行相应的操作。其中,对PPPoED报文进行设定接入标识数据包括对PADI、PADO、PADR、PADS四个处理阶段进行接入标识数据设定,其中,每个阶段都要进行一次网络通路的映射。In a specific embodiment, the PPPoED message is parsed to obtain the access identification data carried by PPPoED. The access identification data may be the data of the host in the Payload indicating Host-Uniq, and the terminal is determined according to the access identification data. Dial-up account type, for example: if Host-Uniq is in the range of [0,C), the message comes from an Internet dial-up account, and the PPPoED message is mapped to the PVC1 network channel, and the server connected to the PVC1 network channel is an Internet server. If Host-Uniq is between [C,+∞) range, then this message comes from IPTV dial-up, then the PPoED message is mapped on the PVC2 network channel, and the server that the PVC2 network channel accesses is an IPTV server. Wherein, the PVC1 and PVC2 are PVC permanent virtual circuits, and when the PPPoED message is mapped to the corresponding network channel, corresponding operations are performed according to the PPPoE protocol. Wherein, setting the access identification data for the PPPoED message includes setting the access identification data for the four processing stages of PADI, PADO, PADR, and PADS, wherein each stage needs to perform a network path mapping.

S102,通过所述出口网络通道,将所述终端接入网络。S102. Connect the terminal to a network through the egress network channel.

具体实施例中,当根据接入标识数据将PPPoED报文映射到对应的网络通道时,通过所述网络通道接入终端,终端通过所述网络通道与接入服务器进行信息交流。In a specific embodiment, when the PPPoED message is mapped to a corresponding network channel according to the access identification data, the terminal is accessed through the network channel, and the terminal exchanges information with the access server through the network channel.

具体实施例中,当所述出口网络通道接入的服务器是因特网服务器时,向因特网广播所述PPPoED。当所述出口网络通道接入的服务器是IPTV服务器,向IPTV专用网络广播所述PPPoED。In a specific embodiment, when the server accessed by the egress network channel is an Internet server, broadcast the PPPoED to the Internet. When the server accessed by the egress network channel is an IPTV server, broadcast the PPPoED to the IPTV dedicated network.

请参照图3,为本发明一种网络接入的方法的第二实施例流程图。如图3所示,本实施例所述的一种网络接入方法的步骤包括:Please refer to FIG. 3 , which is a flow chart of a second embodiment of a network access method according to the present invention. As shown in Figure 3, the steps of a network access method described in this embodiment include:

S200,接收到终端发送的PPPoE报文时,检测所述PPPoE报文的报文类型,所述报文类型包括发送阶段报文PPPoED或会话阶段报文PPP,所述PPPoED携带接入标识数据。S200. When receiving a PPPoE packet sent by a terminal, detect the packet type of the PPPoE packet, where the packet type includes a sending phase packet PPPoED or a session phase packet PPP, and the PPPoED carries access identification data.

S201,若所述PPPoE报文的报文类型为PPPoED,解析所述PPPoED,获得所述PPPoED携带的接入标识数据,所述接入标识数据包括:PPPoED中的主机标示host-Uniq数据。S201. If the packet type of the PPPoE packet is PPPoED, parse the PPPoED to obtain access identification data carried by the PPPoED, where the access identification data includes: host-Uniq data in the PPPoED.

具体实施例中,所述PPPoED携带的接入标识数据可以是PADI或PADO或PADR或PADS携带的接入标识数据,所述标识数据可以标示在报文的主机标示host-Uniq中。In a specific embodiment, the access identification data carried by the PPPoED may be the access identification data carried by PADI, PADO, PADR, or PADS, and the identification data may be marked in the host-Uniq of the message.

S202,根据所述接入标识数据,确定所述终端的拨号账号类型,所述拨号账号类型包括:因特网Internet拨号账号类型或交互式网络电视IPTV拨号账号类型。S202. Determine a dial-up account type of the terminal according to the access identification data, where the dial-up account type includes: an Internet dial-up account type or an IPTV dial-up account type.

具体实施例中,如果拨号账号两个,例如所述两个拨号账号是因特网Internet拨号账号类型和交互式网络电视IPTV拨号账号类型,则对终端的PPPoE协议进行扩展,当用户需接入因特网Internet拨号账号类型,数字电视终端系统将PPPoED报文中的Host-Uniq的值设置在[0,C)范围之间,当用户需接入IPTV拨号账号类型,数字电视终端系统将将PPPoED报文中的Host-Uniq的值设置在[C,+∞)范围之间,其中C为(0,+∞)之间的一个恒定常数,并且所述设定规则同步至网关中。此时接入标识已设置好,当网关解析出接入标识数据并获得Host-Uniq的值在[0,C)范围之间时,对应设定规则,网关获得用户需接因特网网络,当网关解析出接入标识数据并获得Host-Uniq的值在[C,+∞)范围之间时,对应设定规则,网关获得用户需接入IPTV专用网络。In a specific embodiment, if there are two dial-up accounts, for example, the two dial-up accounts are an Internet Internet dial-up account type and an interactive network TV IPTV dial-up account type, then the PPPoE protocol of the terminal is extended, when the user needs to access the Internet Internet The dial-up account type, the digital TV terminal system sets the value of Host-Uniq in the PPPoED message to the range [0, C), when the user needs to access the IPTV dial-up account type, the digital TV terminal system will set the value of Host-Uniq in the PPPoED message The value of Host-Uniq is set in the range of [C,+∞), where C is a constant between (0,+∞), and the setting rules are synchronized to the gateway. At this time, the access identifier has been set. When the gateway parses the access identifier data and obtains the value of Host-Uniq in the range of [0, C), corresponding to the setting rules, the gateway obtains the user’s need to connect to the Internet. When the gateway When the access identification data is parsed out and the value of Host-Uniq is obtained within the range of [C,+∞), corresponding to the set rule, the gateway obtains that the user needs to access the IPTV dedicated network.

S203,根据所述拨号账号类型,选择与所述拨号账号类型相匹配的出口网络通道。S203. According to the dial-up account type, select an egress network channel that matches the dial-up account type.

具体实施例中,如果属于Internet拨号,该信元被映射到PVC1中,如果属于IPTV拨号,该信元被映射到PVC2中。所述PVC1网络通道接入的服务器是因特网服务器,所述PVC2网络通道接入的服务器是IPTV服务器。In a specific embodiment, if it belongs to Internet dial-up, the cell is mapped to PVC1, and if it belongs to IPTV dial-up, the cell is mapped to PVC2. The server accessed by the PVC1 network channel is an Internet server, and the server accessed by the PVC2 network channel is an IPTV server.

S204,通过所述出口网络通道,将所述终端接入网络。S204. Connect the terminal to a network through the egress network channel.

其中,步骤S200和步骤S204,可以参见图2所示实施例的步骤S100和步骤S102,在此不赘述。Wherein, for step S200 and step S204, reference may be made to step S100 and step S102 in the embodiment shown in FIG. 2 , which will not be repeated here.

请参照图4,为本发明一种网络接入的方法的第三实施例流程图。如图4所示,本实施例所述的一种网络接入方法的步骤包括:Please refer to FIG. 4 , which is a flowchart of a third embodiment of a method for network access according to the present invention. As shown in FIG. 4, the steps of a network access method described in this embodiment include:

S300,接收到终端发送的PPPoE报文时,检测所述PPPoE报文的报文类型,所述报文类型包括发送阶段报文PPPoED或会话阶段报文PPP,所述PPPoED携带接入标识数据。S300. When receiving a PPPoE packet sent by a terminal, detect the packet type of the PPPoE packet, where the packet type includes a sending phase packet PPPoED or a session phase packet PPP, and the PPPoED carries access identification data.

S301,若所述PPPoE报文的报文类型为PPPoED,则根据所述PPPoED携带的接入标识数据获得与所述PPPoE报文相匹配的出口网络通道。S301. If the packet type of the PPPoE packet is PPPoED, obtain an egress network channel matching the PPPoE packet according to the access identification data carried by the PPPoED.

S302,通过所述出口网络通道,向网络广播所述PPPoED。S302. Broadcast the PPPoED to the network through the egress network channel.

具体实施例中,向匹配的出口网络通路广播PPPoED,当匹配的是因特网网络,向因特网广播所述PPPoED。当匹配的是IPTV专用网络,向IPTV专用网络广播所述PPPoED。In a specific embodiment, the PPPoED is broadcast to the matching egress network path, and when the matching is the Internet network, the PPPoED is broadcast to the Internet. When the IPTV private network is matched, broadcast the PPPoED to the IPTV private network.

S303,接收所述网络中的至少一个服务器返回的响应消息。S303. Receive a response message returned by at least one server in the network.

具体实施例中,通过出口网络通道转发终端发送的寻找接入服务器,即PADI帧,网络中的服务器响应PADI帧返回的响应消息,所述响应消息包括终端是否要建立连接。In a specific embodiment, the PADI frame sent by the terminal to find the access server is forwarded through the egress network channel, and the server in the network responds to the response message returned by the PADI frame, and the response message includes whether the terminal wants to establish a connection.

S304,根据所述响应消息,从所述至少一个服务器中选择一个服务器作为接入服务器。S304. According to the response message, select one server from the at least one server as an access server.

具体实施例中,通过转发终端发送连接请求,即PADR帧给该响应的接入服务器,表示希望与条件合适的服务器建立连接。In a specific embodiment, by forwarding the connection request sent by the terminal, that is, the PADR frame, to the responding access server, it indicates that it wishes to establish a connection with a server with suitable conditions.

S305,通过选择的所述接入服务器,将所述终端接入所述网络。S305. Access the terminal to the network through the selected access server.

具体实施例中,当接收到接入服务器发送的PPPOE连接确认,即PADS帧时,将所述终端接入确定的接入服务器网络。In a specific embodiment, when receiving the PPPOE connection confirmation sent by the access server, that is, the PADS frame, the terminal is connected to the determined access server network.

S306,根据所述接入服务器分配的会话标识符,记录所述会话标识符与所述出口网络通道的映射关系。S306. Record the mapping relationship between the session identifier and the egress network channel according to the session identifier assigned by the access server.

具体实施例中,当接收到接入服务器发送的PPPoE连接确认,根据所述接入服务器分配的会话标识符,记录所述会话标识符与所述出口网络通道的映射关系。In a specific embodiment, when the PPPoE connection confirmation sent by the access server is received, the mapping relationship between the session identifier and the egress network channel is recorded according to the session identifier allocated by the access server.

其中,所述会话标识符包括:接入服务器的MAC地址和\或接入服务器生成的唯一标识码,网关可以根据其中任意的会话标识符需找目的接入服务器。其中,接入服务器生成的唯一标识码存储于PPPoE协议结构中的Session_ID中,网关可以读取Session_ID中的接入服务器生成的唯一标识码继而获得目的接入服务器;接入服务器的MAC地址存储于广播PPPoED中的最后一步PADS的以太网帧头的源地址,其源地址就是接入服务器的MAC地址,由于接入服务器的MAC地址是独一无二的,即网关也可根据接入服务器的MAC地址寻找目的接入服务器。进一步的,会话标识符与出口网络通道的映射关系可以是,例如:当接入的出口网络通道是PVC1时,则记录会话标识符与PVC1的映射关系,当接入的出口网络通道时PVC2时,则记录会话标识符与PVC2的映射关系。其中,所述会话标识符将唯一标识一个PPPoE会话。所述会话标识符用于PPP会话中。Wherein, the session identifier includes: the MAC address of the access server and/or a unique identification code generated by the access server, and the gateway can find the destination access server according to any session identifier among them. Wherein, the unique identification code generated by the access server is stored in the Session_ID in the PPPoE protocol structure, and the gateway can read the unique identification code generated by the access server in the Session_ID to obtain the destination access server; the MAC address of the access server is stored in Broadcast the source address of the Ethernet frame header of the PADS in the last step of PPPoED. The source address is the MAC address of the access server. Since the MAC address of the access server is unique, the gateway can also search for it based on the MAC address of the access server. The purpose is to access the server. Further, the mapping relationship between the session identifier and the egress network channel may be, for example: when the accessed egress network channel is PVC1, record the mapping relationship between the session identifier and PVC1; when the accessed egress network channel is PVC2 , record the mapping relationship between the session identifier and PVC2. Wherein, the session identifier will uniquely identify a PPPoE session. The session identifier is used in a PPP session.

其中,步骤S300和步骤S301,可以参见图1所示实施例的步骤S100和步骤S101,在此不赘述。Wherein, for step S300 and step S301, reference may be made to step S100 and step S101 in the embodiment shown in FIG. 1 , which will not be repeated here.

请参照图5,为本发明一种网络接入的方法的第四实施例流程图。如图5所示,本实施例所述的一种网络接入方法的步骤包括:Please refer to FIG. 5 , which is a flowchart of a fourth embodiment of a network access method according to the present invention. As shown in Figure 5, the steps of a network access method described in this embodiment include:

S400,接收到终端发送的PPPoE报文时,检测所述PPPoE报文的报文类型,所述报文类型包括发送阶段报文PPPoED或会话阶段报文PPP,所述PPPoED携带接入标识数据。S400. When receiving a PPPoE packet sent by a terminal, detect the packet type of the PPPoE packet, where the packet type includes a sending phase packet PPPoED or a session phase packet PPP, and the PPPoED carries access identification data.

S401,若所述PPPoE报文的报文类型为PPP,则根据PPP携带的会话标识符确定接入服务器,以及确定与所述会话标识符相映射的出口网络通道。S401. If the packet type of the PPPoE packet is PPP, determine an access server according to a session identifier carried by the PPP, and determine an egress network channel mapped to the session identifier.

具体实施例中,通过设定的以太网帧检测,判断当前以太网帧是PPP报文。通过协议栈转换将PPP上行报文封装成ATM信元,提取PPP报文中的会话标识符和查询会话标识符与出口网络通路的映射关系,从而获得建立连接关系的终端和接入服务器并获得出口网络通道。其中,当会话标识符与PVC1出口网络通道相映射时,则将PPP上行报文封装成的ATM信元映射到PVC1出口网络通道,当会话标识符与PVC2出口网络通道相映射时,则将PPP上行报文封装成的ATM信元映射到PVC2出口网络通道,并接入根据会话标识符查询到对应的接入服务器。In a specific embodiment, it is judged that the current Ethernet frame is a PPP message through the set Ethernet frame detection. Encapsulate the PPP uplink message into an ATM cell through protocol stack conversion, extract the session identifier in the PPP message and query the mapping relationship between the session identifier and the egress network path, so as to obtain the terminal and the access server that have established the connection relationship and obtain Export network channel. Among them, when the session identifier is mapped to the PVC1 egress network channel, the ATM cell encapsulated by the PPP uplink message is mapped to the PVC1 egress network channel; when the session identifier is mapped to the PVC2 egress network channel, the PPP The ATM cell encapsulated by the uplink message is mapped to the PVC2 egress network channel, and access is queried to the corresponding access server according to the session identifier.

其中,会话标识符可以包括接入服务器生成的唯一标识码和\或接入服务器的MAC地址,当读取的会话标识符是服务器生成的唯一标识码时,网关提取上行的PPP报文的会话标识符Session_ID,查询Session_ID与PVC的映射关系,从而获得建立连接关系的终端和接入服务器并获得出口网络通道。当读取的会话标识符是接入服务器的MAC地址时,网关提取上行的PPP以太网帧头的目的MAC地址,即接入服务器的MAC地址,并查询接入服务器的MAC地址与PVC的映射关系,从而获得建立连接关系的终端和接入服务器并获得出口网络通道。Wherein, the session identifier may include the unique identification code generated by the access server and/or the MAC address of the access server, and when the read session identifier is the unique identification code generated by the server, the gateway extracts the session of the uplink PPP message Identifier Session_ID, query the mapping relationship between Session_ID and PVC, so as to obtain the terminal and access server that establish the connection relationship and obtain the egress network channel. When the read session identifier is the MAC address of the access server, the gateway extracts the destination MAC address of the upstream PPP Ethernet frame header, that is, the MAC address of the access server, and queries the mapping between the MAC address of the access server and the PVC Relationship, so as to obtain the terminal and access server that establish the connection relationship and obtain the egress network channel.

S402,通过所述出口网络通道,将所述PPPoE报文发送至所述接入服务器,使所述终端与所述接入服务器进行会话。S402. Send the PPPoE packet to the access server through the egress network channel, so that the terminal establishes a session with the access server.

具体实施例中,通过所述出口网络通道,将ATM信元发送至所述接入服务器终端与所述接入服务器进行PPP会话。In a specific embodiment, the ATM cell is sent to the access server terminal to perform a PPP session with the access server through the egress network channel.

请参照图6,为本发明一种网络接入的方法的第五实施例流程图。如图6所示,本实施例所述的一种网络接入方法的步骤包括:Please refer to FIG. 6 , which is a flowchart of a fifth embodiment of a network access method according to the present invention. As shown in FIG. 6, the steps of a network access method described in this embodiment include:

S500,创建至少一条用于将终端接入网络的出口网络通道。S500. Create at least one egress network channel for connecting the terminal to the network.

具体实施例中,创建两条PVC连接或多于两条的PVC连接,若创建的是两条PVC连接,则可以通过设定VPI/VCI两个参数分别连接到ATM中不同网络,所述不同网络可以是IPTV线路和Internet线路,其中PVC1可以是Internet线路,PVC2可以是IPTV线路。In the specific embodiment, create two PVCs to connect or more than two PVCs to connect, if what create is two PVCs to connect, then can be respectively connected to different networks in the ATM by setting VPI/VCI two parameters, described different The network can be an IPTV line and an Internet line, where PVC1 can be an Internet line, and PVC2 can be an IPTV line.

S501,接收到终端发送的PPPoE报文时,检测所述PPPoE报文的报文类型,所述报文类型包括发送阶段报文PPPoED或会话阶段报文PPP,所述PPPoED携带接入标识数据。S501. When receiving a PPPoE packet sent by a terminal, detect the packet type of the PPPoE packet, where the packet type includes a sending phase packet PPPoED or a session phase packet PPP, and the PPPoED carries access identification data.

S502,若所述PPPoE报文的报文类型为PPPoED,则根据所述PPPoED携带的接入标识数据获得与所述PPPoE报文相匹配的出口网络通道。S502. If the packet type of the PPPoE packet is PPPoED, obtain an egress network channel matching the PPPoE packet according to the access identification data carried by the PPPoED.

S503,通过所述出口网络通道,将所述终端接入网络。S503. Connect the terminal to a network through the egress network channel.

其中,步骤S501、步骤S502和步骤S503,可以参见图5所示实施例的步骤S100、步骤S101和步骤S102,在此不赘述。Wherein, for step S501, step S502 and step S503, reference may be made to step S100, step S101 and step S102 in the embodiment shown in FIG. 5, which will not be repeated here.

下面阐述本发明实施例提供的一种网关的具体实现。The specific implementation of a gateway provided by the embodiment of the present invention is described below.

请参照图7,为本发明一种网关的第一实施例结构示意图。本实施例所述的一种网关包括:Please refer to FIG. 7 , which is a schematic structural diagram of a first embodiment of a gateway according to the present invention. A gateway described in this embodiment includes:

检测单元100,用于当接收到终端发送的PPPoE报文时,检测所述PPPoE报文的报文类型,所述报文类型包括发送阶段报文PPPoED或会话阶段报文PPP,所述PPPoED携带接入标识数据。The detection unit 100 is configured to detect the message type of the PPPoE message when receiving the PPPoE message sent by the terminal, the message type includes a sending phase message PPPoED or a session phase message PPP, and the PPPoED carries Access identification data.

具体实施例中,设定网关端口为桥接模式,支持PPPoE报文透传。其中,PPPoE(Point to Point Protocol over Ethernet,基于以太网的点对点协议)可以使终端通过一个简单的桥接设备连到一个远端的接入服务器上,通过PPPoE协议,远端服务器能够实现对每个接入终端进行控制。例如:当终端需接入公众因特网时,终端通过发送携带接入公众因特网数据的PPPoE报文来接入公众因特网,并根据PPPoE协议与公众因特网中的相应的服务器进行传输数据。In a specific embodiment, the gateway port is set to be in bridging mode to support transparent transmission of PPPoE packets. Among them, PPPoE (Point to Point Protocol over Ethernet, point-to-point protocol based on Ethernet) can enable the terminal to connect to a remote access server through a simple bridge device. Through the PPPoE protocol, the remote server can implement each access terminal for control. For example: when a terminal needs to access the public Internet, the terminal accesses the public Internet by sending a PPPoE packet carrying access data to the public Internet, and transmits data with a corresponding server in the public Internet according to the PPPoE protocol.

进一步的,设定以太网帧检测,在桥接处理流程中加入PPPoE报文的检测。PPPoE报文包括发送阶段报文PPPoED和会话阶段报文PPP,检测所述PPPoE报文类型,再执行相应的操作。Further, Ethernet frame detection is set, and PPPoE packet detection is added in the bridging processing flow. The PPPoE message includes the sending phase message PPPoED and the session phase message PPP, the type of the PPPoE message is detected, and then corresponding operations are performed.

进一步的,当报文类型是发送阶段报文PPPoED,结合图1的第一实施例,在PPPoE发现阶段的四个步骤中,PPPoE报文中的Payload中始终含有一个TLV:Host-Uniq。Host-Uniq作为主机唯一标识,由拨号主机随机产生的随机数。Host-Uniq类似于PPP数据报文中的标识域,主要是用来匹配发送和接收端的,因为对于广播式的网络中会同时存在很多个PPPoE的数据报文。其中,我们可以利用这个始终存在的Host-Uniq来作为接入标识数据进行标识终端所需接入网络的类型。其中,如果接入账号有两个,则接入标识数据可以设置为,一种账号类型对应Host-Uniq的值在[0,C)范围之间,另一种账号类型对应Host-Uniq的值在[C,+∞)范围之间,其中C为(0,+∞)之间的一个恒定常数,例如:如果拨号使用Internet拨号账号即@internet账户,即终端需接入的是公众因特网网络,则设定Host-Uniq的值在[0,C)范围之间,如果拨号使用IPTV拨号账号即@iptv账户,即终端需接入的是IPTV专用网络,则设定Host-Uniq的值在[C,+∞)范围之间。当接入账号有多个,则接入标识数据可以设置为,一种账号类型对应Host-Uniq的值在[0,A)范围之间,另一种账号类型对应Host-Uniq的值在[A,B)范围之间,第三种账号类型对应Host-Uniq的值在[B,C)范围之间等,如此对Host-Uniq的值设置多个范围以对应多个账号。Further, when the message type is the sending phase message PPPoED, in combination with the first embodiment in FIG. 1 , in the four steps of the PPPoE discovery phase, the Payload in the PPPoE message always contains a TLV: Host-Uniq. Host-Uniq is the unique identifier of the host, a random number randomly generated by the dial-up host. Host-Uniq is similar to the identification field in the PPP data packet, and is mainly used to match the sending and receiving ends, because there will be many PPPoE data packets in the broadcast network at the same time. Among them, we can use the ever-existing Host-Uniq as the access identification data to identify the type of network that the terminal needs to access. Among them, if there are two access accounts, the access identification data can be set as, one account type corresponds to the value of Host-Uniq in the range [0, C), and the other account type corresponds to the value of Host-Uniq In the range of [C,+∞), where C is a constant between (0,+∞), for example: if the dial-up uses the Internet dial-up account, that is, the @internet account, that is, the terminal needs to access the public Internet network , then set the value of Host-Uniq in the range of [0,C). If the dial-up uses the IPTV dial-up account, that is, the @iptv account, that is, the terminal needs to access the IPTV dedicated network, then set the value of Host-Uniq in [C,+∞) range. When there are multiple access accounts, the access identification data can be set as, one account type corresponds to the value of Host-Uniq in the range [0,A), and the other account type corresponds to the value of Host-Uniq in [ Between the range of A, B), the third account type corresponds to the value of Host-Uniq in the range of [B, C), etc., so set multiple ranges for the value of Host-Uniq to correspond to multiple accounts.

匹配单元200,用于若所述PPPoE报文的报文类型为PPPoED,则根据所述PPPoED携带的接入标识数据获得与所述PPPoE报文相匹配的出口网络通道。The matching unit 200 is configured to, if the packet type of the PPPoE packet is PPPoED, obtain an egress network channel matching the PPPoE packet according to the access identification data carried by the PPPoED.

具体实施例中,解析PPPoED报文,获得PPPoED携带的接入标识数据,所述接入标识数据可以是Payload中的主机标示Host-Uniq的数据,根据接入标识数据进行判断确定所述终端的拨号账号类型,例如:如果Host-Uniq在[0,C)范围之间,则该报文来自Internet拨号账号,则PPPoED报文被映射到PVC1网络通道上,所述PVC1网络通道接入的服务器是因特网服务器。如果Host-Uniq在[C,+∞)范围之间,则该报文来自IPTV拨号,则PPPoED报文被映射到PVC2网络通道上,所述PVC2网络通道接入的服务器是IPTV服务器。其中,所述PVC1和PVC2是PVC永久虚电路,当PPPoED报文被映射到对应的网络通道上,再根据PPPoE协议执行相应的操作。其中,对PPPoED报文进行设定接入标识数据包括对PADI、PADO、PADR、PADS四个处理阶段进行接入标识数据设定,其中,每个阶段都要进行一次网络通路的映射。In a specific embodiment, the PPPoED message is parsed to obtain the access identification data carried by PPPoED. The access identification data may be the data of the host in the Payload indicating Host-Uniq, and the terminal is determined according to the access identification data. Dial-up account type, for example: if Host-Uniq is in the range of [0,C), the message comes from an Internet dial-up account, and the PPPoED message is mapped to the PVC1 network channel, and the server connected to the PVC1 network channel is an Internet server. If Host-Uniq is between [C,+∞) range, then this message comes from IPTV dial-up, then PPPoED message is mapped on the PVC2 network channel, and the server that the PVC2 network channel accesses is an IPTV server. Wherein, the PVC1 and PVC2 are PVC permanent virtual circuits, and when the PPPoED message is mapped to the corresponding network channel, corresponding operations are performed according to the PPPoE protocol. Wherein, setting the access identification data for the PPPoED message includes setting the access identification data for the four processing stages of PADI, PADO, PADR, and PADS, wherein each stage needs to perform a network path mapping.

接入单元300,用于通过所述出口网络通道,将所述终端接入网络。The access unit 300 is configured to connect the terminal to the network through the egress network channel.

具体实施例中,当根据接入标识数据将PPPoED报文映射到对应的网络通道时,通过所述网络通道接入终端,终端通过所述网络通道与接入服务器进行信息交流。In a specific embodiment, when the PPPoED message is mapped to a corresponding network channel according to the access identification data, the terminal is accessed through the network channel, and the terminal exchanges information with the access server through the network channel.

具体实施例中,当所述出口网络通道接入的服务器是因特网服务器时,向因特网广播所述PPPoED。当所述出口网络通道接入的服务器是IPTV服务器,向IPTV专用网络广播所述PPPoED。In a specific embodiment, when the server accessed by the egress network channel is an Internet server, broadcast the PPPoED to the Internet. When the server accessed by the egress network channel is an IPTV server, broadcast the PPPoED to the IPTV dedicated network.

请参照图8,为本发明一种网关的第二实施例结构示意图。本实施例所述的一种网关包括:Please refer to FIG. 8 , which is a schematic structural diagram of a second embodiment of a gateway according to the present invention. A gateway described in this embodiment includes:

检测单元100、匹配单元200和接入单元300。A detection unit 100 , a matching unit 200 and an access unit 300 .

其中,所述匹配单元200还可进一步包括:Wherein, the matching unit 200 may further include:

解析子单元101,用于解析所述PPPoED,获得所述PPPoED携带的接入标识数据,所述接入标识数据包括:PPPoED中的主机标示host-Uniq数据。The parsing subunit 101 is configured to parse the PPPoED to obtain the access identification data carried by the PPPoED, the access identification data including: host-Uniq data in the PPPoED.

具体实施例中,所述PPPoED携带的接入标识数据可以是PADI或PADO或PADR或PADS携带的接入标识数据,所述标识数据可以标示在报文的主机标示host-Uniq中。In a specific embodiment, the access identification data carried by the PPPoED may be the access identification data carried by PADI, PADO, PADR, or PADS, and the identification data may be marked in the host-Uniq of the message.

确定子单元102,用于根据所述接入标识数据,确定所述终端的拨号账号类型,所述拨号账号类型包括:因特网Internet拨号账号类型或交互式网络电视IPTV拨号账号类型。The determination subunit 102 is configured to determine the dial-up account type of the terminal according to the access identification data, and the dial-up account type includes: an Internet dial-up account type or an IPTV dial-up account type.

具体实施例中,如果拨号账号两个,例如所述两个拨号账号是因特网Internet拨号账号类型和交互式网络电视IPTV拨号账号类型,则对数字电视终端的PPPoE协议进行扩展,当用户需接入因特网Internet拨号账号类型,数字电视终端系统将PPPoED报文中的Host-Uniq的值设置在[0,C)范围之间,当用户需接入IPTV拨号账号类型,数字电视终端系统将将PPPoED报文中的Host-Uniq的值设置在[C,+∞)范围之间,其中C为(0,+∞)之间的一个恒定常数,并且所述设定规则同步至网关中。此时接入标识已设置好,当网关解析出接入标识数据并获得Host-Uniq的值在[0,C)范围之间时,对应设定规则,网关获得用户需接因特网网络,当网关解析出接入标识数据并获得Host-Uniq的值在[C,+∞)范围之间时,对应设定规则,网关获得用户需接入电视交互式网络。In a specific embodiment, if there are two dial-up accounts, for example, the two dial-up accounts are Internet Internet dial-up account type and interactive network TV IPTV dial-up account type, then the PPPoE protocol of the digital TV terminal is extended, when the user needs to access Internet Internet dial-up account type, the digital TV terminal system will set the value of Host-Uniq in the PPPoED message to the range [0, C), when the user needs to access the IPTV dial-up account type, the digital TV terminal system will report PPPoED The value of Host-Uniq in this article is set within the range of [C,+∞), where C is a constant between (0,+∞), and the setting rules are synchronized to the gateway. At this time, the access identifier has been set. When the gateway parses the access identifier data and obtains the value of Host-Uniq in the range of [0, C), corresponding to the setting rules, the gateway obtains the user’s need to connect to the Internet. When the gateway When the access identification data is parsed out and the value of Host-Uniq is obtained within the range of [C,+∞), corresponding to the set rules, the gateway obtains that the user needs to access the TV interactive network.

第一选择子单元103,用于根据所述拨号账号类型,选择与所述拨号账号类型相匹配的出口网络通道。The first selection subunit 103 is configured to select an egress network channel matching the type of the dial-up account according to the type of the dial-up account.

具体实施例中,如果属于Internet拨号,该信元被映射到PVC1中,如果属于IPTV拨号,该信元被映射到PVC2中。所述PVC1网络通道接入的服务器是因特网服务器,所述PVC2网络通道接入的服务器是IPTV服务器。In a specific embodiment, if it belongs to Internet dial-up, the cell is mapped to PVC1, and if it belongs to IPTV dial-up, the cell is mapped to PVC2. The server accessed by the PVC1 network channel is an Internet server, and the server accessed by the PVC2 network channel is an IPTV server.

请参照图9,为本发明一种网关的第三实施例结构示意图。本实施例所述的一种网关包括:Please refer to FIG. 9 , which is a schematic structural diagram of a third embodiment of a gateway according to the present invention. A gateway described in this embodiment includes:

检测单元100、匹配单元200和接入单元300。A detection unit 100 , a matching unit 200 and an access unit 300 .

其中,所述接入单元300还可进一步包括:Wherein, the access unit 300 may further include:

广播子单元201,用于通过所述出口网络通道,向网络广播所述PPPoED。The broadcast subunit 201 is configured to broadcast the PPPoED to the network through the egress network channel.

具体实施例中,向匹配的出口网络通路广播PPPoED,当匹配的是因特网网络,向因特网广播所述PPPoED。当匹配的是IPTV专用网络,向IPTV专用网络广播所述PPPoED。In a specific embodiment, the PPPoED is broadcast to the matching egress network path, and when the matching is the Internet network, the PPPoED is broadcast to the Internet. When the IPTV private network is matched, broadcast the PPPoED to the IPTV private network.

接收子单元202,用于接收所述网络中的至少一个服务器返回的响应消息。The receiving subunit 202 is configured to receive a response message returned by at least one server in the network.

具体实施例中,通过出口网络通道转发终端发送的寻找接入服务器,即PADI帧,网络中的服务器响应PADI帧返回的响应消息,所述响应消息包括终端是否要建立连接。In a specific embodiment, the PADI frame sent by the terminal to find the access server is forwarded through the egress network channel, and the server in the network responds to the response message returned by the PADI frame, and the response message includes whether the terminal wants to establish a connection.

第二选择子单元203,用于根据所述响应消息,从所述至少一个服务器中选择一个服务器作为接入服务器。The second selecting subunit 203 is configured to select one server from the at least one server as the access server according to the response message.

具体实施例中,通过转发终端发送连接请求,即PADR帧给该响应的接入服务器,表示希望与条件合适的服务器建立连接。In a specific embodiment, by forwarding the connection request sent by the terminal, that is, the PADR frame, to the responding access server, it indicates that it wishes to establish a connection with a server with suitable conditions.

接入子单元204,用于通过选择的所述接入服务器,将所述终端接入所述网络。The access subunit 204 is configured to connect the terminal to the network through the selected access server.

具体实施例中,当接收到接入服务器发送的PPPOE连接确认,即PADS帧时,将所述终端接入确定的接入服务器网络。In a specific embodiment, when receiving the PPPOE connection confirmation sent by the access server, that is, the PADS frame, the terminal is connected to the determined access server network.

记录子单元205,用于根据所述接入服务器分配的会话标识符,记录所述会话标识符与所述出口网络通道的映射关系。The recording subunit 205 is configured to record the mapping relationship between the session identifier and the egress network channel according to the session identifier assigned by the access server.

具体实施例中,当接收到接入服务器发送的PPPOE连接确认,根据所述接入服务器分配的会话标识符,记录所述会话标识符与所述出口网络通道的映射关系。In a specific embodiment, when the PPPOE connection confirmation sent by the access server is received, the mapping relationship between the session identifier and the egress network channel is recorded according to the session identifier assigned by the access server.

其中,所述会话标识符包括:接入服务器的MAC地址和\或接入服务器生成的唯一标识码,网关可以根据其中任意的会话标识符需找目的接入服务器。其中,接入服务器生成的唯一标识码存储于PPPOE协议结构中的Session_ID中,网关可以读取Session_ID中的接入服务器生成的唯一标识码继而获得目的接入服务器;接入服务器的MAC地址存储于广播PPPoED中的最后一步PADS的以太网帧头的源地址,其源地址就是接入服务器的MAC地址,由于接入服务器的MAC地址是独一无二的,即网关也可根据接入服务器的MAC地址寻找目的接入服务器。进一步的,会话标识符与出口网络通道的映射关系可以是,例如:当接入的出口网络通道是PVC1时,则记录会话标识符与PVC1的映射关系,当接入的出口网络通道时PVC2时,则记录会话标识符与PVC2的映射关系。其中,所述会话标识符将唯一标识一个PPPOE会话。所述会话标识符用于PPP会话中。Wherein, the session identifier includes: the MAC address of the access server and\or a unique identification code generated by the access server, and the gateway can find the destination access server according to any session identifier among them. Wherein, the unique identification code generated by the access server is stored in the Session_ID in the PPPOE protocol structure, and the gateway can read the unique identification code generated by the access server in the Session_ID to obtain the destination access server; the MAC address of the access server is stored in Broadcast the source address of the Ethernet frame header of the PADS in the last step of PPPoED. The source address is the MAC address of the access server. Since the MAC address of the access server is unique, the gateway can also search for it based on the MAC address of the access server. The purpose is to access the server. Further, the mapping relationship between the session identifier and the egress network channel may be, for example: when the accessed egress network channel is PVC1, record the mapping relationship between the session identifier and PVC1; when the accessed egress network channel is PVC2 , record the mapping relationship between the session identifier and PVC2. Wherein, the session identifier will uniquely identify a PPPOE session. The session identifier is used in a PPP session.

请参照图10,为本发明一种网关的第四实施例结构示意图。本实施例所述的一种网关包括:Please refer to FIG. 10 , which is a schematic structural diagram of a fourth embodiment of a gateway according to the present invention. A gateway described in this embodiment includes:

检测单元100,其中,所述网关还包括:The detection unit 100, wherein the gateway further includes:

确定单元400,用于当所述PPPoE报文的报文类型为PPP时,则根据PPP携带的会话标识符确定接入服务器,以及确定与所述会话标识符相映射的出口网络通道。The determining unit 400 is configured to determine an access server according to a session identifier carried by PPP when the packet type of the PPPoE packet is PPP, and determine an egress network channel mapped to the session identifier.

具体实施例中,通过设定的以太网帧检测,判断当前以太网帧是PPP报文。通过协议栈转换将PPP上行报文封装成ATM信元,提取PPP报文中的会话标识符和查询会话标识符与出口网络通路的映射关系,从而获得出口网络通道和接入服务器。其中,当会话标识符与PVC1出口网络通道相映射时,则将PPP上行报文封装成的ATM信元映射到PVC1出口网络通道,当会话标识符与PVC2出口网络通道相映射时,则将PPP上行报文封装成的ATM信元映射到PVC2出口网络通道,并接入根据会话标识符查询到对应的接入服务器。In a specific embodiment, it is judged that the current Ethernet frame is a PPP message through the set Ethernet frame detection. Encapsulate the PPP uplink message into an ATM cell through protocol stack conversion, extract the session identifier in the PPP message and query the mapping relationship between the session identifier and the egress network path, so as to obtain the egress network channel and access server. Among them, when the session identifier is mapped to the PVC1 egress network channel, the ATM cell encapsulated by the PPP uplink message is mapped to the PVC1 egress network channel; when the session identifier is mapped to the PVC2 egress network channel, the PPP The ATM cell encapsulated by the uplink message is mapped to the PVC2 egress network channel, and access is queried to the corresponding access server according to the session identifier.

其中,会话标识符可以包括接入服务器生成的唯一标识码或接入服务器的MAC地址,当读取的会话标识符是服务器生成的唯一标识码时,网关提取上行的PPP报文的会话标识符Session_ID,查询Session_ID与PVC的映射关系,从而获得建立连接关系的终端和接入服务器并获得出口网络通道。当读取的会话标识符是接入服务器的MAC地址时,读取广播PPPoED中的最后一步PADS的以太网帧头的源地址,并查询接入服务器的MAC地址与PVC的映射关系,从而获得建立连接关系的终端和接入服务器并获得出口网络通道。Wherein, the session identifier may include the unique identification code generated by the access server or the MAC address of the access server, and when the read session identifier is the unique identification code generated by the server, the gateway extracts the session identifier of the uplink PPP message Session_ID, query the mapping relationship between Session_ID and PVC, so as to obtain the terminal and access server that establish the connection relationship and obtain the egress network channel. When the read session identifier is the MAC address of the access server, read the source address of the Ethernet frame header of the PADS in the last step of broadcasting PPPoED, and query the mapping relationship between the MAC address of the access server and the PVC, thereby obtaining Establish a connection relationship between the terminal and the access server and obtain an egress network channel.

发送单元500,用于通过所述出口网络通道,将所述PPPoE报文发送至所述接入服务器,使所述终端与所述接入服务器进行会话A sending unit 500, configured to send the PPPoE packet to the access server through the egress network channel, so that the terminal can have a session with the access server

具体实施例中,通过所述出口网络通道,将ATM信元发送至所述接入服务器终端与所述接入服务器进行PPP会话。In a specific embodiment, the ATM cell is sent to the access server terminal to perform a PPP session with the access server through the egress network channel.

请参照图11,为本发明一种网关的第五实施例结构示意图。本实施例所述的一种网关包括:Please refer to FIG. 11 , which is a schematic structural diagram of a fifth embodiment of a gateway according to the present invention. A gateway described in this embodiment includes:

检测单元100、匹配单元200、接入单元300、确定单元400和发送单元500。A detecting unit 100 , a matching unit 200 , an accessing unit 300 , a determining unit 400 and a sending unit 500 .

其中,所述网关还包括:Wherein, the gateway also includes:

创建单元600,用于创建至少一条用于将终端接入网络的出口网络通道。The creating unit 600 is configured to create at least one egress network channel for connecting a terminal to a network.

具体实施例中,创建两条PVC连接或多于两条的PVC连接,若创建的是两条PVC连接,则可以通过设定VPI/VCI两个参数分别连接到ATM中不同网络,所述不同网络可以是IPTV线路和Internet线路,其中PVC1可以是Internet线路,PVC2可以是IPTV线路。In the specific embodiment, create two PVCs to connect or more than two PVCs to connect, if what create is two PVCs to connect, then can be respectively connected to different networks in the ATM by setting VPI/VCI two parameters, described different The network can be an IPTV line and an Internet line, where PVC1 can be an Internet line, and PVC2 can be an IPTV line.

请参照图12,是本发明一种网络接入的系统的第一实施例结构示意图。本实施例所述的一种网络接入的系统包括:Please refer to FIG. 12 , which is a schematic structural diagram of a first embodiment of a network access system according to the present invention. A network access system described in this embodiment includes:

终端1、网关2和服务器3。Terminal 1, Gateway 2 and Server 3.

具体实施例中,所述终端1可以根据所运行的业务类型自动的在多个网络中切换,例如终端1开机的时候,终端1默认的使用@internet账户拨号连接网络,这个时候用户可以自由使用各种互联网应用,当用户启动IPTV应用后,终端1会断开当前互联网拨号连接,启动iTV专用网络拨号,这样用户就可以使用IPTV专用通道使用IPTV业务,当用户退出IPTV应用后,终端1会断开IPTV专用网络拨号连接,恢复互联网拨号连接。In a specific embodiment, the terminal 1 can automatically switch between multiple networks according to the type of service it is running. For example, when the terminal 1 is turned on, the terminal 1 uses the @internet account to dial up to connect to the network by default. At this time, the user can freely use For various Internet applications, when the user starts the IPTV application, Terminal 1 will disconnect the current Internet dial-up connection and start the iTV dedicated network dial-up, so that the user can use the IPTV dedicated channel to use IPTV services. When the user exits the IPTV application, Terminal 1 will Disconnect the IPTV private network dial-up connection and restore the Internet dial-up connection.

所述网关2如参见图6~图9所述的网关。The gateway 2 is the gateway described in FIG. 6 to FIG. 9 .

所述服务器3接入PVC出口网络通道,所述PVC不少于一条。The server 3 is connected to the PVC egress network channel, and the PVC is not less than one.

下面实施例描述一种网络接入的系统。The following embodiment describes a network access system.

终端1根据用户的选择设定对应的PPPoE报文,当用户选择接入因特网网络时,终端1设置PPPoE报文中的接入标识数据的host-Uniq的值的范围在在[0,C)范围之间,当用户选择接入IPTV专用网络时,终端1设置PPPoE报文中的接入标识数据的host-Uniq的值的范围在在[C,+∞)范围之间。终端将此报文发送至网关,网关接收报文并检测所述PPPoE报文的报文类型,当检测到所述PPPoE报文的报文类型为PPPoED,则根据所述PPPoED携带的接入标识数据host-Uniq的值获得与所述PPPoE报文相匹配的出口网络通道,即当Host-Uniq的值在[0,C)范围之间时,所匹配的出口网络通道可以是接入因特网网络的PVC1,当Host-Uniq的值在[C,+∞)范围之间时,所匹配的出口网络通道可以是接入IPTV专用网络的PVC2,然后网关通过匹配的网络发送封装成ATM信元的PPPoE报文,与接入的服务器3进行数据交流,其中,接入服务器可以是根据接入服务器分配的会话标识符来接入服务器,例如:当读取的会话标识符是服务器生成的唯一标识码时,网关提取上行的PPP报文的会话标识符Session_ID,查询Session_ID与PVC的映射关系,从而获得建立连接关系的终端和接入服务器并获得出口网络通道;或者当读取的会话标识符是接入服务器的MAC地址时,网关提取上行的PPP以太网帧头的目的MAC地址,即接入服务器的MAC地址,并查询接入服务器的MAC地址与PVC的映射关系,从而获得建立连接关系的终端和接入服务器并获得出口网络通道。进一步的,所述数据交流可以是,通过所述出口网络通道,向网络广播ATM信元,接收所述网络中多个服务器3返回的响应消息,根据响应消息,从返回响应消息的服务器3中选择一个服务器3作为接入服务器3,通过选择的接入服务器3,将终端1与选择的服务器3建立连接通道,以便服务器3获得终端1数据内容或终端内容获得服务器3的数据内容。Terminal 1 sets the corresponding PPPoE message according to the user's selection. When the user chooses to access the Internet network, Terminal 1 sets the host-Uniq value of the access identification data in the PPPoE message to a range of [0, C) Between the ranges, when the user chooses to access the IPTV private network, the terminal 1 sets the value range of the host-Uniq of the access identification data in the PPPoE message within the range of [C,+∞). The terminal sends this packet to the gateway, and the gateway receives the packet and detects the packet type of the PPPoE packet. When it detects that the packet type of the PPPoE packet is PPPoED, it The value of the data host-Uniq obtains the egress network channel that matches the PPPoE message, that is, when the value of Host-Uniq is between the range of [0, C), the matched egress network channel can be connected to the Internet PVC1, when the value of Host-Uniq is in the range of [C,+∞), the matched egress network channel can be PVC2 connected to the IPTV private network, and then the gateway sends the ATM cell through the matched network The PPPoE message communicates data with the accessed server 3, wherein the access server can access the server according to the session identifier assigned by the access server, for example: when the read session identifier is the unique identifier generated by the server code, the gateway extracts the session identifier Session_ID of the uplink PPP message, and queries the mapping relationship between Session_ID and PVC, so as to obtain the terminal and the access server that have established the connection relationship and obtain the egress network channel; or when the read session identifier is When accessing the MAC address of the server, the gateway extracts the destination MAC address of the upstream PPP Ethernet frame header, that is, the MAC address of the access server, and queries the mapping relationship between the MAC address of the access server and the PVC, thereby obtaining the information for establishing the connection relationship. Terminals and access servers and obtain egress network channels. Further, the data exchange may be, through the egress network channel, broadcasting ATM cells to the network, receiving response messages returned by multiple servers 3 in the network, and according to the response messages, from the server 3 that returns the response messages Select a server 3 as the access server 3, and establish a connection channel between the terminal 1 and the selected server 3 through the selected access server 3, so that the server 3 obtains the data content of the terminal 1 or the terminal content obtains the data content of the server 3.

通过上述实施例的描述,本发明具有以下优点:Through the description of the foregoing embodiments, the present invention has the following advantages:

本发明实施例是在现有的数字电视终端和家庭媒体网关硬件架构下,通过对PPPoE报文中的发送阶段报文PPPoED的扩展,使发送阶段报文PPPoED携带有能够辨别网络类型的接入标识数据,并通过解析所述接入标识数据使数字电视终端能够接入对应的出口网络通道。这使数字电视终端能够支持多种网络的接入,使得现存的数字电视终端仅通过数字电视终端和网关的软件升级即可接入多种网络类型,使得用户不需通过更换单端口数字电视终端即可实现接入多种网络类型的功能,这不仅节省了硬件成本、用户的使用成本,也节约了网络维护成本。In the embodiment of the present invention, under the existing hardware architecture of digital TV terminals and home media gateways, by extending the sending phase message PPPoED in the PPPoE message, the sending phase message PPPoED carries the access network type that can distinguish the network type. identification data, and enable the digital TV terminal to access the corresponding egress network channel by parsing the access identification data. This enables digital TV terminals to support the access of multiple networks, so that existing digital TV terminals can access multiple network types only through software upgrades of digital TV terminals and gateways, so that users do not need to replace single-port digital TV terminals The function of accessing multiple network types can be realized, which not only saves hardware costs, user usage costs, but also saves network maintenance costs.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), and the like.

以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (13)

1. the method for a network insertion, it is characterised in that described method includes:
When receiving the PPPoE message that terminal sends, detect the type of message of described PPPoE message, described Type of message includes transmission phase message PPPoED or session stage message PPP, and described PPPoED carries Access mark data;
If the type of message of described PPPoE message is PPPoED, then according to connecing that described PPPoED carries Inlet identity data obtain the egress network passage matched with described PPPoE message, wherein, described according to institute State the mark data that access that PPPoED carries and obtain the egress network passage matched with described PPPoE message Including: resolve described PPPoED, it is thus achieved that the access mark data that described PPPoED carries;Connect according to described Inlet identity data, determine the dialing account type of described terminal;According to described dialing account type, select with The egress network passage that described dialing account type matches;
By described egress network passage, by described accessing terminal to network.
2. the method for claim 1, it is characterised in that described carry according to described PPPoED Access mark data obtain the egress network passage matched with described PPPoE message and include:
Described access identification data packet includes: the main frame in PPPoED indicates host-Uniq data;
Described dialing account type includes: the Internet Internet dialing account type or IPTV IPTV dials account type.
3. the method for claim 1, it is characterised in that described by described egress network passage, By described accessing terminal to network, including:
By described egress network passage, to PPPoED described in Web broadcast;
Receive the response message that at least one server in described network returns;
According to described response message, select a server as access service from least one server described Device;
By the described access server selected, described terminal is accessed described network.
4. method as claimed in claim 3, it is characterised in that the described described access service by selecting Device, after described terminal is accessed described network, also includes:
The Session ID distributed according to described access server, records described Session ID and described outlet The mapping relations of network channel;
Described Session ID includes: the MAC Address of described access server or described access server generate Exclusive identification code.
5. the method for claim 1, it is characterised in that also include:
If the type of message of described PPPoE message is PPP, then determine according to the Session ID that PPP carries Access server, and determine the egress network passage mapped mutually with described Session ID;
By described egress network passage, described PPPoE message is sent to described access server, makes institute State terminal to conversate with described access server.
6. method as claimed in claim 5, it is characterised in that described in receive the PPPoE that terminal sends During message, before detecting the type of message of described PPPoE message, also include:
Create at least one for by the egress network passage of accessing terminal to network.
7. a gateway, it is characterised in that described gateway includes:
Detector unit, for when receiving the PPPoE message that terminal sends, detecting described PPPoE message Type of message, described type of message includes transmission phase message PPPoED or session stage message PPP, Described PPPoED carries access mark data;
Matching unit, if the type of message for described PPPoE message is PPPoED, then according to described What PPPoED carried accesses the egress network passage that mark data acquisition matches with described PPPoE message, Wherein, described matching unit includes: resolves subelement, is used for resolving described PPPoED, it is thus achieved that described PPPoED The access mark data carried;First determines subelement, for accessing mark data according to described, determines institute State the dialing account type of terminal;First selects subelement, for according to described dialing account type, selects The egress network passage matched with described dialing account type;
Access unit, for by described egress network passage, by described accessing terminal to network.
8. gateway as claimed in claim 7, it is characterised in that described matching unit includes:
Described access identification data packet includes: the main frame in PPPoED indicates host-Uniq data;
Described dialing account type includes: the Internet Internet dialing account type or IPTV IPTV dials account type.
9. gateway as claimed in claim 7, it is characterised in that described access unit includes:
Broadcast subelement, for by described egress network passage, to PPPoED described in Web broadcast;
Receive subelement, for receiving the response message that at least one server in described network returns;
Second selects subelement, for according to described response message, selects one from least one server described Individual server is as access server;
Access subunit, for the described access server by selecting, accesses described network by described terminal.
10. gateway as claimed in claim 9, it is characterised in that described access unit also includes:
Record subelement, for the Session ID distributed according to described access server, records described session Identifier and the mapping relations of described egress network passage;
Described Session ID includes: the MAC Address of described access server;Or, described access service The exclusive identification code that device generates.
11. gateways as claimed in claim 7, it is characterised in that described gateway also includes:
Determine unit, for when the type of message of described PPPoE message is PPP, then carry according to PPP Session ID determine access server, and determine the egress network mapped mutually with described Session ID Passage;
Transmitting element, for by described egress network passage, connecing described in the transmission extremely of described PPPoE message Enter server, make described terminal conversate with described access server.
12. gateways as claimed in claim 11, it is characterised in that described gateway also includes:
Creating unit, for creating at least one for by the egress network passage of accessing terminal to network.
The system of 13. 1 kinds of network insertions, it is characterised in that described system includes: terminal and server with And the gateway as described in claim 7-12.
CN201310110069.5A 2013-03-29 2013-03-29 A kind of method of network insertion, gateway and system Active CN103220276B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310110069.5A CN103220276B (en) 2013-03-29 2013-03-29 A kind of method of network insertion, gateway and system
PCT/CN2013/077488 WO2014153860A1 (en) 2013-03-29 2013-06-19 Network access method, gateway and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310110069.5A CN103220276B (en) 2013-03-29 2013-03-29 A kind of method of network insertion, gateway and system

Publications (2)

Publication Number Publication Date
CN103220276A CN103220276A (en) 2013-07-24
CN103220276B true CN103220276B (en) 2016-09-28

Family

ID=48817741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310110069.5A Active CN103220276B (en) 2013-03-29 2013-03-29 A kind of method of network insertion, gateway and system

Country Status (2)

Country Link
CN (1) CN103220276B (en)
WO (1) WO2014153860A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618736A (en) * 2013-12-09 2014-03-05 成都达信通通讯设备有限公司 Safety application system for mobile terminal to automatically switch between different channel networking interfaces
US9294341B2 (en) * 2013-12-13 2016-03-22 International Business Machines Corporation Multipath fiber channel over ethernet networks
CN104767712A (en) * 2014-01-03 2015-07-08 中国银联股份有限公司 Devices and secure browsers for secure information exchange
CN105100955A (en) * 2014-05-16 2015-11-25 中兴通讯股份有限公司 Set top box switching network method and device, and set top box provided with device
CN105791019A (en) * 2016-03-16 2016-07-20 烽火通信科技股份有限公司 A method for realizing simultaneous support of wired and wireless network applications in an intelligent set top box
CN110381361A (en) * 2018-04-12 2019-10-25 华为技术有限公司 A kind of method for processing business and relevant device
CN114006759B (en) * 2021-10-29 2023-08-15 中国联合网络通信集团有限公司 Network access method, network connection device, and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750483A (en) * 2004-09-15 2006-03-22 中兴通讯股份有限公司 Method for point-to-point protocol service detection of wide band cut-in server
CN101605040A (en) * 2008-06-12 2009-12-16 中兴通讯股份有限公司 Multicast control method and device in single-port multi-user access mode
CN101902623A (en) * 2009-05-26 2010-12-01 上海贝尔股份有限公司 Method and device for transmitting network video service
CN102136977A (en) * 2011-02-28 2011-07-27 中兴通讯股份有限公司 Dialing equipment and method for realizing virtual dialing according to user needs

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050195751A1 (en) * 2004-03-02 2005-09-08 Sbc Knowledge Ventures, L.P. System and method for identifying devices using a point to point protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750483A (en) * 2004-09-15 2006-03-22 中兴通讯股份有限公司 Method for point-to-point protocol service detection of wide band cut-in server
CN101605040A (en) * 2008-06-12 2009-12-16 中兴通讯股份有限公司 Multicast control method and device in single-port multi-user access mode
CN101902623A (en) * 2009-05-26 2010-12-01 上海贝尔股份有限公司 Method and device for transmitting network video service
CN102136977A (en) * 2011-02-28 2011-07-27 中兴通讯股份有限公司 Dialing equipment and method for realizing virtual dialing according to user needs

Also Published As

Publication number Publication date
WO2014153860A1 (en) 2014-10-02
CN103220276A (en) 2013-07-24

Similar Documents

Publication Publication Date Title
CN103220276B (en) A kind of method of network insertion, gateway and system
US10439862B2 (en) Communication terminal with multiple virtual network interfaces
KR101405977B1 (en) A method and an apparatus for transmitting messages in home network system
CN102106122B (en) System and method for DSL subcriber identification over Ethernet network
CA2538613C (en) A method for identifying user position
US20070280230A1 (en) Method and system for service discovery across a wide area network
CN101188614B (en) A method, system and device for user access security control
CN101594243B (en) A Realization Method of Cross-VLAN Multicast Based on Optical Network Unit
US20090285215A1 (en) Internet Protocol Version Six (IPv6) Addressing and Packet Filtering in Broadband Networks
US20060274766A1 (en) Smart intermediate authentication management (SIAM) system and method for multiple permanent virtual circuit (PVC) access environment
CN100571199C (en) A home gateway and a method for guaranteeing QoS of a home network service terminal
WO2006122502A1 (en) A transmission method for message in layer 2 and an access device
JP2003258935A (en) Network system
CN110809026B (en) File processing method and device, electronic equipment and storage medium
WO2012130142A1 (en) Method, system, and access device for user service access
US7228358B1 (en) Methods, apparatus and data structures for imposing a policy or policies on the selection of a line by a number of terminals in a network
US9172554B2 (en) Method and network access device for enabling data forwarding between different physical mediums
WO2014079208A1 (en) Communication method, device and system for trill network
KR20060059877A (en) Apparatus and method for Ethernet access system
US7406085B2 (en) Auto configuration for asynchronous transfer mode based access device
CN100382491C (en) Service isolation transmission method
CN107547467A (en) A kind of circuit authentication method, system and controller
CN102684959B (en) Electronic device and method for sharing Ethernet circuit with multiple ports
CN112165416B (en) Networking and communication method and device
EP1981217A1 (en) Method for forwarding data packets in an access network and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant after: Shenzhen Skyworth Digital Technology Co., Ltd.

Applicant after: Shenzhen Skyworth Software Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant before: Shenzhen Skyworth Digital Technology Co., Ltd.

Applicant before: Shenzhen Skyworth Software Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant