LabExercise1-2 Ehternet - 图文
更新时间:2023-10-09 12:39:01 阅读量: 综合文库 文档下载
Lab Exercise 1 - Ethernet
Objective
To explore the details of Ethernet frames. Ethernet is a popular link layer protocol. Review Ethernet before doing this lab.
Requirements
Wireshark: This lab uses the Wireshark software tool to capture and examine a packet trace.
ping: This lab uses “ping” to send and receive messages. ping is a standard command-line utility for checking that another computer is responsive. It is widely used for network troubleshooting and comes pre-installed on Window, Linux, and Mac. While ping has various options, simply issuing the command “ping www.bit.edu.cn” will cause your computer to send a small number of ICMP ping requests to the remote computer (here www.bing.com), each of which should elicit an ICMP ping response.
Turn in
Hand in the trace file you captured and exercise report including your answers to the questions and figures you drew.
Step 1: Capture a Trace
1. Pick a remote web server or other publicly reachable Internet host and use ping to
send some ping messages and check that it sends replies. For example, “ping www.bit.edu.cn”. You should see several replies indicating that the pings reached the remote host and were returned.
Figure 1: Using pingto bounce messages off a remote host
2. Launch Wireshark and start a capture of Ethernet frames with a filter of “icmp”,
making sure that “enable MAC name resolution” is checked. The latter will translate Ethernet (MAC) addresses to provide vendor information. Also check that the Link-layer header type pulldown says “Ethernet”.
Figure 2: Setting the capture options for ping traffic
3. When the capture is started, repeat the ping command above. This time, the
packets will also be recorded by Wireshark.
4. After the ping command is complete, return to Wireshark and uses the menus or
buttons to stop the trace. You should now have a short trace similar to that shown in the figure below.
Figure 3: Trace of ping traffic, showing Ethernet details of the first packet
Step 2: Inspect the Trace
Select any packet in the trace (in the top panel) to see details of its structure (in the middle panel) and the bytes that make up the packet (in the bottom panel). Now we can inspect the details of the packets.
In the middle panel, expand the Ethernet header fields (using the “+” expander or icon) to see their details. Our interest is the Ethernet header, and you may ignore the higher layer protocols (which are IP and ICMP in this case). You can click on the Ethernet header to see the bytes that correspond to it in the packet highlighted in the bottom panel.
Step 3: Ethernet Frame Structure
To show your understanding of the Ethernet frame format, draw a figure of the ping message that shows the position and size in bytes of the Ethernet header fields. Your figure can simply show the frame as a long, thin rectangle. The leftmost fields come first in the packet and are sent on the wire first. On this drawing, show the range of the Ethernet header and the Ethernet payload. Add a dashed box at the end to represent the 4-byte checksum; we know it is there even if Wireshark does not show us this field.
Figure 4: Ethernet frame structure
Step 4: Scope of Ethernet Addresses
Each Ethernet frame carries a source and destination address. One of these addresses is that of your computer. It is the source for frames that are sent, and the destination for frames that are received. But what is the other address? Assuming you pinged a remote Internet server, it cannot be the Ethernet ad-dress of the remote server because an Ethernet frame is only addressed to go within one LAN. Instead, it will be the Ethernet address of the router or default gateway. This is the device that connects your LAN to the rest of the Internet. In contrast, the IP addresses in the IP block of each packet do indicate the overall source and destination endpoints. They are your computer and the remote server.
Draw a figure that shows the relative positions of your computer, the router, and the remote server. Label your computer and the router with their Ethernet addresses. Label your computer and the remote server with their IP addresses. Show where the Ethernet and the rest of the Internet fit on the drawing.
Figure 5: Logical structure of the network
Step 5: Broadcast Frames
The trace that you gathered above captured unicast Ethernet traffic sent between a specific source and destination, e.g., your computer to the router. It is also possible to send multicast or broadcast Ethernet traffic, destined for a group of computers or all computers on the Ethernet, respectively. We can tell from the address whether it is unicast, multicast, or broadcast. Broadcast traffic is sent to a reserved Ethernet address that has all bits set to “1”. Multicast traffic is sent to addresses that have a “1” in the first bit sent on the wire; broadcast is a special case of multicast. Broadcast and multicast traffic is widely used for discovery protocols, e.g., a packet sent to everyone in an effort to find the local printer.
Start a capture for broadcast and multicast Ethernet frames with a filter of “ether multicast”, wait up to 30 seconds to record background traffic, and then stop the capture. If you do not capture any packets with this filter then use the trace that we supplied. On most Ethernets, there is a steady chatter of background traffic as computers exchange messages to maintain network state, which is why we try to capture traffic without running any other programs. The capture filter of “ether multicast” will capture both multicast and broadcast Ethernet frames, but not regular unicast frames. You may have to wait a little while for these packets to be captured, but on most LANs with multiple computers you will see at least a packet every few seconds.
Examine the multicast and broadcast packets that you captured, looking at the details of the source and destination addresses. Most likely one has the broadcast Ethernet address, as broadcast frames tend to be more common than multicast frames. Look at a broadcast frame to see what address is used for broadcast by Ethernet. Expand the Ethernet address fields of either broadcast or multicast frames to see which bit is set to distinguish broadcast/multicast or group traffic from unicast traffic.
Answer the following questions:
1. What is the broadcast Ethernet address, written in standard form as Wireshark
displays it?
2. Which bit of the Ethernet address is used to determine whether it is unicast or
multicast/broadcast?
正在阅读:
LabExercise1-2 Ehternet - 图文10-09
新四级完形填空固定搭配 -11-29
中国佛学200句震撼世界的禅语04-24
学校教育的土壤与根基05-02
秦晖:从南非看中国08-05
那一刻我无比后悔作文500字06-27
PC3000中文教程 - 图文06-08
议协理代输运口出06-12
- 多层物业服务方案
- (审判实务)习惯法与少数民族地区民间纠纷解决问题(孙 潋)
- 人教版新课标六年级下册语文全册教案
- 词语打卡
- photoshop实习报告
- 钢结构设计原理综合测试2
- 2014年期末练习题
- 高中数学中的逆向思维解题方法探讨
- 名师原创 全国通用2014-2015学年高二寒假作业 政治(一)Word版
- 北航《建筑结构检测鉴定与加固》在线作业三
- XX县卫生监督所工程建设项目可行性研究报告
- 小学四年级观察作文经典评语
- 浅谈110KV变电站电气一次设计-程泉焱(1)
- 安全员考试题库
- 国家电网公司变电运维管理规定(试行)
- 义务教育课程标准稿征求意见提纲
- 教学秘书面试技巧
- 钢结构工程施工组织设计
- 水利工程概论论文
- 09届九年级数学第四次模拟试卷
- LabExercise
- Ehternet
- 图文
- 医院党风廉政建设工作总结
- 设备管道防腐保温或保冷涂漆施工隐蔽验收记录
- 阅读国学经典与提高小学生语文素养的研究
- 多元统计分析实验报告doc
- CDMA&WCDMA多 载波测试基本方法
- 总包施工单位考察办法方案
- 2015年工作总结及2016工作计划(绩效管理模块)
- 平面直角坐标系练习完美A4版打印
- 答案--四川大学《护理伦理学(1)1494》15秋在线作业1满分答案
- 新人调查问卷(1)(1)
- 商学法-吉林大学171821-商法学(二)
- GIS安装作业指导书
- 《个人团队与管理》 期末样题
- 英-高级英语1 何兆熊 Unit 10 The Artist in America
- 揭开迷雾:中共黄金大劫案
- 学校招生宣传策划书
- 哈工大数字电子技术基础习题册答案7和10(修改)
- 最常用的Shell命令
- 浙江民泰商业银行网上银行企业客户操作员申请表
- 2018年河道认养制企业河长制推进会讲话稿