WO2013159641A1 - 地址分配方法、设备和系统 - Google Patents
地址分配方法、设备和系统 Download PDFInfo
- Publication number
- WO2013159641A1 WO2013159641A1 PCT/CN2013/073855 CN2013073855W WO2013159641A1 WO 2013159641 A1 WO2013159641 A1 WO 2013159641A1 CN 2013073855 W CN2013073855 W CN 2013073855W WO 2013159641 A1 WO2013159641 A1 WO 2013159641A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- address
- bras
- public network
- network
- public
- Prior art date
Links
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
-
- 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/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- 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/5007—Internet protocol [IP] addresses
- H04L61/503—Internet protocol [IP] addresses using an authentication, authorisation and accounting [AAA] protocol, e.g. remote authentication dial-in user service [RADIUS] or Diameter
-
- 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/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/2514—Translation of Internet protocol [IP] addresses between local and global IP addresses
-
- 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/5053—Lease time; Renewal aspects
-
- 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
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/40—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
Definitions
- CGN Carrier Grade Net Address Translation
- NAT technology is a process of converting an IP address in an IP datagram header to another IP address, so that multiple private network IP addresses can share a public IP address.
- broadband Remote In the prior art, a broadband remote access server (Broadband Remote) is required in the network.
- the present invention provides an address allocation method, device, and system, which eliminates the need for terminal traffic transfer in the event of a CGN failure, shortens the terminal service recovery time of the BRAS CGN failure, and reduces the cost.
- an embodiment of the present invention provides an address allocation method, which is applicable to a network having a broadband remote access server BRAS, and the carrier-side network address translation CGN is provided on the BRAS, including:
- the BRAS detects a locally set CGN failure;
- the BRAS receives an access request sent by the terminal;
- the BRAS allocates a public network IP address to the terminal.
- the embodiment of the present invention provides another address allocation method, which is applicable to a network having a broadband remote access server (BRAS), and the BRAS is provided with a carrier-level network address translation (CGN), including: setting a device of the standby public address pool to receive at least An address allocation request sent by the BRAS, where the address allocation request carries the identification information of the BRAS;
- CGN carrier-level network address translation
- the device allocates, according to the identifier information of the BRAS, at least one public network protocol IP address for each of the BRASs in the standby public network address pool;
- the device returns an address assignment response to the at least one BRAS, the address assignment response carrying at least one public network internet protocol IP address.
- an embodiment of the present invention provides a broadband remote access server, where the carrier-level network address translation CGN is provided on the BRAS, including:
- a detecting unit configured to detect a locally-set carrier-level network address translation CGN fault
- a receiver configured to receive an access request sent by the terminal
- the processing unit is configured to allocate a public network IP address to the terminal.
- the embodiment of the present invention further provides a dynamic host setting protocol server, which is applicable to a network having a broadband remote access server BRAS, and the BRAS is provided with a carrier-level network address translation CGN, including:
- the backup public network address pool is used to store the backup public network IP address.
- a receiver configured to receive an address allocation request sent by the at least one BRAS, where the address allocation request carries the identifier information of the BRAS;
- a processing unit configured to allocate, according to the identifier information of the BRAS, at least one public network protocol IP address for each of the BRASs in the standby public network address pool;
- a sender configured to return an address allocation response to the at least one BRAS, where the address allocation response carries at least one public network internet protocol IP address.
- the embodiment of the present invention further provides a remote user dial-up authentication server, which is applicable to a network having a broadband remote access server BRAS, and the carrier-level network address translation CGN is provided on the BRAS, including:
- the backup public network address pool is used to store the backup public network IP address.
- a receiver configured to receive an address allocation request sent by the at least one BRAS, where the address allocation request carries the identifier information of the BRAS;
- a processing unit configured to allocate, according to the identifier information of the BRAS, at least one public network protocol IP address for each of the BRASs in the standby public network address pool;
- a sender configured to return an address allocation response to the at least one BRAS, where the address allocation response carries at least one public network internet protocol IP address.
- the embodiment of the present invention further provides a broadband remote access server, which has a dynamic host setting protocol DHCP server function, and is applicable to a network having a broadband remote access server BRAS, where the BRAS is provided with a carrier-level network address.
- Convert CGN including:
- the backup public network address pool is used to store the backup public network IP address.
- a receiver configured to receive an address allocation request sent by the at least one BRAS, where the address allocation request carries the identifier information of the BRAS;
- a processing unit configured to allocate, according to the identifier information of the BRAS, at least one public network protocol IP address for each of the BRASs in the standby public network address pool;
- a sender configured to return an address allocation response to the at least one BRAS, where the address allocation response carries at least one public network internet protocol IP address.
- an embodiment of the present invention further provides an address allocation system, including: at least one broadband remote access server and a device for setting a backup public network address pool, where the BRAS is provided with a carrier-level network address translation CGN;
- the device is a dynamic host setting protocol server, or a remote user dial-up authentication server, or at least one broadband remote access server with a DHCP server function.
- the address allocation method, device, and system provided by the embodiment of the present invention, after detecting the CGN failure, the BRAS can directly allocate the public network IP address to the terminal after receiving the access request sent by the terminal, so that the terminal traffic transfer is not required when the CGN is faulty. , shorten the terminal service recovery time when the BRAS CGN fails, and reduce the cost.
- BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below, and obviously, in the following description The drawings are some embodiments of the present invention, and other drawings may be obtained from those of ordinary skill in the art without departing from the scope of the invention.
- 1 is a flowchart of an embodiment of an address allocation method according to the present invention
- FIG. 2 is a flowchart of still another embodiment of an address allocation method according to the present invention.
- FIG. 3 is a flowchart of another embodiment of an address allocation method provided by the present invention.
- FIG. 4 is a flowchart of another embodiment of an address allocation method provided by the present invention.
- FIG. 5 is a schematic structural diagram of an embodiment of a broadband remote access server according to the present invention
- FIG. 6 is a schematic structural diagram of another embodiment of a broadband remote access server according to the present invention
- FIG. 7 is a dynamic host setting protocol provided by the present invention
- FIG. 10 is a schematic structural diagram of an embodiment of a broadband remote access server provided by the present invention.
- FIG. 10 is an address provided by the present invention.
- FIG. 11 is a schematic structural diagram of another embodiment of an address allocation system according to the present invention;
- FIG. 12 is a schematic structural diagram of still another embodiment of an address allocation system according to the present invention.
- FIG. 1 is a flowchart of an embodiment of an address allocation method according to the present invention. As shown in FIG. 1, the method is applicable to a network having a broadband remote access server BRAS, and a carrier-class network address translation CGN is provided on the BRAS. Methods include:
- the BRAS detects a locally set carrier-grade network address translation CGN failure.
- the BRAS receives an access request sent by the terminal.
- the BRAS allocates a public network IP address to the terminal.
- the execution body of the above steps may be any BRAS in the network.
- a private network address pool is configured locally for the BRAS to allocate a private network IP address to the terminal.
- BRAS Support CGN capabilities, which can be achieved by inserting a CGN board or the like.
- a public network address pool is set in the CGN set on the BRAS. The CGN selects a public network IP address from the public network address pool to perform network address translation (NAT) on the private network IP address assigned by the BRAS to the terminal.
- NAT network address translation
- the BRAS can perform fault detection on the CGN. It should be noted that, for any terminal in the network, the BRAS detects a CGN failure, and before the terminal issues an access request, It can be after the terminal sends an access request.
- the access request sent by the terminal refers to a request sent by the terminal to the BRAS when the terminal dials up, and the access request is used to request the BRAS to allocate a public network IP address to the terminal, so that the terminal can access the network.
- the access request sent by the terminal can be sent through the Point to Point Protocol Over Ethernet (PPPoE) or through the Dynamic Host Configuration Protocol (DHCP).
- PPPoE Point to Point Protocol Over Ethernet
- DHCP Dynamic Host Configuration Protocol
- the BRAS receives the access request from the terminal.
- the CGN cannot perform NAT translation on the terminal. Therefore, in this implementation scenario, the BRAS receives the BRAS.
- the terminal may not be assigned a private network IP address, but the public network IP address may be directly assigned to the terminal.
- the BRAS if the BRAS has received an access request from the terminal before the BRAS detects the CGN failure, the BRAS allocates a private network IP address to the terminal in the local private address pool. If the BRAS detects a CGN failure, the BRAS may delete the user entry of the terminal from the BRAS, forcing the terminal to go offline, thereby triggering the terminal to re-issue the access request to the BRAS. After receiving the access request re-issued by the terminal, the BRAS may The terminal allocates a public network IP address.
- the standby public network address pool can be configured locally in each BRAS. After receiving the access request from the terminal, the BRAS can directly allocate the public network IP address to the terminal from the locally configured public network address pool.
- the standby public network address pool configured locally by each BRAS may be the same, so that when the CGNs in the two or more BRASs are simultaneously faulty, the address conflict may be caused, and an address conflict detection mechanism may be used to ensure that each The public network addresses used by the BRAS do not conflict.
- the address segment may be marked in the public address pool. How to mark the embodiment of the present invention is not specifically limited.
- 1 indicates that the device has assigned the IP address segment; 0 indicates that all BRASs are not assigned the address segment. ; 2 indicates that the other BRAS device has been assigned the IP address segment.
- the BRAS will first And sending an advertisement message, where the advertisement message carries the IP address segment to be allocated, and when the address conflict information fed back by other BRASs in the network is not received, the IP address segment is used, and the IP address segment is used in the public network address pool.
- the flag is set to 1.
- the other BRAS device marks the IP address segment in the public address pool where it is located as 2.
- the IP address segment needs to be released, it is also required to advertise the release of the IP address segment to other BRASs in the network.
- the protocol type of the specific advertisement message is not specifically limited in the embodiment of the present invention. For example, the Open Shortest Path First (OSPF) protocol or the Internal Border Gateway Protocol (ISP) may be adopted. ) Extension to achieve.
- OSPF Open Shortest Path First
- ISP Internal Border Gateway Protocol
- a remote standby public address pool can also be set in the network.
- the device uses the other BRAS as a backup to implement the backup public network address pool in the backup BRAS when the primary BRAS is faulty, thereby improving the reliability of the BRAS providing the backup public network address pool.
- the BRAS can be configured by software to implement its function as a DHCP server.
- the existing RADIUS server has a public network address pool.
- the RADIUS server is configured with a public network address pool. You can use the public address pool of the local RADIUS server in the BRAS.
- the device in the standby public address pool can provide a shared standby public address pool for at least two BRASs on the network.
- the public network IP address can be allocated to the BRAS, so that at least two BRASs in the network can be implemented, and the public network IP address can be realized when the CGN is faulty. shared.
- the BRAS After the BRAS receives the access request sent by the terminal, the BRAS can send an address allocation request to the device that sets the standby public address pool.
- the request carries the BRAS identification information.
- the device that sets the standby public address pool can allocate at least one public IP address to the BRAS.
- the identification information of the BRAS carried by the address allocation request may be implemented by using a specific identifier, or The source IP address in the request, that is, the IP address of the BRAS, can also be implemented by the address.
- the BRAS can communicate with the DHCP server or the BRAS with the DHCP server function. Since the existing DHCP protocol can only obtain one IP address each time an address allocation request is issued, in this implementation scenario, the BRAS can send a request to a terminal to the DHCP server or have DHCP. The BRAS of the server function sends an address allocation request. The DHCP server or the BRAS with the DHCP server function can assign a public IP address to the BRAS from the local standby public network address pool according to the BRAS identifier carried in the address allocation request. The address allocation response is returned to the BRAS, which can assign the public network IP address to the terminal.
- the BRAS may carry a public network IP address segment request identifier in the address allocation request, and request a public network IP address through the public network IP address segment request identifier.
- the DHCP server or the BRAS with the DHCP server function can assign a public network IP address and mask to the BRAS in the standby public network address pool according to the BRAS identifier and the public network IP address segment request identifier carried in the address allocation request.
- the public network IP address and the mask are returned to the BRAS by the address allocation response.
- the BRAS can obtain a public network IP address and a section corresponding to the mask according to the public network IP address and the mask. Public network IP address.
- the device that sets the standby public address pool is a RADIUS server.
- the BRAS after receiving the access request sent by the terminal, the BRAS sends an address allocation request to the RADIUS server.
- the RADIUS can allocate a public IP address to the BRAS according to the BRAS identifier carried in the address allocation request, and allocate the address in the address.
- the response carries the segment of the public network IP address back to the BRAS that issued the address allocation request.
- the BRAS can obtain the public IP address of the segment after receiving the access request sent by the terminal. Assign a public IP address to the terminal in the address.
- the BRAS can also advertise the aggregated routing information of the public network IP address.
- the BRAS can also revoke the public network address pool on the CGN. Routing information of the public network IP address.
- the BRAS can re-advertise the routing information of the public network IP address in the public network address pool of the CGN.
- the BRAS can assign the private network IP address to the terminal after receiving the access request from the terminal. Therefore, the BRAS can also revoke the aggregated routing information after the terminal switches to the private network IP address.
- the BRAS can directly allocate the public network IP address to the terminal after receiving the access request sent by the terminal, so that the terminal traffic is not required to be transferred when the CGN is faulty, and the BRAS configuration is not required. Back up the CGN, shorten the terminal service recovery time when the BRAS CGN fails, and reduce the cost.
- 2 is a flowchart of still another embodiment of an address allocation method according to the present invention. As shown in FIG. 2, the method is applicable to a network having a broadband remote access server BRAS, and a carrier-level network address translation CGN is provided on the BRAS. The method includes:
- the device that sets the standby public address pool receives the address allocation request sent by the at least one BRAS, where the address allocation request carries the BRAS identification information.
- the device allocates at least one public network protocol IP address for each BRAS in the standby public network address pool according to the BRAS identification information.
- the device returns a response to the at least one BRAS return address, and the address allocation response carries at least one public network protocol IP address.
- the execution subject of the above steps is the device that sets the standby public address pool.
- the device that sets the standby public address pool can be a DHCP server, or a BRAS with a DHCP server function in the network, or a RADIUS server.
- the device that sets the standby public address pool is two or more BRASs with the DHCP server function, you can set the standby public network address pool on each BRAS. You can use one BRAS as the master device. Other BRASs are used as backup devices to improve the reliability of the BRAS by using other backup devices to allocate public IP addresses when the primary device fails.
- the device that sets the standby public address pool can provide an alternate public address pool for any BRAS in the network. It can also provide a shared standby public address pool for any at least two BRASs in the network. When implementing CGN failure of any one or more BRASs in the network, from standby These BRASs in the public address pool allocate public IP addresses.
- the device that sets the standby public address pool can receive the address allocation request sent by the at least one BRAS. After receiving the address allocation request, the device that sets the standby public address pool can allocate the BRAS identifier carried in the request according to the address. The BRAS allocates at least one public IP address.
- the device that sets the standby public address pool is a DHCP server connected to the CR or a BRAS with a DHCP server function
- DHCP can be used between the BRAS and the DHCP server or the BRAS with the DHCP server function.
- Protocol communication since the existing DHCP protocol can only obtain one IP address each time an address allocation request is issued, in this implementation scenario, the DHCP server or the BRAS having the DHCP server function receives an address allocation request from the BRAS. Then, according to the identification information of the BRAS, a public network IP address is reserved for the BRAS in the local standby public address pool, and the public network IP address is carried in the address allocation response.
- the BRAS may carry a public network IP address segment request identifier in the address allocation request, and request a public network IP address through the public network IP address segment request identifier.
- the BRAS identifier and the public network IP address segment request identifier carried in the address allocation request may be allocated, and a public network IP is allocated to the BRAS in the standby public network address pool.
- Address, and the mask assigned to the public network IP address and then return the public network IP address and mask to the BRAS through the address allocation response, so that the BRAS can obtain a public network according to the public network IP address and the mask.
- the RADIUS server can receive the BRAS identifier in the request according to the address allocation request.
- the BRAS allocates a segment of the public network IP address, and carries the segment of the public network IP address in the address allocation response to the BRAS that issues the address allocation request.
- a standby public network address pool can be set in the network.
- the standby public network address pool can be set on the DHCP server, or can be set on the BRAS with the DHCP server function, and can also be set in the RADIUS. On the server.
- the BRAS can go to the device in the standby public address pool.
- the IP address of the public network is obtained.
- the public network IP address obtained from the public network address pool is used to assign a public IP address to the terminal. Therefore, after the CGN fault occurs on any BRAS in the network, the BRAS can obtain the public network IP address from the device that sets the standby public network address pool, and directly allocate the public network IP address to the terminal from the obtained public network IP address.
- CGN failure it is not necessary to perform terminal traffic transfer, shortening the terminal service recovery time of the BRAS CGN failure, and reducing the cost.
- FIG. 3 is a flowchart of another embodiment of an address allocation method according to the present invention.
- a BRAS obtains a public network IP address from a DHCP server that sets a backup public address pool as an example.
- the process of the address allocation method provided by the embodiment of the present invention is described in detail.
- the metropolitan area network includes multiple BRASs, and each CRAS is inserted with a CGN board to support CGN features.
- the CRs connected to these BRASs are connected to the DHCP server as a remote standby public address pool shared by these BRASs.
- the DHCP server involved in this embodiment can also be implemented by a BRAS having a DHCP server function in the metropolitan area network.
- the BRAS can be configured by software to implement the DHCP server function.
- the BRAS in order to improve the reliability of the BRAS as a DHCP server, it is usually possible to set up two or more BRASs with a DHCP server function, one of the BRASs as a master device, and the other BRASs as backup devices, so that when the master device fails, Use another backup BRAS to allocate the alternate public IP address.
- Any BRAS in the metropolitan area network can configure both the public address pool and the private network address pool in one domain.
- the public address pool is the standby public address pool set on the DHCP server.
- the method specifically includes:
- the terminal sends an access request to the BRAS.
- the BRAS allocates a private network IP address to the terminal in the local private address pool.
- the BRAS detects a CGN failure.
- the BRAS deletes the user entry of the terminal on the BRAS, and forces the terminal user to go offline.
- the BRAS deletes the user entry of the terminal, which causes the point-to-point (PPP) heartbeat detection between the terminal and the BRAS to be lost, and the PPP connection is interrupted.
- PPP point-to-point
- Ethernet bearer IP protocol Internet Protocol over
- IPoE Internet Protocol over
- the terminal resends the access request to the BRAS.
- the terminal uses the PPPoE access mode
- the user can usually automatically redial the number, that is, the terminal can automatically resend the access request to the BRAS.
- the terminal uses the IPoE access mode, the user usually needs to manually redial.
- the BRAS sends an address allocation request to the DHCP server, where the address allocation request carries the BRAS identification information and the public network IP address segment request identifier, and the public network IP address segment request identifier is used to request to acquire a public network IP address.
- the DHCP server allocates a public network IP address and a mask to each BRAS in the standby public network address pool according to the BRAS identification information.
- the DHCP server returns an address allocation response to the BRAS, where the address allocation response carries the assigned public network IP address and mask.
- the BRAS obtains a corresponding public network IP address according to the public network IP address and the mask.
- the BRAS advertises the aggregated routing information of the public network IP address corresponding to the public network IP address and the mask.
- the public network IP address assigned by the DHCP server to each BRAS can be reserved in the form of a public network IP address plus a mask.
- the DHCP server may carry the public network IP address and the mask allocated to the BRAS in the address allocation response, or may carry the first address and the last address of the address segment in the address allocation response, or may also carry in the address allocation response.
- the detailed address list can be used.
- the BRAS When the BRAS communicates with the DHCP server using the DHCP protocol, the BRAS sends an address allocation request to the DHCP server as a DHCP address allocation request.
- the BRAS and the DHCP server are Layer 3 networks
- the BRAS acting as the client needs to use the DHCP relay to obtain the public IP address from the DHCP server.
- the BRAS requires the built-in DHCP Relay function as a repeater to obtain the public IP address from the DHCP server.
- the BRAS device after receiving the access request sent by the terminal, sends a DHCP relay packet as a DHCP relay packet to the DHCP server. Among them, if the terminal uses the PPPoE network IP address.
- BRASs with DHCP server function to set up the remote public
- the BRAS can send DHCP relay packets to other standby BRASs to obtain the public IP address.
- the DHCP relay protocol is used by the BRAS as the DHCP relay agent to send the address to the remote DHCP server.
- the DHCP relay protocol can only obtain an IP address. After the BRAS obtains the public IP address, the BRAS needs to advertise the public network. The routing information of the IP address. However, if the BRAS advertises a 32-bit route according to a single public IP address, the amount of routing information to be advertised is unacceptable to the operator. Therefore, the DHCP protocol can be modified to enable the DHCP server to reserve a public IP address for a BRAS.
- the public network IP address segment request identifier may be carried in the address allocation request, where the public network IP address segment request identifier is used to request to acquire a public network IP address.
- the DHCP relay request initiated by the BRAS carries Option 82 information, which is the location information of the BRAS device, and can be used to uniquely identify a BRAS, which is the BRAS involved in the embodiment of the present invention. Identification information.
- the sub-optionl30 may be carried in the Option 82 information, and the sub-optionl30 indicates that the request for acquiring a public IP address is obtained.
- the DHCP server can allocate a public IP address to the BRAS from the local public address pool.
- the Value is the mask length of the public network IP address assigned by the DHCP server to the BRAS.
- the network segment with the public network IP address and mask is reserved for the BRAS.
- the BRAS device can use the public network IP address plus the masked party routing information as the user route for advertising.
- the Option 55 information may be inserted or modified in the DHCP relay request initiated by the BRAS, and the Option 55 information is used to obtain a public network IP address.
- the Option of the application may be 109. That is, after receiving the DHCP relay request, the DHCP server may carry Optionl09 information in the address allocation response.
- the Value is the mask length of the public network IP address assigned by the DHCP server to the BRAS.
- the public network IP address plus the masked network segment is reserved for the BRAS.
- the BRAS device can use the public network IP address plus the masked party routing information as the user route for advertising.
- the BRAS allocates a public network IP address to the terminal in the obtained public network IP address. It should be noted that, in the implementation scenario of the Layer 3 network between the BRAS and the DHCP server, when the subsequent terminals dial-up connection, that is, when the BRAS receives the access request sent by other terminals, the BRAS can directly obtain the public IP obtained from the terminal. The IP address of the public network is assigned to the terminal in the address segment. If the terminal accesses the PPPoE mode, the BRAS can also provide the IP address of the public network to the IPCP.
- the BRAS If the BRAS receives the access request from the terminal after the public network IP address segment has been used, the BRAS sends an address allocation request to the DHCP server again, that is, the process of sending the DHCP relay request is started again, and the new public network address is obtained. The segment, so reciprocating, until the public network IP address is assigned to all terminals that issue the access request.
- the BRAS when the subsequent terminals dial the connection, that is, when the BRAS receives the access request sent by the other terminal, the BRAS can directly obtain the public network IP address segment that has been obtained. Assign a public network IP address to the terminal. If the BRAS receives the access request from the terminal after the obtained public network IP address segment is used up, the BRAS sends a DHCP address allocation request to the DHCP server again to obtain a new public network address segment, and so on, until all the access is made. The requested terminal allocates the public network IP address.
- the BRAS sends a renewal request to the DHCP server.
- the DHCP server returns a renewal request.
- the backup public network address pool configured on the DHCP server can provide the public network IP address sharing for at least two BRASs on the network. Therefore, to avoid long-term occupation of the standby public network IP address by one or more BRASs, Set a shorter lease on the DHCP server, for example: 60 minutes. During the process of using the public address pool, if the lease expires, the BRAS can send a renewal request to the DHCP server for use in the next lease. Alternate public IP address. 5314. The BRAS detects CGN failure recovery.
- the BRAS re-advertises the routing information of the public IP address in the public address pool of the CGN.
- the BRAS revokes the aggregated routing information after the terminal switches to the private network IP address.
- the BRAS After the BRAS detects that the CGN is faulty, the BRAS re-advertises the routing information of the public IP address in the public IP address pool of the CGN. After receiving the access request from the terminal, the BRAS re-assigns the private network IP address to the terminal and performs the CGN through the CGN. NAT conversion. After the last public network terminal goes offline, the BRAS can revoke the routing information of the public IP address in the public network address pool of the CGN.
- the standby public network address pool may be set on the DHCP server, or the standby public address pool may be set on the BRAS with the DHCP server function, and the CGN on any at least one BRAS in the network may be faulty.
- the BRAS can obtain a public network IP address from the DHCP server.
- the DHCP server can allocate a public IP address for each BRAS from the locally configured public network address pool.
- the public network IP address is directly assigned to the terminal from the remote DHCP server. The terminal does not need to perform the terminal traffic transfer.
- FIG. 4 is a flowchart of another embodiment of an address allocation method according to the present invention. As shown in FIG. 4, in the embodiment, the device that sets the standby public network address pool is used as a RADIUS server, and the address provided by the embodiment of the present invention is provided. The process of assigning methods is described in detail.
- the metropolitan area network includes multiple BRASs, and each CRAS is inserted with a CGN board to support the CGN feature.
- the CRs connected to these BRASs are connected to the RADIUS server as a public remote address pool for these BRASs.
- the existing RADIUS server itself has a public address pool. Therefore, the RADIUS service can be used.
- the RADIUS server itself has user authentication and accounting functions, users can be pre-configured on the RADIUS server.
- Type specifically CGN type and common type can be configured.
- the RADIUS server can configure a public IP address pool for CGN users.
- the method specifically includes:
- the terminal sends an access request to the BRAS.
- the BRAS allocates a private network address to the terminal in the local private address pool.
- the BRAS detects a CGN failure.
- the BRAS deletes the user entry of the terminal on the BRAS, and forces the terminal user to go offline.
- the terminal resends the access request to the BRAS.
- S401 ⁇ S405 is similar to the process of S301 ⁇ S305 in the previous embodiment. For details, refer to the related description in S301 ⁇ S305 in the previous embodiment.
- the BRAS sends an address allocation request to the RADIUS server, where the address allocation request carries the BRAS identification information.
- the RADIUS server allocates a public IP address to the BRAS according to the BRAS identification information.
- the RADIUS server can use the Frame Route attribute to assign a public IP address to the BRAS.
- the RADIUS server returns an address allocation response to the BRAS, where the address allocation response carries the allocated public network IP address.
- the BRAS advertises the aggregated routing information of the public network IP address of the segment.
- the BRAS allocates a public network IP address to the terminal in the obtained public network IP address. After receiving a public network IP address assigned by the RADIUS server, the BRAS device can cache the public network IP address and assign a public network address to the terminal.
- the BRAS re-advertises the routing information of the public IP address in the public network address pool of the CGN.
- the BRAS revokes the aggregated routing information after the terminal switches to the private network IP address.
- the BRAS After the BRAS detects that the CGN is faulty, the BRAS re-advertises the routing information of the public IP address in the public IP address pool of the CGN. After receiving the access request from the terminal, the BRAS re-assigns the private network IP address to the terminal and performs the CGN through the CGN. NAT conversion. After the last public network terminal goes offline, the BRAS can revoke the routing information of the public IP address in the public network address pool of the CGN.
- the address allocation method provided by the embodiment of the present invention can be set on the RADIUS server. Use the public address pool. After the CGN on the BRAS in the network fails, the BRAS can request the public network IP address from the RADIUS server. The RADIUS server can allocate a public IP address for each BRAS from the locally configured public network address pool. When any BRAS in the network is faulty, the public network IP address is directly assigned to the terminal from the remote RADIUS server. The terminal does not need to perform the terminal traffic transfer. It is not necessary to configure the backup CGN for the BRAS, and shorten the user service recovery time when the BRAS CGN fails. cost. Moreover, multiple BRASs in the network can share the public address pool on the RADIUS server to further reduce costs.
- the aforementioned program can be stored in a computer readable storage medium.
- the program when executed, performs the steps including the above-described method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
- FIG. 5 is a schematic structural diagram of an embodiment of a broadband remote access server according to the present invention.
- a BRAS is provided with a carrier-grade network address translation CGN, where the broadband remote access server includes: a detecting unit 11 and receiving And processing unit 13;
- the detecting unit 11 is configured to detect a carrier-level network address translation CGN fault that is locally set, and the receiver 12 is configured to receive an access request sent by the terminal.
- the processing unit 13 is configured to allocate a public network IP address to the terminal.
- FIG. 6 is a schematic structural diagram of another embodiment of a broadband remote access server according to the present invention. As shown in FIG. 6, the broadband remote access server may further include:
- the sender 14 is configured to send an address allocation request to the device that sets the standby public network address pool, where the address allocation request carries the BRAS identification information.
- the receiver 12 can be further configured to: receive an address allocation response returned by the device that sets the backup public network address pool, where the address allocation response carries at least one public network protocol IP address; In: assigning a public network IP address to the terminal from at least one public network IP address.
- the broadband remote access server may further include:
- the backup public network address pool 15 is used to store the backup public network IP address.
- the processing unit 13 is specifically configured to: allocate a public network IP address to the terminal from the local configuration of the standby public network address pool.
- the BRAS and at least one other BRAS in the network provide an alternate public IP address.
- the device that sets the standby public address pool can set the protocol DHCP server for the dynamic host or the BRAS with the DHCP server function in the network.
- the address allocation response received by the receiver 12 can carry the DHCP server or the network.
- the address allocation request sent by the sender 14 may further include: a public network IP address segment request identifier, and the public network IP address segment request identifier is used to request to acquire a public network IP address;
- the address allocation response received by the receiver 12 may also carry a mask allocated by the DHCP server or the BRAS having the DHCP server function in the network as a public network IP address; correspondingly, the processing unit 13 may also be configured to: Public network IP address and mask, obtain a public network IP address and a public network IP address corresponding to the mask.
- the device that sets the standby public address pool can also dial the authentication RADIUS server for the remote user, and the address allocation response received by the receiver 12 can carry the public network IP address allocated by the RADIUS server for the BRAS. .
- the transmitter 14 is further configured to: advertise the aggregate routing information of the segment of the public network IP address.
- the detecting unit 11 is further configured to: detect CGN fault recovery;
- the sender 14 can also be configured to: revoke the aggregated routing information.
- the receiver 12 is further configured to: receive an access request sent by the terminal;
- the processing unit 13 is further configured to: allocate a private network IP address to the terminal in a private network address pool on the BRAS;
- processing unit 3 is further configured to: when the detecting unit detects a CGN fault, delete the user entry of the terminal on the broadband remote access server, so that the terminal resends the access request.
- the broadband remote access server provided by the embodiment of the present invention corresponding to the address allocation method provided by the embodiment of the present invention, is an execution device of the address allocation method, and the specific process of performing the address allocation method can be implemented by using the method provided by the present invention. For example, it will not be described here.
- the broadband remote access server After detecting the CGN failure, the broadband remote access server provided by the embodiment of the present invention can directly allocate a public network IP address to the terminal after receiving the access request sent by the terminal, so that the terminal traffic is not required to be transferred when the CGN is faulty. There is no need to configure a backup CGN for the BRAS, which shortens the terminal service recovery time of the BRAS CGN failure and reduces the cost.
- Figure ⁇ is a schematic structural diagram of an embodiment of a dynamic host setting protocol server provided by the present invention. As shown in Figure 7, the dynamic host setting protocol server is applicable to a network having a broadband remote access server BRAS, and the BRAS has an operation.
- the merchant network address translation CGN includes: a backup public network address pool 21, a receiver 22, a processing unit 23, and a transmitter 24;
- the backup public network address pool 21 is used to store the backup public network IP address.
- the receiver 22 is configured to receive an address allocation request sent by at least one BRAS, where the address allocation request carries the identifier information of the BRAS;
- the processing unit 23 is configured to allocate, according to the BRAS identification information, at least one public network protocol IP address for each BRAS in the standby public address pool;
- the transmitter 24 is configured to return an address allocation response to the at least one BRAS, where the address allocation response carries at least one public network protocol IP address.
- the standby public address pool 21 can provide a backup public IP address for at least two of the BRASs in the network.
- the processing unit 23 may be specifically configured to: allocate, according to the BRAS identifier information, a public network IP address for each BRAS in the backup public network address pool;
- the sender 24 returns to the at least one BRAS an address assignment response that can carry a public network IP address assigned by the processing unit.
- the address allocation request received by the receiver 22 may further include: a public network IP address segment request identifier, and the public network IP address segment request identifier is used to request to acquire a public network IP address;
- the processing unit 23 is further configured to: allocate a mask for a public network IP address; correspondingly, the transmitter 24 may further carry a mask to the at least one BRAS return address allocation response, so that at least one BRAS is based on a public The network IP address and the mask obtain a public IP address.
- the dynamic host setting protocol server provided by the embodiment of the present invention which corresponds to the address allocation method provided by the embodiment of the present invention, is an execution device of the address allocation method, and the specific process of performing the address allocation method may be implemented by the method provided by the present invention. For example, it will not be described here.
- the BRAS can request the DHCP server to obtain the public network IP address, and the DHCP server can locally configure the public network address pool for each BRAS. Assign a public network IP address.
- the public network IP address is directly assigned to the terminal from the remote DHCP server. No terminal traffic transfer is required. It is not necessary to configure the backup CGN for the BRAS. The user service recovery time of the short BRAS CGN failure, reducing costs.
- multiple BRASs in the network can share the public network address pool on the DHCP server to further reduce costs.
- FIG. 8 is a schematic structural diagram of an embodiment of a remote user dialing authentication server provided by the present invention.
- the remote user dialing authentication server is applicable to a network having a broadband remote access server BRAS, and the BRAS has an operation.
- the merchant network address translation CGN includes: a backup public network address pool 31, a receiver 32, a processing unit 33, and a transmitter 34;
- the backup public network address pool 31 is used to store the backup public network IP address.
- the receiver 32 is configured to receive an address allocation request sent by at least one BRAS, where the address allocation request carries the identifier information of the BRAS;
- the processing unit 33 is configured to allocate, according to the BRAS identification information, at least one public network protocol IP address for each BRAS in the standby public address pool;
- the transmitter 34 is configured to return an address allocation response to the at least one BRAS, where the address allocation response carries at least one public network protocol IP address.
- the processing unit 33 may be specifically configured to: allocate, according to the BRAS identifier information, a public network IP address for each BRAS in the backup public network address pool;
- the sender 34 can carry a public network IP address in the return address allocation response to at least one BRAS.
- the remote user dialing authentication server provided by the embodiment of the present invention which corresponds to the address allocation method provided by the embodiment of the present invention, is an execution device of the address allocation method, and the specific process of performing the address allocation method can be implemented by using the method provided by the present invention. For example, it will not be described here.
- the remote user dial-up authentication server provided in this embodiment can set the standby public network address pool on the RADIUS server. After the CGN on the BRAS in the network fails, the BRAS can request the public network IP address from the RADIUS server.
- the RADIUS server can allocate a public IP address for each BRAS from the locally configured public network address pool. When any BRAS in the network is faulty, the public network IP address is directly assigned to the terminal from the remote RADIUS server. The terminal does not need to perform the terminal traffic transfer.
- the backup CGN is not required to be configured for the BRAS, and the service recovery time of the BRAS CGN is shortened. cost.
- multiple BRASs in the network can share the public address pool on the RADIUS server to further reduce costs.
- FIG. 9 is a schematic structural diagram of an embodiment of a broadband remote access server according to the present invention.
- the broadband remote access server has a dynamic host setting protocol DHCP server function, and is applicable to a broadband remote access server BRAS.
- the BRAS is provided a carrier-grade network address translation CGN
- the broadband remote access server includes: a backup public network address pool 41, a receiver 42, a processing unit 43, and a transmitter 44;
- the backup public network address pool 41 is used to store the backup public network IP address.
- the receiver 42 is configured to receive an address allocation request sent by at least one BRAS, where the address allocation request carries the identifier information of the BRAS;
- the processing unit 43 is configured to allocate, according to the BRAS identification information, at least one public network protocol IP address for each BRAS in the standby public address pool;
- the transmitter 44 is configured to return an address allocation response to the at least one BRAS, where the address allocation response carries at least one public network protocol IP address.
- the processing unit 43 is specifically configured to: allocate, according to the BRAS identification information, a public network IP address for each BRAS in the backup public network address pool;
- the transmitter 44 can carry a public network IP address to the at least one BRAS return address allocation response.
- the broadband remote access server provided by the embodiment of the present invention corresponding to the address allocation method provided by the embodiment of the present invention, is an execution device of the address allocation method, and the specific process of performing the address allocation method can be implemented by using the method provided by the present invention. For example, it will not be described here.
- the broadband remote access server provided in this embodiment can implement the function of the DHCP server through configuration.
- the BRAS can request the BRAS with the DHCP server function to obtain the public network IP address, with DHCP.
- the server-enabled BRAS can allocate a public IP address for each BRAS from a locally configured public address pool.
- the public network IP address can be assigned to the terminal directly from the remote BRAS with the DHCP server function. No terminal traffic transfer is required. It is not necessary to configure the backup CGN for the BRAS, and shorten the user service when the BRAS fails. Restore time and reduce costs.
- multiple BRASs in the network can share the public address pool on the BRAS with the DHCP server function, thereby further reducing costs.
- the present invention further provides an embodiment of an address allocation system, the address distribution system comprising: at least one broadband remote access server and a device for setting a backup public network address pool, and the BRAS is provided with a carrier-grade network address translation CGN;
- the device is a dynamic host setting protocol server, or a remote user dial-up authentication server, or a broadband remote access server with a DHCP server function.
- FIG. 10 is a schematic structural diagram of still another embodiment of an address allocation system according to the present invention, as shown in FIG.
- the device that sets the standby public address pool in the system is a dynamic host setting protocol server, and the dynamic host setting protocol server can be connected to the CR in the network.
- FIG. 11 is a schematic structural diagram of another embodiment of an address allocation system according to the present invention.
- a device for setting a backup public address pool in the system is a remote user dialing authentication server, and the remote user dialing authentication server can be CR connection in the network.
- FIG. 12 is a schematic structural diagram of still another embodiment of an address allocation system according to the present invention.
- a device for setting a backup public address pool in the system may be any at least one broadband having a DHCP server function in the network.
- Remote access server Figure 12 shows the implementation scenario of two BRASs with DHCP server function, one BRAS is the master device and the other BRAS is the backup device).
- the address allocation system provided by the embodiment of the present invention corresponds to the address allocation method provided by the embodiment of the present invention, wherein the broadband remote access server and various optional devices for setting the backup public network address pool have specific structures and For a specific process of performing the address allocation method, reference may be made to the method embodiments provided by the present invention, and details are not described herein again.
- the BRAS may directly allocate a public network IP address to the terminal after receiving the access request sent by the terminal, and may set a backup public network address pool in the network.
- the public network address pool can be set on the DHCP server. It can also be set on at least one BRAS with DHCP server function, or it can be set on the RADIUS server.
- the BRAS can obtain the public IP address from the device in the standby public address pool and use the public IP address obtained from the standby public address pool to allocate the public IP address. Network IP address.
- the BRAS can obtain the public network IP address from the device that sets the standby public network address pool, and implement the public network IP address for the terminal directly from the obtained public network IP address.
- the BRAS can obtain the public network IP address from the device that sets the standby public network address pool, and implement the public network IP address for the terminal directly from the obtained public network IP address.
- the solution provided by all the embodiments of the present invention may be used to enhance the reliability when the CGN fails, or the CGN backup may already exist on the BRAS, or exist in the presence of the CGN.
- the solution provided by the embodiment of the present invention is used to enhance reliability.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明实施例提供一种地址分配方法、设备和系统。一种方法适用于具有宽带远程接入服务器BRAS的网络,BRAS上设有运营商级网络地址转换CGN,包括:BRAS检测到本地设置的CGN故障;BRAS接收终端发送的访问请求;BRAS为终端分配公网IP地址。本发明实施例,实现在CGN故障时无需进行终端流量转移,缩短BRAS的CGN故障时的终端业务恢复时间,降低成本。
Description
地址分配方法、 设备和系统
本申请要求于 2012年 4月 28日提交中国专利局、 申请号为 201210132571.1、 发明名称为 "地址分配方法、 设备和系统" 的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及信息技术, 尤其涉及一种地址分配方法、 设备和系统。 背景技术 运营商级网络地址转换( Carrier Grade Net Address Translation, CGN ), 是指通过规模化部署互联网协议(Internet Protocol, IP ) 第四版 IPv4私有 地址, 以达到对目前公网 IPv4地址的统计复用的技术。 CGN本质上是一种
NAT技术, 是将 IP数据报报头中的 IP地址转换为另一个 IP地址的过程, 使得多个私网 IP地址可以共用一个公网 IP地址。
现有技术中, 网络中需要为宽带远程接入服务器 (Broadband Remote
Access Service, BRAS )设置备份 BRAS, BRAS和备份 BRAS上分别插上 相同数量的 CGN单板,若 BRAS上的 CGN单板故障,则可以将该台 BRAS 上的流量切换到备份 BRAS上。 然而, 这种方法成本高, 且需要在 CGN故 障时进行流程切换, 实现过程复杂。 发明内容 本发明实施例提供一种地址分配方法、 设备和系统, 实现在 CGN故障 时无需进行终端流量转移,缩短 BRAS的 CGN故障时的终端业务恢复时间, 降低成本。
一方面, 本发明实施例提供一种地址分配方法, 适用于具有宽带远程 接入服务器 BRAS的网络,所述 BRAS上设有运营商级网络地址转换 CGN, 包括:
BRAS检测到本地设置的 CGN故障;
所述 BRAS接收终端发送的访问请求;
所述 BRAS为所述终端分配公网 IP地址。
本发明实施例提供另一种地址分配方法, 适用于具有宽带远程接入服 务器 BRAS的网络,所述 BRAS上设有运营商级网络地址转换 CGN,包括: 设置备用公网地址池的设备接收至少一个所述 BRAS发送的地址分配 请求, 所述地址分配请求中携带所述 BRAS的标识信息;
所述设备根据所述 BRAS的标识信息, 在所述备用公网地址池中为每 个所述 BRAS分配至少一个公网互联网协议 IP地址;
所述设备向所述至少一个 BRAS返回地址分配响应, 所述地址分配响 应中携带至少一个公网互联网协议 IP地址。
另一方面, 本发明实施例提供一种宽带远程接入服务器, 所述 BRAS 上设有运营商级网络地址转换 CGN, 包括:
检测单元, 用于检测本地设置的运营商级网络地址转换 CGN故障; 接收器, 用于接收终端发送的访问请求;
处理单元, 用于为所述终端分配公网 IP地址。
又一方面, 本发明实施例还提供一种动态主机设置协议服务器, 适用 于具有宽带远程接入服务器 BRAS的网络, 所述 BRAS上设有运营商级网 络地址转换 CGN, 包括:
备用公网地址池, 用于存储备用公网 IP地址;
接收器, 用于接收至少一个所述 BRAS发送的地址分配请求, 所述地 址分配请求中携带所述 BRAS的标识信息;
处理单元, 用于根据所述 BRAS的标识信息, 在所述备用公网地址池 中为每个所述 BRAS分配至少一个公网互联网协议 IP地址;
发送器, 用于向所述至少一个 BRAS返回地址分配响应, 所述地址分 配响应中携带至少一个公网互联网协议 IP地址。
再一方面, 本发明实施例还提供一种远程用户拨号认证服务器, 适用 于具有宽带远程接入服务器 BRAS的网络, 所述 BRAS上设有运营商级网 络地址转换 CGN, 包括:
备用公网地址池, 用于存储备用公网 IP地址;
接收器, 用于接收至少一个所述 BRAS发送的地址分配请求, 所述地 址分配请求中携带所述 BRAS的标识信息;
处理单元, 用于根据所述 BRAS的标识信息, 在所述备用公网地址池 中为每个所述 BRAS分配至少一个公网互联网协议 IP地址;
发送器, 用于向所述至少一个 BRAS返回地址分配响应, 所述地址分 配响应中携带至少一个公网互联网协议 IP地址。
另一方面, 本发明实施例还提供一种宽带远程接入服务器, 具有动态 主机设置协议 DHCP服务器功能, 适用于具有宽带远程接入服务器 BRAS 的网络, 所述 BRAS上设有运营商级网络地址转换 CGN, 包括:
备用公网地址池, 用于存储备用公网 IP地址;
接收器, 用于接收至少一个所述 BRAS发送的地址分配请求, 所述地 址分配请求中携带所述 BRAS的标识信息;
处理单元, 用于根据所述 BRAS的标识信息, 在所述备用公网地址池 中为每个所述 BRAS分配至少一个公网互联网协议 IP地址;
发送器, 用于向所述至少一个 BRAS返回地址分配响应, 所述地址分 配响应中携带至少一个公网互联网协议 IP地址。
又一方面, 本发明实施例还提供一种地址分配系统, 包括: 至少一个 宽带远程接入服务器和设置备用公网地址池的设备, 所述 BRAS上设有运 营商级网络地址转换 CGN; 所述设备为动态主机设置协议服务器, 或者为 远程用户拨号认证服务器, 或者为至少一台具有 DHCP服务器功能的宽带 远程接入服务器。
本发明实施例提供的地址分配方法、设备和系统, BRAS检测到 CGN故 障后, 可以在接收终端发送的访问请求后, 直接为终端分配公网 IP地址, 实 现在 CGN故障时无需进行终端流量转移,缩短 BRAS的 CGN故障时的终端业 务恢复时间, 降低成本。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明提供的地址分配方法一个实施例的流程图; 图 2为本发明提供的地址分配方法又一个实施例的流程图;
图 3为本发明提供的地址分配方法另一个实施例的流程图;
图 4为本发明提供的地址分配方法另一个实施例的流程图;
图 5为本发明提供的宽带远程接入服务器一个实施例的结构示意图; 图 6为本发明提供的宽带远程接入服务器又一个实施例的结构示意图; 图 7 为本发明提供的动态主机设置协议服务器一个实施例的结构示意 图 8为本发明提供的远程用户拨号认证服务器一个实施例的结构示意 图 9为本发明提供的宽带远程接入服务器一个实施例的结构示意图; 图 10为本发明提供的地址分配系统又一个实施例的结构示意图; 图 11为本发明提供的地址分配系统另一个实施例的结构示意图; 图 12为本发明提供的地址分配系统再一个实施例的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述,显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
图 1为本发明提供的地址分配方法一个实施例的流程图,如图 1所示, 该方法适用于具有宽带远程接入服务器 BRAS的网络, BRAS上设有运营 商级网络地址转换 CGN, 该方法包括:
5101、 宽带远程接入服务器 BRAS检测到本地设置的运营商级网络地 址转换 CGN故障。
5102、 BRAS接收终端发送的访问请求。
5103、 BRAS为终端分配公网 IP地址。
以上步骤的执行主体可以为网络中的任意一台 BRAS。
BRAS本地设置有私网地址池, 用于为终端分配私网 IP地址。 BRAS
支持 CGN能力, 具体可以通过插入 CGN板卡等形式实现。 BRAS上设置 的 CGN中设有公网地址池, CGN从公网地址池中选取公网 IP地址对 BRAS 分配给终端的私网 IP地址进行网络地址转换 ( Net Address Translation, NAT ) 。
本发明实施例提供的地址分配方法中, BRAS可以对 CGN进行故障检 测,需要说明的是,对于网络中的任一终端而言, BRAS检测到 CGN故障, 可以在该终端发出访问请求前, 也可以在该终端发出访问请求后。
其中,终端发出的访问请求是指终端拨号上线时向 BRAS发出的请求, 该访问请求用于请求 BRAS为终端分配公网 IP地址, 以使终端能够访问网 络。终端发出的访问请求可以通过以太网点到点协议( Point to Point Protocol Over Ethernet, PPPoE )发送,也可以通过动态主机设置协议( Dynamic Host Configuration Protocol , DHCP )发送。
在一种实施场景下, 如果 BRAS检测到 CGN故障之后, BRAS接收到 终端发出的访问请求,由于在这种情况下 CGN无法对终端进行 NAT转换, 因此, 在这种实施场景下, BRAS接收到终端发出的访问请求后, 可以不必 为该终端分配私网 IP地址, 而可以直接为该终端分配公网 IP地址。
在另一种实施场景下, 如果 BRAS检测到 CGN故障之前, BRAS已经 接收到终端发出的访问请求, 则 BRAS在本地的私网地址池中为终端分配 私网 IP地址。 如果 BRAS检测到 CGN故障, 则 BRAS可以从 BRAS上删 除该终端的用户表项, 强制终端下线, 从而触发该终端重新向 BRAS发出 访问请求, BRAS接收到终端重新发出的访问请求后,可以为该终端分配公 网 IP地址。
作为一种可行的实施方式, 可以在每个 BRAS本地配置备用公网地址 池, BRAS接收到终端发出的访问请求后,可以直接从本地配置的公网地址 池中为终端分配公网 IP地址。 可选地, 每个 BRAS本地配置的备用公网地 址池可以是相同的, 这样, 当两台以上的 BRAS中的 CGN同时故障, 可能 导致地址冲突的问题, 可以使用地址冲突检测机制来确保每个 BRAS使用 的公网地址不冲突。 例如, 可以在公网地址池中对地址段进行标记, 具体 如何标记本发明实施例不做具体限定, 例如, 1表示本设备已分配该 IP地 址段; 0表示所有 BRAS均未分配该地址段; 2表示其他 BRAS设备已分配 该 IP地址段。 这样, 当一台 BRAS中的 CGN发生故障时, 该 BRAS会先
发送通告消息, 所述通告消息携带所要分配的 IP地址段, 当没有收到网络 中其他 BRAS反馈的地址冲突信息时, 则使用该 IP地址段, 并在公网地址 池中将该 IP地址段进行标记为 1 , 其他 BRAS设备收到该通告消息后, 将 自身所在的公网地址池中的该 IP地址段进行标记为 2。 进一步, 当该 IP地 址段需要释放时, 也需要向网络中的其他 BRAS通告释放该 IP地址段。 此 外, 具体的通告消息的协议类型, 本发明实施例不做具体的限定, 例如可 以通过对开放式最短路径优先 (Open Shortest Path First, OSPF)协议或内部边 界网关协议( Internal Border Gateway Protocol, iBGP )扩展来实现。
作为另一种可行的实施方式, 还可以在网络中设置远端备用公网地址 池。 可选的, 可以在 DHCP服务器上设置备用公网地址池。 还可以在网络 中具有 DHCP服务器功能的 BRAS上设置备用公网地址池, 在釆用两台以 上具有 DHCP服务器功能的 BRAS的实施场景下, 可以将一台 BRAS作为 设置备用公网地址池的主设备,将其他 BRAS作为备份,以实现在主 BRAS 故障时, 釆用备份 BRAS中的备用公网地址池, 从而提高 BRAS提供备用 公网地址池的可靠性。 其中, 可以通过对 BRAS进行软件配置以实现其具 备 DHCP 服务器的功能。 另外, 还可以在远程用户拨号认证 (Remote Authentication Dial In User Service, RADIUS )服务器设置备用公网地址池, 需要说明的是, 由于现有的 RADIUS服务器本地具有公网地址池, 因此, 可以不必为 RADIUS服务器额外配置公网地址池, 可以直接釆用 RADIUS 服务器本地具有的公网地址池,在 BRAS中 CGN故障时作为备用公网地址 池。
在网络中设置远端备用公网地址池的实施场景下, 设置备用公网地址 池的设备, 可以为网络中的至少两个 BRAS提供共享的备用公网地址池。 具体可以是在网络中的任意一台 BRAS中的 CGN故障时, 可以为该 BRAS 分配公网 IP地址,从而实现网络中的至少两台以上 BRAS,可以在 CGN故 障时, 实现公网 IP地址的共享。
在网络中设置远端备用公网地址池的实施场景下, BRAS接收到终端发 送的访问请求后, BRAS可以向设置备用公网地址池的设备发送地址分配请 求, 该请求中携带 BRAS的标识信息, 设置备用公网地址池的设备接收到 地址分配请求后 , 可以为该台 BRAS分配至少一个公网 IP地址。 其中, 该 地址分配请求携带的 BRAS的标识信息, 可以通过特定的标识来实现, 或
者,还可以通过该地址分配请求中的源 IP地址, 即该 BRAS的 IP地址等实 现。
在一种实施场景下,如果设置备用公网地址池的设备为 DHCP服务器, 或者具备 DHCP服务器功能的 BRAS, 则 BRAS与 DHCP服务器或者具备 DHCP服务器功能的 BRAS之间可以釆用 DHCP协议通信。 而由于现有的 DHCP协议在每次发出地址分配请求时只能获取一个 IP地址, 因此, 在这 种实施场景下, BRAS可以每接收到一个终端发出的访问请求, 则向 DHCP 服务器或者具备 DHCP服务器功能的 BRAS发出地址分配请求, DHCP服 务器或者具备 DHCP服务器功能的 BRAS可以根据地址分配请求中携带的 BRAS标识,从本地的备用公网地址池中为该 BRAS分配一个公网 IP地址, 并通过地址分配响应返回给 BRAS, BRAS可以将该公网 IP地址分配给终 端。
作为对该实施场景的扩展, BRAS 可以在地址分配请求中携带公网 IP 地址段请求标识,通过该公网 IP地址段请求标识请求获取一段公网 IP地址。
DHCP服务器或者具备 DHCP服务器功能的 BRAS, 可以根据地址分配请 求中携带的 BRAS标识和公网 IP地址段请求标识, 在备用公网地址池中为 该 BRAS分配一个公网 IP地址及掩码, 再通过地址分配响应将该公网 IP 地址和掩码返回给 BRAS, BRAS接收设备返回的地址分配响应之后, 可以 根据该公网 IP地址以及掩码,获取一个公网 IP地址和掩码对应的一段公网 IP地址。
在另一种实施场景下, 如果设置备用公网地址池的设备为 RADIUS服 务器。 在该实施场景下, BRAS接收终端发出的访问请求后, 向 RADIUS 服务器发送地址分配请求, RADIUS可以根据地址分配请求中携带的 BRAS 标识, 为该台 BRAS分配一段公网 IP地址, 并在地址分配响应中携带该一 段公网 IP地址反馈给发出地址分配请求的 BRAS。
需要说明的是, 在 BRAS从设置备用公网地址池的设备上获取一段公 网 IP地址的实施场景下, BRAS每当接收到一个终端发出的访问请求后, 可以从获取的该段公网 IP地址中为终端分配一个公网 IP地址。
进一步的, 在 BRAS从设置备用公网地址池的设备上获取一段公网 IP 地址的实施场景下, BRAS还可以发布该段公网 IP地址的聚合路由信息。 可选的, BRAS检测到 CGN故障后, 也可以撤销 CGN上的公网地址池中
的公网 IP地址的路由信息。
进一步的, 在 BRAS检测到 CGN故障恢复后, BRAS可以重新发布 CGN本地的公网地址池中的公网 IP地址的路由信息。 另夕卜, 由于在 CGN 故障恢复后, BRAS在接收到终端发出的访问请求后,可以为终端分配私网 IP地址, 因此, BRAS还可以在终端切换到私网 IP地址之后撤销聚合路由 信息。
本实施例提供的地址分配方法, BRAS检测到 CGN故障后, 可以在接 收终端发送的访问请求后, 直接为终端分配公网 IP地址, 实现在 CGN故 障时无需进行终端流量转移, 无需为 BRAS配置备份 CGN, 缩短 BRAS的 CGN故障时的终端业务恢复时间, 降低成本。 图 2为本发明提供的地址分配方法又一个实施例的流程图, 如图 2所 示, 该方法适用于具有宽带远程接入服务器 BRAS的网络, BRAS上设有 运营商级网络地址转换 CGN, 该方法包括:
5201、 设置备用公网地址池的设备接收至少一个 BRAS发送的地址分 配请求, 地址分配请求中携带 BRAS的标识信息。
5202、设备根据 BRAS的标识信息,在备用公网地址池中为每个 BRAS 分配至少一个公网互联网协议 IP地址。
5203、 设备向至少一个 BRAS返回地址分配响应, 地址分配响应中携 带至少一个公网互联网协议 IP地址。
以上步骤的执行主体为设置备用公网地址池的设备。
其中, 该设置备用公网地址池的设备可以为 DHCP服务器, 也可以为 网络中至少一台具备 DHCP服务器功能的 BRAS, 还可以为 RADIUS服务 器。 在设置备用公网地址池的设备为两台或两台以上具备 DHCP服务器功 能的 BRAS的实施场景下, 可以在每台 BRAS上设置备用公网地址池, 可 以将其中一台 BRAS作为主设备, 其他 BRAS作为备份设备, 以实现在主 设备故障时, 釆用其他备份设备来分配公网 IP地址, 以提高 BRAS的可靠 性。
设置备用公网地址池的设备可以为网络中的任意一台 BRAS提供备用 的公共地址池, 也可以为网络中的任意至少两台 BRAS提供共享的备用公 网地址池。 实现网络中的任意一台或多台 BRAS的 CGN故障时, 从备用的
公网地址池中这些 BRAS分配公网 IP地址。
设置备用公网地址池的设备可以接收到至少一个 BRAS发出的地址分 配请求, 在接收到地址分配请求后, 设置备用公网地址池的设备可以根据 该地址分配请求中携带的 BRAS标识 , 为该台 BRAS分配至少一个公网 IP 地址。
在一种实施场景下, 如果设置备用公网地址池的设备为与 CR连接的 DHCP服务器, 或者具备 DHCP服务器功能的 BRAS, 则 BRAS与 DHCP 服务器或者具备 DHCP服务器功能的 BRAS之间可以釆用 DHCP协议通信。 而由于现有的 DHCP协议在每次发出地址分配请求时只能获取一个 IP地址 , 因此, 在这种实施场景下, DHCP服务器或者具备 DHCP服务器功能的 BRAS每接收到一个 BRAS发出的地址分配请求后, 根据该 BRAS的标识 信息, 在本地的备用公网地址池中为该 BRAS预留一个公网 IP地址, 并在 地址分配响应中携带该公网 IP地址。
作为一种可行的实施方式, BRAS 可以在地址分配请求中携带公网 IP 地址段请求标识,通过该公网 IP地址段请求标识请求获取一段公网 IP地址。
DHCP服务器或者具备 DHCP服务器功能的 BRAS接收的地址分配请求后, 可以根据地址分配请求中携带的 BRAS标识和公网 IP地址段请求标识, 在 备用公网地址池中为该 BRAS分配一个公网 IP地址,并为该公网 IP地址分 配的掩码, 再通过地址分配响应将该公网 IP地址和掩码返回给 BRAS, 从 而使 BRAS可以根据该公网 IP地址以及掩码,获取一个公网 IP地址和掩码 对应的一段公网 IP地址。
在另一种实施场景下, 如果设置备用公网地址池的设备为 RADIUS服 务器, 则在该实施场景下, RADIUS 服务器接收到地址分配请求后, 可以 根据地址分配请求中携带的 BRAS标识,为该台 BRAS分配一段公网 IP地 址, 并在地址分配响应中携带该一段公网 IP地址反馈给发出地址分配请求 的 BRAS。 本实施例提供的地址分配方法 , 可以在网络中设置备用公网地址池, 该备用公网地址池可以设置在 DHCP服务器上, 还可以设置在具有 DHCP 服务器功能的 BRAS上, 还可以设置在 RADIUS服务器上。 当网络中的任 意一台 BRAS上的 CGN出现故障后, BRAS可以向备用公网地址池的设备
请求获取公网 IP地址,使用从备用公网地址池中获取的公网 IP地址为终端 分配公网 IP地址。从而实现在网络中任一 BRAS上的 CGN故障后,该 BRAS 可以从设置备用公网地址池的设备上获取公网 IP地址, 实现直接从获取的 公网 IP地址中为终端分配公网 IP地址, 实现在 CGN故障时无需进行终端 流量转移, 缩短 BRAS的 CGN故障时的终端业务恢复时间, 降低成本。 上述实施例分别从 BRAS侧和设置备用公网地址池的设备侧对本发明 实施例提供的地址分配方法进行描述。 图 3 为本发明提供的地址分配方法 另一个实施例的流程图, 如图 3所示, 本实施例中以 BRAS从设置备用公 网地址池的 DHCP服务器上获取公网 IP地址为例, 对本发明实施例提供的 地址分配方法的过程进行详细说明。
本实施例中,城域网络中包括多台 BRAS,每台 BRAS上插入一块 CGN 板卡以支持 CGN特性。与这些 BRAS连接的 CR上连接 DHCP服务器作为 这些 BRAS共享的远端备用公共地址池。 可以理解的是, 本实施例中涉及 的 DHCP服务器, 也可以通过该城域网中具有 DHCP服务器功能的 BRAS 来实现。 其中, 可以通过对 BRAS进行软件配置实现其具有 DHCP服务器 功能。 另外, 为了提高作为 DHCP服务器的 BRAS的可靠性, 通常可以设 置两台以上具有 DHCP服务器功能的 BRAS, 将其中一台 BRAS作为主设 备, 其他 BRAS作为备份设备, 从而可以在主设备故障时, 釆用其他备份 BRAS来分配备用公网 IP地址。
该城域网络中的任意一台 BRAS可以在一个域下同时配置公网地址池 和私网地址池。 其中, 该公网地址池即为 DHCP服务器上设置的备用公网 地址池。 该方法具体包括:
S301、 终端向 BRAS发送访问请求。
S302、 BRAS在本地的私网地址池中为该终端分配私网 IP地址。
S303、 BRAS检测到 CGN故障。
S304、 BRAS删除 BRAS上的该终端的用户表项, 强制该终端用户下 线。
具体的, 如果终端釆用 PPPoE接入模式, 则 BRAS删除该终端的用户 表项, 将导致终端与 BRAS之间的点到点 (Point to Point, PPP ) 心跳检测 丟失, PPP连接中断。如果终端釆用以太网承载 IP协议( Internet Protocol over
Ethernet, IPoE )接入模式, 则终端将发现无法访问网络。
5305、 终端向 BRAS重新发送访问请求。
如果终端釆用 PPPoE接入模式, 则用户通常可以自动重新拨号, 即, 终端可以自动向 BRAS重新发送访问请求。 如果终端釆用 IPoE接入模式, 则通常需要用户手动重新拨号。
5306、 BRAS向 DHCP服务器发送地址分配请求, 该地址分配请求中 携带 BRAS的标识信息和公网 IP地址段请求标识,该公网 IP地址段请求标 识用于请求获取一段公网 IP地址。
5307、 DHCP服务器根据 BRAS的标识信息, 在备用公网地址池中为 每个 BRAS分配一个公网 IP地址和掩码。
5308、 DHCP服务器向 BRAS返回地址分配响应, 该地址分配响应中 携带分配的公网 IP地址和掩码。
5309、 BRAS根据公网 IP地址和掩码获取对应的一段公网 IP地址。
5310、 BRAS发布该公网 IP地址和掩码对应的一段公网 IP地址的聚合 路由信息。
其中, DHCP服务器为每个 BRAS分配的一段公网 IP地址, 可以釆用 公网 IP地址加掩码的形式预留。 DHCP服务器可以将为 BRAS分配的公网 IP地址和掩码携带在地址分配响应中, 或者, 还可以在地址分配响应中携 带地址段的首地址和尾地址, 或者还可以在地址分配响应中携带详细地址 列表的方式都可以。
BRAS和 DHCP服务器之间釆用 DHCP协议通信, 则 BRAS向 DHCP 服务器发的送地址分配请求为 DHCP地址分配请求。
需要说明的是, 如果 BRAS和 DHCP服务器之间为三层网络, 则作为 客户端的 BRAS需要使用 DHCP中继( Relay )才能从 DHCP服务器上获取 公网 IP地址。 在这种实施场景下, BRAS中需要内置 DHCP Relay功能作 为从 DHCP服务器上获取公网 IP地址的中继器。 而在这种实施场景下, BRAS设备接收到终端发送的访问请求后,作为 DHCP Relay向 DHCP服务 器发起的地址分配请求为 DHCP relay报文。 其中, 如果是终端釆用 PPPoE 网 IP地址。
另外, 在釆用两台以上具有 DHCP服务器功能的 BRAS来设置远端公
网地址池的实施场景下, 如果主设备故障 , BRAS发送几次 DHCP relay报 文均未接收到主设备返回的响应, 则 BRAS可以向其他备用的 BRAS发送 DHCP relay报文请求获取公网 IP地址。
BRAS作为 DHCP Relay向远端的 DHCP服务器发送的地址分配请求釆 用 DHCP relay协议,通常 DHCP relay协议只能获取一个 IP地址,而 BRAS 在获取到公网 IP地址后, 需要向外发布该公网 IP地址的路由信息,但如果 BRAS按照单个公网 IP地址发布 32位路由,则需要发布的路由信息量是运 营商无法接受的。 因此, 可以通过对 DHCP协议进行修改, 使 DHCP服务 器能够支持为一台 BRAS预留一段公网 IP地址。
可以在地址分配请求中携带公网 IP地址段请求标识 ,该公网 IP地址段 请求标识用于请求获取一段公网 IP地址。
具体的, 在 BRAS发起的 DHCP relay请求中, 携带 Option82信息, 该 Option82信息即为 BRAS设备的位置信息,可以用于唯一标识一台 BRAS, 该 Option82信息即为本发明实施例中涉及的 BRAS的标识信息。
作为一种可行的实施方式, 可以在该 Option82 信息中携带 sub-optionl30,通过该 sub-optionl30表示请求获取一段公网 IP地址。 DHCP 服务器接收到携带 sub-optionl30的 Option82信息后, 可以从本地配置的备 用公网地址池中为 BRAS分配一段公网 IP地址。
其中的 Value为 DHCP服务器为 BRAS分配的公网 IP地址的掩码长度。 在 DHCP服务器上, 为 BRAS预留了该公网 IP地址加掩码后的网段, BRAS设 备可以用公网 IP地址加掩码后的聚会路由信息作为用户路由进行发布。
作为另一种可行的实施方式, 还可以在 BRAS发起的 DHCP relay请求 中, 插入或者修改 Option55信息, 通过该 Option55信息请求获取一段公网 IP地址。 其中, 申请的 Option可以为 109, 即, DHCP服务器接收到 DHCP relay请求后, 可以在地址分配响应中携带 Optionl09信息。
按照 DHCP的 RFC2132规定, Option如下表所示:
Code Len Value
109 1 0-32
其中的 Value为 DHCP服务器为 BRAS分配的公网 IP地址的掩码长度。 在 DHCP服务器上,为 BRAS预留了该公网 IP地址加掩码后的网段, BRAS 设备可以用公网 IP地址加掩码后的聚会路由信息作为用户路由进行发布。
上述仅提供了在地址分配请求中携带公网 IP地址段请求标识的几种可 行的实施方式, 可以理解的是, 还可以通过 RFC2132中任何自定义的字段 来实现在 DHCP relay请求中携带用于向 DHCP服务器分配一段公网 IP地 址的公网 IP地址段请求标识。
S311、 BRAS在获取的一段公网 IP地址中为终端分配公网 IP地址。 需要说明的是, 在 BRAS与 DHCP服务器之间为三层网络的实施场景 下, 后续其他终端拨号连接时, 即, BRAS接收到其他终端发送的访问请求 时, 可以直接从已经获取的公网 IP地址段中为终端分配公网 IP地址,如果 是终端釆用 PPPoE方式接入, 则 BRAS也可以将公网 IP地址提供给 IPCP 使用。 如果已经获取的公网 IP地址段用完后, BRAS接收到终端发出的访 问请求, 则 BRAS再次向 DHCP服务器发送地址分配请求, 即, 再次启动 发送 DHCP relay请求的过程, 获取新的公网地址段, 如此往复, 直至为所 有发出访问请求的终端分配完公网 IP地址。
同样, 在 BRAS与 DHCP服务器之间为三层网络的实施场景下, 后续 其他终端拨号连接时, 即, BRAS接收到其他终端发送的访问请求时, 可以 直接从已经获取的公网 IP地址段中为终端分配公网 IP地址。如果已经获取 的公网 IP地址段用完后, BRAS接收到终端发出的访问请求, 则 BRAS再 次向 DHCP服务器发送 DHCP地址分配请求, 获取新的公网地址段, 如此 往复, 直至为所有发出访问请求的终端分配完公网 IP地址。
5312、 BRAS向 DHCP服务器发送续租请求。
5313、 DHCP服务器返回续租响应。
由于 DHCP服务器上设置的备用公网地址池可以为网络中的至少两台 BRAS提供公网 IP地址的共享, 因此, 为了避免一台或多台 BRAS对该备 用公网 IP地址的长期占用,可以在 DHCP服务器上设置较短的租期,例如: 60分钟, BRAS在使用公网地址池的过程中, 如果租期届满, 则 BRAS可 以向 DHCP服务器发送续租请求, 实现在下一租期内使用备用的公网 IP地 址。
5314、 BRAS检测到 CGN故障恢复。
5315、 BRAS重新发布 CGN本地的公网地址池中的公网 IP地址的路 由信息。
5316、 BRAS在终端切换到私网 IP地址之后撤销聚合路由信息。
5317、 公网 IP地址租期届满, DHCP服务器自动回收。
BRAS检测到 CGN故障恢复后, BRAS重新发布 CGN本地的公网地 址池中的公网 IP地址的路由信息, 在接收终端发出的访问请求后, 重新为 终端分配私网 IP地址, 并通过 CGN进行 NAT转换。 待当最后一个公网终 端下线后, BRAS可以撤销 CGN本地的公网地址池中的公网 IP地址的路由 信息。
本实施例提供的地址分配方法, 可以在 DHCP服务器上设置备用公网 地址池, 或者在具备 DHCP服务器功能的 BRAS上设置备用公共地址池, 当网络中的任意至少一台 BRAS上的 CGN出现故障后, BRAS可以向 DHCP 服务器请求获取公网 IP地址, DHCP服务器可以为每个 BRAS从本地配置 的公网地址池中分配一段公网 IP地址。可以实现网络中任意 BRAS故障时, 直接从远端 DHCP服务器上为终端分配公网 IP地址, 无需进行终端流量转 移, 无需为 BRAS配置备份 CGN, 缩短 BRAS的 CGN故障时的用户业务 恢复时间, 降低成本。 并且, 网络中的多台 BRAS可以共享 DHCP服务器 上的公网地址池, 实现进一步降低成本。 图 4为本发明提供的地址分配方法另一个实施例的流程图, 如图 4所 示, 本实施例中以设置备用公网地址池的设备为 RADIUS服务器为例, 对 本发明实施例提供的地址分配方法的过程进行详细说明。
本实施例中,城域网络中包括多台 BRAS,每台 BRAS上插入一块 CGN 板卡以支持 CGN特性。与这些 BRAS连接的 CR上连接 RADIUS服务器作 为这些 BRAS 公共的远端备用公共地址池。 需要说明的是, 由于现有的 RADIUS服务器本身便配置有公网地址池, 因此, 可以釆用 RADIUS服务 由于 RADIUS服务器本身具有用户认证、 计费等功能, 因此, 可以在 RADIUS服务器上预先配置用户类型,具体可以配置 CGN类型和普通类型。 其中, RADIUS服务器可以为 CGN类型用户配置公网 IP地址池。
该方法具体包括:
S401、 终端向 BRAS发送访问请求。
S402、 BRAS在本地的私网地址池中为该终端分配私网地址。
5403、 BRAS检测到 CGN故障。
5404、 BRAS删除 BRAS上的该终端的用户表项, 强制该终端用户下 线。
5405、 终端向 BRAS重新发送访问请求。
其中, S401~S405的过程与前一实施例中 S301~S305的过程相类似, 具体可参见前一实施例中 S301~S305中的相关描述。
5406、 BRAS向 RADIUS服务器发送地址分配请求, 该地址分配请求 中携带 BRAS的标识信息。
5407、 RADIUS服务器根据 BRAS的标识信息, 为 BRAS分配一段公 网 IP地址。
RADIUS服务器可以使用 Frame Route属性为 BRAS分配一段公网 IP 地址。
5408、 RADIUS服务器向 BRAS返回地址分配响应, 该地址分配响应 中携带分配的一段公网 IP地址。
5409、 BRAS发布该段公网 IP地址的聚合路由信息。
5410、 BRAS在获取的一段公网 IP地址中为终端分配公网 IP地址。 BRAS设备接收到 RADIUS服务器分配的一段公网 IP地址后, 可以将 该段公网 IP地址进行緩存, 为终端分配公网地址。
5411、 BRAS检测到 CGN故障恢复。
5412、 BRAS重新发布 CGN本地的公网地址池中的公网 IP地址的路 由信息。
5413、 BRAS在终端切换到私网 IP地址之后撤销聚合路由信息。
BRAS检测到 CGN故障恢复后, BRAS重新发布 CGN本地的公网地 址池中的公网 IP地址的路由信息, 在接收终端发出的访问请求后, 重新为 终端分配私网 IP地址, 并通过 CGN进行 NAT转换。 待当最后一个公网终 端下线后, BRAS可以撤销 CGN本地的公网地址池中的公网 IP地址的路由 信息。
本发明实施例提供的地址分配方法, 可以在 RADIUS服务器上设置备
用公网地址池。 当网络中的 BRAS上的 CGN 出现故障后, BRAS可以向 RADIUS服务器请求获取公网 IP地址, RADIUS服务器可以为每个 BRAS 从本地配置的公网地址池中分配一段公网 IP 地址。 可以实现网络中任意 BRAS故障时, 直接从远端 RADIUS服务器上为终端分配公网 IP地址, 无 需进行终端流量转移, 无需为 BRAS配置备份 CGN, 缩短 BRAS的 CGN 故障时的用户业务恢复时间, 降低成本。 并且, 网络中的多台 BRAS可以 共享 RADIUS服务器上的公网地址池, 实现进一步降低成本。
本领域普通技术人员可以理解: 实现上述各方法实施例的全部或部分 步骤可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算 机可读取存储介质中。 该程序在执行时, 执行包括上述各方法实施例的步 骤; 而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储 程序代码的介质。
图 5 为本发明提供的宽带远程接入服务器一个实施例的结构示意图, 如图 5所示, BRAS上设有运营商级网络地址转换 CGN, 该宽带远程接入 服务器包括: 检测单元 11、 接收器 12和处理单元 13;
检测单元 11 , 用于检测本地设置的运营商级网络地址转换 CGN故障; 接收器 12, 用于接收终端发送的访问请求;
处理单元 13 , 用于为终端分配公网 IP地址。
图 6为本发明提供的宽带远程接入服务器又一个实施例的结构示意图, 如图 6所示, 可选的, 该宽带远程接入服务器还可以包括:
发送器 14, 用于向设置备用公网地址池的设备发送地址分配请求, 该 地址分配请求中携带 BRAS的标识信息;
相应的, 接收器 12还可以用于: 接收设置备用公网地址池的设备返回 的地址分配响应,该地址分配响应中携带至少一个公网互联网协议 IP地址; 相应的,处理单元 13可以具体用于:从至少一个公网 IP地址中为终端 分配公网 IP地址。
进一步的, 该宽带远程接入服务器还可以包括:
备用公网地址池 15 , 用于存储备用公网 IP地址;
相应的, 所述处理单元 13具体可以用于: 从本地配置所述备用公网地 址池中为所述终端分配公网 IP地址。
BRAS和网络中其他至少一个 BRAS提供备用的公网 IP地址。
作为一种可行的实施方式, 设置备用公网地址池的设备可以为动态主 机设置协议 DHCP服务器或者网络中具有 DHCP服务器功能的 BRAS, 则 接收器 12接收的地址分配响应中可以携带 DHCP服务器或者网络中具有 DHCP服务器功能的 BRAS为 BRAS分配的一个公网 IP地址。
可选的,发送器 14发送的地址分配请求中还可以包括:公网 IP地址段 请求标识, 公网 IP地址段请求标识用于请求获取一段公网 IP地址;
相应的,接收器 12接收的地址分配响应中还可以携带 DHCP服务器或 者网络中具有 DHCP服务器功能的 BRAS为一个公网 IP地址分配的掩码; 相应的, 处理单元 13还可以用于: 根据一个公网 IP地址以及掩码, 获 取一个公网 IP地址和掩码对应的一段公网 IP地址。
作为另一种可行的实施方式, 设置备用公网地址池的设备还可以为远 程用户拨号认证 RADIUS服务器,则接收器 12接收的地址分配响应中可以 携带 RADIUS服务器为 BRAS分配的一段公网 IP地址。
进一步的,发送器 14还可以用于:发布所述一段公网 IP地址的聚合路 由信息。
可选的, 检测单元 11还可以用于: 检测 CGN故障恢复;
发送器 14还可以用于: 撤销所述聚合路由信息。
可选的, 接收器 12还可以用于: 接收终端发送的访问请求;
相应的, 处理单元 13还可以用于: 在 BRAS上的私网地址池中为终端 分配私网 IP地址;
进一步的, 处理单元 3还可以用于: 在检测单元检测到 CGN故障, 则 在宽带远程接入服务器上删除终端的用户表项, 以使终端重新发送访问请 求。
本发明实施例提供的宽带远程接入服务器, 与本发明实施例提供的地 址分配方法相对应, 为该地址分配方法的执行设备, 其执行地址分配方法 的具体过程可参见本发明提供的方法实施例, 在此不再赘述。
本发明实施例提供的宽带远程接入服务器,在检测到 CGN出现故障后, 可以在接收终端发送的访问请求后, 直接为终端分配公网 IP地址, 实现在 CGN故障时无需进行终端流量转移, 无需为 BRAS配置备份 CGN, 缩短 BRAS的 CGN故障时的终端业务恢复时间, 降低成本。
图 Ί 为本发明提供的动态主机设置协议服务器一个实施例的结构示意 图, 如图 7 所示, 该动态主机设置协议服务器适用于具有宽带远程接入服 务器 BRAS的网络,所述 BRAS上设有运营商级网络地址转换 CGN,包括: 备用公网地址池 21、 接收器 22、 处理单元 23和发送器 24;
备用公网地址池 21 , 用于存储备用公网 IP地址;
接收器 22, 用于接收至少一个 BRAS发送的地址分配请求, 地址分配 请求中携带 BRAS的标识信息;
处理单元 23 , 用于根据 BRAS的标识信息, 在备用公网地址池中为每 个 BRAS分配至少一个公网互联网协议 IP地址;
发送器 24, 用于向至少一个 BRAS返回地址分配响应, 地址分配响应 中携带至少一个公网互联网协议 IP地址。
可选的, 所述备用公网地址池 21可以为网络中的至少两台所述 BRAS 提供备用的公网 IP地址。
可选的, 处理单元 23可以具体用于: 根据 BRAS的标识信息, 在备用 公网地址池中为每个 BRAS分配一个公网 IP地址;
相应的,发送器 24向至少一个 BRAS返回地址分配响应中可以携带处 理单元分配的一个公网 IP地址。
可选的,接收器 22接收的地址分配请求中还可以包括:公网 IP地址段 请求标识, 公网 IP地址段请求标识用于请求获取一段公网 IP地址;
相应的, 处理单元 23还可以用于: 为一个公网 IP地址分配掩码; 相应的,发送器 24向至少一个 BRAS返回地址分配响应中还可以携带 掩码, 以使至少一个 BRAS根据一个公网 IP地址以及掩码获取一段公网 IP 地址。
本发明实施例提供的动态主机设置协议服务器, 与本发明实施例提供 的地址分配方法相对应, 为该地址分配方法的执行设备, 其执行地址分配 方法的具体过程可参见本发明提供的方法实施例, 在此不再赘述。
本实施例提供的动态主机设置协议服务器, 当网络中的 BRAS 上的 CGN出现故障后, BRAS可以向 DHCP服务器请求获取公网 IP地址, DHCP 服务器可以为每个 BRAS从本地配置的公网地址池中分配一段公网 IP地址。 可以实现网络中任意 BRAS故障时, 直接从远端 DHCP服务器上为终端分 配公网 IP地址, 无需进行终端流量转移, 无需为 BRAS配置备份 CGN, 缩
短 BRAS的 CGN故障时的用户业务恢复时间 , 降低成本。 并且 , 网络中的 多台 BRAS可以共享 DHCP服务器上的公网地址池,实现进一步降低成本。
图 8为本发明提供的远程用户拨号认证服务器一个实施例的结构示意 图, 如图 8所示, 该远程用户拨号认证服务器适用于具有宽带远程接入服 务器 BRAS的网络,所述 BRAS上设有运营商级网络地址转换 CGN,包括: 备用公网地址池 31、 接收器 32、 处理单元 33和发送器 34;
备用公网地址池 31 , 用于存储备用公网 IP地址;
接收器 32, 用于接收至少一个 BRAS发送的地址分配请求, 地址分配 请求中携带 BRAS的标识信息;
处理单元 33 , 用于根据 BRAS的标识信息, 在备用公网地址池中为每 个 BRAS分配至少一个公网互联网协议 IP地址;
发送器 34, 用于向至少一个 BRAS返回地址分配响应, 地址分配响应 中携带至少一个公网互联网协议 IP地址。
可选的, 处理单元 33可以具体用于: 根据 BRAS的标识信息, 在备用 公网地址池中为每个 BRAS分配一段公网 IP地址;
发送器 34向至少一个 BRAS返回地址分配响应中可以携带一段公网 IP 地址。
本发明实施例提供的远程用户拨号认证服务器, 与本发明实施例提供 的地址分配方法相对应, 为该地址分配方法的执行设备, 其执行地址分配 方法的具体过程可参见本发明提供的方法实施例, 在此不再赘述。
本实施例提供的远程用户拨号认证服务器, 可以在 RADIUS服务器上 设置备用公网地址池。 当网络中的 BRAS上的 CGN出现故障后, BRAS可 以向 RADIUS服务器请求获取公网 IP地址, RADIUS服务器可以为每个 BRAS从本地配置的公网地址池中分配一段公网 IP地址。 可以实现网络中 任意 BRAS故障时,直接从远端 RADIUS服务器上为终端分配公网 IP地址, 无需进行终端流量转移,无需为 BRAS配置备份 CGN,缩短 BRAS的 CGN 故障时的用户业务恢复时间, 降低成本。 并且, 网络中的多台 BRAS可以 共享 RADIUS服务器上的公网地址池, 实现进一步降低成本。
图 9为本发明提供的宽带远程接入服务器一个实施例的结构示意图, 如图 9所示, 该宽带远程接入服务器具有动态主机设置协议 DHCP服务器 功能, 适用于具有宽带远程接入服务器 BRAS的网络, 所述 BRAS上设有
运营商级网络地址转换 CGN, 该宽带远程接入服务器包括: 备用公网地址 池 41、 接收器 42、 处理单元 43和发送器 44;
备用公网地址池 41 , 用于存储备用公网 IP地址;
接收器 42, 用于接收至少一个 BRAS发送的地址分配请求, 地址分配 请求中携带 BRAS的标识信息;
处理单元 43 , 用于根据 BRAS的标识信息, 在备用公网地址池中为每 个 BRAS分配至少一个公网互联网协议 IP地址;
发送器 44, 用于向至少一个 BRAS返回地址分配响应, 地址分配响应 中携带至少一个公网互联网协议 IP地址。
可选的, 处理单元 43可以具体用于: 根据 BRAS的标识信息, 在备用 公网地址池中为每个 BRAS分配一段公网 IP地址;
相应的,发送器 44向至少一个 BRAS返回地址分配响应中可以携带一 段公网 IP地址。
本发明实施例提供的宽带远程接入服务器, 与本发明实施例提供的地 址分配方法相对应, 为该地址分配方法的执行设备, 其执行地址分配方法 的具体过程可参见本发明提供的方法实施例, 在此不再赘述。
本实施例提供的宽带远程接入服务器, 可以通过配置实现 DHCP服务 器的功能, 当网络中的 BRAS上的 CGN 出现故障后, BRAS 可以向具有 DHCP服务器功能的 BRAS请求获取公网 IP地址, 具有 DHCP服务器功能 的 BRAS可以为每个 BRAS从本地配置的公网地址池中分配一段公网 IP地 址。 可以实现网络中任意 BRAS故障时, 直接从远端具有 DHCP服务器功 能的 BRAS 上为终端分配公网 IP地址, 无需进行终端流量转移, 无需为 BRAS配置备份 CGN, 缩短 BRAS的 CGN故障时的用户业务恢复时间, 降低成本。 并且, 网络中的多台 BRAS可以共享具有 DHCP服务器功能的 BRAS上的公网地址池, 实现进一步降低成本。
本发明还提供地址分配系统的一个实施例, 该地址分配系统包括: 至 少一个宽带远程接入服务器和设置备用公网地址池的设备, 所述 BRAS上 设有运营商级网络地址转换 CGN;
所述设备为动态主机设置协议服务器, 或者为远程用户拨号认证服务 器, 或者为具有 DHCP服务器功能的宽带远程接入服务器。
图 10为本发明提供的地址分配系统又一个实施例的结构示意图, 如图
10所示,该系统中设置备用公网地址池的设备为动态主机设置协议服务器, 该动态主机设置协议服务器可以与网络中的 CR连接。
图 11为本发明提供的地址分配系统另一个实施例的结构示意图, 如图 10所示,该系统中设置备用公网地址池的设备为远程用户拨号认证服务器, 该远程用户拨号认证服务器可以与网络中的 CR连接。
图 12为本发明提供的地址分配系统再一个实施例的结构示意图, 如图 12所示, 该系统中设置备用公网地址池的设备可以为网络中的任意至少一 台具有 DHCP服务器功能的宽带远程接入服务器 (图 12所示为两台具有 DHCP服务器功能的 BRAS的实施场景, 其中一台 BRAS为主设备, 另一 台 BRAS为备 殳备) 。
本发明实施例提供的地址分配系统, 与本发明实施例提供的地址分配 方法相对应, 其中涉及的宽带远程接入服务器和各种可选的设置备用公网 地址池的设备, 其具体结构和执行地址分配方法的具体过程可参见本发明 提供的方法实施例, 在此不再赘述。
本实施例提供的地址分配系统, BRAS在检测到 CGN出现故障后, 可 以在接收终端发送的访问请求后, 直接为终端分配公网 IP地址, 可以在网 络中设置备用公网地址池,该备用公网地址池可以设置在 DHCP服务器上, 还可以设置在至少一台具有 DHCP服务器功能的 BRAS上, 还可以设置在 RADIUS服务器上。 当网络中的任意一台 BRAS上的 CGN出现故障后, BRAS可以向备用公网地址池的设备请求获取公网 IP地址, 使用从备用公 网地址池中获取的公网 IP地址为终端分配公网 IP地址。从而实现在网络中 BRAS上的 CGN故障后, 该 BRAS可以从设置备用公网地址池的设备上获 取公网 IP地址,实现直接从获取的公网 IP地址中为终端分配公网 IP地址, 实现在 CGN故障时无需进行终端流量转移, 缩短 BRAS的 CGN故障时的 终端业务恢复时间, 降低成本。
需要说明的是, 在 BRAS上只配置一台 CGN时, 当该 CGN发生故障 时可以使用本发明的所有实施例提供的方案来增强可靠性,也可以在 BRAS 上已经存在 CGN备份, 或者在存在 BRAS备份的情况下, 当所有的 CGN 设备都发生故障时, 使用本发明实施例提供的方案来增强可靠性。
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非
对其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的 普通技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进 行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或 者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。
Claims
1、 一种地址分配方法, 其特征在于, 适用于具有宽带远程接入服务器 BRAS的网络, 所述 BRAS上设有运营商级网络地址转换 CGN, 包括:
BRAS检测到本地设置的 CGN故障;
所述 BRAS接收终端发送的访问请求;
所述 BRAS为所述终端分配公网 IP地址。
2、 根据权利要求 1所述的方法, 其特征在于, 所述 BRAS为所述终端 分配公网 IP地址, 具体包括:
所述 BRAS向设置备用公网地址池的设备发送地址分配请求, 所述地 址分配请求中携带所述 BRAS的标识信息;
所述 BRAS接收所述设置备用公网地址池的设备返回的地址分配响应, 所述地址分配响应中携带至少一个公网互联网协议 IP地址;
所述 BRAS从所述至少一个公网 IP地址中为所述终端分配公网 IP地址。
3、 根据权利要求 1所述的方法, 其特征在于, 所述 BRAS为所述终端 分配公网 IP地址, 具体包括:
所述 BRAS 从本地配置的备用公网地址池中为所述终端分配公网 IP 地址。
4、 根据权利要求 2所述的方法, 其特征在于, 所述备用公网地址池为 所述 BRAS和网络中其他 BRAS提供备用的公网 IP地址。
5、 根据权利要求 2或 4所述的方法, 其特征在于, 所述设置备用公网 地址池的设备为动态主机设置协议 DHCP服务器或者网络中具有 DHCP服 务器功能的 BRAS, 则所述地址分配响应中携带所述 DHCP服务器为所述 BRAS分配的一个公网 IP地址。
6、 根据权利要求 5所述的方法, 其特征在于, 所述地址分配请求中还 包括: 公网 IP地址段请求标识, 所述公网 IP地址段请求标识用于请求获取 一段公网 IP地址; 所述地址分配响应中还携带所述 DHCP服务器或者网络 中具有 DHCP服务器功能的 BRAS为所述一个公网 IP地址分配的掩码; 所述 BRAS接收所述设置备用公网地址池的设备返回的地址分配响应 之后, 还包括:
所述 BRAS根据所述一个公网 IP地址以及所述掩码, 获取所述一个公
网 IP地址和所述掩码对应的一段公网 IP地址。
7、 根据权利要求 2或 4所述的方法, 其特征在于, 所述设置备用公网 地址池的设备为远程用户拨号认证 RADIUS服务器, 则所述地址分配响应 中携带所述 RADIUS服务器为所述 BRAS分配的一段公网 IP地址。
8、 根据权利要求 6或 7所述的方法, 其特征在于, 所述 BRAS接收所 述设置备用公网地址池的设备返回的地址分配响应之后, 还包括:
所述 BRAS发布所述一段公网 IP地址的聚合路由信息。
9、 根据权利要求 8所述的方法, 其特征在于, 还包括:
所述 BRAS检测到所述 CGN故障恢复;
所述 BRAS撤销所述聚合路由信息。
10、根据权利要求 1-9任一项所述的方法, 其特征在于, 所述宽带远程 接入服务器 BRAS检测到本地设置的运营商级网络地址转换 CGN故障之前, 还包括:
所述 BRAS接收所述终端发送的访问请求;
所述 BRAS在所述 BRAS上的私网地址池中为所述终端分配私网 IP地 址;
所述宽带远程接入服务器 BRAS检测到本地设置的运营商级网络地址 转换 CGN故障之后, 还包括:
所述 BRAS在所述 BRAS上删除所述终端的用户表项, 以使所述终端 重新发送访问请求。
11、 一种地址分配方法, 其特征在于, 适用于具有宽带远程接入服务 器 BRAS的网络, 所述 BRAS上设有运营商级网络地址转换 CGN, 包括: 设置备用公网地址池的设备接收至少一个所述 BRAS发送的地址分配 请求, 所述地址分配请求中携带所述 BRAS的标识信息;
所述设备根据所述 BRAS的标识信息, 在所述备用公网地址池中为每 个所述 BRAS分配至少一个公网互联网协议 IP地址;
所述设备向所述至少一个 BRAS返回地址分配响应, 所述地址分配响 应中携带至少一个公网互联网协议 IP地址。
12、 根据权利要求 11所述的方法, 其特征在于, 所述备用公网地址池 为网络中的所述至少两台 BRAS提供备用的公网 IP地址。
13、 根据权利要求 11或 12所述的方法, 其特征在于, 所述设置备用
公网地址池的设备为动态主机设置协议 DHCP 服务器或者网络中具有 DHCP服务器功能的 BRAS;
所述设备根据所述 BRAS的标识信息, 在所述备用公网地址池中为每 个所述 BRAS分配至少一个公网互联网协议 IP地址, 包括:
所述 DHCP服务器或者网络中具有 DHCP服务器功能的 BRAS, 根据 所述 BRAS的标识信息在所述备用公网地址池中为每个所述 BRAS分配一 个公网 IP地址;
所述设备向所述至少一个 BRAS返回地址分配响应, 包括:
所述 DHCP服务器或者网络中具有 DHCP服务器功能的 BRAS向所述 至少一个 BRAS返回所述地址分配响应, 所述地址分配响应中携带所述一 个公网 IP地址。
14、 根据权利要求 13所述的方法, 其特征在于, 所述设备接收的所述 地址分配请求中还包括: 公网 IP地址段请求标识, 所述公网 IP地址段请求 标识用于请求获取一段公网 IP地址;
所述设备根据所述 BRAS的标识信息, 在所述备用公网地址池中为每 个所述 BRAS分配至少一个公网互联网协议 IP地址, 还包括:
所述 DHCP服务器或者网络中具有 DHCP服务器功能的 BRAS为所述 一个公网 IP地址分配掩码;
所述 DHCP服务器或者网络中具有 DHCP服务器功能的 BRAS向所述 至少一个 BRAS返回的所述地址分配响应中还携带所述掩码, 以使所述至 少一个 BRAS根据所述一个公网 IP地址以及所述掩码获取一段公网 IP地址。
15、 根据权利要求 11或 12所述的方法, 其特征在于, 所述设置备用 公网地址池的设备为远程用户拨号认证 RADIUS服务器;
所述设备根据所述 BRAS的标识信息, 在所述备用公网地址池中为每 个所述 BRAS分配至少一个公网互联网协议 IP地址, 包括:
所述 RADIUS服务器根据所述 BRAS的标识信息, 在所述备用公网地 址池中为每个所述 BRAS分配一段公网 IP地址;
所述设备向所述至少一个 BRAS返回地址分配响应, 包括:
所述 RADIUS服务器向所述至少一个 BRAS返回所述地址分配响应, 所述地址分配响应中携带所述一段公网 IP地址。
16、 一种宽带远程接入服务器, 其特征在于, 所述 BRAS上设有运营
商级网络地址转换 CGN, 包括:
检测单元, 用于检测本地设置的运营商级网络地址转换 CGN故障; 接收器, 用于接收终端发送的访问请求;
处理单元, 用于为所述终端分配公网 IP地址。
17、 根据权利要求 16所述的宽带远程接入服务器, 其特征在于, 还包 括:
发送器, 用于向设置备用公网地址池的设备发送地址分配请求, 所述 地址分配请求中携带所述 BRAS的标识信息;
所述接收器还用于: 接收所述设置备用公网地址池的设备返回的地址 分配响应, 所述地址分配响应中携带至少一个公网互联网协议 IP地址; 所述处理单元具体用于: 从所述至少一个公网 IP地址中为所述终端分 配公网 IP地址。
18、 根据权利要求 16所述的宽带远程接入服务器, 其特征在于, 备用公网地址池, 用于存储备用公网 IP地址;
所述处理单元具体用于: 从本地配置所述备用公网地址池中为所述终 端分配公网 IP地址。
19、 根据权利要求 17所述的宽带远程接入服务器, 其特征在于, 所述 备用公网地址池为所述 BRAS和网络中其他至少一个 BRAS提供备用的公 网 IP地址。
20、根据权利要求 17或 19所述的宽带远程接入服务器,其特征在于, 所述设置备用公网地址池的设备为动态主机设置协议 DHCP服务器或者网 络中具有 DHCP服务器功能的 BRAS, 则所述接收器接收的所述地址分配 响应中携带所述 DHCP服务器或者网络中具有 DHCP服务器功能的 BRAS 为所述 BRAS分配的一个公网 IP地址。
21、 根据权利要求 20所述的宽带远程接入服务器, 其特征在于, 所述 发送器发送的所述地址分配请求中还包括: 公网 IP地址段请求标识, 所述 公网 IP地址段请求标识用于请求获取一段公网 IP地址;
所述接收器接收的所述地址分配响应中还携带所述 DHCP服务器或者 网络中具有 DHCP服务器功能的 BRAS为所述一个公网 IP地址分配的掩码; 所述处理单元还用于: 根据所述一个公网 IP地址以及所述掩码, 获取 所述一个公网 IP地址和所述掩码对应的一段公网 IP地址。
22、根据权利要求 17或 19所述的宽带远程接入服务器,其特征在于, 所述设置备用公网地址池的设备为远程用户拨号认证 RADIUS服务器, 则 所述接收器接收的所述地址分配响应中携带所述 RADIUS 服务器为所述 BRAS分配的一段公网 IP地址。
23、根据权利要求 21或 22所述的宽带远程接入服务器,其特征在于, 所述发送器还用于: 发布所述一段公网 IP地址的聚合路由信息。
24、 根据权利要求 23所述的宽带远程接入服务器, 其特征在于, 所述 检测单元还用于: 检测所述 CGN故障恢复;
所述发送器还用于: 撤销所述聚合路由信息。
25、根据权利要求 16-24任一项所述的宽带远程接入服务器,其特征在 于, 所述接收器还用于: 接收所述终端发送的访问请求;
所述处理单元还用于: 在所述 BRAS上的私网地址池中为所述终端分 配私网 IP地址;
所述处理单元还用于: 在所述检测单元检测到所述 CGN故障, 则在所 述宽带远程接入服务器上删除所述终端的用户表项, 以使所述终端重新发 送访问请求。
26、 一种动态主机设置协议服务器, 其特征在于, 适用于具有宽带远 程接入服务器 BRAS 的网络, 所述 BRAS 上设有运营商级网络地址转换 CGN, 包括:
备用公网地址池, 用于存储备用公网 IP地址;
接收器, 用于接收至少一个所述 BRAS发送的地址分配请求, 所述地 址分配请求中携带所述 BRAS的标识信息;
处理单元, 用于根据所述 BRAS的标识信息, 在所述备用公网地址池 中为每个所述 BRAS分配至少一个公网互联网协议 IP地址;
发送器, 用于向所述至少一个 BRAS返回地址分配响应, 所述地址分 配响应中携带至少一个公网互联网协议 IP地址。
27、 根据权利要求 26 所述的动态主机设置协议服务器, 其特征在于, 址。
28、 根据权利要求 26或 27所述的动态主机设置协议服务器, 其特征 在于, 所述处理单元具体用于: 根据所述 BRAS的标识信息, 在所述备用
公网地址池中为每个所述 BRAS分配一个公网 IP地址;
所述发送器向所述至少一个 BRAS返回地址分配响应中携带所述处理 单元分配的所述一个公网 IP地址。
29、 根据权利要求 28 所述的动态主机设置协议服务器, 其特征在于, 所述接收器接收的所述地址分配请求中还包括: 公网 IP地址段请求标识, 所述公网 IP地址段请求标识用于请求获取一段公网 IP地址;
所述处理单元还用于: 为所述一个公网 IP地址分配掩码;
所述发送器向所述至少一个 BRAS返回地址分配响应中还携带所述掩 码, 以使所述至少一个 BRAS根据所述一个公网 IP地址以及所述掩码获取 一段公网 IP地址。
30、 一种远程用户拨号认证服务器, 其特征在于, 适用于具有宽带远 程接入服务器 BRAS 的网络, 所述 BRAS 上设有运营商级网络地址转换 CGN, 包括:
备用公网地址池, 用于存储备用公网 IP地址;
接收器, 用于接收至少一个所述 BRAS发送的地址分配请求, 所述地 址分配请求中携带所述 BRAS的标识信息;
处理单元, 用于根据所述 BRAS的标识信息, 在所述备用公网地址池 中为每个所述 BRAS分配至少一个公网互联网协议 IP地址;
发送器, 用于向所述至少一个 BRAS返回地址分配响应, 所述地址分 配响应中携带至少一个公网互联网协议 IP地址。
31、 根据权利要求 30 所述的远程用户拨号认证服务器, 其特征在于, 所述处理单元具体用于: 根据所述 BRAS的标识信息, 在所述备用公网地 址池中为每个所述 BRAS分配一段公网 IP地址;
所述发送器向所述至少一个 BRAS返回所述地址分配响应中携带所述 一段公网 IP地址。
32、 一种宽带远程接入服务器, 其特征在于, 具有动态主机设置协议 DHCP服务器功能, 适用于具有宽带远程接入服务器 BRAS的网络, 所述 BRAS上设有运营商级网络地址转换 CGN, 包括:
备用公网地址池, 用于存储备用公网 IP地址;
接收器, 用于接收至少一个所述 BRAS发送的地址分配请求, 所述地 址分配请求中携带所述 BRAS的标识信息;
处理单元, 用于根据所述 BRAS的标识信息, 在所述备用公网地址池 中为每个所述 BRAS分配至少一个公网互联网协议 IP地址;
发送器, 用于向所述至少一个 BRAS返回地址分配响应, 所述地址分 配响应中携带至少一个公网互联网协议 IP地址。
33、 根据权利要求 32所述的宽带远程接入服务器, 其特征在于, 所述 处理单元具体用于: 根据所述 BRAS的标识信息, 在所述备用公网地址池 中为每个所述 BRAS分配一段公网 IP地址;
所述发送器向所述至少一个 BRAS返回所述地址分配响应中携带所述 一段公网 IP地址。
34、一种地址分配系统,其特征在于, 包括:至少一个如权利要求 16-25 任一项所述的宽带远程接入服务器和设置备用公网地址池的设备, 所述
BRAS上设有运营商级网络地址转换 CGN;
所述设备为如权利要求 26-29任一项所述的动态主机设置协议服务器, 或者为如权利要求 30-或 31所述的远程用户拨号认证服务器, 或者为至少一 台具有 DHCP服务器功能的如权利要求 32或 33所述的宽带远程接入服务器。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP13782447.0A EP2843910B1 (en) | 2012-04-28 | 2013-04-08 | Address allocation method, device, and system |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210132571.1A CN102647486B (zh) | 2012-04-28 | 2012-04-28 | 地址分配方法、设备和系统 |
CN201210132571.1 | 2012-04-28 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013159641A1 true WO2013159641A1 (zh) | 2013-10-31 |
Family
ID=46660059
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/073855 WO2013159641A1 (zh) | 2012-04-28 | 2013-04-08 | 地址分配方法、设备和系统 |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP2843910B1 (zh) |
CN (2) | CN102647486B (zh) |
WO (1) | WO2013159641A1 (zh) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3185473A4 (en) * | 2014-08-21 | 2017-08-16 | ZTE Corporation | Backup protection method and device for carrier grade nat (cgn) |
CN112995349A (zh) * | 2019-12-12 | 2021-06-18 | 中兴通讯股份有限公司 | 地址管理方法、服务器和计算机可读存储介质 |
CN113382468A (zh) * | 2021-06-24 | 2021-09-10 | 深圳艾灵网络有限公司 | 本地网络设备的地址分配方法、电子设备及存储介质 |
CN113472676A (zh) * | 2020-03-31 | 2021-10-01 | 华为技术有限公司 | 一种网络接入控制方法、sdf、cp、up以及网络系统 |
CN113507410A (zh) * | 2021-06-29 | 2021-10-15 | 新华三信息安全技术有限公司 | 一种cgn备份方法及装置 |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102647486B (zh) * | 2012-04-28 | 2015-11-25 | 华为技术有限公司 | 地址分配方法、设备和系统 |
CN103856572B (zh) * | 2012-11-30 | 2019-04-09 | 中兴通讯股份有限公司 | 一种终端设备续约ip地址的方法与家庭网关 |
CN104348927A (zh) * | 2013-07-31 | 2015-02-11 | 北京华为数字技术有限公司 | 地址段分配方法及设备 |
CN103731515A (zh) * | 2014-01-15 | 2014-04-16 | 中国联合网络通信集团有限公司 | 一种ip溯源方法、设备及系统 |
CN105791452A (zh) * | 2014-12-23 | 2016-07-20 | 中兴通讯股份有限公司 | 获取nat信息的方法及bras设备 |
CN106331197A (zh) * | 2015-06-29 | 2017-01-11 | 中兴通讯股份有限公司 | 管理专线用户的方法、宽带接入服务器及管理服务器 |
CN107017998B (zh) * | 2016-01-27 | 2020-04-07 | 中国电信股份有限公司 | 用于实现cgn柔性备份的方法和系统 |
CN107819889B (zh) * | 2016-09-14 | 2021-09-07 | 华为技术有限公司 | 一种网络地址转换nat的方法、设备及系统 |
CN108124022B (zh) * | 2016-11-28 | 2020-04-14 | 中国移动通信有限公司研究院 | 一种网络地址转换管理方法及装置 |
CN106899704A (zh) * | 2016-12-21 | 2017-06-27 | 新华三技术有限公司 | 一种用户地址分配的方法和装置 |
CN107547688B (zh) * | 2017-09-06 | 2020-07-10 | 新华三技术有限公司 | 一种报文处理方法和装置 |
CN107659436B (zh) * | 2017-09-15 | 2020-12-29 | 新华三技术有限公司 | 一种防止业务中断的方法及装置 |
CN107682226B (zh) * | 2017-10-19 | 2020-05-12 | 新华三技术有限公司 | Nat板的监控方法及装置 |
CN110120988B (zh) | 2018-02-07 | 2021-03-30 | 华为技术有限公司 | 地址管理方法、设备及系统 |
CN108933845A (zh) * | 2018-06-20 | 2018-12-04 | 新华三技术有限公司 | 一种公网ip地址分配方法和装置 |
CN108712522B (zh) * | 2018-07-20 | 2021-06-29 | 新华三技术有限公司 | Ip地址分配方法和装置 |
DE202019104412U1 (de) | 2018-08-17 | 2019-08-16 | Eckold Gmbh & Co. Kg | Vorrichtung zum Fügen zweier Bauteile |
CN110048953B (zh) * | 2019-04-30 | 2021-11-23 | 新华三技术有限公司 | 一种负载分担方法、装置和路由器 |
CN110062063B (zh) * | 2019-05-30 | 2022-03-29 | 中磊电子(苏州)有限公司 | 网络地址管理装置及方法 |
CN113810861A (zh) * | 2021-08-18 | 2021-12-17 | 善理通益信息科技(深圳)有限公司 | 一种可变ip的集群对讲系统地址同步方法、装置及载体 |
CN114710465B (zh) * | 2022-04-07 | 2023-05-02 | 中国联合网络通信集团有限公司 | 网络地址转换方法、装置、设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101765232A (zh) * | 2008-12-25 | 2010-06-30 | 中兴通讯股份有限公司 | Dsl网络接入方法和系统、以及宽带远程接入服务器 |
CN101888389A (zh) * | 2010-07-19 | 2010-11-17 | 中国电信股份有限公司 | 一种实现icp联盟统一认证的方法和系统 |
CN102340546A (zh) * | 2010-07-16 | 2012-02-01 | 中国电信股份有限公司 | IPv6地址分配方法及系统 |
CN102647486A (zh) * | 2012-04-28 | 2012-08-22 | 华为技术有限公司 | 地址分配方法、设备和系统 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1817894B1 (en) * | 2004-11-24 | 2011-03-16 | Koninklijke Philips Electronics N.V. | An internet-protocol based telemetry patient monitoring system |
CN1921496B (zh) * | 2005-08-24 | 2010-04-14 | 中兴通讯股份有限公司 | 一种dhcp客户端识别dhcp服务器的方法 |
CN102025798B (zh) * | 2010-12-15 | 2013-12-04 | 华为技术有限公司 | 地址分配处理方法、装置和系统 |
-
2012
- 2012-04-28 CN CN201210132571.1A patent/CN102647486B/zh active Active
- 2012-04-28 CN CN201510755833.3A patent/CN105245638B/zh active Active
-
2013
- 2013-04-08 EP EP13782447.0A patent/EP2843910B1/en active Active
- 2013-04-08 WO PCT/CN2013/073855 patent/WO2013159641A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101765232A (zh) * | 2008-12-25 | 2010-06-30 | 中兴通讯股份有限公司 | Dsl网络接入方法和系统、以及宽带远程接入服务器 |
CN102340546A (zh) * | 2010-07-16 | 2012-02-01 | 中国电信股份有限公司 | IPv6地址分配方法及系统 |
CN101888389A (zh) * | 2010-07-19 | 2010-11-17 | 中国电信股份有限公司 | 一种实现icp联盟统一认证的方法和系统 |
CN102647486A (zh) * | 2012-04-28 | 2012-08-22 | 华为技术有限公司 | 地址分配方法、设备和系统 |
Non-Patent Citations (1)
Title |
---|
See also references of EP2843910A4 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3185473A4 (en) * | 2014-08-21 | 2017-08-16 | ZTE Corporation | Backup protection method and device for carrier grade nat (cgn) |
CN112995349A (zh) * | 2019-12-12 | 2021-06-18 | 中兴通讯股份有限公司 | 地址管理方法、服务器和计算机可读存储介质 |
CN112995349B (zh) * | 2019-12-12 | 2023-07-04 | 中兴通讯股份有限公司 | 地址管理方法、服务器和计算机可读存储介质 |
CN113472676A (zh) * | 2020-03-31 | 2021-10-01 | 华为技术有限公司 | 一种网络接入控制方法、sdf、cp、up以及网络系统 |
CN113382468A (zh) * | 2021-06-24 | 2021-09-10 | 深圳艾灵网络有限公司 | 本地网络设备的地址分配方法、电子设备及存储介质 |
CN113507410A (zh) * | 2021-06-29 | 2021-10-15 | 新华三信息安全技术有限公司 | 一种cgn备份方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
EP2843910A1 (en) | 2015-03-04 |
CN105245638A (zh) | 2016-01-13 |
EP2843910B1 (en) | 2017-09-06 |
CN102647486A (zh) | 2012-08-22 |
CN102647486B (zh) | 2015-11-25 |
CN105245638B (zh) | 2019-06-21 |
EP2843910A4 (en) | 2015-08-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013159641A1 (zh) | 地址分配方法、设备和系统 | |
EP2919444B1 (en) | Method, relay device, and system for acquiring internet protocol address in network | |
US8539055B2 (en) | Device abstraction in autonomous wireless local area networks | |
CN101330531B (zh) | Dhcp地址分配处理方法和dhcp中继 | |
US9807603B2 (en) | Method and system for WiBro network interworking in wireless terminal | |
WO2012079474A1 (zh) | 地址分配处理方法、装置和系统 | |
CN102984295B (zh) | 一种移动终端及其地址分配方法 | |
WO2011147353A1 (zh) | 一种报文发送方法及装置 | |
WO2013123763A1 (zh) | 家庭网关动态配置ipv6的方法 | |
KR101620479B1 (ko) | 다중 인터넷 액세스를 제공하기 위한 방법 및 게이트웨이 | |
WO2013064049A1 (zh) | 一种移动节点动态获取位置标识的方法及lisp网络 | |
CN101873320B (zh) | 一种基于DHCPv6中继的客户端信息确认方法及其装置 | |
WO2011000258A1 (zh) | 基于动态主机分配协议的配置信息的获取方法和装置 | |
CN103384282A (zh) | 一种获取ipv6nd地址的方法及bars | |
US8705471B2 (en) | Method and system for implementing ID/locator mapping | |
CN113938427A (zh) | 通信方法及系统、路由节点 | |
WO2011120365A1 (zh) | 多穴终端建立连接的方法和系统 | |
CN102244689B (zh) | 远程ip地址获取方法及设备 | |
JP3823674B2 (ja) | プロトコル変換を伴う通信方法および通信制御装置 | |
WO2013178164A1 (zh) | IPv6域名服务器DNS地址分配、获取方法及装置 | |
US10164937B2 (en) | Method for processing raw IP packet and device thereof | |
JP2004207788A (ja) | アクセス制御方法、アクセス制御装置およびその装置を用いたアクセス制御システム | |
EP2485450A1 (en) | Method and system for realizing information interaction in next generation network | |
WO2012106984A1 (zh) | 一种通过可信任的固网接入移动核心网络的方法和系统 | |
CN108243078B (zh) | 地址分配方法和装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13782447 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
REEP | Request for entry into the european phase |
Ref document number: 2013782447 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2013782447 Country of ref document: EP |