荷花代表什么象征意义| 老婆的妈妈叫什么| 舌头溃疡是什么原因造成的| 大小脸是什么原因造成的| 血糖高看什么科室| 头疼恶心想吐是什么原因| 什么叫打气 是吸毒吗| 女人梦到被蛇咬是什么意思| 身份证带x是什么意思| 孩子流黄鼻涕是什么原因| 人为什么打嗝| 龙头龟身是什么神兽| 金句是什么意思| 舌苔厚白是什么原因| 面瘫是什么症状| 三色线分别代表什么| 中暑吃什么| 做梦下大雨是什么兆头| 刺青是什么意思| joma是什么牌子| 头部爱出汗是什么原因| 贫血孕妇吃什么补血最快| 孕妇适合吃什么水果| 恩施有什么好玩的| 猪肚炖什么| mt是什么| 非经期少量出血是什么原因| 世袭罔替什么意思| 怀孕前检查什么项目内容| 耷拉是什么意思| 用什么可以美白| 什么品种荔枝最好吃| 为什么脸一边大一边小| 营长是什么级别| 微信是什么时候开始有的| 广西属于什么方向| 不时之需是什么意思| 翻白草长什么样| 为什么喝完酒头疼| 中医是什么| 黑标是什么意思| 附带是什么意思| 肛门疼痛是什么原因引起的| 刺瘊子是什么原因造成的| 蜈蚣是什么样的| 内分泌紊乱有什么症状表现| 麝牛是什么动物| 在于是什么意思| 手心脱皮是什么原因| 形态各异的异是什么意思| 怀孕皮肤变差什么原因| 正在值机是什么意思| 淋巴结肿大是什么样子| 褒义是什么意思| 什么叫精神出轨| 呼吸道感染用什么药| crp是什么检查项目| 病理检查是什么意思| 氯雷他定不能和什么药一起吃| 冠周炎吃什么药| 做完人流需要注意什么| 什么能减肚子上的脂肪| 给老人买什么礼物| 脑浆是什么颜色| 什么本本| 1893年属什么生肖| 腹泻拉水是什么原因| 泰坦尼克号什么时候上映的| 手心热是什么原因| 口腔溃疡缺乏什么维生素| 吉祥物是什么生肖| 合肥有什么特产| 请节哀是什么意思| 天天喝白酒对身体有什么危害| 阴道口痒是什么原因| 馐什么意思| 幽门梗阻是什么意思| 养肝吃什么好| 梦见水果是什么意思| 困是什么原因| 腹泻吃什么好| 十周年是什么婚| 撞车了打什么电话| 荔枝什么时候成熟季节| 部首和偏旁有什么区别| 五月十六是什么星座| 97年属什么的生肖| 八面玲珑是指什么生肖| 乙肝病毒表面抗体弱阳性什么意思| 三黄鸡是什么鸡| 双氯芬酸钠缓释片是什么药| 预防高原反应吃什么药| 洗钱是什么意思| 柠檬泡水喝有什么功效| 米五行属什么| 吃什么清肺| 龙跟什么生肖配对最好| uin是什么意思| 耳鸣吃什么| 1月11日什么星座| 尤文氏肉瘤是什么病| 宫颈管短有什么症状| 故友是什么意思| 酒花是什么| 血塞通治什么病最好| 相破是什么意思| 做梦梦到自己拉屎是什么意思| 香叶是什么树叶| ige是什么| 连衣裙配什么鞋子好看| 夕阳是什么时候| 重阳节吃什么| 血压高什么症状| 0m是什么意思| 牙齿像锯齿是什么原因| 路人皆知的上一句歇后语是什么| 嘴唇干是什么原因引起的| 西西里的美丽传说讲的什么| 燕窝是什么东西做成的| 仙姑是什么意思| 什么东西泡水喝降血压| 甘油是什么油| blood什么意思| 刚满月的小狗吃什么| 中国的国树是什么树| 小猫为什么一直叫| 感冒了喝什么汤好| 19朵玫瑰代表什么意思| 什么邮箱最好用最安全| 金风送爽是什么意思| 石人工念什么| 鹅口疮用什么药| 今年33岁属什么生肖的| 公明仪属什么生肖| 妇科炎症是什么原因引起的| 养肺补肺吃什么药最好| 霉菌性阴道炎用什么药效果好| 阻生智齿是什么意思| 反流性胃炎吃什么药| 梦见做棺材是什么意思| 鼻烟是什么东西| 带状疱疹吃什么药好| 生物指的是什么| 教学相长什么意思| 蒲公英长什么样子| 更年期补钙吃什么钙片好| 办护照有什么要求| 鸾凤和鸣什么意思| 1939年属什么| 黄历今天是什么日子| rapido是什么牌子| 纤维增殖灶是什么意思| bella是什么意思| 35岁属什么生肖| sodium是什么意思| 脑内小缺血灶是什么意思| 视黄醇结合蛋白是什么| 心路历程是什么意思| 马齿菜有什么功效| fev1是什么意思| 龟头炎的症状是什么样| 口干是什么原因引起的怎么治疗| 什么工作好| 白蛋白是什么| 炎性结节是什么意思| 荷花指什么生肖| 小孩晚上睡觉出汗是什么原因| 珈字五行属什么| 手掌心发红是什么原因| 脾胃虚弱吃什么蔬菜| 胶原蛋白有什么作用| 吃的少还胖什么原因| 摩羯座的幸运花是什么| 排卵期有什么明显症状| 手指甲发白是什么原因| 氟是什么| 珙桐是什么植物| 新陈代谢是指什么| 甲方乙方是什么意思| 草长莺飞是什么生肖| 用神是什么意思| 柠檬和什么一起泡减肥| leep是什么意思| 姜薯是什么| 偏头痛是什么原因| 重阳节是什么生肖| 身上起红斑是什么原因| 女人脚发热是什么原因| 拉肚子能吃什么食物| 膈肌痉挛是什么症状| 有潜力是什么意思| 为什么会晒黑| 偏头疼吃什么药效果好| 急性荨麻疹用什么药| 桃子是什么形状| 新生儿吐奶是什么原因| bridge什么意思| 包公代表什么生肖| 胡萝卜和什么不能一起吃| 什么植物吸收甲醛| 48岁属什么| 脚底板痛挂什么科| momax是什么牌子| 2004属什么生肖| 每天拉肚子是什么原因引起的| 血管为什么是青色的| 非什么意思| 为什么讨厌犹太人| 蓝得什么| 慢性胆囊炎是什么原因引起的| 安徽简称什么| rr医学上什么意思| 手腕发麻是什么原因| 长脸适合什么眉形| 脚心疼是什么原因| 夏祺是什么意思| 高压氧治疗有什么作用| 杨桃长什么样| 拉肚子是什么原因造成的| 腰的左侧疼是什么原因| 风象星座是什么意思| 维生素b2是什么颜色| 手术后吃什么补品好| 拔鼻毛有什么危害| 不解什么| 感冒引起的喉咙痛吃什么药| 检查肠道挂什么科| 什么样的春光| 七月三号是什么日子| 慢性胰腺炎有什么症状| 尿白细胞十一是什么意思| 巴宝莉是什么牌子| 植物园有什么植物| 总蛋白偏高有什么危害| 孕妇什么情况下打肝素| 99新是什么意思| 草字头一个见念什么| 一个不一个好念什么| 尿频尿急尿不尽吃什么药效果最好| 胎盘粘连是什么原因造成的| 向内求什么意思| 丁克族是什么意思| 蜜蜡是什么东西| 米线里的麻油是什么油| 痛风什么水果不能吃| 眼皮跳是什么原因| 遗精是什么意思啊| 西柚是什么季节的水果| 白带多是什么情况| 锑对人体有什么危害| 河马吃什么食物| 征求是什么意思| crs是什么| 送什么礼物| skp什么意思| 灏是什么意思| 为什么手指关节会痛| 乙肝两对半15阳性是什么意思| 下野是什么意思| 火棉胶婴儿是什么意思| 什么是bp| 00年属龙的是什么命| 世界上什么东西最大| 脚趾骨折是什么感觉| 百度
Search

【图刊】巾帼不让须眉 盘点特殊岗位上的她们

百度 2017年9月21日,青岛市教育局下发《关于做好全市中小学生课后服务工作的通知》,学校利用在管理、人员、场地、资源等方面的优势,在学校规定课程教学之外开展的便民性服务措施。

Address Resolution Protocol (ARP) is one of the major protocol of the TCP/IP protocol suite. The purpose of Address Resolution Protocol (ARP) is to resolve an IPv4 address (32 bit Logical Address) to the corresponding physical address (48 bit MAC Address). Network Applications at the Application Layer use IPv4 Address to communicate with another device. But at the Datalink layer, the addressing is MAC address (48 bit Physical Address), and this address is burned into the network card permanently. To understand this concept clearly, you need to visit the Ethernet frame format, which is the data packet generated at the Datalink layer. You can view your network card’s hardware address by typing the command "ipconfig /all" at the command prompt (without double quotes using Windows Operating Systems).

In other words, there are two types of addresses used for IPv4 communication. The address used at layer 3 (Network layer) is IPv4 address (32 bit Logical Addresses) and the address used at layer 2 (Datalink layer) is MAC address (48 bit Physical Address). When a computer encapsulates an IPv4 datagram, it needs source IPv4 address, destination IPv4 address, source MAC address and destination MAC address. Source IPv4 address, destination IPv4 address, source MAC address are already available, because source IPv4 address and destination IPv4 addresses are available locally and the destination IPv4 address is where we are trying to communicate. At the layer 2 (Datalink layer) of the sending computer, if the computer want to encapsulate an IPv4 datagram inside an Ethernet frame, it needs destination MAC address. Address Resolution Protocol (ARP) is used to resolve layer 2 MAC Address of the receiver (destination MAC address).

