当我在命令提示符下输入 NETSTAT -NA 时,Windows 中的 TIME_WAIT 状态是什么意思? [英] What is the meaning of TIME_WAIT state in windows , when i entered NETSTAT -NA in Commend prompt?

查看:101
本文介绍了当我在命令提示符下输入 NETSTAT -NA 时,Windows 中的 TIME_WAIT 状态是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 cmd 提示符下输入 netstat -na 时,我得到以下输出,TIME_WAIT 状态是什么意思.

When I entered netstat -na in cmd prompt I get below out put, What is the meaning of TIME_WAIT State.

C:\user\hp\>netstat -na
port       Local Address            Foreign Address       State
TCP        192.168.1.556:49152      192.168.1.662:3306    TIME_WAIT

像这样我有很多 TIME_WAIT.

Like this I have so many TIME_WAIT.

TIME_WAIT 状态是什么意思?TIME_WAIT 状态有问题吗?

What is the meaning of TIME_WAIT State ? Is there any problem with TIME_WAIT State ?

推荐答案

来自 手册:

TIME_WAIT 的目的是保持连接接受数据包即使在连接关闭之后.这是因为互联网路由会导致数据包通过慢速路由到达目的地,它可能会在双方同意关闭后到达.如果端口在用于新连接,来自旧连接的数据包可以违反协议或泄露个人信息原始连接.TIME_WAIT 延迟通过确保端口不能被重用,直到一段时间后允许那些延迟的数据包到达.

The purpose of TIME_WAIT is to keep a connection accepting packets even after the connection has been closed. This is because Internet routing can cause a packet to take a slow route to its destination and it may arrive after both sides have agreed to close. If the port is in use for a new connection, that packet from the old connection could break the protocol or compromise personal information from the original connection. The TIME_WAIT delay prevents this by ensuring that the port cannot be reused until after some time has been permitted for those delayed packets to arrive.

这篇关于当我在命令提示符下输入 NETSTAT -NA 时,Windows 中的 TIME_WAIT 状态是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