Wireshark Ethernet and ARP 实验—Wireshark Lab: Ethernet and ARP v7.0

news2025/7/19 21:00:59

Wireshark Lab: Ethernet and ARP v7.0

1. Capturing and analyzing Ethernet frames

清除浏览器缓存
在这里插入图片描述
使用wireshark抓包并请求网页
在这里插入图片描述

修改“捕获数据包列表”窗口,仅显示有关 IP 以下协议的信息。
在这里插入图片描述

在这里插入图片描述
抓包干扰较多,故分析作者的数据包回答下列问题
包含HTTP GET消息的以太网帧如下:
在这里插入图片描述

1

What is the 48-bit Ethernet address of your computer?
在这里插入图片描述
Ethernet address :AmbitMic_a9:3d:68 (00:d0:59:a9:3d:68)

2

What is the 48-bit destination address in the Ethernet frame?
在这里插入图片描述
destination address: LinksysG_da:af:73 (00:06:25:da:af:73)。

Is this the Ethernet address of gaia.cs.umass.edu? (Hint: the answer is no).
不是 gaia.cs.umass.edu 的以太网地址

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.]

3

Give the hexadecimal value for the two-byte Frame type field. What upper layer protocol does this correspond to?
hexadecimal value :0x0800
protocol :IPV4
在这里插入图片描述

在这里插入图片描述

4

How many bytes from the very start of the Ethernet frame does the ASCII “G” in “GET” appear in the Ethernet frame?

在这里插入图片描述
在这里插入图片描述

16 × 3+6=54 bytes

Next, answer the following questions, based on the contents of the Ethernet frame containing the first byte of the HTTP response message.

5

What is the value of the Ethernet source address?
在这里插入图片描述
source address:LinksysG_da:af:73 (00:06:25:da:af:73)

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?
是连接该子网的路由器的地址

6

What is the destination address in the Ethernet frame? Is this the Ethernet address of your computer?
在这里插入图片描述
destination address: AmbitMic_a9:3d:68 (00:d0:59:a9:3d:68)
是本机地址

7

Give the hexadecimal value for the two-byte Frame type field. What upper layer protocol does this correspond to?
在这里插入图片描述
hexadecimal value:0x0800
protocol:IPV4

8

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?
在这里插入图片描述
4 × 16 + 4 = 68bytes

2. The Address Resolution Protocol

  1. 进入目录C:\Windows\System32
    在这里插入图片描述
  2. 命令行输入 arp -a
    在这里插入图片描述

9

Write down the contents of your computer’s ARP cache. What is the meaning of
each column value?

  • 网卡:

    • 在这里插入图片描述
  • 路由 IP :

    • 在这里插入图片描述
  • MAC 地址:

    • 在这里插入图片描述
  • 广播地址:

    • 在这里插入图片描述
  • 组播地址:

    • 在这里插入图片描述
  1. 清空arp缓存
    • 在这里插入图片描述
  2. 清空浏览器的缓存。
  3. 开始抓包
  4. 请求网页http://gaia.cs.umass.edu/wireshark-labs/HTTP-ethereal-lab-file3.html
  5. 停止抓包
  6. 由于不关心IP和更高层的协议,故点击 分析–>启用的协议,取消选中IP框再选择OK
    抓到的包的页面如下:

在这里插入图片描述

使用作者的数据包回答下列问题:

10

What are the hexadecimal values for the source and destination addresses in the
Ethernet frame containing the ARP request message?

在这里插入图片描述
destination : Broadcast (ff:ff:ff:ff:ff:ff)
source : AmbitMic_a9:3d:68 (00:d0:59:a9:3d:68)

11

Give the hexadecimal value for the two-byte Ethernet Frame type field. What
upper layer protocol does this correspond to?

在这里插入图片描述
hexadecimal value:0x0806

12

在这里插入图片描述
在这里插入图片描述

Download the ARP specification from ftp://ftp.rfc-editor.org/in-notes/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 the
ARP opcode field begin?

在这里插入图片描述
16 + 4 = 20bytes
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?

在这里插入图片描述
0x0001
c) Does the ARP message contain the IP address of the sender?
在这里插入图片描述
包含IP address of the sender
d) Where in the ARP request does the “question” appear – the Ethernet
address of the machine whose corresponding IP address is being queried?

在这里插入图片描述

Opcode值为1表示 request

13

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?

在这里插入图片描述
16+4=20bytes

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?

在这里插入图片描述
为0x0002

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?

Opcode: reply (2) ,值为2 ,表示reply

14

What are the hexadecimal values for the source and destination addresses in the
Ethernet frame containing the ARP reply message?

在这里插入图片描述
destination : AmbitMic_a9:3d:68 (00:d0:59:a9:3d:68)
source : LinksysG_da:af:73 (00:06:25:da:af:73)

15

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 indicated 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?
因为查询ARP报文通过广播帧发送的,对应子网的所有节点都能收到该报文,但是响应ARP报文仅通过一个标准帧发送,只有请求ARP的对应节点才能收到

Extra Credit

EX-1.

The arp command: arp -s InetAddr EtherAddr allows you to manually add an entry to the ARP cache that resolves the IP address InetAddr to the physical address EtherAddr. What would happen if, when you manually added an entry, you entered the correct IP address, but the wrong Ethernet address for that remote interface?
会导致本地主机无法与该IP地址对应的节点建立连接

EX-2.

What is the default amount of time that an entry remains in your ARP cache before being removed. You can determine this empirically (by monitoring the cache contents) or by looking this up in your operation system documentation. Indicate how/where you determined this value.

命令行输入netsh interface ipv4 show interfaces

在这里插入图片描述
Idx = 14 对应 WLAN
netsh interface ipv4 show interface 14查询接口WLAN的参数
在这里插入图片描述
基本可访问时间为 30000 毫秒,则ARP cache条目TTL为30000

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/35948.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Apollo 应用与源码分析:Monitor监控 - 基本概念与入口分析