find-destination-mac-address.gif

The purpose of Address Resolution Protocol (ARP) is to find out the MAC address of a device in your Local Area Network (LAN), for the corresponding IPv4 address, which network application is trying to communicate.

Address Resolution Protocol (ARP) Message Format

Address Resolution Protocol ARP Message Format

Address Resolution Protocol (ARP) Message Format

Following are the fields in the Address Resolution Protocol (ARP) Message Format.

Hardware Type : Hardware Type field in the Address Resolution Protocol (ARP) Message specifies the type of hardware used for the local network transmitting the Address Resolution Protocol (ARP) message. Ethernet is the common Hardware Type and he value for Ethernet is 1. The size of this field is 2 bytes.

Protocol Type : Each protocol is assigned a number used in this field. IPv4 is 2048 (0x0800 in Hexadecimals).

Hardware Address Length : Hardware Address Length in the Address Resolution Protocol (ARP) Message is length in bytes of a hardware (MAC) address. Ethernet MAC addresses are 6 bytes long.

Protocol Address Length : Length in bytes of a logical address (IPv4 Address). IPv4 addresses are 4 bytes long.

Opcode : Opcode field in the Address Resolution Protocol (ARP) Message specifies the nature of the ARP message. 1 for ARP request and 2 for ARP reply.

Sender Hardware Address : Layer 2 address (MAC Address) of the device sending the message.

Sender Protocol Address : The protocol address (IPv4 address) of the device sending the message

Target Hardware Address : Layer 2 (MAC Address) of the intended receiver. This field is ignored in requests.

Target Protocol Address : The protocol address (IPv4 Address) of the intended receiver.

Working of Address Resolution Protocol (ARP)

Step 1: When a source device want to communicate with another device, source device checks its Address Resolution Protocol (ARP) cache to find it already has a resolved MAC Address of the destination device. If it is there, it will use that MAC Address for communication. To view your local Address Resolution Protocol (ARP) cache, Open Command Prompt and type command "arp -a" (without double quotes using Windows Operating Systems).

Step 2: If ARP resolution is not there in local cache, the source machine will generate an Address Resolution Protocol (ARP) request message, it puts its own data link layer address as the Sender Hardware Address and its own IPv4 Address as the Sender Protocol Address. It fills the destination IPv4 Address as the Target Protocol Address. The Target Hardware Address will be left blank, since the machine is trying to find Target Hardware Address.

Step 3: The source broadcasts the Address Resolution Protocol (ARP) request message to the local network.

