计算机网络— Traceroute的解释_cumian9828的博客-程序员秘密

技术标签: python  java  网络  linux  大数据  

According to Wikipedia, traceroute is:

根据维基百科, traceroute是:

a computer network diagnostic tool for displaying the route (path) and measuring transit delays of packets across an Internet Protocol (IP) network. The history of the route is recorded as the round-trip times of the packets received from each successive host (remote node) in the route (path); the sum of the mean times in each hop is a measure of the total time spent to establish the connection. Traceroute proceeds unless all (three) sent packets are lost more than twice, then the connection is lost and the route cannot be evaluated. Ping, on the other hand, only computes the final round-trip times from the destination point.
一种计算机网络诊断工具,用于显示路由(路径)并测量数据包在Internet协议(IP)网络上的传输延迟。 路由的历史记录为从路由(路径)中每个连续主机(远程节点)接收到的数据包的往返时间; 每跳平均时间的总和是建立连接所花费的总时间的度量。 除非所有(三个)发送的数据包丢失两次以上,否则Traceroute继续进行,然后连接丢失,并且无法评估路由。 另一方面,Ping只计算从目标点开始的最终往返时间。

traceroute can be used to find the fastest source to download data from, and is often used by penetration testers to gather information about a network.

traceroute可用于查找最快的来源以从中下载数据,并且渗透测试人员通常使用它来收集有关网络的信息。

数据如何通过互联网传输 (How data travels across the internet)

Each computer on the traceroute is identified by its IP address, or its unique network connection.

跟踪路由上的每台计算机都通过其IP地址或唯一的网络连接进行标识。

- The journey from one computer to another is known as a hop.
- The amount of time it takes to make a hop is measured in milliseconds.
- The information that travels along the traceroute is known as a packet.

Here are some important details about a traceroute:

以下是有关traceroute的一些重要详细信息:

  • The path from one computer to another is called a hop

    从一台计算机到另一台计算机的路径称为跃点
  • Hops are measured in milliseconds

    跳数以毫秒为单位
  • Information that travels along the traceroute is called a packet

    沿跟踪路由传播的信息称为数据包

If a traceroute cannot access a computer, it will display “Request timed out.” Each hop column for computers that couldn't be accessed will display an asterisk instead of a millisecond count.

如果跟踪路由无法访问计算机,它将显示“请求超时”。 对于无法访问的计算机,每个跃点列将显示一个星号,而不是毫秒数。

用法 (Usage)

Most implementations of traceroute allow the user to specify the number of queries to send each hop, the time to wait for each response, the port to use, and so on.

traceroute大多数实现都允许用户指定发送每个跃点的查询数,等待每个响应的时间,要使用的端口等。

Here's a simple example on Linux:

这是Linux上的一个简单示例:

[[email protected] ~]#  traceroute -w 3 -q 1 -m 16 www.google.com
traceroute to www.google.com (216.58.200.36), 16 hops max, 60 byte packets
 1  192.168.4.2 (192.168.4.2)  0.136 ms
 2  *
 3  *
 4  *
 5  *
 6  *
 7  *
 8  *
 9  *
10  *
11  *
12  *
13  *
14  *
15  *
16  *

In the example above, the selected options are to wait for three seconds (instead of five), send out only one query to each hop (instead of three), limit the maximum number of hops to 16 before giving up (instead of 30), with www.google.com as the final host.

在上面的示例中,选定的选项是等待三秒钟(而不是五秒),对每个跃点仅发送一个查询(而不是三跳),在放弃之前将最大跃点数限制为16(而不是30) ,并以www.google.com作为最终主机。

This can help identify incorrect routing table definitions or firewalls that may be blocking ICMP traffic, or high port UDP in Unix ping, to a site. Note that a firewall may permit ICMP packets but not permit packets of other protocols.

这可以帮助识别不正确的路由表定义或防火墙,这些定义或防火墙可能会阻止ICMP通信或Unix ping中的高端口UDP到达站点。 请注意,防火墙可能允许ICMP数据包,但不允许其他协议的数据包。

IP子网计算器 (IP Subnet Calculator)

While not strictly related to traceroutes, an IP subnet calculator is a useful tool when running network diagnostics.

虽然IP子网计算器与跟踪路由并不严格相关,但它在运行网络诊断时是一个有用的工具。

IP Subnet Calculators help to divide IP Networks into subnetworks by calculating appropriate network addresses, subnet masks, broadcast addresses, and host IP ranges. For simple networks (like a home LAN), it may be very easy to identify the appropriate values, but for more complex subnetting, an IP Subnet Calculator is an excellent tool.

