当前位置:网站首页>ARP message header format and request flow
ARP message header format and request flow
2022-07-01 23:27:00 【Laplacian】
List of articles
ARP Header format

Format specification :
- Hardware type :16 Bit fields , Used to define the operation ARP The type of network . Each LAN is assigned an integer based on its type . for example : The type of Ethernet is 1.ARP Available on any physical network .
- Protocol type :16 Bit fields , Used to define the protocol used . for example : Yes IPv4 The protocol field is 0800.ARP Can be used for any high-level protocol
- Hardware address length :8 Bit fields , Used to define the length of the physical address , In bytes . for example : For Ethernet, the value is 6.
- Protocol address length :8 Bit fields , Used to define the length of the logical address , In bytes . for example : about IPv4 The value of the protocol is 4.
- opcode :16 Bit fields , Used to define the type of message . There are two defined grouping types :ARP The request is 1,ARP The response is 2,RARP The request is 3,RARP The answer is 4.
- Source hardware address : This is a variable length field , Used to define the physical address of the sender . for example : For Ethernet, the length of this field is 6 byte .
- Source logical address : This is a variable length field , The logic used to define the sender (IP) Address . for example : about IP The length of the protocol field is 4 byte .
- Destination hardware address : This is a variable length field , Used to define the physical address of the target , for example , For Ethernet, this field is bit 6 byte . about ARP Request message , This field is full 0, Because the sender does not know the hardware address of the target .
- Destination logical address : This is a variable length field , The logic used to define the goal (IP) Address , about IPv4 The length of the protocol field is 4 Bytes .
Send in Ethernet ARP On request , The source of etheric head MAC The address is local MAC, Purpose MAC The address is full f;ARP The source of MAC For the local MAC, Source IP It's local IP, Purpose MAC by 0, Purpose IP For the requested IP Address
ARP Request flow
A The host requests B host MAC Address time , Will judge first A、B Whether it belongs to the same network segment , Send in different ways ARP request .
- Same segment
- A send out ARP radio broadcast , Switch learning A Of MAC Address , Concurrent flooding .
- B received ARP Post packet transmission ARP Unicast to A, At the same time, I learned B Of MAC Address , And then A Acquire B Of MAC Address
- Cross network segment
- A send out ARP radio broadcast , Request gateway's MAC
- The packet is changed to : Source :A IP, Purpose :B IP, Source MAC:A MAC, Purpose MAC: gateway MAC
- A take ARP A packet is sent to A Gateway for
- A Gateway query routing table , Modify the data package : Source order IP unchanged , Source MAC Change to A The gateway MAC, Purpose MAC Change to the next jump MAC, Route recursion , Finally arrive at B Gateway for
- B The gateway finds that this machine has B Of MAC Address , Please Return by the Way You Came B Of MAC Address to A
If AB Belong to the same network segment , however A To B There is no direct route , that A It will also follow the process of cross network segment , Send the packet to the gateway for processing .
边栏推荐
- The online beggar function of Japanese shopping websites
- 认识--Matplotlib
- Zhongang Mining: it has inherent advantages to develop the characteristic chemical industry dominated by fluorine chemical industry
- SWT/ANR问题--SWT 导致 low memory killer(LMK)
- The digital summit is popular, and city chain technology has triggered a new round of business transformation
- Anomaly-Transformer (ICLR 2022 Spotlight)复现过程及问题
- De PIP. Interne. CLI. Main Import main modulenotfounderror: No module named 'PIP'
- Zero foundation tutorial of Internet of things development
- What is the mosaic tailgate?
- 纪念成为首个DAYUs200三方demo贡献者
猜你喜欢

会声会影2022智能、快速、简单的视频剪辑软件

Yoga27 multidimensional all-in-one computer with excellent appearance and high-end configuration

问题随记 —— file /usr/share/mysql/charsets/README from install of MySQL-server-5.1.73-1.glibc23.x86_64 c

CADD course learning (3) -- target drug interaction

What is the mosaic tailgate?

认识--Matplotlib

Concepts of dictionary, hash table and array

Paramètres communs de matplotlib

2022年起重机司机(限桥式起重机)考试试题及模拟考试

flutter Unable to load asset: assets/images/888. png
随机推荐
Concepts of dictionary, hash table and array
from pip._ internal. cli. main import main ModuleNotFoundError: No module named ‘pip‘
Paramètres communs de matplotlib
Win 10 mstsc connect RemoteApp
Daily three questions 6.30 (2)
Daily three questions 6.29
Depth first search and breadth first search of graph traversal
证券开户选哪个证券公司比较好,哪个更安全
Practical application and extension of plain framework
Li Kou today's question -241 Design priorities for operational expressions
[micro service sentinel] sentinel integrates openfeign
The best smart home open source system in 2022: introduction to Alexa, home assistant and homekit ecosystem
物联网现状及未来发展趋势
Oracle中已定义者身份执行函数AUTHID DEFINER与Postgresql行为的异同
Matplotlib common charts
Understanding threads
Experience of practical learning of Silicon Valley products
软件架构的本质
What is the mosaic tailgate?
Why is PHP called hypertext preprocessor