Step 4: The message is received by each device on the LAN since it is a broadcast. Each device compare the Target Protocol Address (IPv4 Address of the machine to which the source is trying to communicate) with its own Protocol Address (IPv4 Address). Those who do not match will drop the packet without any action.

Step 5: When the targeted device checks the Target Protocol Address, it will find a match and will generate an Address Resolution Protocol (ARP) reply message. It takes the Sender Hardware Address and the Sender Protocol Address fields from the Address Resolution Protocol (ARP) request message and uses these values for the Targeted Hardware Address and Targeted Protocol Address of the reply message.

Step 6: The destination device will update its Address Resolution Protocol (ARP) cache, since it need to contact the sender machine soon.

Step 7: Destination device send the Address Resolution Protocol (ARP) reply message and it will NOT be a broadcast, but a unicast.

Step 8: The source machine will process the Address Resolution Protocol (ARP) reply from destination, it store the Sender Hardware Address as the layer 2 address of the destination.

Step 9: The source machine will update its Address Resolution Protocol (ARP) cache with the Sender Hardware Address and Sender Protocol Address it received from the Address Resolution Protocol (ARP) reply message.

Address Resolution Protocol Explained with an example

Let us take an example of below topology.

arp 01

I am sitting at 192.168.0.84. I want to ping to 192.168.0.122, to check the network connectivity. While running the ping command, we never specify the MAC Address of the destination device (192.168.0.122).

arp 02

We know that ping command works using ICMP. ICMP is encapsulated inside IP datagram and IP datagram is encapsulated within Ethernet Frame. We need Source IP Address (my IP Address, 192.168.0.84), destination IP Address (192.168.0.122), Source MAC Address (my MAC Address 08:00:27:58:58:98) and destination MAC Address to make the Ethernet Frame for ICMP message. Source IP Address, destination IP Address, Source MAC Address are known at this instance, but the destination MAC Address unknown at this instance.

To assemble the Ethernet Frame, my device must have the destination MAC Address corresponding to the IP Address 192.168.0.122.

We need to resolve the destination MAC Address corresponding to the IP Address 192.168.0.122.

Step 1: Before resolving the destination MAC Address corresponding to the IP Address 192.168.0.122, using Address Resolution Protocol (ARP), source device checks its Address Resolution Protocol (ARP) cache to find it already has a resolved MAC Address of the destination device. We can view the ARP cache by using the command arp -a

The ARP cache in my computer is empty. There are no entries in my ARP cache.

arp 03

Step 2: Now my computer need to resolve the destination MAC address using ARP. My computer will prepare an ARP Request message and send it with a destination MAC Address as FF:FF:FF:FF:FF:FF (Broadcast MAC Address) to LAN Switch.

arp 04

Step 3: Since the destination MAC Address is FF:FF:FF:FF:FF:FF (Broadcast MAC Address), the LAN Switch will flood it to all the connected ports and every device in the LAN will get a copy of it.

Following screen shot shows the Wireshark capture window of ARP Request message. You must compare the below screen shot with ARP message format image at the beginning of this lesson. We can see from the below screen shot that the destination MAC Address is FF:FF:FF:FF:FF:FF (Broadcast MAC Address), ARP opcode is 1 (for ARP Request), and the Target MAC Address is 00:00:00:00:00:00, which is unknown at this instance.

We can also see from the below screen shot that the Source IP Address is 192.168.0.84, destination IP Address is 192.168.0.122, Source MAC Address 08:00:27:58:58:98 and destination MAC Address is 00:00:00:00:00:00.

ARP Request Wireshark Capture

Step 4: The ARP Request message is received by each device on the LAN since it is a broadcast. Each device compare the Target Protocol Address (192.168.0.122), with its own IP Address. Those who do not match will drop the packet without any action.

Step 5: When the computer with the IP Address 192.168.0.122 receives the ARP Request, it must prepare an ARP Reply and send back to the computer who sent the ARP Request. ARP Reply will be a unicast, to save Network Resources.

arp 05

Note that the ARP Reply has the Opcodef filled as 2, which is used to identify it as a ARP Reply.

The "Sender MAC Address" field (which is marked below) in ARP Reply is the answer for ARP Request.

