CN108933845A - A kind of public network IP address distribution method and device - Google Patents
A kind of public network IP address distribution method and device Download PDFInfo
- Publication number
- CN108933845A CN108933845A CN201810635989.1A CN201810635989A CN108933845A CN 108933845 A CN108933845 A CN 108933845A CN 201810635989 A CN201810635989 A CN 201810635989A CN 108933845 A CN108933845 A CN 108933845A
- Authority
- CN
- China
- Prior art keywords
- address
- public network
- port
- dhcp server
- range
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000005540 biological transmission Effects 0.000 claims description 21
- 238000012544 monitoring process Methods 0.000 claims description 10
- 238000001914 filtration Methods 0.000 claims description 3
- 238000012216 screening Methods 0.000 claims description 3
- 239000002699 waste material Substances 0.000 abstract description 2
- 238000004891 communication Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- 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/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/2517—Translation of Internet protocol [IP] addresses using port numbers
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The application provides a kind of public network IP address distribution method and device, this method can be applied to BRAS equipment, comprising: sends public network IP address application request to DHCP server side;It receives DHCP server side and responds the N number of public network IP address and the range of port number for being attached to N number of public network IP address that the request returns, N is the integer more than or equal to 1;From N number of public network IP address and to be attached in the range of port number of N number of public network IP address be that online user terminal distribution public network IP address and port block, each port block are made of the port numbers in the range of port number;When distributing to the quantity of port numbers of user terminal and reaching given threshold, public network IP address application request is sent to DHCP server side again.BRAS equipment can waste or insufficient on demand to DHCP server side applied address range as public network IP address in this method to avoid public network IP address.
Description
Technical field
This application involves NAT444 technical field more particularly to a kind of public network IP address distribution method and devices.
Background technique
With the fast development of internet, the extreme of IP (Internet Protocol, Internet protocol) address resource is short
It lacks and seriously constrains the development of internet.Currently, NAT (Network Address Translation, network address translation) is
The technical way for solving the problems, such as this, with the continuous development of NAT technology, carrier-class NAT (NAT444) technology is met the tendency of
And give birth to, become current widely used NAT technology.
The port of each public network is divided into multiple independent port blocks by NAT444 technology, each port block is by least one
A port numbers composition.When the message that user terminal issues passes through NAT444 gateway, NAT444 gateway can be the user terminal
Private net address distributes public network port number of the port block as the user terminal, the exclusive port block being assigned to of each private net address.
Summary of the invention
In view of this, the application provides a kind of public network IP address distribution method and device, to solve public network IP address wave
Take and insufficient problem.
Specifically, the application is achieved by the following technical solution:
The application is in a first aspect, provide a kind of public network IP address distribution method, applied to BRAS equipment, this method packet
It includes:
Public network IP address application request is sent to DHCP server side;
It receives the DHCP server side and responds the N number of public network IP address and be attached to N number of public network that the request returns
The range of port number of IP address, N are the integer more than or equal to 1;
From N number of public network IP address and to be attached in the range of port number of N number of public network IP address be online user
Terminal distribution public network IP address and port block, each port block are made of the port numbers in the range of port number;
When distributing to the quantity of port numbers of user terminal and reaching given threshold, public network is sent to DHCP server side again
IP address application request.
The application second aspect provides a kind of public network IP address distribution method, is applied to DHCP server side, this method packet
It includes:
Receive the public network IP address application request that BRAS equipment is sent;
N number of public network IP address is filtered out from the address pool of this DHCP server side and is attached to N number of public network IP address
Range of port number;N number of public network IP address is unoccupied, alternatively, N number of public network IP address is occupied and is attached to
The range of port number of N number of public network IP address is unoccupied;
The N number of public network IP address filtered out and the range of port number for being attached to N number of public network IP address are sent to institute
State BRAS equipment.
The application third aspect provides a kind of BRAS equipment, has the function for the method for realizing that above-mentioned first aspect provides
Energy.The function can also execute corresponding software realization by hardware realization by hardware.The hardware or software package
Include one or more modules corresponding with above-mentioned function or unit.
In a kind of possible implementation, the BRAS equipment includes:
Transmission unit, for sending public network IP address application request to DHCP server side;
Receiving unit responds N number of public network IP address and attached that the request returns for receiving the DHCP server side
Belong to the range of port number of N number of public network IP address, N is the integer more than or equal to 1;
Allocation unit, for from N number of public network IP address and being attached in the range of port number of N number of public network IP address
Public network IP address and port block are distributed for online user terminal, each port block is by the port numbers group in the range of port number
At;
The transmission unit is also used to when distributing to the quantity of port numbers of user terminal and reaching given threshold, again
Public network IP address application request is sent to DHCP server side.
In alternatively possible implementation, the BRAS equipment includes communication interface, processor, memory and bus,
It is connected with each other between the communication interface, the processor and the memory by bus;The processor is by reading institute
The logical order stored in memory is stated, the public network IP address distribution method that the application first aspect provides is executed.
The application fourth aspect provides a kind of DHCP server side, has the method for realizing that above-mentioned second aspect provides
Function.The function can also execute corresponding software realization by hardware realization by hardware.The hardware or software
Including one or more modules corresponding with above-mentioned function or unit.
In a kind of possible implementation, the DHCP server side includes:
Receiving unit, for receiving the public network IP address application request of BRAS equipment transmission;
Screening unit, for filtering out N number of public network IP address from the address pool of this DHCP server side and being attached to the N
The range of port number of a public network IP address;N number of public network IP address is unoccupied, alternatively, N number of public network IP address by
It occupies and the range of port number for being attached to N number of public network IP address is unoccupied;
Transmission unit, for by the N number of public network IP address filtered out and the port numbers for being attached to N number of public network IP address
Range is sent to the BRAS equipment.
In alternatively possible implementation, the equipment where the DHCP server side may include communication interface, processing
Device, memory and bus are connected with each other between the communication interface, the processor and the memory by bus;It is described
Processor executes the public network IP address point that the application second aspect provides by reading the logical order stored in the memory
Method of completing the square.
Using the technical solution of the application, BRAS equipment can be on demand to DHCP server side applied address range as public network
IP address, the public network IP address resources that can be avoided the occurrence of as far as possible in certain BRAS equipments in this way have been used up, and certain BRAS are set
The standby also available free situation of upper public network IP address resources, to realize between different BRAS equipments or same
Address resource is shared between the different business of BRAS equipment, improves the utilization rate of public network IP address.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of NAT444 group network system in the prior art;
The schematic diagram of Fig. 2 a, Fig. 2 b and when Fig. 2 c NAT444 group network system provided by the embodiments of the present application;
Fig. 3 is a kind of flow chart of public network IP address distribution method provided by the embodiments of the present application;
Fig. 4 is the flow chart of another public network IP address distribution method provided by the embodiments of the present application;
Fig. 5 is the functional block diagram of BRAS equipment provided by the embodiments of the present application;
Fig. 6 is the hardware architecture diagram of BRAS equipment provided by the embodiments of the present application;
Fig. 7 is the functional block diagram of DHCP server side provided by the embodiments of the present application;
Fig. 8 is the hardware architecture diagram of equipment where DHCP server side provided by the embodiments of the present application.
Specific embodiment
The application is described in detail below in conjunction with attached drawing.
It is a kind of schematic diagram of existing NAT444 group network system, which includes user terminal, BRAS referring to Fig. 1
(Broadband Remote Access Server, long-range BAS Broadband Access Server) equipment, NAT444 gateway, aaa server
And log server;Wherein NAT444 gateway can separate independent deployment with BRAS equipment, can also be used as a plug-in card and put
On BRAS equipment (as shown in Figure 1).The function of NAT444 gateway is to distribute public network IP address, detailed process for user terminal
It is as follows:
1) under initial situation, NAT444 gateway has needed to configure address range in group of addresses, port block size and available
Range of port number, and divided port block according to above configured, the initial use state of all of the port block is idle (empty
It is not busy) state;
2) when BRAS equipment detects that user terminal initiates online request, and the online request passes through aaa server
After certification and authorization (usual aaa server can authorize private network IP address), BRAS equipment is with can will authorizing obtained private network IP
User terminal is distributed in location, and sends the online notice of user to NAT444 gateway, includes the private network IP of user terminal in the notice
Address (such as 10.0.0.1);
3) NAT444 gateway is that the private network IP address of the user terminal distributes public network IP address and with being attached to the public network IP
The idle port block of location notifies allocation result (such as 212.0.0.1:1-255) to BRAS equipment, and records port bulk
State is active (activation) state;
Later, BRAS equipment can will be on the i.e. corresponding port block message of public network IP address that distribute to online user terminal
Aaa server is offered, aaa server is safeguarded the relationship between user and public network IP address and port block, mentioned to network administrator
For the service of easily tracing to the source;Log server can receive the log of NAT444 gateway generation, record public network IP address and port
History is recycled in the distribution of block, facilitates the behavior auditing of user terminal.
In above scheme, NAT444 gateway needs the address range in pre-configured group of addresses, these addresses cannot
It is used by other application.And in practical business, if the address configured in group of addresses is excessive, address will be caused to waste;If
The address configured in group of addresses is very few, then it is subsequent when having more online user terminal application public network IP address, it will cause
Address shortage.
Address resource is made full use of to realize, the embodiment of the present application disposes DHCP (Dynamic in BRAS equipment
Host Configuration Protocol, dynamic host configuration protocol) client, and disposed in NAT444 networking
DHCP server side;NAT444 gateway does not need the configuration address range in group of addresses, and BRAS equipment can pass through dhcp client
To DHCP server side on-demand application address range as public network IP address.
About the deployed position and address range of DHCP server side, present applicant proposes following three kinds possible NAT444 groups
Net system:
1) the first NAT444 group network system may include a DHCP server side;Each BRAS equipment in system
To the DHCP server side applied address range, each BRAS equipment shares identical address resource for unification.The embodiment of the present application is unlimited
The deployed position of DHCP server side processed, such as shown in Figure 2 a, which can be deployed in one of BRAS
In equipment.
2) second of NAT444 group network system may include at least two DHCP server sides, and at least two DHCP takes
There are intersections for the address pool at business end;So-called address pool shows as the address pool of at least two DHCP server side there are intersection
Address field is identical or part is identical, and each BRAS equipment shares the address resource in the intersection.As an example, a kind of
The schematic diagram of specific NAT444 group network system shown in b, can dispose a DHCP clothes referring to fig. 2 in each BRAS equipment
Business end, each BRAS equipment pass through the dhcp client of itself to the DHCP server side application public network IP address of itself.In Fig. 2 b
Shown in NAT444 group network system, the service condition of synchronizing address resource is needed between each BRAS equipment, to avoid samely
Location resource is used simultaneously by multiple BRAS equipments.
3) the third NAT444 group network system may include at least two DHCP server sides, and at least two DHCP takes
Intersection is not present in the address pool at business end.As an example, a kind of schematic diagram of specific NAT444 group network system c referring to fig. 2
It is shown, a DHCP server side, the address field of the address pool of each DHCP server side can be disposed in each BRAS equipment
Different, the different business in a BRAS equipment can share the address pool money of the DHCP server side in the BRAS equipment
Source.
NAT444 group network system based on above-mentioned offer below carries out the application public network IP address distribution embodiment detailed
Description.
It is one embodiment flow chart of the application public network IP address distribution method referring to Fig. 3, this method can be applied to
Any BRAS equipment in NAT444 group network system, such as any BRAS equipment in Fig. 2 a, Fig. 2 b and Fig. 2 c.As shown in figure 3,
Method includes the following steps:
Step 301:BRAS equipment sends public network IP address application request to DHCP server side.
Here, BRAS equipment can initiate public network IP address application request by dhcp client.
Step 302;BRAS equipment receives DHCP server side and responds N number of public network IP address that above-mentioned request returns and attached
In the range of port number of N number of public network IP address, N is the integer more than or equal to 1.
In one example, DHCP server side can be using public network IP address as allocation unit, i.e., the same public network IP address
It is assigned to only a BRAS equipment, the address for having distributed to one of BRAS equipment is no longer allocated to other BRAS equipments,
The address of BRAS equipment release can reallocate to other BRAS equipments.For example DHCP server side can be returned to some BRAS equipment
4 public network IP address 211.1.1.0-211.1.1.3 are returned, 65535 attached port numbers of this 4 addresses are all supplied to the BRAS
Equipment uses.
In another example, DHCP server side can also be using port block as allocation unit, i.e., the same public network IP address
Multiple BRAS equipments can be distributed to, but the same port block for being attached to the same public network IP address can only distribute to one
BRAS equipment.Such as when the port block size of setting is 255, DHCP server side can return to 4 public affairs to some BRAS equipment
Net IP address: 211.1.1.1:1~255,211.1.1.1:256~510,211.1.1.2:1~255,211.1.1.3:1~
255。
N in step 302 can be determined by BRAS equipment, can also be determined by DHCP server side.
As a kind of mode, if N is determined by BRAS equipment, can be carried in above-mentioned public network IP address application request
The public network IP address number N of BRAS equipment expectation application.It in one example, can be by being taken in public network IP address application request
Band subnet mask indicates the public network IP address number of BRAS equipment expectation application by the length of the subnet mask.For example, subnet is covered
Code is 255.255.255.252, and mask-length 30 represents expectation and applies for 4 addresses;Subnet mask is
255.255.255.248 mask-length 29 represents expectation and applies for 8 addresses;And so on subnet mask be
255.255.255.0, mask-length 24 represent expectation and apply for 256 addresses.
Step 303:BRAS equipment is from N number of public network IP address and is attached to the port numbers model of N number of public network IP address
Public network IP address and port block are distributed for online user terminal in enclosing, each port block is by the port numbers in the range of port number
Composition.
Here user terminal can be IPOE, and (Internet Protocol over Ethernet, holds over ethernet
Carry Internet protocol) user terminal or PPPOE (Point to Point Protocol over Ethernet, in ether
Online carrying point-to-point connection protocol) user terminal, i.e. the application public network IP address distribution method can assist with existing IPOE
View or PPPOE agreement are used in combination.
In the embodiment of the present application, same public network IP address, therefore, the same public affairs can be distributed for multiple online user terminals
Net IP address, which can correspond to multiple private network IP address, (can be one-to-many pass between public network IP address and private network IP address
System);But for each private network IP address for, each private network IP address only corresponds to public network IP address (i.e. private network IP
It is one-to-one relationship between location and public network IP address), and in the subsequent online user that represent for the private network IP address point
When with one or more port blocks, and choose from the port block of corresponding public network IP address, and cannot be from other public network IPs
It is chosen in the port block of address.
Step 304: when distributing to the quantity of port numbers of user terminal and reaching given threshold, BRAS equipment again to
DHCP server side sends public network IP address application request.
As a kind of implementation, BRAS equipment can determine the port numbers for distributing to user terminal by following steps
Whether quantity reaches given threshold: according to the range of port number for being attached to N number of public network IP address received in step 302 and in advance
If port block size, determine and be attached to the port block sum that the range of port number of N number of public network IP address includes;When monitoring
When the ratio of the quantity and port block sum of distributing to the port block of user terminal reaches given threshold, user is distributed in determination
The quantity of the port numbers of terminal reaches given threshold.
Such as, it is assumed that receiving 4 public network IP address from DHCP server side in step 302 is 211.1.1.0-211.1.1.3,
The available port range that BRAS equipment defines is 0~10000, and port block size is 1000, and port block is 80% using threshold value,
The sum for the available port number that then 4 public network IP address include is 4*10000=40000, and corresponding port block sum is
40000/1000=40 indicates to distribute to when distributing to the quantity of port block of user terminal and reaching 40*80%=32
The quantity of the port numbers of user terminal reaches given threshold.
For another example, it is assumed that in step 302 from DHCP server side receive 4 public network IP address be 211.1.1.1:1~255,
211.1.1.1:256~510,211.1.1.2:1~255,211.1.1.3:1~255, then BRAS equipment receives 4 port blocks,
When the quantity for the port block for distributing to user terminal reachesIt is a (hereIt indicates to be rounded fortune downwards
Calculate) when, indicate that the quantity for the port numbers for distributing to user terminal reaches given threshold.
In the embodiment of the present application, when the quantity for the port numbers for distributing to user terminal reaches given threshold, i.e. address shortage
When, BRAS equipment can send public network IP address application request to DHCP server side again, apply for new public network IP address.With
And when user terminal is offline, BRAS equipment can recycle the public network IP address and port block for distributing to user terminal, when originally setting
When the quantity of standby idle port numbers reaches given threshold, BRAS equipment can send public network IP address release to DHCP server side
Request may include public network IP address to be recycled and the range of port number for being attached to the public network IP address in release request.
So far, process shown in Fig. 3 is completed.
From examples detailed above as it can be seen that BRAS equipment can be by port block threshold triggers dhcp client to DHCP server side Shen
Please address range as public network IP address, public network IP address resources in certain BRAS equipments can have been avoided the occurrence of as far as possible so
It uses up, and the situation that the public network IP address resources in certain BRAS equipments are also available free, to realize in different BRAS equipments
Between or between the different business of same BRAS equipment share address resource, improve the utilization rate of public network IP address.
It referring to fig. 4, is another embodiment flow chart of the application public network IP address distribution method, this method can be applied
Any DHCP server side in NAT444 group network system, such as any DHCP server side in Fig. 2 a, Fig. 2 b and Fig. 2 c.Such as figure
Shown in 4, method includes the following steps:
Step 401:DHCP server-side receives the public network IP address application request that BRAS equipment is sent.
Step 402:DHCP server-side filters out N number of public network IP address and attached from the address pool of this DHCP server side
In the range of port number of N number of public network IP address;N number of public network IP address is unoccupied, alternatively, N number of public network IP address is
Range of port number that is occupied and being attached to N number of public network IP address is unoccupied.
In the embodiment of the present application, DHCP server side can also be with port block using public network IP address as allocation unit
Allocation unit.
In one example, if using public network IP address as allocation unit, the same public network IP address under this mode
A BRAS equipment is distributed to, the address for having distributed to one of BRAS equipment is no longer allocated to other BRAS equipments, then walks
DHCP server side can filter out unappropriated N number of public network IP address from address pool in rapid 402.DHCP server side can shift to an earlier date
Create an address utilization table, and the real-time servicing address utilization table.The address utilization table may include but
It is not limited to following information: public network IP address and use state;Wherein
Public network IP address, the address resource that the address pool for this DHCP server side includes;
Use state, for indicating whether corresponding public network IP address is used.
It optionally, can also include device id (mark) in address utilization table, for indicating corresponding public network IP
Location is used by which BRAS equipment.
In the initial state, the use state of each public network IP address is idle state.Address under original state uses
The example of situation table is as shown in table 1.
Table 1
Public network IP address | Device id | Use state |
211.1.1.0 | null | idle |
211.1.1.1 | null | idle |
…… | …… | …… |
For the public network IP address filtered out, DHCP server side can be by its use state in address utilization table
It is revised as active state, as shown in table 2.
Table 2
Public network IP address | Device id | Use state |
211.1.1.0 | 1.1.1.1 | active |
211.1.1.1 | null | idle |
…… | …… | …… |
In another example, if using port block as allocation unit, the same public network IP address can be under this mode
The same port block distributed to multiple BRAS equipments, but be attached to the same public network IP address can only distribute to a BRAS and set
Standby, then DHCP server side can filter out unappropriated N number of port block from address pool in step 402, N number of port block institute
Attached public network IP address can be occupied, can also be unoccupied.
Same DHCP server side can safeguard an address utilization table.The address utilization table is in addition to including above
It further include port block except the public network IP address, use state and the device id (optional) that refer to.It should be noted that DHCP clothes
Business end can be that the port block size being arranged in each BRAS equipment in system needs unanimously using port block as the premise of allocation unit,
For example it is disposed as 255.The example of address utilization table under original state is as shown in table 3.
Table 3
Public network IP address | Port block | Device id | Use state |
211.1.1.0 | 1~255 | null | idle |
211.1.1.0 | 256~510 | null | idle |
211.1.1.1 | 1~255 | null | idle |
…… | …… | …… |
For the public network IP address and port block filtered out, DHCP server side can be by it in address utilization table
Use state is revised as active state, as shown in table 4.
Table 4
Step 403:DHCP server-side is by the N number of public network IP address filtered out and is attached to N number of public network IP address
Range of port number is sent to BRAS equipment.
It particularly, in second of NAT444 group network system proposed above, that is, include at least two DHCP server sides, and should
The address pool of at least two DHCP server sides is there are in the system of intersection, and DHCP server side is by the N number of public network IP filtered out
Location and the range of port number for being attached to N number of public network IP address are sent to after BRAS equipment, also execution following steps: notice
Other DHCP server sides N number of public network IP address and the range of port number for being attached to N number of public network IP address are occupied, with
It avoids other DHCP server sides by N number of public network IP address and is attached to the range of port number distribution of N number of public network IP address
To other BRAS equipments.
In the embodiment of the present application, DHCP server side can also receive BRAS equipment transmission for N number of public network IP address with
And it is attached to the public network IP address release request of the range of port number of N number of public network IP address, then notify other DHCP services
It holds N number of public network IP address and is attached to the range of port number of N number of public network IP address and be released, so that other DHCP take
Business end can by N number of public network IP address and be attached to N number of public network IP address range of port number be reassigned to it is other
BRAS equipment.
So far, process shown in Fig. 4 is completed.
By examples detailed above as it can be seen that DHCP server side can distribute address range work according to the request dynamic of BRAS equipment for it
For public network IP address, the public network IP address resources that can be avoided the occurrence of as far as possible in certain BRAS equipments in this way have been used up, and certain
The also available free situation of public network IP address resources in BRAS equipment, thus realize between different BRAS equipments or
Address resource is shared between the different business of same BRAS equipment, improves the utilization rate of public network IP address.
Method provided by the present application is described above.Device provided by the present application is described below.
It is a kind of functional block diagram of BRAS equipment provided by the embodiments of the present application referring to Fig. 5.As shown in figure 5, described
BRAS equipment may include with lower unit:
Transmission unit 501, for sending public network IP address application request to DHCP server side;
Receiving unit 502, for receive the DHCP server side respond it is described request return N number of public network IP address and
It is attached to the range of port number of N number of public network IP address, N is the integer more than or equal to 1;
Allocation unit 503, for from N number of public network IP address and being attached to the port numbers model of N number of public network IP address
Public network IP address and port block are distributed for online user terminal in enclosing, each port block is by the port numbers in the range of port number
Composition;
The transmission unit 501 is also used to when distributing to the quantity of port numbers of user terminal and reaching given threshold, weight
Newly public network IP address application request is sent to DHCP server side.
In a kind of wherein embodiment, the BRAS equipment can also include monitoring unit;
The monitoring unit, for according to the range of port number and preset port block for being attached to N number of public network IP address
Size determines the port block sum that the range of port number for being attached to N number of public network IP address includes;User terminal is distributed in monitoring
The quantity of port block and the ratio of the port block sum whether reach given threshold;
The transmission unit 501, when the monitoring unit monitors to distribute to quantity and the institute of the port block of user terminal
When stating the ratio of port block sum and reaching given threshold, public network IP address application request is sent to DHCP server side again.
In a kind of wherein embodiment, the user terminal is IPOE user terminal or PPPOE user terminal.
It should be noted that being schematical, only a kind of logic function to the division of unit in the embodiment of the present invention
It divides, there may be another division manner in actual implementation.Each functional unit in embodiments herein can integrate
In one processing unit, it is also possible to each unit and physically exists alone, one can also be integrated in two or more units
In a unit.Above-mentioned integrated unit both can take the form of hardware realization, can also be in the form of software functional units
It realizes.
So far, the description of Fig. 5 shown device is completed.
Accordingly, present invention also provides the hardware configurations of BRAS equipment shown in Fig. 5.It is mentioned referring to Fig. 6, Fig. 6 for the application
The hardware structural diagram of BRAS equipment shown in Fig. 5 of confession, the BRAS equipment include: communication interface 601, processor 602, storage
Device 603 and bus 604;Wherein, communication interface 601, processor 602, memory 603 complete mutual lead to by bus 604
Letter.
Above-mentioned bus 604 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect,
PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus
Deng.The bus 604 can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, only with a thick line in figure
It indicates, it is not intended that an only bus or a type of bus.
Communication interface 601 is used for the communication of BRAS equipment and DHCP server side.
Memory 603 may include random access memory (Random Access Memory, RAM), also may include
Nonvolatile memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory
It can also be that at least one is located remotely from the storage device of aforementioned processor.Public network IP address is can store in memory 603
Distribute logical order.
Processor 602 can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.Processor 602 is with can executing the public network IP stored in memory 603
Logical order is distributed in location, to realize above-mentioned method shown in Fig. 3.
So far, the hardware configuration description of Fig. 6 shown device is completed.
It is a kind of functional block diagram of DHCP server side provided by the embodiments of the present application referring to Fig. 7.As shown in fig. 7, institute
Stating DHCP server side may include with lower unit:
Receiving unit 701, for receiving the public network IP address application request of BRAS equipment transmission;
Screening unit 702, for filtering out N number of public network IP address from the address pool of this DHCP server side and being attached to
The range of port number of N number of public network IP address;N number of public network IP address is unoccupied, alternatively, N number of public network IP address
Range of port number that is occupied and being attached to N number of public network IP address is unoccupied;
Transmission unit 703, for by the N number of public network IP address filtered out and the end for being attached to N number of public network IP address
Slogan range is sent to the BRAS equipment.
In a kind of wherein embodiment, when in the affiliated group network system of the DHCP server side include at least two DHCP take
Business end, and there are when intersection for the address pool of at least two DHCP server side;
The transmission unit 703 is also used to by the N number of public network IP address filtered out and be attached to N number of public network IP
The range of port number of address is sent to after the BRAS equipment, notify other DHCP server sides N number of public network IP address and
The range of port number for being attached to N number of public network IP address is occupied, by N number of public network IP to avoid other DHCP server sides
Location and the range of port number for being attached to N number of public network IP address distribute to other BRAS equipments.
In a kind of wherein embodiment, the receiving unit 701, be also used to receive BRAS equipment transmission is directed to the N
A public network IP address and be attached to N number of public network IP address range of port number public network IP address release request;
The transmission unit 703 is also used to notify other DHCP server sides N number of public network IP address and is attached to the N
The range of port number of a public network IP address has been released, enable other DHCP server sides by N number of public network IP address and
The range of port number for being attached to N number of public network IP address is reassigned to other BRAS equipments.
It should be noted that being schematical, only a kind of logic function to the division of unit in the embodiment of the present invention
It divides, there may be another division manner in actual implementation.Each functional unit in embodiments herein can integrate
In one processing unit, it is also possible to each unit and physically exists alone, one can also be integrated in two or more units
In a unit.Above-mentioned integrated unit both can take the form of hardware realization, can also be in the form of software functional units
It realizes.
So far, the description of Fig. 7 shown device is completed.
Accordingly, present invention also provides the hardware configurations of equipment where DHCP server side.It is the application referring to Fig. 8, Fig. 8
The hardware structural diagram of equipment, the equipment include: communication interface 801, processor 802, deposit where the DHCP server side of offer
Reservoir 803 and bus 804;Wherein, communication interface 801, processor 802, memory 803 are completed mutual by bus 804
Communication.
Above-mentioned bus 804 can be Peripheral Component Interconnect STD bus or expanding the industrial standard structure bus etc..The bus
804 can be divided into address bus, data/address bus, control bus etc..Only to be indicated with a thick line in figure, but simultaneously convenient for indicating
Only a bus or a type of bus are not indicated.
Communication interface 801 is used for the communication of DHCP server side and BRAS equipment.
Memory 803 may include random access memory, also may include nonvolatile memory, and for example, at least one
Magnetic disk storage.Optionally, memory can also be that at least one is located remotely from the storage device of aforementioned processor.Memory
Public network IP address distribution logical order is can store in 803.
Processor 802 can be general processor, including central processing unit, network processing unit etc.;It can also be digital letter
Number processor, specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor
Logical device, discrete hardware components.Processor 802 can execute the public network IP address distribution logic stored in memory 803 and refer to
It enables, to realize above-mentioned method shown in Fig. 4.
So far, the hardware configuration description of Fig. 8 shown device is completed.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (12)
1. a kind of public network IP address distribution method, which is characterized in that be applied to Broadband Remote Access Server BRAS equipment, the party
Method includes:
Public network IP address application request is sent to dynamic host configuration protocol DHCP server-side;
It receives the DHCP server side and responds N number of public network IP address and with being attached to N number of public network IP that the request returns
The range of port number of location, N are the integer more than or equal to 1;
From N number of public network IP address and to be attached in the range of port number of N number of public network IP address be online user terminal
Distribution public network IP address and port block, each port block are made of the port numbers in the range of port number;
When distributing to the quantity of port numbers of user terminal and reaching given threshold, again with sending public network IP to DHCP server side
Location application request.
2. the method as described in claim 1, which is characterized in that described when the quantity for the port numbers for distributing to user terminal reaches
When given threshold, public network IP address application request is sent to DHCP server side again, comprising:
According to the range of port number and preset port block size for being attached to N number of public network IP address, determination is attached to N number of public affairs
The port block sum that the range of port number of net IP address includes;
When the ratio for monitoring to distribute to the quantity of port block of user terminal and the port block sum reaches given threshold,
Again public network IP address application request is sent to DHCP server side.
3. the method as described in claim 1, which is characterized in that the user terminal is to carry Internet protocol over ethernet
IPOE user terminal carries point-to-point connection protocol PPPOE user terminal over ethernet.
4. a kind of public network IP address distribution method, which is characterized in that be applied to dynamic host configuration protocol DHCP server-side, the party
Method includes:
Receive the public network IP address application request that Broadband Remote Access Server BRAS equipment is sent;
N number of public network IP address is filtered out from the address pool of this DHCP server side and is attached to the end of N number of public network IP address
Slogan range;N number of public network IP address is unoccupied, alternatively, N number of public network IP address is occupied and is attached to the N
The range of port number of a public network IP address is unoccupied;
The N number of public network IP address filtered out and the range of port number for being attached to N number of public network IP address are sent to described
BRAS equipment.
5. method as claimed in claim 4, which is characterized in that when in the affiliated group network system of the DHCP server side include at least
Two DHCP server sides, and there are when intersection for the address pool of at least two DHCP server side;In the N number of public network that will be filtered out
IP address and the range of port number for being attached to N number of public network IP address are sent to after the BRAS equipment, and the method is also
Include:
It notifies other DHCP server sides N number of public network IP address and is attached to the range of port number of N number of public network IP address
It is occupied, by N number of public network IP address and it is attached to the port numbers of N number of public network IP address to avoid other DHCP server sides
Range assignment gives other BRAS equipments.
6. method as claimed in claim 5, which is characterized in that the method also includes:
Receive the port numbers model for being directed to N number of public network IP address and being attached to N number of public network IP address that BRAS equipment is sent
The public network IP address release request enclosed;
It notifies other DHCP server sides N number of public network IP address and is attached to the range of port number of N number of public network IP address
It is released, enables other DHCP server sides by N number of public network IP address and is attached to the port of N number of public network IP address
Number range is reassigned to other BRAS equipments.
7. a kind of Broadband Remote Access Server BRAS equipment characterized by comprising
Transmission unit, for sending public network IP address application request to DHCP server side;
Receiving unit responds the N number of public network IP address and be attached to that the request returns for receiving the DHCP server side
The range of port number of N number of public network IP address, N are the integer more than or equal to 1;
Allocation unit, for from N number of public network IP address and being attached in the range of port number of N number of public network IP address and being
The user terminal distribution public network IP address and port block, each port block of line are made of the port numbers in the range of port number;
The transmission unit is also used to when distributing to the quantity of port numbers of user terminal and reaching given threshold, again to
DHCP server side sends public network IP address application request.
8. BRAS equipment as claimed in claim 7, which is characterized in that the BRAS equipment further includes monitoring unit;
The monitoring unit is attached to the range of port number and preset port block size of N number of public network IP address for basis,
Determine the port block sum that the range of port number for being attached to N number of public network IP address includes;The end of user terminal is distributed in monitoring
Whether the ratio of the quantity of buccal mass and the port block sum reaches given threshold;
The transmission unit, when the monitoring unit monitors to distribute to the quantity and the port block of the port block of user terminal
When the ratio of sum reaches given threshold, public network IP address application request is sent to DHCP server side again.
9. BRAS equipment as claimed in claim 7, which is characterized in that the user terminal is to carry internet over ethernet
Protocol IP OE user terminal carries point-to-point connection protocol PPPOE user terminal over ethernet.
10. a kind of dynamic host configuration protocol DHCP server-side characterized by comprising
Receiving unit, for receiving the public network IP address application request of Broadband Remote Access Server BRAS equipment transmission;
Screening unit, for filtering out N number of public network IP address from the address pool of this DHCP server side and being attached to N number of public affairs
The range of port number of net IP address;N number of public network IP address is unoccupied, alternatively, N number of public network IP address is occupied
And the range of port number for being attached to N number of public network IP address is unoccupied;
Transmission unit, for by the N number of public network IP address filtered out and the range of port number for being attached to N number of public network IP address
It is sent to the BRAS equipment.
11. DHCP server side as claimed in claim 10, which is characterized in that when in the affiliated group network system of the DHCP server side
Including at least two DHCP server sides, and there are when intersection for the address pool of at least two DHCP server side;
The transmission unit is also used to by the N number of public network IP address filtered out and the end for being attached to N number of public network IP address
Slogan range is sent to after the BRAS equipment, is notified other DHCP server sides N number of public network IP address and is attached to the N
The range of port number of a public network IP address is occupied, to avoid other DHCP server sides by N number of public network IP address and attached
The range of port number for belonging to N number of public network IP address distributes to other BRAS equipments.
12. DHCP server side as claimed in claim 11, which is characterized in that
The receiving unit, be also used to receive BRAS equipment transmission for N number of public network IP address and be attached to N number of public affairs
The public network IP address of the range of port number of net IP address discharges request;
The transmission unit is also used to notify other DHCP server sides N number of public network IP address and is attached to N number of public network IP
The range of port number of address has been released, and is enabled other DHCP server sides by N number of public network IP address and is attached to the N
The range of port number of a public network IP address is reassigned to other BRAS equipments.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810635989.1A CN108933845A (en) | 2018-06-20 | 2018-06-20 | A kind of public network IP address distribution method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810635989.1A CN108933845A (en) | 2018-06-20 | 2018-06-20 | A kind of public network IP address distribution method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108933845A true CN108933845A (en) | 2018-12-04 |
Family
ID=64446100
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810635989.1A Pending CN108933845A (en) | 2018-06-20 | 2018-06-20 | A kind of public network IP address distribution method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108933845A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108989483A (en) * | 2018-08-01 | 2018-12-11 | 新华三技术有限公司 | A kind of configuration method and device of network address |
CN110061993A (en) * | 2019-04-23 | 2019-07-26 | 新华三技术有限公司 | A kind of log generation method, device and access device comprising public network exit address |
CN110225146A (en) * | 2019-05-20 | 2019-09-10 | 浙江华创视讯科技有限公司 | Intranet and extranet mapping method, device, electronic equipment, medium and video conferencing system |
CN111064793A (en) * | 2019-12-19 | 2020-04-24 | 紫光云技术有限公司 | Method and system for maintaining and managing elastic public network IP address pool under public cloud platform |
CN114710465A (en) * | 2022-04-07 | 2022-07-05 | 中国联合网络通信集团有限公司 | Network address conversion method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594933A (en) * | 2011-12-20 | 2012-07-18 | 华为技术有限公司 | Method, device and system for address allocation of public networks |
CN104519097A (en) * | 2013-09-29 | 2015-04-15 | 中兴通讯股份有限公司 | Port block resource acquisition method, port block resource allocation method and devices |
CN105245638A (en) * | 2012-04-28 | 2016-01-13 | 华为技术有限公司 | Address allocation method, device and system |
CN106790732A (en) * | 2015-11-24 | 2017-05-31 | 中兴通讯股份有限公司 | Address conversion method, apparatus and system, network identity control method and device |
-
2018
- 2018-06-20 CN CN201810635989.1A patent/CN108933845A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594933A (en) * | 2011-12-20 | 2012-07-18 | 华为技术有限公司 | Method, device and system for address allocation of public networks |
CN105245638A (en) * | 2012-04-28 | 2016-01-13 | 华为技术有限公司 | Address allocation method, device and system |
CN104519097A (en) * | 2013-09-29 | 2015-04-15 | 中兴通讯股份有限公司 | Port block resource acquisition method, port block resource allocation method and devices |
CN106790732A (en) * | 2015-11-24 | 2017-05-31 | 中兴通讯股份有限公司 | Address conversion method, apparatus and system, network identity control method and device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108989483A (en) * | 2018-08-01 | 2018-12-11 | 新华三技术有限公司 | A kind of configuration method and device of network address |
CN110061993A (en) * | 2019-04-23 | 2019-07-26 | 新华三技术有限公司 | A kind of log generation method, device and access device comprising public network exit address |
CN110061993B (en) * | 2019-04-23 | 2022-06-24 | 新华三技术有限公司 | Log generation method and device containing public network exit address and access equipment |
CN110225146A (en) * | 2019-05-20 | 2019-09-10 | 浙江华创视讯科技有限公司 | Intranet and extranet mapping method, device, electronic equipment, medium and video conferencing system |
CN111064793A (en) * | 2019-12-19 | 2020-04-24 | 紫光云技术有限公司 | Method and system for maintaining and managing elastic public network IP address pool under public cloud platform |
CN111064793B (en) * | 2019-12-19 | 2023-04-21 | 紫光云技术有限公司 | Method and system for maintaining and managing elastic public network IP address pool under public cloud platform |
CN114710465A (en) * | 2022-04-07 | 2022-07-05 | 中国联合网络通信集团有限公司 | Network address conversion method, device, equipment and storage medium |
CN114710465B (en) * | 2022-04-07 | 2023-05-02 | 中国联合网络通信集团有限公司 | Network address translation method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108933845A (en) | A kind of public network IP address distribution method and device | |
CN108924268B (en) | A container cloud service system and pod creation method and device | |
CN108307002B (en) | A kind of DHCP message processing method and device | |
CN104468574B (en) | A kind of method, system and device of virtual machine dynamic access IP address | |
TWI538453B (en) | Universal network interface controller | |
CN101534329B (en) | Method and system for allocating IP addresses | |
CN102932281B (en) | A kind of dynamic allocation method of resource and equipment | |
EP3664420A1 (en) | Managing address spaces across network elements | |
CN109634720B (en) | Method, system and device for sharing FPGA (field programmable Gate array) board card by multiple virtual machines | |
CN105245638A (en) | Address allocation method, device and system | |
CN102387222B (en) | Address distribution method, apparatus and system thereof | |
CN101159758B (en) | Classification associated dynamic host machine configuring protocol option distribution method and device | |
CN104579887A (en) | Cloud gateway, cloud gateway creation and configuration system and method | |
CN106878487B (en) | Public network address allocation method and device | |
CN105376347A (en) | IP address allocation method and system | |
CN102098347B (en) | Internet address management method and system based on terminal | |
CN112769829B (en) | Deployment method of cloud physical machine, related equipment and readable storage medium | |
CN105338131A (en) | Testing method and system for address pool capacity of DHCP server | |
CN105847143A (en) | VRRP (virtual router redundancy protocol)-based load balancing method and system | |
CN106534400A (en) | Network address conversion method and device | |
CN112416572B (en) | Resource pooling method, system, terminal and storage medium of a memory cloud platform | |
CN106302838A (en) | Domain name system DNS analyzing and processing method and device | |
CN114826807A (en) | Automatic dialing method, dialing equipment and dialing server | |
CN114124737B (en) | Method and device for controlling user equipment to access network | |
TWI703835B (en) | System and method for provisioning and monitoring virtual machine virtual network interface controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181204 |