CN101272403A - Method, system and device for implementing DHCP user service wholesale - Google Patents

Method, system and device for implementing DHCP user service wholesale Download PDF

Info

Publication number
CN101272403A
CN101272403A CN 200810097465 CN200810097465A CN101272403A CN 101272403 A CN101272403 A CN 101272403A CN 200810097465 CN200810097465 CN 200810097465 CN 200810097465 A CN200810097465 A CN 200810097465A CN 101272403 A CN101272403 A CN 101272403A
Authority
CN
China
Prior art keywords
terminal
l2tpv3
tunnel
dhcp
lns
Prior art date
Application number
CN 200810097465
Other languages
Chinese (zh)
Other versions
CN101272403B (en
Inventor
潘灏涛
王建兵
郝卫国
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN 200810097465 priority Critical patent/CN101272403B/en
Publication of CN101272403A publication Critical patent/CN101272403A/en
Application granted granted Critical
Publication of CN101272403B publication Critical patent/CN101272403B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements or network protocols for addressing or naming
    • H04L61/20Address allocation
    • H04L61/2007Address allocation internet protocol [IP] addresses
    • H04L61/2015Address allocation internet protocol [IP] addresses using the dynamic host configuration protocol [DHCP] or variants
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. local area networks [LAN], wide area networks [WAN]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling

Abstract

The embodiment of the invention discloses a method for realizing a wholesale of a DHCP user service, a system and equipment. The method of the invention comprises the steps of receiving data messages transmitted by a terminal, carrying out an L2TPv3 packaging for the data message, acquiring an L2TPv3 tunnel corresponding to the terminal, transmitting the packaged date message to L2TP network service LNS equipment through a corresponding L2TPv3 tunnel, receiving a response message sent by the LNS equipment through L2TPv3 tunnel and transmitting the response message which is packaged to the terminal. By adopting the embodiment of the method for realizing a wholesale of a DHCP user service,, the message of the terminal can be mapped to the L2TPv3 tunnel and transmitted to the remote LNS equipment through the L2TPv3 tunnel, the interaction with network can be realized through the LNS equipment, thereby realizing the wholesale of the DHCP user service. In the embodiment of the, method for realizing a wholesale of a DHCP user service the L2TPv3 tunnel can be established in a common IP network, thus having the advantages of simple technique and low networking cost, etc.

Description

实现DHCP用户业务批发的方法、系统和设备技术领域本发明涉及通信技术领域,尤其涉及一种实现DHCP (Dynamic Dost Configuration Protocol,动态主才几配置协议)用户业务批发的方法、系统和设备。 DHCP implemented method of wholesale business users, and the system Technical Field The present invention relates to communications technologies, and in particular relates to one implementation DHCP (Dynamic Dost Configuration Protocol, Dynamic Host Configuration Protocol only a few) wholesale business user methods, systems and apparatus. 背景技术宽带接入网络按照归属关系可分为NSP (Network Service Provider,网络服务提供商)网络和ISP (Internet Service Provider,因特网服务提供商)网络。 BACKGROUND broadband access network in accordance with ownership relations can be divided into NSP (Network Service Provider, Internet Service Provider) network and ISP (Internet Service Provider, Internet Service Provider) network. NSP网络一般是由运营商建设、管理和维护,为用户提供高速接入、流量汇聚、策略执行等功能。 NSP is normally provided by the network operator construction, management and maintenance, to provide users with high-speed access, traffic aggregation, policy enforcement and other functions. 业务批发是一种促进ISP和NSP分离的技术,ISP通过租用NSP的网络来管理和发展用户,用户使用ISP提供的业务;NSP给ISP提供数据传输的通道,通过后续的对帐,保证各自的收益。 ISP is a wholesale business to promote separation techniques and NSP, ISP users to manage and develop leased NSP network, user service provided by the ISP; NSP to the ISP provides data transmission channel, by subsequent reconciliation, and ensure their income. 业务批发一^:通过二层隧道技术进行,用户"R文通过二层隧道传送到远端ISP网络,由ISP处理用户的接入、 认证、授权和其它用户管理策略,由NSP利用隧道进行业务隔离、传送、批发。现有技术中定义了IP Session( IP会话),包括PPP( Point to Point Protocol, 点对点协议)Session和DHCP Session。对于PPP终端一4殳通过L2TPv2( Layer 2 Tunneling Protocol version 2, 2层隧道协议版本2 )隧道实现用户批发,在远端ISP上进行用户接入认证、地址分配和业务管理,在作为NSP网络资源的LAC (L2TP Access Concentrator, L2TP访问集中器)设备上可以根据用户域名信息将用户数据映射到L2TP隧道,透明传送到远端ISP设备。而对于DHCP 终端, 一般通过VPLS (Virtual Private LAN Services,虚拟专用LAN业务) 网络的PW( Pseudo Wire,伪线)管道进行业务批发,中间设备需要支持MPLS (Multiple Protocol Label Switch ,多协议标签交换) A wholesale business ^: Layer by tunneling, the user "R Layer packets transmitted through the tunnel to the remote ISP network, the user of the processing by the ISP access, authentication, authorization, and other user management strategy, the NSP service using a tunnel isolation, transfer, wholesaler prior art defined in the IP session (IP session), including PPP (Point to Point protocol, Point to Point protocol) and the session DHCP session. for a PPP terminal 4 by Shu L2TPv2 (Layer 2 Tunneling protocol version 2 , layer 2 tunneling protocol version 2) tunnel to achieve wholesale user, user access authentication, address allocation and management operations on the distal end of the ISP, may be on LAC (L2TP access concentrator, L2TP access concentrator) device as NSP network resource the user domain information L2TP tunnel mapping of user data, transparent transfer device to the remote ISP. for DHCP clients, typically through a VPLS (virtual private LAN services, virtual private LAN service) network PW (pseudo wire, PW) pipeline conduct wholesale business, the intermediary needs to support MPLS (Multiple protocol label Switch, multi-protocol label switching) 。图1是现有技术中利用VPLS网络实现静态业务批发的网络示意图。利用VPLS网络批发DHCP接入用户的具体步骤如下:(1)在汇聚层二层交换机PE (Provider Edge,运营商网络边缘)上配置用户接入VLAN或者DHCP 协议报文中Option60和VSI ( Virtual Switch Instance,虚拟交换实例)的对应关系,从接入网侧^接收用户二层才艮文,送入对应的VSI的PW管道;(2)将该用户二层报文封装后通过该PW管道传送到连结ISP网络的远端PE设备, 在远端PE设备终结PW管道的两层标签,恢复原始的用户二层报文,送给BNG (Broad Network Gateway,宽带网络网关)处理;(3) BNG进行用户地址分配和接入控制。同时,在NSP网络上利用每个VPN为每个ISP提供传输通道,通过VPN隔离不同ISP的用户数据流量。发明人在实现本发明的过程中,发现上述实现方式依赖于MPLS网络建立的PW管道进行批发,组网成^艮高;且通过VPLS Figure 1 is a schematic view of a static network service wholesale implemented using prior art VPLS network using DHCP wholesale access VPLS network user the following steps:. (1) (Provider Edge, in the service provider network edge aggregation layer PE switcher ) user access VLAN configuration protocol packet or a DHCP Option60 and VSI (virtual Switch instance, the corresponding relationship between the virtual switch instance) from the access network side receives ^ Gen Layer 2 packet was fed to the VSI corresponding PW duct; (2) after the Layer 2 packets are encapsulated via the conduit to the remote PE device PW ISP network links, the distal end of the label in the two end PE device PW pipeline, to recover the original Layer 2 packets , to the BNG (Broad network gateway, a broadband network gateway) process;. (3) BNG user address assignment and access control at the same time, with each VPN provider for each transmission channel on the ISP NSP network, VPN by different isolation the user data traffic of ISP in the process of implementing the present invention, found that the above implementation manner dependent on PW pipeline wholesale establishment MPLS network, network into high Gen ^; and by VPLS 络进行业务批发时通常涉及VPLS跨域,技术实现复杂。发明内容本发明的实施例提供一种实现DHCP用户业务批发的方法、系统和设备, 用于简便的实现DHCP用户的业务批发。 When the network typically involves the wholesale service for cross-domain VPLS, complex technology. The method provided for implementing DHCP wholesale business users, systems, and apparatus SUMMARY Embodiments of the invention for a simple implementation of DHCP wholesale business user. 为达到上述目的,本发明的实施例提供一种实现DHCP用户业务批发的方法,包括:接收终端发送的数据报文,将所述数据报文进行L2TPv3封装; 获取与所述终端对应的L2TPv3隧道,并将所述封装后的数据报文通过对应的L2TPv3隧道向L2TP网络服务设备LNS发送; 接收所述LNS通过L2TPv3隧道发送的响应报文; 将所述响应々艮文进行解封装后向所述终端发送。 To achieve the above object, embodiments of the present invention provides a method for implementing DHCP wholesale business user, comprising: receiving a data packet sent by the terminal, the data packet encapsulated L2TPv3; L2TPv3 tunnel corresponding to the acquired terminal and the encapsulated data packet transmitted by the corresponding L2TPv3 L2TP tunnel to the LNS device network service; LNS receives the response packet transmitted by the tunnel L2TPv3; after 々 Gen decapsulates the response to the said transmission terminal. 本发明的实施例还提供一种L2TP访问集中设备LAC,包括: 封装单元,用于接收到终端发送的数据报文时,将所述数据报文进行L2TPv3封装;隧道获取单元,用于获取所述终端对应的L2TPv3隧道,并将所述封装单元封装后的数据报文通过对应的L2TPv3隧道向L2TP网络服务设备LNS发送;响应报文接收单元,用于接收所述LNS通过L2TPv3隧道发送的响应报文;解封装单元,用于将所述响应报文接收单元接收到的响应净艮文进行解封装。 Embodiments of the present invention further provides a L2TP access concentrator the LAC device, comprising: a packaging unit for receiving the data packets sent by the terminal when the packet data is encapsulated L2TPv3; tunneling acquisition unit for acquiring the L2TPv3 tunnel corresponding to said terminal, the data packet and sending the encapsulated by the encapsulating unit L2TPv3 L2TP tunnel corresponding to the network service LNS device; response packet receiving unit, for receiving the response sent by the LNS tunnel L2TPv3 packet; decapsulating unit, for the response message receiving unit receives the response net Gen decapsulates. 本发明的实施例还提供一种L2TP网络服务器LNS设备,包括: 解封装单元,用于对接收到的数据报文进行L2TPv3隧道解封装; 转发单元,用于才艮据所述解封装单元解封装后数据^R文的目的IP查找路由表,将所述数据报文转发到目的设备;隧道获取单元,用于接收到所述目的设备发送的响应报文时,获取所述终端的主机路由中的出接口L2TPv3隧道;封装单元,用于将所述响应报文进行二层信息封装和L2TPv3封装后通过所述隧道获取单元获取到的L2TPv3隧道向LAC发送。 Embodiments of the present invention further provides a L2TP Network Server LNS device, comprising: a decapsulating unit, a data packet for the received L2TPv3 tunnel decapsulation; forwarding unit, means for decapsulating data before the Gen Solutions after the encapsulated data packet destination IP ^ R searching the routing table, forwards the data packets to the destination device; tunnels acquisition unit for receiving a response packet sent by the destination device, acquires the routing host terminal the outgoing interface L2TPv3 tunnel; packaging unit, for the response packet and the Layer L2TPv3 encapsulated by encapsulation information acquisition unit acquires L2TPv3 tunnel to the tunnel by sending to the LAC. 本发明的实施例还提供一种实现DHCP用户业务批发的系统,包括LAC 和LNS,所述LAC,用于接收到终端发送的数据报文时,将所述数据报文进行L2TPv3封装;并将所述封装后的数据^l艮文通过与终端对应的L2TPv3隧道向L2TP网络服务设备LNS发送;还用于接收所述LNS通过L2TPv3隧道发送的响应报文,并将所述响应报文进行解封装后向所述终端发送。 Embodiments of the present invention further provides a DHCP user service wholesale implemented system, including the LAC and the LNS, the LAC, when receiving a data message sent by the terminal, the data packet encapsulated L2TPv3; and said data package by sending ^ l Gen L2TPv3 tunnel corresponding to the terminal device LNS L2TP network services; further receiving a response packet transmitted by the LNS L2TPv3 tunnel, and the response packet Solutions transmitting to the terminal after packaging. 所述LNS,用于对从LAC接收的报文进行L2TPv3隧道解封装,根据解封装后数据报文的目的IP查找路由表,将所述数据报文转发到目的设备;还用于收到目的设备发送的响应报文时,将所述响应报文进行二层信息封装和L2TPv3封装后通过所述获取到的L2TPv3隧道向LAC发送。 Said the LNS, for packets received from the LAC L2TPv3 tunnel decapsulation, the IP routing table according to the destination after decapsulating the data packet, forwards the data packets to the destination device; further configured to receive the object when the response packet, the response packet sent by the device and L2TPv3 Layer 2 encapsulation information acquired by the encapsulated by the tunnel is sent to the L2TPv3 LAC. 与现有技术相比,本发明的实施例具有以下优点:由LAC设备将终端的报文映射到L2TPv3隧道,并通过L2TPv3隧道传送到远端LNS设备,由该LNS设备实现与网络的交互,从而实现了DHCP 用户的业务批发。 Compared with the prior art, embodiments of the present invention has the following advantages: the LAC device sends the packet to the terminal is mapped L2TPv3 tunnel, and transmits to the remote device through LNS L2TPv3 tunnel interact with the network implemented by the LNS device, in order to achieve a DHCP wholesale business users. 本发明的实施例中,L2TPv3隧道可以建立在普通IP网络,具有实现简单、组网成本低等优点。 Embodiments of the present invention, the L2TPv3 tunnel can be established in the general IP network, having a simple, low cost network. 附图说明图1是现有技术中利用VPLS网络实现静态业务批发的网络示意图; 图2是本发明的实施例中实现DHCP用户业务批发的方法的流程图; 图3是本发明的实施例中的网络组网示意图;图4是本发明的实施例中通过DHCP协议为终端分配地址的流程图; 图5是本发明的实施例中终端访问Internet网络时的数据转发流程图; 图6是本发明的实施例中实现DHCP用户业务批发的LAC结构示意图; 图7是本发明的实施例中实现DHCP用户业务批发的另一LAC结构示意图;图8是本发明的实施例中实现DHCP用户业务批发的LNS结构示意图。 BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a prior art schematic diagram of a network using the VPLS network wholesale service statically implemented; FIG. 2 is a flowchart of a method embodiment of the present invention is implemented in user service DHCP wholesale; FIG. 3 is an embodiment of the present invention the networking is a schematic diagram; FIG. 4 is a flowchart of a terminal assigned to an embodiment of the present invention, the DHCP protocol address; FIG. 5 is a flowchart of the data transfer when the embodiment of the present invention, a terminal to access the Internet; FIG. 6 is present LAC schematic structural diagram of an embodiment of the invention implemented in wholesale DHCP user service; FIG. 7 is a structural diagram of another embodiment LAC embodiment of the present invention to achieve wholesale DHCP user service; FIG. 8 is an embodiment of the present invention is implemented in user service DHCP wholesale the schematic structure of LNS. 具体实施方式本发明的实施例提供一种实现DHCP用户业务批发的方法,如图2所示, 包括以下步-骤:步骤s201、 LAC接收到终端发送的数据报文时,将所述数据报文进行L2TPv3封装。 DETAILED DESCRIPTION Example embodiments of the present invention provides a user service wholesale implemented DHCP, 2, comprising the following steps: Step s201, LAC receiving the data packets sent by the terminal, the data packet L2TPv3 packet encapsulation performed. 步骤s202、 LAC获取与终端对应的L2TPv3隧道,并将封装后的数据报文通过对应的L2TPv3隧道向LNS (L2TP Network Server, L2TP网络服务器) 发送。 Step s202, LAC obtain L2TPv3 tunnel corresponding to a terminal, and the encapsulated data packets transmitted to the corresponding L2TPv3 tunnel LNS (L2TP Network Server, L2TP Network Server). 步骤s203、 LAC接收LNS通过L2TPv3隧道发送的响应报文。 Step s203, LAC LNS receives the response packet transmitted by the tunnel L2TPv3. 步骤s204、 LAC将响应报文进行解封装后向终端发送。 Step s204, LAC response message to the terminal after decapsulation. 以下结合附图和实施例,对本发明的具体实施方式做进一步说明。 The following embodiments and the accompanying drawings, specific embodiments of the present invention will be further described. DHCP用户业务批发的组网示意图如图3所示。 Wholesale network DHCP user traffic schematic shown in Figure 3. DHCP终端启动后,通过DHCP协议为终端分配地址的流程如图4所示, 包括以下步骤:步骤s301、 DHCP终端发送DHCP会话请求报文,才艮文中可以携带Option60信息表明用户域信息。 The terminal starts the DHCP, addresses assigned to the terminal by DHCP protocol process shown in Figure 4, comprising the following steps: Step S301, the terminal sends a DHCP session DHCP request packet, it may carry Option60 Gen text information that the user domain information. 步骤s302、 AN ( Access Network,接入网络)侦听用户DHCP会话请求报文,在报文中添加物理线路Option82信息。 Step s302, AN (Access Network, Access Network) session intercept a DHCP request packet, adding physical line Option82 information in the packet. 步骤s303、 AN将携带Option 60信息和Option82信息的DHCP会话请求报文发送到LAC。 Step s303, AN Option 60 carrying information and DHCP Option82 of the session information request message is sent to the LAC. 步骤s304、 LAC才艮据Option 82信息到AAA (Access Authentication Authorization,接入、认证、授权)服务器进行认证,认证通过后则继续,该步骤为可选。 Step s304, LAC only Gen according to Option 82 is AAA (Access Authentication Authorization, access, authentication, authorization) server for authentication, the authentication continues, this step is optional. 步骤s305、 LAC根据Option60将终端的DHCP会话请求报文动态映射进入L2TPv3隧道,发送到LNS。 Step s305, LAC Option60 DHCP dynamic mapping according to the session request message of the terminal into the L2TPv3 tunnel, sending to the LNS. 具体的,该L2TPv3隧道可以预先静态建立,也可以由LAC才艮据用户会话动态触发建立。 Specifically, the static L2TPv3 tunnel can be pre-established by the LAC can only Burgundy, according to the user session dynamically triggered. LAC根据终端接入接口以及终端所属的VLAN,将终端的DHCP报文映射进入L2TPv3隧道。 The LAC VLAN interface and terminal access terminal belongs, the DHCP packets are mapped into the terminal tunnel L2TPv3. 其中无论对于静态建立的隧道还是动态触发建立的隧道,终端的接入接口、终端所属的VLAN和L2TPv3隧道之间的对应关系可以预先建立。 Wherein both for tunnel established statically or dynamically triggered tunnel established correspondence between the VLAN and the access terminal L2TPv3 tunnel interfaces, the terminal belongs can be pre-established. L2TPv3隧道中的会话由DHCP会话动态触发建立; LAC保存用户会话报文中的Option 82、 Option 60信息,用于以后终端的IP 触发上线。 L2TPv3 tunnel session triggered by the dynamic DHCP session establishment; save the LAC user session packets Option 82, Option 60 information for IP terminal after the trigger line. 步骤s306、 LNS选择DHCP服务器并请求DHCP服务器为DHCP终端分配地址。 Step s306, LNS selects a DHCP server and requests the DHCP server to assign addresses to DHCP clients. 具体的,LNS收到通过L2TPv3隧道传送的DHCP会话请求报文后,首先根据报文中的Option 60选项携带的DHCP终端的域信息,获取与DHCP 终端对应的网关地址GiAddr,再根据Option 60将终端的DHCP会话请求报文分流中继到不同的DHCP服务器请求为DHCP终端分配地址;LNS同时记录DHCP终端的二层信息(用户接入的MAC地址、VLAN或者QinQ信息), 用于后续DHCP协议响应报文(包括DHCP OFFER报文和DHCPAck报文) 和数据报文的封装。 Specifically, the LNS receives a request message by a DHCP session L2TPv3 tunneling, first information according to Option 60 field for packets of the terminal carried in the DHCP, the DHCP acquired GiAddr gateway address corresponding to the terminal, then in accordance with the Option 60 terminal DHCP session request packet to a different shunt relay DHCP server to assign addresses to DHCP request terminal; Layer information (user access MAC address, VLAN QinQ or information) while recording the LNS DHCP terminal for subsequent DHCP protocol response message (including DHCP OFFER packet and DHCPAck packets) and encapsulation of data packets. 步骤s307、 DHCP服务器根据GiAddr,为DHCP终端分配相应地址池网段地址。 Step s307, DHCP server address pool corresponding network address GiAddr, assigned according to DHCP clients. 步骤s308、 LNS接收到DHCP服务器发送的DHCP响应消息,即DHCP 服务器的地址分配成功,记录相应的信息。 Step s308, LNS receiving the DHCP response message sent by the DHCP server, the DHCP server assigned the address that is successful, the corresponding information is recorded. 具体的,LNS生成到用户终端的主机路由(即32位掩码的路由,根据终端的IP地址进行精确匹配查找,主机路由和网段路由对应,网段路由是根据IP网段进行查找),DHCP终端的接入接口为L2TPv3隧道入接口;并且在终端的转发表项中记录DHCP终端的二层信息,用于转发向DHCP终端发送的数据报文。 Specifically, host route to the LNS generates a user terminal (i.e., 32-bit mask route performs exact-match lookup based on the IP address of the terminal, and host route corresponding to the route network, network routing network is based on IP lookup), DHCP terminal access interface for L2TPv3 tunnel incoming interface; Layer and the information recorded in the terminal DHCP forwarding entry terminal, for forwarding data packets to a DHCP terminal. 步骤s309、 LAC接收LNS发送的响应报文,记录相应的信息。 Step s309, LAC LNS sends the received response packet, the corresponding information is recorded. 具体的,LAC记录L2TPv3隧道ID和会话ID、 二层封装信息以及DHCP 终端接入接口的绑定关系,用于转发向DHCP终端发送的数据报文;生成DHCP终端的地址和L2TPv3隧道ID、会话ID的对应关系,用于转发从DHCP 终端接收到的向网络侧发送的报文;然后将网络侧的响应报文通过接入汇聚网络发送给DHCP终端。 Specifically, the binding relationship between the LAC record interface L2TPv3 tunnel ID and session ID, Layer 2 encapsulation information, and DHCP access terminal, for forwarding the data packet sent to the terminal DHCP; DHCP address generation L2TPv3 tunnel ID and the terminal, the session corresponding relationship between the ID for forwarding packets sent to the network side to the terminal received from the DHCP; then the network side in response to the DHCP packets sent by the terminal access aggregation network. 步骤s310、 DHCP终端获得网络侧分配的IP地址,可以访问Internet网络。 Step s310, DHCP terminal obtains the IP address allocated by the network, access the Internet. 在获得网络侧分配的地址后,终端访问Internet网络时的数据转发流程如图5所示,包括如下步骤:步骤s401 、 DHCP终端向网络侧发送数据报文。 After obtaining the address allocated by the network, the data terminal to access the Internet forwarding process shown in Figure 5, comprising the following steps: Step s401, DHCP terminal transmits data packets to the network side. 步骤s402、 LAC接收到DHCP终端发送的数据报文,将该二层数据报文进行L2TPv3封装,并根据DHCP终端的源MAC和源IP,将封装后的二层数据报文映射到对应的L2TPv3隧道向LNS发送。 Step s402, LAC receives the DHCP packets sent by the terminal, the Layer 2 data L2TPv3 packet encapsulation, and the source terminal of DHCP the MAC and the IP sources, Layer 2 encapsulated data packet is mapped to the corresponding L2TPv3 tunnel send to LNS. 步骤s403、 LNS进行L2TPv3隧道解封装,根据数据报文的目的IP查找路由表,根据路由表将DHCP终端的数据报文转发到Internet网络的目的设备。 Step s403, LNS for L2TPv3 tunnel decapsulation, the IP routing table according to the destination of data packets according to the routing table to forward DHCP packets to the destination terminal device to the Internet. 步骤s404、 LNS收到目的设备向DHCP终端发送的响应报文,首先查找路由表获得该DHCP终端的主机路由,路由的出接口为L2TPv3隧道。 Step s404, LNS receive a response from the destination terminal device sends to the DHCP, the routing table to obtain first routing the DHCP host terminal, the routing of the interface L2TPv3 tunnel. 则LNS 将目的设备发送的响应报文进行二层信息封装,之后再进行L2TPv3封装并发送到LAC。 The object of the LNS device sending a response packet 2 information package, after then encapsulated and sent L2TPv3 LAC. 步骤s405、 LAC根据L2TPv3隧道的ID、以及会话ID查找到该DHCP终端的接入接口,终结L2TPv3隧道封装,将解封装后的响应报文从该接口转发回去。 Step s405, LAC lookup according L2TPv3 tunnel ID, and the session ID to the DHCP access interface terminal end L2TPv3 tunnel encapsulation, the response packet decapsulated forwarded back from the interface. 步骤s406、 DHCP终端接收到目的设备返回的响应报文。 Step s406, DHCP terminal receives the response message returned by the destination device. 另外,LNS上还存储各用户终端对应的网关地址,当用户终端进行ping 地址池网关的操作时,由LNS响应该ping操作。 In addition, the gateway also stores the address corresponding to each user terminal on the LNS, when the user terminal is operating ping gateway address pool, the ping operation in response to the LNS. DHCP批发用户之间的互相访问也通过LNS进行,数据报文不在LAC上进行交换;具体的,LNS上存此,DHCP批发用户之间的报文交互只能通过LNS进行,而不能在LAC上直接进行交互。 Wholesale access to each other between the DHCP user by the LNS, the data packets are not exchanged on LAC; Specifically, this deposit on the LNS, the interaction between the DHCP packet wholesale customers only through the LNS, and not on the LAC interact directly. 利用L2TPv3的故障检测和恢复措施如下:为了实时感知用户终端接入、汇聚网络状态,可以通过在LAC启用ARP (Address Resolution Protocol,地址解析协议)^:测。 Using L2TPv3 fault detection and recovery measures are as follows: user terminal for sensing real-time access, aggregation network state, by enabling ARP (Address Resolution Protocol, ARP) ^ in LAC: measured. 当^:测到用户终端超时下线时,LAC发送会话拆除消息到达LNS, LNS删除用户表项信息;如果用户终端因线路中断等原因超时下线后的某时刻LAC和用户终端之间的线路状态恢复,则LAC收到用户终端的数据^Jl时,通过用户终端标识查找到保存的Option 82、 Option 60信息,模拟生成DHCP协议净艮文,通过L2TPv3隧道发送到LNS,重新申请地址建立用户表项,该过程等同于DHCP终端初始会话发起建立过程。 When ^: measured at the user terminal timeout offline, sending session teardown message arrives LAC LNS, LNS delete user entries; line between the LAC and user terminal after a certain time if the user terminal line interruption reasons timeout offline state is restored, the received LAC when data of Jl ^ user terminal, user terminal identification find Option 82, Option 60 the stored information, generating a simulated net Gen DHCP protocol message, sent to the LNS via L2TPv3 tunnel established user address reapply entry, the initial process is equivalent to the terminal session initiation DHCP setup procedure. LAC收到LNS发送的DHCP响应报文之后,生成用户转发表项,即L2TPv3隧道ID和会话ID、 二层封装信息和接入接口的绑定关系,从而用户终端又可以正常访问Internet网络。 After transmission of the LAC receive DHCP LNS response packet, the user generates forwarding entries, i.e. L2TPv3 tunnel ID and session ID, Layer 2 encapsulation information and the binding relationship between the access interface, and so that the user terminal can access the Internet. 如果L2TP隧道Down掉,如果LAC上ARP探测没有超时,在L2TPv3 隧道重新up之后,LAC要能够模拟发送DHCP协议报文让LNS设备重新建立用户表项信息;另夕卜,RADIUS (Remote Authentication Dial In User Service,远程用户拨入认证系统)支持关于L2TP属性扩展,RADIUS可以下发隧道类型(64)、 L2TP组名(81)、 LAC源地址(66)、 LNS地址(67)、隧道名(90)、隧道密码(69 )、隧道标识名(82 )等属性,由RADIUS力l务器下发L2TP隧道属性,可以实现LAC、 LNS设备零配置,从而能够通过服务器集中管理网络设备,方便网络管理。 If the L2TP tunnel is Down, if LAC on ARP probe does not time out, after L2TPv3 tunnel back up, LAC to be able to simulate send DHCP packets to let the LNS re-establish user entries; the other evening Bu, RADIUS (Remote Authentication Dial In user Service, authentication dial the remote user) supported the L2TP property extension, the RADIUS tunnel type may be issued (64), L2TP group name (81), LAC source address (66), LNS addresses (67), the name of the tunnel (90 ), tunnel password (69), a tunnel identification name (82) and other attributes by the hair L2TP tunnel attributes RADIUS force l task, you can achieve the LAC, LNS device zero configuration, thereby enabling the server to centrally manage network devices, network management convenient . ISP扩充用户需要配置新地址池的时候,无须更改代表NSP网络资源的LAC的配置,只需要更改LNS设备上的配置信息,用户管理完全由ISP来进行控制,实现真正意义上的DHCP用户批发。 ISP expand the user needs to configure a new address pool time, no need to change the LAC configuration represents NSP network resources, you only need to change the configuration information on the LNS device, user management entirely controlled by the ISP, implement DHCP users wholesale in the true sense. 通过本发明实施例提供的方法,由LAC设备将终端的报文映射到L2TPv3 隧道,并通过L2TPv3隧道传送到远端LNS设备,由该LNS设备实现与网络的交互,从而实现了DHCP用户的业务批发。 The method provided by the embodiment of the present invention, the LAC device sends the packet to the terminal maps L2TPv3 tunnel, and transmits to the remote device through LNS L2TPv3 tunnel interact with the network implemented by the LNS device, enabling users of the DHCP service wholesale. 本发明的实施例中,L2TPv3隧道可以建立在普通IP网络,具有实现简单、组网成本4氐等优点。 Embodiments of the present invention, the L2TPv3 tunnel can be established in the general IP network, having a simple, cost networking 4 Di advantages. 本发明的实施例还提供一种实现DHCP用户业务批发的系统,其架构示意图如图3所示,其中:LAC用于接收到终端发送的数据报文时,将数据报文进行L2TPv3封装; 并将封装后的数据报文通过与终端对应的L2TPv3隧道向L2TP网络服务设备LNS发送;还用于接收LNS通过L2TPv3隧道发送的响应报文,并将响应报文进行解封装后向终端发送。 Embodiments of the present invention further provides a DHCP user wholesale service system implementation, which is a schematic view of the architecture shown in Figure 3, wherein: LAC used when receiving the data packets sent by the terminal, the data packet encapsulated L2TPv3; and the data packets encapsulated with the terminal corresponding to the transmission L2TPv3 tunnel LNS L2TP service apparatus; further for receiving a response packet transmitted by the LNS L2TPv3 tunnel, and transmits the response message to the terminal after decapsulates. LNS用于对从LAC接收的报文进行L2TPv3隧道解封装,根据解封装后数据报文的目的IP查找路由表,将数据报文转发到目的设备;还用于收到响应报文时,将响应报文根据终端的二层信息进行二层信息封装,并进行L2TPv3 封装后通过获取到的L2TPv3隧道向LAC发送。 LNS for packets received from the LAC decapsulates L2TPv3 tunnel, the IP routing table according to the destination after decapsulating the data packet, forwards the data packets to the destination device; when a further packet is received in response to the response packet encapsulation according to Layer 2 information of the information terminal, and transmits to the obtained L2TPv3 L2TPv3 tunnel encapsulation after the LAC. 具体的,该系统中LAC的结构如图6所示,包括:封装单元11,用于接收到终端发送的数据报文时,将数据报文进行L2TPv3封装;隧道获取单元12,用于获取终端对应的L2TPv3隧道,并将封装单元11 封装后的数据报文并通过对应的L2TPv3隧道向L2TP网络服务设备LNS发送;响应报文接收单元13,用于接收LNS通过L2TPv3隧道发送的响应报文;解封装单元14,用于将响应报文接收单元13接收到的响应报文进行解封装后向终端发送。 Specifically, in the system configuration shown in FIG. 6 LAC, comprising: when the packaging unit 11, for receiving the data packets sent by the terminal, the data packet encapsulated L2TPv3; tunneling acquisition unit 12 for acquiring the terminal corresponding L2TPv3 tunnel encapsulation data and the unit 11 and transmits the encapsulated packet to the LNS L2TP service apparatus through the corresponding L2TPv3 tunnel; response packet receiving unit 13, for receiving a response packet transmitted by the LNS L2TPv3 tunnel; decapsulating unit 14, a response message receiving unit 13 receives a response message to the terminal after decapsulation. 该LAC还包括:第一存储单元15 ,用于存储在为终端分配DHCP地址过程中记录的DHCP 终端的地址和L2TPv3隧道ID、会话ID的对应关系;并将对应关系提供给隧道获取单元12。 The LAC further comprises: 15, for storing the address recorded in the DHCP address assigned to the terminal and the terminal during the DHCP L2TPv3 tunnel ID, correspondence between the first storage unit session ID; and the correspondence relation acquiring unit 12 is supplied to the tunnel. 第二存储单元16,用于存储在为终端分配DHCP地址过程中记录的L2TPv3隧道ID和会话ID、 二层封装信息以及终端接入接口的对应关系;并将对应关系提供给解封装单元14。 A second storage unit 16 for storing a correspondence relationship recorded access interface DHCP address allocated to the terminal during L2TPv3 tunnel ID and session ID, Layer 2 encapsulation information, and the terminal; and decapsulating unit 14 corresponds to the relationship provided. 隧道映射单元17,用于接收到终端的DHCP会话请求报文时,根据终端的接入接口以及终端所属的VLAN,以及预先建立的终端的接入接口、终端所属的VLAN和L2TPv3隧道之间的对应关系,将终端的DHCP会话请求报文映射进入对应的L2TPv3隧道。 Tunnel mapping unit 17, when receiving the terminal for a DHCP session request message, the access terminal according to the VLAN interface and terminal belongs, and a terminal interface to access a pre-established, the tunnel between the VLAN and the terminal belongs L2TPv3 correspondence relationship, DHCP session request message of the terminal is mapped into the corresponding L2TPv3 tunnel. 下线探测单元18,用于探测到终端超时下线时,向LNS发送会话拆除消台.模拟报文发送单元19,用于再次接收到超时下线终端的数据报文时,根据终端的信息,模拟生成DHCP会话请求报文,并通过L2TPv3隧道向LNS 发送,重新为终端分配地址。 Off-line detection unit 18 for detecting a timeout when the terminal offline, sending station to a session teardown elimination LNS. Simulation packet sending unit 19, for receiving a data packet timeout offline terminals again according to information of the terminal , generates analog DHCP session request message, and transmits the tunnel to the LNS via L2TPv3, reassign the terminal address. 具体的,该系统中LNS的结构如图7所示,包括: 解封装单元21,用于对接收到的报文进行L2TPv3隧道解封装; 转发单元22,用于才艮据解封装单元21解封装后凄t据才艮文的目的IP查找路由表,将数据报文转发到目的设备;隧道获取单元23,用于接收到响应报文时,获取终端的主机路由中的出接口L2TPv3隧道;封装单元24,用于将响应报文根据终端的二层信息进行二层信息封装,并进行L2TPv3封装后通过隧道获取单元23获取到的L2TPv3隧道向LAC发送。 Specifically, in the system configuration shown in Figure 7 LNS, comprising: a decapsulating unit 21, for the received packet L2TPv3 tunnel decapsulation; forwarding unit 22, a solution was Gen decapsulating unit 21, according to It is only after packaging sad t Burgundy on destination IP routing table, forwards the data packets to the destination device; tunneling acquiring unit 23, for receiving the response message, acquiring the terminal host route outgoing interface in L2TPv3 tunnel; acquisition unit 23 acquired L2TPv3 encapsulates tunneled to the LAC unit 24, the response packet for the information package according Layer Layer information of the terminal, and L2TPv3 tunnel encapsulation. 该LAC还包括:第三存储单元25,用于在为终端分配DHCP地址过程中记录终端的主机路由,以及终端的二层信息,并提供给隧道获取单元23以及封装单元24。 The LAC further comprising: a third storage unit 25, host route for Layer information recorded in the terminal DHCP address assignment process of the terminal, and the terminal and supplied to the acquisition unit 23, and the tunnel encapsulation unit 24. 通过本发明实施例提供的系统和设备,由LAC设备将终端的报文映射到L2TPv3隧道,并通过L2TPv3隧道传送到远端LNS设备,由该LNS设备实现与网络的交互,从而实现了DHCP用户的业务批发。 The system and apparatus provided by the present invention, the LAC device sends the packet to the terminal is mapped L2TPv3 tunnel, and transmits to the remote device through LNS L2TPv3 tunnel interact with the network implemented by the LNS device, enabling the user of the DHCP the wholesale business. 本发明的实施例中, L2TPv3隧道可以建立在普通IP网络,具有实现简单、组网成本低等优点。 Embodiments of the present invention, the L2TPv3 tunnel can be established in the general IP network, having a simple, low cost network. 通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可以通过^5更件实现,也可以可借助软件加必要的通用>5更件平台的方式来实现基于这样的理解,本发明的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM, U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器,或者网络设备等)执行本发明各个实施例所述的方法。 By the above described embodiments, those skilled in the art can understand that the present invention may be implemented by ^ 5 more members, may be understood that such may be achieved by software on a necessary universal> 5 more platform member manner , aspect of the present invention may be embodied in a software product out, the software product may be stored in a nonvolatile storage medium (such as CD-ROM, U disk, mobile hard disk, etc.), including several instructions for instructing a computer device (may be a personal computer, a server, or network device) methods described in the embodiments of the present invention performs. 以上公开的仅为本发明的几个具体实施例,但是,本发明并非局限于此, 任何本领域的技术人员能思之的变化都应落入本发明的保护范围。 While the invention has several specific embodiments disclosed above, but the present invention is not limited thereto, anyone skilled in the art can think of variations shall fall within the scope of the present invention.

