当前位置:网站首页>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响应”来伪装其他设备,导致通讯失败
边栏推荐
猜你喜欢
On the confrontation samples and their generation methods in deep learning
Cvpr19 deep stacked hierarchical multi patch network for image deblurring paper reproduction
Linked list classic interview questions (reverse the linked list, middle node, penultimate node, merge and split the linked list, and delete duplicate nodes)
樂理基礎(簡述)
Animation synchronization of CarSim real-time simulation
MySQL optimization
Smart agriculture solutions smart agriculture system development
Static library and dynamic library
Implementation of bidirectional linked list (simple difference, connection and implementation between bidirectional linked list and unidirectional linked list)
类和对象(类和类的实例化,this,static关键字,封装)
随机推荐
STM32疑难杂症之ST-LINK Connection error INVALID ROM TABLE
Smart agriculture solutions smart agriculture system development
Real world anti sample attack against semantic segmentation
2022 Heilongjiang's latest eight member (Safety Officer) simulated test question bank and answers
Implementation of bidirectional linked list (simple difference, connection and implementation between bidirectional linked list and unidirectional linked list)
Array and string processing, common status codes, differences between PHP and JS (JS)
Opencv's experience of confusing X and Y coordinates
c语言自定义类型枚举,联合(枚举的巧妙使用,联合体大小的计算)
Valin cable: BI application promotes enterprise digital transformation
用数字 5,5,5,1 ,进行四则运算,每个数字当且仅当用一次,要求运算结果值为 24
使用Matplotlib绘制图表初步
深入理解JVM
My VIM profile
Generate database documents with one click, which can be called swagger in the database industry
VS Code配置问题
c语言将字符串中的空格替换成%20
Animation synchronization of CarSim real-time simulation
Using C language to realize MySQL true paging
类和对象(类和类的实例化,this,static关键字,封装)
Global and Chinese market of medicine cabinet 2022-2028: Research Report on technology, participants, trends, market size and share