Traceroute для windows 10

Трассировка маршрута сети (команда tracert)

Для диагностики и поиска проблем в сети системные администраторы часто применяют такой удобный инструмент, как трассировка маршрута. Она позволяет определить все узлы (маршрутизаторы, серверы, компьютеры), через которые проходит трафик по дороге к точке назначения. Если связь с каким-либо удалённым хостом рвётся или вообще пропадает, то трассировка маршрута сети позволит быстро найти участок, на котором появились проблемы как в локальной сети, так и в глобальной паутине Интернет.

Для выполнения этой процедуры в каждой современной операционной системе есть соответствующий инструмент.

В ОС Windows — это утилита tracert. В XP она была доступна по умолчанию, а вот во всех последующих версия вплоть до Windows 10 её надо включать дополнительно через «Программы и Компоненты».

В операционных система ОС семейства *NIX — Linux, FreeBSD, Android — программа traceroute
Смысл алгоритма трассировки маршрута в том, что посылается по три специальных запроса на каждый сетевой узел, через который идёт трафик до нужного хоста, затем для каждого из них на экране, рядом с его адресом, выдаётся время ответа. По этим результатам можно легко отследить на каком участке сети начинают появляться задержки ответа или он вообще пропадает.

Трассировка в Windows 10

Для проведения трассировки сети в Windows 10 необходимо нажать комбинацию клавиш Win+R и в окне «Выполнить» набрать команду «cmd». Этим Вы откроете командную строку Виндовс, в которой надо ввести команду:

Для примера возьмём сайт google.ru

Трассировка в Linux

В операционных системах семейства Linux — Ubuntu, Fedora, CentOS и т.п. — для запуска трассировки маршрута в надо открыть системную консоль и ввести команду:

Внимание! Использовать трассировку маршрута в сети для оценки качества последней мили (абонентской линии ADSL,FTTB или PON) нельзя, так как эта системная программа никоим образом оценить качество линии не может и не умеет.

How to Run a Traceroute on a Windows 10 Computer

If you’re having network connectivity problems, you can run a traceroute to pinpoint exactly where your connection is failing. The traceroute command will provide you with information about your internet connection, website status, and more. Then you can give this information to your technical support representative to resolve your network connectivity issues. Here’s how to run a traceroute on Windows 10 and how to read your traceroute results.

What Is Traceroute?

Traceroute is a network diagnostic tool that tracks the path of a packet of data as it travels from your computer to a destination over the internet. Running a traceroute lets you see where your connection is slow or unresponsive.

You can think of the traceroute tool like a traffic map of your internet connection. When you run a traceroute, you will see all the “hops,” or routers that three separate packets are pushed through on their way to a destination. It will also show you your network’s latency, or how long it took for each packet to travel from one hop to the next.

If you just want to test your network’s latency, check out our step-by-step guide on how to do a ping test on your Windows 10 computer.

How to Run a Traceroute on a Windows 10 Computer

To run a traceroute on a Windows 10 computer, open the Windows search box and type CMD into the search bar. Then open the Command Prompt app and type in tracert followed by a space and then the destination URL or IP address. Finally, hit Enter.

  1. Open the Windows search box. You can do this by clicking the magnifying glass icon in the bottom-left corner of your screen.
  2. Then type CMD in the search bar and click Open.
  3. Next, type tracert followed by a space and then an IP address or URL. If you just want to test your internet connection, it is a good idea to run a traceroute to 8.8.8.8 (Google’s DNS server). You can also run a traceroute to the URL of any website or IP address. Just make sure you leave a space after tracert and before the URL or IP address. For example, to run a traceroute to HelloTech.com, you would type tracert hellotech.com into the Command Prompt app.
  4. Finally, press Enter on your keyboard and wait for the traceroute to finish. You will see the words Trace complete when the process is finished. You can also stop a traceroute at any time by pressing the Control + C keys on your keyboard at the same time.
Читайте также:  Times new roman ��� libreoffice astra linux

To copy the traceroute results, left-click and drag your mouse to select the traceroute results. Then press Enter on your keyboard. Next, open a document or text file and paste the traceroute results there.

How to Read Traceroute Results

To read your traceroute results, look for the round trip time (RTT) in columns two through four. If you see any hops that took a long time or there is an error message in any of the rows, that might be where you have network connectivity problems.