ARP Reply wireshark capture

Now both the computers can update their ARP cache, so that the MAC Address to IP Address mappings can be used for a future communication. However, after a small period of time, ARP cache is flushed to avoid incorrect mappings (IP Address of any device can change at any time)

The ARP cache filled with a MAC address to IP Address mapping is shown below.

ARP Cache

You have learned Address Resolution Protocol (ARP), Address Resolution Protocol (ARP) Message Format and how Address Resolution Protocol (ARP) operate in a LAN. Click "Next" to continue.

?

Related Tutorials
? Introduction to TCP/IP, Features of TCP/IP, TCP/IP History, What is RFC (Request for Comments)
? Seven Layers of OSI Model and functions of seven layers of OSI model
? Five layered TCP/IP model
? Network Layer (Layer 3)
? TCP/IP Data Encapsulation and Decapsulation
? Datalink Layer (Layer 2)
? Ethernet Frame Format
? What is MAC address or Layer 2 address or physical address
? IPv4 Protocol, IPv4 header and fields of IPv4 header
? IPv4 addresses, IPv4 Address Classes, IPv4 Address Classifications
? What is Subnet Mask
? What is network address
? Limited broadcast address
? Directed broadcast address
? What is limited broadcast in IPv4 and how limited broadcast works
? What is directed broadcast in IPv4 and how directed broadcast works
? What is default gateway
? What are private IP addresses - RFC 1918 private addresses
? APIPA Addresses (Automatic Private IP Addresses)
? What is loopback address in IPv4
? What is localhost
? Class A networks and Class A IP addresses
? Class B networks and Class B IP addresses
? Class C networks and Class C IP addresses
? Class D multicast IP addresses
? Subnetting - Part 1
? Subnetting - Part 2
? Subnetting - Part 3
? Subnetting - Part 4
? Subnetting - Part 5
? Subnetting - Part 6
? Variable Length Subnet Masking, VLSM, IP V4 Subnetting, subnetting tutorials, IP study guides, IP documentation, IP tutorials
? Supernetting, IP Supernetting, IP Supernetting tutorial, How to Supernet, Supernetting Guide, Supernetting Concepts
? How to find out the Network Address and Broadcast Address of a subnetted IPv4 address
? Address Resolution Protocol Tutorial, How ARP work, ARP Message Format
? What is Gratuitous ARP
午门是什么意思 肚子老是胀是什么原因 弥月之喜是什么意思 口腔溃疡牙龈肿痛吃什么药 唐僧肉是什么意思
滋阴是什么意思 喝蛋白粉有什么好处 小宇宙是什么意思 磋商是什么意思 栀子花开有什么寓意
dady是什么意思 s牌运动鞋是什么牌子 1996年是属什么生肖 理疗是什么意思 为什么一进去就软了
鼻子流清水是什么原因 奋笔疾书的疾是什么意思 七月18日是什么星座 反犬旁和什么有关 什么叫平年什么叫闰年
mr是什么检查项目mmeoe.com 7.1什么星座hcv9jop2ns5r.cn 南瓜长什么样子的图片hcv8jop1ns4r.cn 支原体培养及药敏是检查什么hcv7jop9ns9r.cn 智能电视什么品牌好hcv9jop2ns3r.cn
睡不着吃什么药最有效hcv9jop7ns4r.cn 一个点念什么yanzhenzixun.com 怀女孩有什么征兆hcv7jop7ns3r.cn 墨西哥说什么语言hcv8jop5ns8r.cn 面试穿什么衣服比较合适hcv8jop5ns6r.cn
未来的未多一横念什么bfb118.com 胃酸吃什么可以缓解hcv8jop3ns7r.cn 专车是什么意思jinxinzhichuang.com 甘油三酯高吃什么能降下来huizhijixie.com 散文是什么意思hcv7jop9ns9r.cn
肺结核吃什么药hcv9jop6ns7r.cn 角化型足癣用什么药hcv9jop0ns1r.cn 水母是什么hcv9jop6ns8r.cn 活动性肺结核是什么意思hcv8jop6ns2r.cn 死皮是什么hcv8jop1ns2r.cn
百度