当前位置:网站首页>Address resolution ARP Protocol
Address resolution ARP Protocol
2022-07-26 06:35:00 【L7256】
- ARP Protocol belongs to network layer protocol
- When a host sends Ethernet data frames to another host on the same LAN , It's based on mac Address to determine the interface .
- ARP The agreement is to settle in a LAN in , host A Host B Of IP Address , But there is no host B Of MAC The question of address
1. Application scenarios :
When one LAN There is a host in it A(IP: 192.168.1.1) And host B(IP: 192.168.1.2), here : host A Request initiation TCP Connect to host B.
- When the host A It is necessary to send messages to the host B(IP:192.168.1.2), host A Check out your Arp surface (arp -a You can see ), Use it if you have it Arp Host of table B Of mac Address .
- There is no host B Of IP Address corresponding MAC Address , This time the mainframe A Will send a ARP Request message ( radio broadcast )
- host B And this LAN Other hosts in received this Arp Broadcast message , host B Will reply ARP Reply message ( Include host B Of IP Address and MAC Address ) Host computer A( unicast ), Other hosts do not respond .
- host A Will put the host B Of IP and MAC Address deposit ARP surface ( There is a timeout deletion mechanism )
2. ARP Message format
ARP Message format
host A stay LAN Internal broadcast ARP message ,LAN The host inside B reply ARP response message .
- Ethernet destination address : All for 1 On behalf of broadcast address , Send to LAN All hosts in the
- Ethernet source address : The sender ( host A) Of MAC Address
- The frame type :ARP request / Reply message ; The frame type is 0x0806
- Hardware type : 0001 For Ethernet
- Protocol type :0800 representative IPV4 agreement
- Hardware address length : Sending end MAC Address length .
- Protocol address length : Length of protocol address at the sending end , It's usually IP agreement , Corresponding IP Address length , Namely 0000 0100
- op Field : ARP Request for 1,ARP Answer is 2,RARP Request for 3,RARP Answer is 4.
- Ethernet address of sending end : The sender ( host A) Of MAC Address .
- The sender IP Address : The sender ( host A) Of IP Address .
- Destination ethernet address : Target end ( host B) Of MAC Address . whole 0
- Purpose IP Address : Target end ( host B) Of IP Address .
3. ARP Packet capture
- ARP Request message : host A(192.168.1.1) Send to LAN The host inside B(192.168.1.123)
- ARP response message
边栏推荐
- Jz36 binary search tree and bidirectional linked list
- RNN循环神经网络
- BigDecimal becomes negative
- BPG笔记(四)
- Go channel
- Regular expressions and calling related functions in C language
- CONDA virtual environment envs directory is empty
- 多目标检测
- [image denoising] image denoising based on bicube interpolation and sparse representation matlab source code
- Use scanner to get multiple data types from the keyboard
猜你喜欢
随机推荐
【C语言】通讯录动态版和文件版
[day06_0423] C language multiple choice questions
使用Scanner从键盘获取多种数据类型
【Day_07 0425】Fibonacci数列
【Day_02 0419】倒置字符串
【Day_06 0423】不要二
Force deduction 5: Longest palindrome substring
Read five articles in the evening | Economic Daily: don't treat digital collections as wealth making products
Code Runner for VS Code,下载量突破 4000 万!支持超过50种语言
Jz36 binary search tree and bidirectional linked list
Multi target detection
机械制造企业如何借助ERP系统,做好生产管理?
C# 可以利用反射给只读属性赋值吗?
[day_020419] sort subsequence
【Day06_0423】C语言选择题
Leetcode 42. rainwater connection
归并排序(merge_sort)
少儿编程 电子学会图形化编程等级考试Scratch一级真题解析(选择题)2022年6月
【Day04_0421】C语言选择题
Why use the static keyword when defining methods