Claims (16)

1. 一种实现动态主机配置协议DHCP用户业务批发的方法,其特征在于,包括: 接收终端发送的数据报文,将所述数据报文进行L2TPv3封装; 获取与所述终端对应的L2TPv3隧道,并将所述封装后的数据报文通过对应的L2TPv3隧道向L2TP网络服务设备LNS发送; 接收所述LNS通过L2TPv3隧道发送的响应报文; 将所述响应报文进行解封装后向所述终端发送。 A method for realizing dynamic host configuration protocol DHCP wholesale business users, the method comprising: receiving a data packet sent by the terminal, the data packet encapsulated L2TPv3; Get L2TPv3 tunnel corresponding to the terminal, after the response packet decapsulates to the terminal; receiving a response packet transmitted by the LNS L2TPv3 said tunnel; the data packet and sends the encapsulated device to the LNS L2TP network service corresponding L2TPv3 tunnel send.
2、 如权利要求1所述实现DHCP用户业务批发的方法,其特征在于,所述获取与所述终端对应的L2TPv3隧道具体包括:根据所述终端的地址,以及在为所述终端分配DHCP地址过程中记录的DHCP终端的地址和L2TPv3隧道ID、会话ID的对应关系,获取与所述终端对应的L2TPv3隧道。 2. The method of claim 1 implemented wholesale DHCP user service requirement, wherein the obtaining L2TPv3 tunnel corresponding to the terminal comprises: address of the terminal, and assigning DHCP address for the terminal in accordance with DHCP address recorded during corresponding relationship between the terminal and the L2TPv3 tunnel ID, session ID, acquires L2TPv3 tunnel corresponding to the terminal.
3、 如权利要求1所述实现DHCP用户业务批发的方法,其特征在于,所述将所述响应报文进行解封装后向所述终端发送具体包括:才艮据发送所述响应才艮文的L2TPv3隧道的ID、以及在为所述终端分配DHCP地址过程中记录的L2TPv3隧道的ID和会话ID、 二层封装信息以及终端接入接口的对应关系,获取所述终端的接入接口,将解封装后的响应报文通过所述接入接口向所述终端发送。 3. The method of claim 1 implemented wholesale DHCP user service requirement, wherein the transmitting the response message to the terminal after decapsulation comprises: before transmitting the response data Burgundy Burgundy only text to interfaces of L2TPv3 tunnel ID and the tunnel ID and session L2TPv3 recorded in the DHCP address assignment process for the terminal ID, Layer 2 encapsulation information, and the access terminal, the terminal obtaining access interfaces, the in response to the decapsulated packet is sent to the interface to the access terminal through.
4、 如权利要求1所述实现DHCP用户业务批发的方法,其特征在于,所述接收所述LNS通过L2TPv3隧道发送的响应4艮文前,还包括:所述LNS对接收的数据报文进行L2TPv3隧道解封装,根据解封装后数据报文的目的IP查找路由表,将所述数据报文转发到该数据报文的目的设备;所述LNS收到所述目的设备发送的响应报文时,获取所述终端的主机路由中的出接口L2TPv3隧道;所述LNS将所述响应报文进行二层信息封装和L2TPv3封装后通过所述获取到的L2TPv3隧道向LAC发送。 4. The method of claim 1 implemented wholesale DHCP user service requirement, wherein the receiving the LNS via L2TPv3 tunnel before sending a response message Gen 4, further comprising: the LNS data packets received when the LNS receives the response packet sent by the destination device; the L2TPv3 tunnel decapsulation, the IP routing table according to the destination after decapsulating the data packets, to forward the data packets to the destination device of the data packets obtaining an outbound interface L2TPv3 tunnel host route of the terminal; and the LNS the response packet and the Layer L2TPv3 encapsulated by the package information acquired by the L2TPv3 tunneled to LAC.
5、 如权利要求4所述实现DHCP用户业务批发的方法,其特征在于,所述方法还包括,LNS在为所述终端分配DHCP地址过程中记录所述终端的主机路由,以及所述终端的二层信息。 5. The method of claim 4 DHCP user service wholesale the implementation requirements, characterized in that the method further comprises, routing the LNS recording the host terminal, and the terminal in a DHCP address assignment process for the terminal Layer 2 information.
6、 如权利要求2、 3或5所述实现DHCP用户业务批发的方法,其特征在于,所述为终端分配DHCP地址的过程具体包^^:接收所述终端的DHCP会话请求报文;根据所述终端的DHCP会话请求报文中的Option60信息,将所述终端的DHCP会话请求报文映射进入L2TPv3隧道并发送到所述LNS;所述LNS根据所述终端的Option60信息,选择DHCP服务器并请求DHCP 服务器为所述终端分配地址;所述LNS接收到DHCP服务器为所述终端分配的地址,生成到所述终端的主机路由,并且记录所述终端的二层信息,向所述LAC发送地址分配成功消息;所述主机路由中所述终端的接入接口为L2TPv3隧道入接口;所述LAC接收LNS发送的响应报文,记录L2TPv3隧道ID和会话ID、 二层封装信息以及终端接入接口的对应关系;并记录终端的地址和L2TPv3隧道ID、会话ID的对应关系,然后向所述终端发送地址分配成功消息。 6, as claimed in claim 2, 3 or 5 to DHCP service wholesale the user to achieve, wherein, during the DHCP address assigned to the specific terminal ^^ package: the terminal receiving a DHCP session request message; The DHCP Option60 session request of the terminal information packets, the DHCP session request message of the terminal is mapped into the tunnel and sent to the LNS L2TPv3; Option60 according to the LNS information of the terminal, and selects a DHCP server the terminal requests the DHCP server to assign an address; the LNS server receives the DHCP address assigned to the terminal, the terminal generates a host route, and the recording layer-2 information terminal, sends the address to the LAC allocation success message; access interface to the host terminal for the route L2TPv3 tunnel incoming interface; receiving the LAC LNS sends a response packet, recording L2TPv3 tunnel ID and session ID, Layer 2 encapsulation information, and the terminal accesses the interface corresponding relationship; and records the address of the terminal and L2TPv3 tunnel ID, the session ID of the correspondence relationship, and transmits to the terminal address allocation success message.
7、 如权利要求6所述实现DHCP用户业务批发的方法,其特征在于,所述LAC将所述终端的DHCP会话请求报文映射进入L2TPv3隧道的步骤具体包括:根据所述终端的接入接口以及终端所属的VLAN,以及预先建立的终端的接入接口、终端所属的VLAN和L2TPv3隧道之间的对应关系,将所述终端的DHCP会话请求报文映射进入对应的L2TPv3隧道。 7. The method of claim 6 DHCP user service wholesale the implementation requirements, wherein the LAC said DHCP session request message of the terminal into the L2TPv3 tunnel mapping step comprises: The access interface of the terminal and the correspondence between the VLAN and the VLAN tunnel L2TPv3 terminal belongs, and the pre-established access terminal interfaces, terminal belongs, to the terminal, a DHCP session request message is mapped into the corresponding L2TPv3 tunnel.
8、 如权利要求1所述实现DHCP用户业务批发的方法,其特征在于,还包括:探测到所述终端超时下线时,向所述LNS发送会话拆除消息,所述LNS 删除所述终端的表项信息;当再次接收到终端的数据报文时,根据所述终端的信息,模拟生成DHCP 会话请求^^文,并通过L2TPv3隧道向所述LNS发送,重新为所述终端分配地址。 8. The method of claim 1 implemented DHCP user service wholesale claims, characterized in that, further comprising: detecting a timeout when offline, the LNS sends a session teardown message to the terminal, the terminal deletes the LNS entries; when the terminal receives the data packet again, according to the information of the terminal, generates an analog ^^ DHCP session request message, and transmits the tunnel to the LNS via L2TPv3, reassigned an address for the terminal.
9、 一种L2TP访问集中设备LAC,其特征在于,包括:封装单元,用于接收到终端发送的数据报文时,将所述数据报文进行L2TPv3封装-,隧道获^l单元,用于获取所述终端对应的L2TPv3隧道,并将所述封装单元封装后的数据报文通过对应的L2TPv3隧道向L2TP网络服务设备LNS发送;响应报文接收单元,用于接收所述LNS通过L2TPv3隧道发送的响应报文;解封装单元,用于将所述响应报文接收单元接收到的响应报文进行解封装。 9 A the LAC L2TP access concentrator device, characterized in comprising: when the packaging unit for receiving the data packets sent by the terminal, the data packet encapsulated L2TPv3 -, ^ l is eligible tunnel means for obtaining the L2TPv3 tunnel corresponding to the terminal, the data packet and sending the encapsulated by the encapsulating unit L2TPv3 L2TP tunnel corresponding to the network service LNS device; response message receiving unit for receiving the LNS sends a tunnel through L2TPv3 response packet; decapsulating unit, for the response message receiving unit receives the response packet decapsulation.
10、 如权利要求9所述LAC,其特征在于,还包括: 第一存储单元,用于存储DHCP终端的地址和L2TPv3隧道ID、会话ID的对应关系;并将所述对应关系提供给所述隧道获取单元。 10, the 9 LAC as claimed in claim, characterized in that, further comprising: a corresponding relationship between a first storage unit for storing a terminal address and DHCP L2TPv3 tunnel ID, session ID; and the corresponding relationship to said tunnel acquisition unit.
11、 如权利要求9所述LAC,其特征在于,还包括: 第二存储单元,用于存储L2TPv3隧道的ID和会话ID、 二层封装信息以及终端接入接口的对应关系;并将所述对应关系提供给所述解封装单元。 11, the 9 LAC as claimed in claim, characterized in that, further comprising: a second interface correspondence relation storage unit, for storing the ID and session ID L2TPv3 tunnel, Layer 2 encapsulation information, and an access terminal; and the provided to the corresponding relationship between the decapsulating unit.
12、 如权利要求9所述LAC,其特征在于,还包括:隧道映射单元,用于接收到终端的DHCP会话请求报文时,根据所述终端的接入接口以及终端所属的VLAN,以及预先建立的终端的接入接口、终端所属的VLAN和L2TPv3 隧道之间的对应关系,将所述终端的DHCP会话请求4艮文映射进入对应的L2TPv3隧道。 12, as the LAC claim 9, characterized in that, further comprising: a tunnel mapping unit, configured to receive a DHCP request message the terminal session, according to the VLAN of the terminal interface and the access terminal belongs, and pre and the correspondence between the VLAN tunnel establishment L2TPv3 access terminal interfaces, terminal belongs, to the terminal a DHCP session request message is mapped into the L2TPv3 Gen 4 corresponding to the tunnel.
13、 如权利要求9所述LAC,其特征在于,还包括: 下线探测单元,用于探测到终端超时下线时,向LNS发送会话拆除消息; 模拟报文发送单元,用于再次接收到超时下线终端的数据报文时,根据所述终端的信息,模拟生成DHCP会话请求报文,并通过L2TPv3隧道向所述LNS发送,重新为所述终端分配地址。 13, the 9 LAC as claimed in claim, characterized in that, further comprising: offline detection unit for detecting a timeout when offline terminal, sends a session message to the LNS removal; analog packet sending unit, configured to receive again timeout offline terminal data message, according to the information of the terminal, generates an analog DHCP session request message, and transmits the tunnel to the LNS via L2TPv3, reassigned an address for the terminal.
14、 一种L2TP网络服务器LNS设备,其特征在于,包括: 解封装单元,用于对接收到的数据报文进行L2TPv3隧道解封装; 转发单元,用于根据所述解封装单元解封装后数据报文的目的IP查找路由表,将所述数据冲艮文转发到目的设备;隧道获取单元,用于接收到所述目的设备发送的响应报文时,获取所述终端的主机路由中的出接口L2TPv3隧道;封装单元,用于将所述响应"R文进行二层信息封装和L2TPv3封装后通过所述隧道获取单元获取到的L2TPv3隧道向LAC发送。 14. A L2TP Network Server LNS device, characterized by comprising: decapsulating unit, a data packet for the received L2TPv3 tunnel decapsulation; forwarding unit, means for decapsulating the encapsulated data according to the solution the object of the IP packet routing table, forwards the data to Burgundy red packets to a destination device; tunnels acquisition unit for receiving a response packet sent by the destination device, acquires the host route of the terminal L2TPv3 tunnel interfaces; packaging unit, in response to the "R and packet encapsulation for Layer 2 information acquiring unit acquires L2TPv3 tunnel to the tunnel by sending to the LAC L2TPv3 after packaging.
15、 如权利要求14所述LNS,其特征在于,还包括: 第三存储单元,用于在为所述终端分配DHCP地址过程中记录所述终端的主机路由,以及所述终端的二层信息,并提供给所述隧道获取单元以及封装单元。 Layer information in the third storage unit, the host route of the terminal in a recording DHCP address assignment process for the terminal, and the terminal: 15, 14 LNS as claimed in the claim, characterized by further comprising and supplied to the acquisition unit and a package unit tunnel.
16、 一种实现DHCP用户业务批发的系统,包括LAC和LNS,其特征在于,所述LAC,用于接收到终端发送的数据报文时,将所述数据报文进行L2TPv3封装;并将所述封装后的数据报文通过与终端对应的L2TPv3隧道向L2TP网络服务设备LNS发送;还用于接收所述LNS通过L2TPv3隧道发送的响应报文,并将所述响应报文进行解封装后向所述终端发送。 16, an implementation of the DHCP user wholesale service system, including the LAC and the LNS, wherein the LAC, for receiving the data packets sent by the terminal, the data packet encapsulated L2TPv3; and the after further configured to receive the response packet transmitted by the LNS L2TPv3 tunnel, and the response to the packet decapsulating; data packets with the terminal corresponding to said encapsulated L2TPv3 L2TP tunnel to the service apparatus transmits LNS sent by the terminal. 所述LNS,用于对从LAC接收的报文进行L2TPv3隧道解封装,根据解封装后数据报文的目的IP查找路由表,将所述数据报文转发到目的设备;还用于收到目的设备发送的响应报文时,将所述响应报文进行二层信息封装和L2TPv3封装后通过所述获取到的L2TPv3隧道向LAC发送。 Said the LNS, for packets received from the LAC L2TPv3 tunnel decapsulation, the IP routing table according to the destination after decapsulating the data packet, forwards the data packets to the destination device; further configured to receive the object when the response packet, the response packet sent by the device and L2TPv3 Layer 2 encapsulation information acquired by the encapsulated by the tunnel is sent to the L2TPv3 LAC.
CN 200810097465 2008-05-27 2008-05-27 Method, system and device for implementing DHCP user service wholesale CN101272403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810097465 CN101272403B (en) 2008-05-27 2008-05-27 Method, system and device for implementing DHCP user service wholesale

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200810097465 CN101272403B (en) 2008-05-27 2008-05-27 Method, system and device for implementing DHCP user service wholesale
PCT/CN2009/071333 WO2009143729A1 (en) 2008-05-27 2009-04-17 Method, system and apparatus for realizing dhcp user service wholesale