How to Read the Traceroute Columns

  • Column 1: This represents the hop number, or the number of hops that the three data packets were pushed through to reach the destination.
  • Columns 2-4: These show the round trip time measured in milliseconds. RTT represents the time it took for a data packet to travel from the source to the destination and back again. To check for the consistency of the response times, the traceroute command sends three packets to each hop, which is why there are three time values listed per row. RTT values below 100 milliseconds are acceptable. However, if you see RTT values consistently increasing from the middle hop to the destination, it could be due to a network problem.
  • Column 5: This column shows the name or IP address of the routers on every hop from your computer to the destination. It will also list the domain name of the router, if that information is available.

How to Read the Traceroute Rows

The traceroute results will show you the IP addresses for different points in the route. The addresses in the first few rows are from your source network, the middle hops are from internet service providers (ISPs), while the last ones are those near the destination.

  • Local router. The first lines of the traceroute results will indicate your gateway’s IP address. In most cases, the first line will be your router’s IP address, which usually starts with 192.168.XXX.Xor 10.0.XXX.X. However, there are other router manufacturers that will have default IP addresses that start with other numbers. To find out which row your router is on, check out our guide on how to find your router’s IP address, and then compare it to your traceroute results.
  • PoP router. A Point of Presence (PoP) is the local access point of your ISP. This access point helps your device establish a connection with the internet.
  • Source Tier 2 ISP Network. Your request might be routed to a regional ISP (like Comcast or Cox), which services a limited geographic area. They pay Tier 1 providers for connectivity but also have agreements with other Tier 2 providers to exchange traffic directly. You might see your ISP provider’s name in lines three or four of the traceroute results.
  • IXP. An Internet Exchange Point (IXP) is a physical location where ISPs and other network providers connect to exchange internet traffic. Here, administrators make routing decisions based on hop counts and other factors.
  • Tier 1 ISP Network. These ISP providers are considered the backbone of the internet because they own the infrastructure to carry most of the traffic themselves. Tier 1 providers include AT&T, Sprint, and Verizon.
  • Destination Tier 2 ISP Network. This is the regional ISP closest to the data packet’s destination and can appear in the second to the last line of the traceroute results.
  • Destination Web Server. This is the last line in the traceroute results before the “Trace complete” message.
Читайте также:  How to boot from usb mac os

Common Traceroute Error Messages

If there is an issue within the network, the traceroute results will also show error commands, which include Request timed out, Destination unreachable, * in RTT columns, and more.

  • Request timed out: Seeing this error at the end of the traceroute means that a firewall or a security device might be blocking your request, or there was a problem in the return route. If you see this at the beginning, it’s nothing to worry about as it is a common hop.
  • Destination net unreachable: This means that the data packets have stopped traveling within the network. Most of the time, this is because there is a problem with the router or that the website or IP address you are trying to reach is down.
  • * in RTT columns: It means the router did not respond to the request within the maximum allotted time of two seconds. It could also mean that the router in the hop was not set up to provide a response to a traceroute request. However, it does not necessarily mean that the packet was dropped. To verify if there was a packet loss, you can ping the IP address of the router where you see the asterisk.

Traceroute Command Variations

If you are looking for ways to run a traceroute, you can open the Command Prompt app and type tracert /? to see variations you can use.

Now that you know how to run a traceroute on your Windows 10 computer, check out our article on how to boost your WiFi signal.

Утилиты Traceroute и Tracert

Traceroute — это утилита, которая позволяет проследить маршрут следования данных до удалённого адресата в сетях TCP/IP. В Linux используется команда Traceroute, а в Windows — Tracert. При помощи этих команд можно увидеть путь пакета данных от вашего компьютера до целевого сервера или сайта.

Как работают Tracert и Traceroute

Когда вы пытаетесь открыть сайт, браузер отправляет сообщение (запрос) серверу, на котором этот сайт находится. Сообщение на своём пути проходит через маршрутизаторы. Они решают, куда дальше передать сообщение, чтобы гарантированно его доставить адресату. В трассировке маршрутизаторы ещё называют хопами (хоп — прыжок) или узлами. Количество узлов, через которые на своём пути пройдёт запрос, можно узнать при помощи утилит Tracert и Traceroute. Узлы, которые не являются целевыми для запроса, называют транзитными.

Утилита Traceroute формирует UDP-датаграмму (сообщение, которое нужно доставить целевому серверу), упаковывает её в IP-пакет и передаёт первому транзитному узлу. В заголовке такого IP-пакета есть поле TTL (Time To Live) — время жизни пакета. Оно определяет количество хопов, через которые пакет может пройти. На каждом узле TTL уменьшается на единицу. Если на пути к удалённому адресату время жизни пакета станет равно 0, маршрутизатор отбросит пакет и отправит источнику ICMP-сообщение об ошибке «Time Exceeded» (время истекло).

Этот принцип лежит в основе работы утилит Tracert и Traceroute, однако между ними есть отличия. Рассмотрим каждую утилиту отдельно.

Tracert отправляет на хост назначения ICPM-запрос «Echo Request» с TTL=1. Первый маршрутизатор, который получит запрос, проверяет, кому он предназначен. Если маршрутизатор не является целевым хостом, он уменьшает TTL на 1, отбрасывает пакет и отправляет ICMP-сообщение источнику, так как время жизни теперь равно 0. В этом сообщении маршрутизатор указывает информацию о себе и причину дропа пакета. Получив сообщение, Tracert запоминает этот маршрутизатор как первый хоп (прыжок) и отправляет следующий пакет, но уже с TTL=2. Первый хоп успешно обрабатывает новый пакет, уменьшает время его жизни на 1 и передаёт дальше. Следующий маршрутизатор тоже выполняет проверку хоста назначения и, если пакет предназначен не ему, уменьшает TTL, отбрасывает пакет и отправляет ICMP-сообщение источнику. Tracert запоминает второй хоп, снова увеличивает TTL на 1 и отправляет следующий пакет. Эти действия будут повторяться до тех пор, пока пакет не достигнет целевого хоста. Когда запрос попадёт к целевому хосту, этот хост в ответ направит ICMP «Echo Reply». Источник воспримет это как завершение трассировки.

Читайте также:  Windows для asus p525

Утилита Traceroute вместо ICMP-запроса отправляет 3 UDP-пакета на определенный порт целевого хоста и ожидает ответа о недоступности этого порта. Первый пакет отправляется с TTL=1, второй с TTL=2 и так далее, пока запрос не попадёт адресату. Отличие от Tracert в том, как Traceroute понимает, что трассировка завершена. Так как вместо ICMP-запроса он отправляет UDP-запрос, в каждом запросе есть порт отправителя (Sourсe) и порт получателя (Destination). По умолчанию запрос отправляется на закрытый порт 34434. Когда запрос попадёт на хост назначения, этот хост отправит ответ о недоступности порта «Destination port unreachable» (порт назначения недоступен). Это значит, что адресат получил запрос. Traceroute воспримет этот ответ как завершение трассировки.

Если Tracert работает по протоколу ICMP, то какой протокол используется командой Traceroute? По умолчанию используется протокол UDP, но traceroute может отправить и ICMP-запрос «Echo Request», как Tracert. Такой способ пригодится, если хоп не отвечает на UDP-пакет.

How to run a Traceroute on windows 10

In this tutorial, we let you know how to run a Traceroute on Windows 10, Windows 8, Windows 7 or Vista/XP using Command prompt.

What is Traceroute?

It is a tool to check the route (Path) and measure the transit delay packets across Internet Protocol (IP) network. In general language, traceroute tool allows the user to trace the routing of the data packets triggers from your PC to destination pc or device.

You can use the traceroute command on Windows system easily using the command prompt and on Unix-like systems such as FreeBSD, macOS, and Linux it is available as a command line tool too. Sometimes for Internet Protocol Version 6 (IPv6) traceroute called as traceroute6 or tracert6.

So, let’s see how to run traceroute command in Windows 10,8, & 7 using the command prompt.

  1. To Run traceroute first go to Windows 10 system.
  2. Open the Command prompt either by start button or type the CMD in the search box of the Windows 10
  3. Another method to open the command prompt is using the Run box. Press Win+R and type CMD and then press the Enter button.
  4. When the CMD opens type tracert along with the IP or Host you want to trace.
    • For example tracert google.com or tracert 192.168.5.5
  5. The Traceroute will take maximum around 30 hops.

Tutorial with screenshots:

Step 1: Go to the search box of your Windows 10/8/7 operating system and type CMD. Click on the Command prompt when it appears.

You can also use the run box to access the Windows command prompt. Just press the Windows key + R from your keyboard, type CMD and hit the enter button.

Step 2: Running the Traceroute tool on Windows is a piece of cake. You just need to type the tracert followed by the hostname or IP address. For more info please refer the below-given screenshot.

The traceroute command on Windows can be used with further parameters to get more out of it.

Оцените статью