CN111431787B - Tunnel establishment method and device and computer readable storage medium - Google Patents
Tunnel establishment method and device and computer readable storage medium Download PDFInfo
- Publication number
- CN111431787B CN111431787B CN201910022723.4A CN201910022723A CN111431787B CN 111431787 B CN111431787 B CN 111431787B CN 201910022723 A CN201910022723 A CN 201910022723A CN 111431787 B CN111431787 B CN 111431787B
- Authority
- CN
- China
- Prior art keywords
- bras
- lns
- lac
- tunnel
- forwarder
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004891 communication Methods 0.000 claims abstract description 10
- 238000000926 separation method Methods 0.000 claims description 174
- 238000012546 transfer Methods 0.000 claims description 138
- 230000004044 response Effects 0.000 claims description 85
- 238000004590 computer program Methods 0.000 claims description 16
- 230000005641 tunneling Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
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
-
- 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/2854—Wide area networks, e.g. public data networks
- H04L12/2856—Access arrangements, e.g. Internet access
- H04L12/2869—Operational details of access network equipments
- H04L12/287—Remote access server, e.g. BRAS
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例公开了一种隧道建立方法、装置及计算机可读存储介质,涉及通信技术领域,用以保证BRAS控制器的性能。本发明的隧道建立方法包括:获取LNS的信息;根据所述LNS的信息,建立与所述LNS之间的L2TP隧道。本发明实施例可保证BRAS控制器的性能。
Embodiments of the present invention disclose a tunnel establishment method, a device and a computer-readable storage medium, which relate to the technical field of communications and are used to ensure the performance of a BRAS controller. The tunnel establishment method of the present invention includes: acquiring the information of the LNS; and establishing an L2TP tunnel with the LNS according to the information of the LNS. The embodiment of the present invention can ensure the performance of the BRAS controller.
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种隧道建立方法、装置及计算机可读存储介质。Embodiments of the present invention relate to the field of communications technologies, and in particular, to a tunnel establishment method, an apparatus, and a computer-readable storage medium.
背景技术Background technique
宽带远程接入服务器(Broadband Remote Access Server,BRAS)是面向宽带网络应用的新型接入网关。对于BRAS设备,推动其通用化演进的最重要一步就是转发与控制分离。Broadband Remote Access Server (BRAS) is a new access gateway for broadband network applications. For BRAS equipment, the most important step to promote its generalization evolution is the separation of forwarding and control.
转控分离vBRAS(虚拟BRAS)系统的基本思路就是将多台BRAS设备上的控制面功能抽象出来并且集中云化部署,形成统一的BRAS控制器(BRAS-CP);同时,剥离了控制面的BRAS设备或者其他转发设备形成BRAS转发器(BRAS-UP)。那么,转控分离vBRAS系统由BRAS-CP和BRAS-UP组成。The basic idea of the vBRAS (virtual BRAS) system is to abstract the control plane functions on multiple BRAS devices and deploy them in a centralized cloud to form a unified BRAS controller (BRAS-CP). The BRAS device or other forwarding device forms a BRAS repeater (BRAS-UP). Then, the control separation vBRAS system consists of BRAS-CP and BRAS-UP.
在转控分离vBRAS系统中,第二层隧道协议(Layer 2Tunneling Protocol,L2TP)业务的隧道和会话端点建立在BRAS-CP上。由于L2TP是大流量业务场景,所有L2TP用户流量都需要绕转到BRAS-CP,因此,L2TP用户流量绕转严重,且海量的用户流量对BRAS-CP产生了极大的性能压力。In the vBRAS system with separation of transfer and control, the tunnel and session endpoint of the
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例提供一种隧道建立方法、装置及计算机可读存储介质,以保证BRAS控制器的性能。In view of this, embodiments of the present invention provide a tunnel establishment method, an apparatus, and a computer-readable storage medium, so as to ensure the performance of the BRAS controller.
为解决上述技术问题,第一方面,本发明实施例提供一种隧道建立方法,应用于LAC(L2TP Access Concentrator,L2TP访问集中器),包括:In order to solve the above technical problems, in a first aspect, an embodiment of the present invention provides a method for establishing a tunnel, which is applied to a LAC (L2TP Access Concentrator, L2TP Access Concentrator), including:
获取LNS(L2TP Network Server,L2TP网络服务器)的信息;Obtain the information of LNS (L2TP Network Server, L2TP network server);
根据所述LNS的信息,建立与所述LNS之间的L2TP隧道;According to the information of the LNS, establish an L2TP tunnel with the LNS;
其中,所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者Wherein, one endpoint of the L2TP tunnel is the BRAS forwarder of the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device of the LNS side; or
所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,One endpoint of the L2TP tunnel is a BRAS device at the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder at the LNS side; or,
所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。One endpoint of the L2TP tunnel is a BRAS forwarder on the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder on the LNS side.
其中,所述根据所述LNS的信息,建立与所述LNS之间的L2TP隧道,包括:Wherein, establishing an L2TP tunnel with the LNS according to the information of the LNS includes:
根据所述LNS的信息,向LNS发送隧道连接请求;在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;According to the information of the LNS, send a tunnel connection request to the LNS; the tunnel connection request includes the first transfer control separation identifier and the information of the LAC side BRAS forwarder;
接收所述LNS发送的隧道连接响应;receiving a tunnel connection response sent by the LNS;
根据所述隧道连接响应,建立LAC端BRAS转发器与所述LNS端BRAS设备之间的L2TP隧道。According to the tunnel connection response, an L2TP tunnel between the LAC-side BRAS forwarder and the LNS-side BRAS device is established.
其中,所述根据所述LNS的信息,建立与所述LNS之间的L2TP隧道,包括:Wherein, establishing an L2TP tunnel with the LNS according to the information of the LNS includes:
根据所述LNS的信息,向LNS发送隧道连接请求;According to the information of the LNS, send a tunnel connection request to the LNS;
接收所述LNS发送的隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息;Receive the tunnel connection response sent by the LNS, and the tunnel connection response includes the second transfer control separation identifier and the information of the LNS-side BRAS forwarder;
根据所述隧道连接响应,建立LAC端的BRAS设备与所述LNS端BRAS转发器之间的L2TP隧道。According to the tunnel connection response, an L2TP tunnel between the BRAS device on the LAC side and the BRAS forwarder on the LNS side is established.
其中,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;Wherein, the tunnel connection request includes the first transfer control separation identifier and the information of the BRAS repeater at the LAC end;
所述建立LAC端的BRAS设备与所述LNS端BRAS转发器之间的L2TP隧道,具体为:The establishment of the L2TP tunnel between the BRAS device on the LAC side and the BRAS repeater on the LNS side is specifically:
建立LAC端BRAS转发器与所述LNS端BRAS转发器之间的L2TP隧道。An L2TP tunnel between the LAC-side BRAS repeater and the LNS-side BRAS repeater is established.
其中,所述第一转控分离标识位于所述隧道连接请求的第三比特位;当所述第三比特位为第一预设值时,表示LAC端为转控分离vBRAS系统;当所述第三比特位为第二预设值时,表示LAC端不是转控分离vBRAS系统;Wherein, the first transfer control separation identifier is located in the third bit of the tunnel connection request; when the third bit is the first preset value, it indicates that the LAC end is a transfer control separation vBRAS system; when the third bit is the first preset value When the third bit is the second preset value, it indicates that the LAC end is not a transfer control separation vBRAS system;
所述LAC端BRAS转发器的信息的属性参数对AVP为:The attribute parameter of the information of the BRAS transponder at the LAC side is to AVP:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LAC端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS repeater at the LAC side.
其中,所述第二转控分离标识位于所述隧道连接响应的第三比特位;当所述第三比特位为第三预设值时,表示LNS端为转控分离vBRAS系统;当所述第三比特位为第四预设值时,表示LNS端不是转控分离vBRAS系统;Wherein, the second transfer control separation identifier is located in the third bit of the tunnel connection response; when the third bit is a third preset value, it indicates that the LNS end is a transfer control separation vBRAS system; when the When the third bit is the fourth preset value, it indicates that the LNS end is not a transfer control separation vBRAS system;
所述LNS端BRAS转发器的信息的属性参数对AVP为:The attribute parameters of the information of the BRAS repeater on the LNS side to the AVP are:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LNS端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS forwarder at the LNS side.
第二方面,本发明实施例提供一种隧道建立方法,应用于LNS,包括:In a second aspect, an embodiment of the present invention provides a method for establishing a tunnel, which is applied to an LNS, including:
根据LAC的请求,建立与所述LAC之间的L2TP隧道;According to the request of the LAC, establish an L2TP tunnel with the LAC;
其中,所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者Wherein, one endpoint of the L2TP tunnel is the BRAS forwarder of the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device of the LNS side; or
所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,One endpoint of the L2TP tunnel is a BRAS device at the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder at the LNS side; or,
所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。One endpoint of the L2TP tunnel is a BRAS forwarder on the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder on the LNS side.
其中,所述根据LAC的请求,建立与所述LAC之间的L2TP隧道,包括:Wherein, according to the request of the LAC, establishing an L2TP tunnel with the LAC includes:
接收所述LAC端的隧道连接请求;在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;Receive the tunnel connection request of the LAC end; the tunnel connection request includes the first transfer control separation identifier and the information of the BRAS repeater of the LAC end;
向所述LAC端发送隧道连接响应;sending a tunnel connection response to the LAC end;
建立所述LNS端BRAS设备与所述LAC端BRAS转发器之间的L2TP隧道。An L2TP tunnel is established between the LNS-side BRAS device and the LAC-side BRAS repeater.
其中,所述根据LAC的请求,建立与所述LAC之间的L2TP隧道,包括:Wherein, according to the request of the LAC, establishing an L2TP tunnel with the LAC includes:
接收所述LAC端的隧道连接请求;receiving a tunnel connection request from the LAC side;
向所述LAC端发送隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息;sending a tunnel connection response to the LAC end, where the tunnel connection response includes the second switching control separation identifier and the information of the BRAS repeater at the LNS side;
建立所述LNS端BRAS转发器与所述LAC端BRAS设备之间的L2TP隧道。An L2TP tunnel between the LNS-side BRAS forwarder and the LAC-side BRAS device is established.
其中,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;Wherein, the tunnel connection request includes the first transfer control separation identifier and the information of the BRAS repeater at the LAC end;
所述建立所述LNS端BRAS转发器与所述LAC端BRAS设备之间的L2TP隧道,包括:The establishing the L2TP tunnel between the LNS-side BRAS forwarder and the LAC-side BRAS device includes:
建立LNS端BRAS转发器与所述LAC端BRAS转发器之间的L2TP隧道。An L2TP tunnel between the LNS-side BRAS repeater and the LAC-side BRAS repeater is established.
其中,所述第一转控分离标识位于所述隧道连接请求的第三比特位;当所述第三比特位为第一预设值时,表示LAC端为转控分离vBRAS系统;当所述第三比特位为第二预设值时,表示LAC端不是转控分离vBRAS系统;Wherein, the first transfer control separation identifier is located in the third bit of the tunnel connection request; when the third bit is the first preset value, it indicates that the LAC end is a transfer control separation vBRAS system; when the third bit is the first preset value When the third bit is the second preset value, it indicates that the LAC end is not a transfer control separation vBRAS system;
所述LAC端BRAS转发器的信息的属性参数对AVP为:The attribute parameter of the information of the BRAS transponder at the LAC side is to AVP:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LAC端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS repeater at the LAC side.
其中,所述第二转控分离标识位于所述隧道连接响应的第三比特位;当所述第三比特位为第三预设值时,表示LNS端为转控分离vBRAS系统;当所述第三比特位为第四预设值时,表示LNS端不是转控分离vBRAS系统;Wherein, the second transfer control separation identifier is located in the third bit of the tunnel connection response; when the third bit is a third preset value, it indicates that the LNS end is a transfer control separation vBRAS system; when the When the third bit is the fourth preset value, it indicates that the LNS end is not a transfer control separation vBRAS system;
所述LNS端BRAS转发器的信息的属性参数对AVP为:The attribute parameters of the information of the BRAS repeater on the LNS side to the AVP are:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LNS端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS forwarder at the LNS side.
第三方面,本发明实施例提供一种隧道建立装置,应用于LAC,包括:处理器和收发器;In a third aspect, an embodiment of the present invention provides a tunnel establishment apparatus, which is applied to a LAC and includes: a processor and a transceiver;
所述处理器,用于获取L2TP网络服务器LNS的信息;根据所述LNS的信息,建立与所述LNS之间的L2TP隧道;the processor, configured to acquire the information of the L2TP network server LNS; establish an L2TP tunnel with the LNS according to the information of the LNS;
其中,所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者Wherein, one endpoint of the L2TP tunnel is the BRAS forwarder of the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device of the LNS side; or
所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,One endpoint of the L2TP tunnel is a BRAS device at the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder at the LNS side; or,
所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。One endpoint of the L2TP tunnel is a BRAS forwarder on the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder on the LNS side.
其中,所述处理器还用于:Wherein, the processor is also used for:
根据所述LNS的信息,向LNS发送隧道连接请求;在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;According to the information of the LNS, send a tunnel connection request to the LNS; the tunnel connection request includes the first transfer control separation identifier and the information of the LAC side BRAS forwarder;
接收所述LNS发送的隧道连接响应;receiving a tunnel connection response sent by the LNS;
根据所述隧道连接响应,建立LAC端BRAS转发器与所述LNS端BRAS设备之间的L2TP隧道。According to the tunnel connection response, an L2TP tunnel between the LAC-side BRAS forwarder and the LNS-side BRAS device is established.
其中,所述处理器还用于:Wherein, the processor is also used for:
根据所述LNS的信息,向LNS发送隧道连接请求;According to the information of the LNS, send a tunnel connection request to the LNS;
接收所述LNS发送的隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息;Receive the tunnel connection response sent by the LNS, and the tunnel connection response includes the second transfer control separation identifier and the information of the LNS-side BRAS forwarder;
根据所述隧道连接响应,建立LAC端的BRAS设备与所述LNS端BRAS转发器之间的L2TP隧道。According to the tunnel connection response, an L2TP tunnel between the BRAS device on the LAC side and the BRAS forwarder on the LNS side is established.
其中,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;Wherein, the tunnel connection request includes the first transfer control separation identifier and the information of the BRAS repeater at the LAC end;
所述处理器还用于:建立LAC端BRAS转发器与所述LNS端BRAS转发器之间的L2TP隧道。The processor is further configured to: establish an L2TP tunnel between the LAC-side BRAS repeater and the LNS-side BRAS repeater.
其中,所述第一转控分离标识位于所述隧道连接请求的第三比特位;当所述第三比特位为第一预设值时,表示LAC端为转控分离vBRAS系统;当所述第三比特位为第二预设值时,表示LAC端不是转控分离vBRAS系统;Wherein, the first transfer control separation identifier is located in the third bit of the tunnel connection request; when the third bit is the first preset value, it indicates that the LAC end is a transfer control separation vBRAS system; when the third bit is the first preset value When the third bit is the second preset value, it indicates that the LAC end is not a transfer control separation vBRAS system;
所述LAC端BRAS转发器的信息的属性参数对AVP为:The attribute parameter of the information of the BRAS transponder at the LAC side is to AVP:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LAC端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS repeater at the LAC side.
其中,所述第二转控分离标识位于所述隧道连接响应的第三比特位;当所述第三比特位为第三预设值时,表示LNS端为转控分离vBRAS系统;当所述第三比特位为第四预设值时,表示LNS端不是转控分离vBRAS系统;Wherein, the second transfer control separation identifier is located in the third bit of the tunnel connection response; when the third bit is a third preset value, it indicates that the LNS end is a transfer control separation vBRAS system; when the When the third bit is the fourth preset value, it indicates that the LNS end is not a transfer control separation vBRAS system;
所述LNS端BRAS转发器的信息的属性参数对AVP为:The attribute parameters of the information of the BRAS repeater on the LNS side to the AVP are:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LNS端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS forwarder at the LNS side.
第四方面,本发明实施例还提供一种隧道建立装置,应用于LNS,包括:处理器和收发器;In a fourth aspect, an embodiment of the present invention further provides a tunnel establishment apparatus, applied to an LNS, including: a processor and a transceiver;
所述处理器,用于根据LAC的请求,建立与所述LAC之间的L2TP隧道;the processor, configured to establish an L2TP tunnel with the LAC according to the request of the LAC;
其中,所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者Wherein, one endpoint of the L2TP tunnel is the BRAS forwarder of the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device of the LNS side; or
所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,One endpoint of the L2TP tunnel is a BRAS device at the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder at the LNS side; or,
所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。One endpoint of the L2TP tunnel is a BRAS forwarder on the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder on the LNS side.
其中,所述处理器还用于:Wherein, the processor is also used for:
接收所述LAC端的隧道连接请求;在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;Receive the tunnel connection request of the LAC end; the tunnel connection request includes the first transfer control separation identifier and the information of the BRAS repeater of the LAC end;
向所述LAC端发送隧道连接响应;sending a tunnel connection response to the LAC end;
建立所述LNS端BRAS设备与所述LAC端BRAS转发器之间的L2TP隧道。An L2TP tunnel is established between the LNS-side BRAS device and the LAC-side BRAS repeater.
其中,所述处理器还用于:Wherein, the processor is also used for:
接收所述LAC端的隧道连接请求;receiving a tunnel connection request from the LAC side;
向所述LAC端发送隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息;sending a tunnel connection response to the LAC end, where the tunnel connection response includes the second switching control separation identifier and the information of the BRAS repeater at the LNS side;
建立所述LNS端BRAS转发器与所述LAC端BRAS设备之间的L2TP隧道。An L2TP tunnel between the LNS-side BRAS forwarder and the LAC-side BRAS device is established.
其中,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;Wherein, the tunnel connection request includes the first transfer control separation identifier and the information of the BRAS repeater at the LAC end;
所述处理器还用于,建立LNS端BRAS转发器与所述LAC端BRAS转发器之间的L2TP隧道。The processor is further configured to establish an L2TP tunnel between the LNS-side BRAS repeater and the LAC-side BRAS repeater.
其中,所述第一转控分离标识位于所述隧道连接请求的第三比特位;当所述第三比特位为第一预设值时,表示LAC端为转控分离vBRAS系统;当所述第三比特位为第二预设值时,表示LAC端不是转控分离vBRAS系统;Wherein, the first transfer control separation identifier is located in the third bit of the tunnel connection request; when the third bit is the first preset value, it indicates that the LAC end is a transfer control separation vBRAS system; when the third bit is the first preset value When the third bit is the second preset value, it indicates that the LAC end is not a transfer control separation vBRAS system;
所述LAC端BRAS转发器的信息的属性参数对AVP为:The attribute parameter of the information of the BRAS transponder at the LAC side is to AVP:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LAC端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS repeater at the LAC side.
其中,所述第二转控分离标识位于所述隧道连接响应的第三比特位;当所述第三比特位为第三预设值时,表示LNS端为转控分离vBRAS系统;当所述第三比特位为第四预设值时,表示LNS端不是转控分离vBRAS系统;Wherein, the second transfer control separation identifier is located in the third bit of the tunnel connection response; when the third bit is a third preset value, it indicates that the LNS end is a transfer control separation vBRAS system; when the third bit is a third preset value When the third bit is the fourth preset value, it indicates that the LNS end is not a transfer control separation vBRAS system;
所述LNS端BRAS转发器的信息的属性参数对AVP为:The attribute parameters of the information of the BRAS repeater on the LNS side to the AVP are:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LNS端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS forwarder at the LNS side.
第五方面,本发明实施例还提供一种通信设备,包括:收发机、存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;所述处理器,用于读取存储器中的程序实现如第一方面所述的方法中的步骤;或者实现如第二方面所述的方法中的步骤。In a fifth aspect, an embodiment of the present invention further provides a communication device, including: a transceiver, a memory, a processor, and a computer program stored in the memory and running on the processor; the processor, using The program in the read memory implements the steps in the method described in the first aspect; or realizes the steps in the method described in the second aspect.
第六方面,本发明实施例还提供一种计算机可读存储介质,用于存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的方法中的步骤;或者实现如第二方面所述的方法中的步骤。In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium for storing a computer program, and when the computer program is executed by a processor, the steps in the method described in the first aspect are implemented; The steps in the method described in the second aspect.
本发明实施例的上述技术方案的有益效果如下:The beneficial effects of the above-mentioned technical solutions of the embodiments of the present invention are as follows:
在本发明实施例中,在转控分离vBRAS系统中,建立的L2TP隧道的一个端点或者两个端点是在BRAS转发器上,因此,利用本发明实施例的方案可降低BRAS控制器的数据处理量,从而保证了BRAS转发器的性能。In the embodiment of the present invention, in the vBRAS system with separation of forwarding and control, one endpoint or two endpoints of the established L2TP tunnel are on the BRAS forwarder. Therefore, using the solution of the embodiment of the present invention can reduce the data processing of the BRAS controller quantity, thus ensuring the performance of the BRAS transponder.
附图说明Description of drawings
图1为本发明实施例的隧道建立方法的流程图;1 is a flowchart of a method for establishing a tunnel according to an embodiment of the present invention;
图2为L2TP报文头的示意图;FIG. 2 is a schematic diagram of an L2TP packet header;
图3为AVP的示意图;Fig. 3 is the schematic diagram of AVP;
图4为本发明实施例的隧道建立方法的流程图;4 is a flowchart of a method for establishing a tunnel according to an embodiment of the present invention;
图5为本发明实施例的隧道建立方法的流程图;5 is a flowchart of a method for establishing a tunnel according to an embodiment of the present invention;
图6为本发明实施例的隧道建立装置的示意图;6 is a schematic diagram of a tunnel establishment apparatus according to an embodiment of the present invention;
图7为本发明实施例的隧道建立装置的示意图;7 is a schematic diagram of a tunnel establishment apparatus according to an embodiment of the present invention;
图8为本发明实施例的通信设备的示意图;8 is a schematic diagram of a communication device according to an embodiment of the present invention;
图9为本发明实施例的通信设备的示意图。FIG. 9 is a schematic diagram of a communication device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments. The following examples are intended to illustrate the present invention, but not to limit the scope of the present invention.
如图1所示,本发明实施例的隧道建立方法,应用于LAC,包括:As shown in FIG. 1 , a tunnel establishment method according to an embodiment of the present invention, applied to a LAC, includes:
步骤101、获取L2TP网络服务器LNS的信息。Step 101: Obtain the information of the L2TP network server LNS.
其中,所述LNS的信息包括但不限于LNS的名称、地址等。在具体应用中,当用户发起网络访问时,Radius(Remote Authentication Dial In User Service,远程用户拨号认证服务)服务器认证该用户,如果认证通过则返回该用户对应的LNS地址(LNS CP(ControlPlane,控制面))等相关信息,并且LAC准备发起隧道连接请求。Wherein, the information of the LNS includes but is not limited to the name and address of the LNS. In a specific application, when a user initiates a network access, the Radius (Remote Authentication Dial In User Service) server authenticates the user, and returns the corresponding LNS address (LNS CP (Control Plane, Control Plane) of the user if the authentication is passed. face)) and other related information, and the LAC is ready to initiate a tunnel connection request.
步骤102、根据所述LNS的信息,建立与所述LNS之间的L2TP隧道。Step 102: Establish an L2TP tunnel with the LNS according to the information of the LNS.
其中,所述L2TP隧道的一个端点为LAC端的宽带远程接入服务器BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。Wherein, one endpoint of the L2TP tunnel is the broadband remote access server BRAS repeater of the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device of the LNS side; or one endpoint of the L2TP tunnel is the BRAS device of the LAC side, so The other end point of the L2TP tunnel is a BRAS repeater at the LNS end; or, one end point of the L2TP tunnel is a BRAS repeater at the LAC end, and the other end point of the L2TP tunnel is a BRAS repeater at the LNS end.
也就是说,在本发明实施例中,LAC和LNS端都可为转控分离vBRAS系统,或者仅一端为转控分离vBRAS系统。那么,当其中一端是转控分离vBRAS系统时,建立的L2TP通道即是到其BRAS转发器的隧道。That is to say, in this embodiment of the present invention, both the LAC and the LNS end may be the vBRAS system separated by transcoding, or only one end may be the vBRAS system separated by transcoding. Then, when one of the ends is a vBRAS system with a transfer control separation, the established L2TP channel is the tunnel to its BRAS forwarder.
当LAC端或LNS端为转控分离vBRAS系统时,其BRAS设备包括BRAS转发器和BRAS控制器,那么,在本发明实施例中建立的L2TP隧道是到BRAS转发器的隧道。否则,由于未对BRAS设备进行转控分离,所以其BRAS设备仍为传统的BRAS设备,建立的L2TP隧道是到BRAS设备的隧道。When the LAC side or the LNS side is a vBRAS system with control separation, its BRAS device includes a BRAS repeater and a BRAS controller, then the L2TP tunnel established in this embodiment of the present invention is a tunnel to the BRAS repeater. Otherwise, since the forwarding and control separation of the BRAS device is not performed, the BRAS device is still a traditional BRAS device, and the established L2TP tunnel is a tunnel to the BRAS device.
目前L2TP报文头中不包含设备类型标识符,在本发明实施例中需要对报文头进行扩充。Currently, the L2TP packet header does not contain the device type identifier, and the packet header needs to be expanded in this embodiment of the present invention.
如图2所示,L2TP报文头中的各字节含义如下:As shown in Figure 2, the meanings of each byte in the L2TP packet header are as follows:
T:消息类型,“0”表示数据消息,“1”表示控制消息;T: message type, "0" means data message, "1" means control message;
L:长度在位标志,“1”表示报文头中存在长度字段;L: Length in-bit flag, "1" indicates that there is a length field in the packet header;
Tunnel ID:隧道标识符;Session ID:会话标识符。Tunnel ID: Tunnel identifier; Session ID: Session identifier.
在本发明实施例中,扩展定义第3bit为设备标识符Dt,用于表示是本端否为转控分离vBRAS系统。例如,“1”表示转控分离vBRAS系统,“0”表示传统BRAS。In the embodiment of the present invention, the third bit of the extended definition is the device identifier Dt, which is used to indicate whether the local end is a transfer control separation vBRAS system. For example, "1" indicates that the transfer control split vBRAS system, "0" indicates the traditional BRAS.
在L2TP协议中,控制消息用于用户隧道和会话连接的建立、维护和拆除,以及传输控制,控制消息中的参数使用属性参数对(Attribute Value Pair,AVP)来表示。现有技术中,控制消息的AVP不携带更换后隧道端点的信息。在本发明实施例中,对其进行扩充,使其携带变更后隧道端点的信息,即BRAS转发器的信息。In the L2TP protocol, control messages are used for the establishment, maintenance, and teardown of user tunnels and session connections, as well as transmission control, and parameters in the control messages are represented by attribute value pairs (Attribute Value Pair, AVP). In the prior art, the AVP of the control message does not carry the information of the tunnel endpoint after the replacement. In the embodiment of the present invention, it is extended to carry the information of the tunnel endpoint after the change, that is, the information of the BRAS forwarder.
如图3所示,为AVP的示意图。常见的Attribute Type如下:As shown in Figure 3, it is a schematic diagram of AVP. Common Attribute Types are as follows:
Attribute Type=0:Message Type AVP,标识控制消息;Attribute Type=0: Message Type AVP, which identifies the control message;
Attribute Type=2:Protocol Version AVP,标识L2TP协议版本;Attribute Type=2: Protocol Version AVP, which identifies the L2TP protocol version;
Attribute Type=7:Host Name AVP,标识发送端的主机名称;Attribute Type=7: Host Name AVP, which identifies the host name of the sender;
Attribute Type=11:Challenge,标识发送端希望对隧道(Tunnel)对端进行挑战握手认证协议(Challenge Handshake Authentication Protocol,CHAP)验证。Attribute Type=11: Challenge, indicating that the sender wishes to perform challenge handshake authentication protocol (Challenge Handshake Authentication Protocol, CHAP) verification on the peer end of the tunnel (Tunnel).
在本发明实施例中,Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UPName表示本端BRAS转发器的主机名。In this embodiment of the present invention, Attribute Type=fifth preset value: BRAS-UP Name AVP, where BRAS-UPName represents the host name of the local BRAS forwarder.
其中,第五预设值可取255。也即,在此实施例中,扩展属性值为:The fifth preset value may be 255. That is, in this embodiment, the extended attribute value is:
Attribute Type=255:BRAS-UP Name AVP,标识本端BRAS转发器的主机名。Attribute Type=255: BRAS-UP Name AVP, which identifies the host name of the local BRAS forwarder.
以下,结合LAC端和LNS端是否为转控分离vBRAS系统进行分别描述。In the following, descriptions will be made separately in conjunction with whether the LAC side and the LNS side are trans-control separation vBRAS systems.
(1)仅LAC端为转控分离vBRAS系统:(1) Only the LAC side is the transfer control separation vBRAS system:
在此步骤中,LAC根据所述LNS的信息,向LNS发送隧道连接请求,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息。然后,LAC接收所述LNS发送的隧道连接响应,并根据所述隧道连接响应,建立LAC端BRAS转发器与所述LNS端BRAS设备之间的L2TP隧道。In this step, the LAC sends a tunnel connection request to the LNS according to the information of the LNS, and the tunnel connection request includes the first switching control separation identifier and the information of the BRAS forwarder on the LAC side. Then, the LAC receives the tunnel connection response sent by the LNS, and establishes an L2TP tunnel between the BRAS forwarder at the LAC side and the BRAS device at the LNS side according to the tunnel connection response.
其中,第一转控分离标识即为设备标识符。当所述第三比特位为第一预设值时,表示LAC端为转控分离vBRAS系统;当所述第三比特位为第二预设值时,表示LAC端不是转控分离vBRAS系统。例如,“1”表示转控分离vBRAS系统,“0”表示不是转控分离vBRAS系统,即传统BRAS。The first transfer control separation identifier is the device identifier. When the third bit is the first preset value, it indicates that the LAC end is a trans-control separation vBRAS system; when the third bit is the second preset value, it indicates that the LAC end is not the trans-control separation vBRAS system. For example, "1" indicates that the transfer control separation vBRAS system, "0" indicates that the transfer control separation vBRAS system is not, that is, the traditional BRAS.
(2)仅LNS端为转控分离vBRAS系统:(2) Only the LNS side is the transfer control separation vBRAS system:
在此步骤中,LAC根据所述LNS的信息,向LNS发送隧道连接请求,然后接收所述LNS发送的隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息。最后,根据所述隧道连接响应,建立LAC端的BRAS设备与所述LNS端BRAS转发器之间的L2TP隧道。In this step, the LAC sends a tunnel connection request to the LNS according to the information of the LNS, and then receives a tunnel connection response sent by the LNS. The tunnel connection response includes the second forwarding control separation identifier and the BRAS forwarding on the LNS side. device information. Finally, according to the tunnel connection response, an L2TP tunnel is established between the BRAS device on the LAC side and the BRAS forwarder on the LNS side.
其中,所述第二转控分离标识位于所述隧道连接响应的第三比特位,即设备标识符。当所述第三比特位为第三预设值时,表示LNS端为转控分离vBRAS系统;当所述第三比特位为第四预设值时,表示LNS端不是转控分离vBRAS系统。例如,“1”表示转控分离vBRAS系统,“0”表示不是转控分离vBRAS系统,即传统BRAS。Wherein, the second transfer control separation identifier is located in the third bit of the tunnel connection response, that is, the device identifier. When the third bit is the third preset value, it indicates that the LNS end is a transfer control separation vBRAS system; when the third bit is the fourth preset value, it indicates that the LNS end is not the transfer control separation vBRAS system. For example, "1" indicates that the transfer control separation vBRAS system, "0" indicates that the transfer control separation vBRAS system is not, that is, the traditional BRAS.
所述LNS端BRAS转发器的信息的属性参数对AVP为:The attribute parameters of the information of the BRAS repeater on the LNS side to the AVP are:
Attribute Type=255:BRAS-UP Name AVP,BRAS-UP Name表示LNS端BRAS转发器的主机名。Attribute Type=255: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS forwarder at the LNS side.
(3)LAC端和LNS端均为转控分离vBRAS系统:(3) Both the LAC side and the LNS side are control-separated vBRAS systems:
在此步骤中,LAC根据所述LNS的信息,向LNS发送隧道连接请求,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息。然后接收所述LNS发送的隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息。最后,根据所述隧道连接响应,建立LAC端BRAS转发器与所述LNS端BRAS转发器之间的L2TP隧道。In this step, the LAC sends a tunnel connection request to the LNS according to the information of the LNS, and the tunnel connection request includes the first switching control separation identifier and the information of the BRAS forwarder on the LAC side. Then, the tunnel connection response sent by the LNS is received, and the tunnel connection response includes the second switching control separation identifier and the information of the BRAS forwarder on the LNS side. Finally, according to the tunnel connection response, an L2TP tunnel is established between the BRAS repeater at the LAC end and the BRAS repeater at the LNS end.
其中,第一转控分离标识、第二转控分离标识的含义可参照前述描述。For the meanings of the first switching control separation identifier and the second switching control separation identifier, reference may be made to the foregoing description.
在本发明实施例中,在转控分离vBRAS系统中,建立的L2TP隧道的一个端点或者两个端点是在BRAS转发器上,因此,利用本发明实施例的方案可降低BRAS控制器的数据处理量,从而保证了BRAS转发器的性能。In the embodiment of the present invention, in the vBRAS system with separation of forwarding and control, one endpoint or two endpoints of the established L2TP tunnel are on the BRAS forwarder. Therefore, using the solution of the embodiment of the present invention can reduce the data processing of the BRAS controller quantity, thus ensuring the performance of the BRAS transponder.
如图4所示,本发明实施例的隧道建立方法包括:As shown in FIG. 4 , the tunnel establishment method according to the embodiment of the present invention includes:
步骤401、根据LAC的请求,建立与所述LAC之间的L2TP隧道;
其中,所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者Wherein, one endpoint of the L2TP tunnel is the BRAS forwarder of the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device of the LNS side; or
所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,One endpoint of the L2TP tunnel is a BRAS device at the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder at the LNS side; or,
所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。One endpoint of the L2TP tunnel is a BRAS forwarder on the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder on the LNS side.
以下,结合LAC端和LNS端是否为转控分离vBRAS系统进行分别描述。In the following, descriptions will be made separately in conjunction with whether the LAC side and the LNS side are trans-control separation vBRAS systems.
(1)仅LAC端为转控分离vBRAS系统:(1) Only the LAC side is the transfer control separation vBRAS system:
在此步骤中,LNS接收所述LAC端的隧道连接请求;在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息,然后,向所述LAC端发送隧道连接响应。最后,建立所述LNS端BRAS设备与所述LAC端BRAS转发器之间的L2TP隧道。In this step, the LNS receives the tunnel connection request from the LAC side; the tunnel connection request includes the first switching control separation identifier and the information of the BRAS forwarder on the LAC side, and then sends a tunnel connection response to the LAC side. Finally, an L2TP tunnel between the LNS-side BRAS device and the LAC-side BRAS repeater is established.
(2)仅LNS端为转控分离vBRAS系统:(2) Only the LNS side is the transfer control separation vBRAS system:
在此步骤中,LNS接收所述LAC端的隧道连接请求。然后,向所述LAC端发送隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息。最后,建立所述LNS端BRAS转发器与所述LAC端BRAS设备之间的L2TP隧道。In this step, the LNS receives the tunnel connection request from the LAC side. Then, a tunnel connection response is sent to the LAC side, and the tunnel connection response includes the second switching control separation identifier and the information of the BRAS forwarder at the LNS side. Finally, an L2TP tunnel between the LNS-side BRAS forwarder and the LAC-side BRAS device is established.
(3)LAC端和LNS端均为转控分离vBRAS系统:(3) Both the LAC side and the LNS side are control-separated vBRAS systems:
在此步骤中,在此步骤中,LNS接收所述LAC端的隧道连接请求,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息。然后,向所述LAC端发送隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息。最后,建立所述LNS端BRAS转发器与所述LAC端BRAS转发器之间的L2TP隧道。In this step, in this step, the LNS receives the tunnel connection request from the LAC side, and the tunnel connection request includes the first transfer control separation identifier and the information of the BRAS repeater on the LAC side. Then, a tunnel connection response is sent to the LAC side, and the tunnel connection response includes the second switching control separation identifier and the information of the BRAS forwarder at the LNS side. Finally, an L2TP tunnel between the LNS-side BRAS repeater and the LAC-side BRAS repeater is established.
其中,第一转控分离标识、第二转控分离标识的含义可参照前述描述。For the meanings of the first switching control separation identifier and the second switching control separation identifier, reference may be made to the foregoing description.
在本发明实施例中,在转控分离vBRAS系统中,建立的L2TP隧道的一个端点或者两个端点是在BRAS转发器上,因此,利用本发明实施例的方案可降低BRAS控制器的数据处理量,从而保证了BRAS转发器的性能。In the embodiment of the present invention, in the vBRAS system with separation of forwarding and control, one endpoint or two endpoints of the established L2TP tunnel are on the BRAS forwarder. Therefore, using the solution of the embodiment of the present invention can reduce the data processing of the BRAS controller quantity, thus ensuring the performance of the BRAS transponder.
如图5所示,本发明实施例的数据处理方法包括:As shown in FIG. 5 , the data processing method according to the embodiment of the present invention includes:
步骤501:LAC UP(User Plane,用户面)和LAC CP以及LNS UP和LNS CP之间分别建立CU通道。Step 501 : CU channels are respectively established between the LAC UP (User Plane, user plane) and the LAC CP and between the LNS UP and the LNS CP.
步骤502:用户发起呼叫连接(图中未示出)。Step 502: The user initiates a call connection (not shown in the figure).
步骤503:家庭网关(Residential Gateway,RG)和LAC端进行PPP(Point to PointProtocol,点到点)LCP(Link Control Protocol,链路控制协议)协商,LAC UP将PPP控制报文通过VXLAN(Virtual Extensible LAN,可扩展虚拟局域网)隧道发送到LAC CP上的PPP组件进行处理。Step 503: The home gateway (Residential Gateway, RG) and the LAC end conduct PPP (Point to Point Protocol, point-to-point) LCP (Link Control Protocol, Link Control Protocol) negotiation, and the LAC UP transmits the PPP control message through the VXLAN (Virtual Extensible Protocol). LAN, Extensible Virtual Local Area Network) tunnel is sent to the PPP component on the LAC CP for processing.
步骤504:LAC CP对家庭网关提供的用户信息进行CHAP(Challenge HandshakeAuthentication Protocol,询问握手认证协议)认证。Step 504: The LAC CP performs CHAP (Challenge Handshake Authentication Protocol, Challenge Handshake Authentication Protocol) authentication on the user information provided by the home gateway.
步骤505:LAC CP将认证信息(用户名、密码)发送到Radius服务器进行认证。Step 505: The LAC CP sends the authentication information (username, password) to the Radius server for authentication.
步骤506:Radius服务器认证该用户,如果认证通过则返回该用户对应的LNS地址(LNS CP)等相关信息,并且LAC准备发起Tunnel连接请求。Step 506 : the Radius server authenticates the user, and returns relevant information such as the LNS address (LNS CP) corresponding to the user if the authentication is passed, and the LAC prepares to initiate a Tunnel connection request.
步骤507:LAC CP端向LNS发起Tunnel连接请求(SCCRQ),SCCRQ需要标识出转控分离vBRAS系统及本端BRAS-UP的信息。Step 507: The LAC CP side initiates a Tunnel Connection Request (SCCRQ) to the LNS, and the SCCRQ needs to identify the information of the transfer control separation vBRAS system and the local BRAS-UP.
目前L2TP报文头中不包含设备类型标识符,需要对当前的报文头进行扩充。如图2所示,扩展定义第3bit为设备标识符Dt,“1”表示转控分离vBRAS,“0”表示传统BRAS。当前的控制消息的AVP不携带更换后隧道端点的信息,需要对其进行扩充。如图3所示,在此实施例中扩充如下:Currently, the L2TP packet header does not contain the device type identifier, and the current packet header needs to be expanded. As shown in Figure 2, the 3rd bit of the extended definition is the device identifier Dt, "1" represents the transfer control separation vBRAS, and "0" represents the traditional BRAS. The AVP of the current control message does not carry the information of the tunnel endpoint after the replacement, and needs to be expanded. As shown in Figure 3, in this embodiment the expansion is as follows:
Attribute Type=255:BRAS-UP Name AVP,标识本端BRAS-UP主机名。Attribute Type=255: BRAS-UP Name AVP, which identifies the BRAS-UP host name of the local end.
步骤508:LAC UP从VXLAN隧道解析出L2TP控制报文,查找路由,将控制报文转发给LNS。Step 508: The LAC UP parses the L2TP control packet from the VXLAN tunnel, searches for a route, and forwards the control packet to the LNS.
步骤509:LNS CP发送给LAC的SCCRP报文需要携带转控分离VBRAS系统的标识位以及LNS UP的信息。Step 509 : the SCCRP message sent by the LNS CP to the LAC needs to carry the identification bit of the VBRAS system of the transfer control separation and the information of the LNS UP.
步骤510:LAC向LNS发送SCCCN报文,标识此Tunnel建立成功,Tunnel端点建立在BRAS-UP上。Step 510: The LAC sends an SCCCN message to the LNS, indicating that the tunnel is successfully established and the tunnel endpoint is established on the BRAS-UP.
步骤511:建立Session(会话)。Step 511: Establish a Session.
步骤512:LAC CP端将用户认证信息和PPP协商参数传递给LNS,LNS UP将L2TP控制报文通过VXLAN隧道送到LNS CP上的LNS组件进行处理。Step 512: The LAC CP transmits the user authentication information and PPP negotiation parameters to the LNS, and the LNS UP sends the L2TP control packet to the LNS component on the LNS CP through the VXLAN tunnel for processing.
步骤513:LNS CP将接入请求信息发送给Radius服务器进行认证。Radius服务器认证该请求信息,如果认证通过则返回响应信息。Step 513: The LNS CP sends the access request information to the Radius server for authentication. The Radius server authenticates the request information, and returns the response information if the authentication is passed.
步骤514:LNS为用户分配IP地址。Step 514: The LNS assigns an IP address to the user.
家庭网关通过L2TP隧道访问企业网。The home gateway accesses the enterprise network through the L2TP tunnel.
由上可以看出,本发明实施例基于转控分离的vBRAS架构,重新设计了L2TP接入流程,通过扩展L2TP协议把L2TP隧道建立在BRAS-UP上,解决了流量绕转和控制面BRAS-CP性能压力的问题。It can be seen from the above that the embodiment of the present invention redesigns the L2TP access process based on the vBRAS architecture of the forwarding and control separation, and establishes the L2TP tunnel on the BRAS-UP by extending the L2TP protocol, which solves the problem of traffic detour and control plane BRAS-UP. CP performance pressure issues.
如图6所示,本发明实施例的隧道建立装置,应用于LAC,包括:处理器601和收发器602;As shown in FIG. 6 , the tunnel establishment apparatus according to the embodiment of the present invention, applied to the LAC, includes: a
所述处理器601,用于获取L2TP网络服务器LNS的信息;根据所述LNS的信息,建立与所述LNS之间的L2TP隧道;The
其中,所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者Wherein, one endpoint of the L2TP tunnel is the BRAS forwarder of the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device of the LNS side; or
所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,One endpoint of the L2TP tunnel is a BRAS device at the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder at the LNS side; or,
所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。One endpoint of the L2TP tunnel is a BRAS forwarder on the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder on the LNS side.
其中,所述处理器601还用于:根据所述LNS的信息,向LNS发送隧道连接请求;在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;接收所述LNS发送的隧道连接响应;根据所述隧道连接响应,建立LAC端BRAS转发器与所述LNS端BRAS设备之间的L2TP隧道。The
其中,所述处理器601还用于:根据所述LNS的信息,向LNS发送隧道连接请求;接收所述LNS发送的隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息;根据所述隧道连接响应,建立LAC端的BRAS设备与所述LNS端BRAS转发器之间的L2TP隧道。The
其中,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;所述处理器601还用于:建立LAC端BRAS转发器与所述LNS端BRAS转发器之间的L2TP隧道。Wherein, the tunnel connection request includes the first switching control separation identifier and the information of the BRAS repeater at the LAC end; the
其中,所述第一转控分离标识位于所述隧道连接请求的第三比特位;当所述第三比特位为第一预设值时,表示LAC端为转控分离vBRAS系统;当所述第三比特位为第二预设值时,表示LAC端不是转控分离vBRAS系统;Wherein, the first transfer control separation identifier is located in the third bit of the tunnel connection request; when the third bit is the first preset value, it indicates that the LAC end is a transfer control separation vBRAS system; when the third bit is the first preset value When the third bit is the second preset value, it indicates that the LAC end is not a transfer control separation vBRAS system;
所述LAC端BRAS转发器的信息的属性参数对AVP为:The attribute parameter of the information of the BRAS transponder at the LAC side is to AVP:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LAC端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS repeater at the LAC side.
其中,所述第二转控分离标识位于所述隧道连接响应的第三比特位;当所述第三比特位为第三预设值时,表示LNS端为转控分离vBRAS系统;当所述第三比特位为第四预设值时,表示LNS端不是转控分离vBRAS系统;Wherein, the second transfer control separation identifier is located in the third bit of the tunnel connection response; when the third bit is a third preset value, it indicates that the LNS end is a transfer control separation vBRAS system; when the third bit is a third preset value When the third bit is the fourth preset value, it indicates that the LNS end is not a transfer control separation vBRAS system;
所述LNS端BRAS转发器的信息的属性参数对AVP为:The attribute parameters of the information of the BRAS repeater on the LNS side to the AVP are:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LNS端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS forwarder at the LNS side.
其中,第一转控分离标识、第二转控分离标识的含义可参照前述描述。For the meanings of the first switching control separation identifier and the second switching control separation identifier, reference may be made to the foregoing description.
本发明所述装置的工作原理可参照前述方法实施例的描述。For the working principle of the device of the present invention, reference may be made to the description of the foregoing method embodiments.
在本发明实施例中,在转控分离vBRAS系统中,建立的L2TP隧道的一个端点或者两个端点是在BRAS转发器上,因此,利用本发明实施例的方案可降低BRAS控制器的数据处理量,从而保证了BRAS转发器的性能。In the embodiment of the present invention, in the vBRAS system with separation of forwarding and control, one endpoint or two endpoints of the established L2TP tunnel are on the BRAS forwarder. Therefore, using the solution of the embodiment of the present invention can reduce the data processing of the BRAS controller quantity, thus ensuring the performance of the BRAS transponder.
如图7所示,本发明实施例的隧道建立装置,应用于LNS,包括:处理器701和收发器702;As shown in FIG. 7 , the tunnel establishment apparatus according to the embodiment of the present invention, applied to the LNS, includes: a
所述处理器701,用于根据LAC的请求,建立与所述LAC之间的L2TP隧道;The
其中,所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者Wherein, one endpoint of the L2TP tunnel is the BRAS forwarder of the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device of the LNS side; or
所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,One endpoint of the L2TP tunnel is a BRAS device at the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder at the LNS side; or,
所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。One endpoint of the L2TP tunnel is a BRAS forwarder on the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder on the LNS side.
其中,所述处理器701还用于:接收所述LAC端的隧道连接请求;在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;向所述LAC端发送隧道连接响应;建立所述LNS端BRAS设备与所述LAC端BRAS转发器之间的L2TP隧道。The
其中,所述处理器701还用于:接收所述LAC端的隧道连接请求;向所述LAC端发送隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息;建立所述LNS端BRAS转发器与所述LAC端BRAS设备之间的L2TP隧道。The
其中,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;所述处理器701还用于,建立LNS端BRAS转发器与所述LAC端BRAS转发器之间的L2TP隧道。Wherein, the tunnel connection request includes the first switching control separation identifier and the information of the BRAS repeater at the LAC end; the
其中,所述第一转控分离标识位于所述隧道连接请求的第三比特位;当所述第三比特位为第一预设值时,表示LAC端为转控分离vBRAS系统;当所述第三比特位为第二预设值时,表示LAC端不是转控分离vBRAS系统;Wherein, the first transfer control separation identifier is located in the third bit of the tunnel connection request; when the third bit is the first preset value, it indicates that the LAC end is a transfer control separation vBRAS system; when the third bit is the first preset value When the third bit is the second preset value, it indicates that the LAC end is not a transfer control separation vBRAS system;
所述LAC端BRAS转发器的信息的属性参数对AVP为:The attribute parameter of the information of the BRAS transponder at the LAC side is to AVP:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LAC端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS repeater at the LAC side.
其中,所述第二转控分离标识位于所述隧道连接响应的第三比特位;当所述第三比特位为第三预设值时,表示LNS端为转控分离vBRAS系统;当所述第三比特位为第四预设值时,表示LNS端不是转控分离vBRAS系统;Wherein, the second transfer control separation identifier is located in the third bit of the tunnel connection response; when the third bit is a third preset value, it indicates that the LNS end is a transfer control separation vBRAS system; when the third bit is a third preset value When the third bit is the fourth preset value, it indicates that the LNS end is not a transfer control separation vBRAS system;
所述LNS端BRAS转发器的信息的属性参数对AVP为:The attribute parameters of the information of the BRAS repeater on the LNS side to the AVP are:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LNS端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS forwarder at the LNS side.
其中,第一转控分离标识、第二转控分离标识的含义可参照前述描述。For the meanings of the first switching control separation identifier and the second switching control separation identifier, reference may be made to the foregoing description.
本发明所述装置的工作原理可参照前述方法实施例的描述。For the working principle of the device of the present invention, reference may be made to the description of the foregoing method embodiments.
在本发明实施例中,在转控分离vBRAS系统中,建立的L2TP隧道的一个端点或者两个端点是在BRAS转发器上,因此,利用本发明实施例的方案可降低BRAS控制器的数据处理量,从而保证了BRAS转发器的性能。In the embodiment of the present invention, in the vBRAS system with separation of forwarding and control, one endpoint or two endpoints of the established L2TP tunnel are on the BRAS forwarder. Therefore, using the solution of the embodiment of the present invention can reduce the data processing of the BRAS controller quantity, thus ensuring the performance of the BRAS transponder.
如图8所示,本发明实施例的通信设备包括:处理器800,用于读取存储器820中的程序,执行下列过程:As shown in FIG. 8 , the communication device according to the embodiment of the present invention includes: a
获取L2TP网络服务器LNS的信息;Obtain the information of the L2TP network server LNS;
根据所述LNS的信息,建立与所述LNS之间的L2TP隧道;According to the information of the LNS, establish an L2TP tunnel with the LNS;
其中,所述L2TP隧道的一个端点为LAC端的宽带远程接入服务器BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者Wherein, one endpoint of the L2TP tunnel is the broadband remote access server BRAS repeater on the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device on the LNS side; or
所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,One endpoint of the L2TP tunnel is a BRAS device at the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder at the LNS side; or,
所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。One endpoint of the L2TP tunnel is a BRAS forwarder on the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder on the LNS side.
收发机810,用于在处理器800的控制下接收和发送数据。The
其中,在图8中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器800代表的一个或多个处理器和存储器820代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机810可以是多个元件,即包括发送机和收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器800负责管理总线架构和通常的处理,存储器820可以存储处理器800在执行操作时所使用的数据。8, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by
处理器800负责管理总线架构和通常的处理,存储器820可以存储处理器800在执行操作时所使用的数据。The
处理器800还用于读取所述计算机程序,执行如下步骤:The
根据所述LNS的信息,向LNS发送隧道连接请求;在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;According to the information of the LNS, send a tunnel connection request to the LNS; the tunnel connection request includes the first transfer control separation identifier and the information of the LAC side BRAS forwarder;
接收所述LNS发送的隧道连接响应;receiving a tunnel connection response sent by the LNS;
根据所述隧道连接响应,建立LAC端BRAS转发器与所述LNS端BRAS设备之间的L2TP隧道。According to the tunnel connection response, an L2TP tunnel between the LAC-side BRAS forwarder and the LNS-side BRAS device is established.
处理器800还用于读取所述计算机程序,执行如下步骤:The
根据所述LNS的信息,向LNS发送隧道连接请求;According to the information of the LNS, send a tunnel connection request to the LNS;
接收所述LNS发送的隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息;Receive the tunnel connection response sent by the LNS, and the tunnel connection response includes the second transfer control separation identifier and the information of the LNS-side BRAS forwarder;
根据所述隧道连接响应,建立LAC端的BRAS设备与所述LNS端BRAS转发器之间的L2TP隧道。According to the tunnel connection response, an L2TP tunnel between the BRAS device on the LAC side and the BRAS forwarder on the LNS side is established.
在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;处理器800还用于读取所述计算机程序,执行如下步骤:The tunnel connection request includes the information of the first transfer control separation identifier and the BRAS repeater at the LAC end; the
建立LAC端BRAS转发器与所述LNS端BRAS转发器之间的L2TP隧道。An L2TP tunnel between the LAC-side BRAS repeater and the LNS-side BRAS repeater is established.
其中,所述第一转控分离标识位于所述隧道连接请求的第三比特位;当所述第三比特位为第一预设值时,表示LAC端为转控分离vBRAS系统;当所述第三比特位为第二预设值时,表示LAC端不是转控分离vBRAS系统;Wherein, the first transfer control separation identifier is located in the third bit of the tunnel connection request; when the third bit is the first preset value, it indicates that the LAC end is a transfer control separation vBRAS system; when the third bit is the first preset value When the third bit is the second preset value, it indicates that the LAC end is not a transfer control separation vBRAS system;
所述LAC端BRAS转发器的信息的属性参数对AVP为:The attribute parameter of the information of the BRAS transponder at the LAC side is to AVP:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LAC端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS repeater at the LAC side.
其中,所述第二转控分离标识位于所述隧道连接响应的第三比特位;当所述第三比特位为第三预设值时,表示LNS端为转控分离vBRAS系统;当所述第三比特位为第四预设值时,表示LNS端不是转控分离vBRAS系统;Wherein, the second transfer control separation identifier is located in the third bit of the tunnel connection response; when the third bit is a third preset value, it indicates that the LNS end is a transfer control separation vBRAS system; when the third bit is a third preset value When the third bit is the fourth preset value, it indicates that the LNS end is not a transfer control separation vBRAS system;
所述LNS端BRAS转发器的信息的属性参数对AVP为:The attribute parameters of the information of the BRAS repeater on the LNS side to the AVP are:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LNS端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS forwarder at the LNS side.
如图9所示,本发明实施例的通信设备包括:处理器900,用于读取存储器920中的程序,执行下列过程:As shown in FIG. 9 , the communication device according to the embodiment of the present invention includes: a
根据LAC的请求,建立与所述LAC之间的L2TP隧道;According to the request of the LAC, establish an L2TP tunnel with the LAC;
其中,所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者Wherein, one endpoint of the L2TP tunnel is the BRAS forwarder of the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device of the LNS side; or
所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,One endpoint of the L2TP tunnel is a BRAS device at the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder at the LNS side; or,
所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。One endpoint of the L2TP tunnel is a BRAS forwarder on the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder on the LNS side.
收发机910,用于在处理器900的控制下接收和发送数据。The
其中,在图9中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器900代表的一个或多个处理器和存储器920代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机910可以是多个元件,即包括发送机和收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器900负责管理总线架构和通常的处理,存储器920可以存储处理器900在执行操作时所使用的数据。9, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by
处理器900负责管理总线架构和通常的处理,存储器920可以存储处理器900在执行操作时所使用的数据。The
处理器900还用于读取所述计算机程序,执行如下步骤:The
接收所述LAC端的隧道连接请求;在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;Receive the tunnel connection request of the LAC end; the tunnel connection request includes the first transfer control separation identifier and the information of the BRAS repeater of the LAC end;
向所述LAC端发送隧道连接响应;sending a tunnel connection response to the LAC end;
建立所述LNS端BRAS设备与所述LAC端BRAS转发器之间的L2TP隧道。An L2TP tunnel is established between the LNS-side BRAS device and the LAC-side BRAS repeater.
处理器900还用于读取所述计算机程序,执行如下步骤:The
接收所述LAC端的隧道连接请求;receiving a tunnel connection request from the LAC side;
向所述LAC端发送隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息;sending a tunnel connection response to the LAC end, where the tunnel connection response includes the second switching control separation identifier and the information of the BRAS repeater at the LNS side;
建立所述LNS端BRAS转发器与所述LAC端BRAS设备之间的L2TP隧道。An L2TP tunnel between the LNS-side BRAS forwarder and the LAC-side BRAS device is established.
其中,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;处理器900还用于读取所述计算机程序,执行如下步骤:Wherein, in the described tunnel connection request, the information of the first transfer control separation identifier and the LAC end BRAS repeater is included; the
建立LNS端BRAS转发器与所述LAC端BRAS转发器之间的L2TP隧道。An L2TP tunnel between the LNS-side BRAS repeater and the LAC-side BRAS repeater is established.
其中,所述第一转控分离标识位于所述隧道连接请求的第三比特位;当所述第三比特位为第一预设值时,表示LAC端为转控分离vBRAS系统;当所述第三比特位为第二预设值时,表示LAC端不是转控分离vBRAS系统;Wherein, the first transfer control separation identifier is located in the third bit of the tunnel connection request; when the third bit is the first preset value, it indicates that the LAC end is a transfer control separation vBRAS system; when the third bit is the first preset value When the third bit is the second preset value, it indicates that the LAC end is not a transfer control separation vBRAS system;
所述LAC端BRAS转发器的信息的属性参数对AVP为:The attribute parameter of the information of the BRAS transponder at the LAC side is to AVP:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LAC端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS repeater at the LAC side.
其中,所述第二转控分离标识位于所述隧道连接响应的第三比特位;当所述第三比特位为第三预设值时,表示LNS端为转控分离vBRAS系统;当所述第三比特位为第四预设值时,表示LNS端不是转控分离vBRAS系统;Wherein, the second transfer control separation identifier is located in the third bit of the tunnel connection response; when the third bit is a third preset value, it indicates that the LNS end is a transfer control separation vBRAS system; when the third bit is a third preset value When the third bit is the fourth preset value, it indicates that the LNS end is not a transfer control separation vBRAS system;
所述LNS端BRAS转发器的信息的属性参数对AVP为:The attribute parameters of the information of the BRAS repeater on the LNS side to the AVP are:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LNS端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS forwarder at the LNS side.
此外,本发明实施例的计算机可读存储介质,用于存储计算机程序,所述计算机程序可被处理器执行实现以下步骤:In addition, the computer-readable storage medium of the embodiment of the present invention is used to store a computer program, and the computer program can be executed by a processor to implement the following steps:
获取L2TP网络服务器LNS的信息;Obtain the information of the L2TP network server LNS;
根据所述LNS的信息,建立与所述LNS之间的L2TP隧道;According to the information of the LNS, establish an L2TP tunnel with the LNS;
其中,所述L2TP隧道的一个端点为LAC端的宽带远程接入服务器BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者Wherein, one endpoint of the L2TP tunnel is the broadband remote access server BRAS repeater on the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device on the LNS side; or
所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,One endpoint of the L2TP tunnel is a BRAS device at the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder at the LNS side; or,
所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。One endpoint of the L2TP tunnel is a BRAS forwarder on the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder on the LNS side.
其中,所述根据所述LNS的信息,建立与所述LNS之间的L2TP隧道,包括:Wherein, establishing an L2TP tunnel with the LNS according to the information of the LNS includes:
根据所述LNS的信息,向LNS发送隧道连接请求;在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;According to the information of the LNS, send a tunnel connection request to the LNS; the tunnel connection request includes the first transfer control separation identifier and the information of the LAC side BRAS forwarder;
接收所述LNS发送的隧道连接响应;receiving a tunnel connection response sent by the LNS;
根据所述隧道连接响应,建立LAC端BRAS转发器与所述LNS端BRAS设备之间的L2TP隧道。According to the tunnel connection response, an L2TP tunnel between the LAC-side BRAS forwarder and the LNS-side BRAS device is established.
其中,所述根据所述LNS的信息,建立与所述LNS之间的L2TP隧道,包括:Wherein, establishing an L2TP tunnel with the LNS according to the information of the LNS includes:
根据所述LNS的信息,向LNS发送隧道连接请求;According to the information of the LNS, send a tunnel connection request to the LNS;
接收所述LNS发送的隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息;Receive the tunnel connection response sent by the LNS, and the tunnel connection response includes the second transfer control separation identifier and the information of the LNS-side BRAS forwarder;
根据所述隧道连接响应,建立LAC端的BRAS设备与所述LNS端BRAS转发器之间的L2TP隧道。According to the tunnel connection response, an L2TP tunnel between the BRAS device on the LAC side and the BRAS forwarder on the LNS side is established.
其中,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;Wherein, the tunnel connection request includes the first transfer control separation identifier and the information of the BRAS repeater at the LAC end;
所述建立LAC端的BRAS设备与所述LNS端BRAS转发器之间的L2TP隧道,具体为:The establishment of the L2TP tunnel between the BRAS device on the LAC side and the BRAS repeater on the LNS side is specifically:
建立LAC端BRAS转发器与所述LNS端BRAS转发器之间的L2TP隧道。An L2TP tunnel between the LAC-side BRAS repeater and the LNS-side BRAS repeater is established.
其中,所述第一转控分离标识位于所述隧道连接请求的第三比特位;当所述第三比特位为第一预设值时,表示LAC端为转控分离vBRAS系统;当所述第三比特位为第二预设值时,表示LAC端不是转控分离vBRAS系统;Wherein, the first transfer control separation identifier is located in the third bit of the tunnel connection request; when the third bit is the first preset value, it indicates that the LAC end is a transfer control separation vBRAS system; when the third bit is the first preset value When the third bit is the second preset value, it indicates that the LAC end is not a transfer control separation vBRAS system;
所述LAC端BRAS转发器的信息的属性参数对AVP为:The attribute parameter of the information of the BRAS transponder at the LAC side is to AVP:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LAC端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS repeater at the LAC side.
其中,所述第二转控分离标识位于所述隧道连接响应的第三比特位;当所述第三比特位为第三预设值时,表示LNS端为转控分离vBRAS系统;当所述第三比特位为第四预设值时,表示LNS端不是转控分离vBRAS系统;Wherein, the second transfer control separation identifier is located in the third bit of the tunnel connection response; when the third bit is a third preset value, it indicates that the LNS end is a transfer control separation vBRAS system; when the third bit is a third preset value When the third bit is the fourth preset value, it indicates that the LNS end is not a transfer control separation vBRAS system;
所述LNS端BRAS转发器的信息的属性参数对AVP为:The attribute parameters of the information of the BRAS repeater on the LNS side to the AVP are:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LNS端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS forwarder at the LNS side.
此外,本发明实施例的计算机可读存储介质,用于存储计算机程序,所述计算机程序可被处理器执行实现以下步骤:In addition, the computer-readable storage medium of the embodiment of the present invention is used to store a computer program, and the computer program can be executed by a processor to implement the following steps:
根据LAC的请求,建立与所述LAC之间的L2TP隧道;According to the request of the LAC, establish an L2TP tunnel with the LAC;
其中,所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS设备;或者Wherein, one endpoint of the L2TP tunnel is the BRAS forwarder of the LAC side, and the other endpoint of the L2TP tunnel is the BRAS device of the LNS side; or
所述L2TP隧道的一个端点为LAC端的BRAS设备,所述L2TP隧道的另一个端点为LNS端的BRAS转发器;或者,One endpoint of the L2TP tunnel is a BRAS device at the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder at the LNS side; or,
所述L2TP隧道的一个端点为LAC端的BRAS转发器,所述L2TP隧道的另一个端点为LNS端的BRAS转发器。One endpoint of the L2TP tunnel is a BRAS forwarder on the LAC side, and another endpoint of the L2TP tunnel is a BRAS forwarder on the LNS side.
其中,所述根据LAC的请求,建立与所述LAC之间的L2TP隧道,包括:Wherein, according to the request of the LAC, establishing an L2TP tunnel with the LAC includes:
接收所述LAC端的隧道连接请求;在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;Receive the tunnel connection request of the LAC end; the tunnel connection request includes the first transfer control separation identifier and the information of the BRAS repeater of the LAC end;
向所述LAC端发送隧道连接响应;sending a tunnel connection response to the LAC end;
建立所述LNS端BRAS设备与所述LAC端BRAS转发器之间的L2TP隧道。An L2TP tunnel is established between the LNS-side BRAS device and the LAC-side BRAS repeater.
其中,所述根据LAC的请求,建立与所述LAC之间的L2TP隧道,包括:Wherein, according to the request of the LAC, establishing an L2TP tunnel with the LAC includes:
接收所述LAC端的隧道连接请求;receiving a tunnel connection request from the LAC side;
向所述LAC端发送隧道连接响应,在所述隧道连接响应中包括第二转控分离标识以及LNS端BRAS转发器的信息;sending a tunnel connection response to the LAC end, where the tunnel connection response includes the second switching control separation identifier and the information of the BRAS repeater at the LNS side;
建立所述LNS端BRAS转发器与所述LAC端BRAS设备之间的L2TP隧道。An L2TP tunnel between the LNS-side BRAS forwarder and the LAC-side BRAS device is established.
其中,在所述隧道连接请求中包括第一转控分离标识以及LAC端BRAS转发器的信息;Wherein, the tunnel connection request includes the first transfer control separation identifier and the information of the BRAS repeater at the LAC end;
所述建立所述LNS端BRAS转发器与所述LAC端BRAS设备之间的L2TP隧道,包括:The establishing the L2TP tunnel between the LNS-side BRAS forwarder and the LAC-side BRAS device includes:
建立LNS端BRAS转发器与所述LAC端BRAS转发器之间的L2TP隧道。An L2TP tunnel between the LNS-side BRAS repeater and the LAC-side BRAS repeater is established.
其中,所述第一转控分离标识位于所述隧道连接请求的第三比特位;当所述第三比特位为第一预设值时,表示LAC端为转控分离vBRAS系统;当所述第三比特位为第二预设值时,表示LAC端不是转控分离vBRAS系统;Wherein, the first transfer control separation identifier is located in the third bit of the tunnel connection request; when the third bit is the first preset value, it indicates that the LAC end is a transfer control separation vBRAS system; when the third bit is the first preset value When the third bit is the second preset value, it indicates that the LAC end is not a transfer control separation vBRAS system;
所述LAC端BRAS转发器的信息的属性参数对AVP为:The attribute parameter of the information of the BRAS transponder at the LAC side is to AVP:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LAC端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS repeater at the LAC side.
其中,所述第二转控分离标识位于所述隧道连接响应的第三比特位;当所述第三比特位为第三预设值时,表示LNS端为转控分离vBRAS系统;当所述第三比特位为第四预设值时,表示LNS端不是转控分离vBRAS系统;Wherein, the second transfer control separation identifier is located in the third bit of the tunnel connection response; when the third bit is a third preset value, it indicates that the LNS end is a transfer control separation vBRAS system; when the third bit is a third preset value When the third bit is the fourth preset value, it indicates that the LNS end is not a transfer control separation vBRAS system;
所述LNS端BRAS转发器的信息的属性参数对AVP为:The attribute parameters of the information of the BRAS repeater on the LNS side to the AVP are:
Attribute Type=第五预设值:BRAS-UP Name AVP,BRAS-UP Name表示LNS端BRAS转发器的主机名。Attribute Type=fifth preset value: BRAS-UP Name AVP, BRAS-UP Name indicates the host name of the BRAS forwarder at the LNS side.
在本申请所提供的几个实施例中,应该理解到,所揭露方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included individually, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述收发方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, and includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute some steps of the transceiving method described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM for short), Random Access Memory (RAM for short), magnetic disk or CD, etc. that can store program codes medium.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.
Claims (26)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910022723.4A CN111431787B (en) | 2019-01-10 | 2019-01-10 | Tunnel establishment method and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910022723.4A CN111431787B (en) | 2019-01-10 | 2019-01-10 | Tunnel establishment method and device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111431787A CN111431787A (en) | 2020-07-17 |
CN111431787B true CN111431787B (en) | 2022-02-11 |
Family
ID=71545868
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910022723.4A Active CN111431787B (en) | 2019-01-10 | 2019-01-10 | Tunnel establishment method and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111431787B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125910B (en) * | 2020-08-31 | 2025-02-25 | 华为技术有限公司 | Tunnel keep-alive method, network device, system and storage medium |
CN114285696B (en) * | 2021-12-08 | 2023-05-16 | 中国联合网络通信集团有限公司 | Fixed network broadband service scheduling system, method, device and storage medium |
CN114928664B (en) * | 2022-06-16 | 2023-10-31 | 中国电信股份有限公司 | Network tunnel establishment method and device, storage medium and electronic equipment |
WO2024035174A1 (en) * | 2022-08-10 | 2024-02-15 | Samsung Electronics Co., Ltd. | Methods and systems for managing layer two tunneling protocol connection establishment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107634907A (en) * | 2017-10-25 | 2018-01-26 | 新华三技术有限公司 | A kind of two-layer virtual private network L2VPN data forwarding method and device |
CN107659516A (en) * | 2017-10-25 | 2018-02-02 | 新华三技术有限公司 | A kind of Broadband Remote Access Server BRAS function control method and device |
CN107770012A (en) * | 2017-10-23 | 2018-03-06 | 中国联合网络通信集团有限公司 | A kind of broad band access method, device and virtual broadband RAS system |
CN108270690A (en) * | 2016-12-30 | 2018-07-10 | 北京华为数字技术有限公司 | The method and apparatus for controlling message flow |
CN108512703A (en) * | 2018-03-28 | 2018-09-07 | 新华三技术有限公司 | BRAS turns backup method, device, equipment and the machine readable storage medium of control separation |
CN108600225A (en) * | 2018-04-25 | 2018-09-28 | 新华三技术有限公司 | a kind of authentication method and device |
CN108616431A (en) * | 2018-04-20 | 2018-10-02 | 新华三技术有限公司 | A kind of message processing method, device, equipment and machine readable storage medium |
CN109150673A (en) * | 2017-06-16 | 2019-01-04 | 华为技术有限公司 | Message encapsulating method and device based on BRAS system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7765300B2 (en) * | 2003-10-06 | 2010-07-27 | Ericsson Ab | Protocol for messaging between a centralized broadband remote aggregation server and other devices |
EP2636184A1 (en) * | 2010-11-04 | 2013-09-11 | Nokia Siemens Networks Oy | Virtual radio networks |
-
2019
- 2019-01-10 CN CN201910022723.4A patent/CN111431787B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108270690A (en) * | 2016-12-30 | 2018-07-10 | 北京华为数字技术有限公司 | The method and apparatus for controlling message flow |
CN109150673A (en) * | 2017-06-16 | 2019-01-04 | 华为技术有限公司 | Message encapsulating method and device based on BRAS system |
CN107770012A (en) * | 2017-10-23 | 2018-03-06 | 中国联合网络通信集团有限公司 | A kind of broad band access method, device and virtual broadband RAS system |
CN107634907A (en) * | 2017-10-25 | 2018-01-26 | 新华三技术有限公司 | A kind of two-layer virtual private network L2VPN data forwarding method and device |
CN107659516A (en) * | 2017-10-25 | 2018-02-02 | 新华三技术有限公司 | A kind of Broadband Remote Access Server BRAS function control method and device |
CN108512703A (en) * | 2018-03-28 | 2018-09-07 | 新华三技术有限公司 | BRAS turns backup method, device, equipment and the machine readable storage medium of control separation |
CN108616431A (en) * | 2018-04-20 | 2018-10-02 | 新华三技术有限公司 | A kind of message processing method, device, equipment and machine readable storage medium |
CN108600225A (en) * | 2018-04-25 | 2018-09-28 | 新华三技术有限公司 | a kind of authentication method and device |
Non-Patent Citations (2)
Title |
---|
中国移动基于SDN和NFV的固网架构演进探讨;中国移动研究院/胡淑军等;《cww.net.cn/web/news/channel/articleinfo.action?id=837B43A0AA8D4701B4F042FA98FD0C69》;20170223;全文 * |
基于转发和控制分离的vBRAS应用研究;祁钰;《电信技术》;20180225(第02期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111431787A (en) | 2020-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8250214B2 (en) | System, method and computer program product for communicating with a private network | |
CN111431787B (en) | Tunnel establishment method and device and computer readable storage medium | |
US9876760B2 (en) | Peer-to-peer connection establishment using turn | |
EP2262185B1 (en) | Method and system for forwarding data among private networks | |
EP2579544B1 (en) | Methods and apparatus for a scalable network with efficient link utilization | |
EP2579634A2 (en) | Methods and apparatus for a self-organized layer-2 enterprise network architecture | |
CN103580980A (en) | Automatic searching and automatic configuration method and device of VN | |
CN107995052A (en) | For for the wired and public control protocol of radio node method and apparatus | |
JP5679343B2 (en) | Cloud system, gateway device, communication control method, and communication control program | |
CN101729543A (en) | Method for improving performance of mobile SSL VPN by utilizing remote Socks5 technology | |
WO2016180020A1 (en) | Message processing method, device and system | |
CN105323310B (en) | Network communication method, equipment and network attached storage equipment | |
WO2018157551A1 (en) | Data transmission method and apparatus | |
US10855491B2 (en) | Method for implementing GRE tunnel, access point and gateway | |
US20180302479A1 (en) | Handling at least one communication exchange between a telecommunications network and at least one user equipment | |
CN102710495B (en) | Method and device for establishing routing information of user host computer in monitoring network | |
WO2013185696A2 (en) | Data processing method and device | |
CN109982311A (en) | A kind of terminal access core net device, method and terminal, MME and SAEGW | |
CN201657020U (en) | Mobile SSL VPN system based on remote Socks 5 agent | |
EP3220584A1 (en) | Wifi sharing method and system, home gateway and wireless local area network gateway | |
CN113542395B (en) | Message processing method and message processing system | |
CN101510901B (en) | Communication method, communication apparatus and system between distributed equipment | |
CN112839355B (en) | IPSEC testing system and method in network of 5G network | |
WO2023138335A1 (en) | Differentiated control method and apparatus for user terminal, and related device | |
US8036218B2 (en) | Technique for achieving connectivity between telecommunication stations |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |