通信网原理实验报告Ethernet and ARP
更新时间:2024-04-26 18:42:01 阅读量: 综合文库 文档下载
- 通信网原理与协议推荐度:
- 相关推荐
实验一 Ethernet and ARP
一、实验目的
1.加强对以太网帧格式的理解; 2.理解ARP协议的工作原理。 二、实验环境 1.PC机一台; 2.WireShark软件。 三、实验内容
1. Capturing and analyzing Ethernet frames 2. The Address Resolution Protocol 四、实验步骤及思考
(一)Capturing and analyzing Ethernet frames
HTTP GET Message
- 1 -
(1)Based on the contents of the Ethernet frame containing the HTTP
GET message
1. What is the 48-bit Ethernet address of your computer?
Answer:The 48-bit Ethernet address of my computer is:c8:0a:a9:db:9b:f3
The Ethernet address of my computer
2. What is the 48-bit destination address in the Ethernet frame? Is this the Ethernet address of gaia.cs.umass.edu? (Hint: the answer is no). What device has this as its Ethernet address?
[Note: this is an important question, and one that students sometimes get wrong. Re-read pages 468-469 in the text and make sure you understand the answer here.]
- 2 -
Answer:
1)The 48-bit destination address in the Ethernet frame is:00:23:89:8d:50:71
The destination address in the Ethernet frame
2)This is not the Ethernet address of gaia.cs.umass.edu.
3)It is the address of my Linksys router, whick is the link used to get off the subnet.
3.Give the hexadecimal value for the two-byte Frame type field. What do the bit(s) whose value is 1 mean within the flag field? Answer:
1)The hexadecimal value for the two-byte Frame type field is:ox0800
The hexadecimal value for the two-byte Frame type
2) The value is 1 within the flag field means the fragment has not been fragmented.
- 3 -
Flag
4.How many bytes from the very start of the Ethernet frame does the ASCII “G” in “GET” appear in the Ethernet frame? Answer:
1)The ASCII “G” appears 54 bytes from the very start of the Ethernet frame. 2)Calculation process as follows:There are 14 bytes of Ethernet frame,20 bytes of IP header and 20 bytes of TCP header before HTTP data is encountered.
5. What is the hexadecimal value of the CRC field in this Ethernet frame? Answer:
1)There is no CRC field.
2)Because the CRC calculated before the Wireshark packet sniffer start up.
- 4 -
(2)Based on the contents of the Ethernet frame containing the first byte of the HTTP response message
6. What is the value of the Ethernet source address? Is this the address of your computer, or of gaia.cs.umass.edu (Hint: the answer is no). What device has this as its Ethernet address? Answer:
1)The value of the Ethernet source address is: 00:23:89:8d:50:71
HTTP response message
2)This is neither the address of your computer,northe address of gaia.cs.umass.edu.
3)It is the address of my Linksys router,which is the link used to get onto
- 5 -
my subnet.
7. What is the destination address in the Ethernet frame? Is this the Ethernet address of your computer? Answer:
1)The destination address in the Ethernet frame is:c8:0a:a9:db:9b:f3 2)It is the address of my computer.
(The 48-bit Ethernet address of my computer is:c8:0a:a9:db:9b:f3)
8. Give the hexadecimal value for the two-byte Frame type field. What
do the bit(s) whose value is 1 mean within the flag field? Answer:
1)The hexadecimal value for the two-byte Frame type field is: 0x0800.
- 6 -
2)The value is 1 within the flag field means the fragment has not been fragmented.
Flag field
9. How many bytes from the very start of the Ethernet frame does the ASCII “O” in “OK” (i.e., the HTTP response code) appear in the Ethernet frame? Answer:
1)The ASCII “O” appears 54 bytes from the very start of the Ethernet frame. 2)Calculation process as follows:There are 14 bytes of Ethernet frame,20 bytes of IP header and 20 bytes of TCP header before HTTP data is encountered.
10. What is the hexadecimal value of the CRC field in this Ethernet frame? Answer:
1)There is no CRC field.
2)The reason:Because the CRC calculated before the Wireshark packet sniffer start up.
(二)The Address Resolution Protocol (1)ARP Caching
11. Write down the contents of your computer’s ARP cache. What is the meaning of each column value?
- 7 -
Answer:
1)The Internet Address column contains the IP address,.
2)The Physical Address column contains the MAC address, and the type indicates the protocol type. 3)Observing ARP in action
12. What are the hexadecimal values for the source and destination addresses in the Ethernet frame containing the ARP request message? Answer:
- 8 -
1)The hexadecimal values for the source addresses in the Ethernet frame containing the ARP request message is: 00:23:89:8d:50:71
2)The destination addresses in the Ethernet frame containing the ARP request message is: ff:ff:ff:ff:ff:ff
13. Give the hexadecimal value for the two-byte Ethernet Frame type field. What do the bit(s) whose value is 1 mean within the flag field? Answer:
The hexadecimal value for the two-byte Ethernet Frame type field is:0x0806.
14. Download the ARP specification from
ftp://ftp.rfc-editor.org/innotes/std/std37.txt. A readable, detailed discussion of ARP is also at
http://www.erg.abdn.ac.uk/users/gorry/course/inet-pages/arp.html. a) How many bytes from the very beginning of the Ethernet frame does
- 9 -
the ARP opcode field begin?
Answer:The ARP opcode field begins 20 bytes from the very beginning of the Ethernet frame.
b) What is the value of the opcode field within the ARP-payload part of the Ethernet frame in which an ARP request is made?
Answer:The hex value for opcode field withing the ARP-payload of the request is 1.
c) Does the ARP message contain the IP address of the sender?
Answer:Yes, the ARP message containg the IP address 192.168.1.105 for the sender.
- 10 -
d) Where in the ARP request does the “question” appear – the Ethernet address of the machine whose corresponding IP address is being queried?
Answer:The field “Target MAC address” is set to 00:00:00:00:00:00 to question the machine whose corresponding IP address (192.168.1.105) is being queried.
15. Now find the ARP reply that was sent in response to the ARP request.
a) How many bytes from the very beginning of the Ethernet frame does the ARP opcode field begin?
Answer:The ARP opcode field begins 20 bytes from the very beginning of the Ethernet frame.
- 11 -
b) What is the value of the opcode field within the ARP-payload part of the Ethernet frame in which an ARP response is made?
Answer:The hex value for opcode field withing the ARP-payload part of the Ethernet frame is 2.
c) Where in the ARP message does the “answer” to the earlier ARP request appear – the IP address of the machine having the Ethernet address whose corresponding IP address is being queried?
Answer:The answer to the earlier ARP request appears in the”Sender MAC address” field, which contains the Ethernet address 00:d0:59:a9:3d:68 for the sender with IP address 192.168.1.1.
- 12 -
16. What are the hexadecimal values for the source and destination addresses in the Ethernet frame containing the ARP reply message? Answer:The hex value for the source address is 00:06:25:da:af:73 and for the destination is 00:d0:59:a9:3d:68 .
17. Open the ethernet-ethereal-trace-1 trace file in
http://gaia.cs.umass.edu/wireshark-labs/wireshark-traces.zip. The first and second ARP packets in this trace correspond to an ARP request sent by the computer running Wireshark, and the ARP reply sent to the computer running Wireshark by the computer with the ARP-requested Ethernet address. But there is yet another computer on this network, as indiated by packet 6 – another ARP request. Why is there no ARP reply (sent in response to the ARP request in packet 6) in the packet trace? Answer:There is no reply in this trace, because we are not at the machine
- 13 -
that sent the request. The ARP request is broadcast, but the ARP reply is sent back directly to the sender’s Ethernet address.
五、实验结论
1.CRC在WireShark中是不能被抓到的,原因是CRC在抓包之前已经被计算好。
2.ARP Request消息的Type字段值为1;ARP Replyt消息的Type字段值为2。
3.MAC address是唯一的。
4.清空ARP缓存时(ARP –d )会出现如下的情况:
5.ARP –a 可以查看ARP缓存中的内容。 六、实验总结
通过这次实验,我对ARP协议有了进一步的理解,在实验过程中遇到了许多问题,但经过查阅资料并和学姐交流,最终解决了这些问题,以实验的方式验证课本上的理论知识,学习也变得更有意义。
- 14 -
正在阅读:
通信网原理实验报告Ethernet and ARP04-26
金版教程2017高考历史一轮复习第12单元西方人文精神的起源与发展05-12
2016-2017年河北省廊坊市高二上学期物理期末试卷和解析WORD07-03
我的第二次考级作文500字07-09
最经典搞笑中国式英语100句06-09
民事诉讼管辖制度及其完善探讨与研究07-09
临床护理实践指南习题201401-23
设备管理工作总结08-17
- 多层物业服务方案
- (审判实务)习惯法与少数民族地区民间纠纷解决问题(孙 潋)
- 人教版新课标六年级下册语文全册教案
- 词语打卡
- photoshop实习报告
- 钢结构设计原理综合测试2
- 2014年期末练习题
- 高中数学中的逆向思维解题方法探讨
- 名师原创 全国通用2014-2015学年高二寒假作业 政治(一)Word版
- 北航《建筑结构检测鉴定与加固》在线作业三
- XX县卫生监督所工程建设项目可行性研究报告
- 小学四年级观察作文经典评语
- 浅谈110KV变电站电气一次设计-程泉焱(1)
- 安全员考试题库
- 国家电网公司变电运维管理规定(试行)
- 义务教育课程标准稿征求意见提纲
- 教学秘书面试技巧
- 钢结构工程施工组织设计
- 水利工程概论论文
- 09届九年级数学第四次模拟试卷
- 通信网
- Ethernet
- 原理
- 实验
- 报告
- ARP
- 梅州蕉岭当地劳动力市场调查报告
- 干部选拔任用工作中存在的突出问题及对策研究
- 读《斯宾塞的快乐教育》有感
- 水文时间序列的混沌性分析及预测研究(毕业设计)
- 2016年上半年台湾省安全生产法内容:安全生产和职业病防治监督检
- 操作系统实验四报告-主存空间分配和回收(含源码)
- 有限空间作业管理制度
- 企业激励员工的15个好方法-职场生涯
- 2018-2019学年人教版pep五年级英语上册unit1单元测试题(含答案
- 精典小学期中质量分析报告
- 关于进一步完善查处取缔无证无照经营行为工作机制的通知
- 导数和微分产生的背景
- CO2气体保护焊培训教1
- 地理辨证直解
- 黄鹤楼送别课堂实录
- 第五章 肺结核患者治疗管理
- 怀化市城市总体规划
- 《计算机组成原理》运算器实验报告
- 2019届高三地理总复习(3年高考 1年模拟)精选刷题练专题4 地表
- TjpgDec技术手册(中文版) - 图文