IP子网计算器通过计算适当的网络地址,子网掩码,广播地址和主机IP范围,帮助将IP网络划分为子网。 对于简单的网络(例如家庭LAN),可能很容易识别适当的值,但是对于更复杂的子网划分,IP子网计算器是一个很好的工具。

Here are a few online IP Subnet Calculators:

以下是一些在线IP子网计算器:

翻译自: https://www.freecodecamp.org/news/computer-networking-traceroute-explained/

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/cumian9828/article/details/108153222

智能推荐

JAVA多线程解析_wszhlzjl的博客-程序员秘密

线程(英语:Thread)是操作系统能够进行运算调度的最小单位。它被包含在进程之中,是进程中的实际运作单位。一条线程指的是进程中一个单一顺序的控制流,一个进程中可以并发多个线程,每条线程并行执行不同的任务。在Unix System V及SunOS中也被称为轻量进程(Lightweight Processes),但轻量进程更多指内核线程(Kernel Thread),而把用户线程(User Thre...

Android7.0 安装apk更新包的适配_YOUNGEER1的博客-程序员秘密

项目中发现在自动更新功能的时候,下载好了apk的文件后在android7.0系统中不能自动跳到安装界面,后来百度了一番解决了问题。原因:我们先来看看产生的原因:当我们在7.0上使用系统服务去下载apk并且试图安装时,有可能由于权限问题导致安装失败。 每个Android版本的发布,对于安全性问题的要求越来越高,也为Android程序员增加了额外的工作量。Android6.0引入动态权限控制(Run

2021-01-07_暮雨星辰的博客-程序员秘密

非常好的mlr3案例集合,原文来源于:https://mlr3gallery.mlr-org.com/posts/2020-05-04-moneyball/这里仅仅是把代码复制下来方便以后的查找和使用:library("mlr3")library("mlr3learners")library("mlr3pipelines")requireNamespace("mlr3measures")library("mlr3data")# 查看缺失数据skim(moneyball)#

uva - All in All_weixin_30912051的博客-程序员秘密

You have devised a new encryption technique which encodes a message by inserting between its charactersrandomly generated strings in a clever way. Because of pending patent issues we will not discus...

随便推点

做出一个SwitchButton的效果,并详细学习一下onDraw(Canvas canvas)方法的使用_非著名程序员的博客-程序员秘密

代码的灵感和原理主要来自于android自定义开关控件-SlideSwitchhttp://blog.csdn.net/singwhatiwanna/article/details/9254309这篇文章!1.效果iphone上有开关控件,很漂亮,其实android4.0以后也有switch控件,但是只能用在4.0以后的系统中,这就失去了其使用价值,而且我觉得它的界面也不是很好看。最近

oracle 11g回闪功能,Oracle 11G 闪来技术 使用Oracle闪回查询_美猫的奇妙世界的博客-程序员秘密

使用带有AS OF子句的SELECT语句进行闪回查询。闪回查询获取之前的时间点的数据。语句通过时间戳或SCN显示地引用过去的时间。返回在那个时间点当时已经提交的数据。闪回查询的使用包括:1. 恢复丢失的数据、撤销不正确的且已经提交的改变。例如,如果你错误地删除或更新了行并且提交了,可以立即撤销这个错误。2. 比较当前的数据和早些时候的数据。例如,可以运行一个日报表,来显示数据从昨天到今天的变化。可...

ReactNative 自定义标题栏 ReactNative 自定义导航栏_react native 自定义标题栏___卓原的博客-程序员秘密

先上代码,配合代码讲解一下使用方法, 我这有用到一个屏幕适配工具类,自己写的,使用方法和代码 请点这里/** * Created by 卓原 on 2018/6/16. * */import React from 'react';import { Text, StyleSheet, View, TouchableOpacity, Image...

SQL中的real、float、decimal、numeric数据类型区别_numeric sql_cnmeimei的博客-程序员秘密

概述:浮点数据类型包括real型、float型、decimal型和numeric型。浮点数据类型用于存储十进制小数。在SQL Server 中浮点数值的数据采用上舍入(Round up)的方式进行存储,所谓上舍入也就是,要舍入的小数部分不论其大小,只要是一个非零的数,就要在该数字的最低有效位上加1,并进行必要的进位。由于浮点数据为近似值,所以并非数据类型范围内的所有数据都能精确地表示。1、区别说明decimal(numeric):同义,用于精确存储数值float 和 real...

推荐文章

热门文章

相关标签