Publications (2)

Publication Number Publication Date
CN101272403A true CN101272403A (en) 2008-09-24
CN101272403B CN101272403B (en) 2011-02-09

Family

ID=40006087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810097465 CN101272403B (en) 2008-05-27 2008-05-27 Method, system and device for implementing DHCP user service wholesale

Country Status (2)

Country Link
CN (1) CN101272403B (en)
WO (1) WO2009143729A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009143729A1 (en) * 2008-05-27 2009-12-03 华为技术有限公司 Method, system and apparatus for realizing dhcp user service wholesale
CN101753525A (en) * 2008-12-17 2010-06-23 华为技术有限公司 Method, system and equipment for realizing the business wholesale of DHCP users
CN102316030A (en) * 2011-09-01 2012-01-11 杭州华三通信技术有限公司 Method for realizing two-layer internetworking of data center and device
CN103036761A (en) * 2012-12-21 2013-04-10 浙江宇视科技有限公司 Tunnel server and client device
CN103227773A (en) * 2012-03-31 2013-07-31 杭州华三通信技术有限公司 Method and system for establishing virtual private dial-up network connection
CN103595592A (en) * 2013-11-29 2014-02-19 迈普通信技术股份有限公司 Method and system for testing consistency of WAN (Wide Area Network) interface protocols
CN103781073A (en) * 2012-10-26 2014-05-07 中兴通讯股份有限公司 Method and system for mobile subscribers accessing fixed network
CN106899705A (en) * 2016-12-21 2017-06-27 新华三技术有限公司 A kind of method and apparatus of station address distribution

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100373896C (en) * 2002-07-26 2008-03-05 中兴通讯股份有限公司 Virtual special dialing network business data packet retransmission method
JP4342966B2 (en) * 2004-01-26 2009-10-14 株式会社日立コミュニケーションテクノロジー Packet transfer device
US20080123604A1 (en) * 2004-10-01 2008-05-29 Keiichi Shimizu Access Service Network System, Access Device, L2tp Tunnel Line Concentrator, Home Agent, and Method of Providing Access Service
JP4401942B2 (en) * 2004-12-08 2010-01-20 株式会社日立コミュニケーションテクノロジー Packet transfer device and communication network
CN100428739C (en) * 2005-12-31 2008-10-22 华为技术有限公司 Implementing method and system for support VPLS service on IP skeletal network
CN101110847B (en) * 2007-08-27 2011-06-08 华为技术有限公司 Method, device and system for obtaining medium access control address
CN101272403B (en) * 2008-05-27 2011-02-09 华为技术有限公司 Method, system and device for implementing DHCP user service wholesale

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009143729A1 (en) * 2008-05-27 2009-12-03 华为技术有限公司 Method, system and apparatus for realizing dhcp user service wholesale
CN101753525A (en) * 2008-12-17 2010-06-23 华为技术有限公司 Method, system and equipment for realizing the business wholesale of DHCP users
CN102316030A (en) * 2011-09-01 2012-01-11 杭州华三通信技术有限公司 Method for realizing two-layer internetworking of data center and device
CN102316030B (en) * 2011-09-01 2014-04-09 杭州华三通信技术有限公司 Method for realizing two-layer internetworking of data center and device
CN103227773A (en) * 2012-03-31 2013-07-31 杭州华三通信技术有限公司 Method and system for establishing virtual private dial-up network connection
CN103227773B (en) * 2012-03-31 2016-05-11 杭州华三通信技术有限公司 A kind of method and system thereof of setting up VPDN connection
CN103781073B (en) * 2012-10-26 2018-10-19 中兴通讯股份有限公司 The cut-in method and system of mobile subscriber's fixed network
CN103781073A (en) * 2012-10-26 2014-05-07 中兴通讯股份有限公司 Method and system for mobile subscribers accessing fixed network
CN103036761B (en) * 2012-12-21 2015-08-05 浙江宇视科技有限公司 A kind of tunnel server and client terminal device
CN103036761A (en) * 2012-12-21 2013-04-10 浙江宇视科技有限公司 Tunnel server and client device
CN103595592A (en) * 2013-11-29 2014-02-19 迈普通信技术股份有限公司 Method and system for testing consistency of WAN (Wide Area Network) interface protocols
CN103595592B (en) * 2013-11-29 2017-01-18 迈普通信技术股份有限公司 Method and system for testing consistency of WAN (Wide Area Network) interface protocols
CN106899705A (en) * 2016-12-21 2017-06-27 新华三技术有限公司 A kind of method and apparatus of station address distribution

