CN112751735B - Method and device for realizing PPPoA function in broadband access equipment - Google Patents
Method and device for realizing PPPoA function in broadband access equipment Download PDFInfo
- Publication number
- CN112751735B CN112751735B CN202110004991.0A CN202110004991A CN112751735B CN 112751735 B CN112751735 B CN 112751735B CN 202110004991 A CN202110004991 A CN 202110004991A CN 112751735 B CN112751735 B CN 112751735B
- Authority
- CN
- China
- Prior art keywords
- mac address
- user
- control management
- management module
- broadband access
- 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
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/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/2898—Subscriber equipments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5061—Pools of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
- H04L67/1046—Joining mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- 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/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Abstract
The invention discloses a method and a device for realizing a PPPoA function in broadband access equipment, wherein the method comprises the following steps: after receiving PPP session request initiated by user, XDSL processing module distributes source MAC address for the user and reports it to core exchange control management module; the core exchange control management module agent completes PPPOE discovery process, extracts destination MAC address and session ID from the message responded by the broadband access server, and establishes one-to-one correspondence table items for PVC-ID, source MAC address, destination MAC address and session ID to maintain; the XDSL processing module encapsulates various messages sent by the user into PPPOE messages according to various parameters in the table entry, and the PPP service access of the user is completed. The scheme can realize the PPPOA service access of the user by organically combining and mutually matching with the core exchange control management module without increasing the chip hardware cost of the XDSL processing module.
Description
Technical Field
The present invention belongs to the technical field of network communication, and more particularly, to a method and an apparatus for implementing a PPPOA function in a broadband access device.
Background
DSL (Digital Subscriber Line) is a combination of Digital transmission technologies using copper wires as transmission media, and can transmit data on a Subscriber loop of a telephone network, and support both symmetric and asymmetric transmission modes. XDSL is a generic term for various types of DSL, including ADSL (Asymmetric Digital Subscriber Line), VDSL (Very-High-Bit-rate Digital Subscriber Line), HDSL (High-Bit-rate Digital Subscriber Line), and the like. The DSL technology can make full use of the existing PSTN (Public Switched Telephone Network), and can provide high-bandwidth service for users only by adding user DSL modem terminal equipment and local DSL convergence equipment at both ends of the line, without rewiring, thereby greatly reducing the service cost.
PPP (Point-to-Point Protocol) is a link layer Protocol, and realizes the transmission of data packets between two peer entities, and mainly includes the following two functions: 1) upper layer data packet encapsulation transmission, 2) PPP link negotiation. The link negotiation includes two protocols: the first is LCP (Link Control Protocol) for establishing, configuring and detecting data Link connection; the second is NCP (Network Control Protocol) for establishing and configuring different Network layer protocols.
ATM (Asynchronous Transfer Mode) is a general Connection-oriented transmission Mode designed for multiple services, and divides data into cells of fixed length, and performs switching and forwarding through PVC (Permanent Virtual Connection). Among them, DSL is an asynchronous transfer mode.
PPPoA (PPP over ATM) is a technology for transmitting PPP data packets on ATM, namely, PPP protocol messages are loaded on ATM, and PVC connection is established between ATM terminals by utilizing the existing ATM network to carry out PPP data communication; the specific implementation scheme is that a PPP packet is encapsulated according to the RFC2364 standard to form an ATM cell stream, the ATM cell stream is transmitted to a BRAS (Broadband Access Server) through an XDSL Modem, a local side device and an ATM network, and a series of PPP service Access processes such as authorization, authentication, address allocation, charging and the like are completed.
PPPOE (PPPOE Over Ethernet) is a network tunnel protocol for carrying PPP protocol messages on Ethernet and encapsulating PPP protocol in Ethernet frames, and because the PPPOE is integrated in the protocol, the PPPOE needs to realize the functions of authentication, encryption and the like which cannot be provided by the traditional Ethernet. The PPPOE protocol is realized by two stages: a discovery phase and a session phase.
The application mainly relates to how broadband access equipment realizes PPPoA service access; the broadband Access device may be MSAN (Multi-Service Access Network, i.e., integrated Service Access Network) communication device, OLT (optical line terminal, i.e., optical line terminal) and MSAN common platform device, and the like. The broadband access device generally comprises a core switching control management module (or called as a master control disk), an XDSL processing module (or called as an XDSL service single disk) and other service type processing modules, wherein the XDSL processing module is responsible for DSL service type access, and the core switching control management module is responsible for data aggregation and forwarding, that is, forwarding various service type data to a wide area network through IP data messages.
However, ATM networks are gradually exiting from operator networks, and currently, in the network structure of operators, broadband access devices do not support ATM networks, and broadband access servers upstream of broadband access devices do not support PPPOA protocols. Therefore, the ATM cell of the broadband access equipment can only be terminated at the XDSL processing module, and the PPPoA protocol is converted into the PPPOE protocol for transmission. However, if the conversion from PPPOA to PPPOE is implemented in the XDSL processing module, the XDSL processing chip needs to support the protocol conversion from PPPOA to PPPOE, which requires high hardware resources of the XDSL processing module, and thus, the hardware cost of the XDSL processing module is undoubtedly greatly increased. The main technical problem to be solved by the present application is how to realize the PPPOA service access function of the XDSL user by organically combining and mutually matching the XDSL processing module and the core switching control management module without increasing the hardware cost of the XDSL processing module.
In addition, two points are the key to complete the PPPOE message transmission between two nodes: 1) physical address (i.e., MAC address) resolution; 2) session ID (i.e., Session _ ID). The broadband access server generates a specific session ID for the PPP session of each pair of nodes, and the session ID can be obtained through message interaction in the PPPOE discovery phase. The physical address resolution process is as follows: physical address resolution is to complete the address binding function, ethernet frames access each other through the MAC addresses of the nodes, and both nodes must know the MAC address of the opposite end in order to create a connection on the ethernet to exchange PPP packets. However, for PVC, an ATM host only knows the VPI (Virtual Path Identifier)/VCI (Virtual Channel Identifier) identification of the PVC, and does not know the MAC address of the host; therefore, when transmitting packets on a PVC, the MAC address must be mapped to the VPI/VCI identification of the PVC. For XDSL users, if the users choose to use PPP protocol, user terminal equipment only sends PPP data packets, and the PPP data packets are converted into ATM cells on an ADSL Modem; ATM cells are terminated at a broadband access device and communicated over the network via an ethernet frame format, whereby a header of the ethernet frame format requires a source MAC address and a destination MAC address. The source MAC address is generally allocated to the user by the operator according to network planning, the destination MAC address is an MAC address of an opposite end node on the network, the broadband access server informs the user how to acquire the MAC address and maintain and manage the mapping relationship between the MAC address and the PVC, and the method is a key technical problem that needs to be solved by the broadband access device and another technical problem to be solved by the present application.
In summary, the present application mainly solves two technical problems: firstly, in the existing network environment (i.e. under the network environment that the broadband access device does not support ATM network and the broadband access server does not support PPPoA protocol), how to realize the PPPoA service access function of XDSL users by organically combining and mutually matching the XDSL processing module and the core exchange control management module on the premise of not increasing the hardware cost of the XDSL processing module; and how to acquire the MAC address and maintain and manage the mapping relation between the MAC address and the PVC.
Disclosure of Invention
The present invention provides a method and an apparatus for implementing PPPOA function in broadband access equipment, aiming at implementing the PPPOA service access function of XDSL user through the organic combination and mutual cooperation of XDSL processing module and core switching control management module, thereby solving the technical problem of implementing PPPOA service access by XDSL user in the existing network environment.
To achieve the above object, according to an aspect of the present invention, there is provided a method for implementing PPPOA function in a broadband access device, the broadband access device including an XDSL processing module and a core switching control management module, the method including:
after receiving PPP session request initiated by user, XDSL processing module allocates a source MAC address for the user and reports it to core exchange control management module;
the core exchange control management module agent completes PPPOE discovery process, extracts destination MAC address and session ID from the message responded by the broadband access server, and establishes one-to-one correspondence table entry for maintaining the PVC-ID, source MAC address, destination MAC address and session ID of the user;
the XDSL processing module encapsulates various messages sent by the user into PPPOE messages according to various parameters in the table entry, and finishes PPP service access of the user;
the PVC-ID is created in the core switching control management module when the service is opened, and one user corresponds to one PVC-ID.
Preferably, the method further comprises:
when the XDSL processing module receives PPP session termination message sent by the user or the source MAC address of the user is aged, the XDSL processing module informs the core exchange control management module, and the core exchange control management module sends PADT message to the broadband access server to terminate the PPP service access of the user.
Preferably, the core switching control management module agent completes a PPPOE discovery process, extracts a destination MAC address and a session ID from a packet responded by the broadband access server, and establishes a one-to-one correspondence table entry for the PVC-ID, the source MAC address, the destination MAC address, and the session ID of the user, and specifically includes:
after the core exchange control management module receives the message reported by the XDSL processing module, initiating a PPPOE discovery process by an agent;
the core exchange control management module carries out message interaction with an upstream broadband access server, and the agent completes a PPPOE discovery process;
the core exchange control management module extracts a destination MAC address and a session ID from a message responded by the broadband access server;
the core exchange control management module establishes one-to-one correspondence table items of the PVC-ID, the source MAC address, the destination MAC address and the session ID of the user and sends the table items to the XDSL processing module;
and the XDSL processing module writes the table entry content into the hardware driving table entry of the XDSL processing chip.
Preferably, the core switching control management module performs message interaction with an upstream broadband access server to proxy to complete a PPPOE discovery process, and specifically includes:
the core switching control management module broadcasts and sends a PADI message to the broadband access server;
after receiving the PADI message, the broadband access server responds the PADO message to the core switching control management module;
after receiving the PADO message, the core switching control management module sends a PADR message to the broadband access server;
after receiving the PADR message, the broadband access server responds the PADS message to the core switching control management module;
and the destination MAC address and the session ID are acquired through the PADS message.
Preferably, the source MAC address and the mapping relationship between the source MAC address and the PVC-ID are maintained and managed through two levels of address pools in the broadband access device;
the two-stage address pool comprises a first-stage MAC address pool and a second-stage MAC address pool, the core exchange control management module carries out maintenance management through the first-stage MAC address pool, and the XDSL processing module carries out maintenance management through the second-stage MAC address pool.
Preferably, the source MAC address and the mapping relationship between the source MAC address and the PVC-ID are maintained and managed by two levels of address pools in the broadband access device, specifically:
after receiving a section of MAC address distributed to the broadband access equipment by an operator, the core switching control management module maintains the section of MAC address by using a primary MAC address pool;
the core exchange control management module establishes PVC connection for each user on the broadband access equipment;
the core switching control management module is configured with a user PPPoA enabling switch; if PPPOA is enabled, the core exchange control management module allocates an MAC address from the primary MAC address pool and issues the MAC address to the XDSL processing module, and the XDSL processing module maintains the MAC address by using the secondary MAC address pool of the XDSL processing module; if PPPOA is disabled, the XDSL processing module deletes the MAC address from the secondary MAC address pool and recycles the MAC address to the primary MAC address pool by the core switching control management module.
Preferably, the method further comprises:
if the XDSL processing module receives a PPP session request initiated by a user, an MAC address is distributed for the user from the secondary MAC address pool as a source MAC address, the mapping relation between the PVC-ID and the source MAC address is established, and the mapping relation is reported to the core switching control management module;
if the XDSL processing module receives PPP session termination message sent by the user or the source MAC address is aged, the source MAC address is recycled to the secondary MAC address pool, the mapping relation between the PVC-ID and the source MAC address is deleted, and the mapping relation is reported to the core switching control management module.
Preferably, the encapsulating various messages sent by the user into PPPOE messages specifically includes: and packaging the PPP-LCP message, the PPP-NCP message and the PPP data message sent by the user into a PPPOE message.
According to another aspect of the present invention, there is provided an apparatus for implementing PPPOA function in a broadband access device, including a broadband access device, the broadband access device including an XDSL processing module and a core switching control management module;
the XDSL processing module is used for distributing a source MAC address for a user and reporting the source MAC address to the core exchange control management module after receiving a PPP session request initiated by the user; meanwhile, when receiving a PPP session termination message sent by a user or the source MAC address of the user is aged, informing a core switching control management module;
the core exchange control management module is used for finishing PPPOE discovery flow when a user initiates a PPP session request, extracting a destination MAC address and a session ID from a message responded by a broadband access server, and establishing a one-to-one corresponding table entry for maintenance of the PVC-ID, the source MAC address, the destination MAC address and the session ID of the user, so that the XDSL processing module encapsulates various messages sent by the user into PPPOE messages according to various parameters in the table entry, and the PPPOE service access of the user is finished; and simultaneously, when the user sends a PPP session termination message or the source MAC address is aged, sending a message to the broadband access server to terminate the PPP service access of the user.
Preferably, a first-level MAC address pool is provided in the core switching control management module, and is used to maintain a segment of MAC address allocated by an operator to the broadband access device;
and a secondary MAC address pool is arranged in the XDSL processing module and is used for maintaining the MAC address distributed by the core switching control management module and issued to the XDSL processing module.
Generally, compared with the prior art, the technical scheme of the invention has the following beneficial effects: in the scheme provided by the invention, the broadband access device does not need to upgrade an XDSL processing chip, but adds a PPPOE discovery phase software processing flow in a core exchange control management module, finishes the PPPOE discovery phase by the core exchange control management module agent, extracts a target MAC address and a session ID from a message, and performs PPPOE message encapsulation by the XDSL processing module according to the acquired source MAC address, the target MAC address and the session ID to finish the PPPOE service access of a user. Therefore, the PPPoE service access of the XDSL user can be realized only by adding the frame header according to the PPPOE message structure on the basis of the existing PPP message, the software is relatively simple, the chip hardware cost of the XDSL processing module is not required to be increased, and the XDSL processing module and the core exchange control management module are organically combined and mutually matched.
Drawings
Fig. 1 is a flowchart of a method for implementing PPPOA function in a broadband access device according to an embodiment of the present invention;
fig. 2 is an interaction flowchart of a core switching control management module agent completing a PPPOE discovery phase according to an embodiment of the present invention;
fig. 3 is an interaction flowchart of a broadband access device using two-level address pools for MAC address maintenance management according to an embodiment of the present invention;
fig. 4 is an interaction flowchart for implementing PPPOA function in a broadband access device according to an embodiment of the present invention;
fig. 5 is a block diagram of an apparatus for implementing PPPOA function in a broadband access device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Example 1
In order to solve the technical problem of realizing PPPoA service access by an XDSL user in the existing network environment, the embodiment of the invention provides a method for realizing the PPPoA function in broadband access equipment. The broadband access device mainly comprises an XDSL processing module and a core switching control management module, wherein the XDSL processing module can be called an XDSL service single disk, and the core switching control management module can be called a master control disk. Referring to fig. 1, the method provided by the embodiment of the present invention mainly includes the following steps:
When a user wants to realize the PPPoA function in the broadband access equipment, a PPP session request is initiated, namely a PPPoA service flow is initiated; after receiving PPP session request initiated by the user, XDSL processing module can allocate a MAC address for the user as source MAC address from MAC address pool maintained by the local disk, and call interrupt processing function to inform the core exchange control management module through master-slave communication protocol.
In the embodiment of the present invention, the broadband access device does not need to upgrade an XDSL processing chip, but completes the PPPOE discovery phase by adding a PPPOE discovery phase software processing procedure to the core switching control management module. With reference to fig. 2, the specific process is as follows:
1) after the core exchange control management module receives the message reported by the XDSL processing module through a master-slave communication protocol, initiating a PPPOE discovery process by an agent;
2) the core exchange control management module carries out message interaction with the upstream broadband access server, and the agent completes the PPPOE discovery process. The method comprises the following specific steps: firstly, the core switching control management module broadcasts and sends a source MAC address group PADI (PPPOE Active Discovery Initiation) message allocated by the user to a broadband access server, wherein the broadcast address is a destination MAC address; secondly, after receiving the PADI message, the broadband access server responds a PADO (PPPOE Active Discovery Offer, that is, a PPPOE Active Discovery service) message to the core switching control management module; thirdly, after receiving the PADO message, the core switching control management module groups a PADR (PPPOE Active Discovery Request) message according to the source MAC address allocated by the user, and then sends the PADR message to the broadband access server; fourthly, after receiving the PADR message, the broadband access server responds a PADS (PPPOE Active Discovery Session-configuration) message to the core switching control management module.
3) And the core switching control management module extracts a destination MAC address and a session ID from the PADS message responded by the broadband access server through message analysis.
4) The core exchange control management module establishes one-to-one correspondence table items of the PVC-ID, the source MAC address, the destination MAC address and the session ID of the user and sends the table items to the XDSL processing module. The PVC-ID is created by operation and maintenance personnel in the core switching control management module when the service is opened, one user corresponds to one PVC-ID, and the number of PVC-IDs created by the operation and maintenance personnel in the core switching control management module is the same as the number of PVC-IDs created by the operation and maintenance personnel in the core switching control management module. In the present invention, both the core switching control management module and the XDSL processing module need to include this table entry of the mapping relationship between the PVC-ID, the source MAC address, the destination MAC address, and the session ID; in order to ensure the consistency of the table entries at the two modules, the core switching control management module establishes a table entry, maintains (including adding and deleting) the table entry, and sends the established table entry to the XDSL processing module. When the mapping relation in the table entry needs to be added or deleted, the core switching control management module modifies the table entry and then issues the modified table entry to the XDSL processing module, so that the table entries at the two modules are always ensured to be consistent.
5) And the XDSL processing module writes the table entry content into the hardware driving table entry of the XDSL processing chip.
The XDSL processing module directly encapsulates PPP-LCP messages, PPP-NCP messages and PPP data messages sent by users into PPPOE messages according to the parameters written into the hardware drive table entry of the XDSL processing chip. The LCP mainly completes PPP authentication, including user identity password authentication, data transmission message MTU value authentication, data compression mode authentication and the like; the NCP mainly completes dynamic allocation of network addresses, and allocates a source IP address, a subnet mask, and a default gateway address to each user.
Further, when the XDSL processing module receives a PPP session termination message (i.e., LCP configuration termination) sent by the user, or the source MAC address of the user is aged, the XDSL processing module notifies the core switching control management module, and the core switching control management module sends a PADT (PPPOE Active Discovery termination) message to an upstream broadband access server to Terminate the PPP service access of the user.
In the above-mentioned solution provided in the embodiment of the present invention, the broadband access device does not need to upgrade the XDSL processing chip, but adds a PPPOE discovery phase software processing procedure in the core switching control management module, and the core switching control management module completes the PPP discovery phase by proxy, and extracts the destination MAC address and the session ID from the packet, and the XDSL processing module performs PPPOE packet encapsulation according to the obtained source MAC address, the destination MAC address, and the session ID, thereby completing the PPP service access of the user. Therefore, the method and the device can realize PPPoA service access of the XDSL user only by adding the frame header on the basis of the existing PPP message according to the PPPOE message structure, have relatively simple software, do not need to increase the chip hardware cost of the XDSL processing module, and organically combine and mutually cooperate the XDSL processing module and the core exchange control management module, and have simple configuration operation.
Example 2
In the PPPoA service access function provided by the embodiment of the invention, a user PVC-ID and a source MAC address are distributed to each user through service configuration, and a destination MAC address is obtained through protocol message interaction in a PPPOE discovery phase between a core switching control management module and a broadband access server. And the source MAC address and the mapping relation between the source MAC address and the PVC-ID are maintained and managed through two levels of address pools in the broadband access equipment.
The two-stage address pool comprises a first-stage MAC address pool and a second-stage MAC address pool, the core exchange control management module carries out maintenance management through the first-stage MAC address pool, and the XDSL processing module carries out maintenance management through the second-stage MAC address pool. The MAC addresses in the two address pools support the recovery function, and the MAC address which is not used by a certain user can be recovered for other users to use. In addition, the address pool is not allowed to be modified, only addition and deletion are allowed, and MAC addresses in different address pools cannot be mutually overlapped.
Referring to fig. 3, the process of performing MAC address maintenance management using two levels of address pools specifically includes the following steps:
1) and after receiving a section of MAC address distributed to the broadband access equipment by an operator, the core switching control management module maintains the section of MAC address by using a primary MAC address pool. An operator may allocate a segment of MAC address to each broadband access device, for example, allocate 255 MAC addresses, specifically 00-0 a-23-32-21-01-00-0 a-23-32-21-FF, as a source MAC address pool of the device user, that is, initialization of the primary MAC address pool.
2) The core exchange control management module establishes PVC connection for each user on the broadband access equipment and sends the PVC connection to the XDSL processing module through a master-slave communication protocol; wherein each user corresponds to a PVC-ID.
3) The core switching control management module configures a user PPPoA enabling switch:
if the PPPOA of the user is enabled, the core exchange control management module allocates an MAC address from the primary MAC address pool based on the PVC-ID and issues the MAC address to the XDSL processing module, and the XDSL processing module maintains the MAC address by using the secondary MAC address pool of the XDSL processing module;
if the user PPPOA is disabled, the XDSL processing module deletes the MAC address from its secondary MAC address pool and recycles the MAC address to the primary MAC address pool by the core switching control management module, and the MAC address can be reallocated to other XDSL processing modules for use.
4) If the XDSL processing module receives a PPP session request initiated by a user, an MAC address is distributed for the user from the secondary MAC address pool as a source MAC address based on the PVC-ID, the mapping relation between the PVC-ID and the source MAC address is established, and the mapping relation is reported to the core exchange control management module through a master-slave communication protocol.
If the XDSL processing module receives PPP session termination message sent by the user or the source MAC address is aged, the source MAC address is recycled to the secondary MAC address pool, the mapping relation between the PVC-ID and the source MAC address is deleted, and the mapping relation is reported to the core exchange control management module through a master-slave communication protocol.
In the conventional scheme, the MAC address is usually maintained on the master control disk, but if the MAC address is maintained only on the master control disk, synchronization needs to be performed when the dual master controllers and the standby controllers are switched, and the master and standby synchronization software is complex and is prone to errors. In the above-mentioned scheme provided by the embodiment of the present invention, a two-stage MAC address pool maintenance mechanism is adopted, the first-stage MAC address pool of the master control panel only needs to be associated with PPPOA enabling configuration, and the second-stage MAC address pool of the XDSL service single panel maintains the MAC address change caused by the PPPOA state change.
Example 3
With reference to fig. 4, an embodiment of the present invention further provides a specific implementation manner for implementing a PPPOA function in a broadband access device, where the implementation process is as follows:
1) the operator distributes a section of MAC address for each broadband access device, and the broadband access device carries out maintenance and management through the two-stage address pool after receiving the MAC address distributed by the operator for the broadband access device. Reference may be made specifically to example 2:
after receiving the MAC address distributed to the broadband access equipment by the operator, the core switching control management module maintains the MAC address by utilizing a primary MAC address pool, wherein the primary MAC address pool is also a source MAC address pool of the equipment user; then said core exchange control management module will create PVC connection for each user on the broadband access device, when the user PPPOA is enabled, said core exchange control management module allocates a MAC address from its primary MAC address pool and sends it to XDSL processing module, said XDSL processing module uses its secondary MAC address pool to maintain the MAC address.
2) The user initiates a PPP session request, and the broadband access device distributes a source MAC address for the user after receiving the request. Specifically, after receiving a PPP session request initiated by a user, the XDSL processing module allocates an MAC address for the user from its secondary MAC address pool as a source MAC address, and reports the source MAC address to the core switching control management module.
3) The broadband access device agent initiates a PPPOE discovery flow and completes the PPPOE discovery flow through message interaction with the broadband access server. Reference may be made specifically to example 2:
the core switching control management module sends a PPPOE discovery flow after receiving the message reported by the XDSL processing module, then sends a source MAC address group PADI message distributed by the user to a broadband access server in a broadcast mode, the broadband access server then responds the PADO message to the core switching control management module, then the core switching control management module sends the source MAC address group PADR message distributed by the user to the broadband access server, and the broadband access server then responds the PADS message to the core switching control management module; the PADS message contains the destination MAC address and the session ID.
4) The core exchange control management module in the broadband access device extracts the destination MAC address and the session ID from the PADS message responded by the broadband access server, establishes and maintains the one-to-one corresponding table items among the PVC-ID, the source MAC address, the destination MAC address and the session ID of the user, and simultaneously issues the table items to the XDSL processing module, thereby ensuring that the two modules have the same table items.
5) When a user sends a PPP-LCP message to the broadband access equipment, the broadband access equipment fills a source MAC address, a target MAC address and a session ID into a frame header of the PPP-LCP message to form a PPPOE message in an Ethernet frame format and sends the PPPOE message to the broadband access server.
After receiving the PPPOE message in the Ethernet frame format, the broadband access server returns an LCP configuration confirmation message to the broadband access equipment, which indicates that PPP authentication is passed, and then the broadband access equipment feeds back the PPP configuration confirmation message to the user to complete PPP service access of the user.
6) When a user sends a PPP-NCP message to the broadband access equipment, the broadband access equipment fills a source MAC address, a target MAC address and a session ID into a frame header of the PPP-NCP message to form a PPPOE message in an Ethernet frame format and sends the PPPOE message to the broadband access server.
After receiving the PPPOE message in the Ethernet frame format, the broadband access server returns an NCP confirmation message to the broadband access device, allocates a source IP address to the user, and feeds back the source IP address to the user by the broadband access device to complete PPP service access of the user.
7) When a user sends a PPP data message to the broadband access equipment, the broadband access equipment fills a source MAC address, a destination MAC address and a session ID into a frame header of the PPP data message to form a PPPOE message in an Ethernet frame format and sends the PPPOE message to the broadband access server.
After receiving the PPPOE message in the Ethernet frame format, the broadband access server returns a PPP data confirmation message to the broadband access device, and the PPP data confirmation message is fed back to the user by the broadband access device, so that the PPP service access of the user is completed.
In the method provided by the embodiment of the invention, the broadband access device does not need to upgrade an XDSL processing chip, but adds a PPPOE discovery phase software processing flow in a core exchange control management module, completes a PPPOE discovery phase by a core exchange control management module proxy, only needs to add a frame header on the basis of the existing PPPOE message according to a PPPOE message structure, and can realize PPPOA service access of an XDSL user through organic combination and mutual cooperation of the XDSL processing module and the core exchange control management module, and the configuration operation is simple. In addition, a two-stage MAC address pool maintenance mechanism is adopted, so that MAC address resources are saved, the MAC address maintenance performance is improved, the main/standby switching state change synchronization flow of the broadband access equipment under the condition of double main control disks is simplified, and the maintenance is more convenient.
Example 4
On the basis of the foregoing embodiments 1 to 3, an embodiment of the present invention provides an apparatus for implementing a PPPOA function in a broadband access device, which can be used to implement the methods in embodiments 1 to 3. As shown in fig. 5, the apparatus provided in the embodiment of the present invention mainly includes a broadband access device, which in turn mainly includes an XDSL processing module and a core switching control management module.
The XDSL processing module can respectively carry out information interaction with the core exchange control management module and a user. After receiving PPP session request initiated by user, XDSL processing module distributes a source MAC address for the user and reports it to the core exchange control management module through master-slave communication protocol; and simultaneously, when receiving a PPP session termination message sent by a user or the source MAC address of the user is aged, the XDSL processing module reports and informs the core switching control management module through a master-slave communication protocol.
The core switching control management module is used for finishing PPPOE discovery flow when a user initiates a PPP session request, extracting a destination MAC address and a session ID from a message responded by a broadband access server, establishing a one-to-one correspondence table entry for maintaining the PVC-ID, the source MAC address, the destination MAC address and the session ID of the user, and sending the table entry to the XDSL processing module, so that the XDSL processing module encapsulates various messages sent by the user into PPPOE messages according to various parameters in the table entry, and the PPPOE service access of the user is finished; and simultaneously, when the user sends a PPP session termination message or the source MAC address is aged, sending a message to the broadband access server to terminate the PPP service access of the user.
The function description of the proxy PPPOE discovery procedure of the core switching control management module is specifically as follows: 1) after the core exchange control management module receives the message reported by the XDSL processing module through a master-slave communication protocol, initiating a PPPOE discovery process by an agent; 2) the core switching control management module broadcasts and sends a PADI message to the broadband access server according to a source MAC address group PADI message distributed by the user; after receiving the PADI message, the broadband access server responds the PADO message to the core switching control management module; after receiving the PADO message, the core switching control management module sends the PADR message to the broadband access server according to the source MAC address group PADR message distributed by the user; and after receiving the PADR message, the broadband access server responds the PADS message to the core switching control management module. 3) The core switching control management module extracts a destination MAC address and a session ID from the PADS message responded by the broadband access server, establishes one-to-one corresponding table entry for the PVC-ID, the source MAC address, the destination MAC address and the session ID of a user, and sends the table entry to the XDSL processing module so as to ensure that the core switching control management module and the XDSL processing module have the same table entry.
Furthermore, a primary MAC address pool is arranged in the core switching control management module, and is used for maintaining a segment of MAC address allocated by an operator to the broadband access device; and a secondary MAC address pool is arranged in the XDSL processing module and is used for maintaining the MAC address distributed by the core switching control management module and issued to the XDSL processing module. The functional description of the core switching control management module and the XDSL processing module using two-level address pools to perform MAC address maintenance management may refer to embodiment 2, which is as follows:
1) and after receiving a section of MAC address distributed to the broadband access equipment by an operator, the core switching control management module maintains the section of MAC address by using a primary MAC address pool.
2) The core exchange control management module establishes PVC connection for each user on the broadband access equipment and sends the PVC connection to the XDSL processing module through a master-slave communication protocol; wherein each user creating a PVC connection corresponds to a PVC-ID.
3) The core switching control management module configures a user PPPoA enabling switch: if the PPPOA of the user is enabled, the core exchange control management module allocates an MAC address from the primary MAC address pool based on the PVC-ID and issues the MAC address to the XDSL processing module, and the XDSL processing module maintains the MAC address by using the secondary MAC address pool of the XDSL processing module; if the user PPPOA is disabled, the XDSL processing module deletes the MAC address from its secondary MAC address pool and recycles the MAC address to the primary MAC address pool by the core switching control management module, and the MAC address can be reallocated to other XDSL processing modules for use.
4) If the XDSL processing module receives a PPP session request initiated by a user, an MAC address is distributed for the user from the secondary MAC address pool as a source MAC address based on the PVC-ID, the mapping relation between the PVC-ID and the source MAC address is established, and the mapping relation is reported to the core exchange control management module through a master-slave communication protocol. When the core exchange control management module finishes PPPOE discovery phase through proxy to obtain destination MAC and session ID from message, the destination MAC address and session ID are sent to the XDSL processing module, and the XDSL processing module maintains mapping relation among source MAC address, destination MAC address, PVC-ID and session ID by using a secondary MAC address pool.
If the XDSL processing module receives PPP session termination message sent by the user or the source MAC address is aged, the source MAC address is recycled to the secondary MAC address pool, the mapping relation between the PVC-ID and the source MAC address is deleted, and the mapping relation is reported to the core exchange control management module through a master-slave communication protocol.
In the above apparatus provided in the embodiment of the present invention, the broadband access device does not need to upgrade the XDSL processing chip, but adds the PPPOE discovery phase software processing procedure in the core switching control management module, and the core switching control management module completes the PPP discovery phase by proxy, and the XDSL processing module and the core switching control management module are organically combined and matched with each other, so that the PPPOA service access of the XDSL user can be realized, and the configuration operation is simple. In addition, a two-stage MAC address pool maintenance mechanism is adopted in the broadband access equipment, so that MAC address resources are saved, the MAC address maintenance performance is improved, the main/standby switching state change synchronization flow of the broadband access equipment under the condition of double main control disks is simplified, and the maintenance is more convenient.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method for implementing PPPOA function in a broadband access device, wherein the broadband access device includes an XDSL processing module and a core switching control management module, the method comprising:
after receiving PPP session request initiated by user, XDSL processing module allocates a source MAC address for the user and reports it to core exchange control management module;
the core exchange control management module agent completes PPPOE discovery process, extracts destination MAC address and session ID from the message responded by the broadband access server, and establishes one-to-one correspondence table entry for maintaining the PVC-ID, source MAC address, destination MAC address and session ID of the user;
the XDSL processing module encapsulates various messages sent by the user into PPPOE messages according to various parameters in the table entry, and finishes PPP service access of the user;
the PVC-ID is created in the core switching control management module when the service is opened, and one user corresponds to one PVC-ID.
2. The method for implementing PPPOA functionality in a broadband access device according to claim 1, wherein said method further comprises:
when the XDSL processing module receives PPP session termination message sent by the user or the source MAC address of the user is aged, the XDSL processing module informs the core exchange control management module, and the core exchange control management module sends PADT message to the broadband access server to terminate the PPP service access of the user.
3. The method of claim 1, wherein the PPPOA function is implemented in the broadband access device, the PPPOA discovery procedure is performed by the core switching control management module proxy, the destination MAC address and the session ID are extracted from a message responded by the broadband access server, and a one-to-one correspondence table entry is established among the PVC-ID, the source MAC address, the destination MAC address, and the session ID of the user for maintenance, which specifically includes:
after the core exchange control management module receives the message reported by the XDSL processing module, initiating a PPPOE discovery process by an agent;
the core exchange control management module carries out message interaction with an upstream broadband access server, and the agent completes a PPPOE discovery process;
the core exchange control management module extracts a destination MAC address and a session ID from a message responded by the broadband access server;
the core exchange control management module establishes one-to-one correspondence table items of the PVC-ID, the source MAC address, the destination MAC address and the session ID of the user and sends the table items to the XDSL processing module;
and the XDSL processing module writes the table entry content into the hardware driving table entry of the XDSL processing chip.
4. The method of claim 3, wherein the core switching control management module performs packet interaction with an upstream broadband access server to perform a PPPOE discovery procedure by proxy, and the method specifically includes:
the core switching control management module broadcasts and sends a PADI message to the broadband access server;
after receiving the PADI message, the broadband access server responds the PADO message to the core switching control management module;
after receiving the PADO message, the core switching control management module sends a PADR message to the broadband access server;
after receiving the PADR message, the broadband access server responds the PADS message to the core switching control management module;
and the destination MAC address and the session ID are acquired through the PADS message.
5. The method of claim 1, wherein the source MAC address and the mapping relationship between the source MAC address and the PVC-ID are maintained and managed by a two-level address pool in the broadband access device;
the two-stage address pool comprises a first-stage MAC address pool and a second-stage MAC address pool, the core exchange control management module carries out maintenance management through the first-stage MAC address pool, and the XDSL processing module carries out maintenance management through the second-stage MAC address pool.
6. The method of claim 5, wherein the source MAC address and the mapping relationship between the source MAC address and the PVC-ID are maintained and managed through a two-level address pool in the broadband access device, specifically:
after receiving a section of MAC address distributed to the broadband access equipment by an operator, the core switching control management module maintains the section of MAC address by using a primary MAC address pool;
the core exchange control management module establishes PVC connection for each user on the broadband access equipment;
the core switching control management module is configured with a user PPPoA enabling switch; if PPPOA is enabled, the core exchange control management module allocates an MAC address from the primary MAC address pool and issues the MAC address to the XDSL processing module, and the XDSL processing module maintains the MAC address by using the secondary MAC address pool of the XDSL processing module; if PPPOA is disabled, the XDSL processing module deletes the MAC address from the secondary MAC address pool and recycles the MAC address to the primary MAC address pool by the core switching control management module.
7. The method of implementing PPPOA functionality in a broadband access device according to claim 6, wherein said method further comprises:
if the XDSL processing module receives a PPP session request initiated by a user, an MAC address is distributed for the user from the secondary MAC address pool as a source MAC address, the mapping relation between the PVC-ID and the source MAC address is established, and the mapping relation is reported to the core switching control management module;
if the XDSL processing module receives PPP session termination message sent by the user or the source MAC address is aged, the source MAC address is recycled to the secondary MAC address pool, the mapping relation between the PVC-ID and the source MAC address is deleted, and the mapping relation is reported to the core switching control management module.
8. The method for implementing PPPOA in broadband access equipment according to any of claims 1-7, wherein the encapsulating various messages sent by the user into PPPOE messages specifically includes: and packaging the PPP-LCP message, the PPP-NCP message and the PPP data message sent by the user into a PPPOE message.
9. An apparatus for implementing PPPoA function in broadband access equipment, which is characterized in that the apparatus comprises the broadband access equipment, the broadband access equipment comprises an XDSL processing module and a core switching control management module;
the XDSL processing module is used for distributing a source MAC address for a user and reporting the source MAC address to the core exchange control management module after receiving a PPP session request initiated by the user; meanwhile, when receiving a PPP session termination message sent by a user or the source MAC address of the user is aged, informing a core switching control management module;
the core exchange control management module is used for finishing PPPOE discovery flow when a user initiates a PPP session request, extracting a destination MAC address and a session ID from a message responded by a broadband access server, and establishing a one-to-one corresponding table entry for maintenance of the PVC-ID, the source MAC address, the destination MAC address and the session ID of the user, so that the XDSL processing module encapsulates various messages sent by the user into PPPOE messages according to various parameters in the table entry, and the PPPOE service access of the user is finished; and simultaneously, when the user sends a PPP session termination message or the source MAC address is aged, sending a message to the broadband access server to terminate the PPP service access of the user.
10. The apparatus of claim 9, wherein a primary MAC address pool is disposed in the core switching control management module, and is configured to maintain a segment of MAC address allocated by an operator to the broadband access device;
and a secondary MAC address pool is arranged in the XDSL processing module and is used for maintaining the MAC address distributed by the core switching control management module and issued to the XDSL processing module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110004991.0A CN112751735B (en) | 2021-01-04 | 2021-01-04 | Method and device for realizing PPPoA function in broadband access equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110004991.0A CN112751735B (en) | 2021-01-04 | 2021-01-04 | Method and device for realizing PPPoA function in broadband access equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112751735A CN112751735A (en) | 2021-05-04 |
CN112751735B true CN112751735B (en) | 2022-03-25 |
Family
ID=75649832
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110004991.0A Active CN112751735B (en) | 2021-01-04 | 2021-01-04 | Method and device for realizing PPPoA function in broadband access equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112751735B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1674579A (en) * | 2004-07-20 | 2005-09-28 | 华为技术有限公司 | Method for supporting PPPoA on wideband switch-in equipment |
CN101001163A (en) * | 2006-01-13 | 2007-07-18 | 日立通讯技术株式会社 | Multicast packet control apparatus |
CN101009713A (en) * | 2007-01-08 | 2007-08-01 | 华为技术有限公司 | A broadband access method and device |
CN101060458A (en) * | 2003-07-25 | 2007-10-24 | 华为技术有限公司 | A method for realizing the PPPoA to PPPoE conversion in the network access equipment |
CN101075972A (en) * | 2007-07-18 | 2007-11-21 | 中兴通讯股份有限公司 | Method, system and apparatus for accessing digital user line multiplexer |
EP0981242B1 (en) * | 1998-08-17 | 2008-10-08 | International Business Machines Corporation | Shared asymmetric digital subscriber line modem |
CN102067527A (en) * | 2008-08-20 | 2011-05-18 | 上海贝尔股份有限公司 | A method and device for assisting the terminal device operation within the network in access network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2296213C (en) * | 2000-01-07 | 2009-04-14 | Sedona Networks Corporation | Distributed subscriber management |
-
2021
- 2021-01-04 CN CN202110004991.0A patent/CN112751735B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0981242B1 (en) * | 1998-08-17 | 2008-10-08 | International Business Machines Corporation | Shared asymmetric digital subscriber line modem |
CN101060458A (en) * | 2003-07-25 | 2007-10-24 | 华为技术有限公司 | A method for realizing the PPPoA to PPPoE conversion in the network access equipment |
CN1674579A (en) * | 2004-07-20 | 2005-09-28 | 华为技术有限公司 | Method for supporting PPPoA on wideband switch-in equipment |
CN101001163A (en) * | 2006-01-13 | 2007-07-18 | 日立通讯技术株式会社 | Multicast packet control apparatus |
CN101009713A (en) * | 2007-01-08 | 2007-08-01 | 华为技术有限公司 | A broadband access method and device |
CN101075972A (en) * | 2007-07-18 | 2007-11-21 | 中兴通讯股份有限公司 | Method, system and apparatus for accessing digital user line multiplexer |
CN102067527A (en) * | 2008-08-20 | 2011-05-18 | 上海贝尔股份有限公司 | A method and device for assisting the terminal device operation within the network in access network |
Non-Patent Citations (1)
Title |
---|
宽带接入网络的安全;王德强;《中兴通讯技术》;20061025(第05期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112751735A (en) | 2021-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8923284B2 (en) | Method and system of providing multi-user access to a packet switched network | |
JP3917290B2 (en) | SVC access method in terminating station side equipment | |
CN100583773C (en) | Method and device for controlling data link layer elements with network layer elements | |
EP1076955B1 (en) | Point-to-point protocol with a signaling channel | |
US6097720A (en) | Enabling multicast distribution efficiencies in a dialup access environment | |
US6301229B1 (en) | Distribution of protocol processes from network elements to end stations | |
US7512688B2 (en) | PPPoE network system that can distribute connection requests from PPPoE client terminals to specific PPPoE servers | |
US20010030977A1 (en) | Proxy methods for IP address assignment and universal access mechanism | |
JP2019526983A (en) | Separation of control plane function and transfer plane function of broadband remote access server | |
WO2006007793A1 (en) | A method and apparatus supporting a pppoa terminal accessing | |
JPH1132059A (en) | High-speed internet access | |
WO2004105319A1 (en) | Broadband access method with great capacity and the system thereof | |
CN101212398A (en) | Access system and method | |
KR20010096627A (en) | ADSL Connecting Device and ADSL System using that | |
WO2008037212A1 (en) | An access terminal and a method for the terminal binding to the operator | |
KR20020051187A (en) | An ATM SAR module for a xDSL communication service chip | |
WO2009000126A1 (en) | Vdsl2 accessing device and service handing method thereof | |
JP4166609B2 (en) | Communication device | |
US8902889B2 (en) | Method, communication arrangement and communication device for transferring information | |
CN112751735B (en) | Method and device for realizing PPPoA function in broadband access equipment | |
CA2407266A1 (en) | Adsl access multiplexer connected to ethernet and adsl network system using the same | |
WO2007028338A1 (en) | A system for interconnecting the broadband wireless network and the wired network | |
CN100397834C (en) | Network for providing multi service application | |
CN108882065B (en) | System and method for realizing IPOA by card-inserted MSAN equipment | |
CN101030877B (en) | Method for realizing packet broadcasting service by point-to-point protocol |
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 |