Monitor 系统监控 目录 基本概念 代码结构分析 整体逻辑分析 基本概念 整体分类 该模块包含用于检查硬件状态和监视系统运行状况的代码等系统级软件。 在Apollo 5.5中,监视模块现在执行以下检查: 运行模块状态监控数据完整性监控数据频率监视系统运行状况(例…

springboot 点滴(3)springboot ThreadLocal实现单机权限认证

Springboot中权限认证的基本方案: 可以对URL进行HandlerInterceptor拦截,然后权限验证。 Client登录成功后,每次发送请求时,会将token等信息存放到header中。 Server收到请求,在HandlerInterceptor中从header获取用户…

3.4、可靠传输

3.4、可靠传输 3.4.1、基本概念 使用差错检测技术\color{red}差错检测技术差错检测技术(例如循环冗余校验 CRC ),接收方的数据链路层就可检测出帧在传输过程中是否产生了误码\color{red}误码误码(比特错误)。 数据链路层向上层提供的服务类…

hive中连续N天登录问题、topN问题、拉链表实现

一、连续N天登录问题 一般采用开窗函数来实现 首先需要用到窗口函数的向下取值 窗口函数lead 功能:用于从当前数据中基于当前行的数据向后偏移取值 语法:lead(colName,N,defautValue) colName:取哪一列的值 N&#xf…

RemObjects Remoting SDK for Delphi

RemObjects Remoting SDK for Delphi 远程处理SDK是一个框架,允许您创建使用服务公开性能的服务器。然后,可以通过网络远程访问这些解决方案,这些解决方案可以通过运行在大量语言和平台上的客户端软件来实现。 在当今时代,许多程序…

【人才盘点九宫格】你还不来学一学人才九宫格,知道你在领导心目中是属于哪一类人才吗?

文章目录一、九宫格的维度——绩效、能力、潜力1.1 维度一:绩效。1.2 维度二:能力。1.3 维度三:潜力。二、九宫格分类2.1 经典九宫格:绩效-能力九宫格2.2 高潜九宫格:绩效-潜力九宫格2.2.1 高潜九宫格图示2.2.2 高潜九…

SRV1:拥有一个阿里云服务器

1.1 简介 平台: 阿里云   时间: 2022.11.25   类型: 轻量应用服务器2核2G   链接: https://www.aliyun.com/daily-act/ecs/activity_selection?utm_contentse_1013075595 1.2 说明 本文购买的是阿里云的 轻量应用服务器2…

NFT 的洗盘交易,真的赚钱吗?

Nov. 17,Hanson Data Source: Footprint Analytics Wash Trade Analysis 洗盘交易造成的虚假交易是准确评估 NFT 项目、交易所和整个行业的最大障碍之一。 这份报告将会分析X2Y2市场的洗盘交易者如何从洗盘交易和代币质押中获励。同时分析了前10交易量…

3.3、差错检测

3.3、差错检测 3.3.1、比特差错 比特差错\color{red}比特差错比特差错 实际的通信链路都不是理想的,比特在传输过程中可能会产生差错: 111 可能会变成 000 ,而 000 也可能变成 111 。 比特流在传输过程中由于受到各种干扰,就可能会出现比特差错&#…

K8S基础知识学习

目录 一、什么是 Kubernetes ? Kubernetes是Google在2014年开源的一个容器集群管理系统,Kubernetes简称K8S。 K8S用于容器化应用程序的部署,扩展和管理。 K8S提供了容器编排,资源调度,弹性伸缩,部署管理&a…

详解设计模式:简单工厂模式

简单工厂模式(Smiple Factory Pattern):定义一个工厂类,他可以根据参数的不同返回不同类的实例,被创建的实例通常都具有共同的父类,简单工厂模式也被称为静态工厂模式。 ~ 本篇内容包括&#xf…

若依(Ruoyi-Vue-Plus版)——1.登录(SaToken)

这里学习一下若依框架的一个扩展版本: RuoYi-Vue-Plus: 后台管理系统 重写RuoYi-Vue所有功能 集成 Sa-TokenMybatis-PlusJacksonXxl-JobSpringDocHutoolOSS 定期同步 (gitee.com) 官方文档:文档预览 - Gitee.com 项目有关SaToken登录写在最后&#xff0c…

论文阅读笔记 | 三维目标检测——SECOND算法

如有错误,恳请指出。 文章目录1. 背景2 网络结构2.1 3d Backbone2.2 Loss Compute2.3 Data Augment3. 实验结果paper:《SECOND: Sparsely Embedded Convolutional Detection》 1. 背景 鉴于VoxelNet等3d检测算法中使用的3d卷积会导致计算量大且推理速度…

智慧税务解决方案-最新全套文件

智慧税务解决方案-最新全套文件一、建设背景税务大数据现状和挑战1、数据割裂,外部数据整合不足,智能化应用不足2、缺乏统一治理,数据资产不清,质量不高3、数据获取效率低,数据冗余、查询效率低4、 运营运维体系不健全…

【Linux】---进程地址空间

文章目录什么是进程地址写时拷贝为什么要有进程地址为了保护物理内存更方便进行进程和进程数据的解耦统一视角操作系统怎么管理进程地址区域划分在之前学习C/C的时候都会提到 地址这个概念,我们写代码时创建变量,定义函数等都会有其对应的地址空间。而地…

成为数字游民,他们为何「All in Web3」?

成为数字游民,他们为何「All in Web3」? “早上好,夜之城。” 赛博朋克承载着一代人对未来世界的遐想。今年上映的「赛博朋克:边缘行者」中,主人公大卫面临着不夜城旧有制度的高压和控制,对旧有秩序不断发…

C++STL-string类的实现(下)

文章目录1. 流插入和流提取1.1 流插入1.2 流提取2. 现代写法的拷贝构造和赋值函数2.1 现代写法的拷贝构造2.1 现代写法的赋值函数3. string类的迭代器实现3.1 正向迭代器1. 流插入和流提取 1.1 流插入 可能有的同学会这样去写:以一个字符串形式来输出。还有的人会这…

《CTFshow - Web入门》03. Web 21~30

Web 21~30web21知识点题解web22知识点题解web23知识点题解web24知识点题解web25知识点题解web26知识点题解web27知识点题解web28知识点题解web29知识点题解web30知识点题解web21 知识点 tomcat 认证爆破burpsuite暴力破解(Sniper)之custom iterator使用…

用Numba:一行代码将Python程序运行速度提升100倍

用Numba:一行代码将Python程序运行速度提升100倍 在《用PyPy加速Python程序》中我们看到,PyPy通过JIT技术可以将Python的运行速度平均提高3-4倍。但即便是提升后,Python的执行速度依然无法与C/C/Rust同日而语。并且PyPy对Python程序的优化对…

【计算机毕业设计】33.快递取件预约系统源码

一、系统截图(需要演示视频可以私聊 摘 要 本论文主要论述了如何使用JSP技术开发一个快递取件预约系统,本系统将严格按照软件开发流程进行各个阶段的工作,采用B/S架构,面向对象编程思想进行项目开发。在引言中,作者将论…