Also Published As

Publication number Publication date
CN101272403B (en) 2011-02-09
WO2009143729A1 (en) 2009-12-03

Similar Documents

Publication Publication Date Title
US8400923B2 (en) Multipath transmission control protocol proxy
EP2400693B1 (en) Routing and service performance management in an application acceleration environment
CN102577255B (en) Layer 2 seamless site extension of enterprises in cloud computing
US20130343304A1 (en) System and Method for Configuring Multiple IP Connections
CN104871495B (en) Virtual superposition gateway for stacking network
JP5335886B2 (en) Method and apparatus for communicating data packets between local networks
US7792972B2 (en) Packet forwarding control method and packet forwarding apparatus
US9787583B2 (en) Methods and apparatus for implementing connectivity between edge devices via a switch fabric
JP3343064B2 (en) Capturing frames, pseudo network adapter for encapsulation and encryption
ES2359602T3 (en) Method, system and device to remove an address access control control.
US8259571B1 (en) Handling overlapping IP addresses in multi-tenant architecture
US9553846B2 (en) Method and system for realizing virtual network
CN100508480C (en) Apparatus and method relating to Ethernet access system
AU2005272880A1 (en) Methods and apparatus for efficient VPN server interface, address allocation, and signaling with a local addressing domain
US20130173788A1 (en) Network access apparatus
CN102164091A (en) Method for building MAC (Media Access Control) address table and provider edge device
JP5281644B2 (en) Method and apparatus for enabling a nomadic terminal to access a home network on a layer 2 level
US20100217882A1 (en) Method, system and apparatus for accessing a Layer-3 session
US20120099602A1 (en) End-to-end virtualization
CN103580980B (en) The method and device thereof that virtual network finds and automatically configures automatically
EP2579544B1 (en) Methods and apparatus for a scalable network with efficient link utilization
CN101110745A (en) Method, device and system for engaging second layer network and third layer network
CN102291320A (en) Mac address learning and edge devices
CN101674249B (en) Methods Provider Backbone Bridge pbb traffic forwarding and equipment
ES2424863T3 (en) Method and device to link or associate services

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CF01