当前位置:网站首页>ARP及ARP欺骗
ARP及ARP欺骗
2022-07-02 06:28:00 【藤原千花的败北】
前言
网络设备有数据要发送给另一台网络设备时,必须要知道对方的 网络层地址(IP地址)。IP地址由网络层提供,但是仅有IP地址不够,IP数据报文 必须向下封装成帧才能通过数据链路层进行发送。数据帧要包含目的MAC地址,因此发送端还必须获得目的MAC地址。
通过目的IP获取目的MAC地址的过程由ARP协议来实现。
一、ARP是什么?
地址解析协议,Address Resolution Protocol
主机A要发送数据包给主机C,在主机A ping 主机C 10.0.0.3,数据从上层开始封装,到网络层时有源IP和目的IP(可由DNS获取),到数据链路层,要封装源MAC和目的MAC,目的MAC未知。那么,就需要发送ARP。
二、ARP详解
1.ARP请求

数据封装到链路层,发现没有MAC地址,转而封装一个ARP请求。但是封装成帧还是需要一个MAC地址,就在帧头部写入目的MAC:FF-FF-FF-FF-FF-FF,广播地址,在ARP数据里有目的IP字段。每一台网络设备收到这个ARP请求包,会提取ARP数据,匹配到主机IP与数据包目的IP一致,则返回主机的MAC地址。
2.ARP响应

主机C收到由主机A广播出来的ARP请求,发现目的IP与本主机一致,则返回一个ARP响应数据包。
3.ARP数据包格式

ARP广播只能在同网段,路由器的每一个接口必须在不同网段,因此ARP报文不能穿越路由器。
在配置IP地址时,网络设备会发送一个免费ARP,用于确保不会由IP地址冲突

在一些特殊情况下,可以使用ARP代理,实现不同网段ARP的请求
ARP欺骗
ARP 欺骗:攻击者发送“无故ARP响应”来伪装其他设备,导致通讯失败
边栏推荐
- MySQL优化
- Static library and dynamic library
- SQL server如何卸载干净
- Library function of C language
- Use C language to receive JSON strings
- 力扣每日一题刷题总结:二叉树篇(持续更新)
- Comparison between setTimeout and requestanimationframe (page refresh)
- How to apply for a secondary domain name?
- On November 24, we celebrate the "full moon"
- Global and Chinese markets of tilting feeders 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

Cvpr19 deep stacked hierarchical multi patch network for image deblurring paper reproduction
![[dynamic planning] p4170: coloring (interval DP)](/img/52/76f8baebb19fe10db91c74fec9a697.jpg)
[dynamic planning] p4170: coloring (interval DP)

16: 00 interview, came out at 16:08, the question is really too

CarSim problem failed to start solver: path_ ID_ OBJ(X) was set to Y; no corresponding value of XXXXX?

Fundamentals of music theory (brief introduction)

STM32疑难杂症之ST-LINK Connection error INVALID ROM TABLE

Use of OpenCV 6.4 median filter

Use of opencv3 6.2 low pass filter

Smart agriculture solutions smart agriculture system development

OpenCV 6.4 中值滤波器的使用
随机推荐
OpenCV3 6.2 低通滤波器的使用
Force deduction method summary: find classes
用C# 语言实现MYSQL 真分页
Carsim-問題Failed to start Solver: PATH_ID_OBJ(X) was set to Y; no corresponding value of XXXXX?
力扣每日一题刷题总结:字符串篇(持续更新)
Global and Chinese market of medicine cabinet 2022-2028: Research Report on technology, participants, trends, market size and share
Method recursion (Fibonacci sequence, frog jumping steps, tower of Hanoi problem)
Carsim-路面3D形状文件参数介绍
类和对象(类和类的实例化,this,static关键字,封装)
One of the reasons for WCF update service reference error
DWORD ptr[]
乐理基础(简述)
Intelligent manufacturing solutions digital twin smart factory
Sequence problem for tqdm and print
【无标题】
Cvpr19 deep stacked hierarchical multi patch network for image deblurring paper reproduction
Media query usage
OpenCV关于x,y坐标容易混淆的心得
c语言自定义类型——结构体,位段(匿名结构体,结构体的自引用,结构体的内存对齐)
On the confrontation samples and their generation methods in deep learning