CN104125191B - Processing method, equipment and the system of point-to-point protocol based on Ethernet - Google Patents
Processing method, equipment and the system of point-to-point protocol based on Ethernet Download PDFInfo
- Publication number
- CN104125191B CN104125191B CN201310141854.7A CN201310141854A CN104125191B CN 104125191 B CN104125191 B CN 104125191B CN 201310141854 A CN201310141854 A CN 201310141854A CN 104125191 B CN104125191 B CN 104125191B
- Authority
- CN
- China
- Prior art keywords
- pppoe
- packet
- control
- message
- information
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
基于以太网的点对点协议的处理方法、设备和系统。本发明提供一种PPPoE的处理方法、设备和系统。该方法包括转发设备接收PPPoE客户端发送的PPPoE控制报文;所述转发设备将所述PPPoE控制报文发送给控制设备;所述转发设备接收所述控制设备发送的第一信息,所述第一信息为所述PPPoE客户端发送第一PPPoE数据报文所需的信息,由所述控制设备根据所述PPPoE控制报文分配;所述转发设备将所述第一信息发送给所述PPPoE客户端。本发明实施例可以实现在控制和转发分离的场景下支持PPPoE,进而可以在SDN设备上实现PPPoE。
A processing method, device and system for an Ethernet-based point-to-point protocol. The invention provides a PPPoE processing method, equipment and system. The method comprises that the forwarding device receives the PPPoE control packet sent by the PPPoE client; the forwarding device sends the PPPoE control packet to the control device; the forwarding device receives the first information sent by the control device, and the first One information is the information required by the PPPoE client to send the first PPPoE data message, which is distributed by the control device according to the PPPoE control message; the forwarding device sends the first information to the PPPoE client end. The embodiment of the present invention can support PPPoE in the scene of separation of control and forwarding, and then can realize PPPoE on the SDN device.
Description
技术领域technical field
本发明涉及通信技术,尤其涉及一种基于以太网的点到点协议(Point to PointProtocol over Ethernet,PPPoE)的处理方法、设备和系统。The present invention relates to communication technology, and in particular to a processing method, device and system of an Ethernet-based point-to-point protocol (Point to Point Protocol over Ethernet, PPPoE).
背景技术Background technique
软件定义的网络(Software Defined Network,SDN)可以提供开放的网络接口,为网络设备商、网络运营商或者第三方提供网络开发相关的应用。开放流协议(Openflow,OF)是SDN的关键技术,OF是基于控制和转发分离的架构,包括OF控制器和OF交换机,OF控制器可以负责各种协议的处理,运行应用程序,并可对外提供编程接口;OF控制器可以给OF交换机下发流表(flow table),OF交换机基于流表进行转发。A software-defined network (Software Defined Network, SDN) can provide an open network interface and provide network development-related applications for network equipment vendors, network operators, or third parties. Openflow protocol (Openflow, OF) is the key technology of SDN. OF is based on the architecture of separation of control and forwarding, including OF controller and OF switch. OF controller can be responsible for the processing of various protocols, running applications, and external Provide a programming interface; the OF controller can issue a flow table to the OF switch, and the OF switch forwards based on the flow table.
PPPoE是网络运营商广为使用的协议,目前的PPPoE是在单一设备内部实现。目前的OF尚未支持PPPoE的业务处理,使得PPPoE无法在基于SDN的网络设备中得到支持。PPPoE is a protocol widely used by network operators, and the current PPPoE is implemented inside a single device. The current OF does not yet support PPPoE service processing, making PPPoE unable to be supported in SDN-based network equipment.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了一种PPPoE的处理方法、设备和系统,用以解决控制和转发分离的场景下不能支持PPPoE的问题。In view of this, the embodiments of the present invention provide a PPPoE processing method, device, and system to solve the problem that PPPoE cannot be supported in a scenario where control and forwarding are separated.
第一方面,提供了一种PPPoE的处理方法,包括:In the first aspect, a PPPoE processing method is provided, including:
转发设备接收PPPoE客户端发送的PPPoE控制报文;The forwarding device receives the PPPoE control packet sent by the PPPoE client;
所述转发设备将所述PPPoE控制报文发送给控制设备;The forwarding device sends the PPPoE control packet to the control device;
所述转发设备接收所述控制设备发送的第一信息,所述第一信息为所述PPPoE客户端发送第一PPPoE数据报文所需的信息,由所述控制设备根据所述PPPoE控制报文分配;The forwarding device receives the first information sent by the control device, the first information is the information required by the PPPoE client to send the first PPPoE data message, and the control device sends the first PPPoE data message according to the PPPoE control message distribute;
所述转发设备将所述第一信息发送给所述PPPoE客户端。The forwarding device sends the first information to the PPPoE client.
结合第一方面,在第一方面的第一种可能的实现方式中,In combination with the first aspect, in the first possible implementation of the first aspect,
所述转发设备根据接收到的第一流表,将所述PPPoE控制报文发送给控制设备;The forwarding device sends the PPPoE control packet to the control device according to the received first flow table;
所述转发设备根据接收到的第二流表,将所述第一信息发送给所述PPPoE客户端。The forwarding device sends the first information to the PPPoE client according to the received second flow table.
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,In combination with the first aspect or the first possible implementation of the first aspect, in the second possible implementation of the first aspect,
所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文,所述第一信息包括第一会话标识ID;The PPPoE control message includes a control message applied to the PPPoE discovery phase, and the first information includes a first session identification ID;
或,or,
所述PPPoE控制报文包括应用于PPPoE会话阶段的控制报文,所述第一信息包括第一IP地址;The PPPoE control message includes a control message applied to the PPPoE session phase, and the first information includes a first IP address;
或,or,
所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文和应用于PPPoE会话阶段的控制报文,所述第一信息包括第一会话标识ID和第一IP地址。The PPPoE control message includes a control message used in a PPPoE discovery phase and a control message used in a PPPoE session phase, and the first information includes a first session ID and a first IP address.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述将所述PPPoE控制报文发送给控制设备具体包括:With reference to the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect, in a third possible implementation of the first aspect, the PPPoE control The message sent to the control device specifically includes:
将所述PPPoE控制报文封装为开放流OF报文;Encapsulating the PPPoE control message into an open flow OF message;
将所述OF报文发送给所述控制设备。Send the OF packet to the control device.
结合第一方面或第一方面的第一种至第二种任一种可能的实现方式,在第一方面的第四种可能的实现方式中,在将所述第一信息发送给所述PPPoE客户端之后,所述方法还包括:With reference to the first aspect or any of the first to second possible implementations of the first aspect, in a fourth possible implementation of the first aspect, after sending the first information to the PPPoE After the client, the method also includes:
所述转发设备接收所述PPPoE客户端发送的所述第一PPPoE数据报文;The forwarding device receives the first PPPoE data packet sent by the PPPoE client;
所述转发设备确定所述第一PPPoE数据报文的会话ID是否为所述第一会话ID,以及确定所述第一PPPoE数据报文中是否封装有IP报文;The forwarding device determines whether the session ID of the first PPPoE data message is the first session ID, and determines whether an IP message is encapsulated in the first PPPoE data message;
所述转发设备在所述第一PPPoE数据报文的会话ID是所述第一会话ID,且所述第一PPPoE数据报文中封装有IP报文时,根据接收到的第三流表,将所述第一PPPoE数据报文解封装为第一公网数据报文;When the session ID of the first PPPoE data message is the first session ID and the IP message is encapsulated in the first PPPoE data message, the forwarding device according to the received third flow table, Decapsulating the first PPPoE data packet into a first public network data packet;
所述转发设备根据所述第三流表向公网发送所述第一公网数据报文。The forwarding device sends the first public network data packet to the public network according to the third flow table.
结合第一方面或第一方面的第一种至第四种任一种可能的实现方式,在第一方面的第五种可能的实现方式中,In combination with the first aspect or any of the first to fourth possible implementations of the first aspect, in the fifth possible implementation of the first aspect,
在将所述第一信息发送给所述PPPoE客户端之后,所述方法还包括:After sending the first information to the PPPoE client, the method further includes:
所述转发设备从公网接收第二公网数据报文;The forwarding device receives the second public network data message from the public network;
所述转发设备确定所述第二公网数据报文的目的地址是否为所述第一IP地址;The forwarding device determines whether the destination address of the second public network data packet is the first IP address;
所述转发设备在确定所述第二公网数据报文的目的地址是为所述第一IP地址后,根据接收到的第四流表,将所述第二公网数据报文封装为第二PPPoE数据报文;After the forwarding device determines that the destination address of the second public network data message is the first IP address, according to the received fourth flow table, the second public network data message is encapsulated into the first Two PPPoE data packets;
所述转发设备根据接收到的第四流表,将所述第二PPPoE数据报文发送至所述PPPoE客户端。The forwarding device sends the second PPPoE data packet to the PPPoE client according to the received fourth flow table.
结合第一方面的第四种可能的实现方式,在第一方面的第六种可能的实现方式中,所述第一公网数据报文包括:With reference to the fourth possible implementation of the first aspect, in a sixth possible implementation of the first aspect, the first public network data message includes:
网际协议IP报文、基于以太网的网际协议IPoE报文或基于异步传输模式的网际协议IPoA报文。An Internet Protocol IP packet, an Ethernet-based Internet Protocol IPoE packet, or an Asynchronous Transfer Mode-based Internet Protocol IPoA packet.
第二方面,提供了一种PPPoE的处理方法,包括:In the second aspect, a PPPoE processing method is provided, including:
控制设备接收转发设备发送的PPPoE控制报文;The control device receives the PPPoE control packet sent by the forwarding device;
所述控制设备根据所述PPPoE控制报文为PPPoE客户端分配第一信息,所述第一信息为所述PPPoE客户端发送第一PPPoE数据报文所需的信息;The control device allocates first information to the PPPoE client according to the PPPoE control message, and the first information is the information required for the PPPoE client to send the first PPPoE data message;
所述控制设备将所述第一信息发送给所述转发设备。The control device sends the first information to the forwarding device.
结合第二方面,在第二方面的第一种可能的实现方式中,In combination with the second aspect, in the first possible implementation of the second aspect,
所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文,所述第一信息包括第一会话标识ID;The PPPoE control message includes a control message applied to the PPPoE discovery phase, and the first information includes a first session identification ID;
或,or,
所述PPPoE控制报文包括应用于PPPoE会话阶段的控制报文,所述第一信息包括第一IP地址;The PPPoE control message includes a control message applied to the PPPoE session phase, and the first information includes a first IP address;
或,or,
所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文和应用于PPPoE会话阶段的控制报文,所述第一信息包括第一会话标识ID和第一IP地址。The PPPoE control message includes a control message used in a PPPoE discovery phase and a control message used in a PPPoE session phase, and the first information includes a first session ID and a first IP address.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述接收转发设备发送的PPPoE控制报文,包括:With reference to the second aspect or the first possible implementation of the second aspect, in the second possible implementation of the second aspect, the receiving and forwarding device sends the PPPoE control message, including:
接收转发设备发送的开放流OF报文,所述OF报文为所述转发设备对所述PPPoE控制报文进行封装后得到的。receiving an OpenFlow OF packet sent by the forwarding device, where the OF packet is obtained after the forwarding device encapsulates the PPPoE control packet.
第三方面,提供了一种转发设备,包括:In a third aspect, a forwarding device is provided, including:
接收器,用于接收PPPoE客户端发送的PPPoE控制报文;The receiver is used to receive the PPPoE control message sent by the PPPoE client;
发送器,用于将所述接收器接收的所述PPPoE控制报文发送给控制设备;a transmitter, configured to send the PPPoE control packet received by the receiver to a control device;
所述接收器还用于:接收所述控制设备发送的第一信息,所述第一信息为所述PPPoE客户端发送第一PPPoE数据报文所需的信息,由所述控制设备根据所述PPPoE控制报文分配;The receiver is also used to: receive the first information sent by the control device, the first information is the information required by the PPPoE client to send the first PPPoE data message, and the control device according to the PPPoE control packet distribution;
所述发送器还用于:将所述接收器接收的所述第一信息发送给所述PPPoE客户端。The sender is further configured to: send the first information received by the receiver to the PPPoE client.
结合第三方面,在第三方面的第一种可能的实现方式中,所述发送器具体用于:With reference to the third aspect, in a first possible implementation manner of the third aspect, the transmitter is specifically configured to:
根据接收到的第一流表将所述接收器接收的所述PPPoE控制报文发送给所述控制设备;sending the PPPoE control packet received by the receiver to the control device according to the received first flow table;
根据接收到的第二流表将所述第一信息发送给所述PPPoE客户端。Send the first information to the PPPoE client according to the received second flow table.
结合第三方面或第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,In combination with the third aspect or the first possible implementation of the third aspect, in the second possible implementation of the third aspect,
所述接收器接收的所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文,所述接收器接收的所述第一信息包括第一会话标识ID;The PPPoE control message received by the receiver includes a control message applied to the PPPoE discovery phase, and the first information received by the receiver includes a first session ID;
或,or,
所述接收器接收的所述PPPoE控制报文包括应用于PPPoE会话阶段的控制报文,所述接收器接收的所述第一信息包括第一IP地址;The PPPoE control packet received by the receiver includes a control packet applied to the PPPoE session phase, and the first information received by the receiver includes a first IP address;
或,or,
所述接收器接收的所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文和应用于PPPoE会话阶段的控制报文,所述接收器接收的所述第一信息包括第一会话标识ID和第一IP地址。The PPPoE control message received by the receiver includes a control message applied to the PPPoE discovery phase and a control message applied to the PPPoE session phase, and the first information received by the receiver includes a first session identification ID and the first IP address.
结合第三方面或第三方面的第一种可能的实现方式或第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,还包括:处理器。In combination with the third aspect or the first possible implementation manner of the third aspect or the second possible implementation manner of the third aspect, in the third possible implementation manner of the third aspect, further comprising: a processor.
结合第三方面的第三种可能的实现方式,在第三方面的第四种可能的实现方式中,In combination with the third possible implementation of the third aspect, in the fourth possible implementation of the third aspect,
所收处理器用于在所述发送器发送所述PPPoE控制报文之前,将所述接收器接收的所述PPPoE控制报文封装为开放流OF报文;The receiving processor is used to encapsulate the PPPoE control message received by the receiver into an Open Flow OF message before the sender sends the PPPoE control message;
所述发送器具体用于将所述OF报文发送给所述控制设备。The sender is specifically configured to send the OF packet to the control device.
结合第三方面的第三种可能实现的方式或第三方面的第四种可能的实现方式,在第三方面的第五种可能的实现方式中,In combination with the third possible implementation of the third aspect or the fourth possible implementation of the third aspect, in the fifth possible implementation of the third aspect,
所述接收器还用于接收所述PPPoE客户端发送的所述第一PPPoE数据报文;The receiver is also used to receive the first PPPoE data packet sent by the PPPoE client;
所述处理器用于:确定所述第一PPPoE数据报文的会话ID是否为所述第一会话ID,以及确定所述第一PPPoE数据报文中是否封装有IP报文;以及,在所述第一PPPoE数据报文的会话ID是所述第一会话ID,且所述第一PPPoE数据报文中封装有所示IP报文时,根据接收到的第三流表将所述第一PPPoE数据报文解封装为第一公网数据报文;The processor is configured to: determine whether the session ID of the first PPPoE data message is the first session ID, and determine whether an IP message is encapsulated in the first PPPoE data message; and, in the The session ID of the first PPPoE data message is the first session ID, and when the IP message shown is encapsulated in the first PPPoE data message, the first PPPoE data message is sent according to the received third flow table The data packet is decapsulated into a first public network data packet;
所述发送器还用于:根据所述第三流表向公网发送所述第一公网数据报文。The sender is further configured to: send the first public network data packet to the public network according to the third flow table.
结合第三方面的第三种至第五种任一种可能的实现方式,在第三方面的第六种可能的实现方式中,In combination with any of the third to fifth possible implementations of the third aspect, in the sixth possible implementation of the third aspect,
所述接收器还用于:从公网接收第二公网数据报文;The receiver is further configured to: receive a second public network data message from the public network;
所述处理器用于:确定所述第二公网数据报文的目的地址是否为所述第一IP地址;以及,在确定所述第二公网数据报文的目的地址是为所述第一IP地址后,根据接收到的第四流表将所述第二公网数据报文封装为第二PPPoE数据报文;The processor is configured to: determine whether the destination address of the second public network data packet is the first IP address; and determine whether the destination address of the second public network data packet is the first IP address; After the IP address, the second public network data packet is encapsulated into a second PPPoE data packet according to the received fourth flow table;
所述发送器还用于:根据所述第四流表将所述第二PPPoE数据报文发送至所述PPPoE客户端。The sender is further configured to: send the second PPPoE data packet to the PPPoE client according to the fourth flow table.
结合第三方面的第五种可能的实现方式,在第三方面的第七种可能的实现方式中,所述处理器得到的所述第一公网数据报文包括:With reference to the fifth possible implementation of the third aspect, in a seventh possible implementation of the third aspect, the first public network data packet obtained by the processor includes:
网际协议IP报文、基于以太网的网际协议IPoE报文或基于异步传输模式的网际协议IPoA报文。An Internet Protocol IP packet, an Ethernet-based Internet Protocol IPoE packet, or an Asynchronous Transfer Mode-based Internet Protocol IPoA packet.
第四方面,提供了一种控制设备,包括:In a fourth aspect, a control device is provided, including:
接收器,用于接收转发设备发送的PPPoE控制报文;The receiver is used to receive the PPPoE control message sent by the forwarding device;
处理器,用于根据所述接收器接收的所述PPPoE控制报文为PPPoE客户端分配第一信息,所述第一信息为所述PPPoE客户端发送第一PPPoE数据报文所需的信息;A processor, configured to assign first information to the PPPoE client according to the PPPoE control packet received by the receiver, where the first information is information required by the PPPoE client to send a first PPPoE data packet;
发送器,用于将所述处理器得到的所述第一信息发送给所述转发设备。a sender, configured to send the first information obtained by the processor to the forwarding device.
结合第四方面,在第四方面的第一种可能的实现方式中,In combination with the fourth aspect, in the first possible implementation of the fourth aspect,
所述接收器接收的所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文,所述处理器得到的所述第一信息包括第一会话标识ID;The PPPoE control message received by the receiver includes a control message applied to a PPPoE discovery phase, and the first information obtained by the processor includes a first session ID;
或,or,
所述接收器接收的所述PPPoE控制报文包括应用于PPPoE会话阶段的控制报文,所述处理器得到的所述第一信息包括第一IP地址;The PPPoE control message received by the receiver includes a control message applied to the PPPoE session phase, and the first information obtained by the processor includes a first IP address;
或,or,
所述接收器接收的所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文和应用于PPPoE会话阶段的控制报文,所述处理器得到的所述第一信息包括第一会话标识ID和第一IP地址。The PPPoE control message received by the receiver includes a control message applied to the PPPoE discovery phase and a control message applied to the PPPoE session phase, and the first information obtained by the processor includes a first session identification ID and the first IP address.
结合第四方面或第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述接收器具体用于:With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the receiver is specifically configured to:
接收转发设备发送的开放流OF报文,所述OF报文为所述转发设备对所述PPPoE控制报文进行封装后得到的。receiving an OpenFlow OF packet sent by the forwarding device, where the OF packet is obtained after the forwarding device encapsulates the PPPoE control packet.
第五方面,提供了一种PPPoE的处理系统,包括:In the fifth aspect, a PPPoE processing system is provided, including:
第三方面或第三方面中的任一可能的实现方式的转发设备,以及,第四方面或第四方面中的任一可能的实现方式的控制设备。The forwarding device in the third aspect or any possible implementation manner in the third aspect, and the control device in the fourth aspect or any possible implementation manner in the fourth aspect.
通过上述技术方案,通过转发设备将PPPoE客户端发送的PPPoE控制报文发送给控制设备,并将控制设备分配的、所述PPPoE客户端发送第一PPPoE数据报文所需第一信息分配给PPPoE客户端,使PPPoE客户端得到所述第一信息,以为PPPoE客户端实现PPPoE数据报文的传输提供帮助。Through the above technical solution, the PPPoE control message sent by the PPPoE client is sent to the control device through the forwarding device, and the first information allocated by the control device and required for the PPPoE client to send the first PPPoE data message is allocated to the PPPoE The client terminal is configured to enable the PPPoE client terminal to obtain the first information, so as to provide help for the PPPoE client terminal to realize the transmission of PPPoE data packets.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明实施例中PPPoE通信的示意图;Fig. 1 is the schematic diagram of PPPoE communication in the embodiment of the present invention;
图2为本发明实施例中PPPoE报文的示意图;Fig. 2 is the schematic diagram of PPPoE message in the embodiment of the present invention;
图3为本发明实施例中OF的流表结构示意图;Fig. 3 is a schematic diagram of the flow table structure of OF in the embodiment of the present invention;
图4为本发明实施例中流表的匹配域的结构示意图;FIG. 4 is a schematic structural diagram of a matching domain of a flow table in an embodiment of the present invention;
图5为本发明实施例中OF支持PPPoE实现的流程示意图;Fig. 5 is the schematic flow chart that OF supports PPPoE realization in the embodiment of the present invention;
图6为本发明PPPoE的处理方法一实施例的流程示意图;FIG. 6 is a schematic flow diagram of an embodiment of a PPPoE processing method in the present invention;
图7为本发明PPPoE的处理方法另一实施例的流程示意图;FIG. 7 is a schematic flowchart of another embodiment of the PPPoE processing method of the present invention;
图8为本发明PPPoE的处理方法另一实施例的流程示意图;FIG. 8 is a schematic flowchart of another embodiment of the PPPoE processing method of the present invention;
图9为本发明实施例中处理数据报文的一实施例的流程示意图;FIG. 9 is a schematic flowchart of an embodiment of processing data packets in the embodiment of the present invention;
图10为本发明实施例中处理数据报文的另一实施例的流程示意图;FIG. 10 is a schematic flowchart of another embodiment of processing data packets in the embodiment of the present invention;
图11为本发明实施例中对数据报文进行解封装的流程示意图;FIG. 11 is a schematic flow diagram of decapsulating a data packet in an embodiment of the present invention;
图12为本发明实施例中解封装前后的报文格式示意图;FIG. 12 is a schematic diagram of message formats before and after decapsulation in an embodiment of the present invention;
图13为本发明实施例中对数据报文进行封装的流程示意图;FIG. 13 is a schematic flow diagram of encapsulating data packets in an embodiment of the present invention;
图14为本发明实施例中封装前后的报文格式示意图;FIG. 14 is a schematic diagram of message formats before and after encapsulation in an embodiment of the present invention;
图15为本发明PPPoE的处理方法另一实施例的流程示意图;FIG. 15 is a schematic flowchart of another embodiment of the PPPoE processing method of the present invention;
图16为本发明转发设备一实施例的结构示意图;FIG. 16 is a schematic structural diagram of an embodiment of a forwarding device according to the present invention;
图17为本发明转发设备另一实施例的结构示意图;FIG. 17 is a schematic structural diagram of another embodiment of a forwarding device according to the present invention;
图18为本发明控制设备一实施例的结构示意图;Fig. 18 is a schematic structural diagram of an embodiment of the control device of the present invention;
图19为本发明PPPoE的处理系统一实施例的结构示意图。FIG. 19 is a schematic structural diagram of an embodiment of a PPPoE processing system according to the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
PPPoE通信可以分为两个阶段:发现(discovery)阶段和会话(session)阶段。发现阶段用于PPPoE客户端和PPPoE服务器相互获取对端的媒体接入控制(Media AccessControl,MAC)地址,以及PPPoE服务器为PPPoE客户端分配会话标识(session ID);会话阶段包括后续的链路控制协议(Link Control Protocol,LCP)协商、网络控制协议(NetworkControl Protocol,NCP)协商、认证和授权以及用户数据报文收发等。PPPoE communication can be divided into two stages: discovery (discovery) stage and session (session) stage. The discovery phase is used for the PPPoE client and the PPPoE server to obtain the peer’s Media Access Control (MAC) address from each other, and the PPPoE server assigns a session ID (session ID) to the PPPoE client; the session phase includes the subsequent link control protocol (Link Control Protocol, LCP) negotiation, Network Control Protocol (NetworkControl Protocol, NCP) negotiation, authentication and authorization, and sending and receiving user data packets.
参见图1,发现阶段包括1~4所示的PPPoE协商过程中的PPPoE激活发现初始(PPPoE Active Discovery Initiation,PADI)报文、PPPoE激活发现提出(PPPoE ActiveDiscovery Offer,PADO)报文、PPPoE激活发现请求(PPPoE Active Discovery Request,PADR)报文、PPPoE激活发现会话确认(PPPoE Active Discovery Session confirmation,PADS)报文的交互。Referring to Figure 1, the discovery phase includes the PPPoE Active Discovery Initiation (PADI) message, the PPPoE Active Discovery Offer (PADO) message, and the PPPoE Active Discovery Interaction between request (PPPoE Active Discovery Request, PADR) message and PPPoE active discovery session confirmation (PPPoE Active Discovery Session confirmation, PADS) message.
会话阶段包括PPP协商过程以及用户上线后的数据报文收发过程,其中,PPP协商过程包括5的LCP协商以及11的NCP协商,其中,LCP协商过程包括6~10的认证和授权。在用户上线后,用户可以向网络侧发送或从网络侧接收数据报文。在认证和授权时PPPoE服务器可以与认证授权计费(Authentication Authorization and Accounting,AAA)服务器交互。The session phase includes the PPP negotiation process and the data packet sending and receiving process after the user goes online. The PPP negotiation process includes the LCP negotiation of 5 and the NCP negotiation of 11. The LCP negotiation process includes the authentication and authorization of 6-10. After the user goes online, the user can send or receive data packets to or from the network side. During authentication and authorization, the PPPoE server can interact with the Authentication Authorization and Accounting (AAA) server.
如图2所示,PPPoE报文包括位于以太网头的目的地址(destination_address)、源地址(source_address)以及以太网类型(ether_type),作为净荷的PPPoE包(PPPoEpacket),以及校验位(checksum)。PPPoE包包括版本(ver)、类型(type)、代码(code)、会话ID(session_ID)、长度(length)和PPP报文(PPP packet)。PPP报文包括协议(protocol)、IP报文(IP packet)和填充(padding)。图2中还示出了各字段的长度。As shown in Figure 2, the PPPoE packet includes the destination address (destination_address), source address (source_address) and Ethernet type (ether_type) in the Ethernet header, the PPPoE packet (PPPoEpacket) as the payload, and the checksum (checksum ). The PPPoE packet includes version (ver), type (type), code (code), session ID (session_ID), length (length) and PPP packet (PPP packet). PPP packets include protocol (protocol), IP packets (IP packet) and padding. The length of each field is also shown in FIG. 2 .
在发现阶段,以太网类型(Ether_type)字段数值为0x8863,在会话阶段,以太网类型(Ether_type)字段数值为0x8864。In the discovery phase, the value of the Ether_type field is 0x8863, and in the session phase, the value of the Ether_type field is 0x8864.
PPPoE报文头里的代码(code)字段表明消息的类型,例如,PADI报文的code为0x09,PADO报文的code为0x07等;在会话阶段,code为0。The code (code) field in the PPPoE message header indicates the type of the message, for example, the code of the PADI message is 0x09, the code of the PADO message is 0x07, etc.; in the session phase, the code is 0.
会话ID可以用于标识一个链接,可以认为会话ID与用户的IP地址是一一对应的。The session ID can be used to identify a link, and it can be considered that there is a one-to-one correspondence between the session ID and the user's IP address.
PPP报文头里的协议(protocol)字段表明PPP报文的类型,例如,0xC021表明为LCP报文,0x8021为NCP报文,0x0021为IP报文。The protocol field in the PPP packet header indicates the type of the PPP packet. For example, 0xC021 indicates an LCP packet, 0x8021 indicates an NCP packet, and 0x0021 indicates an IP packet.
以控制设备和转发设备分别为OF控制器和OF交换机为例,OF交换机可以根据OF控制器发送的流表进行报文的相应处理,如图3所示,为OF的流表结构示意图,包括匹配域(match fields)、优先级(priority)、计数值(counters)、指令(instructions)、超时(timeouts)、缓存数据(cookie)。Taking the control device and the forwarding device as an OF controller and an OF switch as an example, the OF switch can process the message according to the flow table sent by the OF controller, as shown in Figure 3, which is a schematic diagram of the OF flow table structure, including Match fields (match fields), priority (priority), counters (counters), instructions (instructions), timeouts (timeouts), cache data (cookies).
流表的基本结构是匹配加操作,例如为了支持二层转发,流表可以要求如果一个报文的目的MAC地址匹配到指定MAC地址,则执行动作:从交换机的B口转发出去。此时,可以在流表的匹配域(match fields)中添加目的MAC地址为指定MAC地址,在指令(instructions)中添加第一指令,该第一指令用于指示“从交换机的B口转发出去”,当交换机接收都目的MAC地址为指定MAC地址的报文后就可以将该报文从交换机的B口转发出去。The basic structure of the flow table is a match plus operation. For example, in order to support Layer 2 forwarding, the flow table can require that if the destination MAC address of a packet matches the specified MAC address, an action will be performed: forward it from the B port of the switch. At this point, you can add the destination MAC address as the specified MAC address in the match fields of the flow table, and add the first instruction in the instructions, which is used to indicate "forward from the B port of the switch ", when the switch receives the message whose destination MAC address is the specified MAC address, it can forward the message from the B port of the switch.
如图4所示,match fields包括类型(type)、长度(length)和openflow扩展匹配字段(Openflow extension match,oxm_field),其中的oxm_field可以为多个,每个oxm_field可以标识一个报文里的指定字段,以便将匹配到的报文采用instructions指示的操作进行处理。As shown in Figure 4, match fields include type (type), length (length) and openflow extension match field (Openflow extension match, oxm_field), where oxm_field can be multiple, and each oxm_field can identify a specified field, in order to process the matched packets with the operation indicated by instructions.
目前的OF可以匹配报文里的字段包括以太网头、IP头、多协议标签交换(Multi-Protocol Label Switching,MPLS)头,但是尚未包括PPPoE相关的字段。The current OF can match the fields in the packet, including the Ethernet header, IP header, and Multi-Protocol Label Switching (Multi-Protocol Label Switching, MPLS) header, but has not yet included PPPoE-related fields.
为了能够支持PPPoE,openflow协议及相关的控制器和交换机需要支持如下功能:In order to support PPPoE, the openflow protocol and related controllers and switches need to support the following functions:
(1)OF交换机需要能够识别PPPoE控制报文并转发给OF控制器,同时也要能将OF控制器返回的PPPoE控制报文转发给CPE。(1) The OF switch needs to be able to identify the PPPoE control message and forward it to the OF controller, and also forward the PPPoE control message returned by the OF controller to the CPE.
(2)OF控制器需要能够处理PPPoE控制报文,包括Session ID分配,认证和授权(可以与其他服务器配合实现),用户IP地址的分配,链路的保活(keep-alive),并且能够下发流表给OF交换机进行用户数据报文的转发(包括PPPoE报文的封装和解封装等)。(2) The OF controller needs to be able to process PPPoE control packets, including Session ID allocation, authentication and authorization (which can be realized in cooperation with other servers), user IP address allocation, link keep-alive, and be able to Send the flow table to the OF switch to forward user data packets (including encapsulation and decapsulation of PPPoE packets, etc.).
(3)OF交换机需要能够根据流表进行PPPoE数据报文的转发,含PPPoE报文的封装和解封装。(3) The OF switch needs to be able to forward PPPoE data packets according to the flow table, including encapsulation and decapsulation of PPPoE packets.
(4)OF协议需要能够识别PPPoE协议相关字段,并定义相应的处理操作。(4) The OF protocol needs to be able to identify the relevant fields of the PPPoE protocol and define corresponding processing operations.
为了实现OF对PPPoE的支持,可以在现有的结构中增加新的oxm_field定义,例如,对oxm_field的定义如下:In order to realize OF's support for PPPoE, a new definition of oxm_field can be added to the existing structure. For example, the definition of oxm_field is as follows:
其中,上述的OFPXMT_OFB_PPPOE_SESSION_ID=40,以及,OFPXMT_OFB_PPPOE_PPP_PROTO=41是新增加的定义,用于匹配报文的会话ID字段以及协议字段。Among them, the above-mentioned OFPXMT_OFB_PPPOE_SESSION_ID=40 and OFPXMT_OFB_PPPOE_PPP_PROTO=41 are newly added definitions, which are used to match the session ID field and the protocol field of the message.
另外,为了支持PPPoE报文头的封装和解封装,还需要扩展OF流表的instructions部分,例如,对instructions的定义如下:In addition, in order to support the encapsulation and decapsulation of the PPPoE packet header, the instructions part of the OF flow table needs to be extended. For example, the instructions are defined as follows:
其中,上述的OFPAT_PUSH_PPPOE_HEADER=28,以及,OFPAT_POP_PPPOE_HEADER=29是新增的定义,分别用于指示封装和解封装操作。Among them, the above-mentioned OFPAT_PUSH_PPPOE_HEADER=28 and OFPAT_POP_PPPOE_HEADER=29 are newly added definitions, which are respectively used to indicate encapsulation and decapsulation operations.
通过上述扩展,参见图5,OF交换机可以将PPPoE客户端发送的PPPoE控制报文发送给OF控制器,并由OF控制器发送给PPPoE服务器,并且,OF控制器可以将PPPoE服务器分配的会话ID和IP地址通过OF交换机发送给PPPoE客户端。OF交换机可以将PPPoE客户端发送的PPPoE数据报文解封装为基于以太网的网际协议(Internet Protocol over Ethernet,IPoE)数据报文后发送给网络侧,并将网络侧发送的IPoE数据报文封装为PPPoE数据报文后发送给PPPoE客户端。OF交换机可以根据OF控制器下发的流表完成上述的转发或者封装、解封装等操作。Through the above expansion, see Figure 5, the OF switch can send the PPPoE control packet sent by the PPPoE client to the OF controller, and the OF controller sends it to the PPPoE server, and the OF controller can send the session ID assigned by the PPPoE server And the IP address is sent to the PPPoE client through the OF switch. The OF switch can decapsulate the PPPoE data packet sent by the PPPoE client into an Ethernet-based Internet Protocol (Internet Protocol over Ethernet, IPoE) data packet and send it to the network side, and encapsulate the IPoE data packet sent by the network side It is sent to the PPPoE client as a PPPoE data packet. The OF switch can complete the above operations such as forwarding or encapsulation and decapsulation according to the flow table issued by the OF controller.
图6为本发明PPPoE的处理方法一实施例的流程示意图,包括:Fig. 6 is a schematic flow chart of an embodiment of the PPPoE processing method of the present invention, including:
61:转发设备接收PPPoE客户端发送的PPPoE控制报文;61: The forwarding device receives the PPPoE control packet sent by the PPPoE client;
62:所述转发设备将所述PPPoE控制报文发送给控制设备;62: The forwarding device sends the PPPoE control packet to the control device;
63:所述转发设备接收所述控制设备发送的第一信息,所述第一信息为所述PPPoE客户端发送第一PPPoE数据报文所需的信息,由所述控制设备根据所述PPPoE控制报文分配;63: The forwarding device receives the first information sent by the control device, the first information is the information required by the PPPoE client to send the first PPPoE data packet, and the control device controls according to the PPPoE message distribution;
64:所述转发设备将所述第一信息发送给所述PPPoE客户端。64: The forwarding device sends the first information to the PPPoE client.
可选地,Optionally,
所述转发设备根据接收到的第一流表,将所述PPPoE控制报文发送给控制设备;The forwarding device sends the PPPoE control packet to the control device according to the received first flow table;
所述转发设备根据接收到的第二流表,将所述第一信息发送给所述PPPoE客户端。The forwarding device sends the first information to the PPPoE client according to the received second flow table.
所述第一流表和第二流表可以是所述控制设备发送的,也可以是由其他设备发送的。The first flow table and the second flow table may be sent by the control device, or may be sent by other devices.
可选的,所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文,所述第一信息包括第一会话标识ID;Optionally, the PPPoE control message includes a control message applied to the PPPoE discovery phase, and the first information includes a first session ID;
或,or,
所述PPPoE控制报文包括应用于PPPoE会话阶段的控制报文,所述第一信息包括第一IP地址;The PPPoE control message includes a control message applied to the PPPoE session phase, and the first information includes a first IP address;
或,or,
所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文和应用于PPPoE会话阶段的控制报文,所述第一信息包括第一会话标识ID和第一IP地址。The PPPoE control message includes a control message used in a PPPoE discovery phase and a control message used in a PPPoE session phase, and the first information includes a first session ID and a first IP address.
可选的,所述将所述PPPoE控制报文发送给控制设备具体包括:将所述PPPoE控制报文封装为开放流(英文全称Open Flow,英文缩写OF)报文;将所述OF报文发送给所述控制设备。也就是说,控制设备接收到的PPPoE控制报文是封装在所述OF报文中的。Optionally, the sending the PPPoE control message to the control device specifically includes: encapsulating the PPPoE control message into an Open Flow (English full name Open Flow, English abbreviation OF) message; sent to the control device. That is to say, the PPPoE control packet received by the control device is encapsulated in the OF packet.
由于转发设备将所述第一信息发送给了PPPoE客户端,因此PPPoE客户端就可以基于所述第一信息发送所述第一PPPoE数据报文了。Since the forwarding device sends the first information to the PPPoE client, the PPPoE client can send the first PPPoE data packet based on the first information.
可选的,在将所述第一信息发送给所述PPPoE客户端之后,所述方法还包括:Optionally, after sending the first information to the PPPoE client, the method further includes:
所述转发设备接收所述PPPoE客户端发送的所述第一PPPoE数据报文;The forwarding device receives the first PPPoE data packet sent by the PPPoE client;
所述转发设备确定所述第一PPPoE数据报文的会话ID是否为所述第一会话ID,以及确定所述第一PPPoE数据报文中是否封装有IP报文;The forwarding device determines whether the session ID of the first PPPoE data message is the first session ID, and determines whether an IP message is encapsulated in the first PPPoE data message;
所述转发设备在所述第一PPPoE数据报文的会话ID是所述第一会话ID,且所述第一PPPoE数据报文中封装有所述IP报文时,根据接收到的第三流表,根据所述第三流表将所述第一PPPoE数据报文解封装为第一公网数据报文;When the session ID of the first PPPoE data packet is the first session ID and the IP packet is encapsulated in the first PPPoE data packet, the forwarding device, according to the received third flow table, decapsulating the first PPPoE data packet into a first public network data packet according to the third flow table;
所述转发设备向公网发送所述第一公网数据报文。The forwarding device sends the first public network data packet to the public network.
可选的,在将所述第一信息发送给所述PPPoE客户端之后,所述方法还包括:Optionally, after sending the first information to the PPPoE client, the method further includes:
所述转发设备从公网接收第二公网数据报文;The forwarding device receives the second public network data message from the public network;
所述转发设备确定所述第二公网数据报文的目的地址是否为所述第一IP地址;The forwarding device determines whether the destination address of the second public network data packet is the first IP address;
所述转发设备在确定所述第二公网数据报文的目的地址是为所述第一IP地址后,根据接收到的第四流表,将所述第二公网数据报文封装为第二PPPoE数据报文;After the forwarding device determines that the destination address of the second public network data message is the first IP address, according to the received fourth flow table, the second public network data message is encapsulated into the first Two PPPoE data packets;
所述转发设备根据所述第四流表,将所述第二PPPoE数据报文发送至所述PPPoE客户端。The forwarding device sends the second PPPoE data packet to the PPPoE client according to the fourth flow table.
可选的,该方法还包括:Optionally, the method also includes:
所述转发设备接收所述控制设备发送的第三流表,所述第三流表包括第三匹配域和第三操作域,所述第三匹配域包括会话ID字段和协议字段,且所述会话ID字段的数值为所述第一会话ID的值,所述协议字段的数值为表明报文为IP报文的值,所述第三操作域的操作包括将与所述第三匹配域匹配的报文解封装为公网数据报文并发送给网络侧。以便实现上述的将第一PPPoE数据报文解封装为第一公网数据报文。The forwarding device receives the third flow table sent by the control device, the third flow table includes a third matching field and a third operation field, the third matching field includes a session ID field and a protocol field, and the The value of the session ID field is the value of the first session ID, the value of the protocol field is a value indicating that the packet is an IP packet, and the operation of the third operation domain includes matching the third matching domain The packet is decapsulated into a public network data packet and sent to the network side. In order to realize the above decapsulation of the first PPPoE data packet into the first public network data packet.
需要说明的是,本实施例中的第三流表可以有多种实现方式,本实施例中的第三流表仅是多种实现方式中的一种。此外,第三流表可以从所述控制设备接收,可以从其他设备接收。It should be noted that the third flow table in this embodiment may have multiple implementation manners, and the third flow table in this embodiment is only one of the multiple implementation manners. In addition, the third flow table may be received from the control device, and may be received from other devices.
可选的,该方法还包括:Optionally, the method also includes:
所述转发设备接收所述控制设备发送的第四流表,所述第四流表包括第四匹配域和第四操作域,所述第四匹配域包括目的IP地址字段,且所述目的IP地址字段的数值为所述第一IP地址的值,所述第四操作域的操作包括将与所述第四匹配域匹配的报文封装为PPPoE数据报文并发送给所述PPPoE客户端。以便实现上述的将所述第二公网数据报文封装为第二PPPoE数据报文。The forwarding device receives the fourth flow table sent by the control device, the fourth flow table includes a fourth matching field and a fourth operation field, the fourth matching field includes a destination IP address field, and the destination IP The value of the address field is the value of the first IP address, and the operation of the fourth operation field includes encapsulating the packet matching the fourth matching field into a PPPoE data packet and sending it to the PPPoE client. In order to implement the above encapsulation of the second public network data packet into a second PPPoE data packet.
需要说明的是,本实施例中的第四流表可以有多种实现方式,本实施例中的第四流表仅是多种实现方式中的一种。此外,第四流表可以从所述控制设备接收,可以从其他设备接收。It should be noted that the fourth flow table in this embodiment may have multiple implementation manners, and the fourth flow table in this embodiment is only one of the multiple implementation manners. In addition, the fourth flow table may be received from the control device, and may be received from other devices.
可选的,所述第一公网数据报文包括:Optionally, the first public network data message includes:
网际协议(Internet Protocol,IP)报文、基于以太网的网际协议(IP overEthernet,IPoE)报文或基于异步传输模式(Asynchronous Transfer Mode,ATM)的网际协议(IP over ATM,IPoA)报文。An Internet Protocol (IP) message, an Ethernet-based Internet Protocol (IP overEthernet, IPoE) message, or an Asynchronous Transfer Mode (ATM)-based Internet Protocol (IP over ATM, IPoA) message.
可选的,第二公网数据报文包括:IP报文、IPoE报文或者IPoA报文。Optionally, the second public network data packet includes: an IP packet, an IPoE packet, or an IPoA packet.
可选的,所述转发设备在完成PPPoE协商和PPP协商后,接收控制设备发送的所述第三流表;或者,Optionally, the forwarding device receives the third flow table sent by the control device after completing PPPoE negotiation and PPP negotiation; or,
所述转发设备在接收到所述PPPoE客户端发送的第一个数据报文并转发给控制设备后,接收控制设备发送的所述第三流表,其中,所述第一个数据报文是所述转发设备根据第一原则转发给控制设备的,所述第一原则包括:所述第一个数据报文不能匹配到所述转发设备上的已经存在的流表的匹配域,或者,所述第一个数据报文能够匹配到所述转发设备上已经存在的流表的匹配域,且对应的操作域表明将匹配的报文发送到控制设备。After the forwarding device receives the first data message sent by the PPPoE client and forwards it to the control device, it receives the third flow table sent by the control device, wherein the first data message is The forwarding device forwards to the control device according to the first principle, the first principle includes: the first data packet cannot match the matching field of the existing flow table on the forwarding device, or, the The first data packet can be matched to the matching field of the existing flow table on the forwarding device, and the corresponding operation field indicates that the matched packet is sent to the control device.
可选的,所述转发设备接收所述控制设备发送的第四流表,包括:Optionally, the forwarding device receives the fourth flow table sent by the control device, including:
所述转发设备在完成PPPoE协商和PPP协商后,接收控制设备发送的所述第四流表;或者,After the forwarding device completes PPPoE negotiation and PPP negotiation, it receives the fourth flow table sent by the control device; or,
所述转发设备接收控制设备发送的所述第四流表,所述第四流表是所述控制设备在接收到网络侧发送的第一个要发送给PPPoE客户端的数据报文后发送的;或者,The forwarding device receives the fourth flow table sent by the control device, and the fourth flow table is sent by the control device after receiving the first data message to be sent to the PPPoE client sent by the network side; or,
所述转发设备在接收到PPPoE客户端发送的第一个数据报文并转发给控制设备后,接收控制设备发送的所述第四流表,其中,所述第一个数据报文是所述转发设备根据第一原则转发给控制设备的,所述第一原则包括:所述第一个数据报文不能匹配到所述转发设备上的已经存在的流表的匹配域,或者,所述第一个数据报文能够匹配到所述转发设备上已经存在的流表的匹配域,且对应的操作域表明将匹配的报文发送到控制设备。After the forwarding device receives the first data message sent by the PPPoE client and forwards it to the control device, it receives the fourth flow table sent by the control device, wherein the first data message is the The forwarding device forwards to the control device according to the first principle, the first principle includes: the first data packet cannot match the matching field of the existing flow table on the forwarding device, or the first A data packet can be matched to the matching field of the existing flow table on the forwarding device, and the corresponding operation field indicates that the matched packet is sent to the control device.
可选的,该方法还包括:Optionally, the method also includes:
所述转发设备接收所述控制设备发送的删除指令,并删除已存的流表,所述删除指令是所述控制设备在检测到PPPoE服务器和PPPoE客户端之间的链路故障后发送的。The forwarding device receives the deletion instruction sent by the control device, and deletes the stored flow table. The deletion instruction is sent by the control device after detecting a link failure between the PPPoE server and the PPPoE client.
相应的,参见图7,为另一实施例的流程示意图,包括:Correspondingly, referring to FIG. 7, it is a schematic flow chart of another embodiment, including:
71:控制设备接收转发设备发送的PPPoE控制报文;71: The control device receives the PPPoE control packet sent by the forwarding device;
72:所述控制设备根据所述PPPoE控制报文为PPPoE客户端分配第一信息,所述第一信息为所述PPPoE客户端发送第一PPPoE数据报文所需的信息;72: The control device allocates first information to the PPPoE client according to the PPPoE control packet, where the first information is information required by the PPPoE client to send a first PPPoE data packet;
73:所述控制设备将所述第一信息发送给所述转发设备。73: The control device sends the first information to the forwarding device.
可选的,所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文,所述第一信息包括第一会话标识ID;Optionally, the PPPoE control message includes a control message applied to the PPPoE discovery phase, and the first information includes a first session ID;
或,or,
所述PPPoE控制报文包括应用于PPPoE会话阶段的控制报文,所述第一信息包括第一IP地址;The PPPoE control message includes a control message applied to the PPPoE session phase, and the first information includes a first IP address;
或,or,
所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文和应用于PPPoE会话阶段的控制报文,所述第一信息包括第一会话标识ID和第一IP地址。The PPPoE control message includes a control message used in a PPPoE discovery phase and a control message used in a PPPoE session phase, and the first information includes a first session ID and a first IP address.
可选的,所述接收转发设备发送的PPPoE控制报文,包括:Optionally, the receiving and forwarding device sends the PPPoE control message, including:
接收转发设备发送的开放流OF报文,所述OF报文为所述转发设备对所述PPPoE控制报文进行封装后得到的。receiving an OpenFlow OF packet sent by the forwarding device, where the OF packet is obtained after the forwarding device encapsulates the PPPoE control packet.
可选的,所述控制设备接收的所述PPPoE控制报文是所述转发设备根据从所述控制设备接收的第一流表发送的。Optionally, the PPPoE control packet received by the control device is sent by the forwarding device according to the first flow table received from the control device.
可选的,该方法还包括:Optionally, the method also includes:
所述控制设备向所述转发设备发送第三流表,所述第三流表包括第三匹配域和第三操作域,所述第三匹配域包括会话ID字段和协议字段,且所述会话ID字段的数值为所述第一会话ID的值,所述协议字段的数值为表明报文为IP报文的值,所述第三操作域的操作包括将与所述第三匹配域匹配的报文解封装为公网数据报文并发送给网络侧。The control device sends a third flow table to the forwarding device, the third flow table includes a third matching field and a third operation field, the third matching field includes a session ID field and a protocol field, and the session The value of the ID field is the value of the first session ID, the value of the protocol field is a value indicating that the packet is an IP packet, and the operation of the third operation field includes matching with the third matching field The packet is decapsulated into a public network data packet and sent to the network side.
可选的,该方法还包括:Optionally, the method also includes:
所述控制设备向所述转发设备发送第四流表,所述第四流表包括第四匹配域和第四操作域,所述第四匹配域包括目的IP地址字段,且所述目的IP地址字段的数值为所述第一IP地址的值,所述第四操作域的操作包括将与所述第四匹配域匹配的报文封装为PPPoE数据报文并发送给所述PPPoE客户端。The control device sends a fourth flow table to the forwarding device, the fourth flow table includes a fourth matching field and a fourth operation field, the fourth matching field includes a destination IP address field, and the destination IP address The value of the field is the value of the first IP address, and the operation of the fourth operation field includes encapsulating the packet matching the fourth matching field into a PPPoE data packet and sending it to the PPPoE client.
可选的,本发明实施例中,转发设备可以具体为OF交换机,控制设备可以具体为OF控制器。Optionally, in this embodiment of the present invention, the forwarding device may be specifically an OF switch, and the control device may be specifically an OF controller.
本实施例通过转发设备将PPPoE客户端发送的PPPoE控制报文转发给控制设备,并将控制设备分配的第一信息发送给PPPoE客户端,实现转发设备对PPPoE的相关报文进行处理,实现在控制和转发分离的场景下支持PPPoE,进而可以在SDN设备上实现PPPoE。In this embodiment, the PPPoE control message sent by the PPPoE client is forwarded to the control device through the forwarding device, and the first information allocated by the control device is sent to the PPPoE client, so that the forwarding device can process the relevant messages of PPPoE. PPPoE is supported in scenarios where control and forwarding are separated, and PPPoE can be implemented on SDN devices.
图8为本发明PPPoE的处理方法另一实施例的流程示意图,本实施例的PPPoE客户端为用户家庭设备(Customer Premise Equipment,CPE)。本实施例包括:FIG. 8 is a schematic flowchart of another embodiment of a PPPoE processing method according to the present invention. The PPPoE client in this embodiment is a customer premise equipment (Customer Premise Equipment, CPE). This example includes:
81:OF控制器向OF交换机发送第一流表。81: The OF controller sends the first flow table to the OF switch.
第一流表的匹配域包括以太网类型字段,或者以太网类型字段和协议字段,用于指示要匹配的报文为PPPoE协商时的控制报文,或者PPP协议时的控制报文。The matching field of the first flow table includes an Ethertype field, or an Ethertype field and a protocol field, and is used to indicate that the packet to be matched is a control packet during PPPoE negotiation, or a control packet during PPP protocol.
具体的,match field中添加的内容用于表明:Specifically, the content added in the match field is used to indicate:
OFPXMT_OFB_ETH_TYPE为0x8863;或者,OFPXMT_OFB_ETH_TYPE is 0x8863; or,
OFPXMT_OFB_ETH_TYPE为0x8864并且OFPXMT_OFB_ETH_TYPE is 0x8864 and
OFPXMT_OFB_PPPOE_PPP_PROTO为0xC021或者0x8021。OFPXMT_OFB_PPPOE_PPP_PROTO is 0xC021 or 0x8021.
其中,match field中的内容可以采用类型长度值(Type Length Value,TLV)的方式,以OFPXMT_OFB_PPPOE_PPP_PROTO为0xC021为例,可以具体表示为:在T字段中添加OFPXMT_OFB_PPPOE_PPP_PROTO对应的数值(也就是41,当然可以理解的是,也可以定义其它数值),在V字段中添加0xC021。Among them, the content in the match field can be in the form of Type Length Value (TLV). Taking OFPXMT_OFB_PPPOE_PPP_PROTO as 0xC021 as an example, it can be specifically expressed as: add the value corresponding to OFPXMT_OFB_PPPOE_PPP_PROTO in the T field (that is, 41, of course you can It is understood that other values can also be defined), and 0xC021 is added in the V field.
另外,在指令域instructions可以添加动作:将报文从X接口转发,其中X接口是与OF控制器连接的接口。In addition, an action can be added in the instructions field: forward the message from the X interface, where the X interface is the interface connected to the OF controller.
通过该第一流表,OF交换机可以将PPPoE协商时的控制报文以及PPP协商时的控制报文转发给OF控制器。Through the first flow table, the OF switch can forward the control message during PPPoE negotiation and the control message during PPP negotiation to the OF controller.
82:OF交换机接收到CPE发送的PPPoE协商时的控制报文后,将控制报文封装为第一输入报文(packet_in)并发送给OF控制器。82: After receiving the PPPoE negotiation control packet sent by the CPE, the OF switch encapsulates the control packet into a first input packet (packet_in) and sends it to the OF controller.
83:OF控制器为用户分配会话ID,例如1234,并发送给CPE。83: The OF controller allocates a session ID, such as 1234, to the user and sends it to the CPE.
OF控制器可以将会话ID封装在第一输出报文(packet_out)中,OF交换机根据第一输入报文来自的接口将第一输出报文从相应的接口输出给CPE。The OF controller may encapsulate the session ID in the first output packet (packet_out), and the OF switch outputs the first output packet to the CPE through a corresponding interface according to the interface from which the first input packet comes.
84:OF交换机接收CPE发送的LCP报文或NCP报文,将LCP报文或NCP报文封装为第二输入报文(packet_in)并发送给控制器。84: The OF switch receives the LCP message or the NCP message sent by the CPE, encapsulates the LCP message or the NCP message into a second input message (packet_in) and sends it to the controller.
85:OF控制器为用户分配IP地址,如100.1.1.2并发送给CPE。85: The OF controller assigns an IP address, such as 100.1.1.2, to the user and sends it to the CPE.
OF控制器可以将IP地址封装在第二输出报文(packet_out)中,OF交换机根据第二输入报文来自的接口将第二输出报文从相应的接口输出给CPE。The OF controller may encapsulate the IP address in the second output packet (packet_out), and the OF switch outputs the second output packet to the CPE through a corresponding interface according to the interface from which the second input packet comes.
由于第一流表指示将PPPoE控制报文,包括PPPoE协商时的控制报文以及PPP协商时的控制报文发送给OF交换机,因此,OF交换机可以完成上述的PPPoE控制报文的转发。Since the first flow table indicates to send the PPPoE control packet, including the control packet during PPPoE negotiation and the control packet during PPP negotiation, to the OF switch, the OF switch can complete the above-mentioned forwarding of the PPPoE control packet.
另外,上述流程中,OF控制器可以与PPPoE服务器位于同一个物理设备中,或者OF控制器通过应用程序编程接口(Application Programming Interface,API)支持外部的PPPoE服务器,此时的OF控制器可以充当PPPoE服务器,PPPoE服务器发给PPPoE客户端的报文可以通过openflow的packet_out报文由OF控制器发送给OF交换机,再由OF交换机发给PPPoE客户端。In addition, in the above process, the OF controller can be located in the same physical device as the PPPoE server, or the OF controller can support an external PPPoE server through an application programming interface (Application Programming Interface, API). At this time, the OF controller can act as PPPoE server, the packet sent from the PPPoE server to the PPPoE client can be sent by the OF controller to the OF switch through the packet_out packet of openflow, and then sent to the PPPoE client by the OF switch.
在PPPoE协商过程中,服务器和客户端可以相互获知对方的MAC地址;并且PPPoE服务器会为客户端分配一个会话ID,后续双方的通信报文中都需要在PPPoE报文头中携带该会话ID。During the PPPoE negotiation process, the server and the client can learn each other's MAC address; and the PPPoE server will assign a session ID to the client, and the subsequent communication messages of both parties need to carry the session ID in the PPPoE message header.
在PPPoE的LCP阶段,PPPoE服务器需要完成用户的认证等操作,在NCP阶段,PPPoE需要给服务器分配IP地址。In the LCP phase of PPPoE, the PPPoE server needs to complete operations such as user authentication, and in the NCP phase, PPPoE needs to assign an IP address to the server.
在完成上述操作之后,PPPoE服务器可以获得如下信息的关联关系:After completing the above operations, the PPPoE server can obtain the association relationship of the following information:
用户的MAC地址、用户的IP地址、用户的会话ID等。User's MAC address, user's IP address, user's session ID, etc.
经过上述内容可以完成PPPoE协商和PPP协商,之后用户可以上线。After the above content, the PPPoE negotiation and PPP negotiation can be completed, and then the user can go online.
用户上线后,OF交换机需要完成数据报文的封装或解封装。此时,OF控制器还需要为OF交换机下发流表,用于指示OF交换机对数据报文的处理方式。其中,指示对数据报文进行处理的流表可以是在完成PPPoE协商和PPP协商后下发,也可以是在收到第一个数据报文后下发。After the user goes online, the OF switch needs to complete the encapsulation or decapsulation of the data packet. At this time, the OF controller also needs to issue a flow table to the OF switch, which is used to instruct the OF switch to process the data packet. Wherein, the flow table indicating to process the data packet may be issued after completing PPPoE negotiation and PPP negotiation, or may be issued after receiving the first data packet.
参见图9,为OF控制器在完成PPPoE协商和PPP协商之后下发用于指示对数据报文进行处理的流表,包括:Referring to Fig. 9, the flow table for instructing data packets to be processed is issued by the OF controller after completing PPPoE negotiation and PPP negotiation, including:
91:CPE与PPPoE服务器完成用户上线认证。91: The CPE and the PPPoE server complete the user online authentication.
其中,具体内容可以参见81~85。Among them, the specific content can refer to 81-85.
92:OF控制器向OF交换机发送第三流表;92: The OF controller sends the third flow table to the OF switch;
第三流表的匹配域包括会话ID字段和协议字段,会话ID字段的数值为指定值,协议字段表明报文为IP报文,指令域表明对报文进行解封装操作。The matching field of the third flow table includes a session ID field and a protocol field, the value of the session ID field is a specified value, the protocol field indicates that the packet is an IP packet, and the command field indicates that the packet is to be decapsulated.
例如,match field为:For example, the match field is:
OFPXMT_OFB_PPPOE_SESSION_ID为1234,并且OFPXMT_OFB_PPPOE_SESSION_ID is 1234, and
OFPXMT_OFB_PPPOE_PPP_PROTO为0x0021OFPXMT_OFB_PPPOE_PPP_PROTO is 0x0021
具体TLV表示时,可以包括两个TLV项,一项的T字段中的值为40,V字段中的值为1234,另一项的T字段中的值为41,V字段中的值为0x0021。When expressing a specific TLV, it can include two TLV items. The value in the T field of one item is 40, the value in the V field is 1234, the value in the T field of the other item is 41, and the value in the V field is 0x0021 .
Instructions为:Instructions are:
OFPAT_POP_PPPOE_HEADER,即表明动作为解封装。OFPAT_POP_PPPOE_HEADER indicates that the action is decapsulation.
93:OF控制器向OF交换机发送第四流表;93: The OF controller sends the fourth flow table to the OF switch;
第四流表的匹配域包括目的IP地址,且目的IP地址为指定值,所述指定值为PPPoE客户端的IP地址,指令域表明对报文进行封装操作。The matching field of the fourth flow table includes the destination IP address, and the destination IP address is a specified value, and the specified value is the IP address of the PPPoE client, and the instruction field indicates that the message is encapsulated.
例如,match field为:For example, the match field is:
OFPXMT_OFB_IPV4_DST为100.1.1.2OFPXMT_OFB_IPV4_DST is 100.1.1.2
Instructions为:Instructions are:
OFPAT_PUSH_PPPOE_HEADER,即表明动作为封装。OFPAT_PUSH_PPPOE_HEADER indicates that the action is encapsulation.
之后,after,
94:CPE向OF交换机发送第一个数据报文。94: The CPE sends the first data packet to the OF switch.
或者,参见图10,为OF控制器在接收到第一个数据报文后下发用于指示对数据报文进行处理的流表,包括:Or, referring to FIG. 10, the OF controller issues a flow table for instructing to process the data message after receiving the first data message, including:
101:CPE与PPPoE服务器完成用户上线认证。101: The CPE and the PPPoE server complete the user login authentication.
其中,具体内容可以参见81~85。Among them, the specific content can refer to 81-85.
102:CPE向OF交换机发送第一个数据报文。102: The CPE sends the first data packet to the OF switch.
103:OF交换机将该数据报文发送给OF控制器。103: The OF switch sends the data packet to the OF controller.
104:OF控制器向OF交换机发送第三流表。104: The OF controller sends the third flow table to the OF switch.
第三流表的具体内容可以参见92。For the specific content of the third flow table, refer to 92.
105:OF控制器向OF交换机发送第四流表。105: The OF controller sends the fourth flow table to the OF switch.
第四流表的具体内容可以参见93。For the specific content of the fourth flow table, refer to 93.
第四流表可以是OF交换机接收到网络侧发送的第一个数据报文之前发送的,或者,也可以是接收到网络侧发送的第一个数据报文之后发送的。The fourth flow table may be sent before the OF switch receives the first data message sent by the network side, or may be sent after receiving the first data message sent by the network side.
OF交换机在获取第三流表和第四流表之后,可以对数据报文进行相应处理。After the OF switch acquires the third flow table and the fourth flow table, it can process the data packet accordingly.
另外,上述的第一个数据报文可以是所述转发设备根据如下原则转发给控制设备的:所述转发设备将不能处理的报文或根据流表将设定类别的报文转发给控制设备,所述不能处理的报文或设定类型的报文包括所述第一个数据报文。In addition, the above-mentioned first data message may be forwarded by the forwarding device to the control device according to the following principle: the forwarding device forwards the message that cannot be processed or the message of the set category according to the flow table to the control device , the packet that cannot be processed or the packet of the set type includes the first data packet.
参见图11,为OF交换机对数据报文进行解封装时的处理流程,包括:Referring to Figure 11, the processing flow when the OF switch decapsulates the data message includes:
111:OF交换机接收CPE发送的PPPoE报文。111: The OF switch receives the PPPoE packet sent by the CPE.
112:OF交换机判断该报文的以太网类型字段是否为0x8864,若是,执行113,否则,执行116。112: The OF switch judges whether the Ethernet type field of the message is 0x8864, and if so, executes 113, otherwise, executes 116.
113:OF交换机判断该报文的会话ID是否为指定值,若是,执行114,否则,执行116。113: The OF switch judges whether the session ID of the message is a specified value, if yes, execute 114, otherwise, execute 116.
其中,指定值是OF控制器在PPPoE协商时分配给CPE的,例如为1234。Wherein, the specified value is allocated to the CPE by the OF controller during PPPoE negotiation, for example, 1234.
114:OF交换机判断该报文的协议字段是否为0x0021,若是,执行115,否则执行116。114: The OF switch judges whether the protocol field of the message is 0x0021, if so, executes 115, otherwise executes 116.
115:OF交换机将PPPoE报文解封装为IPoE报文。115: The OF switch decapsulates the PPPoE packet into an IPoE packet.
参见图12,由PPPoE报文解封装为IPoE报文,之后可以将该IPoE报文发送给网络侧。Referring to FIG. 12 , the PPPoE packet is decapsulated into an IPoE packet, and then the IPoE packet can be sent to the network side.
116:OF交换机丢弃该报文或者按协议处理。其中,按协议处理可以是指将该报文转发给OF控制器。116: The OF switch discards the packet or processes it according to the protocol. Wherein, processing according to the protocol may refer to forwarding the packet to the OF controller.
本实施例的解封装操作,可以根据多个流表完成,也可以根据一个流表完成。例如,一个流表时,该流表的match field表明需要匹配的项包括:以太网类型字段(OFPXMT_OFB_ETH_TYPE)为0x8864、会话ID(Session_ID)为指定值以及协议字段(OFPXMT_OFB_PPPOE_PPP_PROTO)为0x0021,在上述三项都匹配时,执行解封装操作。再例如,当存在多个流表时,可以是:第一个流表表明匹配到太网类型字段(OFPXMT_OFB_ETH_TYPE)为0x8864时,执行的操作为处理第二个流表,第二个流表表明匹配到会话ID(Session_ID)为指定值时,执行的操作为处理第三个流表,第三个流表表明匹配到协议字段(OFPXMT_OFB_PPPOE_PPP_PROTO)为0x0021,执行的操作为解封装。The decapsulation operation in this embodiment can be completed according to multiple flow tables, or can be completed according to one flow table. For example, for a flow table, the match field of the flow table indicates that the items to be matched include: the Ethernet type field (OFPXMT_OFB_ETH_TYPE) is 0x8864, the session ID (Session_ID) is a specified value, and the protocol field (OFPXMT_OFB_PPPOE_PPP_PROTO) is 0x0021. When all items match, the unpacking operation is performed. For another example, when there are multiple flow tables, it may be: when the first flow table indicates that the Ethernet type field (OFPXMT_OFB_ETH_TYPE) is 0x8864, the operation performed is to process the second flow table, and the second flow table indicates When the session ID (Session_ID) is matched to the specified value, the operation performed is to process the third flow table. The third flow table indicates that the matched protocol field (OFPXMT_OFB_PPPOE_PPP_PROTO) is 0x0021, and the operation performed is decapsulation.
参见图13,为OF交换机对数据报文进行封装时的处理流程,包括:Referring to Figure 13, the processing flow when encapsulating data packets for the OF switch includes:
131:OF交换机接收网络侧发送的IPoE报文。131: The OF switch receives the IPoE packet sent by the network side.
132:OF交换机判断该报文的目的IP地址是否为指定值,若是,执行133,否则,执行134。132: The OF switch judges whether the destination IP address of the message is a specified value, if yes, execute 133, otherwise, execute 134.
该指定值为OF控制器在完成PPP协议后分配给CPE的IP地址,例如100.1.1.2。The specified value is the IP address assigned to the CPE by the OF controller after completing the PPP protocol, for example, 100.1.1.2.
133:OF交换机将IPoE报文封装为PPPoE报文。133: The OF switch encapsulates the IPoE packet into a PPPoE packet.
参见图14,由IPoE报文封装为PPPoE报文,之后可以将该PPPoE报文发送给CPE。其中封装的会话ID为可以在用户上线认证完成后获取的IP地址与会话ID的对应关系确定。Referring to FIG. 14, the IPoE packet is encapsulated into a PPPoE packet, and then the PPPoE packet can be sent to the CPE. The encapsulated session ID is determined by the corresponding relationship between the IP address and the session ID that can be obtained after the user's online authentication is completed.
134:OF交换机丢弃该报文或者按协议处理。其中,按协议处理可以是指将该报文转发给OF控制器。134: The OF switch discards the packet or processes it according to the protocol. Wherein, processing according to the protocol may refer to forwarding the packet to the OF controller.
本实施例通过扩展现有的流表,可以实现OF交换机对PPPoE控制报文的转发,以及对PPPoE数据报文的解封装,以及对IPoE数据报文的封装。In this embodiment, by extending the existing flow table, the OF switch can realize the forwarding of the PPPoE control message, the decapsulation of the PPPoE data message, and the encapsulation of the IPoE data message.
图15为本发明PPPoE的处理方法另一实施例的流程示意图,本实施例针对的是保活机制。PPP协议定义了保活(keep alive)机制,PPPoE服务器为了支持这一功能,周期性在服务器和客户端之间发送保活报文。而当链路故障后需要及时终止保活。参见图15,包括:FIG. 15 is a schematic flowchart of another embodiment of the PPPoE processing method of the present invention, and this embodiment is aimed at the keep-alive mechanism. The PPP protocol defines a keep-alive mechanism. In order to support this function, the PPPoE server periodically sends keep-alive packets between the server and the client. And when the link fails, the keep-alive needs to be terminated in time. See Figure 15, including:
151:CPE与PPPoE完成用户上线认证。151: The CPE and PPPoE complete the user online authentication.
其中,具体内容可以参见81~85。Among them, the specific content can refer to 81-85.
152:CPE与OF交换机正常通信数据报文。152: The CPE communicates data packets with the OF switch normally.
具体内容可以参见图9或图10,以及图11和图13所示的流程。For details, refer to FIG. 9 or FIG. 10 , and the processes shown in FIG. 11 and FIG. 13 .
153:PPPoE服务器与CPE之间交互保活报文。153: Keep-alive packets are exchanged between the PPPoE server and the CPE.
154:当CPE与PPPoE服务器之间的链路故障时,OF控制器向OF交换机发送删除指令,以删除该CPE对应的流表,并停止保活报文的发送。154: When the link between the CPE and the PPPoE server fails, the OF controller sends a delete command to the OF switch, so as to delete the flow table corresponding to the CPE, and stop sending the keep-alive message.
其中,PPPoE服务器可以根据保活报文的接收情况确定链路是否故障,例如,检测到指示用户下线的PPPoE报文,或者,超过设定时间没有接收到PPPoE报文,或者,没有收到设定个数的PPPoE报文等。另外,在交互的保活报文中会包含会话ID,如果PPPoE服务器发现包含某一会话ID的报文没有收到响应,则PPPoE服务器可以向OF控制器发送该会话ID对应的链路故障的通知消息,OF控制器根据该通知消息可以在删除指令中包含该会话ID,以指示OF交换机删除与该会话ID关联的流表。OF交换机可以预先配置会话ID与用户信息的关联关系,当收到一个包含会话ID的删除指令时,可以删除与该会话ID关联的用户的所有流表。Among them, the PPPoE server can determine whether the link is faulty according to the reception of the keep-alive message. For example, it detects the PPPoE message indicating that the user goes offline, or does not receive the PPPoE message after the set time, or does not receive the Set the number of PPPoE packets, etc. In addition, the session ID will be included in the interactive keep-alive message. If the PPPoE server finds that the message containing a certain session ID has not received a response, the PPPoE server can send the link failure notification corresponding to the session ID to the OF controller. A notification message, according to which the OF controller can include the session ID in the deletion instruction, so as to instruct the OF switch to delete the flow table associated with the session ID. The OF switch can pre-configure the association relationship between the session ID and the user information, and when receiving a delete command containing the session ID, it can delete all the flow tables of the user associated with the session ID.
本实施例通过在链路故障后删除相应的流表,可以避免存储无效流表,提高存储效率。In this embodiment, by deleting the corresponding flow table after a link failure, storage of invalid flow tables can be avoided, and storage efficiency can be improved.
图16为本发明转发设备一实施例的结构示意图,可以具体位于OF交换机中或者就是OF交换机,该设备160包括接收器161和发送器162;接收器161用于接收PPPoE客户端发送的PPPoE控制报文;发送器162用于将所述接收器接收的所述PPPoE控制报文发送给控制设备;所述接收器161还用于接收所述控制设备发送的第一信息,所述第一信息为所述PPPoE客户端发送第一PPPoE数据报文所需的信息,由所述控制设备根据所述PPPoE控制报文分配;所述发送器还用于162将所述接收器接收的所述第一信息发送给所述PPPoE客户端Figure 16 is a schematic structural diagram of an embodiment of the forwarding device of the present invention, which may be specifically located in an OF switch or an OF switch, the device 160 includes a receiver 161 and a transmitter 162; the receiver 161 is used to receive the PPPoE control sent by the PPPoE client message; the transmitter 162 is used to send the PPPoE control message received by the receiver to the control device; the receiver 161 is also used to receive the first information sent by the control device, the first information The information required for sending the first PPPoE data message for the PPPoE client is distributed by the control device according to the PPPoE control message; A message is sent to the PPPoE client
可选地,所述发送器具体用于:Optionally, the transmitter is specifically used for:
根据接收到的第一流表将所述接收器接收的所述PPPoE控制报文发送给所述控制设备;sending the PPPoE control packet received by the receiver to the control device according to the received first flow table;
根据接收到的第二流表将所述第一信息发送给所述PPPoE客户端。Send the first information to the PPPoE client according to the received second flow table.
所述第一流表和第二流表可以是由所述控制设备发送的,也可以是由其他设备发送的。The first flow table and the second flow table may be sent by the control device, or may be sent by other devices.
可选的,所述接收器161接收的所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文,所述接收器161接收的所述第一信息包括第一会话ID;Optionally, the PPPoE control packet received by the receiver 161 includes a control packet applied to the PPPoE discovery phase, and the first information received by the receiver 161 includes a first session ID;
或,or,
所述接收器161接收的所述PPPoE控制报文包括应用于PPPoE会话阶段的控制报文,所述接收器161接收的所述第一信息包括第一IP地址;The PPPoE control packet received by the receiver 161 includes a control packet applied to the PPPoE session phase, and the first information received by the receiver 161 includes a first IP address;
或,or,
所述接收器161接收的所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文和应用于PPPoE会话阶段的控制报文,所述接收器161接收的所述第一信息包括第一会话标识ID和第一IP地址。The PPPoE control message received by the receiver 161 includes a control message applied to the PPPoE discovery phase and a control message applied to the PPPoE session phase, and the first information received by the receiver 161 includes the first session Identification ID and first IP address.
可选的,参见图17,该设备还包括:处理器163。Optionally, referring to FIG. 17 , the device further includes: a processor 163 .
可选的,处理器163用于在所述发送器发送所述PPPoE控制报文之前,将所述接收器161接收的所述PPPoE控制报文封装为开放流OF报文;所述发送器162具体用于将所述OF报文发送给所述控制设备。也就是说,发送器162将所述接收器接收的所述PPPoE控制报文发送给控制设备的具体操作可以通过将所述OF报文发送给所述控制设备来实现。Optionally, the processor 163 is configured to encapsulate the PPPoE control packet received by the receiver 161 into an Open Flow OF packet before the sender sends the PPPoE control packet; the sender 162 It is specifically used to send the OF message to the control device. That is to say, the specific operation that the transmitter 162 sends the PPPoE control packet received by the receiver to the control device may be implemented by sending the OF packet to the control device.
可选的,所述接收器161还用于接收所述PPPoE客户端发送的第一PPPoE数据报文;所述处理器163用于:确定所述第一PPPoE数据报文的会话ID是否为所述第一会话ID,以及确定所述第一PPPoE数据报文中是否封装有IP报文;以及,在所述第一PPPoE数据报文的会话ID是所述第一会话ID,且所述第一PPPoE数据报文中封装有所述IP报文时,根据接收到的第三流表,将所述第一PPPoE数据报文解封装为第一公网数据报文;所述发送器162还用于:根据所述第三流表向公网发送所述第一公网数据报文。Optionally, the receiver 161 is also configured to receive the first PPPoE data packet sent by the PPPoE client; the processor 163 is configured to: determine whether the session ID of the first PPPoE data packet is the the first session ID, and determine whether an IP packet is encapsulated in the first PPPoE data packet; and, the session ID in the first PPPoE data packet is the first session ID, and the first session ID When the IP message is encapsulated in a PPPoE data message, decapsulate the first PPPoE data message into a first public network data message according to the received third flow table; the transmitter 162 also It is used for: sending the first public network data message to the public network according to the third flow table.
可选的,所述接收器161还用于:从公网接收第二公网数据报文;所述处理器163用于:确定所述第二公网数据报文的目的地址是否为所述第一IP地址;以及,在确定所述第二公网数据报文的目的地址是为所述第一IP地址后,根据接收到的第四流表将所述第二公网数据报文封装为第二PPPoE数据报文;所述发送器162还用于:根据所述第四流表将所述第二PPPoE数据报文发送至所述PPPoE客户端。Optionally, the receiver 161 is further configured to: receive a second public network data packet from the public network; the processor 163 is configured to: determine whether the destination address of the second public network data packet is the The first IP address; and, after determining that the destination address of the second public network data message is the first IP address, encapsulating the second public network data message according to the received fourth flow table is the second PPPoE data packet; the sender 162 is further configured to: send the second PPPoE data packet to the PPPoE client according to the fourth flow table.
可选的,所述接收器161还用于:接收所述控制设备发送的第三流表,所述第三流表包括第三匹配域和第三操作域,所述第三匹配域包括会话ID字段和协议字段,且所述会话ID字段的数值为所述第一会话ID的值,所述协议字段的数值为表明报文为IP报文的值,所述第三操作域的操作包括将与所述第三匹配域匹配的报文解封装为公网数据报文并发送给网络侧。以便将上述的第一PPPoE数据报文解封装为第一公网数据报文。Optionally, the receiver 161 is further configured to: receive a third flow table sent by the control device, the third flow table includes a third matching field and a third operation field, and the third matching field includes a session ID field and protocol field, and the value of the session ID field is the value of the first session ID, the value of the protocol field is a value indicating that the message is an IP message, and the operation of the third operation field includes Decapsulating the packet matching the third matching field into a public network data packet and sending it to the network side. In order to decapsulate the first PPPoE data packet into the first public network data packet.
需要说明的是,本实施例中的第三流表可以有多种实现方式,本实施例中的第三流表仅是多种实现方式中的一种。此外,第三流表可以从所述控制设备接收,可以从其他设备接收。It should be noted that the third flow table in this embodiment may have multiple implementation manners, and the third flow table in this embodiment is only one of the multiple implementation manners. In addition, the third flow table may be received from the control device, and may be received from other devices.
可选的,所述接收器161还用于:接收所述控制设备发送的第四流表,所述第四流表包括第四匹配域和第四操作域,所述第四匹配域包括目的IP地址字段,且所述目的IP地址字段的数值为所述第一IP地址的值,所述第四操作域的操作包括将与所述第四匹配域匹配的报文封装为PPPoE数据报文并发送给所述PPPoE客户端。以便将上述的第二公网数据报文封装为第二PPPoE数据报文。Optionally, the receiver 161 is further configured to: receive a fourth flow table sent by the control device, the fourth flow table includes a fourth matching field and a fourth operation field, and the fourth matching field includes a destination IP address field, and the value of the destination IP address field is the value of the first IP address, and the operation of the fourth operation domain includes encapsulating the packet matched with the fourth matching domain into a PPPoE data packet And send to the PPPoE client. In order to encapsulate the above-mentioned second public network data packet into a second PPPoE data packet.
需要说明的是,本实施例中的第四流表可以有多种实现方式,本实施例中的第四流表仅是多种实现方式中的一种。此外,第四流表可以从所述控制设备接收,可以从其他设备接收。It should be noted that the fourth flow table in this embodiment may have multiple implementation manners, and the fourth flow table in this embodiment is only one of the multiple implementation manners. In addition, the fourth flow table may be received from the control device, and may be received from other devices.
可选的,所述处理器163得到的所述第一公网数据报文包括:Optionally, the first public network data packet obtained by the processor 163 includes:
IP报文、IPoE报文或IPoA报文。IP packets, IPoE packets, or IPoA packets.
可选的,第二公网数据报文包括:IP报文、IPoE报文或IPoA报文。Optionally, the second public network data packet includes: an IP packet, an IPoE packet or an IPoA packet.
可选地,在硬件实现上,以上的接收器和发送器可以统称为收发器,上述的处理器可以为中央处理单元(CPU)、微处理器、单片机等。Optionally, in terms of hardware implementation, the above receivers and transmitters may be collectively referred to as transceivers, and the above processors may be central processing units (CPUs), microprocessors, single-chip microcomputers, and the like.
可选地,本实施例中的所述转发设备为与图1至15中任一个对应的实施例中描述的转发设备Optionally, the forwarding device in this embodiment is the forwarding device described in the embodiment corresponding to any one of Figures 1 to 15
本实施例通过转发设备将PPPoE客户端发送的PPPoE控制报文发送给控制设备,并将控制设备分配的第一信息分配给PPPoE客户端,可以实现转发设备对PPPoE的相关报文进行处理,实现在控制和转发分离的场景下支持PPPoE,进而可以在SDN设备上实现PPPoE。In this embodiment, the PPPoE control message sent by the PPPoE client is sent to the control device through the forwarding device, and the first information allocated by the control device is distributed to the PPPoE client, so that the forwarding device can process the relevant messages of PPPoE to realize Support PPPoE in the scenario where control and forwarding are separated, and then PPPoE can be implemented on SDN devices.
图18为本发明控制设备另一实施例的结构示意图,该控制设备可以具体位于OF控制器中或者就是OF控制器,该设备180包括接收器181、处理器182和发送器183;接收器181用于接收转发设备发送的PPPoE控制报文;处理器182用于根据所述接收器181接收的所述PPPoE控制报文为PPPoE客户端分配第一信息,所述第一信息为所述PPPoE客户端发送第一PPPoE数据报文所需的信息;发送器183用于将所述处理器182得到的所述第一信息发送给所述转发设备。Figure 18 is a schematic structural diagram of another embodiment of the control device of the present invention, the control device may be located in the OF controller or just the OF controller, the device 180 includes a receiver 181, a processor 182 and a transmitter 183; the receiver 181 For receiving the PPPoE control message sent by the forwarding device; the processor 182 is used for distributing first information for the PPPoE client according to the PPPoE control message received by the receiver 181, and the first information is the PPPoE client The terminal sends the information required by the first PPPoE data packet; the sender 183 is configured to send the first information obtained by the processor 182 to the forwarding device.
可选的,所述接收器181接收的所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文,所述处理器182得到的所述第一信息包括第一会话ID;Optionally, the PPPoE control packet received by the receiver 181 includes a control packet applied to the PPPoE discovery phase, and the first information obtained by the processor 182 includes a first session ID;
或,or,
所述接收器181接收的所述PPPoE控制报文包括应用于PPPoE会话阶段的控制报文,所述处理器182得到的所述第一信息包括第一IP地址;The PPPoE control packet received by the receiver 181 includes a control packet applied to a PPPoE session phase, and the first information obtained by the processor 182 includes a first IP address;
或,or,
所述接收器181接收的所述PPPoE控制报文包括应用于PPPoE发现阶段的控制报文和应用于PPPoE会话阶段的控制报文,所述处理器182得到的所述第一信息包括第一会话标识ID和第一IP地址。The PPPoE control message received by the receiver 181 includes a control message applied to the PPPoE discovery phase and a control message applied to the PPPoE session phase, and the first information obtained by the processor 182 includes a first session Identification ID and first IP address.
可选的,所述接收器181具体用于:Optionally, the receiver 181 is specifically used for:
接收转发设备发送的OF报文,所述OF报文为所述转发设备对所述PPPoE控制报文进行封装后得到的。也就是说,所述控制设备接收到的PPPoE控制报文是封装在所述OF报文中的。Receive the OF message sent by the forwarding device, where the OF message is obtained after the forwarding device encapsulates the PPPoE control message. That is to say, the PPPoE control packet received by the control device is encapsulated in the OF packet.
可选的,所述接收器181接收的所述PPPoE控制报文是所述转发设备根据从所述控制设备接收的第一流表发送的。所述第一流表可以从其他设备接收。Optionally, the PPPoE control packet received by the receiver 181 is sent by the forwarding device according to the first flow table received from the control device. The first flow table may be received from other devices.
可选的,所述发送器183还用于:Optionally, the transmitter 183 is also used for:
向所述转发设备发送第三流表,所述第三流表包括第三匹配域和第三操作域,所述第三匹配域包括会话ID字段和协议字段,且所述会话ID字段的数值为所述第一会话ID的值,所述协议字段的数值为表明报文为IP报文的值,所述第三操作域的操作包括将与所述第三匹配域匹配的报文解封装为公网数据报文并发送给网络侧。以便将上述的第一PPPoE数据报文解封装为第一公网数据报文。Send a third flow table to the forwarding device, the third flow table includes a third matching field and a third operation field, the third matching field includes a session ID field and a protocol field, and the value of the session ID field is the value of the first session ID, the value of the protocol field is a value indicating that the packet is an IP packet, and the operation of the third operation field includes decapsulating the packet matching the third matching field It is a public network data packet and sent to the network side. In order to decapsulate the first PPPoE data packet into the first public network data packet.
需要说明的是,本实施例中的第三流表可以有多种实现方式,本实施例中的第三流表仅是多种实现方式中的一种。此外,第三流表可以从所述控制设备接收,可以从其他设备接收。It should be noted that the third flow table in this embodiment may have multiple implementation manners, and the third flow table in this embodiment is only one of the multiple implementation manners. In addition, the third flow table may be received from the control device, and may be received from other devices.
可选的,所述发送器183还用于:Optionally, the transmitter 183 is also used for:
向所述转发设备发送第四流表,所述第四流表包括第四匹配域和第四操作域,所述第四匹配域包括目的IP地址字段,且所述目的IP地址字段的数值为所述第一IP地址的值,所述第四操作域的操作包括将与所述第四匹配域匹配的报文封装为PPPoE数据报文并发送给所述PPPoE客户端。以便将上述的第二公网数据报文封装为第二PPPoE数据报文。Sending a fourth flow table to the forwarding device, the fourth flow table includes a fourth matching field and a fourth operation field, the fourth matching field includes a destination IP address field, and the value of the destination IP address field is The value of the first IP address, the operation of the fourth operation field includes encapsulating the packet matching the fourth matching field into a PPPoE data packet and sending it to the PPPoE client. In order to encapsulate the above-mentioned second public network data packet into a second PPPoE data packet.
需要说明的是,本实施例中的第四流表可以有多种实现方式,本实施例中的第四流表仅是多种实现方式中的一种。此外,第四流表可以从所述控制设备接收,可以从其他设备接收。It should be noted that the fourth flow table in this embodiment may have multiple implementation manners, and the fourth flow table in this embodiment is only one of the multiple implementation manners. In addition, the fourth flow table may be received from the control device, and may be received from other devices.
可选地,在硬件实现上,接收器和发送器可以统称为收发器,处理器可以为中央处理单元(CPU)、微处理器、单片机等。Optionally, in terms of hardware implementation, the receiver and the transmitter may be collectively referred to as a transceiver, and the processor may be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, and the like.
可选地,本实施例中的控制设备可以为与图1至15中任一个对应的实施例中描述的控制设备。Optionally, the control device in this embodiment may be the control device described in the embodiment corresponding to any one of FIGS. 1 to 15 .
本实施例通过转发设备将PPPoE客户端发送的PPPoE控制报文发送给控制设备,并将控制设备分配的第一信息分配给PPPoE客户端,可以实现转发设备对PPPoE的相关报文进行处理,实现在控制和转发分离的场景下支持PPPoE,进而可以在SDN设备上实现PPPoE。In this embodiment, the PPPoE control message sent by the PPPoE client is sent to the control device through the forwarding device, and the first information allocated by the control device is distributed to the PPPoE client, so that the forwarding device can process the relevant messages of PPPoE to realize Support PPPoE in the scenario where control and forwarding are separated, and then PPPoE can be implemented on SDN devices.
图19为本发明PPPoE的处理系统一实施例的结构示意图,该系统190包括转发设备191和控制设备192;其中,转发设备可以如图16或图17所示或者可以为与图1至17中任一个对应的实施例中描述的转发设备,控制设备可以如图18所示或者可以为与图1至15中任一个对应的或与图18对应的实施例中描述的控制设备。Figure 19 is a schematic structural diagram of an embodiment of the PPPoE processing system of the present invention, the system 190 includes a forwarding device 191 and a control device 192; wherein, the forwarding device may be as shown in Figure 16 or Figure 17 or may be the same as that shown in Figures 1 to 17 The forwarding device and the control device described in any corresponding embodiment may be as shown in FIG. 18 or may be the control device corresponding to any one of FIGS. 1 to 15 or described in the embodiment corresponding to FIG. 18 .
本实施例通过转发设备将PPPoE客户端发送的PPPoE控制报文发送给控制设备,并将控制设备分配的第一信息分配给PPPoE客户端,可以实现转发设备对PPPoE的相关报文进行处理,实现在控制和转发分离的场景下支持PPPoE,进而可以在SDN设备上实现PPPoE。In this embodiment, the PPPoE control message sent by the PPPoE client is sent to the control device through the forwarding device, and the first information allocated by the control device is distributed to the PPPoE client, so that the forwarding device can process the relevant messages of PPPoE to realize Support PPPoE in the scenario where control and forwarding are separated, and then PPPoE can be implemented on SDN devices.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the above-described system, device, and unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes. .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions described in each embodiment are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310141854.7A CN104125191B (en) | 2013-04-23 | 2013-04-23 | Processing method, equipment and the system of point-to-point protocol based on Ethernet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310141854.7A CN104125191B (en) | 2013-04-23 | 2013-04-23 | Processing method, equipment and the system of point-to-point protocol based on Ethernet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104125191A CN104125191A (en) | 2014-10-29 |
CN104125191B true CN104125191B (en) | 2017-09-26 |
Family
ID=51770458
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310141854.7A Active CN104125191B (en) | 2013-04-23 | 2013-04-23 | Processing method, equipment and the system of point-to-point protocol based on Ethernet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104125191B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104917849B (en) * | 2014-03-11 | 2018-09-07 | 华为技术有限公司 | A kind of message treatment method, access controller and network node |
CN104580146B (en) * | 2014-12-02 | 2017-10-31 | 重庆旭贤科技发展有限公司 | The route control system independently selected based on the PPPoE users for shunting gateway |
CN104539580B (en) * | 2014-12-02 | 2017-10-31 | 重庆旭贤科技发展有限公司 | The route control method independently selected based on the PPPoE users for shunting gateway |
CN105871964B (en) | 2015-01-23 | 2020-08-07 | 中兴通讯股份有限公司 | User equipment UE processing method and device |
CN106961412B (en) * | 2016-01-11 | 2020-04-24 | 中国移动通信集团公司 | Message conversion method, device and system |
CN107948082A (en) * | 2016-10-12 | 2018-04-20 | 中国电信股份有限公司 | The processing method and system and agent apparatus of point-to-point protocol on Ethernet |
CN108259453B (en) | 2017-05-31 | 2020-03-06 | 新华三技术有限公司 | Message forwarding method and device |
CN107547338B (en) * | 2017-05-31 | 2020-12-29 | 新华三技术有限公司 | Message forwarding method and device |
CN108259633B (en) | 2017-05-31 | 2020-05-12 | 新华三技术有限公司 | Method, system and device for realizing management message three-layer communication |
CN109672594B (en) * | 2017-10-13 | 2021-12-03 | 中国电信股份有限公司 | IPoE message processing method and device and broadband remote access server |
CN109768905A (en) * | 2019-03-13 | 2019-05-17 | 深信服科技股份有限公司 | A kind of method, system, equipment and the storage medium of PPPoE message transmissions |
CN110943897A (en) * | 2019-10-08 | 2020-03-31 | 中移(杭州)信息技术有限公司 | PPPoE data message transmission method, device, equipment and storage medium |
CN111162976B (en) * | 2019-12-20 | 2021-03-02 | 北京邮电大学 | A kind of campus network PPPoE proxy dialing method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1486025A (en) * | 2003-08-22 | 2004-03-31 | 北京港湾网络有限公司 | Checking method of PPPoE L2 transparent transmission port-username binding |
CN1790985A (en) * | 2004-12-13 | 2006-06-21 | 华为技术有限公司 | Method for realizing synchronous identification between different identification control equipments |
CN101030876A (en) * | 2007-04-06 | 2007-09-05 | 中兴通讯股份有限公司 | Method for realizing PPPoE packet-broadcasting service |
CN101212398A (en) * | 2006-12-29 | 2008-07-02 | 王立刚 | Access system and method |
CN101257420A (en) * | 2007-03-02 | 2008-09-03 | 华为技术有限公司 | A point-to-point protocol access method, system and access node device |
CN101621515A (en) * | 2009-08-07 | 2010-01-06 | 中兴通讯股份有限公司 | Access method based on point-to-point protocol on Ethernet and exchanger |
CN102035867A (en) * | 2009-09-29 | 2011-04-27 | 重庆旭贤科技发展有限公司 | Multipath PPPoE (Point-to-Point Protocol over Ethernet) fusion gateway system |
CN103051539A (en) * | 2012-12-14 | 2013-04-17 | 中兴通讯股份有限公司 | DHT-based (distributed hash table-based) control network implementation method, system and network controller |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4791252B2 (en) * | 2006-05-22 | 2011-10-12 | 株式会社日立製作所 | Packet transfer device, packet transfer system, user terminal device, and packet transfer method |
-
2013
- 2013-04-23 CN CN201310141854.7A patent/CN104125191B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1486025A (en) * | 2003-08-22 | 2004-03-31 | 北京港湾网络有限公司 | Checking method of PPPoE L2 transparent transmission port-username binding |
CN1790985A (en) * | 2004-12-13 | 2006-06-21 | 华为技术有限公司 | Method for realizing synchronous identification between different identification control equipments |
CN101212398A (en) * | 2006-12-29 | 2008-07-02 | 王立刚 | Access system and method |
CN101257420A (en) * | 2007-03-02 | 2008-09-03 | 华为技术有限公司 | A point-to-point protocol access method, system and access node device |
CN101030876A (en) * | 2007-04-06 | 2007-09-05 | 中兴通讯股份有限公司 | Method for realizing PPPoE packet-broadcasting service |
CN101621515A (en) * | 2009-08-07 | 2010-01-06 | 中兴通讯股份有限公司 | Access method based on point-to-point protocol on Ethernet and exchanger |
CN102035867A (en) * | 2009-09-29 | 2011-04-27 | 重庆旭贤科技发展有限公司 | Multipath PPPoE (Point-to-Point Protocol over Ethernet) fusion gateway system |
CN103051539A (en) * | 2012-12-14 | 2013-04-17 | 中兴通讯股份有限公司 | DHT-based (distributed hash table-based) control network implementation method, system and network controller |
Non-Patent Citations (1)
Title |
---|
Omar Ei Ferkouss;Racha BenAli;Yues Lemieux;Cherkaoui Omar.Performance model for mapping processing tasks to openflow switch resources.《2012 IEEE Iternational Conference on Communications (ICC)》.2012,第1476-1481页. * |
Also Published As
Publication number | Publication date |
---|---|
CN104125191A (en) | 2014-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104125191B (en) | Processing method, equipment and the system of point-to-point protocol based on Ethernet | |
US8908704B2 (en) | Switch with dual-function management port | |
US7483996B2 (en) | Techniques for migrating a point to point protocol to a protocol for an access network | |
US11909551B2 (en) | Broadband remote access server (BRAS) system-based packet encapsulation | |
US20220191139A1 (en) | Reliable generic routing encapsulation tunnels | |
US11627077B2 (en) | Reliable overlay based on reliable transport layer | |
CN106713100B (en) | A kind of method, CPE and convergence device for establishing tunnel automatically | |
WO2014019205A1 (en) | Method, apparatus, and system for processing data packet | |
CN104993993B (en) | A kind of message processing method, equipment and system | |
US20210409288A1 (en) | Packet Transmission Method, Apparatus, and System | |
CN104521220B (en) | Message processing method and equipment | |
CN103597780B (en) | Communication mechanism for multiple interface network nodes | |
CN100561969C (en) | A Broadband Access Method Based on PPPoE | |
US9172554B2 (en) | Method and network access device for enabling data forwarding between different physical mediums | |
CN107483369B (en) | Message processing method and virtual switch | |
JP3757863B2 (en) | Access network equipment | |
CN101060456B (en) | Ethernet point-to-point protocol-based broad band access method and system | |
CN107342940A (en) | The generation method and device and message processing method and device of a kind of control information | |
EP4287567A1 (en) | Data processing method, apparatus and chip | |
CN113542395B (en) | Message processing method and message processing system | |
US8583822B2 (en) | Method and system for minimum frame size support for a communication protocol encapsulated over Ethernet | |
CN103460675A (en) | Cluster and forwarding method | |
CN110943896B (en) | PPPoE data message transmission method, device, equipment and storage medium | |
CN101030877B (en) | A Method of Realizing Multicast Service by Point-to-Point Protocol | |
WO2006064561A1 (en) | Virtual private network system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |