CN110650077A - A method and system for separating L2TP protocol control and forwarding - Google Patents

A method and system for separating L2TP protocol control and forwarding Download PDF

Info

Publication number
CN110650077A
CN110650077A CN201810674641.3A CN201810674641A CN110650077A CN 110650077 A CN110650077 A CN 110650077A CN 201810674641 A CN201810674641 A CN 201810674641A CN 110650077 A CN110650077 A CN 110650077A
Authority
CN
China
Prior art keywords
l2tp
lns
protocol
bng
lac
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.)
Withdrawn
Application number
CN201810674641.3A
Other languages
Chinese (zh)
Inventor
花荣荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201810674641.3A priority Critical patent/CN110650077A/en
Publication of CN110650077A publication Critical patent/CN110650077A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00—Data switching networks
    • H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46—Interconnection of networks
    • H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling

Landscapes

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

Abstract

本发明公开了一种L2TP协议控制与转发分离的方法及系统,其方法包括:LAC‑U接收用户终端发送的PPPoE协议报文,并将所述PPPoE协议报文转发给BNG/vBNG‑C;所述LAC‑U接收所述BNG/vBNG‑C根据所述PPPoE协议报文反馈的第一L2TP协议报文,并将所述第一L2TP协议报文转发给LNS‑U,其中,所述第一L2TP协议报文中携带所述LNS‑U的IP地址;所述LAC‑U接收所述LNS‑U根据所述第一L2TP协议报文反馈的第二L2TP协议报文,并根据所述第二L2TP协议报文建立与所述LNS‑U之间的L2TP隧道与会话。

The invention discloses a method and system for separating L2TP protocol control and forwarding. The method includes: a LAC-U receives a PPPoE protocol message sent by a user terminal, and forwards the PPPoE protocol message to a BNG/vBNG-C; The LAC-U receives the first L2TP protocol message fed back by the BNG/vBNG-C according to the PPPoE protocol message, and forwards the first L2TP protocol message to the LNS-U, wherein the first L2TP protocol message is An L2TP protocol packet carries the IP address of the LNS-U; the LAC-U receives the second L2TP protocol packet fed back by the LNS-U according to the first L2TP protocol packet, and according to the first L2TP protocol packet Two L2TP protocol packets establish an L2TP tunnel and session with the LNS-U.

Description

一种L2TP协议控制与转发分离的方法及系统A method and system for separating L2TP protocol control and forwarding

技术领域technical field

本发明涉及通信技术领域,特别涉及一种L2TP协议控制与转发分离的方法及系统。The present invention relates to the technical field of communications, in particular to a method and system for separating L2TP protocol control and forwarding.

背景技术Background technique

随着SDN(Software Defined Network,软件定义网络)技术和NFV(NetworkFunction Virtualization,网络功能虚拟化)技术的发展,传统的网元设备从专业化朝着通用化演进。传统网元设备从专业化朝着通用化演进主要要解决两个解耦:控制与转发的解耦、软件与硬件的解耦。With the development of SDN (Software Defined Network, Software Defined Network) technology and NFV (Network Function Virtualization, Network Function Virtualization) technology, traditional network element devices have evolved from specialization to generalization. The evolution of traditional network element equipment from specialization to generalization mainly requires two decouplings: decoupling of control and forwarding, and decoupling of software and hardware.

BNG(Broadcast Network Gateway,宽带网络网关)作为传统的宽带接入网关设备,在用户宽带接入业务和场景中非常重要,L2TP(Layer 2Tunnel Protocol,第二层隧道协议)用户接入是BNG设备一个重要的功能。对BNG设备L2TP用户接入上的主要要求是用户认证、接入控制等。随着各种互联网业务的层出不穷,对BNG设备支持的L2TP用户会话数要求不断提高、对L2TP用户接入带宽不断提高、尤其对设备对外提供业务开放、可编程的能力的要求越来越高。基于这些因素,BNG设备非常有必要基于SDN/NFV的架构实现前面提到的两个解耦。As a traditional broadband access gateway device, BNG (Broadcast Network Gateway) is very important in user broadband access services and scenarios. L2TP (Layer 2Tunnel Protocol, Layer 2 Tunnel Protocol) user access is a BNG device. important function. The main requirements for BNG equipment L2TP user access are user authentication and access control. With the continuous emergence of various Internet services, the requirements for the number of L2TP user sessions supported by BNG devices continue to increase, the access bandwidth for L2TP users continues to increase, and the requirements for devices to provide open and programmable services to the outside world are getting higher and higher. Based on these factors, it is very necessary for BNG devices to realize the two decouplings mentioned above based on the SDN/NFV architecture.

BNG转发与控制的解耦是一种趋势,转发与控制解耦后,控制面可以管理多个转发面,进行多个转发面之间用户、流量、资源的灵活调度,和单机相比设备的利用率和可靠性都能得到大幅的提升。因此,随着BNG转发与控制解耦的实现,L2TP用户接入协议也要进行转发与控制的解耦。The decoupling of BNG forwarding and control is a trend. After the forwarding and control are decoupled, the control plane can manage multiple forwarding planes and perform flexible scheduling of users, traffic, and resources among multiple forwarding planes. Utilization and reliability can be greatly improved. Therefore, with the realization of the decoupling of BNG forwarding and control, the L2TP user access protocol also needs to decouple forwarding and control.

发明内容SUMMARY OF THE INVENTION

根据本发明实施例提供的方案解决了现有技术中无法实现L2TP协议转发与控制的分离问题。The solution provided according to the embodiment of the present invention solves the problem that the separation between forwarding and control of the L2TP protocol cannot be realized in the prior art.

根据本发明实施例提供的一种L2TP协议控制与转发分离的方法,包括:A method for separating L2TP protocol control and forwarding provided according to an embodiment of the present invention includes:

LAC-U(L2TP Access Concentrator-User Plane,L2TP接入汇聚点-转发面)接收用户终端发送的PPPoE协议报文,并将所述PPPoE协议报文转发给BNG/vBNG-C(BNG/vBNGControl Plane,BNG/vBNG控制面);The LAC-U (L2TP Access Concentrator-User Plane, L2TP access convergence point-forwarding plane) receives the PPPoE protocol packet sent by the user terminal, and forwards the PPPoE protocol packet to the BNG/vBNG-C (BNG/vBNG Control Plane , BNG/vBNG control plane);

所述LAC-U接收所述BNG/vBNG-C根据所述PPPoE协议报文反馈的第一L2TP协议报文,并将所述第一L2TP协议报文转发给LNS-U(L2TP Network Server User Plane,L2TP网络服务器-转发面),其中,所述第一L2TP协议报文中携带所述LNS-U的IP地址;The LAC-U receives the first L2TP protocol packet fed back by the BNG/vBNG-C according to the PPPoE protocol packet, and forwards the first L2TP protocol packet to the LNS-U (L2TP Network Server User Plane , L2TP network server-forwarding plane), wherein, the IP address of the LNS-U is carried in the first L2TP protocol packet;

所述LAC-U接收所述LNS-U根据所述第一L2TP协议报文反馈的第二L2TP协议报文,并根据所述第二L2TP协议报文建立与所述LNS-U之间的L2TP隧道与会话。The LAC-U receives the second L2TP protocol message fed back by the LNS-U according to the first L2TP protocol message, and establishes an L2TP with the LNS-U according to the second L2TP protocol message Tunnels and sessions.

优选地,在所述LAC-U根据所述第二L2TP协议报文建立与所述LNS-U之间的L2TP隧道与会话之后,还包括:Preferably, after the LAC-U establishes the L2TP tunnel and session with the LNS-U according to the second L2TP protocol message, the method further includes:

所述LAC-U在接收到用户终端发送的数据转发流的情况下,将所述数据转发流发送给所述LNS-U;The LAC-U sends the data forwarding flow to the LNS-U in the case of receiving the data forwarding flow sent by the user terminal;

所述LAC-U在接收到用户终端发送的控制报文的情况下,经由所述LNS-U将所述控制报文转发至所述BNG/vBNG-C,以便所述BNG/vBNG-C进行会话协商及地址分配,并在会话协商后向所述LNS-U下发用户表项。In the case of receiving the control packet sent by the user terminal, the LAC-U forwards the control packet to the BNG/vBNG-C via the LNS-U, so that the BNG/vBNG-C can Session negotiation and address allocation, and deliver user entries to the LNS-U after session negotiation.

优选地,在LAC-U接收用户终端发送的PPPoE协议报文,并将所述PPPoE协议报文转发给BNG/vBNG-C之后,还包括:Preferably, after the LAC-U receives the PPPoE protocol packet sent by the user terminal and forwards the PPPoE protocol packet to the BNG/vBNG-C, the method further includes:

所述BNG/vBNG-C根据所述PPPoE协议报文判断所述用户终端是否为L2TP终端;The BNG/vBNG-C determines whether the user terminal is an L2TP terminal according to the PPPoE protocol message;

在判断结果为是的情况下,构建所述第一L2TP协议报文,并将所述第一协议L2TP报文发送给所述LAC-U。If the determination result is yes, construct the first L2TP protocol packet, and send the first protocol L2TP packet to the LAC-U.

优选地,在所述LAC-U接收所述BNG/vBNG-C根据所述PPPoE协议报文反馈的第一L2TP协议报文,并将所述第一L2TP协议报文转发给LNS-U之后,所述方法还包括:Preferably, after the LAC-U receives the first L2TP protocol packet fed back by the BNG/vBNG-C according to the PPPoE protocol packet, and forwards the first L2TP protocol packet to the LNS-U, The method also includes:

所述LNS-U将所述第一L2TP协议报文发送给所述BNG/vBNG-C;sending, by the LNS-U, the first L2TP protocol packet to the BNG/vBNG-C;

所述BNG/vBNG-C根据所述第一L2TP协议报文构建第二L2TP协议报文,并将所述第二L2TP协议报文发送给所述LNS-U;The BNG/vBNG-C constructs a second L2TP protocol packet according to the first L2TP protocol packet, and sends the second L2TP protocol packet to the LNS-U;

所述LNS-U将所述第二L2TP协议报文发送给所述LAC-U。The LNS-U sends the second L2TP protocol packet to the LAC-U.

根据本发明实施例提供的一种L2TP协议控制与转发分离的系统,包括:LAC-U、LNS-U以及BNG/vBNG-C;A system for separating L2TP protocol control and forwarding provided according to an embodiment of the present invention includes: LAC-U, LNS-U, and BNG/vBNG-C;

所述LAC-U,用于通过将用户终端发送的PPPoE协议报文转发给BNG/vBNG-C,接收所述BNG/vBNG-C根据所述PPPoE协议报文反馈的携带所述LNS-U的IP地址的第一L2TP协议报文,并将所述第一L2TP协议报文转发给LNS-U,以及接收所述LNS-U根据所述第一L2TP协议报文反馈的第二L2TP协议报文,并根据所述第二L2TP协议报文建立与所述LNS-U之间的L2TP隧道与会话;The LAC-U is configured to forward the PPPoE protocol message sent by the user terminal to the BNG/vBNG-C, and receive the PPPoE protocol message fed back by the BNG/vBNG-C according to the PPPoE protocol message and carry the LNS-U. the first L2TP protocol packet of the IP address, forward the first L2TP protocol packet to the LNS-U, and receive the second L2TP protocol packet fed back by the LNS-U according to the first L2TP protocol packet , and establishes an L2TP tunnel and session with the LNS-U according to the second L2TP protocol message;

所述LNS-U,用于接收所述BNG/vBNG-C根据所述LAC-U发送的所述第一L2TP协议报文构建第二L2TP协议报文,并将所述第二L2TP协议报文转发给所述LAC-U;The LNS-U is configured to receive the BNG/vBNG-C and construct a second L2TP protocol packet according to the first L2TP protocol packet sent by the LAC-U, and convert the second L2TP protocol packet into the second L2TP protocol packet. forwarded to the LAC-U;

所述BNG/vBNG-C,用于根据所述PPPoE协议报文构建所述第一L2TP协议报文,并将所述第一协议L2TP报文发送给所述LAC-U,以及根据所述第一L2TP协议报文构建第二L2TP协议报文,并将所述第二L2TP协议报文发送给所述LNS-U。The BNG/vBNG-C is configured to construct the first L2TP protocol message according to the PPPoE protocol message, and send the first protocol L2TP message to the LAC-U, and according to the first L2TP message An L2TP protocol packet constructs a second L2TP protocol packet, and sends the second L2TP protocol packet to the LNS-U.

优选地,所述LAC-U还用于:Preferably, the LAC-U is also used for:

在接收到用户终端发送的数据转发流的情况下,将所述数据转发流发送给所述LNS-U;In the case of receiving the data forwarding flow sent by the user terminal, sending the data forwarding flow to the LNS-U;

在接收到用户终端发送的控制报文的情况下,经由所述LNS-U将所述控制报文转发至所述BNG/vBNG-C,以便所述BNG/vBNG-C进行会话协商及地址分配,并在会话协商后向所述LNS-U下发用户表项。In the case of receiving the control packet sent by the user terminal, the control packet is forwarded to the BNG/vBNG-C via the LNS-U, so that the BNG/vBNG-C can perform session negotiation and address allocation , and deliver user entries to the LNS-U after session negotiation.

优选地,所述BNG/vBNG-C具体用于根据所述PPPoE协议报文判断所述用户终端是否为L2TP终端,以及在判断结果为是的情况下,构建所述第一L2TP协议报文,并将所述第一协议L2TP报文发送给所述LAC-U。Preferably, the BNG/vBNG-C is specifically configured to determine whether the user terminal is an L2TP terminal according to the PPPoE protocol packet, and if the determination result is yes, construct the first L2TP protocol packet, and sending the first protocol L2TP message to the LAC-U.

根据本发明实施例提供的一种L2TP协议控制与转发分离的设备,所述设备包括:处理器,以及与所述处理器耦接的存储器;所述存储器上存储有可在所述处理器上运行的L2TP协议控制与转发分离的程序,所述L2TP协议控制与转发分离的程序被所述处理器执行时实现根据本发明实施例提供的L2TP协议控制与转发分离的方法的步骤。According to an embodiment of the present invention, a device for separating L2TP protocol control and forwarding is provided, the device includes: a processor, and a memory coupled to the processor; the memory stores data that can be stored on the processor The running L2TP protocol control and forwarding separation program, when the L2TP protocol control and forwarding separation program is executed by the processor, implements the steps of the method for the L2TP protocol control and forwarding separation provided according to the embodiment of the present invention.

根据本发明实施例提供的一种计算机存储介质,存储有L2TP协议控制与转发分离的程序,所述L2TP协议控制与转发分离的程序被处理器执行时实现根据本发明实施例提供的L2TP协议控制与转发分离的方法的步骤。According to a computer storage medium provided by an embodiment of the present invention, a program for separating L2TP protocol control and forwarding is stored, and when the program for separating L2TP protocol control and forwarding is executed by a processor, the L2TP protocol control provided according to the embodiment of the present invention is implemented. Steps of a method separate from forwarding.

根据本发明实施例提供的方案,实现了L2TP用户接入转发与控制的解耦,并在控制与转发分离的BNG/vBNG场景下,实现L2TP协议控制和转发分离,L2TP协议处理控制面实现NFV云化,用户承载能力和冗余备份得到增强。According to the solution provided by the embodiments of the present invention, the decoupling of L2TP user access forwarding and control is realized, and in the BNG/vBNG scenario where control and forwarding are separated, the separation of L2TP protocol control and forwarding is realized, and the L2TP protocol processing control plane realizes NFV Cloudization, user carrying capacity and redundant backup are enhanced.

附图说明Description of drawings

图1是本发明实施例提供的一种L2TP协议控制与转发分离的方法流程图;1 is a flowchart of a method for separating L2TP protocol control and forwarding according to an embodiment of the present invention;

图2是本发明实施例提供的一种L2TP协议控制与转发分离的系统示意图;2 is a schematic diagram of a system for separating L2TP protocol control and forwarding according to an embodiment of the present invention;

图3是本发明实施例提供的组网场景图一的结构图;3 is a structural diagram of a networking scene diagram 1 provided by an embodiment of the present invention;

图4是本发明实施例提供的所述装置组网场景二的结构图;4 is a structural diagram of the second device networking scenario provided by an embodiment of the present invention;

图5是本发明实施例提供的L2TP用户接入协议控制与转发的顶层流程图;5 is a top-level flowchart of L2TP user access protocol control and forwarding provided by an embodiment of the present invention;

图6是本发明实施例提供的实施方案的细化时序图;6 is a detailed sequence diagram of an implementation provided by an embodiment of the present invention;

图7是根据本发明实施例的L2TP控制、转发分离系统核心组件图;7 is a diagram of core components of an L2TP control and forwarding separation system according to an embodiment of the present invention;

图8是本发明实施例提供的L2TP用户接入协议控制与转发的流程图。FIG. 8 is a flowchart of L2TP user access protocol control and forwarding provided by an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the preferred embodiments described below are only used to illustrate and explain the present invention, but not to limit the present invention.

图1是本发明实施例提供的一种L2TP协议控制与转发分离的方法流程图,如图1所示,包括:FIG. 1 is a flowchart of a method for separating L2TP protocol control and forwarding provided by an embodiment of the present invention, as shown in FIG. 1 , including:

步骤S101:LAC-U接收用户终端发送的PPPoE协议报文,并将所述PPPoE协议报文转发给BNG/vBNG-C;Step S101: the LAC-U receives the PPPoE protocol packet sent by the user terminal, and forwards the PPPoE protocol packet to the BNG/vBNG-C;

步骤S102:所述LAC-U接收所述BNG/vBNG-C根据所述PPPoE协议报文反馈的第一L2TP协议报文,并将所述第一L2TP协议报文转发给LNS-U,其中,所述第一L2TP协议报文中携带所述LNS-U的IP地址;Step S102: the LAC-U receives the first L2TP protocol packet fed back by the BNG/vBNG-C according to the PPPoE protocol packet, and forwards the first L2TP protocol packet to the LNS-U, wherein, The first L2TP protocol packet carries the IP address of the LNS-U;

步骤S103:所述LAC-U接收所述LNS-U根据所述第一L2TP协议报文反馈的第二L2TP协议报文,并根据所述第二L2TP协议报文建立与所述LNS-U之间的L2TP隧道与会话。Step S103: The LAC-U receives the second L2TP protocol message fed back by the LNS-U according to the first L2TP protocol message, and establishes a communication with the LNS-U according to the second L2TP protocol message. between L2TP tunnels and sessions.

其中,在所述LAC-U根据所述第二L2TP协议报文建立与所述LNS-U之间的L2TP隧道与会话之后,还包括:所述LAC-U在接收到用户终端发送的数据转发流的情况下,将所述数据转发流发送给所述LNS-U;所述LAC-U在接收到用户终端发送的控制报文的情况下,经由所述LNS-U将所述控制报文转发至所述BNG/vBNG-C,以便所述BNG/vBNG-C进行会话协商及地址分配,并在会话协商后向所述LNS-U下发用户表项。Wherein, after the LAC-U establishes the L2TP tunnel and session with the LNS-U according to the second L2TP protocol message, the method further includes: the LAC-U forwards the data after receiving the data sent by the user terminal. In the case of flow, the LAC-U sends the data forwarding flow to the LNS-U; when the LAC-U receives the control message sent by the user terminal, the LAC-U sends the control message via the LNS-U It is forwarded to the BNG/vBNG-C, so that the BNG/vBNG-C can perform session negotiation and address allocation, and deliver a user entry to the LNS-U after the session negotiation.

其中,在LAC-U接收用户终端发送的PPPoE协议报文,并将所述PPPoE协议报文转发给BNG/vBNG-C之后,还包括:所述BNG/vBNG-C根据所述PPPoE协议报文判断所述用户终端是否为L2TP终端;在判断结果为是的情况下,构建所述第一L2TP协议报文,并将所述第一协议L2TP报文发送给所述LAC-U。Wherein, after the LAC-U receives the PPPoE protocol packet sent by the user terminal and forwards the PPPoE protocol packet to the BNG/vBNG-C, it further includes: the BNG/vBNG-C according to the PPPoE protocol packet Determine whether the user terminal is an L2TP terminal; if the determination result is yes, construct the first L2TP protocol packet, and send the first protocol L2TP packet to the LAC-U.

其中,在所述LAC-U接收所述BNG/vBNG-C根据所述PPPoE协议报文反馈的第一L2TP协议报文,并将所述第一L2TP协议报文转发给LNS-U之后,所述方法还包括:所述LNS-U将所述第一L2TP协议报文发送给所述BNG/vBNG-C;所述BNG/vBNG-C根据所述第一L2TP协议报文构建第二L2TP协议报文,并将所述第二L2TP协议报文发送给所述LNS-U;所述LNS-U将所述第二L2TP协议报文发送给所述LAC-U。Wherein, after the LAC-U receives the first L2TP protocol packet fed back by the BNG/vBNG-C according to the PPPoE protocol packet, and forwards the first L2TP protocol packet to the LNS-U, the The method further includes: the LNS-U sends the first L2TP protocol message to the BNG/vBNG-C; the BNG/vBNG-C constructs a second L2TP protocol according to the first L2TP protocol message message, and send the second L2TP protocol message to the LNS-U; the LNS-U sends the second L2TP protocol message to the LAC-U.

图2是本发明实施例提供的一种L2TP协议控制与转发分离的系统示意图,如图2所示,包括:LAC-U、LNS-U以及BNG/vBNG-C;所述LAC-U,用于通过将用户终端发送的PPPoE协议报文转发给BNG/vBNG-C,接收所述BNG/vBNG-C根据所述PPPoE协议报文反馈的携带所述LNS-U的IP地址的第一L2TP协议报文,并将所述第一L2TP协议报文转发给LNS-U,以及接收所述LNS-U根据所述第一L2TP协议报文反馈的第二L2TP协议报文,并根据所述第二L2TP协议报文建立与所述LNS-U之间的L2TP隧道与会话;所述LNS-U,用于接收所述BNG/vBNG-C根据所述LAC-U发送的所述第一L2TP协议报文构建第二L2TP协议报文,并将所述第二L2TP协议报文转发给所述LAC-U;所述BNG/vBNG-C,用于根据所述PPPoE协议报文构建所述第一L2TP协议报文,并将所述第一协议L2TP报文发送给所述LAC-U,以及根据所述第一L2TP协议报文构建第二L2TP协议报文,并将所述第二L2TP协议报文发送给所述LNS-U。FIG. 2 is a schematic diagram of a system for separating L2TP protocol control and forwarding according to an embodiment of the present invention. As shown in FIG. 2 , it includes: LAC-U, LNS-U, and BNG/vBNG-C; In order to receive the first L2TP protocol carrying the IP address of the LNS-U fed back by the BNG/vBNG-C according to the PPPoE protocol message by forwarding the PPPoE protocol message sent by the user terminal to the BNG/vBNG-C message, forward the first L2TP protocol message to the LNS-U, and receive the second L2TP protocol message fed back by the LNS-U according to the first L2TP The L2TP protocol message establishes an L2TP tunnel and session with the LNS-U; the LNS-U is configured to receive the first L2TP protocol message sent by the BNG/vBNG-C according to the LAC-U The BNG/vBNG-C is used to construct the first L2TP according to the PPPoE protocol message protocol packet, send the first protocol L2TP packet to the LAC-U, construct a second L2TP protocol packet according to the first L2TP protocol packet, and send the second L2TP protocol packet sent to the LNS-U.

其中,所述LAC-U还用于:在接收到用户终端发送的数据转发流的情况下,将所述数据转发流发送给所述LNS-U;在接收到用户终端发送的控制报文的情况下,经由所述LNS-U将所述控制报文转发至所述BNG/vBNG-C,以便所述BNG/vBNG-C进行会话协商及地址分配,并在会话协商后向所述LNS-U下发用户表项。Wherein, the LAC-U is further configured to: in the case of receiving the data forwarding flow sent by the user terminal, send the data forwarding flow to the LNS-U; after receiving the control message sent by the user terminal In this case, the control packet is forwarded to the BNG/vBNG-C via the LNS-U, so that the BNG/vBNG-C can perform session negotiation and address allocation, and report to the LNS- U delivers user entries.

其中,所述BNG/vBNG-C具体用于根据所述PPPoE协议报文判断所述用户终端是否为L2TP终端,以及在判断结果为是的情况下,构建所述第一L2TP协议报文,并将所述第一协议L2TP报文发送给所述LAC-U。The BNG/vBNG-C is specifically configured to determine whether the user terminal is an L2TP terminal according to the PPPoE protocol packet, and if the determination result is yes, construct the first L2TP protocol packet, and Send the first protocol L2TP message to the LAC-U.

本发明实施例提供的一种L2TP协议控制与转发分离的设备,所述设备包括:处理器,以及与所述处理器耦接的存储器;所述存储器上存储有可在所述处理器上运行的L2TP协议控制与转发分离的程序,所述L2TP协议控制与转发分离的程序被所述处理器执行时实现根据本发明实施例提供的L2TP协议控制与转发分离方法的步骤。An embodiment of the present invention provides a device for separating L2TP protocol control and forwarding. The device includes: a processor, and a memory coupled to the processor; the memory stores data that can be executed on the processor. The L2TP protocol control and forwarding separation program, when the L2TP protocol control and forwarding separation program is executed by the processor, implements the steps of the L2TP protocol control and forwarding separation method provided by the embodiment of the present invention.

本发明实施例提供的一种计算机存储介质,存储有L2TP协议控制与转发分离的程序,所述L2TP协议控制与转发分离的程序被处理器执行时实现根据本发明实施例提供的L2TP协议控制与转发分离方法的步骤。A computer storage medium provided by an embodiment of the present invention stores a program for separating L2TP protocol control and forwarding, and when the program for separating L2TP protocol control and forwarding is executed by a processor, it implements the L2TP protocol control and forwarding provided according to the embodiment of the present invention. Steps of forwarding separation method.

本发明实施例在控制与转发分离的BNG环境下,L2TP协议控制面采用X86服务器虚拟化来实现强大的云化计算能力,可以根据用户接入的负载情况进行动态的资源扩容和缩容,达到提升资源利用率的效果,并且可以实现L2TP控制面组件的冗余备份,突破了传统BNG L2TP用户接入的瓶颈。同时,L2TP转发面采用传统高性能转发硬件设备,可以避免当前X86服务器转发能力较差的弱点。In the embodiment of the present invention, in the BNG environment where control and forwarding are separated, the L2TP protocol control plane adopts X86 server virtualization to realize powerful cloud computing capabilities, and can dynamically expand and shrink resources according to the load conditions of user access, so as to achieve The effect of improving resource utilization and implementing redundant backup of L2TP control plane components breaks through the bottleneck of traditional BNG L2TP user access. At the same time, the L2TP forwarding plane adopts traditional high-performance forwarding hardware devices, which can avoid the weakness of the current X86 server's poor forwarding capability.

图3是本发明实施例提供的组网场景图一的结构图,如图3所示,包含的网元和网络模块有用户设备、BNG/vBNG-C、BNG/vBNG-UBNG/vBNG-U(Broadcast Network Gateway/Virtual Broadcast Network Gateway-User Plane,宽带网络网关/虚拟宽带网络网关-转发面);、AAA(认证、授权、计费)模块、接入网络;BNG/vBNG-C由多个组件组成,包含:MP(Management Process,管理处理)组件、PP(Protocol Process,协议处理)组件、L2TP组件、LB(Load Balance,负载分担)组件;BNG/vBNG-U由LAC-U和LNS-U组成。Fig. 3 is a structural diagram of Fig. 1 of a networking scenario provided by an embodiment of the present invention. As shown in Fig. 3, the included network elements and network modules include user equipment, BNG/vBNG-C, BNG/vBNG-UBNG/vBNG-U (Broadcast Network Gateway/Virtual Broadcast Network Gateway-User Plane, broadband network gateway/virtual broadband network gateway-forwarding plane);, AAA (authentication, authorization, billing) module, access network; BNG/vBNG-C consists of multiple Components, including: MP (Management Process, management processing) components, PP (Protocol Process, protocol processing) components, L2TP components, LB (Load Balance, load sharing) components; BNG/vBNG-U is composed of LAC-U and LNS- U composition.

所述用户设备包括RG(Residential Gateway,住宅网关)、CPE(Customer PremiseEquipment,用户侧设备)、PC(Personal Computer,个人计算机)、手持终端等。The user equipment includes RG (Residential Gateway, residential gateway), CPE (Customer PremiseEquipment, user side equipment), PC (Personal Computer, personal computer), handheld terminal and the like.

BNG/vBNG-C模块包含BNG的控制面和vBNG的控制面,主要是进行L2TP用户接入的协议协商、用户认证、接入控制、用户管理,等。BNG/vBNG-U模块包含BNG的转发面和vBNG的转发面,分为LAC-U和LNS-U,通过L3网络互通,主要负责L2TP用户流量的转发,负责对用户相关的流策略的执行。The BNG/vBNG-C module includes the control plane of the BNG and the control plane of the vBNG, mainly for protocol negotiation, user authentication, access control, and user management of L2TP user access. The BNG/vBNG-U module includes the forwarding plane of BNG and the forwarding plane of vBNG. It is divided into LAC-U and LNS-U, which communicate with each other through the L3 network. It is mainly responsible for the forwarding of L2TP user traffic and the execution of user-related traffic policies.

如图4所示,本发明所述的L2TP协议控制与转发分离的处理方法涉及到的处理装置和系统中,LAC-U与LNS-U还可以拥有各自独立的BNG/vBNG-C控制面,分别为BNG/vBNG-C-1、BNG/vBNG-C-2。As shown in FIG. 4 , in the processing device and system involved in the processing method for separating L2TP protocol control and forwarding according to the present invention, the LAC-U and the LNS-U may also have their own independent BNG/vBNG-C control planes. They are BNG/vBNG-C-1 and BNG/vBNG-C-2, respectively.

图5是本发明实施例提供的L2TP用户接入协议控制与转发的顶层流程图,如图5所示,包括以下步骤:FIG. 5 is a top-level flowchart of L2TP user access protocol control and forwarding provided by an embodiment of the present invention, as shown in FIG. 5 , including the following steps:

第一步,LAC-U收到用户终端发送的PPPoE协议报文,将报文封装在VxLAN(VirtualExtensible LAN,虚拟扩展局域网)隧道中转发至BNG/vBNG-C的LB负载分担组件;In the first step, the LAC-U receives the PPPoE protocol packet sent by the user terminal, and encapsulates the packet in a VxLAN (Virtual Extensible LAN) tunnel and forwards it to the LB load balancing component of the BNG/vBNG-C;

第二步,BNG/vBNG-C LB收到PPPoE协议报文后,按照一定的负荷分担策略发送给各个PP组件,由PP组件进行PPPoE的协议报文处理;In the second step, after receiving the PPPoE protocol packet, the BNG/vBNG-C LB sends it to each PP component according to a certain load sharing policy, and the PP component processes the PPPoE protocol packet;

第三步,PP组件根据PPPoE的LCP(Link Control Protocol,链路控制协议)报文获取的用户接入域名或AAA授权结果判断该用户是L2TP用户,则通知L2TP组件进行协议处理,多个L2TP组件可以部署为负荷分担(2个以上,完全分担)或主备方式(2个组件,一主一备);In the third step, the PP component determines that the user is an L2TP user according to the user access domain name or the AAA authorization result obtained by the LCP (Link Control Protocol) message of PPPoE, and then notifies the L2TP component to perform protocol processing. Components can be deployed as load sharing (more than 2, fully shared) or active/standby mode (2 components, one active and one standby);

第四步,L2TP组件根据本地的L2TP相关配置信息,查找对应的LNS地址,发起LAC到LNS的隧道、会话的协商处理,并进行L2TP协议报文的构建,通过LB组件将报文封装在VxLAN隧道中发送到LAC-U,L2TP隧道目的IP为LNS-U;In the fourth step, the L2TP component searches for the corresponding LNS address according to the local L2TP-related configuration information, initiates the negotiation processing of the LAC-LNS tunnel and session, and constructs the L2TP protocol packet, and encapsulates the packet in the VxLAN through the LB component. It is sent to LAC-U in the tunnel, and the destination IP of the L2TP tunnel is LNS-U;

第五步,LAC-U收到LB发送过来的控制报文,控制报文中会携带隧道目的IP以及VPN(Virtual Private Network,虚拟专用网络)信息,LAC-U从中解析出隧道目的地址和VPN信息,根据IP地址和VPN查路由转发至LNS-U;Step 5: LAC-U receives the control packet sent by LB. The control packet will carry the tunnel destination IP and VPN (Virtual Private Network, virtual private network) information, and LAC-U parses the tunnel destination address and VPN from it. The information is forwarded to LNS-U according to the IP address and VPN route check;

第六步,LNS-U收到L2TP协议报文后,封装VxLAN隧道发送到BNG/vBNG-C的LB组件;The sixth step, after receiving the L2TP protocol packet, the LNS-U encapsulates the VxLAN tunnel and sends it to the LB component of the BNG/vBNG-C;

第七步,BNG/vBNG-C把报文发送到L2TP组件,进行L2TP协议的处理,并进行L2TP协议报文的构建,通过LB组件将报文封装在VxLAN隧道中发送到LNS-U;In the seventh step, the BNG/vBNG-C sends the packet to the L2TP component, performs L2TP protocol processing, constructs the L2TP protocol packet, and encapsulates the packet in the VxLAN tunnel through the LB component and sends it to the LNS-U;

第八步,LNS-U收到LB发送过来的控制报文(L2TP协议报文),从中解析出隧道目的地址和VPN信息,根据IP地址和VPN查路由转发至LAC-U;In the eighth step, the LNS-U receives the control packet (L2TP protocol packet) sent by the LB, parses the tunnel destination address and VPN information, and forwards it to the LAC-U according to the IP address and VPN route;

第九步,LAC和LNS的L2TP隧道和会话建立后,BNG/vBNG-C将隧道和会话信息通过Openflow下发给LAC-U和LNS-U,在LAC-U和LNS-U之间完成L2TP转发通道的建立。用户终端直接与LNS进行PPP(Point to Point Protocol,点对点协议)协商,LNS-U将用户PPP协商报文通过VxLAN通道上送至BNG/vBNG-C的LB,再由L2TP组件进行PPP协商以及地址分配,PPP会话协商完成后,BNG/vBNG-C通过Openflow向LNS-U下发用户表项。The ninth step, after the L2TP tunnel and session between LAC and LNS are established, BNG/vBNG-C sends the tunnel and session information to LAC-U and LNS-U through Openflow, and completes L2TP between LAC-U and LNS-U The establishment of the forwarding channel. The user terminal directly conducts PPP (Point to Point Protocol) negotiation with the LNS, and the LNS-U sends the user PPP negotiation packet to the LB of the BNG/vBNG-C through the VxLAN channel, and then the L2TP component performs PPP negotiation and address After the PPP session negotiation is completed, the BNG/vBNG-C delivers user entries to the LNS-U through Openflow.

图6是本发明实施例提供的实施方案的细化时序图,如图6所示,包含了下面描述步骤的细化步骤。FIG. 6 is a refinement sequence diagram of an implementation provided by an embodiment of the present invention. As shown in FIG. 6 , refinement steps of the steps described below are included.

所述第一步包括:The first step includes:

101,用户终端发送PPPoE拨号请求,报文由LAC-U上送至BNG/vBNG-C控制面,由PP组件根据PPP LCP协商报文携带的域名或AAA授权结果判断该用户为L2TP用户;101, the user terminal sends a PPPoE dial-up request, the message is sent from the LAC-U to the BNG/vBNG-C control plane, and the PP component determines that the user is an L2TP user according to the domain name or AAA authorization result carried in the PPP LCP negotiation message;

所述第二步包括:The second step includes:

201,BNG/vBNG-C控制面L2TP组件进行L2TP协议报文的构建,通过VxLAN通道发送给对应的LAC-U;201, the L2TP component of the BNG/vBNG-C control plane constructs the L2TP protocol packet, and sends it to the corresponding LAC-U through the VxLAN channel;

202,LAC-U收到L2TP协议报文后,根据路由将L2TP协议报文发送至对应的LNS-U;202. After receiving the L2TP protocol packet, the LAC-U sends the L2TP protocol packet to the corresponding LNS-U according to the route;

203,LNS-U收到L2TP协议报文后,上送至BNG/vBNG-C控制面处理;203. After receiving the L2TP protocol packet, the LNS-U sends it to the BNG/vBNG-C control plane for processing;

204,BNG/vBNG-C控制面收到L2TP协议报文后,发送给L2TP组件处理,L2TP组件根据BNG/vBNG-C控制面配置的L2TP相关配置信息构建新的L2TP协议报文后再发送给LNS-U;204. After receiving the L2TP protocol packet, the BNG/vBNG-C control plane sends it to the L2TP component for processing. The L2TP component constructs a new L2TP protocol packet according to the L2TP-related configuration information configured on the BNG/vBNG-C control plane, and then sends it to the L2TP protocol packet. LNS-U;

205,LNS-U收到L2TP协议报文后,根据路由将L2TP协议报文发送至对应的LAC-U;205. After receiving the L2TP protocol packet, the LNS-U sends the L2TP protocol packet to the corresponding LAC-U according to the route;

206,LAC、LNS之间完成L2TP隧道、会话控制报文的协商,BNG/vBNG-C通过openflow下发隧道和会话表项,隧道的端点建立在LAC-U和LNS-U上;206. The L2TP tunnel and session control packet negotiation is completed between the LAC and the LNS, the BNG/vBNG-C delivers the tunnel and session entries through openflow, and the endpoints of the tunnel are established on the LAC-U and the LNS-U;

所述第三步包括:The third step includes:

301、用户终端发送PPP LCP协商报文到LAC-U,LAC-U根据本地L2TP用户表项,封装L2TP隧道头发送至LNS-U;301. The user terminal sends a PPP LCP negotiation packet to the LAC-U, and the LAC-U encapsulates the L2TP tunnel header according to the local L2TP user entry and sends it to the LNS-U;

302、LNS-U收到PPP LCP协商报文后,发送给BNG/vBNG-C控制面;302. After receiving the PPP LCP negotiation packet, the LNS-U sends it to the BNG/vBNG-C control plane;

303、BNG/vBNG-C控制面将PPP LCP协商报文发送给L2TP组件,由L2TP组件完成PPPLCP协商,并且与用户终端完成NCP(Network Control Protocol,网络控制协议)协商,给用户分配内部地址。BNG/vBNG-C控制面通过openflow向LNS-U下发用户表项;303. The BNG/vBNG-C control plane sends the PPP LCP negotiation message to the L2TP component, and the L2TP component completes the PPPLCP negotiation, and completes the NCP (Network Control Protocol, Network Control Protocol) negotiation with the user terminal, and assigns an internal address to the user. The BNG/vBNG-C control plane delivers user entries to the LNS-U through openflow;

304、用户数据转发报文到达LAC-U后直接封装L2TP隧道转发至LNS-U,数据转发报文不需要上送BNG/vBNG-C控制面处理;304. After the user data forwarding message reaches the LAC-U, the L2TP tunnel is directly encapsulated and forwarded to the LNS-U, and the data forwarding message does not need to be sent to the BNG/vBNG-C control plane for processing;

图7是根据本发明实施例的L2TP控制、转发分离系统核心组件图,如图7所示,S:L2TP业务接入处理组,针对L2TP用户接入处理组;P:用户接入端口,具体包括:Fig. 7 is a diagram of the core components of an L2TP control and forwarding separation system according to an embodiment of the present invention. As shown in Fig. 7, S: L2TP service access processing group, for L2TP user access processing group; P: user access port, specifically include:

BNG/vBNG-C控制面L2TP处理组件为主备部署方式,LAC-U1和LAC-U2为转发池。首先定义了S的具体实施例S1、S2、S3:其中L2TP用户接入处理组S1包括了两个转发面设备,分别为LAC-U1、LNS-U1,同时还包括控制面L2TP处理组件L2TP1,语法表达为S1(LAC-U1&P1、LNS-U1、L2TP1),P1为用户接入端口;其中L2TP用户接入处理组S2包括了两个转发面设备,分别为LAC-U2、LNS-U1,还包括控制面L2TP处理组件L2TP1,语法表达为S2(LAC-U2&P2、LNS-U1、L2TP1);其中L2TP用户接入处理组S3包括了两个转发面设备,分别为LAC-U2、LNS-U1,还包括控制面L2TP处理组件L2TP2,语法表达为S2(LAC-U2&P2、LNS-U1、L2TP2);The L2TP processing components of the BNG/vBNG-C control plane are deployed as active and standby, and LAC-U1 and LAC-U2 are forwarding pools. First, the specific embodiments S1, S2, and S3 of S are defined: the L2TP user access processing group S1 includes two forwarding plane devices, namely LAC-U1 and LNS-U1, and also includes the control plane L2TP processing component L2TP1, The syntax is expressed as S1 (LAC-U1&P1, LNS-U1, L2TP1), and P1 is the user access port; the L2TP user access processing group S2 includes two forwarding plane devices, namely LAC-U2, LNS-U1, and It includes the control plane L2TP processing component L2TP1, and the syntax is expressed as S2 (LAC-U2&P2, LNS-U1, L2TP1); the L2TP user access processing group S3 includes two forwarding plane devices, namely LAC-U2 and LNS-U1, It also includes a control plane L2TP processing component L2TP2, and the syntax is expressed as S2 (LAC-U2&P2, LNS-U1, L2TP2);

进一步地,当LAC-U1、LAC-U2同时收到用户L2TP接入请求,两个转发面会将接入请求报文都发送给BNG/vBNG-C控制面。BNG/vBNG-C控制面PP组件会根据配置选择一个主用LAC-U1进行用户接入,并由主用L2TP1组件进行L2TP接入协议处理,L2TP1组件根据控制面配置选择与LNS-U1进行L2TP隧道、会话的协商,也就是执行S1接入处理组。BNG/vBNG-C控制面会将L2TP用户表项同时下发给LAC-U1和LAC-U2,LAC-U1的P1端口为主用,LAC-U2的P2端口为备用;Further, when LAC-U1 and LAC-U2 receive the user's L2TP access request at the same time, both forwarding planes will send the access request message to the BNG/vBNG-C control plane. The PP component of the BNG/vBNG-C control plane will select an active LAC-U1 for user access according to the configuration, and the active L2TP1 component will process the L2TP access protocol, and the L2TP1 component will choose to perform L2TP with LNS-U1 according to the configuration of the control plane. Tunnel and session negotiation, that is, execute S1 access processing group. The BNG/vBNG-C control plane will deliver L2TP user entries to LAC-U1 and LAC-U2 at the same time. The P1 port of LAC-U1 is the active port, and the P2 port of LAC-U2 is the standby port.

进一步地,当LAC-U1的P1端口发生故障时,LAC-U2的P2端口升为主用,L2TP用户流量由LAC-U2发送给LNS-U1,后续L2TP用户的接入都由LAC-U2上送给BNG/vBNG-C控制面,也就是执行L2TP用户接入处理组S2;Furthermore, when the P1 port of LAC-U1 fails, the P2 port of LAC-U2 becomes the primary port, and the L2TP user traffic is sent from LAC-U2 to LNS-U1, and the subsequent access of L2TP users is made by LAC-U2. Send it to the BNG/vBNG-C control plane, that is, the L2TP user access processing group S2;

进一步地,当BNG/vBNG-C控制面L2TP1处理组件发生故障时,将由备用L2TP2组件进行接管,后续L2TP协议处理将由L2TP2组件负责,也就是执行L2TP用户接入处理组S3;Further, when the L2TP1 processing component of the BNG/vBNG-C control plane fails, the standby L2TP2 component will take over, and the L2TP2 component will be responsible for subsequent L2TP protocol processing, that is, execute the L2TP user access processing group S3;

图8是本发明实施例提供的L2TP用户接入协议控制与转发的流程图,如图8所示,包括:FIG. 8 is a flowchart of L2TP user access protocol control and forwarding provided by an embodiment of the present invention, as shown in FIG. 8 , including:

步骤1,LAC-U1、LAC-U2形成池化,同时收到用户终端发送的PPPoE协议报文,将报文封装在VxLAN隧道中转发至BNG/vBNG-C的LB组件;;Step 1, LAC-U1 and LAC-U2 form a pool, and at the same time receive the PPPoE protocol message sent by the user terminal, encapsulate the message in the VxLAN tunnel and forward it to the LB component of the BNG/vBNG-C;

