[go: up one dir, main page]

CN104660472A - Number matching method and device of L2TP (layer 2 tunneling protocol) network simulation system - Google Patents

Number matching method and device of L2TP (layer 2 tunneling protocol) network simulation system Download PDF

Info

Publication number
CN104660472A
CN104660472A CN201510108914.4A CN201510108914A CN104660472A CN 104660472 A CN104660472 A CN 104660472A CN 201510108914 A CN201510108914 A CN 201510108914A CN 104660472 A CN104660472 A CN 104660472A
Authority
CN
China
Prior art keywords
lac
data packet
serial port
address
monitoring unit
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.)
Granted
Application number
CN201510108914.4A
Other languages
Chinese (zh)
Other versions
CN104660472B (en
Inventor
车斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201510108914.4A priority Critical patent/CN104660472B/en
Publication of CN104660472A publication Critical patent/CN104660472A/en
Application granted granted Critical
Publication of CN104660472B publication Critical patent/CN104660472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明涉及一种二层隧道协议L2TP网络仿真系统的配号方法和装置,其中,方法包括:数据包监控单元监听访问集中器LAC输出端口信号,截获LAC输出端口发出的数据包,数据包用于建立用户设备UE与L2TP网络服务器LNS间的数据通信;数据包中包含LAC的IP地址、LAC的串口标识、数据包的目的接收端标识;根据LAC的IP地址、LAC的串口标识,查找UE的预置文件,从预置文件中提取UE的被叫号码、UE的主叫号码;将被叫号码、主叫号码增加到数据包中;根据数据包的目的接收端标识,发送更改后的数据包到目的接收端。本发明实现了对于终端拨号接入L2TP网络的仿真,从而真实还原了无线数据专网的接入操作过程。

The present invention relates to a number allocation method and device for a Layer 2 Tunneling Protocol L2TP network simulation system, wherein the method includes: a data packet monitoring unit monitors the LAC output port signal of the access concentrator, intercepts the data packet sent by the LAC output port, and uses the data packet To establish data communication between the user equipment UE and the L2TP network server LNS; the data packet contains the IP address of the LAC, the serial port ID of the LAC, and the destination receiving end ID of the data packet; according to the IP address of the LAC and the serial port ID of the LAC, the UE is searched The preset file of the UE, extract the called number of the UE, the calling number of the UE from the preset file; add the called number and the calling number to the data packet; send the changed packets to the destination receiver. The invention realizes the simulation of terminal dialing access to the L2TP network, thereby truly restoring the access operation process of the wireless data private network.

Description

二层隧道协议L2TP网络仿真系统的配号方法和装置Number allocation method and device for L2TP network simulation system

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种二层隧道协议L2TP网络仿真系统的配号方法和装置。The invention relates to the technical field of communication, in particular to a number allocation method and device for a network simulation system of the Layer 2 Tunneling Protocol (L2TP).

背景技术Background technique

二层隧道协议(Layer 2Tunneling Protocol,L2TP)是一种工业标准的internet隧道协议。在宽带通信网络、移动通信网络中广泛采用终端设备拨号方式接入L2TP网络。尤其对于基于移动通信网络的无线数据专网产品,其采用拨号接入L2TP网络的方式将无线终端通过L2TP访问集中器(L2TP AccessConcentrator,LAC)连接到企业的L2TP网络服务器(L2TP Network Server,LNS)。其中,在L2TP协议中,LAC和LNS是L2TP隧道两端的设备,LAC向LNS发起建立隧道的请求,LNS接受LAC的请求从而建立L2TP隧道。通常情况下,电信运营商的设备担任LAC的功能,而企业客户的设备担任LNS的功能。Layer 2 Tunneling Protocol (L2TP) is an industry standard internet tunneling protocol. In broadband communication network and mobile communication network, terminal equipment dial-up mode is widely used to access L2TP network. Especially for wireless data private network products based on mobile communication networks, it uses dial-up access to the L2TP network to connect wireless terminals to the enterprise's L2TP Network Server (L2TP Network Server, LNS) through the L2TP Access Concentrator (L2TP Access Concentrator, LAC) . Among them, in the L2TP protocol, the LAC and the LNS are devices at both ends of the L2TP tunnel, the LAC initiates a tunnel establishment request to the LNS, and the LNS accepts the LAC's request to establish the L2TP tunnel. Usually, the telecom operator's equipment serves as the LAC, while the enterprise customer's equipment serves as the LNS.

随着3G网络的优化和4G网络的建设,越来越多的企业需要搭建自己的无线数据专网,而在搭建真实专网系统前可以先采用L2TP网络的仿真系统虚拟无线数据专网的业务细节,此外,仿真系统还可以用于方案验证、故障排查等。然而现有的仿真系统中由于缺少终端设备的拨号机制,仅能够仿真终端非拨号接入L2TP网络的相关无线数据专网业务,导致拨号机制下的与呼叫号和被叫号相关的无线数据专网业务无法被验证,严重影响了无线数据专网相关解决方案的研究工作。With the optimization of 3G network and the construction of 4G network, more and more enterprises need to build their own wireless data private network, and before building a real private network system, they can first use the virtual wireless data private network business of the simulation system of L2TP network Details, in addition, the simulation system can also be used for program verification, troubleshooting, etc. However, due to the lack of a dial-up mechanism for terminal equipment, the existing simulation system can only simulate the private wireless data network services related to the non-dial-up access of the terminal to the L2TP network. Network services cannot be verified, seriously affecting the research work on solutions related to wireless data private networks.

发明内容Contents of the invention

本发明提供一种二层隧道协议L2TP网络仿真系统的配号方法和装置,用于解决现有技术中仿真系统因缺少拨号机制无法真实还原终端拨号接入L2TP网络的技术问题,实现了对于终端拨号接入L2TP网络的仿真,从而真实还原了无线数据专网的接入操作过程。The present invention provides a number allocation method and device for a Layer 2 Tunneling Protocol L2TP network simulation system, which is used to solve the technical problem that the simulation system in the prior art cannot truly restore the terminal dial-up access to the L2TP network due to the lack of a dial-up mechanism, and realizes the terminal The simulation of dial-up access to the L2TP network, thus truly restoring the access operation process of the wireless data private network.

本发明提供一种二层隧道协议L2TP网络仿真系统的配号方法,包括:The invention provides a number allocation method of a two-layer tunnel protocol L2TP network simulation system, comprising:

数据包监控单元监听访问集中器LAC输出端口信号,截获所述LAC输出端口发出的数据包,所述数据包用于建立用户设备UE与L2TP网络服务器LNS间的数据通信;所述数据包中包含所述LAC的IP地址、所述LAC的串口标识、所述数据包的目的接收端标识;The data packet monitoring unit monitors the LAC output port signal of the access concentrator, intercepts the data packet sent by the LAC output port, and the data packet is used to establish the data communication between the user equipment UE and the L2TP network server LNS; the data packet contains The IP address of the LAC, the serial port identifier of the LAC, and the destination receiver identifier of the data packet;

数据包监控单元根据所述LAC的IP地址、所述LAC的串口标识,查找所述UE的预置文件,并从所述预置文件中提取所述UE的被叫号码、所述UE的主叫号码;The data packet monitoring unit searches for the preset file of the UE according to the IP address of the LAC and the serial port identifier of the LAC, and extracts the called number of the UE and the primary number of the UE from the preset file. call number;

数据包监控单元将所述被叫号码、所述主叫号码增加到所述数据包中;根据所述数据包的目的接收端标识,发送更改后的数据包到所述目的接收端。The data packet monitoring unit adds the called number and the calling number to the data packet; sends the modified data packet to the destination receiving end according to the identification of the destination receiving end of the data packet.

本发明还提供一种二层隧道协议L2TP网络仿真系统的配号装置,包括:数据包监控单元;所述数据包监控单元包括:The present invention also provides a number allocation device of a two-layer tunneling protocol L2TP network simulation system, including: a data packet monitoring unit; the data packet monitoring unit includes:

监听模块,用于监听访问集中器LAC输出端口信号,截获所述LAC输出端口发出的数据包,所述数据包用于建立用户设备UE与L2TP网络服务器LNS间的数据通信;所述数据包中包含所述LAC的IP地址、所述LAC的串口标识、所述数据包的目的接收端标识;The monitoring module is used to monitor the LAC output port signal of the access concentrator, and intercepts the data packet sent by the LAC output port, and the data packet is used to establish the data communication between the user equipment UE and the L2TP network server LNS; in the data packet Including the IP address of the LAC, the serial port identifier of the LAC, and the destination receiver identifier of the data packet;

查找模块,用于根据所述LAC的IP地址、所述LAC的串口标识,查找所述UE的预置文件,并从所述预置文件中提取所述UE的被叫号码、所述UE的主叫号码;A search module, configured to search for a preset file of the UE according to the IP address of the LAC and the serial port identifier of the LAC, and extract the called number of the UE and the UE's ID from the preset file. calling number;

发送模块,用于将所述被叫号码、所述主叫号码增加到所述数据包中;根据所述数据包的目的接收端标识,发送更改后的数据包到所述目的接收端。A sending module, configured to add the called number and the calling number to the data packet; send the modified data packet to the destination receiving end according to the identification of the destination receiving end of the data packet.

本发明提供的二层隧道协议L2TP网络仿真系统的配号方法和装置,通过数据包监控单元监听访问集中器LAC输出端口,截获其发出的数据包,并根据数据包中LAC IP地址、LAC串口标识,查找UE的预置文件,从预置文件中提取UE的主、被叫号码,从而将UE的主、被叫号码增加到该数据包,再发送更改后的数据包到目的接收端。从而解决了现有技术中仿真系统因缺少拨号机制无法真实还原终端拨号接入L2TP网络的技术问题,实现了对于终端拨号接入L2TP网络的仿真,真实还原了无线数据专网的接入操作过程。The number matching method and device of the two-layer tunneling protocol L2TP network simulation system provided by the present invention monitor and access the LAC output port of the access concentrator through the data packet monitoring unit, intercept the data packet sent by it, and according to the LAC IP address in the data packet, the LAC serial port Identify, search for the preset file of the UE, extract the calling and called numbers of the UE from the preset file, thereby add the calling and called numbers of the UE to the data packet, and then send the changed data packet to the destination receiving end. This solves the technical problem that the simulation system in the prior art cannot truly restore the terminal dial-up access to the L2TP network due to the lack of a dial-up mechanism, realizes the simulation of the terminal dial-up access to the L2TP network, and truly restores the access operation process of the wireless data private network .

附图说明Description of drawings

图1为本发明二层隧道协议L2TP网络仿真系统的配号方法的实施例一流程图;Fig. 1 is the flow chart of embodiment one of the number matching method of the two-layer tunneling protocol L2TP network emulation system of the present invention;

图2为本发明二层隧道协议L2TP网络仿真系统的配号方法的实施例二流程图;Fig. 2 is the flow chart of embodiment two of the number matching method of the two-layer tunneling protocol L2TP network emulation system of the present invention;

图3为本发明二层隧道协议L2TP网络仿真系统的配号装置的实施例一结构示意图;Fig. 3 is a structural schematic diagram of Embodiment 1 of the number allocation device of the two-layer tunneling protocol L2TP network simulation system of the present invention;

图4为本发明二层隧道协议L2TP网络仿真系统的配号装置的实施例二结构示意图。FIG. 4 is a schematic structural diagram of Embodiment 2 of the number allocation device of the L2TP network simulation system of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

图1为本发明二层隧道协议L2TP网络仿真系统的配号方法的实施例一流程图,如图1所示,本实施例的方法包括:Fig. 1 is the flow chart of embodiment one of the number matching method of the two-layer tunneling protocol L2TP network emulation system of the present invention, as shown in Fig. 1, the method of the present embodiment comprises:

步骤101、数据包监控单元监听访问集中器LAC输出端口信号,截获LAC输出端口发出的数据包。Step 101, the data packet monitoring unit monitors the LAC output port signal of the access concentrator, and intercepts the data packet sent by the LAC output port.

在本步骤中,首先介绍一下现有技术中UE拨号接入L2TP网络的方法,UE预接入L2TP网络,先与LAC进行链路控制协议(Link Control Protocol,简称:LCP)协商;LAC将域名发送给LAC Radius服务器,运营商端LACRadius服务器对UE执行认证、审计、授权等操作;由于UE是通过拨号机制接入,因此LAC Radius服务器根据UE的主、被叫号码可以对UE进行与主、被叫号码相关的业务,例如运营商对该UE进行计费;LAC Radius服务器根据域名发送LNS地址给LAC,以使LAC向LNS发送L2TP隧道请求,随后企业端LNS Radius服务器对UE进行认证、授权、审计操作,LNS Radius服务器也要根据UE的主、被叫号码实施计费等与号码关联的业务。其中,LACRadius服务器归属于运营商侧,LNS的Radius服务器归属于提供无线数据专网服务的企业侧,因此两者都需要UE的主、被叫号码信息以实施相应业务。主叫号码用于标识预接入L2TP网络的UE,使LAC、LNS可以根据UE的主叫号码对该UE进行计费、审计等;被叫号码用于区分UE预接入业务的类型,例如数据业务、语音业务等,还用于区分同一业务类型中业务的不同等级,使LAC、LNS可以根据UE的被叫号码对其进行分等级计费、审计等。可见,现有技术中,由于UE是通过拨号机制接入企业LNS,因此,UE的主、被叫号码信息自动附含在其链路数据包中,以使运营商LAC、企业LNS获取到号码信息,执行针对号码信息的业务。在仿真系统中,由于不具备拨号机制,系统无法通过主叫号码标识出UE,因此,仿真系统首先需要准确识别出UE,再为所识别出的UE配主、被叫号码,使仿真系统可以仿真与主、被叫号码相关的业务。具体的,仿真系统中,UE通过串行接口连接到LAC,网络中的LAC可以有多个,以LAC IP地址标识各个LAC;每个LAC具有一定数量的串行接口,各个串行接口由串口标识区分,例如Serial0/0、Serial0/1。仿真系统中,每个UE与一个LAC的一个串行接口相连接,哪个UE与哪个串行接口相连接的关系是预设的,通过定位LAC的IP地址和LAC的串口标识,识别该串行接口所连接的UE。具体通过在LAC与LAC Radius之间的链路中,以及LAC与LNS之间的链路中,设置数据包监控单元,数据包监控单元实时监听LAC的输出端口信号,当端口信号指示有数据输出时,截获LAC输出端口发出的数据包,该数据包用于建立用户设备UE与L2TP网络服务器LNS间的数据通信;数据包中包含LAC的IP地址、LAC的串口标识、数据包的目的接收端标识。LAC的IP地址用于标识LAC,LAC的串口标识,用于标识发起呼叫请求的UE所连接的串行接口。例如,某一UE连接在IP地址为10.0.01的LAC上,且连接在该LAC的串行接口Serial0/0上,则以(10.0.0.1,Serial0/0)标识该UE。In this step, first introduce the method of UE dial-up access to the L2TP network in the prior art. The UE pre-accesses the L2TP network, and first performs Link Control Protocol (Link Control Protocol, referred to as: LCP) negotiation with the LAC; Send it to the LAC Radius server, and the operator-side LACRradius server performs authentication, audit, authorization and other operations on the UE; since the UE accesses through the dial-up mechanism, the LAC Radius server can communicate with the UE according to the calling and called numbers of the UE. Services related to the called number, such as the operator billing the UE; the LAC Radius server sends the LNS address to the LAC according to the domain name, so that the LAC sends an L2TP tunnel request to the LNS, and then the enterprise-side LNS Radius server authenticates and authorizes the UE , Audit operation, the LNS Radius server also implements services related to the number such as billing according to the calling and called numbers of the UE. Among them, the LACRadius server belongs to the operator side, and the Radius server of the LNS belongs to the enterprise side that provides private wireless data network services. Therefore, both need the calling and called number information of the UE to implement corresponding services. The calling number is used to identify the UE pre-accessed to the L2TP network, so that LAC and LNS can perform billing and auditing on the UE according to the calling number of the UE; the called number is used to distinguish the type of UE pre-access service, for example Data services, voice services, etc. are also used to distinguish different levels of services in the same service type, so that LAC and LNS can perform hierarchical charging and auditing based on the called number of the UE. It can be seen that in the prior art, since the UE accesses the enterprise LNS through a dial-up mechanism, the calling and called number information of the UE is automatically included in its link data packet, so that the operator LAC and the enterprise LNS can obtain the number information, and perform services for number information. In the simulation system, because there is no dialing mechanism, the system cannot identify the UE through the calling number. Therefore, the simulation system first needs to accurately identify the UE, and then assign the calling and called numbers to the identified UE, so that the simulation system can Simulate services related to calling and called numbers. Specifically, in the simulation system, the UE is connected to the LAC through a serial interface. There can be multiple LACs in the network, and each LAC is identified by the LAC IP address; each LAC has a certain number of serial interfaces, and each serial interface is controlled by the serial port Identification distinction, such as Serial0/0, Serial0/1. In the simulation system, each UE is connected to a serial interface of a LAC, and the relationship between which UE is connected to which serial interface is preset. By locating the IP address of the LAC and the serial port identifier of the LAC, the serial port can be identified. The UE connected to the interface. Specifically, in the link between LAC and LAC Radius, and in the link between LAC and LNS, a data packet monitoring unit is set, and the data packet monitoring unit monitors the output port signal of the LAC in real time. When the port signal indicates that there is data output , the data packet sent by the LAC output port is intercepted, and the data packet is used to establish the data communication between the user equipment UE and the L2TP network server LNS; the data packet includes the IP address of the LAC, the serial port identifier of the LAC, and the destination receiving end of the data packet logo. The IP address of the LAC is used to identify the LAC, and the serial port ID of the LAC is used to identify the serial interface connected to the UE that initiates the call request. For example, if a certain UE is connected to the LAC with an IP address of 10.0.01 and is connected to the serial interface Serial0/0 of the LAC, the UE is identified by (10.0.0.1, Serial0/0).

步骤102、数据包监控单元根据LAC的IP地址、LAC的串口标识,查找UE的预置文件,并从预置文件中提取UE的被叫号码、UE的主叫号码。Step 102, the data packet monitoring unit searches the UE's preset file according to the IP address of the LAC and the serial port ID of the LAC, and extracts the called number of the UE and the calling number of the UE from the preset file.

在本步骤中,数据包监控单元根据LAC的IP地址、LAC的串口标识,唯一识别出主叫UE,查找预置文件,该预置文件中预设有各个LAC的各个串行接口所连接的UE的预设主、被叫号码信息。数据包监控单元从预置文件中提取出该UE的被叫号码、UE的主叫号码。从而使仿真系统中的UE具备拨号机制下的主叫号码以及标识业务类型或业务等级的被叫号码。In this step, the data packet monitoring unit uniquely identifies the calling UE according to the IP address of the LAC and the serial port identifier of the LAC, and searches for a preset file. UE preset calling and called number information. The data packet monitoring unit extracts the called number of the UE and the calling number of the UE from the preset file. Therefore, the UE in the simulation system has the calling number under the dialing mechanism and the called number identifying the service type or service level.

步骤103、数据包监控单元将被叫号码、主叫号码增加到数据包中;根据数据包的目的接收端标识,发送更改后的数据包到目的接收端。Step 103, the data packet monitoring unit adds the called number and the calling number to the data packet; sends the modified data packet to the destination receiving end according to the identification of the destination receiving end of the data packet.

在本步骤中,数据包监控单元将从预置文件中提取到的主、被叫号码加入到数据包中,并从该数据包中读取目的接收端标识,该标识可以为目的接收端的IP信息,发送加入了主、被叫号码信息的更改后的数据包到目的接收端标识所对应的目的接收端。In this step, the data packet monitoring unit adds the calling and called numbers extracted from the preset file into the data packet, and reads the destination receiving end identifier from the data packet, which can be the IP address of the destination receiving end. information, and send the modified data packet added with the calling and called number information to the destination receiving terminal corresponding to the destination receiving terminal identifier.

本实施例的配号方法,通过数据包监控单元监听访问集中器LAC输出端口,截获其发出的数据包,并根据数据包中LAC IP地址、LAC串口标识,查找UE的预置文件,从预置文件中提取UE的主、被叫号码,从而将UE的主、被叫号码增加到该数据包,再发送更改后的数据包到目的接收端。从而解决了现有技术中仿真系统因缺少拨号机制无法真实还原终端拨号接入L2TP网络的技术问题,实现了对于终端拨号接入L2TP网络的仿真,真实还原了无线数据专网的接入操作过程。The number allocation method of this embodiment monitors the LAC output port of the access concentrator through the data packet monitoring unit, intercepts the data packet sent by it, and searches for the preset file of the UE according to the LAC IP address and the LAC serial port identifier in the data packet, and starts from the preset Extract the UE's calling and called numbers from the configuration file, thereby adding the UE's calling and called numbers to the data packet, and then sending the changed data packet to the destination receiving end. This solves the technical problem that the simulation system in the prior art cannot truly restore the terminal dial-up access to the L2TP network due to the lack of a dial-up mechanism, realizes the simulation of the terminal dial-up access to the L2TP network, and truly restores the access operation process of the wireless data private network .

图2为本发明二层隧道协议L2TP网络仿真系统的配号方法的实施例二流程图,如图2所示,本实施例的方法包括:Fig. 2 is the flow chart of embodiment two of the number matching method of the two-layer tunneling protocol L2TP network simulation system of the present invention, as shown in Fig. 2, the method of the present embodiment comprises:

步骤201、数据包监控单元监听访问集中器LAC输出端口信号,截获LAC输出端口发出的数据包。Step 201, the data packet monitoring unit monitors the LAC output port signal of the access concentrator, and intercepts the data packet sent by the LAC output port.

在本步骤中,数据包用于建立用户设备UE与L2TP网络服务器LNS间的数据通信;数据包中包含LAC的IP地址、LAC的串口标识、数据包的目的接收端标识。该步骤具体实现过程参见实施例一中的步骤101,此处不再赘述。In this step, the data packet is used to establish data communication between the user equipment UE and the L2TP network server LNS; the data packet includes the IP address of the LAC, the serial port identifier of the LAC, and the destination identifier of the data packet. For the specific implementation process of this step, refer to step 101 in Embodiment 1, which will not be repeated here.

步骤202、数据包监控单元根据LAC的IP地址,在用户数据库中查找与LAC的IP地址对应的数据表;根据LAC的串口标识在数据表中查找与LAC的串口标识对应的UE的预置文件。Step 202, the packet monitoring unit searches the user database for a data table corresponding to the IP address of the LAC according to the IP address of the LAC; searches the data table for the UE's preset file corresponding to the serial port ID of the LAC according to the serial port ID of the LAC .

在本步骤中,UE通过串行接口连接到LAC,网络中的LAC可以有多个,以LAC IP地址标识各个LAC;每个LAC具有一定数量的串行接口,各个串行接口由串口标识区分,例如Serial0/0、Serial0/1。仿真系统中,每个UE与一个LAC的一个串行接口相连接,哪个UE与哪个串行接口相连接的关系是预设的,通过定位LAC的IP地址和LAC的串口标识,识别该串行接口所连接的UE。当数据包监控单元截获到一个LAC输出端口发出的数据包后,首先根据LAC的IP地址,在用户数据库中查找与LAC的IP地址对应的数据表;再根据LAC的串口标识在数据表中查找与LAC的串口标识对应的UE的预置文件,从而识别UE并定位其对应的预置文件。In this step, the UE is connected to the LAC through the serial interface. There can be multiple LACs in the network, and each LAC is identified by the LAC IP address; each LAC has a certain number of serial interfaces, and each serial interface is distinguished by the serial port identifier , such as Serial0/0, Serial0/1. In the simulation system, each UE is connected to a serial interface of a LAC, and the relationship between which UE is connected to which serial interface is preset. By locating the IP address of the LAC and the serial port identifier of the LAC, the serial port can be identified. The UE connected to the interface. When the data packet monitoring unit intercepts a data packet sent by a LAC output port, firstly, according to the IP address of the LAC, search the data table corresponding to the IP address of the LAC in the user database; then search in the data table according to the serial port identification of the LAC The UE's preset file corresponding to the serial port ID of the LAC, so as to identify the UE and locate its corresponding preset file.

步骤203、数据包监控单元从预置文件中提取UE的被叫号码、UE的主叫号码。Step 203, the data packet monitoring unit extracts the called number of the UE and the calling number of the UE from the preset file.

该步骤具体实现过程参见实施例一中的步骤102,此处不再赘述。For the specific implementation process of this step, refer to step 102 in Embodiment 1, which will not be repeated here.

步骤204、数据包监控单元将被叫号码、主叫号码增加到数据包中;根据数据包的目的接收端标识,发送更改后的数据包到目的接收端。Step 204, the data packet monitoring unit adds the called number and calling number to the data packet; sends the modified data packet to the destination receiving end according to the identification of the destination receiving end of the data packet.

在本步骤中,数据包监控单元将从预置文件中提取到的主、被叫号码加入到数据包中,并从该数据包中读取目的接收端标识,其中,目的接收端标识用于标识目的接收端,目的接收端包括:用于处理Radius协议的Radius服务器,和/或用于处理L2TP协议的LNS服务器。该标识可以为目的接收端的IP信息,发送加入了主、被叫号码信息的更改后的数据包到目的接收端标识所对应的目的接收端。In this step, the data packet monitoring unit adds the calling and called numbers extracted from the preset file into the data packet, and reads the destination receiving end identifier from the data packet, wherein the destination receiving end identifier is used for The destination receiving end is identified, and the destination receiving end includes: a Radius server for processing the Radius protocol, and/or an LNS server for processing the L2TP protocol. The identifier may be the IP information of the destination receiver, and the modified data packet added with the calling and called number information is sent to the destination receiver corresponding to the identifier of the destination receiver.

进一步地,该配号方法还包括,访问集中器LAC获取与该LAC连接的UE对应的LAC的串口标识,添加LAC的串口标识到数据包中。Further, the number allocation method further includes that the access concentrator LAC acquires the serial port identifier of the LAC corresponding to the UE connected to the LAC, and adds the serial port identifier of the LAC to the data packet.

具体的,在真实系统中根据UE的主叫号码识别UE,因此,LAC发送到企业LNS端的数据包中不需要加入与其连接的UE所对应的串口标识信息。但对于仿真系统来说,无论数据包是发送到运营商端设备或企业端设备,均需要通过串口标识识别UE,因此,LAC需要首先读取与其连接的UE所对应的串口标识,并添加该LAC的串口标识到数据包中,以使截获到该数据包的数据包监控单元可以通过串口标识和发送该数据包的LAC的IP地址,唯一识别UE,完成配号。Specifically, in the real system, the UE is identified according to the calling number of the UE. Therefore, the data packet sent by the LAC to the enterprise LNS does not need to add the serial port identification information corresponding to the UE connected to it. But for the simulation system, regardless of whether the data packet is sent to the operator-side device or the enterprise-side device, the UE needs to be identified through the serial port ID. Therefore, the LAC needs to first read the serial port ID corresponding to the UE connected to it, and add the The serial port of the LAC is identified in the data packet, so that the data packet monitoring unit that intercepts the data packet can uniquely identify the UE through the serial port identification and the IP address of the LAC that sent the data packet, and complete the number matching.

本实施例的配号方法,通过数据包监控单元监听访问集中器LAC输出端口,截获其发出的数据包,并根据数据包中LAC IP地址、LAC串口标识,查找UE的预置文件,从预置文件中提取UE的主、被叫号码,从而将UE的主、被叫号码增加到该数据包,再发送更改后的数据包到目的接收端。从而解决了现有技术中仿真系统因缺少拨号机制无法真实还原终端拨号接入L2TP网络的技术问题,实现了对于终端拨号接入L2TP网络的仿真,真实还原了无线数据专网的接入操作过程。The number allocation method of this embodiment monitors the LAC output port of the access concentrator through the data packet monitoring unit, intercepts the data packet sent by it, and searches for the preset file of the UE according to the LAC IP address and the LAC serial port identifier in the data packet, and starts from the preset Extract the UE's calling and called numbers from the configuration file, thereby adding the UE's calling and called numbers to the data packet, and then sending the changed data packet to the destination receiving end. This solves the technical problem that the simulation system in the prior art cannot truly restore the terminal dial-up access to the L2TP network due to the lack of a dial-up mechanism, realizes the simulation of the terminal dial-up access to the L2TP network, and truly restores the access operation process of the wireless data private network .

图3为本发明二层隧道协议L2TP网络仿真系统的配号装置的实施例一结构示意图,如图3所示,本实施例的装置包括:数据包监控单元1,数据包监控单元1包括:监听模块11,用于监听访问集中器LAC输出端口信号,截获LAC输出端口发出的数据包,数据包用于建立用户设备UE与L2TP网络服务器LNS间的数据通信;数据包中包含LAC的IP地址、LAC的串口标识、数据包的目的接收端标识;查找模块12,用于根据LAC的IP地址、LAC的串口标识,查找UE的预置文件,并从预置文件中提取UE的被叫号码、UE的主叫号码;发送模块13,用于将被叫号码、主叫号码增加到数据包中;根据数据包的目的接收端标识,发送更改后的数据包到目的接收端。Fig. 3 is a schematic structural diagram of Embodiment 1 of the number matching device of the Layer 2 Tunneling Protocol L2TP network simulation system of the present invention. As shown in Fig. 3, the device of this embodiment includes: a data packet monitoring unit 1, and the data packet monitoring unit 1 includes: The monitoring module 11 is used to monitor the LAC output port signal of the access concentrator and intercept the data packet sent by the LAC output port. The data packet is used to establish the data communication between the user equipment UE and the L2TP network server LNS; the data packet contains the IP address of the LAC , the serial port identification of the LAC, the destination receiving end identification of the data packet; the search module 12 is used to search the preset file of the UE according to the IP address of the LAC and the serial port identification of the LAC, and extract the called number of the UE from the preset file . The calling number of the UE; the sending module 13 is used to add the called number and the calling number to the data packet; according to the destination receiving end identifier of the data packet, send the changed data packet to the destination receiving end.

本实施例的装置,可用于执行图1所示方法实施例一的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the first method embodiment shown in FIG. 1 , and its implementation principle and technical effect are similar, and will not be repeated here.

本实施例的配号装置,通过数据包监控单元监听访问集中器LAC输出端口,截获其发出的数据包,并根据数据包中LAC IP地址、LAC串口标识,查找UE的预置文件,从预置文件中提取UE的主、被叫号码,从而将UE的主、被叫号码增加到该数据包,再发送更改后的数据包到目的接收端。从而解决了现有技术中仿真系统因缺少拨号机制无法真实还原终端拨号接入L2TP网络的技术问题,实现了对于终端拨号接入L2TP网络的仿真,真实还原了无线数据专网的接入操作过程。The number allocation device of this embodiment listens to the LAC output port of the access concentrator through the data packet monitoring unit, intercepts the data packet sent by it, and searches for the preset file of the UE according to the LAC IP address and the LAC serial port identifier in the data packet, from the preset Extract the UE's calling and called numbers from the configuration file, thereby adding the UE's calling and called numbers to the data packet, and then sending the changed data packet to the destination receiving end. This solves the technical problem that the simulation system in the prior art cannot truly restore the terminal dial-up access to the L2TP network due to the lack of a dial-up mechanism, realizes the simulation of the terminal dial-up access to the L2TP network, and truly restores the access operation process of the wireless data private network .

图4为本发明二层隧道协议L2TP网络仿真系统的配号装置的实施例二结构示意图,如图4所示,本实施例的装置在图3所示装置的基础上,进一步地,目的接收端包括:用于处理Radius协议的Radius服务器,和/或用于处理L2TP协议的LNS服务器。查找模块12,具体用于根据LAC的IP地址,在用户数据库中查找与LAC的IP地址对应的数据表;根据LAC的串口标识在数据表中查找与LAC的串口标识对应的UE的预置文件。该装置还包括:访问集中器LAC2;LAC2,用于获取与该LAC2连接的UE对应的LAC2的串口标识,添加LAC2的串口标识到数据包中。Fig. 4 is a schematic structural diagram of Embodiment 2 of the number allocation device of the Layer 2 Tunneling Protocol L2TP network simulation system of the present invention. As shown in Fig. 4, the device of this embodiment is based on the device shown in Fig. The end includes: a Radius server for processing the Radius protocol, and/or an LNS server for processing the L2TP protocol. The search module 12 is specifically used to search the data table corresponding to the IP address of the LAC in the user database according to the IP address of the LAC; according to the serial port identification of the LAC, the preset file of the UE corresponding to the serial port identification of the LAC is searched in the data table . The device also includes: an access concentrator LAC2; LAC2 is used to obtain the serial port ID of LAC2 corresponding to the UE connected to the LAC2, and add the serial port ID of LAC2 to the data packet.

本实施例的装置,可用于执行图2所示方法实施例二的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the second embodiment of the method shown in FIG. 2 , and its implementation principle and technical effect are similar, and will not be repeated here.

本实施例的配号装置,通过数据包监控单元监听访问集中器LAC输出端口,截获其发出的数据包,并根据数据包中LAC IP地址、LAC串口标识,查找UE的预置文件,从预置文件中提取UE的主、被叫号码,从而将UE的主、被叫号码增加到该数据包,再发送更改后的数据包到目的接收端。从而解决了现有技术中仿真系统因缺少拨号机制无法真实还原终端拨号接入L2TP网络的技术问题,实现了对于终端拨号接入L2TP网络的仿真,真实还原了无线数据专网的接入操作过程。The number allocation device of this embodiment listens to the LAC output port of the access concentrator through the data packet monitoring unit, intercepts the data packet sent by it, and searches for the preset file of the UE according to the LAC IP address and the LAC serial port identifier in the data packet, from the preset Extract the UE's calling and called numbers from the configuration file, thereby adding the UE's calling and called numbers to the data packet, and then sending the changed data packet to the destination receiving end. This solves the technical problem that the simulation system in the prior art cannot truly restore the terminal dial-up access to the L2TP network due to the lack of a dial-up mechanism, realizes the simulation of the terminal dial-up access to the L2TP network, and truly restores the access operation process of the wireless data private network .

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (8)

1.一种二层隧道协议L2TP网络仿真系统的配号方法,其特征在于,包括:1. a kind of number allocation method of two-layer tunneling protocol L2TP network emulation system, it is characterized in that, comprising: 数据包监控单元监听访问集中器LAC输出端口信号,截获所述LAC输出端口发出的数据包,所述数据包用于建立用户设备UE与L2TP网络服务器LNS间的数据通信;所述数据包中包含所述LAC的IP地址、所述LAC的串口标识、所述数据包的目的接收端标识;The data packet monitoring unit monitors the LAC output port signal of the access concentrator, intercepts the data packet sent by the LAC output port, and the data packet is used to establish the data communication between the user equipment UE and the L2TP network server LNS; the data packet contains The IP address of the LAC, the serial port identifier of the LAC, and the destination receiver identifier of the data packet; 数据包监控单元根据所述LAC的IP地址、所述LAC的串口标识,查找所述UE的预置文件,并从所述预置文件中提取所述UE的被叫号码、所述UE的主叫号码;The data packet monitoring unit searches for the preset file of the UE according to the IP address of the LAC and the serial port identifier of the LAC, and extracts the called number of the UE and the primary number of the UE from the preset file. call number; 数据包监控单元将所述被叫号码、所述主叫号码增加到所述数据包中;根据所述数据包的目的接收端标识,发送更改后的数据包到所述目的接收端。The data packet monitoring unit adds the called number and the calling number to the data packet; sends the modified data packet to the destination receiving end according to the identification of the destination receiving end of the data packet. 2.根据权利要求1所述的方法,其特征在于,所述目的接收端包括:用于处理Radius协议的Radius服务器,和/或用于处理L2TP协议的LNS服务器。2. The method according to claim 1, wherein the destination receiving end comprises: a Radius server for processing the Radius protocol, and/or an LNS server for processing the L2TP protocol. 3.根据权利要求1所述的方法,其特征在于,所述数据包监控单元根据所述LAC的IP地址、所述LAC的串口标识,查找所述UE的预置文件包括:3. The method according to claim 1, wherein the packet monitoring unit searching for the preset file of the UE according to the IP address of the LAC and the serial port identifier of the LAC comprises: 所述数据包监控单元根据所述LAC的IP地址,在用户数据库中查找与所述LAC的IP地址对应的数据表;根据所述LAC的串口标识在所述数据表中查找与所述LAC的串口标识对应的所述UE的预置文件。According to the IP address of the LAC, the data packet monitoring unit searches the user database for a data table corresponding to the IP address of the LAC; The preset file of the UE corresponding to the serial port identifier. 4.根据权利要求1所述的方法,其特征在于,还包括:4. The method according to claim 1, further comprising: 访问集中器LAC获取与所述LAC连接的所述UE对应的所述LAC的串口标识,添加所述LAC的串口标识到所述数据包中。The access concentrator LAC obtains the serial port identifier of the LAC corresponding to the UE connected to the LAC, and adds the serial port identifier of the LAC to the data packet. 5.一种二层隧道协议L2TP网络仿真系统的配号装置,其特征在于,包括:数据包监控单元;所述数据包监控单元包括:5. A number matching device of a two-layer tunneling protocol L2TP network emulation system, characterized in that, comprising: a data packet monitoring unit; the data packet monitoring unit includes: 监听模块,用于监听访问集中器LAC输出端口信号,截获所述LAC输出端口发出的数据包,所述数据包用于建立用户设备UE与L2TP网络服务器LNS间的数据通信;所述数据包中包含所述LAC的IP地址、所述LAC的串口标识、所述数据包的目的接收端标识;The monitoring module is used to monitor the LAC output port signal of the access concentrator, and intercepts the data packet sent by the LAC output port, and the data packet is used to establish the data communication between the user equipment UE and the L2TP network server LNS; in the data packet Including the IP address of the LAC, the serial port identifier of the LAC, and the destination receiver identifier of the data packet; 查找模块,用于根据所述LAC的IP地址、所述LAC的串口标识,查找所述UE的预置文件,并从所述预置文件中提取所述UE的被叫号码、所述UE的主叫号码;A search module, configured to search for a preset file of the UE according to the IP address of the LAC and the serial port identifier of the LAC, and extract the called number of the UE and the UE's ID from the preset file. calling number; 发送模块,用于将所述被叫号码、所述主叫号码增加到所述数据包中;根据所述数据包的目的接收端标识,发送更改后的数据包到所述目的接收端。A sending module, configured to add the called number and the calling number to the data packet; send the modified data packet to the destination receiving end according to the identification of the destination receiving end of the data packet. 6.根据权利要求5所述的装置,其特征在于,所述目的接收端包括:用于处理Radius协议的Radius服务器,和/或用于处理L2TP协议的LNS服务器。6. The device according to claim 5, wherein the destination receiving end comprises: a Radius server for processing the Radius protocol, and/or an LNS server for processing the L2TP protocol. 7.根据权利要求5所述的装置,其特征在于,7. The device of claim 5, wherein: 所述查找模块,具体用于根据所述LAC的IP地址,在用户数据库中查找与所述LAC的IP地址对应的数据表;根据所述LAC的串口标识在所述数据表中查找与所述LAC的串口标识对应的所述UE的预置文件。The search module is specifically configured to search the user database for a data table corresponding to the IP address of the LAC according to the IP address of the LAC; search for a data table corresponding to the The preset file of the UE corresponding to the serial port identifier of the LAC. 8.根据权利要求5所述的装置,其特征在于,还包括:访问集中器LAC;8. The device according to claim 5, further comprising: an access concentrator LAC; 所述LAC,用于获取与所述LAC连接的所述UE对应的所述LAC的串口标识,添加所述LAC的串口标识到所述数据包中。The LAC is configured to acquire the serial port identifier of the LAC corresponding to the UE connected to the LAC, and add the serial port identifier of the LAC to the data packet.
CN201510108914.4A 2015-03-12 2015-03-12 Layer 2 Tunneling Protocol L2TP network (WSN) emulation systems match somebody with somebody number method and apparatus Active CN104660472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510108914.4A CN104660472B (en) 2015-03-12 2015-03-12 Layer 2 Tunneling Protocol L2TP network (WSN) emulation systems match somebody with somebody number method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510108914.4A CN104660472B (en) 2015-03-12 2015-03-12 Layer 2 Tunneling Protocol L2TP network (WSN) emulation systems match somebody with somebody number method and apparatus

Publications (2)

Publication Number Publication Date
CN104660472A true CN104660472A (en) 2015-05-27
CN104660472B CN104660472B (en) 2018-04-27

Family

ID=53251201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510108914.4A Active CN104660472B (en) 2015-03-12 2015-03-12 Layer 2 Tunneling Protocol L2TP network (WSN) emulation systems match somebody with somebody number method and apparatus

Country Status (1)

Country Link
CN (1) CN104660472B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868149A (en) * 2016-03-24 2016-08-17 杭州昆海信息技术有限公司 A serial port information transmission method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6377982B1 (en) * 1997-10-14 2002-04-23 Lucent Technologies Inc. Accounting system in a network
CN103227773A (en) * 2012-03-31 2013-07-31 杭州华三通信技术有限公司 Method and system for establishing virtual private dial-up network connection
CN103841627A (en) * 2012-11-22 2014-06-04 中国电信股份有限公司 Method and system for using service provider services through VPDN (virtual private dialup network)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6377982B1 (en) * 1997-10-14 2002-04-23 Lucent Technologies Inc. Accounting system in a network
CN103227773A (en) * 2012-03-31 2013-07-31 杭州华三通信技术有限公司 Method and system for establishing virtual private dial-up network connection
CN103841627A (en) * 2012-11-22 2014-06-04 中国电信股份有限公司 Method and system for using service provider services through VPDN (virtual private dialup network)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868149A (en) * 2016-03-24 2016-08-17 杭州昆海信息技术有限公司 A serial port information transmission method and device

Also Published As

Publication number Publication date
CN104660472B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
CN105637805B (en) Enhanced Mobile Backup Channels to Address Node Failures in Wireline Networks
JP6619894B2 (en) Access control
CN102136938B (en) Method and device for providing user information for carried grade network address translation (CGN) equipment
CN102594646B (en) A kind of internet protocol secure tunnel changing method, device and transmission system
CN103873449B (en) Method for network access and system
CN106533883A (en) Network private line establishment method, apparatus and system
CN112217771B (en) Data forwarding method and data forwarding device based on tenant information
WO2016180020A1 (en) Message processing method, device and system
CN107078946A (en) Processing method, the device and system of business stream process strategy
CN111431787B (en) Tunnel establishment method and device and computer readable storage medium
WO2016070633A1 (en) Network log generation method and device
CN108737407A (en) A kind of method and device for kidnapping network flow
US8312530B2 (en) System and method for providing security in a network environment using accounting information
CN105052239B (en) Policy control method, related device and system
CN104660472B (en) Layer 2 Tunneling Protocol L2TP network (WSN) emulation systems match somebody with somebody number method and apparatus
WO2013159591A1 (en) Method and apparatus for differentiating wireless terminals
CN104144417B (en) Mobile Internet access Subscriber Number inverse-checking method, device and system
CN113472625B (en) Transparent bridging method, system, equipment and storage medium based on mobile internet
CN106899635B (en) Method and device for realizing fixed communication port of file transfer protocol data link
CN104869180B (en) The method and apparatus of controlling terminal communication range
CN112214258B (en) End-to-end capability benchmark test method and device based on software defined wide area network
TW201517654A (en) Transmission path control system
JP2023002448A (en) Device and method for providing communication service for accessing ip network, and program therefor
US20230037602A1 (en) Information processing method and apparatus, node device, server and storage medium
WO2015172338A1 (en) Access point selection method and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant