当前位置:网站首页>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 .
边栏推荐
- 小程序表单校验封装
- 内存泄露和内存溢出的区别是什么?
- What professional classification does the application of Internet of things technology belong to
- 证券开户选哪个证券公司比较好,哪个更安全
- from pip._ internal. cli. main import main ModuleNotFoundError: No module named ‘pip‘
- [micro service sentinel] sentinelresourceaspect details
- What is the relationship between modeling and later film and television?
- Redis RDB快照
- 【小程序】通过scroll-view组件实现左右【滑动】列表
- The digital summit is popular, and city chain technology has triggered a new round of business transformation
猜你喜欢

Matplotlib常用图表

纪念成为首个DAYUs200三方demo贡献者

Matplotlib common charts

2021 RoboCom 世界机器人开发者大赛-本科组初赛

Redis 主从同步

物联网开发零基础教程

from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘

MT manager test skiing Adventure

Redis data types and application scenarios

Istio, ebpf and rsocket Broker: in depth study of service grid
随机推荐
2022-07-01:某公司年会上,大家要玩一食发奖金游戏,一共有n个员工, 每个员工都有建设积分和捣乱积分, 他们需要排成一队,在队伍最前面的一定是老板
Development trend and future direction of neural network Internet of things
The third part of the construction of the defense system of offensive and defensive exercises is the establishment of a practical security system
Know --matplotlib
Notes on problems - /usr/bin/perl is needed by mysql-server-5.1.73-1 glibc23.x86_ sixty-four
Experience of practical learning of Silicon Valley products
win 10 mstsc连接 RemoteApp
为什么PHP叫超文本预处理器
字典、哈希表、数组的概念
Current situation and future development trend of Internet of things
有没有一段代码,让你为人类的智慧所折服
Matplotlib常用设置
Wechat personal small store one click opening assistant applet development
What are the common types of points mall games?
Yoga27 multidimensional all-in-one computer with excellent appearance and high-end configuration
mt管理器测试滑雪大冒险
Three development trends of enterprise application from the perspective of the third technological revolution
flutter Unable to load asset: assets/images/888.png
2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
Notes to problems - file /usr/share/mysql/charsets/readme from install of mysql-server-5.1.73-1 glibc23.x86_ 64 c