腾讯云windows使用tracetcp进行目标IP tcp 端口路由追踪 您所在的位置:网站首页 win10开启tracert 腾讯云windows使用tracetcp进行目标IP tcp 端口路由追踪

腾讯云windows使用tracetcp进行目标IP tcp 端口路由追踪

2024-04-09 18:39| 来源: 网络整理| 查看: 265

前言

有时候我们购买腾讯云服务器轻量应用服务器无忧计划_轻量应用服务器续费同价-腾讯云 (tencent.com)

后在某些地域或者是使用移动数据网络无法访问到腾讯云服务器上搭建的web网站上,例如如下图:

我们会发现直接通过服务器的公网IP去访问也是无法访问,那这里就可以排除掉域名解析的问题了,并且使用ping + tracert 命令去测试发现都是通的,可就是连接不上网站;首先我们要知道ping使用的是icmp协议,处在osi模型中的网络层,而tracert呢使用的是icmp协议+ ip包头中的ttl字段 去来确定从一个主机到网络上其他主机的路由,同意的icmp和ip协议都处在osi模型中的网络层,而客户端发送请求去连接云服务器上的web业务,就需要上升到传输层(tcp协议)以及应用层协议(http、https),所以我们要做一个处在传输层的端口路由追踪去收集下在传输层中网络是否可以正常传输,就需要使用到winodws中的一款软件,是trcaetcp软件,今天本篇文章带大家进行在windows上安装tracetcp软件并进行使用和一些简单的命令讲解。

tracetcp v1.0.3软件下载:tracetcp_v1.0.3 (1).zipwinpcap 4.1.3软件下载:WinPcap_4_1_3.ziptracetcp安装教程:

①、下载本文章中的tracetcp软件后,将tracetcp.exe 进行解压

②、解压后,将tracetcp.exe 放到C:\Windows\System32下

③、在windows上安装winpcap,winpcap是windows数据包捕获的依赖库,必须要安装

下载本文章中提供的最新版本的winpcap即可

下载后打开winpcap,点击next进行下一步安装

点击 I Agree 继续下一步

勾选下图的红框标识,在点击install进行安装

点击finish 完成安装

tracetcp常用用法示例

①、打开cmd

②、输入 tracetcp www.baidu.com:443 -n

意思是在本地对 百度的tcp 443 端口发送tcp syn 包进行探测,并追踪路由, -n是不对ip进行dns翻解析,直接显示IP

tracetcp完整参数说明tracetcp host [options] where host = hostName|ipAddress[:portNumber|serviceName] if portNumber or serviceName is not present then port 80 (http) is assumed. Options: -? Displays help information. -c Select condensed output mode -h start_hop Starts trace at hop specified. -m max_hops Maximum number of hops to reach target. -n No reverse DNS lookups for each node. -p num_pings # of pings per hop (default 3). -r p1 p2 Multiple traces from port p1 to p2. -t timeout Wait timeout milliseconds for each reply. -v Displays version information. -s p1 p2 Easy port scan mode. gives the same result as setting the following options: -cnr p1 p2 -h 128 -m 1 -p 1 -F Disables the Anti-flood timer. Normally tracetcp waits *at least* 0.5 seconds between sending out each packet, because if the packets are sent too fast some host seem to detect this as some form of flood and stop responding for a time. This option disables the 0.5 second timer, so the traces occur faster. -R Use raw socket interface to send/receive packets this will not work on XP sp2. (you still need winpcap installed) -g address use the specified host as a a gateway to remote systems rather than the default gateway. Examples: tracetcp www.microsoft.com:80 -m 60 tracetcp post.sponge.com:smtp tracetcp 192.168.0.1 -n -t 500


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有