CN106973126A - A kind of arp reply method and device - Google Patents
A kind of arp reply method and device Download PDFInfo
- Publication number
- CN106973126A CN106973126A CN201710386729.0A CN201710386729A CN106973126A CN 106973126 A CN106973126 A CN 106973126A CN 201710386729 A CN201710386729 A CN 201710386729A CN 106973126 A CN106973126 A CN 106973126A
- Authority
- CN
- China
- Prior art keywords
- address
- corresponding relation
- main frame
- mac address
- 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.)
- Pending
Links
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/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
Abstract
The present invention provides a kind of arp reply method and device.In the embodiment of the present invention, management equipment can make access device accordingly generate corresponding relation list item by the way that the corresponding relation of the IP address of the main frame of acquisition and MAC Address is sent to access device;After the ARP request message that request equipment is sent is received, access device can search the corresponding relation list item matched with the purpose IP address in ARP request message in mapping table, and after the corresponding relation list item of matching is found, arp reply message is directly generated according to MAC Address corresponding with purpose IP address, and the arp reply message of the generation is back to request equipment.Thus shorten request equipment and wait the waiting time of arp reply message, and save the processor resource of bandwidth resources limited in networking and non-targeted equipment.
Description
Technical field
The present invention relates to network communication technology field, more particularly to a kind of arp reply method and device.
Background technology
In network environment as shown in Figure 1, if main frame 1 needs to be communicated with main frame 4, but the MAC of main frame 4 is not known
(Media Access Control, media access control) address, then can pass through the broadcast arp (Address in networking
Resolution Protocol, address resolution protocol) request message mode, obtain main frame 4 MAC Address so that realize with
The communication of main frame 4.
But, in such manner, the ARP request message transmitted by main frame 1 can first reach main frame 2, the net in networking
Equipment, access device 2, main frame 3 these non-targeted equipment are closed, target device-main frame 4 is then just reached.And this is not only extended
Main frame 1 obtains the waiting time of the MAC Address of main frame 4, also takes up bandwidth resources and non-targeted equipment limited in networking
Processor resource.
The content of the invention
In view of this, the present invention provides a kind of arp reply method and device, to overcome in the prior art, request equipment etc.
Treat arp reply message time length and the ARP request message that is broadcasted takes bandwidth resources limited in networking and non-targeted is set
The deficiency of standby processor resource.
According to the first aspect of first embodiment of the invention there is provided a kind of arp reply method, methods described is applied to connect
Enter equipment, methods described includes:
Receive the ARP request message that request equipment is sent;
Judge in mapping table, if there is the corresponding pass with the purpose IP address matching in the ARP request message
It is list item;Wherein, the mapping table have recorded the IP address of main frame and the corresponding relation of MAC Address;
If in the presence of, arp reply message is generated according to MAC Address corresponding with the purpose IP address, and by the ARP
Response message is back to the request equipment;
If being not present, the ARP request message is broadcasted.
According to the second aspect of first embodiment of the invention there is provided a kind of arp reply device, described device is applied to connect
Enter equipment, described device includes:
Receiving unit, for receiving the ARP request message that request equipment is sent;
Judging unit, for judging in mapping table, if exist and the purpose IP address in the ARP request message
The corresponding relation list item of matching;Wherein, the mapping table have recorded the IP address of main frame and the corresponding relation of MAC Address;
Returning unit, for when the judged result of the judging unit is to be, according to corresponding with the purpose IP address
MAC Address generation arp reply message, and the arp reply message is back to the request equipment;
Radio unit, for when the judged result of the judging unit is no, broadcasting the ARP request message.
According to the first aspect of second embodiment of the invention there is provided a kind of arp reply method, methods described is applied to pipe
Equipment is managed, methods described includes:
Obtain the IP address of main frame and the corresponding relation of MAC Address;
The corresponding relation of the IP address of the main frame and MAC Address is sent to access device, so that the access device
Corresponding relation list item is generated, and the ARP request message received is docked according to the corresponding relation list item and carries out response.
According to the second aspect of second embodiment of the invention there is provided a kind of arp reply device, described device is applied to pipe
Equipment is managed, described device includes:
Obtaining unit, for obtaining the IP address of main frame and the corresponding relation of MAC Address;
Transmitting element, for the corresponding relation of the IP address of the main frame and MAC Address to be sent to access device, so that
The access device generates corresponding relation list item, and the ARP request message progress received is docked according to the corresponding relation list item
Response.
In the embodiment of the present invention, management equipment is by the way that the corresponding relation of the IP address of the main frame of acquisition and MAC Address is sent out
Access device is delivered to, access device can be made to accordingly generate corresponding relation list item;Receiving the ARP request that request equipment is sent
After message, access device can search the corresponding pass with the purpose IP address matching in ARP request message in mapping table
It is list item, and after the corresponding relation list item of matching is found, is directly generated according to MAC Address corresponding with purpose IP address
Arp reply message, and the arp reply message of the generation is back to request equipment.As can be seen here, using the embodiment of the present invention,
The ARP request message for asking equipment to send, by the access device direct-connected with request equipment target device can be replaced to carry out ARP should
Answer, so ARP request message need not be transmitted to target device, so as to be asked also without being transferred between equipment and target device
Non-targeted equipment, therefore the waiting time that request equipment waits arp reply message can be shortened, and save band limited in networking
The processor resource of wide resource and non-targeted equipment.
Brief description of the drawings
Fig. 1 is the networking schematic diagram of prior art ARP request method;
Fig. 2 is a kind of first networking schematic diagram of ARP request method of the invention;
Fig. 3 is a kind of flow chart of one embodiment of arp reply method of the invention;
Fig. 4 is a kind of flow chart of second embodiment of arp reply method of the invention;
Fig. 5 is a kind of second networking schematic diagram of arp reply method of the invention;
Fig. 6 is an a kind of structure chart of arp reply device of the invention;
Fig. 7 is a kind of another structure chart of arp reply device of the invention;
Fig. 8 is a kind of another structure chart of arp reply device of the invention.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the present invention.
It is the purpose only merely for description specific embodiment in terminology used in the present invention, and is not intended to be limiting the present invention.
" one kind ", " described " and "the" of singulative used in the present invention and appended claims are also intended to including majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of the scope of the invention, the first information can also be referred to as the second information, similarly, and the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Referring to Fig. 2, Fig. 2 is a kind of first networking schematic diagram of ARP request method of the invention, and this schematic diagram can include
Gateway device, access device, main frame, management equipment and PORTAL certificate servers etc..Wherein, gateway device is set with each access
Standby connected, each access device is connected with multiple main frames respectively;And management equipment respectively with gateway device, access device and
PORTAL certificate servers, which are set up, network connection;Gateway device has also set up network connection with certificate server.
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make of the invention real
Applying the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention
Case is described in further detail.
Referring to Fig. 3, Fig. 3 is a kind of flow chart of one embodiment of arp reply method of the invention, the embodiment application
In access device, it may comprise steps of:
Step 301:Receive the ARP request message that request equipment is sent.
In the present embodiment, request equipment can be any main frame.
Step 302:Judge in mapping table, if there is pair matched with the purpose IP address in ARP request message
List item should be related to, if in the presence of execution step 303;If being not present, step 304 is performed.
In the present embodiment, mapping table have recorded the IP address of main frame and the corresponding relation of MAC Address, according to correspondence pass
It is table, the ARP request message that access device can obtain the MAC Address of either host in networking to request carries out response.
Specifically, the corresponding relation of the IP address for the main frame that access device is recorded in mapping table and MAC Address, can
To be obtained in several ways before this step 302:
In the 1st kind of mode, access device can obtain the IP address of main frame and the correspondence pass of MAC Address from management equipment
System, and one corresponding relation list item of addition in mapping table, above-mentioned corresponding relation list item record the IP address of above-mentioned main frame
With the corresponding relation of MAC Address, wherein, the IP address of above-mentioned main frame and the corresponding relation of MAC Address are PORTAL authentication services
Device is sent to above-mentioned management equipment after to the success of above-mentioned host machine authentication;
In the 2nd kind of mode, access device can obtain the IP address of main frame and the correspondence pass of MAC Address from gateway device
System, and one corresponding relation list item of addition in mapping table, above-mentioned corresponding relation list item record the IP address of above-mentioned main frame
With the corresponding relation of MAC Address, wherein, the IP address of above-mentioned main frame and the corresponding relation of MAC Address are PORTAL authentication services
Device is sent to above-mentioned gateway device after to the success of above-mentioned host machine authentication;
In the 3rd kind of mode, access device can monitor main frame to PORTAL certificate servers send be used for carry out
The authentication request packet of PORTAL certifications, or, monitor certification that above-mentioned PORTAL certificate servers are sent to above-mentioned main frame into
Work(message, the IP address of above-mentioned main frame and pair of MAC Address are obtained from above-mentioned authentication request packet or certification success message
It should be related to, and a corresponding relation list item is added in mapping table, above-mentioned corresponding relation list item records the IP of above-mentioned main frame
Address and the corresponding relation of MAC Address.
In the present embodiment, to overcome in the prior art, request equipment waits arp reply message time length and is broadcasted
The deficiency of the processor resource of limited bandwidth resources and non-targeted equipment in the occupancy networking of ARP request message, the present invention is real
Apply example and mapping table is generated in access device, for recording the IP address of main frame and the corresponding relation of MAC Address.Specifically
Ground, above-mentioned 1st kind of mode and the 2nd kind of mode, by making full use of PORTAL certificate servers to institute's energy after host machine authentication success
The corresponding relation of the accurate IP address MAC Address of main frame of acquisition, generates mapping table, and the 3rd kind of mode is then by actively
Monitor between main frame and PORTAL certificate servers, for completing networking certification and the authentication request packet transmitted or certification success
Message, generates mapping table.Thus, when receiving ARP request message, then ARP can be completed according to the mapping table of generation
Response, so as to overcome above-mentioned the deficiencies in the prior art.
As one embodiment, access device can also obtain the IP address and MAC Address corresponding relation of gateway device, with
The ARP request message that the MAC Address of gateway device is obtained to request carries out response.
Specifically, access device can obtain the IP address of above-mentioned gateway device and the correspondence of MAC Address from gateway device
Relation, and one corresponding relation list item of addition in above-mentioned mapping table, above-mentioned corresponding relation list item record above-mentioned gateway and set
Standby IP address and the corresponding relation of MAC Address;Or,
Access device can obtain the IP address of above-mentioned gateway device and the corresponding relation of MAC Address from management equipment, and
A corresponding relation list item is added in above-mentioned mapping table, above-mentioned corresponding relation list item is with recording the IP of above-mentioned gateway device
Location and the corresponding relation of MAC Address, wherein, the IP address of above-mentioned gateway device and the corresponding relation of MAC Address are above-mentioned management
Equipment is obtained from above-mentioned gateway device.
Step 303:Arp reply message is generated according to MAC Address corresponding with above-mentioned purpose IP address, and by arp reply
Message is back to request equipment.
In the present embodiment, access device can insert MAC Address corresponding with above-mentioned purpose IP address to arp reply
" sender's purpose hardware address " field in message and " ethernet source address " field, and arp reply message is back to please
Seek equipment.
Step 304:The received ARP request message of broadcast.
In the present embodiment, matched if being not present in mapping table with the purpose IP address in received ARP request message
Corresponding relation list item, then broadcast receive ARP request message so that ask equipment ask the corresponding target of MAC Address to set
It is standby to return to ARP request message to request equipment.
It is pointed out that a kind of arp reply method of the invention can also be applied to gateway device, now, above-mentioned steps
Mapping table in 302 can be specially ARP table.
Referring to Fig. 4, Fig. 4 is a kind of flow chart of second embodiment of arp reply method of the invention, the embodiment application
In management equipment, it may comprise steps of:
Step 401:Obtain the IP address of main frame and the corresponding relation of MAC Address;
In the present embodiment, it is upper what is sent to host machine authentication after successful that management equipment can obtain PORTAL certificate servers
State the IP address of main frame and the corresponding relation of MAC Address.
Step 402:The corresponding relation of the IP address of main frame and MAC Address is sent to access device, so that access device
Corresponding relation list item is generated, and the ARP request message received is docked according to corresponding relation list item and carries out response.
As one embodiment, access device can also obtain the IP address and MAC Address of gateway device from gateway device
Corresponding relation;And send the corresponding relation of the IP address of gateway device and MAC Address to access device, so that access device
Corresponding relation list item is generated, and the ARP request message received is docked according to corresponding relation list item and carries out response.
In the embodiment of the present invention, management equipment is by the way that the corresponding relation of the IP address of the main frame of acquisition and MAC Address is sent out
Access device is delivered to, access device can be made to accordingly generate corresponding relation list item;Receiving the ARP request that request equipment is sent
After message, access device can search the corresponding pass with the purpose IP address matching in ARP request message in mapping table
It is list item, and after the corresponding relation list item of matching is found, is directly generated according to MAC Address corresponding with purpose IP address
Arp reply message, and the arp reply message of the generation is back to request equipment.As can be seen here, using the embodiment of the present invention,
The ARP request message for asking equipment to send, by the access device direct-connected with request equipment target device can be replaced to carry out ARP should
Answer, so ARP request message need not be transmitted to target device, so as to be asked also without being transferred between equipment and target device
Non-targeted equipment, therefore the waiting time that request equipment waits arp reply message can be shortened, and save band limited in networking
The processor resource of wide resource and non-targeted equipment.
Referring to Fig. 5 there is provided a kind of the 3rd embodiment of arp reply method of the invention, wherein, Fig. 5 is of the invention a kind of
Second networking schematic diagram of arp reply method, and unlike the networking schematic diagram shown in Fig. 2, the networking signal shown in Fig. 5
Do not include management equipment in figure.More clearly to describe the present embodiment, it is assumed that the MAC Address of the requesting host 4 of main frame 1.Specifically
Ground, the present embodiment specifically may include following steps:
Step 1:Main frame 4 sends authentication request packet to gateway device.
In the present embodiment, in the authentication request packet that main frame 4 is sent, the IP address of main frame 4 and the correspondence of MAC Address are carried
Relation.
Step 2:The authentication request packet that gateway device Receiving Host 4 is sent, and the authentication request packet that main frame 4 is sent
Send to PORTAL certificate servers.
In the present embodiment, it will be assumed that main frame 4 needs to carry out networking certification, so gateway device needs send main frame 4
Authentication request packet sends to PORTAL certificate servers and carries out networking certification.
Step 3:PORTAL certificate servers are authenticated according to the authentication request packet received to main frame 4, and are being recognized
After demonstrate,proving successfully, certification success message is back to gateway device.
In the present embodiment, if authentification failure, authentification failure message is back to gateway device.
In the present embodiment, PORTAL certificate servers also can be by the IP address and MAC Address of main frame 4 in certification success message
Carry in notice message, send to gateway device.
Step 4:Gateway device obtains the IP address of main frame 4 and pair of MAC Address from the certification success message received
It should be related to, and the IP address of main frame 4 and the corresponding relation of MAC Address of acquisition are sent to access device 1.
Step 5:Access device 1 is after the IP address and the corresponding relation of MAC Address for receiving main frame 4, in corresponding relation
A corresponding relation list item is added in table, the IP address of main frame 4 and the corresponding relation of MAC Address is recorded.
In the present embodiment, if it is MAC4 that the IP address for assuming main frame 4, which is IP4, MAC Address, the corresponding relation added
List item can be expressed as the form of table 1:
Main frame 4 | IP4 | MAC4 |
Table 1
It is pointed out that in actual applications, in above-mentioned steps 4, gateway device can simultaneously by the IP address of main frame 4 and
The corresponding relation of MAC Address is sent to access device 2 so that access device 2 is also corresponding to generate corresponding relation list item, in case subsequently
Inquired about when needing.
As one embodiment, receiving device 1 can be acquired Fig. 5 networkings and shown by the method shown in step 1- steps 5
In intention, the IP address and MAC Address corresponding relation of each main frame, in the process, management equipment can obtain a certain master
After the IP address of machine and the corresponding relation of MAC Address, will the corresponding relation of the IP address and MAC Address send into networking
Every access device;And for the smaller networking schematic diagram of scale as shown in Figure 5, then can acquire main frame 1-4 IP
After the corresponding relation of address and MAC Address, then by the main frame 1-4 IP address and the corresponding relation of MAC Address of acquisition send to
Access device 1 and access device 2 in networking.
As one embodiment, receiving device 1 can also ask to obtain the IP address of gateway device and the correspondence of MAC Address
Relation, and a corresponding relation list item is added in mapping table, record the IP address of gateway device and the correspondence of MAC Address
Relation.
Step 6:The ARP request message that the Receiving Host 1 of access device 1 is sent, according to the main frame carried in ARP request message
4 IP address, searches the corresponding relation list item matched with the IP address of main frame 4.
In the present embodiment, the IP address of main frame 4 is carried in " recipient's IP address " field in ARP request message.
In the present embodiment, if finding the corresponding relation list item matched with the IP address of main frame 4, step 7 is performed;It is no
Then, then received ARP request message is broadcasted, so that main frame 4 returns to arp reply message to main frame 1.
Step 7:In corresponding relation list item of the access device 1 according to lookup, the MAC Address generation arp reply report of main frame 4
Text, main frame 1 is back to by the arp reply message of generation.
In the present embodiment, the ARP request message sent compared to main frame 1 in the prior art needs to reach Fig. 5 networkings signal
Main frame 2, gateway device, access device 2, main frame 3 in figure, and it is final return to arp reply message to main frame 1 from main frame 4 for,
In the present invention, the ARP request message that main frame 1 is sent need to only reach the access device 1 direct-connected with main frame 1, you can by access device 1
Arp reply message is returned to main frame 1, and this not only shortens main frame 1 and waits the duration of arp reply message, and save existing
Have in technology because of the bandwidth resources and main frame 2, gateway device, access device that ARP request messages is broadcasted in networking and takes
2nd, the processor resource of main frame 3.
If it is pointed out that in above-mentioned steps 4, what gateway device was received is authentification failure message, then can terminate
Flow, to avoid access device according to the IP address and the corresponding relation of MAC Address of the main frame 4 of mistake, the correspondence of generation error
Relation list item, so as to cause main frame 1 to receive the MAC Address of mistakenly main frame 4, causes communication abnormality.
In the embodiment of the present invention, gateway device can be sent after PORTAL certificate servers are obtained to the certification of main frame 4 success
Certification success message in, obtain the IP address of main frame 4 and the corresponding relation of MAC Address, and by the IP address and MAC of main frame 4
The corresponding relation of address is sent to access device 1, access device 1 is accordingly generated corresponding relation list item;Sent out receiving main frame 1
After the ARP request message of the MAC Address of the requesting host 4 sent, then MAC Address that can directly in above-mentioned corresponding relation list item
Arp reply message is generated, main frame 1 is back to.
As can be seen here, using the embodiment of the present invention, the ARP request message that request equipment is sent can be by straight with request equipment
Access device even replaces target device to carry out arp reply, so ARP request message need not be transmitted to target device, so that
The non-targeted equipment between request equipment and target device need not be transferred to, therefore request equipment can be shortened and wait arp reply
The waiting time of message, and save the processor resource of bandwidth resources limited in networking and non-targeted equipment.
Referring to Fig. 2, there is provided a kind of the 4th embodiment of arp reply method of the invention.More clearly to describe this reality
Example is applied, the present embodiment still assumes the MAC Address of the requesting host 4 of main frame 1.Specifically, the present embodiment may include steps of:
Step 1:Main frame 4 sends authentication request packet to gateway device.
Step 2:The authentication request packet that gateway device Receiving Host 4 is sent, and the authentication request packet that main frame 4 is sent
Send to PORTAL certificate servers.
In the present embodiment, step 1-2 can be found in above-mentioned 3rd embodiment, will not be repeated here.
Step 3:PORTAL certificate servers are authenticated according to the authentication request packet received to main frame 4, and are being recognized
After demonstrate,proving successfully, the IP address of main frame 4 and the corresponding relation of MAC Address in authentication request packet are sent to management equipment.
In the present embodiment, management equipment can be UMC (Unite Manage Center are managed collectively center) equipment.
Step 4:The IP address of management equipment Receiving Host 4 and the corresponding relation of MAC Address, and by the IP address of main frame 4
Sent with the corresponding relation of MAC Address to access device 1.
In the present embodiment, management equipment can pass through TCP (Transmission Control Protocol, transmission control
Agreement) connect or UDP (User Datagram Protocol, UDP), by the IP address of the main frame 4 of acquisition
Sent with the corresponding relation of MAC Address to access device 1.
Step 5:Access device 1 is after the IP address and the corresponding relation of MAC Address for receiving main frame 4, in corresponding relation
A corresponding relation list item is added in table, the IP address of main frame 4 and the corresponding relation of MAC Address is recorded.
Step 6:The ARP request message that the Receiving Host 1 of access device 1 is sent, according to the main frame carried in ARP request message
4 IP address, searches the corresponding relation list item matched with the IP address of main frame 4.
Step 7:In corresponding relation list item of the access device 1 according to lookup, the MAC Address generation arp reply report of main frame 4
Text, main frame 1 is back to by the arp reply message of generation.
In the present embodiment, step 5-7 can be found in above-mentioned 3rd embodiment, will not be repeated here.
As a preferred embodiment, so that the request of main frame 1 obtains main frame 2 as an example, access device 1 can be by monitoring main frame
2 authentication request packets for being used to carry out PORTAL certifications sent to PORTAL certificate servers, or, monitor PORTAL certifications
The certification success message that server is sent to main frame 2, from the authentication request packet listened to or certification success message, is obtained
The IP address of main frame 2 and the corresponding relation of MAC Address are obtained, and generates corresponding corresponding relation list item.Asked receiving main frame 1
, then can be directly according to the master recorded in the corresponding relation list item of the generation after the ARP request message for the MAC Address for obtaining main frame 2
The MAC Address of machine 2, arp reply message is returned to main frame 1.
In the embodiment of the present invention, management equipment is by the way that the corresponding relation of the IP address of the main frame 4 of acquisition and MAC Address is sent out
Access device 1 is delivered to, access device 1 can be made to accordingly generate corresponding relation list item;Receiving the requesting host of the transmission of main frame 1
After the ARP request message of 4 MAC Address, then MAC Address that can be directly in above-mentioned corresponding relation list item generates arp reply
Message, and the arp reply message of the generation is back to main frame 1.
As can be seen here, using the embodiment of the present invention, the ARP request message that request equipment is sent can be by straight with request equipment
Access device even replaces target device to carry out arp reply, so ARP request message need not be transmitted to target device, so that
The non-targeted equipment between request equipment and target device need not be transferred to, therefore request equipment can be shortened and wait arp reply
The waiting time of message, and save the processor resource of bandwidth resources limited in networking and non-targeted equipment.
Corresponding with a kind of foregoing embodiment of arp reply method, present invention also offers a kind of reality of arp reply device
Apply example.Present apparatus embodiment is applied to access device, can include:Receiving unit 610, judging unit 620, returning unit 630,
Radio unit 640, for details, reference can be made to Fig. 6, and Fig. 6 is an a kind of structure chart of arp reply device of the invention.
Wherein, receiving unit 610, for receiving the ARP request message that request equipment is sent;
Judging unit 620, for judging in mapping table, if exist and the purpose IP address in ARP request message
The corresponding relation list item of matching;Wherein, mapping table have recorded the IP address of main frame and the corresponding relation of MAC Address;
Returning unit 630, for judging unit 620 judged result for be when, according to above-mentioned purpose IP address pair
The MAC Address generation arp reply message answered, and arp reply message is back to request equipment;
Radio unit 640, for judging unit 620 judged result for it is no when, broadcast ARP request message.
Referring to Fig. 7, during Fig. 7 is a kind of another structure chart of arp reply device of the invention, the structure chart, above-mentioned ARP should
Answering device can also include:
Corresponding relation obtaining unit 600, in mapping table is judged, if exist with ARP request message
Before the corresponding relation list item of purpose IP address matching, obtain the IP address of main frame from management equipment and the correspondence of MAC Address is closed
System, and one corresponding relation list item of addition in mapping table, corresponding relation list item record the IP address and MAC of above-mentioned main frame
The corresponding relation of address, wherein, the IP address of above-mentioned main frame and the corresponding relation of MAC Address are PORTAL certificate servers right
After above-mentioned host machine authentication success, management equipment is sent to;Or,
The IP address of main frame and the corresponding relation of MAC Address are obtained from gateway device, and adds in mapping table one
Individual corresponding relation list item, corresponding relation list item records the IP address of above-mentioned main frame and the corresponding relation of MAC Address, wherein, it is above-mentioned
The IP address of main frame and the corresponding relation of MAC Address are PORTAL certificate servers after to the success of above-mentioned host machine authentication, are sent
To gateway device;Or,
The authentication request packet for being used to carry out PORTAL certifications that main frame is sent to PORTAL certificate servers is monitored, or
Person, monitors certification that PORTAL certificate servers send to above-mentioned main frame successfully message, from authentication request packet or certification into
The IP address of above-mentioned main frame and the corresponding relation of MAC Address, and one correspondence of addition in mapping table are obtained in work(message
Relation list item, corresponding relation list item records the IP address of above-mentioned main frame and the corresponding relation of MAC Address.
Corresponding with a kind of foregoing embodiment of arp reply method, present invention also offers a kind of reality of arp reply device
Apply example.Present apparatus embodiment is applied to management equipment, can include:Obtaining unit 810, transmitting element 820, for details, reference can be made to figure
8, Fig. 8 be a kind of another structure chart of arp reply device of the invention.
Wherein, obtaining unit 810, for obtaining the IP address of main frame and the corresponding relation of MAC Address;
Transmitting element 820, for the corresponding relation of the IP address of the main frame and MAC Address to be sent to access device,
So that the access device generation corresponding relation list item, and the ARP request message received is docked according to the corresponding relation list item
Carry out response.
In one implementation, obtaining unit 810, can be specifically for:
Obtain the IP address and pair of MAC Address for the main frame that PORTAL certificate servers are sent after to host machine authentication success
It should be related to.
In the embodiment of the present invention, management equipment is by the way that the corresponding relation of the IP address of the main frame of acquisition and MAC Address is sent out
Access device is delivered to, access device can be made to accordingly generate mapping table;Receiving the ARP request report that request equipment is sent
Wen Hou, access device can be searched corresponding with the purpose IP address matching in ARP request message in above-mentioned mapping table
Relation list item, and after the corresponding relation list item of matching is found, directly generated according to MAC Address corresponding with purpose IP address
Arp reply message, and the arp reply message of the generation is back to request equipment.As can be seen here, using the embodiment of the present invention,
The ARP request message for asking equipment to send, by the access device direct-connected with request equipment target device can be replaced to carry out ARP should
Answer, so ARP request message need not be transmitted to target device, so as to be asked also without being transferred between equipment and target device
Non-targeted equipment, therefore the waiting time that request equipment waits arp reply message can be shortened, and save band limited in networking
The processor resource of wide resource and non-targeted equipment.
The function of unit and the implementation process of effect specifically refer to correspondence step in the above method in said apparatus
Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Selection some or all of module therein is needed to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.
Claims (10)
1. a kind of arp reply method, methods described is applied to access device, it is characterised in that methods described includes:
Receive the ARP request message that request equipment is sent;
Judge in mapping table, if there is the mapping table matched with the purpose IP address in the ARP request message
;Wherein, the mapping table have recorded the IP address of main frame and the corresponding relation of MAC Address;
If in the presence of, arp reply message is generated according to MAC Address corresponding with the purpose IP address, and by the arp reply
Message is back to the request equipment;
If being not present, the ARP request message is broadcasted.
2. according to the method described in claim 1, it is characterised in that in the judgement mapping table, if exist with it is described
Before the corresponding relation list item of purpose IP address matching in ARP request message, in addition to:
The IP address of main frame and the corresponding relation of MAC Address are obtained from management equipment, and addition one is right in mapping table
List item should be related to, the corresponding relation list item records the IP address of the main frame and the corresponding relation of MAC Address, wherein, it is described
The IP address of main frame and the corresponding relation of MAC Address are PORTAL certificate servers after to host machine authentication success, are sent
To the management equipment;Or,
The IP address of main frame and the corresponding relation of MAC Address are obtained from gateway device, and addition one is right in mapping table
List item should be related to, the corresponding relation list item records the IP address of the main frame and the corresponding relation of MAC Address, wherein, it is described
The IP address of main frame and the corresponding relation of MAC Address are PORTAL certificate servers after to host machine authentication success, are sent
To the gateway device;Or,
The authentication request packet for being used to carry out PORTAL certifications that main frame is sent to PORTAL certificate servers is monitored, or, prison
The certification success message for listening the PORTAL certificate servers to be sent to the main frame, from the authentication request packet or certification
The IP address of the main frame and the corresponding relation of MAC Address are obtained in success message, and addition one is right in mapping table
List item should be related to, the corresponding relation list item records the IP address of the main frame and the corresponding relation of MAC Address.
3. according to the method described in claim 1, it is characterised in that methods described also includes:
The IP address of the gateway device and the corresponding relation of MAC Address are obtained from gateway device, and in the mapping table
One corresponding relation list item of middle addition, the corresponding relation list item records the IP address of the gateway device and pair of MAC Address
It should be related to;Or,
The IP address of the gateway device and the corresponding relation of MAC Address are obtained from management equipment, and in the mapping table
One corresponding relation list item of middle addition, the corresponding relation list item records the IP address of the gateway device and pair of MAC Address
It should be related to, wherein, the IP address of the gateway device and the corresponding relation of MAC Address are the management equipments from the gateway
What equipment was obtained.
4. a kind of arp reply method, methods described is applied to management equipment, it is characterised in that methods described includes:
Obtain the IP address of main frame and the corresponding relation of MAC Address;
The corresponding relation of the IP address of the main frame and MAC Address is sent to access device, so that the access device is generated
Corresponding relation list item, and the ARP request message progress response received is docked according to the corresponding relation list item.
5. method according to claim 4, it is characterised in that the IP address of the acquisition main frame and the correspondence of MAC Address
Relation, including:
Obtain the IP address and pair of MAC Address for the main frame that PORTAL certificate servers are sent after to host machine authentication success
It should be related to.
6. method according to claim 4, it is characterised in that methods described also includes:
The IP address of the gateway device and the corresponding relation of MAC Address are obtained from gateway device;
The corresponding relation of the IP address of the gateway device and MAC Address is sent to access device, so that the access device
Corresponding relation list item is generated, and the ARP request message received is docked according to the corresponding relation list item and carries out response.
7. a kind of arp reply device, described device is applied to access device, it is characterised in that described device includes:
Receiving unit, for receiving the ARP request message that request equipment is sent;
Judging unit, for judging in mapping table, if exist and matched with the purpose IP address in the ARP request message
Corresponding relation list item;Wherein, the mapping table have recorded the IP address of main frame and the corresponding relation of MAC Address;
Returning unit, for when the judged result of the judging unit is to be, according to MAC corresponding with the purpose IP address
Address generates arp reply message, and the arp reply message is back into the request equipment;
Radio unit, for when the judged result of the judging unit is no, broadcasting the ARP request message.
8. device according to claim 7, it is characterised in that described device also includes:
Corresponding relation obtaining unit, in mapping table is judged, if exist and the purpose in the ARP request message
Before the corresponding relation list item of IP address matching, the IP address of main frame and the corresponding relation of MAC Address are obtained from management equipment, and
A corresponding relation list item is added in mapping table, the corresponding relation list item records the IP address and MAC of the main frame
The corresponding relation of address, wherein, the IP address of the main frame and the corresponding relation of MAC Address are PORTAL certificate servers right
After the host machine authentication success, the management equipment is sent to;Or,
The IP address of main frame and the corresponding relation of MAC Address are obtained from gateway device, and addition one is right in mapping table
List item should be related to, the corresponding relation list item records the IP address of the main frame and the corresponding relation of MAC Address, wherein, it is described
The IP address of main frame and the corresponding relation of MAC Address are PORTAL certificate servers after to host machine authentication success, are sent
To the gateway device;Or,
The authentication request packet for being used to carry out PORTAL certifications that main frame is sent to PORTAL certificate servers is monitored, or, prison
The certification success message for listening the PORTAL certificate servers to be sent to the main frame, from the authentication request packet or certification
The IP address of the main frame and the corresponding relation of MAC Address are obtained in success message, and addition one is right in mapping table
List item should be related to, the corresponding relation list item records the IP address of the main frame and the corresponding relation of MAC Address.
9. a kind of arp reply device, described device is applied to management equipment, it is characterised in that described device includes:
Obtaining unit, for obtaining the IP address of main frame and the corresponding relation of MAC Address;
Transmitting element, for the corresponding relation of the IP address of the main frame and MAC Address to be sent to access device, so that described
Access device generates corresponding relation list item, and the ARP request message progress response received is docked according to the corresponding relation list item.
10. device according to claim 9, it is characterised in that the obtaining unit, specifically for:
Obtain the IP address and pair of MAC Address for the main frame that PORTAL certificate servers are sent after to host machine authentication success
It should be related to.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710386729.0A CN106973126A (en) | 2017-05-26 | 2017-05-26 | A kind of arp reply method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710386729.0A CN106973126A (en) | 2017-05-26 | 2017-05-26 | A kind of arp reply method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106973126A true CN106973126A (en) | 2017-07-21 |
Family
ID=59327352
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710386729.0A Pending CN106973126A (en) | 2017-05-26 | 2017-05-26 | A kind of arp reply method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106973126A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360184A (en) * | 2017-08-14 | 2017-11-17 | 杭州迪普科技股份有限公司 | terminal device authentication method and device |
CN111107176A (en) * | 2019-12-16 | 2020-05-05 | 京信通信系统(中国)有限公司 | Data transmission method and device, computer equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101370019A (en) * | 2008-09-26 | 2009-02-18 | 北京星网锐捷网络技术有限公司 | Method and switchboard for preventing packet cheating attack of address analysis protocol |
CN102739684A (en) * | 2012-06-29 | 2012-10-17 | 杭州迪普科技有限公司 | Portal authentication method based on virtual IP address, and server thereof |
CN104219340A (en) * | 2014-09-25 | 2014-12-17 | 杭州华三通信技术有限公司 | ARP (Address Resolution Protocol) response proxy method and apparatus |
CN105245629A (en) * | 2015-09-25 | 2016-01-13 | 互联网域名系统北京市工程研究中心有限公司 | DHCP-based host communication method and device |
CN105592178A (en) * | 2015-09-17 | 2016-05-18 | 杭州华三通信技术有限公司 | Method and device for determining position of data node |
CN106059929A (en) * | 2016-06-02 | 2016-10-26 | 杭州华三通信技术有限公司 | Message responding method and device |
CN106101297A (en) * | 2016-06-02 | 2016-11-09 | 杭州华三通信技术有限公司 | A kind of message answer method and device |
-
2017
- 2017-05-26 CN CN201710386729.0A patent/CN106973126A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101370019A (en) * | 2008-09-26 | 2009-02-18 | 北京星网锐捷网络技术有限公司 | Method and switchboard for preventing packet cheating attack of address analysis protocol |
CN102739684A (en) * | 2012-06-29 | 2012-10-17 | 杭州迪普科技有限公司 | Portal authentication method based on virtual IP address, and server thereof |
CN104219340A (en) * | 2014-09-25 | 2014-12-17 | 杭州华三通信技术有限公司 | ARP (Address Resolution Protocol) response proxy method and apparatus |
CN105592178A (en) * | 2015-09-17 | 2016-05-18 | 杭州华三通信技术有限公司 | Method and device for determining position of data node |
CN105245629A (en) * | 2015-09-25 | 2016-01-13 | 互联网域名系统北京市工程研究中心有限公司 | DHCP-based host communication method and device |
CN106059929A (en) * | 2016-06-02 | 2016-10-26 | 杭州华三通信技术有限公司 | Message responding method and device |
CN106101297A (en) * | 2016-06-02 | 2016-11-09 | 杭州华三通信技术有限公司 | A kind of message answer method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360184A (en) * | 2017-08-14 | 2017-11-17 | 杭州迪普科技股份有限公司 | terminal device authentication method and device |
CN107360184B (en) * | 2017-08-14 | 2020-09-08 | 杭州迪普科技股份有限公司 | Terminal equipment authentication method and device |
US10944744B2 (en) | 2017-08-14 | 2021-03-09 | Hangzhou Dptech Technologies Co., Ltd. | Verifying terminal device |
CN111107176A (en) * | 2019-12-16 | 2020-05-05 | 京信通信系统(中国)有限公司 | Data transmission method and device, computer equipment and storage medium |
WO2021121286A1 (en) * | 2019-12-16 | 2021-06-24 | 京信网络系统股份有限公司 | Data transmission method and apparatus, computer device and storage medium |
CN111107176B (en) * | 2019-12-16 | 2021-08-24 | 京信网络系统股份有限公司 | Data transmission method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102932493B (en) | Record stateless IP address | |
CN104902443B (en) | A kind of method and apparatus of communication | |
CN106797405A (en) | Distributed load equalizing system, health examination method and service node | |
CN102739684B (en) | Portal authentication method based on virtual IP address, and server thereof | |
JP5459809B2 (en) | Method for obtaining the IP address of a dynamic host configuration protocol version 6 server, dynamic host configuration protocol version 6 server, and dynamic host configuration protocol version 6 communication system | |
CN106982234A (en) | A kind of ARP attack defense methods and device | |
CN101997768B (en) | Method and device for uploading address resolution protocol messages | |
CN102710811B (en) | Realize method and the switch of dhcp address safety distribution | |
CN104219340A (en) | ARP (Address Resolution Protocol) response proxy method and apparatus | |
CN104660409B (en) | The method of system login and certificate server cluster under cluster environment | |
CN103873826B (en) | Media stream control method and device | |
US9118721B1 (en) | Socket-based internet protocol for wireless networks | |
CN102845123A (en) | Virtual private cloud connection method and tunnel proxy server | |
MX2007010921A (en) | Method for communication between an application and a client. | |
CN103997479B (en) | A kind of asymmetric services IP Proxy Methods and equipment | |
WO2017161965A1 (en) | Method, device, and system for dynamic domain name system (dns) redirection | |
CN104639555B (en) | request processing method, system and device | |
CN103561122B (en) | IPv6 address collocation method, IPv6 client and server | |
CN103795581B (en) | Address processing method and equipment | |
CN106657434A (en) | Method and device for checking IP address | |
CN104935564A (en) | Method of enabling devices and services based on mDNS protocol to discover mutually in local area network | |
US9413590B2 (en) | Method for management of a secured transfer session through an address translation device, corresponding server and computer program | |
CN106878481B (en) | Method, device and system for acquiring Internet Protocol (IP) address | |
US9509777B2 (en) | Connection method and management server | |
CN106973126A (en) | A kind of arp reply method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
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: 20170721 |