CN106888276A - The method and the network equipment of network equipment lookup are carried out using ARP packets - Google Patents
The method and the network equipment of network equipment lookup are carried out using ARP packets Download PDFInfo
- Publication number
- CN106888276A CN106888276A CN201611132846.6A CN201611132846A CN106888276A CN 106888276 A CN106888276 A CN 106888276A CN 201611132846 A CN201611132846 A CN 201611132846A CN 106888276 A CN106888276 A CN 106888276A
- Authority
- CN
- China
- Prior art keywords
- arp
- network equipment
- packet
- packets
- network
- 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]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Abstract
The present invention provides one kind in the case where network appliance IP address is not known, the lookup method and the network equipment of the network equipment, the method include:ARP protocol packet is transformed;The additional network device search request on improved ARP packets, sends on network;After receiving ARP packets, improved packet is determined whether, if improved ARP packets, if carrying network equipment search request, using the ARP packets of transformation, send response message;If in the improved packet for receiving, with response message, then parsing response message.The method and the network equipment provided using the present invention, can easily find the network equipment, and the information for obtaining the network equipment on the premise of network appliance IP address is not known.
Description
Technical field
The present invention relates to network communication technology field, more particularly to the side that network equipment lookup is carried out using ARP packets
Method and the network equipment.
Background technology
TCP (Transmission Control Protocol, transmission control protocol)/IP (Internet Protocol,
Internet protocol) agreement is the most basic agreement in internet, the basis of Internet.The control of the usual network equipment
All it is transmission control layer agreement TCP/UDP (the User Datagram using network layer IP protocol and the above with access
Protocol) come control and access.
ARP (Address Resolution Protocol, address resolution protocol) agreement is one and is located at ICP/IP protocol
Data link layer protocol in stack, positioned at the lower section of IP agreement, basic function is that network layer IP address is resolved into data cube computation
MAC (Media Access Control, media access control) address of layer, to ensure the carrying out of communication.The course of work of ARP
It is as follows:1st, when the network equipment needs the corresponding MAC Address of one IP address of parsing, can broadcast transmission ARP request message.
2nd, after corresponding other network equipments of the IP address receive ARP request message, arp reply message can be returned to.
ARP data packet formats:
Table 1
The content of the invention
In order in the case where network appliance IP address is not known, there is provided a kind of method of Network Search equipment and corresponding
The network equipment, the present invention provides following methods step:
The ARP packets of table 1, under normal conditions, filling data are set to full 0.Set using ARP packet Network Search
When standby, filling data are set to recognizable specific data.In actual applications, the length of data is filled, not by 18 words
The limitation of section.As long as being no more than an Ethernet byte of long data packet 1500 most long.
The command code of the ARP fields of ARP packets is set to 0x1 by issuer, and it is an inquiry bag to represent this.
Filling data are set to the form of table 2:
Identification marking is accorded with | Solicited message |
Table 2
If recipient is not the specific network equipment, only by this ARP inquiry bags as at common ARP packets
Reason.
If when particular network device receives ARP inquiry packets, first determining whether in filling data field, whether starting
There is identification marking symbol, if it does not exist, then pressing normal ARP processing data packets;There is identification marking symbol, then believed according to request
Breath, returns to response bag.
The command code of the ARP fields of ARP packets is set to 0x2 by response bag, and it is an arp reply bag to represent this.
Filling data are set to the form of table 3:
Identification marking is accorded with | Response message |
Table 3
If recipient is not issuer, this arp reply bag is only treated as into common ARP processing data packets.
If issuer receives arp reply bag, judge whether the starting of filling field is identification marking symbol, if it is not,
Then press normal ARP processing data packets;If there is identification marking symbol, then response message is parsed.
So far, in the case of the IP address for not knowing particular network device, ARP packets are only utilized, just can be inquired
Particular network device, and obtain relevant information.
Specific embodiment
For existing applicable cases, in the case where network appliance IP address is not known, the network equipment just cannot be inquired about
Problem, the invention provides a kind of method that network equipment inquiry is carried out using ARP packets, the method application and particular network
Equipment.
Issuer will be set to broadcast address ff- for the reception side mac address of the Ethernet stem of the ARP packets of inquiry
ff-ff-ff-ff-ff;
The command code of ARP fields is set to 0x1, it is an ARP inquiry bag to represent this;
The reception side mac address of ARP fields is set to broadcast address ff-ff-ff-ff-ff-ff;
The recipient IP of ARP fields is set to identical with sender's IP address, illustrates that this ARP packet does not inquire about any IP
Corresponding MAC Address, it is to avoid unnecessary arp reply bag.
Filling data field starting is set to identification marking symbol, and remaining is with 0 filling.
Remaining field of this ARP packet, by normally filling in.
This improved ARP is sent on network.Due to being the broadcast data packet of ARP, all-network equipment can all be received
To this packet.
If not the specific network equipment, after receiving this packet, inquiry local IP address and MAC Address are it is found not to be
Corresponding relation, so ignoring this packet, do not do response.
If the specific network equipment, inquire filling field and there is distinguishing mark symbol, then return to the ARP data of response
Bag.
The reception side mac address of the Ethernet stem of response ARP packets is set to the MAC Address of issuer, so as to direct
It is sent to issuer.
The command code of ARP fields is set to 0x2, it is an arp reply bag to represent this.
Filling data field starting is set to identification marking symbol.Then using '/' as separator, addition device type, equipment
ID, device software version number, the then following form of response message:
" identification marking symbol/device type character string/device id character string/software version character string " |
Table 4
The specific network equipment sends this response ARP packets, can be directly to up to issuer.
This arp reply bag is received if not issuer, can be processed as common arp reply bag.
If issuer receives this arp reply bag, inquire filling field and there is distinguishing mark symbol, then can parse and fill out
Fill the information of field.And the IP address and MAC of particular network device according to the sender address in ARP packets, can be determined
Address.
It is above specific embodiment of the invention.Others skilled in the art are not departing from the premise of the technology of the present invention principle
Under, response message can be improved and also should be regarded as protection scope of the present invention with modification with modification, these improvement.
Claims (4)
1. a kind of network equipment lookup method, it is characterised in that in the case where network appliance IP address is not known, using ARP
Packet carries out the inquiry and response of the network equipment, including:
ARP packets are transformed, it is met the original function of ARP protocol, and required information can be added.
Judge for all ARP packets for receiving, if not the ARP packets by transformation that can be recognized,
Then processed by ARP protocol original function;If the packet for receiving is the recognizable ARP packets by transformation,
Then parse the additional information of this ARP packet.
2. claim 1 methods described is utilized, it is characterised in that:
The ARP request packet that request sender is constructed, is sent in a network using broadcast mode, while the IP address of request
It is the IP address of the machine, all of network equipment can receive this packet in such network.Without side described in claim 1
The network equipment of method, will not return to response ARP packets.The network equipment of claim 1 methods described is only realized,
Response ARP packets could be returned.
After requesting party receives arp reply bag, if it is judged that this packet is improved ARP packets, then this number is parsed
According to the response message of bag.
3. claim 1 methods described is utilized, it is characterised in that:
Answer party except complete ARP protocol required by basic function in addition to, if it is judged that the ARP request packet for receiving is
The packet transformed, then transform arp reply packet, and loading meets the information required by requesting party.
4. a kind of network equipment, it is characterised in that:
The method for realizing claim 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611132846.6A CN106888276A (en) | 2016-12-10 | 2016-12-10 | The method and the network equipment of network equipment lookup are carried out using ARP packets |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611132846.6A CN106888276A (en) | 2016-12-10 | 2016-12-10 | The method and the network equipment of network equipment lookup are carried out using ARP packets |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106888276A true CN106888276A (en) | 2017-06-23 |
Family
ID=59176202
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611132846.6A Pending CN106888276A (en) | 2016-12-10 | 2016-12-10 | The method and the network equipment of network equipment lookup are carried out using ARP packets |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106888276A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112073557A (en) * | 2020-09-18 | 2020-12-11 | 上海市共进通信技术有限公司 | Method for realizing automatic acquisition of name of down-hanging device by gateway under network static IP condition |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030980A (en) * | 2007-04-05 | 2007-09-05 | 中兴通讯股份有限公司 | Wide-band terminal identifier based on Ethernet and its identifying method |
CN103297559A (en) * | 2013-05-09 | 2013-09-11 | 厦门亿联网络技术股份有限公司 | Method for quickly searching equipment information within local area network |
CN105553698A (en) * | 2015-12-09 | 2016-05-04 | 福建天晴数码有限公司 | Traffic counting method and traffic counting system based on local area network |
-
2016
- 2016-12-10 CN CN201611132846.6A patent/CN106888276A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030980A (en) * | 2007-04-05 | 2007-09-05 | 中兴通讯股份有限公司 | Wide-band terminal identifier based on Ethernet and its identifying method |
CN103297559A (en) * | 2013-05-09 | 2013-09-11 | 厦门亿联网络技术股份有限公司 | Method for quickly searching equipment information within local area network |
CN105553698A (en) * | 2015-12-09 | 2016-05-04 | 福建天晴数码有限公司 | Traffic counting method and traffic counting system based on local area network |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112073557A (en) * | 2020-09-18 | 2020-12-11 | 上海市共进通信技术有限公司 | Method for realizing automatic acquisition of name of down-hanging device by gateway under network static IP condition |
CN112073557B (en) * | 2020-09-18 | 2023-04-28 | 上海市共进通信技术有限公司 | Method for realizing gateway to automatically acquire name of down-hanging device under network static IP condition |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113411313B (en) | Data transmission method, device and system | |
US9712559B2 (en) | Identifying frames | |
US10742777B2 (en) | UDP protocol acceleration method and system | |
CN114365464B (en) | Method, equipment and system for forwarding message in SR network | |
EP2088717A1 (en) | A method of transferring fragmentation message, a system of communication and a tunnel device | |
CN100473037C (en) | Method for realizing distributed DHCP relay | |
WO2022022229A1 (en) | Method and device for processing message | |
CN107306220A (en) | Message forwarding method and device | |
CN108848025A (en) | Gateway, internet of things equipment and system, register method and information processing method | |
TW200609737A (en) | Data transfer system, communication protocol conversion cradle, address conversion method used therefor, and program thereof | |
CN102238059A (en) | Data message processing method and system and access service node | |
CN105515921A (en) | Method and device for achieving real-time monitoring over network fragment message flow | |
CN103327129B (en) | For the domain name analytic method of more WAN mouthfuls of gateway devices | |
CN101645895A (en) | Method and device for realizing tunnel safety | |
CN103095608A (en) | Delegation forwarding method for domain name system (DNS) data package | |
CN106888276A (en) | The method and the network equipment of network equipment lookup are carried out using ARP packets | |
CN105515995A (en) | Message processing method and apparatus, and flow table generation method and apparatus | |
CN103458060B (en) | The transmission method and device of hostid under a kind of multistage network address conversion | |
US20170195236A1 (en) | Communication method and communication device | |
CN103607350A (en) | Method and device for generating route | |
CN100579075C (en) | Method for rapid response to ICMP echo request message | |
CN105610808A (en) | Network traffic identification method and system based on dynamic domain name resolution | |
Awwad et al. | Second and subsequent fragments headers compression scheme for IPv6 header in 6LoWPAN network | |
US20100238930A1 (en) | Router and method of forwarding ipv6 packets | |
CN105282102A (en) | Data stream processing method and system, and IPv6 data processing equipment |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170623 |
|
WD01 | Invention patent application deemed withdrawn after publication |