步骤2,BNG/vBNG-C收到PPPoE协议报文,发送给PP组件,进行PPPoE的协议报文处理,PP组件根据控制面配置选择主用LAC-U1进行用户接入;Step 2, the BNG/vBNG-C receives the PPPoE protocol message and sends it to the PP component for processing the PPPoE protocol message. The PP component selects the active LAC-U1 for user access according to the control plane configuration;

步骤3,PP组件判断该用户是L2TP用户,则通知主用L2TP组件进行协议处理;Step 3, the PP component determines that the user is an L2TP user, and notifies the main L2TP component to perform protocol processing;

步骤4,L2TP组件发起LAC到LNS的隧道、会话的协商处理,并进行L2TP协议报文的构建,建立LAC-U1与LNS-U1之间的L2TP隧道、会话。用户数据转发流量直接从LAC-U1封装L2TP报头发送给LNS-U1,用户拨号控制报文上送BNG/vBNG-C控制面;In step 4, the L2TP component initiates negotiation processing of the tunnel and session from the LAC to the LNS, and constructs the L2TP protocol packet to establish the L2TP tunnel and session between the LAC-U1 and the LNS-U1. User data forwarding traffic is directly encapsulated L2TP headers from LAC-U1 to LNS-U1, and user dial-up control messages are sent to BNG/vBNG-C control plane;

步骤5,当LAC-U1接入端口发生故障时,用户由LAC-U2进行接入,控制面仍然由主用L2TP组件进行协议处理;Step 5, when the LAC-U1 access port fails, the user is accessed by the LAC-U2, and the control plane is still processed by the main L2TP component;

步骤6,当BNG/vBNG-C控制面主用L2TP组件发生故障时,由备用L2TP组件进行接管,用户业务无中断;Step 6, when the main L2TP component of the BNG/vBNG-C control plane fails, the standby L2TP component takes over, and user services are not interrupted;

以上所述,本发明的BNG/vBNG控制面通过新增L2TP协议处理组件(VM虚机),来对L2TP的控制协议报文进行处理,L2TP协议处理组件可以部署多个VM,形成主备或负荷分担。L2TP协议处理组件负责L2TP隧道、会话的控制报文交互,隧道的端点建立在BNG/vBNG转发面。L2TP控制协议报文由BNG/vBNG转发面识别后上送控制面L2TP协议处理组件处理,而L2TP数据转发报文由BNG/vBNG转发面直接封装L2TP报文头进行转发,无需转发至控制面处理。L2TP协议控制面存储L2TP用户表项,当BNG/vBNG转发面接入用户端口或整台设备发生故障时,控制面可以进行用户的热备切换,切换至备份BNG/vBNG转发面。As described above, the BNG/vBNG control plane of the present invention processes L2TP control protocol packets by adding an L2TP protocol processing component (VM virtual machine). The L2TP protocol processing component can deploy multiple VMs to form active/standby or load sharing. The L2TP protocol processing component is responsible for the exchange of L2TP tunnels and session control packets. The endpoints of the tunnels are established on the BNG/vBNG forwarding plane. L2TP control protocol packets are identified by the BNG/vBNG forwarding plane and then sent to the L2TP protocol processing component of the control plane for processing, while L2TP data forwarding packets are directly encapsulated by the L2TP header on the BNG/vBNG forwarding plane for forwarding, and do not need to be forwarded to the control plane for processing . The L2TP protocol control plane stores L2TP user entries. When the BNG/vBNG forwarding plane is connected to the user port or the entire device fails, the control plane can perform a hot backup switchover of users and switch to the backup BNG/vBNG forwarding plane.

根据本发明实施例提供的方案,实现了L2TP用户接入协议控制与转发分离,L2TP协议控制面采用X86通用服务器,L2TP转发面采用传统高性能硬件,不但提升了控制面的处理能力,而且还保证了转发面的转发能力。本技术的优势是自适应,对周边网络没有额外的要求;实现了L2TP接入用户的容量提升,可以自动进行扩缩容,转发面仍然采用高性能硬件,可以满足各种L2TP应用场景。According to the solution provided by the embodiment of the present invention, the separation of L2TP user access protocol control and forwarding is realized, the L2TP protocol control plane adopts X86 general server, and the L2TP forwarding plane adopts traditional high-performance hardware, which not only improves the processing capability of the control plane, but also improves the The forwarding capability of the forwarding plane is guaranteed. The advantage of this technology is that it is self-adaptive and has no additional requirements for the surrounding network; the capacity of L2TP access users is improved, and the capacity can be automatically expanded and contracted. The forwarding plane still uses high-performance hardware, which can meet various L2TP application scenarios.

尽管上文对本发明进行了详细说明,但是本发明不限于此,本技术领域技术人员可以根据本发明的原理进行各种修改。因此,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。Although the present invention has been described in detail above, the present invention is not limited thereto, and various modifications can be made by those skilled in the art in accordance with the principles of the present invention. Therefore, all modifications made in accordance with the principles of the present invention should be understood as falling within the protection scope of the present invention.

Claims (9)

