响应因特网端口ping命令

Next time you call your help desk, do you want to wow them with your networking knowledge? Using a command called “ping”, built right into your existing Mac, Windows, or Linux computer, will help identify basic connection problems.

下次致电服务台时,您是否想通过网络知识让他们赞叹? 使用内置在现有Mac,Windows或Linux计算机中的名为“ ping”的命令,将有助于识别基本的连接问题。

Okay, this might not be enough to “wow” your fellow team members, however they will appreciate that you started the debug process. And please remember that your Support personnel are debug specialists, so follow their instructions when they step you through the troubleshooting sequence.

好的,这可能不足以使团队成员“赞叹”,但是他们将感谢您开始调试过程。 并且请记住,您的支持人员是调试专家,因此在逐步完成故障排除过程时,请遵循其说明。

TL; DR: (TL;DR:)

You can use the ping command built into your Mac OS X, Windows, or Linux computer to identify basic network connectivity issues. This can help you solve the problem and/or gain valuable debug information as a first step before calling support.

您可以使用Mac OS X,Windows或Linux计算机中内置的ping命令来确定基本的网络连接问题。 在致电支持部门之前,这可以帮助您解决问题和/或获得有价值的调试信息。

Read below for details on how to launch a command line window and run ping from your Mac OS X or Windows machine.

请阅读以下内容,详细了解如何从Mac OS X或Windows计算机启动命令行窗口并运行ping

ping命令: (The ping command:)

The ping command is a simple way to verify that another computer can receive information from you. The original author, Mike Muuss, actually named the program after the “ping” sound that a submarine sends to detect objects in the water. If an echo of the ping comes back, it means that there is something out there. In fact, ping uses the ”Internet Control Message Protocol Echo Request” as part of its underlying software design.

ping命令是一种验证另一台计算机可以从您那里接收信息的简单方法。 最初的作者Mike Muuss实际上是用潜水艇发出的“砰”声来命名该程序的,该声音是潜水艇发送来检测水中物体的。 如果ping的回声再次出现,则意味着那里有东西。 实际上, ping使用“ Internet控制消息协议回显请求 ”作为其基础软件设计的一部分。

In its simplest form, the ping command provides two valuable pieces of information, whether the message was echoed back (64 bytes from…) and how long it takes to receive the message back (e.g., time=6.396 ms).

ping命令以其最简单的形式提供了两条有价值的信息,即是否回显了该消息( 64 bytes from…返回64 bytes from… )以及接收该消息所花费的time=6.396 ms (例如time=6.396 ms )。

Depending on what type of computer you are using, you may even get a summary containing minimum, maximum, average, and more.

根据所用计算机的类型,您甚至可能会获得一个包含最小值,最大值,平均值等的摘要。

The response time is shown in “ms”, or millisecond, which is 1/1000th of a second. A response time of 10ms or less is pretty fast, however values are often in the 100ms range. At much above 200ms you’ll probably notice that you have a sluggish connection.

响应时间以“ ms”或毫秒为单位,即1/1000秒。 10ms或更短的响应时间非常快,但是值通常在100ms范围内。 在200ms以上,您可能会注意到连接缓慢。

一切顺利时: (When all is well:)

This is what my ping response looks like on my Mac OS X computer when everything is working normally here in Malaysia:

当在马来西亚的一切正常运行时,这是我的Mac OS X计算机上ping响应的样子:

MacBook-Pro:~ ajm$ ping Google.com
PING google.com (216.58.196.46): 56 data bytes
64 bytes from 216.58.196.46: icmp\_seq=0 ttl=55 time=6.396 ms
64 bytes from 216.58.196.46: icmp\_seq=1 ttl=55 time=6.368 ms
64 bytes from 216.58.196.46: icmp\_seq=2 ttl=55 time=26.773 ms
64 bytes from 216.58.196.46: icmp\_seq=3 ttl=55 time=6.984 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 6.368/11.630/26.773/8.746 ms

This is what my ping response looks like on a Windows computer when everything is working well:

当一切正常时,这是我在Windows计算机上的ping响应:

C:\Users\BJM>ping Google.com
Pinging google.com [216.58.196.46] with 32 bytes of data:
Reply from 216.58.196.46: bytes=32 time=6ms TTL=128
Reply from 216.58.196.46: bytes=32 time=15ms TTL=128
Reply from 216.58.196.46: bytes=32 time=6ms TTL=128
Reply from 216.58.196.46: bytes=32 time=6ms TTL=128
Ping statistics for 216.58.196.46:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:Minimum = 6ms, Maximum = 15ms, Average = 8ms

You can see from these examples that the connection is pretty good with average response times under 10ms.

从这些示例中您可以看到,连接非常好,平均响应时间不到10ms。

当出现问题时(三个示例): (When something is wrong (three examples):)

So what would happen if I could not connect to Google.com? For example #1, I simulate a broken network connection to my Mac by unplugging my router from the wall, and re-run the command. The first thing I notice is that it takes a lot longer for the command to respond:

那么,如果我无法连接到Google.com ,会发生什么? 例如,#1,我通过从墙上拔下路由器来模拟与Mac的断开的网络连接,然后重新运行命令。 的第一件事我注意到的是,它需要大量的更长的命令作出回应:

MacBook-Pro:~ ajm$ ping google.com
ping: cannot resolve google.com: Unknown host
MacBook-Pro:~ ajm$

Or, for example #2, depending on exactly how the connection is failing:

或者,例如,#2,具体取决于连接失败的方式:

PING google.com (216.58.196.46): 56 data bytes
Request timeout for icmp\_seq 0
Request timeout for icmp\_seq 1
Request timeout for icmp\_seq 2
^C

And sometimes, if I have a particularly flaky connection, I’ll see a mixture of these messages. For example #3, I can simulate this by connecting my Mac computer to a public Wi-Fi connection that is across the street:

有时,如果我的连接特别不稳定,我会看到这些消息的混合体。 例如#3,我可以通过将Mac计算机连接到马路对面的公共Wi-Fi连接来模拟此情况:

PING google.com (216.58.196.206): 56 data bytes
64 bytes from 216.58.196.206: icmp\_seq=0 ttl=57 time=273.655 ms
64 bytes from 216.58.196.206: icmp\_seq=1 ttl=57 time=808.546 ms
64 bytes from 216.58.196.206: icmp\_seq=2 ttl=57 time=179.613 ms
Request timeout for icmp\_seq 3
Request timeout for icmp\_seq 4
64 bytes from 216.58.196.206: icmp\_seq=5 ttl=57 time=374.612 ms
Request timeout for icmp\_seq 6
ping: sendto: No route to host
Request timeout for icmp\_seq 7
ping: sendto: No route to host
Request timeout for icmp\_seq 8
^C

In the first test, ping told me that my machine could not even find the Internet address (IP 216.58.196.46) for Google.com. In the second test, my computer remembered Google’s IP address, but could not actually reach the Google servers (Request timeout). In the third test, sendto: No route to host means that the network device knows where the Google servers are, but something along the digital pathway is broken.

在第一个测试中, ping告诉我,我的机器甚至无法找到Google.com的Internet地址(IP 216.58.196.46 )。 在第二项测试中,我的计算机记住了Google的IP地址,但实际上无法访问Google服务器( Request timeout )。 在第三个测试中, sendto: No route to host意味着网络设备知道Google服务器在哪里,但是数字路径上的东西却坏了。

Mac用户:如何运行ping命令: (Mac Users: How to run the ping command:)

On a Mac, you typically run ping from the terminal command line. To start the terminal, click the OS X Spotlight magnifying glass icon in the upper right of the desktop:

在Mac上,通常是从终端命令行运行ping 。 要启动终端,请单击桌面右上方的OS X Spotlight放大镜图标:

When the search window appears, type “terminal”, highlight “Terminal – Utilities”, and double-click (or hit

出现搜索窗口时,键入“ terminal”,突出显示“ Terminal – Utilities”,然后双击(或点击

return

返回

):

):

That will launch the terminal command window, and you can enter the command ping Google.com shown in my examples:

这将启动终端命令窗口,您可以输入示例中显示的ping Google.com命令:

Important Mac Tip : The ping command will run forever if you don’t tell it to stop. To do that, press the

重要的Mac提示 :如果不告诉ping命令停止运行,则ping命令将永远运行。 为此,请按

control

control

key (lower right on keyboard) and the

键(键盘右下方)和

c

c

key. That will interrupt the test with a Control-C (^C) and give back command line control. For Windows user, the command will stop by itself after a few iterations.

键。 这将用Control-C( ^C )中断测试并返回命令行控制。 对于Windows用户,该命令将在几次迭代后自行停止。

Windows用户:如何运行ping命令: (Windows Users: How to run the ping command:)

Opening the Command Prompt differs between Windows versions 10, 8.1, 8, and 7; here’s a great guide at How To Open Command Prompt. On a Windows 7 machine, for example, click on the lower left Windows “Start” icon, and select “Command Prompt” and double-click (or hit

Windows 10、8.1、8和7版本之间打开命令提示符有所不同; 这是如何打开命令提示符的绝佳指南。 例如,在Windows 7计算机上,单击左下方的Windows“开始”图标,然后选择“命令提示符”,然后双击(或单击

enter

enter

):

):

This will launch the command window, and you can enter the command ping Google.com shown in the examples:

这将启动命令窗口,您可以输入命令ping Google.com示例中显示的ping Google.com

Now that you know how to use the ping command, you can do basic troubleshooting of your network connection. With a little bit of creativity, you can work with your local IT support person or knowledge of your network topology and IP address (e.g., ping the router, ping your ISP) to further identify network issues.

既然您知道如何使用ping命令,就可以对网络连接进行基本的故障排除。 随着创意一点点,你可以用你的本地IT支持人员或您的网络拓扑结构和IP地址(例如,知识工作ping路由器ping你的ISP),以进一步确定网络问题。

翻译自: https://www.freecodecamp.org/news/how-to-identify-basic-internet-problems-with-ping/

响应因特网端口ping命令

响应因特网端口ping命令_如何使用Ping命令识别基本的Internet问题相关推荐

  1. 华三交换机ping大包命令_华为交换机ping命令详解

    华为交换机ping命令详解 1.Ping简介 Ping是排除设备访问故障的常见方法.它使用Internet控制消息协议ICMP(Internet Control Message Protocol)确定 ...

  2. mysql内测试连通性命令_怎么使用ping命令进行连通性测试

    关于ping命令的作用: ping 命令有助于验证网络层的连通性!一般进行网络故障排除时,可以使用ping 命令向目标计算机或IP地址发送ICMP回显请求,目标计算机会返回回显应答,如果目标计算机不能 ...

  3. 刷新mac地址命令_常用网络检测命令-必备技术

    现在弱电行业工作,设备基本上普遍是使用网络连接,因此具有一定网络检测命令知识,这时通过使用一些网络的基本命令来检测设备的网络状态.以下,介绍常用网络命令: 1.ping命令 ping 命令式用来测试T ...

  4. 中兴zxr10路由器重启命令_中兴交换机常用命令

    中兴交换机配置命令 ZTE交换机配置常用命令汇总 命令的使用要注意各种用户模式. 配成普通交换机:把2-24端口归到VLAN1下,2-24端口如果互相隔离,可以用PVLAN删除隔离端口即可. 2852 ...

  5. 下运行maven命令_实话实说 | 这些maven命令,你会几个?

    今天有位微信好友私下问我:mvn install怎么好像把mvn compile的活也干了,所以我平时都是使用mvn install就ok了.奇怪的是,为什么还要搞个mvn compile呢? 听了这 ...

  6. nohup命令_后台任务与nohup命令

    在 Linux 的终端中运行某些命令时,我们往往希望让它们在后台运行稳定运行而不受本地关闭终端窗口或网络断开连接的干扰. 先来了解一下:当用户注销(logout)或者网络断开时,终端会收到 SIGHU ...

  7. 电脑上使用计算机命令行,我的电脑运行命令_我的电脑什么运行命令

    2016-12-21 19:44:14 命令提示符是在操作系统中,提示进行命令输入的一种工作提示符.在不同的操作系统环境下,命令提示符各不相同.在windows环境下,命令行程序为cmd.exe,是一 ...

  8. stata中计算公式命令_#stata中哪个命令和stats命令等价#stata中计算命令

    f的临界值在stata中怎么输入命令计算 stata怎么用命令计算有几个变量 dis `c(k)'可以看到数据中含有的变量的个数. 不过这个命令会把"股票代码"和"日期& ...

  9. 如何在redhat8里使用gcc命令_如何使用DISM命令行工具修复Windows 10映像

    Windows 10 中内置了一个被称为 DISM 的「部署映像服务和管理」命令行工具,该工具从 Windows 8 便开始内置,直到 Windows 10. DISM 命令行工具可用于修复和准备 W ...

最新文章

  1. SQLite中的FROM子句
  2. itextpdf 生成word显示不全_Word经常遇到这些偏僻小问题,值的收藏
  3. 块级元素(导航,图片,层)的水平和垂直居中
  4. python正则表达式中原生字符r的作用
  5. JS获取当前时间,例如2019-10-01格式
  6. 蔚来2018年平均每天亏掉2641万,车辆交付预期环比腰斩
  7. frame越过另一个frame_Python3.6实现一个简单的文本编辑器
  8. 网络工程师(软考)学习笔记6--传输介质
  9. ip地址中保留地址讲解
  10. J-Link RTT Viewer 的各种不爽以及解决方案
  11. 生活随记 - 感恩老同学
  12. SQL SERVER 2000用户sa 登录失败的解决办法
  13. 以太网UDP协议讲解
  14. 【计算机组成原理】使用VHDL语言设计一个二输入异或门
  15. iOS11 增加的新技能
  16. xbox手柄适配器驱动_修复XBox DVD驱动器
  17. 【图文并茂】六十多个 vscode 插件,助你打造最强编辑器
  18. Linux误删文件或程序如何恢复
  19. 系统上公有云安全需要考虑什么?
  20. 输入一个整数n及一个n阶方阵,判断该方阵是否以主对角线对称,输出“Yes”或“No”。

热门文章

  1. 想知道什么是“成员变量”吗?
  2. 方法的运用_企业如何运用论坛做营销,千享科技分享技巧方法
  3. 【仿汽车之家】价格区间选择控件
  4. 【iOS】UIButton 图标在上文字在下
  5. iOS 9 通用链接(Universal Links)
  6. office使用技巧
  7. 拥有2000家门店,他如何晋升为服装界的新宠?
  8. iOS WebviewJavascriptBridge 源码研读笔记
  9. 【视频点播最佳实践】视频点播播放异常排查
  10. robotframework的学习笔记(十二)------DatabaseLibrary 库