CN101257420A - A point-to-point protocol access method, system and access node device - Google Patents
A point-to-point protocol access method, system and access node device Download PDFInfo
- Publication number
- CN101257420A CN101257420A CN 200710085357 CN200710085357A CN101257420A CN 101257420 A CN101257420 A CN 101257420A CN 200710085357 CN200710085357 CN 200710085357 CN 200710085357 A CN200710085357 A CN 200710085357A CN 101257420 A CN101257420 A CN 101257420A
- Authority
- CN
- China
- Prior art keywords
- access
- point
- message
- protocol
- data
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/168—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP] specially adapted for link layer protocols, e.g. asynchronous transfer mode [ATM], synchronous optical network [SONET] or point-to-point protocol [PPP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明涉及接入技术领域,提供了点对点协议接入方法、系统及接入节点设备,接入方法包括:接入节点设备接收来自用户的点对点协议接入报文,判断所述点对点协议接入报文为协议报文还是数据报文;当所述点对点协议接入报文为协议报文时,将所述的协议报文发送至接入控制器,并由所述的接入控制器对用户进行接入管理,如果接入控制器允许用户接入,则由接入节点设备建立和维护数据转发表;当所述点对点协议接入报文为数据报文时,由接入节点设备根据所述数据转发表将所述的数据报文进行转发。通过本发明提供的技术方案实现了点对点协议接入中控制与承载的分离,利于网络的扩展与升级。
The present invention relates to the field of access technology, and provides a point-to-point protocol access method, system and access node equipment. The access method includes: the access node equipment receives a point-to-point protocol access message from a user, and judges that the point-to-point protocol access Whether the message is a protocol message or a data message; when the point-to-point protocol access message is a protocol message, the protocol message is sent to the access controller, and the access controller The user performs access management. If the access controller allows the user to access, the access node device establishes and maintains a data forwarding table; when the point-to-point protocol access message is a data message, the access node device The data forwarding table forwards the data message. The technical solution provided by the invention realizes the separation of control and bearer in point-to-point protocol access, which is beneficial to network expansion and upgrade.
Description
技术领域 technical field
本发明涉及宽带接入网技术领域,尤其涉及一种点对点协议(PPP,Point toPoint Protocol)接入方法、系统及接入节点设备。The present invention relates to the technical field of broadband access networks, in particular to a point-to-point protocol (PPP, Point to Point Protocol) access method, system and access node equipment.
背景技术 Background technique
PPP协议是TCP/IP协议栈中的数据链路层协议,提供一种标准的方式在点对点的链路上传输多个网络层协议的数据报。PPP协议有支持不同网络层次的网络控制协议(NCP,Network Control Protocol)如网际协议控制协议(IPCP,Internet Protocol Control Protocol)和互联网络数据包交换控制协议(IPXCP,Internet work Packet Exchange Control Protocol),链路控制协议(LCP,LinkControl Protocol)以及验证族协议如挑战握手验证协议(CHAP,ChallengeHandshake Authentication Protocol)、口令验证协议(PAP,PasswordAuthentication Protocol)。其中,NCP主要用来协商链路上传输的数据包的格式和类型,LCP主要用来建立、拆除和监控PPP数据链路,验证族协议主要用来对连接用户进行身份验证,防止非法用户的PPP连接,保证网络的安全。图1所示为PPP协议的帧格式,其中,协议域用于识别信息域字段封装的协议类型,目前主要用到的协议类型有LCP、NCP和普通的IP协议,而它们相对应的协议域字段分别为0xC021、0x8021、0x0021,后面的信息根据不同的协议包含不同的报文内容。The PPP protocol is a data link layer protocol in the TCP/IP protocol stack, providing a standard way to transmit datagrams of multiple network layer protocols on a point-to-point link. The PPP protocol supports network control protocols (NCP, Network Control Protocol) at different network levels, such as Internet Protocol Control Protocol (IPCP, Internet Protocol Control Protocol) and Internet Data Packet Exchange Control Protocol (IPXCP, Internet work Packet Exchange Control Protocol), Link Control Protocol (LCP, LinkControl Protocol) and authentication family protocols such as Challenge Handshake Authentication Protocol (CHAP, ChallengeHandshake Authentication Protocol), Password Authentication Protocol (PAP, PasswordAuthentication Protocol). Among them, NCP is mainly used to negotiate the format and type of data packets transmitted on the link. LCP is mainly used to establish, tear down and monitor PPP data links. PPP connection ensures network security. Figure 1 shows the frame format of the PPP protocol. Among them, the protocol field is used to identify the protocol type encapsulated in the information field field. At present, the main types of protocols used are LCP, NCP and ordinary IP protocols, and their corresponding protocol fields The fields are 0xC021, 0x8021, and 0x0021 respectively, and the following information contains different message contents according to different protocols.
随着网络技术的发展,宽带接入已经成为一种主导的用户接入方式。常见的宽带接入方式有非对称数字用户环路(ADSL,Asymmetrical DigitalSubscriber Loop)、甚高速数字用户环路(VDSL,Very-high-bit-rate DigtalSubscriber Loop)、以太网、无源光网络(PON,Passive Optical Network)。根据运营商运营的需要,这些接入方式需要有宽带拨号与认证的过程。当前宽带拨号与认证的主要方式有异步传输模式(ATM,Asynchronous Transfer Mode)承载PPP(PPPoA,PPP over ATM,)和以太网承载PPP(PPPoE,PPP over Ethernet)。其中,PPPoA是基于ATM适配第5层(ATMAAL5,ATM Adaptation Layer 5)的PPP,PPPoA使用ATM适配第5层组装PPP封装的包。PPP协议要求进行通信的双方是点对点的关系,无法直接应用于广播型的以太网,而PPPoE解决了这一问题。通过PPPoE协议,在一个共享的以太网中的多个主机可以通过一个或多个简单的桥接接入设备,与远程接入服务器进行多个PPP会话。PPPoE不仅为使用桥接以太网接入的用户提供了一种宽带接入手段,同时还能提供方便的接入控制和计费。PPPoE协议的工作流程包括发现和会话两个阶段。一个主机想开始一个PPP会话时,它首先要执行一个发现过程来识别对方的介质访问控制(MAC,Medium Access Control)地址,然后建立一个唯一的PPP会话标识(ID,Identification)。PPPoE会话阶段开始后,主机和接入服务器依据PPP协议传送PPP数据,进行PPP的各项协商和数据传输。PPPoA与PPPoE提供的都是一种点到点的连接,不同之处在于,PPPoA是承载在ATM网络上的,而PPPoE是承载在以太网网络上的,分别适应ATM标准和以太网标准。With the development of network technology, broadband access has become a dominant user access method. Common broadband access methods include asymmetrical digital subscriber loop (ADSL, Asymmetrical Digital Subscriber Loop), very high-speed digital subscriber loop (VDSL, Very-high-bit-rate Digital Subscriber Loop), Ethernet, passive optical network (PON , Passive Optical Network). According to the operator's operation needs, these access methods require broadband dial-up and authentication processes. The current main ways of broadband dial-up and authentication include ATM (Asynchronous Transfer Mode) carrying PPP (PPPoA, PPP over ATM), and Ethernet carrying PPP (PPPoE, PPP over Ethernet). Among them, PPPoA is PPP based on ATM Adaptation Layer 5 (ATMAAL5, ATM Adaptation Layer 5), and PPPoA uses ATM Adaptation Layer 5 to assemble PPP-encapsulated packets. The PPP protocol requires the two parties to communicate to be in a point-to-point relationship, which cannot be directly applied to broadcast Ethernet, but PPPoE solves this problem. Through the PPPoE protocol, multiple hosts in a shared Ethernet can conduct multiple PPP sessions with the remote access server through one or more simple bridge access devices. PPPoE not only provides a broadband access method for users using bridged Ethernet access, but also provides convenient access control and billing. The workflow of the PPPoE protocol includes two stages: discovery and session. When a host wants to start a PPP session, it must first perform a discovery process to identify the other party's Medium Access Control (MAC, Medium Access Control) address, and then establish a unique PPP session ID (ID, Identification). After the PPPoE session phase starts, the host and the access server transmit PPP data according to the PPP protocol, and carry out various negotiations and data transmission of PPP. Both PPPoA and PPPoE provide a point-to-point connection. The difference is that PPPoA is carried on the ATM network, while PPPoE is carried on the Ethernet network, respectively adapting to the ATM standard and the Ethernet standard.
由于PPP协议是一种标准的点对点连接,而PPPoX(包括PPPoA和PPPoE)提供的也是一种点对点连接,协议报文和用户数据报文在协议的两点之间控制和承载是捆绑在一起的,在进行本发明创造过程中,发明人发现现有技术中至少存在如下问题:承载网络的每项技术更新都需要支持PPP协议,而PPP接入技术的革新也要适应承载网络,这样会导致网络运营成本的增加,不利于网络的扩展与升级,随着网络的演进,控制与承载分离成为必然要求。由于PPPoX提供的是点到点的连接,网络中的接入服务器作为点对点连接中网络侧的一端,需要终结大量的PPP会话,转发大量的IP数据包,在业务繁忙时,很可能成为网络性能的瓶颈。Since the PPP protocol is a standard point-to-point connection, and PPPoX (including PPPoA and PPPoE) also provides a point-to-point connection, protocol packets and user data packets are bundled together for control and bearing between two points of the protocol , during the creation process of the present invention, the inventor found that there are at least the following problems in the prior art: each technical update of the bearer network needs to support the PPP protocol, and the innovation of PPP access technology must also adapt to the bearer network, which will lead to The increase of network operation cost is not conducive to the expansion and upgrade of the network. With the evolution of the network, the separation of control and bearer becomes an inevitable requirement. Since PPPoX provides a point-to-point connection, the access server in the network, as one end of the network side in the point-to-point connection, needs to terminate a large number of PPP sessions and forward a large number of IP data packets. the bottleneck.
发明内容 Contents of the invention
本发明实施例所要解决的技术问题是提供一种PPP接入认证方法、系统和接入节点设备,以实现PPP接入认证中控制和承载的分离。The technical problem to be solved by the embodiments of the present invention is to provide a PPP access authentication method, system and access node equipment to realize the separation of control and bearer in PPP access authentication.
为解决上述技术问题,本发明实施例的目的是通过以下技术方案实现的:In order to solve the above technical problems, the purpose of the embodiments of the present invention is achieved through the following technical solutions:
本发明实施例提供了一种点对点协议接入方法,该方法包括:An embodiment of the present invention provides a point-to-point protocol access method, the method comprising:
接入节点设备接收来自用户的点对点协议接入报文,判断所述点对点协议接入报文为协议报文还是数据报文,如果为协议报文,则将所述的协议报文发送至接入控制器,并由所述的接入控制器对用户进行接入管理,如果接入控制器允许用户接入,则由接入节点设备建立和维护数据转发表;如果为数据报文,则由接入节点设备根据所述数据转发表将所述的数据报文进行转发。The access node device receives the point-to-point protocol access message from the user, judges whether the point-to-point protocol access message is a protocol message or a data message, and if it is a protocol message, then sends the protocol message to the access point access controller, and the access controller performs access management for users. If the access controller allows users to access, the access node device establishes and maintains a data forwarding table; if it is a data packet, then The access node device forwards the data message according to the data forwarding table.
本发明实施例提供了一种点对点协议接入系统,该系统包括接入节点设备、接入控制器,其中:An embodiment of the present invention provides a point-to-point protocol access system, the system includes an access node device and an access controller, wherein:
接入节点设备,用于接收来自用户的点对点协议接入报文,判断所述点对点协议接入报文为协议报文还是数据报文,并在所述点对点协议接入报文为协议报文时,将其发送至接入控制器进行处理,在接收到接入控制器发送的允许接入的消息时,创建并维护数据转发表;在所述点对点协议接入报文为数据报文时,根据所述数据转发表将其转发;An access node device, configured to receive a point-to-point protocol access packet from a user, determine whether the point-to-point protocol access packet is a protocol packet or a data packet, and determine whether the point-to-point protocol access packet is a protocol packet , send it to the access controller for processing, and create and maintain a data forwarding table when receiving the access permission message sent by the access controller; when the point-to-point protocol access message is a data message , forwarding it according to the data forwarding table;
接入控制器,用于根据接收到的协议报文对用户进行接入管理。The access controller is configured to perform access management on users according to the received protocol message.
本发明实施例还提供了一种接入节点设备,该接入节点设备包括报文接收识别单元、报文发送单元、存储单元,其中:The embodiment of the present invention also provides an access node device, the access node device includes a message receiving and identifying unit, a message sending unit, and a storage unit, wherein:
报文接收识别单元,用于接收点对点协议报文并识别接收到的所述点对点协议报文为协议报文还是数据报文;A message receiving identification unit, configured to receive a point-to-point protocol message and identify whether the received point-to-point protocol message is a protocol message or a data message;
报文发送单元,将报文接收识别单元接收到的协议报文转发至第一目的地址,根据存储单元中存储的数据转发表将报文接收识别单元接收到的数据报文转发至第二目的地址;The message sending unit forwards the protocol message received by the message receiving and identifying unit to the first destination address, and forwards the data message received by the message receiving and identifying unit to the second destination according to the data forwarding table stored in the storage unit address;
存储单元,用于存储数据转发表。The storage unit is used for storing the data forwarding table.
从以上技术方案可以看出,通过接入节点设备对来自用户的PPPoX接入报文进行判断,分离出数据报文与协议报文,并将数据报文进行转发,而由接入控制器根据协议报文进行接入控制与管理,从而完成了PPP接入中控制与承载的分离,使得PPP接入控制技术的革新与承载网络的演进互不影响,利于网络的扩展与升级,同时也节约了网络运营成本。As can be seen from the above technical solutions, the access node device judges the PPPoX access message from the user, separates the data message and the protocol message, and forwards the data message, and the access controller according to Access control and management are carried out by protocol packets, thereby completing the separation of control and bearer in PPP access, so that the innovation of PPP access control technology and the evolution of the bearer network do not affect each other, which is conducive to network expansion and upgrade, and saves network operating costs.
同时,由接入控制器负责对用户进行接入控制与管理,而由接入节点设备转发数据包,网络负荷由二者分担,从而提高了设备的利用效率,避免了网络的某一设备负担过重而影响整个网络的运行,降低了对网络设备的性能要求。At the same time, the access controller is responsible for access control and management of users, while the access node device forwards data packets, and the network load is shared by the two, thereby improving the utilization efficiency of the device and avoiding the burden of a certain device on the network Too heavy will affect the operation of the entire network and reduce the performance requirements for network equipment.
附图说明 Description of drawings
图1为现有技术中PPP帧格式示意图;FIG. 1 is a schematic diagram of a PPP frame format in the prior art;
图2为本发明PPP接入方法的较佳实施例的接入流程图;Fig. 2 is the access flowchart of the preferred embodiment of the PPP access method of the present invention;
图3为本发明PPP接入系统较佳实施例的结构示意图;FIG. 3 is a schematic structural diagram of a preferred embodiment of the PPP access system of the present invention;
图4为本发明接入节点设备较佳实施例的结构示意图。Fig. 4 is a schematic structural diagram of a preferred embodiment of an access node device according to the present invention.
具体实施方式 Detailed ways
为使本发明的目的、技术方案及优点更加清楚明白,以下参照附图并举实施例,对本发明进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.
首先举一实施例说明本发明提供的PPP接入方法,参照图2。First, an embodiment is given to illustrate the PPP access method provided by the present invention, referring to FIG. 2 .
步骤21:接入节点设备(AN,Access Node)接收来自用户的PPP接入报文;Step 21: the access node device (AN, Access Node) receives the PPP access message from the user;
首先由用户设备发送PPP接入报文,请求建立PPP连接。PPP连接可以由用户主机发起,也可以由驻地网关(RG,Residential Gateway)发起。PPP接入报文根据承载方式的不同包括PPPoA接入报文和PPPoE接入报文,一般情况下,PPPoA用于路由方式,接入认证过程由RG完成,而PPPoE工作于桥接方式,由用户主机或RG发起PPPoE请求。因此用户侧具体设备可为用户主机,也可以为RG。First, the user equipment sends a PPP access message to request the establishment of a PPP connection. The PPP connection can be initiated by the user host or by a Residential Gateway (RG, Residential Gateway). PPP access packets include PPPoA access packets and PPPoE access packets according to different bearer modes. Generally, PPPoA is used in routing mode, and the access authentication process is completed by RG, while PPPoE works in bridging mode. The host or RG initiates a PPPoE request. Therefore, the specific device on the user side may be a user host or an RG.
步骤22:AN判断所述PPPoX接入报文为协议报文还是数据报文,如果是协议报文,则执行步骤23;如果为数据报文,则执行步骤27;Step 22: AN judges whether the PPPoX access message is a protocol message or a data message, if it is a protocol message, then perform step 23; if it is a data message, then perform step 27;
AN可以根据PPP帧的协议域来判断报文类型,如协议域字段为0x8021,则为NCP协议报文,如协议字段为0x0021,则为IP数据报文。The AN can judge the message type according to the protocol field of the PPP frame. If the protocol field field is 0x8021, it is an NCP protocol message; if the protocol field is 0x0021, it is an IP data message.
步骤23:将所述协议报文发送至接入控制器(AC,Access Controller),并由AC对用户进行接入管理,包括接入链路协商、用户接入地址分配、接入认证授权;Step 23: Send the protocol message to the access controller (AC, Access Controller), and the AC performs access management on the user, including access link negotiation, user access address allocation, and access authentication authorization;
在接入管理的过程中,AC根据不同的协议类型,进行相应的处理。如接收到的为LCP协议报文,则与用户进行协商,进行数据链路的建立、维护或终止。如果接收到的为认证族协议如PAP或CHAP,则将该协议报文转发到授权、验证和计费(AAA,Authentication,Authorization and Accounting)服务器对用户进行身份认证,以防非法用户的PPP连接。如果需要,还应将AAA服务器返回的报文首先转换为PPPoX格式。AN将接收到AC发往用户的协议报文时直接转发至用户。During the access management process, the AC performs corresponding processing according to different protocol types. If the received message is an LCP protocol message, it negotiates with the user to establish, maintain or terminate the data link. If the received authentication family protocol such as PAP or CHAP, forward the protocol message to the AAA, Authentication, Authorization and Accounting (AAA, Authentication, Authorization and Accounting) server to authenticate the user to prevent illegal users from PPP connection . If necessary, the message returned by the AAA server should be converted to PPPoX format first. When the AN receives the protocol packet sent by the AC to the user, it will directly forward it to the user.
AAA的实现可采用RADIUS(Remote Authentication Dial In User Service,远程用户拨号认证系统),RADIUS是一种在NAS(Network Access Server,网络接入服务器)如BRAS(Broadband Remote Access Server)和共享认证服务器间传输认证、授权和配置信息的协议。RADIUS使用UDP(UserDatagram Protocol,用户数据报协议)作为其传输协议。此外RADIUS也负责传送网络接入服务器和共享计费服务器间的计费信息。在本实施例中,AC可以作为BRAS等NAS设备。The realization of AAA can adopt RADIUS (Remote Authentication Dial In User Service, remote user dial-up authentication system), RADIUS is a kind of authentication between NAS (Network Access Server, network access server) such as BRAS (Broadband Remote Access Server) and shared authentication server A protocol for transporting authentication, authorization, and configuration information. RADIUS uses UDP (UserDatagram Protocol, User Datagram Protocol) as its transmission protocol. In addition, RADIUS is also responsible for transmitting the accounting information between the network access server and the shared accounting server. In this embodiment, the AC can function as a NAS device such as a BRAS.
步骤24:AN判断是否允许该用户接入,如果否,则执行步骤25;如果是,则执行步骤26;Step 24: AN judges whether the user is allowed to access, if not, execute step 25; if yes, execute step 26;
可以通过对用户身份进行验证是否通过来判断是否允许用户接入。Whether the user is allowed to access can be judged by checking whether the user identity is passed.
步骤25:关闭拆除链路,终结PPP会话;Step 25: close and tear down the link, terminate the PPP session;
步骤26:AN建立并维护数据转发表;Step 26: AN establishes and maintains a data forwarding table;
AN可以通过监控或探测来获取用户与AC的PPP信令信息,进而获取所需要的信息或参数。也可以由AC通过附加的控制协议如SNMP(SimpleNetwork Management Protocol,简单网络管理协议)、ANCP(Access NetworkControl Protocol,接入网络控制协议)等来控制AN。这样,在AN中就有一个管理代理,它用于向AC请求信息和动作。The AN can obtain the PPP signaling information between the user and the AC through monitoring or detection, and then obtain the required information or parameters. The AN can also be controlled by the AC through additional control protocols such as SNMP (Simple Network Management Protocol, Simple Network Management Protocol), ANCP (Access Network Control Protocol, Access Network Control Protocol), etc. Thus, there is a management agent in the AN, which is used to request information and actions from the AC.
由于在PPP点对点通信中,各个阶段是有一定的时序关系的,因此,如果不允许用户接入如对用户的身份认证没有完成,则该用户传送的数据报文就无法传递到目的网络,因此可以设置默认情况下AN在用户侧的端口只能传输PPP协议报文,当认证通过,才可以传输数据报文,类似于802.1X。In PPP point-to-point communication, each stage has a certain timing relationship, so if the user is not allowed to access, if the user's identity authentication is not completed, the data message transmitted by the user cannot be delivered to the destination network, so It can be set that by default, the port on the user side of the AN can only transmit PPP protocol packets, and data packets can only be transmitted when the authentication is passed, similar to 802.1X.
AN根据所获取的PPP信息建立和维护数据转发表。AN establishes and maintains a data forwarding table according to the obtained PPP information.
如数据转发表其中一条可为:(端口[含逻辑端口]标识,用户Mac,PPP会话标识)<->(用户MAC,用户IP地址,用户网关IP地址),AN依据此表对PPP数据报文进行转发处理,包括报文格式的转换以及将报文发送到目的地址,报文格式转换如:IPoE到PPPoE转换或者PPPoE到PPPoA的转换。For example, one of the data forwarding tables can be: (port [including logical port] identifier, user Mac, PPP session identifier) <-> (user MAC, user IP address, user gateway IP address), and AN bases the PPP datagram on this table The message is forwarded, including the conversion of the message format and sending the message to the destination address, such as: IPoE to PPPoE conversion or PPPoE to PPPoA conversion.
上面所述如果是PPPoE情况,而且如果AN为三层情况下可以直接在本地获取数据报文的目的MAC地址,如果AN为两层情况,如AN为交换机,AN通过ARP(Address Resolution Protocol,地址解析协议)获取用户网关IP对应的MAC地址作为目的MAC,源MAC地址使用接入用户的MAC地址。If it is the case of PPPoE mentioned above, and if the AN is a three-layer situation, the destination MAC address of the data message can be directly obtained locally. Analysis protocol) obtains the MAC address corresponding to the user gateway IP as the destination MAC, and uses the MAC address of the access user as the source MAC address.
步骤27:AN判断用户接入是否经允许,如果是,则执行步骤28;如果否,则执行步骤29;Step 27: AN judges whether the user access is allowed, if yes, execute step 28; if not, execute step 29;
如AN可以通过查找步骤26所建立的数据转发表,如果该表中是否有相应的会话ID及目的地址来判断,如果有,则说明允许用户接入。也可以在该表中设置一个表示用户接入的端口状态,默认情况下,该端口为关闭,当允许用户接入时,该端口为打开,允许传输数据报文。For example, the AN can judge by searching the data forwarding table established in step 26, if there is a corresponding session ID and destination address in the table, and if so, it means that the user is allowed to access. You can also set a port status in the table to indicate user access. By default, the port is closed, and when the user is allowed to access, the port is open, allowing the transmission of data packets.
步骤28:AN根据所建立和维护的数据转发表将数据报文进行转发;Step 28: AN forwards the data message according to the established and maintained data forwarding table;
在PPP点对点通信中,协商分为5个阶段,即:离线(Dead)阶段、链路建立阶段(Establish)、认证(Authenticate)阶段、网络控制协商(Network)阶段和结束(Terminate)阶段。不同阶段进行不同协议的协商,前面的协议协商得出结果后,再转入下一阶段协议的协商。因此,一般情况下,当允许用户接入例如对用户身份进行的验证通过后,该用户发送的数据报文才可以被AN转发到目的地址。In PPP point-to-point communication, the negotiation is divided into five stages, namely: Dead stage, Establish stage, Authentication stage, Network control negotiation stage and Terminate stage. Negotiations of different agreements are carried out at different stages. After the results of the previous agreement negotiations are obtained, the next stage of agreement negotiation is transferred. Therefore, generally, the data packet sent by the user can be forwarded to the destination address by the AN only after the user is allowed to access, for example, the verification of the user identity is passed.
根据数据转发表中的目的地址可以转发到目的网络如汇聚网,也可以是其他的用户。According to the destination address in the data forwarding table, it can be forwarded to the destination network such as the convergence network, or to other users.
数据转发表中,可以将相应的数据报文由PPPoX格式转换为IPoX格式,即完成PPPoX的解封装,并根据该表将数据报文发往相应的目的IP地址;In the data forwarding table, the corresponding data message can be converted from PPPoX format to IPoX format, that is, the decapsulation of PPPoX is completed, and the data message is sent to the corresponding destination IP address according to the table;
当允许用户接入后,与用户建立PPP连接的另一端也可向用户发送数据报文,当AN接收到这些数据报文后,根据所建立和维护的数据转发表将数据报文发送至用户。如果需要,例如AN接收到的数据报文为IPoX格式,或接入侧与网络的承载方式有所不同,则AN需要先将接收到的数据报文格式转换为接入侧认可的PPPoX格式。After the user is allowed to access, the other end of the PPP connection with the user can also send data packets to the user. After receiving these data packets, the AN sends the data packets to the user according to the established and maintained data forwarding table . If necessary, for example, the data packet received by the AN is in the IPoX format, or the bearer mode of the access side and the network is different, the AN needs to first convert the format of the received data packet into the PPPoX format recognized by the access side.
步骤29:将该数据报文丢弃。Step 29: Discard the data packet.
PPPoX提供的是点对点的连接,以上是对用户发出的PPP接入报文进行处理的过程,由上述工作流程可以看出,用户发出的PPP接入报文在AN进行了分离,AN将数据报文进行转发,而将协议报文发送到AC进行处理。从而实现将PPP接入的控制与承载分离,使得接入控制技术的革新与承载网络的演进互不影响,利于网络的扩展与升级。PPPoX provides a point-to-point connection. The above is the process of processing the PPP access message sent by the user. It can be seen from the above workflow that the PPP access message sent by the user is separated at the AN, and the AN sends the data packet The packet is forwarded, and the protocol packet is sent to the AC for processing. In this way, the control of PPP access and the bearer are separated, so that the innovation of the access control technology and the evolution of the bearer network do not affect each other, which is beneficial to the expansion and upgrade of the network.
通过以上实施例说明了一种PPP接入方法,以下通过实施例说明一种PPP接入系统,该系统包括:接入节点设备、接入控制器,其中:A PPP access method is described through the above embodiments, and a PPP access system is described below through the embodiments, the system includes: an access node device and an access controller, wherein:
接入节点设备,用于接收来自用户的PPP接入报文,判断所述PPP接入报文为协议报文还是数据报文,并在所述PPP接入报文为协议报文时,将其发送到接入控制器进行处理,在接收到接入控制器发送的允许用户接入的消息时,创建并维护会话数据转发表;在所述PPP接入报文为数据报文时,根据所述数据转发表将其转发;The access node device is configured to receive a PPP access packet from a user, determine whether the PPP access packet is a protocol packet or a data packet, and when the PPP access packet is a protocol packet, send It is sent to the access controller for processing, and when the message of allowing user access sent by the access controller is received, a session data forwarding table is created and maintained; when the PPP access message is a data message, according to The data forwarding table forwards it;
接入控制器,用于根据接收到的协议报文对用户进行接入管理,将协议报文通过接入节点设备发送至用户。The access controller is configured to perform access management on the user according to the received protocol message, and send the protocol message to the user through the access node device.
接入节点设备还可用于转发发往用户的数据报文至用户;接收来自接入控制器的PPPoX协议报文并发送至用户;The access node device can also be used to forward the data message sent to the user to the user; receive the PPPoX protocol message from the access controller and send it to the user;
如图3所示,RG31、AN32、AC33以及汇聚网35组成了一个接入网,AN逻辑上连接AC。As shown in Fig. 3, RG31, AN32, AC33 and
RG31用于发起PPP呼叫,请求接入网络,接收PPP协议报文与PPP数据报文。RG31 is used to initiate a PPP call, request access to the network, and receive PPP protocol packets and PPP data packets.
AN32用于接收并判断用户发送的报文为PPP数据报文还是PPP协议报文,在该报文为PPP协议报文时,直接发送到AC33对用户进行进行认证,在该报文为PPPoX数据报文时根据数据转发表进行转发,如通过汇聚网35发送至因特网服务提供商(ISP,Internet Service Provider)网络36。将汇聚网35发送的发往RG31的数据报文转发至用户,将AC33发送的发往RG31的协议报文直接发送。AN32 is used to receive and judge whether the message sent by the user is a PPP data message or a PPP protocol message. When the message is a PPP protocol message, it is directly sent to AC33 to authenticate the user. If the message is PPPoX data The message is forwarded according to the data forwarding table, such as being sent to the Internet Service Provider (ISP, Internet Service Provider)
AC33用于对PPP连接进行控制和对用户进行接入管理,如将认证信息发往AAA服务器进行身份认证,同时维护PPP的状态机,即进行不同协商阶段的转换。AC33 is used to control PPP connections and access management for users, such as sending authentication information to the AAA server for identity authentication, and maintaining the PPP state machine, that is, switching between different negotiation stages.
AAA服务器34,用于对用户进行鉴权、授权、计费。The
ISP网络36通过汇聚网35与用户进行交互,可以提供接入业务、信息业务和增值业务。The
下面通过实施例来说明一种接入节点设备,该设备包括:报文接收识别单元、报文发送单元、存储单元,其中:An access node device is described below through an embodiment, the device includes: a message receiving and identifying unit, a message sending unit, and a storage unit, wherein:
报文接收识别单元,用于接收PPP报文并识别接收到的所述PPP报文为协议报文还是数据报文;A message receiving identification unit, configured to receive a PPP message and identify whether the received PPP message is a protocol message or a data message;
报文发送单元,将报文接收识别单元接收到的协议报文转发至第一目的地址,根据存储单元中存储的数据转发表将报文接收识别单元接收到的数据报文转发至第二目的地址;The message sending unit forwards the protocol message received by the message receiving and identifying unit to the first destination address, and forwards the data message received by the message receiving and identifying unit to the second destination according to the data forwarding table stored in the storage unit address;
存储单元,用于存储数据转发表。The storage unit is used for storing the data forwarding table.
为了适应不同的网络承载方式,该接入节点设备还包括格式转换单元,用于根据目的网络的承载方式将报文接收识别单元发送的报文进行格式转换后再发送到报文发送单元。如可以进行PPPoX与IPoX的转换,PPPoA与PPPoE的相互转换。In order to adapt to different network bearer modes, the access node device also includes a format conversion unit for converting the format of the message sent by the message receiving identification unit according to the bearer mode of the destination network before sending it to the message sending unit. For example, the conversion between PPPoX and IPoX, and the mutual conversion between PPPoA and PPPoE can be carried out.
如图4所示的接入设备结构示意图,该节点设备包括:报文接收识别单元41、报文发送单元42、存储单元43,格式转换单元44,其中:As shown in FIG. 4 , the node device includes: a message receiving and identifying
报文接收识别单元41,用于接收PPP报文并识别接收到的所述PPP报文为协议报文还是数据报文;A message receiving
报文发送单元42,将报文接收识别单元41接收到的协议报文转发至第一目的地址,根据存储单元43中存储的数据转发表将报文接收识别单元41接收到的数据报文转发至第二目的地址;The
存储单元43,用于存储数据转发表;A
格式转换单元44,用于根据目的网络的承载方式将报文接收识别单元41发送的报文进行格式转换后再发送到报文发送单元42。The
而转发数据报文所依据的数据转发表,其中参数可以包括PPP会话标识、接入用户标识、转发路径标识。根据需要,本接入节点设备也可以获取其他所需要的PPP信令信息来作为数据转发表中的参数。As for the data forwarding table based on which the data message is forwarded, the parameters may include a PPP session identifier, an access user identifier, and a forwarding path identifier. As required, the access node device may also obtain other required PPP signaling information as parameters in the data forwarding table.
在上述各实施例中,通过接入节点设备对来自用户侧的PPPoX接入报文进行判断,分离出数据报文与协议报文,并将数据报文进行转发,而由接入控制器根据协议报文进行接入控制与管理,从而完成了PPP接入控制与承载的分离,使得PPP接入控制技术的革新与承载网络的演进互不影响,利于网络的扩展与升级,同时也节约了网络运营成本。In each of the above embodiments, the access node device judges the PPPoX access message from the user side, separates the data message and the protocol message, and forwards the data message, and the access controller according to Protocol packets are used for access control and management, thereby completing the separation of PPP access control and bearer, so that the innovation of PPP access control technology and the evolution of the bearer network do not affect each other, which is conducive to network expansion and upgrade, and also saves Network operating costs.
同时,由接入控制器负责对用户进行接入控制与管理,而由接入节点设备转发数据包,网络负荷由二者分担,从而提高了设备的利用效率,避免了网络的某一设备负担过重而影响整个网络的运行,降低了对网络设备的性能要求。At the same time, the access controller is responsible for access control and management of users, while the access node device forwards data packets, and the network load is shared by the two, thereby improving the utilization efficiency of the device and avoiding the burden of a certain device on the network Too heavy will affect the operation of the entire network and reduce the performance requirements for network equipment.
以上对本发明所提供的一种PPP接入方法、系统及接入节点设备通过实施例进行了详细介绍,以上实施例的说明只是用于帮助理解本发明的方法及其思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。Above, a kind of PPP access method, system and access node equipment provided by the present invention have been introduced in detail through the embodiments, and the description of the above embodiments is only used to help understand the method and the idea of the present invention; at the same time, for the technical field Those of ordinary skill in the art will have changes in the specific implementation and scope of application according to the idea of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710085357 CN101257420A (en) | 2007-03-02 | 2007-03-02 | A point-to-point protocol access method, system and access node device |
PCT/CN2008/070352 WO2008106881A1 (en) | 2007-03-02 | 2008-02-25 | A ppp access method, corresponding system and access node device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710085357 CN101257420A (en) | 2007-03-02 | 2007-03-02 | A point-to-point protocol access method, system and access node device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101257420A true CN101257420A (en) | 2008-09-03 |
Family
ID=39737796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200710085357 Pending CN101257420A (en) | 2007-03-02 | 2007-03-02 | A point-to-point protocol access method, system and access node device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101257420A (en) |
WO (1) | WO2008106881A1 (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102548022A (en) * | 2011-12-27 | 2012-07-04 | 上海顶竹通讯技术有限公司 | Network access device and network access method |
CN104125191A (en) * | 2013-04-23 | 2014-10-29 | 华为技术有限公司 | Processing method, device and system of point to point protocol over Ethernet |
CN104468313A (en) * | 2014-12-05 | 2015-03-25 | 华为技术有限公司 | Message processing method, network server and virtual private network system |
CN104506451A (en) * | 2014-12-24 | 2015-04-08 | 中国电子科技集团公司第五十四研究所 | POS (packet over SONET (synchronous optical network)/SDH (synchronous digital hierarchy)) data link layer classification processing device based on FPGA (field programmable gate array) |
WO2017012443A3 (en) * | 2015-07-17 | 2017-03-23 | 华为技术有限公司 | Message transmission method, access node, access controller and access system |
CN107547338A (en) * | 2017-05-31 | 2018-01-05 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN107786613A (en) * | 2016-08-30 | 2018-03-09 | 新华三技术有限公司 | Broadband Remote Access Server BRAS forwards implementation method and device |
CN107948082A (en) * | 2016-10-12 | 2018-04-20 | 中国电信股份有限公司 | The processing method and system and agent apparatus of point-to-point protocol on Ethernet |
CN108259298A (en) * | 2017-05-31 | 2018-07-06 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN109672594A (en) * | 2017-10-13 | 2019-04-23 | 中国电信股份有限公司 | IPoE message processing method, device and Broadband Remote Access Server |
CN109672593A (en) * | 2017-10-13 | 2019-04-23 | 中国电信股份有限公司 | PPPoE message processing method, device and Broadband Remote Access Server |
CN111193323A (en) * | 2020-01-06 | 2020-05-22 | 山东电工电气集团新能科技有限公司 | CAN bus-based power distribution network downlink equipment management device and method |
CN111262770A (en) * | 2018-12-03 | 2020-06-09 | 迈普通信技术股份有限公司 | Communication method and communication system |
CN112260913A (en) * | 2020-12-21 | 2021-01-22 | 广东省新一代通信与网络创新研究院 | A kind of access method and system for realizing distributed broadband |
US11102115B2 (en) | 2017-05-31 | 2021-08-24 | New H3C Technologies Co., Ltd. | Forwarding packet |
US11108594B2 (en) | 2017-05-31 | 2021-08-31 | New H3C Technologies Co., Ltd. | Implementing three-layer communication |
US11178073B2 (en) | 2015-07-17 | 2021-11-16 | Huawei Technologies Co., Ltd. | Message transmission method, access node, access controller, and access system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1192575C (en) * | 2002-02-10 | 2005-03-09 | 华为技术有限公司 | Method of realizing quick inserting ethernet load point to point protocol using network processor |
EP1372312B1 (en) * | 2002-06-13 | 2008-01-02 | Alcatel Lucent | Allocating transmission capacity of a shared medium in a multipoint to point network |
CN1272941C (en) * | 2003-07-25 | 2006-08-30 | 华为技术有限公司 | A method for implementing PPPoA to PPPoE conversion in network access equipment |
KR100776308B1 (en) * | 2005-12-12 | 2007-11-13 | 한국전자통신연구원 | Scheduling Method and Apparatus for Guaranteeing QoS in Mobile Internet System |
CN100562175C (en) * | 2007-07-26 | 2009-11-18 | 中兴通讯股份有限公司 | Data transmission method and device |
-
2007
- 2007-03-02 CN CN 200710085357 patent/CN101257420A/en active Pending
-
2008
- 2008-02-25 WO PCT/CN2008/070352 patent/WO2008106881A1/en active Application Filing
Cited By (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102548022B (en) * | 2011-12-27 | 2015-05-20 | 上海顶竹通讯技术有限公司 | Network access device and network access method |
CN102548022A (en) * | 2011-12-27 | 2012-07-04 | 上海顶竹通讯技术有限公司 | Network access device and network access method |
CN104125191B (en) * | 2013-04-23 | 2017-09-26 | 华为技术有限公司 | Processing method, equipment and the system of point-to-point protocol based on Ethernet |
CN104125191A (en) * | 2013-04-23 | 2014-10-29 | 华为技术有限公司 | Processing method, device and system of point to point protocol over Ethernet |
CN104468313A (en) * | 2014-12-05 | 2015-03-25 | 华为技术有限公司 | Message processing method, network server and virtual private network system |
WO2016086876A1 (en) * | 2014-12-05 | 2016-06-09 | 华为技术有限公司 | Packet processing method, network server and virtual private network system |
CN104506451A (en) * | 2014-12-24 | 2015-04-08 | 中国电子科技集团公司第五十四研究所 | POS (packet over SONET (synchronous optical network)/SDH (synchronous digital hierarchy)) data link layer classification processing device based on FPGA (field programmable gate array) |
US11902183B2 (en) | 2015-07-17 | 2024-02-13 | Huawei Technologies Co., Ltd. | Message transmission method, access node, access controller, and access system |
US11178073B2 (en) | 2015-07-17 | 2021-11-16 | Huawei Technologies Co., Ltd. | Message transmission method, access node, access controller, and access system |
WO2017012443A3 (en) * | 2015-07-17 | 2017-03-23 | 华为技术有限公司 | Message transmission method, access node, access controller and access system |
CN107786613A (en) * | 2016-08-30 | 2018-03-09 | 新华三技术有限公司 | Broadband Remote Access Server BRAS forwards implementation method and device |
US11038711B2 (en) | 2016-08-30 | 2021-06-15 | New H3C Technologies Co., Ltd. | Separating control plane function and forwarding plane function of broadband remote access server |
CN107948082A (en) * | 2016-10-12 | 2018-04-20 | 中国电信股份有限公司 | The processing method and system and agent apparatus of point-to-point protocol on Ethernet |
CN107547338A (en) * | 2017-05-31 | 2018-01-05 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN108259298A (en) * | 2017-05-31 | 2018-07-06 | 新华三技术有限公司 | A kind of message forwarding method and device |
US11102115B2 (en) | 2017-05-31 | 2021-08-24 | New H3C Technologies Co., Ltd. | Forwarding packet |
US11283645B2 (en) | 2017-05-31 | 2022-03-22 | New H3C Technologies Co., Ltd. | Forwarding packet |
CN107547338B (en) * | 2017-05-31 | 2020-12-29 | 新华三技术有限公司 | Message forwarding method and device |
US11108594B2 (en) | 2017-05-31 | 2021-08-31 | New H3C Technologies Co., Ltd. | Implementing three-layer communication |
CN109672593B (en) * | 2017-10-13 | 2021-11-05 | 中国电信股份有限公司 | PPPoE message processing method and device and broadband remote access server |
CN109672594B (en) * | 2017-10-13 | 2021-12-03 | 中国电信股份有限公司 | IPoE message processing method and device and broadband remote access server |
CN109672593A (en) * | 2017-10-13 | 2019-04-23 | 中国电信股份有限公司 | PPPoE message processing method, device and Broadband Remote Access Server |
CN109672594A (en) * | 2017-10-13 | 2019-04-23 | 中国电信股份有限公司 | IPoE message processing method, device and Broadband Remote Access Server |
CN111262770A (en) * | 2018-12-03 | 2020-06-09 | 迈普通信技术股份有限公司 | Communication method and communication system |
CN111262770B (en) * | 2018-12-03 | 2022-05-20 | 迈普通信技术股份有限公司 | Communication method and communication system |
CN111193323A (en) * | 2020-01-06 | 2020-05-22 | 山东电工电气集团新能科技有限公司 | CAN bus-based power distribution network downlink equipment management device and method |
CN111193323B (en) * | 2020-01-06 | 2023-08-11 | 山东电工电气集团新能科技有限公司 | Distribution network downlink equipment management device based on CAN bus |
CN112260913A (en) * | 2020-12-21 | 2021-01-22 | 广东省新一代通信与网络创新研究院 | A kind of access method and system for realizing distributed broadband |
Also Published As
Publication number | Publication date |
---|---|
WO2008106881A1 (en) | 2008-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101257420A (en) | A point-to-point protocol access method, system and access node device | |
CN115333883B (en) | Interaction between broadband network service gateway and fifth generation core network | |
JP4236398B2 (en) | Communication method, communication system, and communication connection program | |
US7733859B2 (en) | Apparatus and method for packet forwarding in layer 2 network | |
EP2207321B1 (en) | An accessing method, system and equipment of layer-3 session | |
CN107786613B (en) | Broadband remote access server BRAS forwarding implementation method and device | |
US6308213B1 (en) | Virtual dial-up protocol for network communication | |
US6754712B1 (en) | Virtual dial-up protocol for network communication | |
CN100370869C (en) | Method and system for providing users with network roaming | |
CN104125191B (en) | Processing method, equipment and the system of point-to-point protocol based on Ethernet | |
WO2013170790A1 (en) | Method and system for accessing virtual network | |
WO2007073696A1 (en) | A method, apparatus and system for wireless access | |
Valencia et al. | Cisco Layer Two Forwarding (Protocol)" L2F" | |
WO2007141840A1 (en) | Relay network system and terminal adapter | |
CN101212398A (en) | Access system and method | |
US9172554B2 (en) | Method and network access device for enabling data forwarding between different physical mediums | |
CN100561969C (en) | A Broadband Access Method Based on PPPoE | |
WO2009074072A1 (en) | Method, network system and network equipment of dynamic strategy conversion | |
CN100563257C (en) | An Improved PPPoE Authentication Method | |
WO2008037212A1 (en) | An access terminal and a method for the terminal binding to the operator | |
WO2006081776A1 (en) | A communication method and device of local different link protocol | |
JP4166609B2 (en) | Communication device | |
WO2007107076A1 (en) | A broadband user access method and device | |
CN100407687C (en) | An Ethernet access method for asynchronous transfer mode switched network users | |
WO2016082454A1 (en) | Renegotiation processing method and 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 | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20080903 |