当前位置:网站首页>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 .
边栏推荐
- SWT / anr problem - SWT causes kernel fuse deadlock
- Redis 主从同步
- CADD课程学习(3)-- 靶点药物相互作用
- What professional classification does the application of Internet of things technology belong to
- Distance measurement - Hamming distance
- flutter Unable to load asset: assets/images/888. png
- What is the mosaic tailgate?
- sql 优化
- notBlank 和 notEmpty
- 【微服务|Sentinel】@SentinelResource详解
猜你喜欢
2021 RoboCom 世界机器人开发者大赛-本科组初赛
RPA: Bank digitalization, business process automation "a small step", and loan review efficiency "a big step"
玻璃马赛克
【微服务|Sentinel】sentinel整合openfeign
STM32F030F4驱动TIM1637数码管芯片
Stm32f030f4 drives tim1637 nixie tube chip
The digital summit is popular, and city chain technology has triggered a new round of business transformation
2022年最佳智能家居开源系统:Alexa、Home Assistant、HomeKit生态系统介绍
[micro service sentinel] sentinel integrates openfeign
2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
随机推荐
Matplotlib common settings
Create Ca and issue certificate through go language
notBlank 和 notEmpty
2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
Zhao Fuquan: to ensure supply in the short term, we should build a safe, efficient and resilient supply chain in the long term
Why is PHP called hypertext preprocessor
2021 RoboCom 世界机器人开发者大赛-本科组初赛
Aaai22 | structural tagging and interaction modeling: a "slim" network for graph classification
MySQL binlog cleanup
Typescript enumeration
物联网应用技术专业是属于什么类
转行软件测试,知道这四点就够了!
Redis data types and application scenarios
每日三题 6.29
Redis~02 cache: how to ensure data consistency in MySQL and redis when updating data?
CKS CKA ckad change terminal to remote desktop
How to display real-time 2D map after rviz is opened
Matplotlib常用设置
常见的积分商城游戏类型有哪些?
Daily three questions 6.30