CN108712522A - IP address distribution method and device - Google Patents

IP address distribution method and device Download PDF

Info

Publication number
CN108712522A
CN108712522A CN201810805646.5A CN201810805646A CN108712522A CN 108712522 A CN108712522 A CN 108712522A CN 201810805646 A CN201810805646 A CN 201810805646A CN 108712522 A CN108712522 A CN 108712522A
Authority
CN
China
Prior art keywords
address
allocated
terminal
matched
list item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810805646.5A
Other languages
Chinese (zh)
Other versions
CN108712522B (en
Inventor
王阳
廖以顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810805646.5A priority Critical patent/CN108712522B/en
Publication of CN108712522A publication Critical patent/CN108712522A/en
Application granted granted Critical
Publication of CN108712522B publication Critical patent/CN108712522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Present disclose provides IP address distribution method and devices.In the disclosure,When BRAS is that terminal selects an IP address to be allocated,BRAS, which can also be checked in local ip address table, whether there is and the matched IP address list item of IP address to be allocated,And when there is IP address list item matched with IP address to be allocated in going out local ip address table,ARP request is sent further to detect whether IP address to be allocated can be used by the interface in the matched IP address list item with IP address to be allocated,This prevents from detecting whether IP address to be allocated can use failure even if BRAS,Also it can detect whether IP address to be allocated can be used with the presence or absence of with the matched IP address list item of IP address to be allocated by checking in local ip address table,Do not limit to the whether available detection of IP address to be allocated and is totally absorbed in terminal side,Greatly reduce the pressure of BRAS processing gratuitous ARP packets,Also the consumption of invalid operation between terminal and BRAS can be prevented.

Description

IP address distribution method and device
Technical field
This disclosure relates to network communication technology, more particularly to IP address distribution method and device.
Background technology
Dynamic host configuration protocol (DHCP:Dynamic Host Configuration Protocol) it is a local The procotol of net, is worked using udp protocol, and it is that dhcp client distributes IP address mainly to facilitate Dynamic Host Configuration Protocol server.It is right below How Dynamic Host Configuration Protocol server distributes IP address for dhcp client is described:
Dynamic Host Configuration Protocol server is that dhcp client distribution IP address needs to undergo four-stage shown in FIG. 1:
(1) discovery phase, dhcp client find the stage of Dynamic Host Configuration Protocol server.Dhcp client is sent with broadcast mode DHCP has found (DHCP-DISCOVER) message.
(2) IP address provides the stage, and Dynamic Host Configuration Protocol server provides the stage of IP address.Dynamic Host Configuration Protocol server receives DHCP client After the DHCP-DISCOVER messages at end, for dhcp client distribute IP address and by the IP address of distribution and other parameters (such as The MAC Address etc. of dhcp client) carry together DHCP provide (DHCP-OFFER) message be sent to dhcp client.
(3) IP address choice phase, dhcp client select the stage of IP address.If there is more Dynamic Host Configuration Protocol server to Dhcp client sends DHCP-OFFER messages, and dhcp client only receives first DHCP-OFFER message received, then The IP address that the DHCP-OFFER messages of receiving are carried is carried in DHCP request (DHCP-REQUEST) message and with broadcaster Formula is sent.
(4) IP address confirmation stage, i.e. Dynamic Host Configuration Protocol server confirm the stage of IP address.Dynamic Host Configuration Protocol server receives DHCP client After holding the DHCP-REQUEST messages sent, it is found that the IP address that DHCP-REQUEST messages carry is the distribution of this Dynamic Host Configuration Protocol server , then DHCP-ACK messages are returned to when confirming distribution this address to dhcp client, otherwise returns to DHCP-NAK messages, show This address cannot distribute to dhcp client.After dhcp client receives the DHCP-ACK confirmation messages of Dynamic Host Configuration Protocol server return, Gratuitous ARP packet can be sent in a broadcast manner, and whether occupied, if before the deadline if detecting assigned IP address Response is not received, and dhcp client confirms that the IP address is available, and otherwise, dhcp client can send DHCP refusals (DHCP- DECLINE) message to Dynamic Host Configuration Protocol server to apply for IP address again.
It should be noted that in order to mitigate the detection pressure of dhcp client, pass through gratuitous ARP packet in dhcp client Before whether the assigned IP address of detection is occupied, the stage is provided in above-mentioned IP address, Dynamic Host Configuration Protocol server can be for DHCP visitors Whether the IP address of detection distribution is occupied when IP address is distributed at family end.In general, Dynamic Host Configuration Protocol server is surveyed by Ping detectives, such as Fruit does not receive response and then determines that the IP address of distribution is available, determines that the IP address of distribution is occupied if receiving response, It redistributes an IP address and distributes to client.
Invention content
Present disclose provides IP address distribution method and device, the BRAS to realize as Dynamic Host Configuration Protocol server is carried in IP address Check whether the IP address to be allocated to terminal conflicts for the stage.
Technical solution provided by the present disclosure includes:
A kind of IP address distribution method, this method are applied to the broad band remote access clothes of carrying IP agreement IPOE on Ethernet Be engaged in device BRAS, including:
It checks in local ip address table and whether there is and the matched IP address list item of the IP address to be allocated to terminal;
When check in local ip address table exist IP address list item matched with IP address to be allocated when, by it is described with Interface transmission ARP request in the matched IP address list item of IP address to be allocated, the target Target IP of the ARP request Location is the IP address to be allocated;
Arp response is not received in the setting time after sending the ARP request, then is distributed the IP address to be allocated To the terminal, otherwise, an IP address to be allocated to the terminal is reselected, and returns and check in local ip address table The step of with the presence or absence of IP address list item matched with the IP address to be allocated to terminal.
A kind of IP address distributor, the device are applied to the broad band remote access clothes of carrying IP agreement IPOE on Ethernet Be engaged in device BRAS, including:
Inspection unit whether there is and the matched IP of the IP address to terminal to be allocated for checking in local ip address table Address list item;
Processing unit, checks to exist in local ip address table for working as the inspection unit and matches with IP address to be allocated IP address list item when, by it is described with the matched IP address list item of IP address to be allocated in interface send ARP request, it is described The target Target IP address of ARP request is the IP address to be allocated;In the setting time after sending the ARP request Do not receive arp response, then the IP address to be allocated distributed into the terminal, otherwise, reselect one it is to be allocated give institute The IP address of terminal is stated, and triggers the inspection unit and checks in local ip address table and whether there is and the IP to be allocated to terminal The IP address list item of address matching.
As can be seen from the above technical solutions, in the disclosure, when BRAS is that terminal selects an IP address to be allocated, BRAS can also check in local ip address table with the presence or absence of with the matched IP address list item of IP address to be allocated, and going out local IP When there is IP address list item matched with IP address to be allocated in address table, by the described and matched IP of IP address to be allocated Interface in the list item of location sends ARP request further to detect whether IP address to be allocated can be used, this prevents from visiting even if BRAS It surveys whether IP address to be allocated can use failure, can also be whether there is and IP address to be allocated by checking in local ip address table The IP address list item matched detects whether IP address to be allocated can be used, and it is complete not limit to the whether available detection of IP address to be allocated Terminal side is concentrated on, greatly reduces the pressure of BRAS processing gratuitous ARP packets, can also prevent from grasping in vain between terminal and BRAS The consumption of work.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the IP address allocation process diagram based on DHCP;
Fig. 2 is typical IPoE networking structures figure;
Fig. 3 is the method flow diagram that the disclosure provides;
Fig. 4 is the local ip address table product process figure that the disclosure provides;
Fig. 5 is the apparatus structure schematic diagram that the disclosure provides;
Fig. 6 is the hardware architecture diagram for Fig. 5 shown devices that the disclosure provides.
Specific implementation mode
Currently, applied to carrying IP agreement (IPoE on Ethernet:Internet Protocol over Ethernet) group In net, Fig. 2 shows IPoE networking structures.Referring to Fig. 2, Fig. 2 is typical IPoE networking structures figure.IPoE shown in Fig. 2 In networking, Broadband Remote Access Server (BRAS:Broadband Remote Access Server) it is used as Dynamic Host Configuration Protocol server, The terminal (PC201, PC202) of access IPoE networkings passes through interchanger such as Integrated access interchanger (LSW) based on DHCP protocol Forwarding DHCP-DISCOVER messages find BRAS and BRAS are asked to distribute IP address.
IPoE networkings shown in Fig. 2, if the user side interface of BRAS is with enabling IPoE but the only global gateway IP of configuration Location does not configure real interface IP address, then provides the stage in the IP address of current DHCP, BRAS matches because of user side interface The global gateway ip address set and cannot define and carry out Ping detective surveys with the terminal of which network segment, lead to Ping detective dendrometries Lose, also result in BRAS in the IP address offer stage can not detect distribution IP address it is whether occupied, BRAS can only give tacit consent to The IP address of the distribution detected is available, in this way, whether BRAS is just complete by other-end occupancy for the IP address of terminal distribution SS later is relied on by initiating gratuitous ARP packet detection, this can greatly increase the pressure of BRAS processing gratuitous ARP packets.
In order to mitigate BRAS SS later by initiate gratuitous ARP packet detect the IP address it is whether available when processing it is big The pressure of gratuitous ARP packet is measured, present disclose provides flows shown in Fig. 3.
Referring to Fig. 3, Fig. 3 is the method flow diagram that the disclosure provides.The flow is applied to BRAS.As shown in figure 3, the flow It may include following steps:
Step 301, it checks in local ip address table and whether there is and the matched IP address of the IP address to terminal to be allocated List item.
In the disclosure, as one embodiment, local ip address table is preconfigured.
In the disclosure, as another embodiment, local ip address table is that foundation receives connecing for specified ARP messages VLAN, IP address requesting, the request MAC Address that mouth, specified ARP messages carry generate, local IP hereafter will be described in detail How location table generates, and wouldn't repeat here.
It should be noted that in the disclosure, as one embodiment, before this step 301, can further detect and wait for Whether the IP address for distributing to terminal can be used.Fail when detecting the IP address to be allocated to terminal and can be used or in detection When, continue to execute step 301.Here, detect whether the IP address to be allocated to terminal can be used existing detection mode ratio As Ping detectives are surveyed.
Step 302, when checking in local ip address table in the presence of IP address list item matched with IP address to be allocated, lead to It crosses the interface with the matched IP address list item of IP address to be allocated and sends ARP request, the target of the ARP request Target IP address is the IP address to be allocated.
This step 302 is when there is IP address list item matched with IP address to be allocated in checking local ip address table It executes.In the disclosure, it as one embodiment, is not present and IP address to be allocated when checking in local ip address table When the IP address list item matched, the IP address to be allocated can be distributed to the terminal.
Step 303, arp response is not received in the setting time after sending the ARP request, then by the IP to be allocated The terminal is distributed in address, otherwise, reselects an IP address to be allocated to the terminal, and return to step 301.
In the disclosure, above-mentioned setting time can not specifically be limited based on settings, the disclosure such as Network status.
In the disclosure, arp response is not received in the setting time after sending the ARP request, even if then explanation is originally Have that (implying other-end, to be assigned with this to be allocated with the matched IP address list item of IP address to be allocated in ground IP address table IP address), but IP address to be allocated failure such as rental period of other-end distribution at this time expire, at this point, distribution IP Location can continue to distribute to terminal.It is to avoid subsequent collision, then described to distribute IP address to be allocated in this step 303 It can further comprise to the terminal:The described and matched IP address table of IP address to be allocated is deleted from local ip address table .
As one embodiment, in the disclosure, in above-mentioned steps 301, step 303 check local ip address table in whether It may include in the presence of with the matched IP address list item of IP address to be allocated:
The IP address list item for including the IP address to be allocated is searched in local ip address table, if finding, it is determined that In local ip address table exist with the matched IP address list item of IP address to be allocated, otherwise, it determines not deposited in local ip address table With the matched IP address list item of IP address to be allocated.
So far, flow shown in Fig. 3 is completed.It should be noted that the IP address that flow shown in Fig. 3 can be applied to DHCP provides Stage.
It can be seen that in the disclosure by flow shown in Fig. 3, can be used when BRAS detects the IP address to be allocated to terminal When (being known as detecting for the first time), BRAS can also be checked in local ip address table with the presence or absence of with the matched IP of IP address to be allocated Location list item, and in going out local ip address table exist IP address list item matched with IP address to be allocated when, by it is described with wait for The interface distributed in the matched IP address list item of IP address sends ARP request further to detect whether IP address to be allocated can be used (being known as second to detect), this prevents to pass through if detecting IP address to be allocated for the first time and whether can use failure even if BRAS It detects whether IP address to be allocated can be used for the second time, does not limit to the whether available detection of IP address to be allocated and be totally absorbed in end Side is held, greatly reduces the pressure of BRAS processing gratuitous ARP packets, can also prevent disappearing for invalid operation between terminal and BRAS Consumption.
In the disclosure, no matter local ip address table is pre-configured with or is given birth to according to specified ARP messages study is received At comprising content be the same.The content that local ip address table includes has been shown in particular in table 1:
It indexes (Index) IP address MAC Address VLAN Interface
1 IP1 MAC1 VLAN1 Interface1
Table 1
It is described below how local ip address table generates:
As described above, in the disclosure, local ip address table is according to the interface for receiving specified ARP messages, specified ARP VLAN, IP address requesting, the request MAC Address of message carrying generate.As one embodiment, specified ARP messages here To meet the gratuitous ARP packet of following two conditions:
Condition 1:By the interface for enabling IPOE functions on this BRAS;
Condition 2:The IP address requesting of carrying is an IP address in the IP address pond based on DHCP of this BRAS configurations.
Based on two conditions described above, describe how local ip address table generates below by Fig. 4:
Referring to Fig. 4, Fig. 4 is the local ip address table product process figure that the disclosure provides.As shown in figure 4, the flow can wrap Include following steps:
Step 401, gratuitous ARP packet is received by local user's side interface.
Step 402, check that the user side interface for receiving gratuitous ARP packet enables IPoE functions and receives free The IP address requesting of ARP messages is an IP address in the IP address pond based on DHCP of this BRAS configurations, is thened follow the steps 403。
Here why step 402 is executed, it is (assigned the purpose is to effectively filter the study of some gratuitous ARP packets IP address is not the gratuitous ARP packet that the terminal of the IP address in the IP address pond based on DHCP is initiated), save BRAS resources.
Step 403, generate comprising receive the interface of gratuitous ARP packet, the IP address requesting that gratuitous ARP packet carries, Ask the local ip address list item of MAC Address, VLAN.
So far, flow shown in Fig. 4 is completed.
Local ip address table is ultimately generated by step 401 to step 403.
It should be noted that local ip address table product process shown in Fig. 4 is a kind of citing, it is not intended to limit.
It should also be noted that, in above-mentioned steps 303, when setting time after sending the ARP request does not receive When arp response, if finding in the terminal parameter and the matched IP address list item of IP address to be allocated that the arp response carries Terminal parameter it is different, then with updating the matched IP of IP address to be allocated using the terminal parameter that the arp response carries Terminal parameter in the list item of location.Based on the structure of IP address list item shown in table 1, terminal parameter here includes at least:Terminal MAC Address, affiliated VLAN.
The method provided above the disclosure is described, and the device provided below the disclosure is described:
Referring to Fig. 5, Fig. 5 is the structure drawing of device that the disclosure provides.The device is applied to BRAS, including:
Inspection unit whether there is and the matched IP of the IP address to terminal to be allocated for checking in local ip address table Address list item;
Processing unit, checks to exist in local ip address table for working as the inspection unit and matches with IP address to be allocated IP address list item when, by it is described with the matched IP address list item of IP address to be allocated in interface send ARP request, it is described The target Target IP address of ARP request is the IP address to be allocated;In the setting time after sending the ARP request Do not receive arp response, then the IP address to be allocated distributed into the terminal, otherwise, reselect one it is to be allocated give institute The IP address of terminal is stated, and triggers the inspection unit and checks in local ip address table and whether there is and the IP to be allocated to terminal The IP address list item of address matching.
As one embodiment, inspection unit, in checking local ip address table with the presence or absence of with to be allocated to terminal Before the matched IP address list item of IP address, further detect whether the IP address to be allocated to terminal can be used;
When detecting the IP address to be allocated to terminal and can be used or when detecting failure, continues to execute and check local IP With the presence or absence of the operation with the matched IP address list item of the IP address to be allocated to terminal in address table.
As one embodiment, the processing unit further comprises IP address to be allocated is distributed to the terminal: The described and matched IP address list item of IP address to be allocated is deleted from local ip address table.
As one embodiment, the processing unit in the inspection unit checks local ip address table there is no with When the matched IP address list item of IP address to be allocated, the IP address to be allocated is further distributed into the terminal.
As one embodiment, the processing unit receives arp response in the setting time after sending the ARP request When, if finding the terminal parameter and the terminal in the matched IP address list item of IP address to be allocated that the arp response carries Parameter is different, then updates the matched IP address list item of IP address to be allocated using the terminal parameter that the arp response carries In terminal parameter;The terminal parameter includes at least:The MAC Address of terminal, affiliated VLAN.
As one embodiment, the inspection unit, which checks in local ip address table, whether there is and IP address to be allocated The IP address list item matched may include:The IP address list item for including the IP address to be allocated is searched in local ip address table, if Find, it is determined that in local ip address table exist with the matched IP address list item of IP address to be allocated, otherwise, it determines local IP It is not present and the matched IP address list item of IP address to be allocated in address table.
As one embodiment, the local ip address table is preconfigured;Alternatively,
The local ip address table be according to receive the interface of specified ARP messages, the VLAN that specified ARP messages carry, IP address requesting, request MAC Address generate.
As one embodiment, the specified ARP messages are the gratuitous ARP packet for meeting following two conditions:
Condition 1:By the interface for enabling IPOE functions on this BRAS;
Condition 2:The IP address requesting of carrying is an IP address in the IP address pond based on DHCP of this BRAS configurations.
So far, the structure chart of Fig. 5 shown devices is completed.
Accordingly, the disclosure also provides the hardware structure diagram of Fig. 5 shown devices.As shown in fig. 6, the hardware configuration can wrap It includes:Machine readable storage medium and processor, wherein:
Machine readable storage medium:Store instruction code.
Processor:Communicated with machine readable storage medium, read and execute stored in machine readable storage medium it is described Instruction code realizes IP address distribution method disclosed in disclosure above-mentioned example.
So far, the hardware structure diagram of Fig. 6 shown devices is completed.
In the disclosure, machine readable storage medium can be any electronics, magnetism, optics or other physical stores dress It sets, can include or stores information, such as executable instruction, data, etc..For example, machine readable storage medium can be:RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, storage driving Device (such as hard disk drive), solid state disk, any kind of storage dish (such as CD, dvd) or similar storage medium, Or combination thereof.
Device, module or the unit that above-described embodiment illustrates can specifically be realized, Huo Zheyou by computer chip or entity Product with certain function is realized.A kind of typically to realize that equipment is computer, the concrete form of computer can be People's computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation It is arbitrary several in equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of kind equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit is realized can in the same or multiple software and or hardware when open.
It should be understood by those skilled in the art that, embodiment of the disclosure can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the disclosure Apply the form of example.Moreover, it wherein includes computer usable program code that the embodiment of the present disclosure, which can be used in one or more, The computer implemented in computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of program product.
The disclosure is with reference to method, the flow of equipment (system) and computer program product according to the embodiment of the present disclosure Figure and/or block diagram describe.It is generally understood that being realized by computer program instructions each in flowchart and/or the block diagram The combination of flow and/or box in flow and/or box and flowchart and/or the block diagram.These computer journeys can be provided Sequence instruct to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with Generate a machine so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for Realize the dress for the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes It sets.
Computer or the processing of other programmable datas can be guided to set moreover, these computer program instructions can also be stored in In standby computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates Manufacture including command device, the command device are realized in one flow of flow chart or multiple flows and/or block diagram one The function of being specified in a box or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer Or the instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram The step of function of being specified in one box or multiple boxes.
The foregoing is merely the preferred embodiments of the disclosure, not limiting the disclosure, all essences in the disclosure With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of the disclosure protection god.

Claims (10)

1. a kind of IP address distribution method, which is characterized in that this method is applied to the broadband of carrying IP agreement IPOE on Ethernet Remote access server BRAS, including:
It checks in local ip address table and whether there is and the matched IP address list item of the IP address to be allocated to terminal;
When check there is IP address list item matched with IP address to be allocated in local ip address table when, by it is described with wait for point ARP request is sent with the interface in the matched IP address list item of IP address, the target Target IP address of the ARP request is The IP address to be allocated;
Arp response is not received in the setting time after sending the ARP request, then the IP address to be allocated is distributed into institute State terminal, otherwise, reselect an IP address to be allocated to the terminal, and return check local ip address table in whether The step of in the presence of IP address list item matched with the IP address to be allocated to terminal.
2. according to the method described in claim 1, it is characterized in that, when check in local ip address table there is no with it is to be allocated When the matched IP address list item of IP address, this method further comprises:
The IP address to be allocated is distributed into the terminal.
3. method according to claim 1 or 2, which is characterized in that the local ip address table is preconfigured;Or Person,
The local ip address table is according to the interface, the VLAN for specifying ARP messages to carry, request for receiving specified ARP messages IP address, request MAC Address generate.
4. according to the method described in claim 3, it is characterized in that, the specified ARP messages are to meet following two conditions Gratuitous ARP packet:
Condition 1:By the interface for enabling IPOE functions on this BRAS;
Condition 2:The IP address requesting of carrying is an IP address in the IP address pond based on DHCP of this BRAS configurations.
5. according to the method described in claim 1, it is characterized in that, being received in the setting time after sending the ARP request When arp response, this method further comprises:
If the terminal parameter that the arp response carries and the terminal parameter in the matched IP address list item of IP address to be allocated Difference, the then terminal parameter carried using the arp response are updated in the matched IP address list item of the IP address to be allocated Terminal parameter;
The terminal parameter includes at least:The MAC Address of terminal, affiliated VLAN.
6. according to the method described in claim 1, it is characterized in that, described distribute to the terminal into one by IP address to be allocated Step includes:
The described and matched IP address list item of IP address to be allocated is deleted from local ip address table.
7. according to the method described in claim 1, it is characterized in that, whether there is in the inspection local ip address table and wait for Before the matched IP address list item of IP address for distributing to terminal, further comprise:
Detect whether the IP address to be allocated to terminal can be used,
When detecting the IP address to be allocated to terminal and can be used or when detecting failure, the inspection local IP is continued to execute The step of whether there is IP address list item matched with the IP address to be allocated to terminal in address table.
8. a kind of IP address distributor, which is characterized in that the device is applied to the broadband of carrying IP agreement IPOE on Ethernet Remote access server BRAS, including:
Inspection unit whether there is and the matched IP address of the IP address to terminal to be allocated for checking in local ip address table List item;
Processing unit checks in local ip address table exist and the matched IP of IP address to be allocated for working as the inspection unit When address list item, ARP request, the ARP are sent by the interface with the matched IP address list item of IP address to be allocated The target Target IP address of request is the IP address to be allocated;It is not received in the setting time after sending the ARP request To arp response, then the IP address to be allocated is distributed into the terminal, otherwise, reselect one it is to be allocated give the end The IP address at end, and trigger the inspection unit and check in local ip address table and whether there is and the IP address to be allocated to terminal Matched IP address list item.
9. device according to claim 8, which is characterized in that IP address to be allocated is being distributed to institute by the processing unit Terminal is stated to further comprise:The described and matched IP address list item of IP address to be allocated is deleted from local ip address table;With/ Or,
There is no matched with IP address to be allocated in the inspection unit checks local ip address table for the processing unit When IP address list item, the IP address to be allocated is further distributed into the terminal;And/or
When the processing unit receives arp response in the setting time after sending the ARP request, if finding, the ARP is rung The terminal parameter that should be carried is different from the terminal parameter in the matched IP address list item of IP address to be allocated, then utilizes described The terminal parameter that arp response carries updates the terminal parameter in the matched IP address list item of the IP address to be allocated;The end End parameter includes at least:The MAC Address of terminal, affiliated VLAN.
10. device according to claim 8 or claim 9, which is characterized in that the local ip address table is preconfigured;Or Person,
The local ip address table is according to the interface, the VLAN for specifying ARP messages to carry, request for receiving specified ARP messages IP address, request MAC Address generate;
Wherein, the specified ARP messages are the gratuitous ARP packet for meeting following two conditions:
Condition 1:By the interface for enabling IPOE functions on this BRAS;
Condition 2:The IP address requesting of carrying is an IP address in the IP address pond based on DHCP of this BRAS configurations.
CN201810805646.5A 2018-07-20 2018-07-20 IP address allocation method and device Active CN108712522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810805646.5A CN108712522B (en) 2018-07-20 2018-07-20 IP address allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810805646.5A CN108712522B (en) 2018-07-20 2018-07-20 IP address allocation method and device

Publications (2)

Publication Number Publication Date
CN108712522A true CN108712522A (en) 2018-10-26
CN108712522B CN108712522B (en) 2021-06-29

Family

ID=63874241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810805646.5A Active CN108712522B (en) 2018-07-20 2018-07-20 IP address allocation method and device

Country Status (1)

Country Link
CN (1) CN108712522B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113412483A (en) * 2018-12-07 2021-09-17 皇家飞利浦有限公司 Computing device with increased resistance to address detection

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072232A (en) * 2007-06-15 2007-11-14 中兴通讯股份有限公司 Method for detecting dynamic host allocation protocol unlicensed server
CN101656763A (en) * 2009-09-11 2010-02-24 华为技术有限公司 IP address automatic distribution method, client and server
CN101795300A (en) * 2009-11-11 2010-08-04 福建星网锐捷网络有限公司 IP (Internet Protocol) address recovery method and system, as well as DHCP (Dynamic Host Configuration Protocol) repeater and DHCP server
CN102439949A (en) * 2011-10-17 2012-05-02 华为技术有限公司 Method for solving internet protocol address assignment conflict and related device and system
CN102647486A (en) * 2012-04-28 2012-08-22 华为技术有限公司 Address distributing method, address distributing equipment and address distributing system
WO2012162996A1 (en) * 2011-09-30 2012-12-06 华为技术有限公司 Ip address obtaining method and network access device
CN103957288A (en) * 2014-04-28 2014-07-30 福建星网锐捷网络有限公司 Method, device and equipment for IP address dynamic allocation
CN106453677A (en) * 2016-09-23 2017-02-22 杭州华三通信技术有限公司 Address allocation method and apparatus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072232A (en) * 2007-06-15 2007-11-14 中兴通讯股份有限公司 Method for detecting dynamic host allocation protocol unlicensed server
CN101656763A (en) * 2009-09-11 2010-02-24 华为技术有限公司 IP address automatic distribution method, client and server
CN101795300A (en) * 2009-11-11 2010-08-04 福建星网锐捷网络有限公司 IP (Internet Protocol) address recovery method and system, as well as DHCP (Dynamic Host Configuration Protocol) repeater and DHCP server
WO2012162996A1 (en) * 2011-09-30 2012-12-06 华为技术有限公司 Ip address obtaining method and network access device
CN102439949A (en) * 2011-10-17 2012-05-02 华为技术有限公司 Method for solving internet protocol address assignment conflict and related device and system
CN102647486A (en) * 2012-04-28 2012-08-22 华为技术有限公司 Address distributing method, address distributing equipment and address distributing system
CN105245638A (en) * 2012-04-28 2016-01-13 华为技术有限公司 Address distribution method, equipment and system
CN103957288A (en) * 2014-04-28 2014-07-30 福建星网锐捷网络有限公司 Method, device and equipment for IP address dynamic allocation
CN106453677A (en) * 2016-09-23 2017-02-22 杭州华三通信技术有限公司 Address allocation method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113412483A (en) * 2018-12-07 2021-09-17 皇家飞利浦有限公司 Computing device with increased resistance to address detection
CN113412483B (en) * 2018-12-07 2024-05-14 皇家飞利浦有限公司 Computing device with increased resistance to address detection

Also Published As

Publication number Publication date
CN108712522B (en) 2021-06-29

Similar Documents

Publication Publication Date Title
US8009587B2 (en) System and method of discovery of wireless control device
CN106559292A (en) A kind of broad band access method and device
CN105245638A (en) Address distribution method, equipment and system
CN108600074B (en) Method and device for forwarding multicast data message
CN109412949B (en) Data message transmission method and device
EP2169918A2 (en) Network device with proxy address resolution protocol
CN109495369B (en) Message forwarding method and device
EP2536099A2 (en) Method and access node for preventing address conflict
CN110505621A (en) A kind of processing method and processing device of terminal transfer
CN103916491A (en) Dynamic address mapping method and device based on NAT444 architecture
CN103561122B (en) IPv6 address collocation method, IPv6 client and server
US11936614B2 (en) Method and apparatus for sending reply packet, computing device, and storage medium
CN109089263A (en) A kind of message processing method and device
WO2018161795A1 (en) Routing priority configuration method, device, and controller
CN113938427A (en) Communication method and system, and routing node
US9948598B2 (en) Delivery control device, data delivery system, delivery control method, and non-transitory computer readable medium storing delivery control program
US9503418B2 (en) Method and apparatus for obtaining remote IP address
CN101808145B (en) IP address distributing method and system
US9866524B2 (en) Home gateway apparatus and packet transfer method
CN108712522A (en) IP address distribution method and device
WO2016177185A1 (en) Method and apparatus for processing media access control (mac) address
CN102761425B (en) Charging method and device
CN104506440B (en) The data packet sending method and routing table amending method of router
CN108989173B (en) Message transmission method and device
CN109617817A (en) A kind of generation method and device of the forwarding-table item of MLAG networking

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230612

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.