当前位置:网站首页>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 .
边栏推荐
- Paramètres communs de matplotlib
- 2021 RoboCom 世界机器人开发者大赛-高职组复赛
- notBlank 和 notEmpty
- jpa手写sql,用自定义实体类接收
- 【必会】BM41 输出二叉树的右视图【中等+】
- The best smart home open source system in 2022: introduction to Alexa, home assistant and homekit ecosystem
- What are the common types of points mall games?
- dat.GUI
- [micro service sentinel] sentinelresourceaspect details
- Matplotlib常用設置
猜你喜欢
flutter Unable to load asset: assets/images/888.png
CKS CKA ckad change terminal to remote desktop
Notes to problems - file /usr/share/mysql/charsets/readme from install of mysql-server-5.1.73-1 glibc23.x86_ 64 c
问题随记 —— /usr/bin/perl is needed by MySQL-server-5.1.73-1.glibc23.x86_64
物联网现状及未来发展趋势
[applet] realize the left and right [sliding] list through the scroll view component
The digital summit is popular, and city chain technology has triggered a new round of business transformation
Win 10 mstsc connect RemoteApp
2022 crane driver (limited to bridge crane) examination questions and simulation examination
Matplotlib common charts
随机推荐
STM32F030F4驱动TIM1637数码管芯片
dat. GUI
Daily three questions 6.30
会声会影2022智能、快速、简单的视频剪辑软件
Future trend and development of neural network Internet of things
建模和影视后期有什么关联?
Switch to software testing, knowing these four points is enough!
Matplotlib common charts
flutter Unable to load asset: assets/images/888. png
from pip._ internal. cli. main import main ModuleNotFoundError: No module named ‘pip‘
Redis~02 cache: how to ensure data consistency in MySQL and redis when updating data?
ARP报文头部格式和请求流程
2022-07-01:某公司年会上,大家要玩一食发奖金游戏,一共有n个员工, 每个员工都有建设积分和捣乱积分, 他们需要排成一队,在队伍最前面的一定是老板
神经网络物联网的发展趋势和未来方向
认识线程
证券开户选哪个证券公司比较好,哪个更安全
from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘
Commemorate becoming the first dayus200 tripartite demo contributor
通过Go语言创建CA与签发证书
Matplotlib常用设置