- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
Traceroute 是一个跟踪从 A 到 B 的路径的应用程序。(A 是您的位置,B 是您要跟踪的服务器)。
基本算法如下:
send UDP with TTL = 1
Server A1 received, and return ICMP packet to A because TTL is expired.
--> know first machine between. For example A1.
send UDP with TTL = 2
Server A1 received, and send this UDP to server A2.
Server A2 received, and return ICMP packet to A because TTL is expired
--> know second machine between. In this example is A2.
Do it until to B. we can track down: A -> A1 -> A2 -> ... ->B
我有一个疑问让我怀疑这个算法是否正确工作。
由于路由表经常更新,在跟踪路由期间,例如 TTL=3,探测数据包遵循路径 A1->A2->A3->A4。
现在,当我们发送一个 TTL=4 的探测数据包时,它是否能保证通过 A1、A2、A3 和 A4,然后到达 A5?
如果不是呢?最终输出是否表示有效路径?
希望有人能阐明这个问题。非常感谢!
最佳答案
Now, when we send a probe packet with TTL=4, is it guaranteed to pass through A1, A2, A3, and A4 and then onto A5?
不,这不能保证,但在大多数现实世界的情况下很可能。如果 TTL=4 数据包没有沿着与之前数据包相同的路径传播,您最终会得到不能准确反射(reflect)实际网络拓扑的结果:
您可以使用 Paris Traceroute 来降低发生这种情况的可能性。 ,这是一个 traceroute 实现,它会摆弄各种 IP 和 ICMP header 字段 ( article ),以增加所有数据包沿同一路径传输的机会。
关于networking - Traceroute:发送的所有探测包路径是否相同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42890444/
在我的应用程序中,我想将 DLL 文件放在一个子目录中。我正在使用 probing app.config 中的元素,它工作得很好,但我遇到了本地化程序集的问题。 如果我有两个 DLL:
我可以在 python 中执行此操作,它为我提供了函数内可用的子模块/参数。 在解释器中,我可以这样做: >>> from nltk import pos_tag >>> dir(pos_tag) [
是否可以在 visualVM 中探测单个类?例如,我想查看在特定类中执行某个方法所花费的时间。 谢谢 最佳答案 是的,这是可能的。如果您只对分析一个类感兴趣,则可以将分析根设置为该类。参见 Profi
从 Linux 内核 3.0 开始,pci 探测是自动的:pci_register_driver(&pci_driver); Linux 内核 2.6 及更早版本,程序员必须创建一个字符设备,遍历 P
在我正在使用的 app.config 中 加载 OracleLibs 子文件夹中的 dll 但是当运行程序时出现错误: Ora
我有一个程序,其中有一个主/从设置,我为主机实现了一些功能,这些功能将不同类型的数据发送到从机。一些函数发送给单个从站,但一些函数通过 MPI_Bcast 向所有从站广播信息。 我想在从站中只有一个接
我正在尝试使用 exec 探测器来了解 GKE 中的就绪性和活跃度。这是因为它是 Kubernetes 的一部分 recommended way to do health checks在 gRPC 后
我有一个包含多个独立1 组件的程序。 在所有组件中添加一个 active 探测器是微不足道的,但是拥有一个单个 active 探测器来确定所有程序组件的健康状况并不容易。 我如何让 kubernete
我正在尝试运行通过端口 80 和 443 公开的服务。 SSL 终止发生在 pod 上。 我只为活性探测指定了端口 80,但由于某些原因,kubernates 也在探测 https(443)。为什么会
我正在关注“Moving Frostbite to PBR course notes” ' 在我的 OpenGL 渲染引擎中实现 IBL,但我在预积分方程的镜面反射分量时遇到了一些问题。 正如您将从我
typeof(foo)给我类型。但假设我想深入挖掘。 例如 父类(super class)型/树 列出数据成员 跳转到源代码定义 帮助/文档 还要别的吗?它是在哪个模块中定义的? 我能做得比简单地扔T
Java 使用什么作为 HashMap 的默认探测方法?是线性的吗?链接还是其他? 最佳答案 看起来像是对我的链接。代码:(link) ...724 /**725 *
如果使用setsockopt 将套接字设置为SO_KEEPALIVE,是否意味着调用setsockopt 的一方将发送keepalive 探测? 因此,如果一方执行以下步骤,它将发送保活探测: 使用s
我想验证 dhcp 服务器配置,即客户端是否获得正确的 DNS 服务器、域名等。我有一个有效的 DHCP 设置,以及一台具有静态 IP 地址的计算机,我可以从该地址向 DHCP 服务器发送 DHCP
在思考 BitTorrent 的工作原理时,我想到了几个问题。如果有人可以分享一些可能的回应,将不胜感激。 假设一个 BitTorrent 从跟踪器获得 50 个对等点,然后与其中的 20 个建立连接
我想看看程序何时进入使用 Dtrace 的类。 例如: dtrace -c './myProgram' -n 'pid$target:myProgram:function:entry' 当程序 myP
我使用的是 OS X Yosemite 10.10.5。我有一个用 Rust 编写的库,我需要测量在库中花费的运行时间。我像这样设置了一些 pid 探测器(不是实际的脚本): pid$target::
我正在运行一个无法更改任何规范的 Web 服务。我想在 Kubernetes 上使用带有 HTTP POST 的活性探针。我找不到任何可用的东西。我对busybox和netcat的所有努力都失败了。
我想知道/获得有关如何为 RabbitMQ 队列消费者设置 active 探测的意见。我不确定如何验证消费者是否仍在处理来自队列的消息。我已经尝试在互联网上搜索一些线索,但找不到任何线索。所以只是在这
给定一个 Python 应用程序,它在无限循环中轮询 Kafka 主题,并在处理接收到的 Kafka 消息后将结果上传到 s3 存储桶。 在为 Kubernetes 定义就绪性和活跃度探测时应该考虑什
我是一名优秀的程序员,十分优秀!