1. A method for separating L2TP protocol control and forwarding is characterized by comprising the following steps:
the LAC-U receives a PPPoE protocol message sent by a user terminal and forwards the PPPoE protocol message to a BNG/vBNG-C;
the LAC-U receives a first L2TP protocol message fed back by the BNG/vBNG-C according to the PPPoE protocol message, and forwards the first L2TP protocol message to the LNS-U, wherein the first L2TP protocol message carries the IP address of the LNS-U;
the LAC-U receives a second L2TP protocol message fed back by the LNS-U according to the first L2TP protocol message, and establishes an L2TP tunnel and a session with the LNS-U according to the second L2TP protocol message;
wherein the L2TP refers to a layer two tunneling protocol; the BNG/vBNG-C refers to a bandwidth network gateway/virtual bandwidth network gateway-control plane; the LAC-U refers to the L2TP access convergence point-forwarding plane; the LNS-U refers to the L2TP network server-forwarding plane.
2. The method of claim 1, wherein after the LAC-U establishes an L2TP tunnel and session with the LNS-U according to the second L2TP protocol packet, further comprising:
the LAC-U sends the data forwarding flow to the LNS-U under the condition of receiving the data forwarding flow sent by a user terminal;
and the LAC-U forwards the control message to the BNG/vBNG-C through the LNS-U under the condition of receiving the control message sent by the user terminal, so that the BNG/vBNG-C performs session negotiation and address allocation, and sends a user table entry to the LNS-U after the session negotiation.
3. The method of claim 1, wherein after the LAC-U receives a PPPoE protocol packet sent by the user equipment and forwards the PPPoE protocol packet to the BNG/vBNG-C, the method further comprises:
the BNG/vBNG-C judges whether the user terminal is an L2TP terminal or not according to the PPPoE protocol message;
and if so, constructing the first L2TP protocol message and sending the first protocol L2TP message to the LAC-U.
4. The method of claim 1, wherein after the LAC-U receives a first L2TP protocol packet fed back by the BNG/vBNG-C according to the PPPoE protocol packet and forwards the first L2TP protocol packet to the LNS-U, the method further comprises:
the LNS-U sends the first L2TP protocol message to the BNG/vBNG-C;
the BNG/vBNG-C constructs a second L2TP protocol message according to the first L2TP protocol message, and sends the second L2TP protocol message to the LNS-U;
and the LNS-U sends the second L2TP protocol message to the LAC-U.
5. A system for separating L2TP protocol control and forwarding, comprising: LAC-U, LNS-U and BNG/vBNG-C;
the LAC-U is configured to forward a PPPoE protocol packet sent by a user terminal to a BNG/vBNG-C, receive a first L2TP protocol packet carrying an IP address of the LNS-U and fed back by the BNG/vBNG-C according to the PPPoE protocol packet, forward the first L2TP protocol packet to the LNS-U, receive a second L2TP protocol packet fed back by the LNS-U according to the first L2TP protocol packet, and establish an L2TP tunnel and a session with the LNS-U according to the second L2TP protocol packet;
the LNS-U is configured to receive the first L2TP protocol packet sent by the BNG/vBNG-C according to the LAC-U, construct a second L2TP protocol packet, and forward the second L2TP protocol packet to the LAC-U;
the BNG/vBNG-C is configured to construct the first L2TP protocol packet according to the PPPoE protocol packet, send the first L2TP protocol packet to the LAC-U, construct the second L2TP protocol packet according to the first L2TP protocol packet, and send the second L2TP protocol packet to the LNS-U;
wherein the L2TP refers to a layer two tunneling protocol; the BNG/vBNG-C refers to a bandwidth network gateway/virtual bandwidth network gateway-control plane; the LAC-U refers to the L2TP access convergence point-forwarding plane; the LNS-U refers to the L2TP network server-forwarding plane.
6. The system of claim 5, wherein the LAC-U is further configured to:
under the condition of receiving a data forwarding stream sent by a user terminal, sending the data forwarding stream to the LNS-U;
and under the condition of receiving a control message sent by a user terminal, forwarding the control message to the BNG/vBNG-C through the LNS-U so that the BNG/vBNG-C can carry out session negotiation and address allocation, and issuing a user table entry to the LNS-U after the session negotiation.
7. The system according to claim 5, wherein said BNG/vBNG-C is specifically configured to determine whether said ue is an L2TP ue according to said PPPoE protocol packet, and if so, construct said first L2TP protocol packet, and send said first protocol L2TP packet to said LAC-U.
8. An L2TP protocol control and forwarding separation device, characterized in that the device comprises: a processor, and a memory coupled to the processor; the memory has stored thereon an L2TP protocol control and forwarding separation program executable on the processor, the L2TP protocol control and forwarding separation program when executed by the processor implementing the method of any of claims 1-4.
9. A computer storage medium, characterized in that the computer storage medium stores a L2TP protocol control and forwarding separation program, and the L2TP protocol control and forwarding separation program, when executed by a processor, implements the steps of the L2TP protocol control and forwarding separation method according to any one of claims 1 to 4.
CN201810674641.3A 2018-06-27 2018-06-27 A method and system for separating L2TP protocol control and forwarding Withdrawn CN110650077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810674641.3A CN110650077A (en) 2018-06-27 2018-06-27 A method and system for separating L2TP protocol control and forwarding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810674641.3A CN110650077A (en) 2018-06-27 2018-06-27 A method and system for separating L2TP protocol control and forwarding

Publications (1)

Publication Number Publication Date
CN110650077A true CN110650077A (en) 2020-01-03

Family

ID=69008844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810674641.3A Withdrawn CN110650077A (en) 2018-06-27 2018-06-27 A method and system for separating L2TP protocol control and forwarding

Country Status (1)

Country Link
CN (1) CN110650077A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329454A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Method, network element, system and equipment for releasing route
WO2021185253A1 (en) * 2020-03-16 2021-09-23 华为技术有限公司 Dialing message processing method, network elements, system, and network device
CN113691435A (en) * 2021-08-23 2021-11-23 新华三信息安全技术有限公司 Message processing method, system and device
WO2022105917A1 (en) * 2020-11-23 2022-05-27 华为技术有限公司 Method and apparatus for establishing communication
WO2023284366A1 (en) * 2021-07-16 2023-01-19 中兴通讯股份有限公司 Dbng-cp backup method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040165581A1 (en) * 2002-11-20 2004-08-26 Minoru Oogushi Virtual access router
CN101426004A (en) * 2007-10-29 2009-05-06 华为技术有限公司 Three layer conversation access method, system and equipment
CN107566476A (en) * 2017-08-25 2018-01-09 中国联合网络通信集团有限公司 A kind of cut-in method, SDN controllers, forwarding unit and subscriber access system
CN107959603A (en) * 2017-10-27 2018-04-24 新华三技术有限公司 Transmission control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040165581A1 (en) * 2002-11-20 2004-08-26 Minoru Oogushi Virtual access router
CN101426004A (en) * 2007-10-29 2009-05-06 华为技术有限公司 Three layer conversation access method, system and equipment
CN107566476A (en) * 2017-08-25 2018-01-09 中国联合网络通信集团有限公司 A kind of cut-in method, SDN controllers, forwarding unit and subscriber access system
CN107959603A (en) * 2017-10-27 2018-04-24 新华三技术有限公司 Transmission control method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329454A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Method, network element, system and equipment for releasing route
WO2021185253A1 (en) * 2020-03-16 2021-09-23 华为技术有限公司 Dialing message processing method, network elements, system, and network device
US12301381B2 (en) 2020-03-16 2025-05-13 Huawei Technologies Co., Ltd. Dial-up packet processing method, network element, system, and network device
WO2022105917A1 (en) * 2020-11-23 2022-05-27 华为技术有限公司 Method and apparatus for establishing communication
CN114615107A (en) * 2020-11-23 2022-06-10 华为技术有限公司 Method and device for establishing communication
CN114615107B (en) * 2020-11-23 2026-05-15 华为技术有限公司 Methods and apparatus for establishing communication
WO2023284366A1 (en) * 2021-07-16 2023-01-19 中兴通讯股份有限公司 Dbng-cp backup method and apparatus
CN113691435A (en) * 2021-08-23 2021-11-23 新华三信息安全技术有限公司 Message processing method, system and device

Similar Documents

Publication Publication Date Title
EP4114115A1 (en) Message processing method and related device
CN109889443B (en) Cloud computing system and method of implementing Evolved Packet Core (EPC) control plane in cloud computing system
US9497661B2 (en) Implementing EPC in a cloud computer with openflow data plane
JP6092873B2 (en) Implementation of 3G packet core in cloud computer with OpenFlow data and control plane
CN105765919B (en) Method and system for transmitting and receiving packets
CN110896371B (en) Virtual network equipment and related method
CN113395212B (en) Network device, method of operating the same, and non-transitory computer readable medium
US12238063B2 (en) Business service providing method and system, and remote acceleration gateway
WO2022001669A1 (en) Method for establishing vxlan tunnel, and related device
CN113542111B (en) Message forwarding method and network equipment
CN110383792B (en) Computing system and method in a communication system
US20210044456A1 (en) Method for implementing gre tunnel, access point and gateway
JP7076558B2 (en) GTP tunnel for anchorless backhaul support
JP7486597B2 (en) Dial-up packet processing method, network element, system, and network device
JP7673158B2 (en) Apparatus, method, and non-transitory computer-readable storage medium for network access to a residential gateway - Patents.com
CN116436729B (en) Message transmission method, networking system and access cloud gateway
CN110324244A (en) A kind of method for routing and server based on Linux virtual server
CN101060456B (en) Broadband access method and system based on point-to-point protocol on Ethernet
CN117097818A (en) A message processing method and related equipment
US12463846B2 (en) Methods and systems for transmitting session-based packets
JP7720436B2 (en) Apparatus, method, and non-transitory computer-readable storage medium for network access - Patents.com
CN117459964A (en) Combined PFCP session model for network access through residential gateways
HK40072592B (en) Methods and systems for transmitting session-based packets
HK40015071B (en) Computing systems and methods in a communication system
HK40015071A (en) Load balancing of wireless subscriber packet processing over multiple packet processing cores

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200103