响应因特网端口ping命令_如何使用Ping命令识别基本的Internet问题
响应因特网端口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命令
相关文章:

Android 常见工具类封装
1,MD5工具类: public class MD5Util {public final static String MD5(String s) {char hexDigits[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,a, b, c, d, e, f };try {byte[] btInput s.getBytes();// 获得MD5摘要算法的 MessageDigest 对象MessageDigest md…
keras系列︱图像多分类训练与利用bottleneck features进行微调(三)
引自:http://blog.csdn.net/sinat_26917383/article/details/72861152 中文文档:http://keras-cn.readthedocs.io/en/latest/ 官方文档:https://keras.io/ 文档主要是以keras2.0。 训练、训练主要就”练“嘛,所以堆几个案例就知…

LIKE 操作符
LIKE 操作符LIKE 操作符用于在 WHERE 子句中搜索列中的指定模式。SQL LIKE 操作符语法SELECT column_name(s)FROM table_nameWHERE column_name LIKE pattern原始的表 (用在例子中的):Persons 表:IdLastNameFirstNameAddressCity1AdamsJohnOxford StreetLondon2Bush…

服务器云ide_语言服务器协议如何影响IDE的未来
服务器云ideThe release of Visual Studio Code single-handedly impacted the developer ecosystem in such a way that theres no going back now. Its open source, free, and most importantly, a super powerful tool. Visual Studio Code的发布以一种无可匹敌的方式对开发…

仅需6步,教你轻易撕掉app开发框架的神秘面纱(6):各种公共方法及工具类的封装
为什么要封装公共方法 封装公共方法有2方面的原因: 一是功能方面的原因:有些方法很多地方都会用,而且它输入输出明确,并且跟业务逻辑无关。比如检查用户是否登录,检查某串数字是否为合法的手机号。像这种方法就应该封…
MySQL优化配置之query_cache_size
原理MySQL查询缓存保存查询返回的完整结果。当查询命中该缓存,会立刻返回结果,跳过了解析,优化和执行阶段。 查询缓存会跟踪查询中涉及的每个表,如果这写表发生变化,那么和这个表相关的所有缓存都将失效。 但是随着服…

request.getSession()
request.getSession(); 与request.getSession(false);区别 服务器把session信息发送给浏览器 浏览器会将session信息存入本地cookie中 服务器本地内存中也会留一个此session信息 以后用户发送请求时 浏览器都会把session信息发送给服务器 服务器会依照浏览器发送过来的se…

alpine 交互sh_在这个免费的交互式教程中学习Alpine JS
alpine 交互shAlpine.js is a rugged, minimal framework for composing Javascript behavior in your markup. Thats right, in your markup! Alpine.js是一个坚固的最小框架,用于在标记中构成Javascript行为。 是的,在您的标记中! It allo…
浅谈 MVP in Android
一、概述 对于MVP(Model View Presenter),大多数人都能说出一二:“MVC的演化版本”,“让Model和View完全解耦”等等。本篇博文仅是为了做下记录,提出一些自己的看法,和帮助大家如何针对一个Acti…

test markdown
test test public void main(String[] args){System.out.println("test"); } 转载于:https://www.cnblogs.com/cozybz/p/5427053.html

java开发工具对比eclipse·myeclipse·idea
eclipse:不说了,习惯了 myeclipse:MyEclipse更适合企业开发者,更团队开发 idea:idea更适合个人开发者,细节优化更好转载于:https://www.cnblogs.com/gjack/p/8136964.html

软件测试质量过程检测文档_如何编写实际上有效的质量检查文档
软件测试质量过程检测文档A software product is like an airplane: it must undergo a technical check before launch.软件产品就像飞机:必须在发射前经过技术检查。 Quality Assurance is a necessary step towards launching a successful software product. I…

Android深度探索--HAL与驱动开发----第一章读书笔记
1.1 Android拥有非常完善的系统构架可以分为四层: 第一层:Linux内核。主要包括驱动程序以及管理内存、进程、电源等资源的程序 第二层:C/C代码库。主要包括Linux的.so文件以及嵌入到APK程序中的NDK代码 第三层:android SDK API …

[NOI2011]Noi嘉年华
题解:我们设计状态方程如下: num[i][j]表示从时间i到j中有多少个 pre[i][j]表示时间1~i中,A选了j个时的B能选的数量的最大值. nex[i][j]表示时间i~cnt中,A选了j个时的B能选的数量的最大值. mus[i][j]表示从时间i到j的保证选时,A和B选的数量中的较小值的最大值. ①对于num数组直…
只有20%的iOS程序员能看懂:详解intrinsicContentSize 及 约束优先级/content Hugging/content Compression Resistance
在了解intrinsicContentSize之前,我们需要先了解2个概念: AutoLayout在做什么约束优先级是什么意思。 如果不了解这两个概念,看intinsic content size没有任何意义。 注:由于上面这几个概念都是针对UIView或其子类(UILabel&…

redux rxjs_可观察的RxJS和Redux入门指南
redux rxjsRedux-Observable is an RxJS-based middleware for Redux that allows developers to work with async actions. Its an alternative to redux-thunk and redux-saga.Redux-Observable是Redux的基于RxJS的中间件,允许开发人员使用异步操作。 它是redux-t…

javascript数组排序和prototype详解
原型的概念::原型对象里的所有属性和方法 被所有构造函数实例化出来的对象所共享,类似于java中的 static 正因为共享所以单一的操作 就会影响了全局,因此使用时需注意 基于prototype:为数组扩展方法 //获取数组最大值function get…
Qt 在Label上面绘制罗盘
自己写的一个小小的电子罗盘的一个小程序,不过是项目的一部分,只可以贴绘制部分代码 效果如下图 首先开始自己写的时候,虽然知道Qt 的坐标系是从左上角开始的,所以,使用了算法,在绘制后,在移动回…

终极方案!解决正确设置LaunchImage后仍然不显示的问题
对于如何设置LaunchImage,网络上有各种各样的教程。 主要分2点: 1. 正确设置图片尺寸 2. 取消LaunchScreen.xib 但是经过上述步骤之后,你觉得完全没有问题了,但是仍然无法显示LaunchImage。 或者,你在多个模拟器上…

c# 持续集成 单元测试_如何在不进行单元测试的情况下设置持续集成
c# 持续集成 单元测试Do you think continuous integration is not for you because you have no automated tests? Or no unit tests at all? Not true. Tests are important. But there are many more aspects to continuous integration than just testing. Lets see what…

Handlebars模板引擎
介绍 Handlebars 是 JavaScript 一个语义模板库,通过对view和data的分离来快速构建Web模板。它采用"Logic-less template"(无逻辑模版)的思路,在加载时被预编译,而不是到了客户端执行到代码时再去编译&#…

字符集图标制作
字符集图标: 将网页上常见的icon做成font(字符集),以字体的方式插入到网页上,作用是减轻服务器负担,减少宽带。 我最常在这两个网站上下载字体图标: https://icomoon.io/app/#/select https://w…

Adobe源码泄漏?3行代码搞定,Flash动画无缝导入Android/iOS/cocos2dx(一)
[注] iOS代码已重构,效率提升90%,200层动画不卡。[2016.10.27] 项目介绍 项目名称:FlashAnimationToMobile 源码。 使用方法点这里。 这是一个把flash中的关键帧动画(不是序列帧)导出,然后在iOS/Android原生应用中解…

背景图像位置css_CSS背景图像大小教程–如何对整页背景图像进行编码
背景图像位置cssThis tutorial will show you a simple way to code a full page background image using CSS. And youll also learn how to make that image responsive to your users screen size.本教程将向您展示一种使用CSS编写整页背景图像的简单方法。 您还将学习如何使…

复习es6-解构赋值+字符串的扩展
1. 数组的解构赋值 从数组中获得变量的值,给对应的声明变量赋值,,有次序和对应位置赋值 解构赋值的时候右边必须可以遍历 解构赋值可以使用默认值 惰性求值,当赋值时候为undefined时候,默认是个函数就会执行函数 2.对象解构赋值 与…

Adobe源码泄漏?3行代码搞定,Flash动画无缝导入Android/iOS/cocos2dx(二)
[注] iOS代码已重构,效率提升90%,200层动画不卡。[2016.10.27] 上一篇 点此阅读 简要介绍了FlashToAnimation的功能,也就是将flash动画无缝导入到Android/iOS及cocos2dx中运行, 这一篇介绍这个库的使用方法。点此查看源码。 准备工作 首先…

the user operation is waiting for building workspace to complete解决办法
如果你在开发android应用程序中总是出现一个提示,显示“the user operation is waiting for "building workspace" to complete”,解决办法如下: 1.选择菜单栏的“Project”,然后把菜单栏中“Build Automatically”前面的对钩去掉。…

ios开发趋势_2020年将成为iOS应用开发的主要趋势
ios开发趋势Technology has always brought something new with time. And with these ever-changing technologies, you need to stay updated to get all the benefits from whats new. 随着时间的流逝,技术总是带来新的东西。 借助这些不断变化的技术,…

http 权威指南 目录
第一部分 HTTP:Web的基础 第1章 HTTP概述 1.1 HTTP——因特网的多媒体信使 1.2 Web客户端和服务器 1.3 资源 1.3.1 媒体类型 1.3.2 URI 1.3.3 URL 1.3.4 URN 1.4 事务 1.4.1 方法 1.4.2 状态码 1.4.3 Web页面中可以包含多个对象 1.5 报文 1.6 连接 1.6.1 TCP/IP 1.6…

java初学者笔记总结day9
异常的概念throwable:异常,程序非正常执行的情况error:错误,程序非正常执行的情况,这种问题不能处理,或不应该处理exception:例外,程序非正常执行的情况,这种问题可以通过…