Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Lab №5, №6_ping ENGLISH.doc
Скачиваний:
2
Добавлен:
01.07.2025
Размер:
46 Кб
Скачать
☆

2.2 Utilities ping and tracert

Utilities ping and tracert (traceroute), used independently or together, determine the path that goes over the network packet to the destination and time, he reaches it. Based on the results of tests ping and tracert, you can determine where it stopped.

Utility Ping by sending messages with echo-request protocol ICMP (Internet Control Message Protocol) connections to examine IP protocol level to another computer that supports TCP / IP. After each transmission of a message is displayed with an echo-response. Team ping, running without parameters displays help.

Syntax ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v type] [-r count] [-S count] [{-j spysok_vuzliv |-k spysok_vuzliv}] [-w interval] [name of the end computer]

Options Setup Utility Ping presented in Table 2.1

Parameter identifier

Purpose

1

2

-t

Specifies the ping command to send messages with echo-request to destination for as long as the team will not be interrupted. To interrupt the command and output statistics to click combination of keys CTRL-BREAK. To interrupt the ping command and withdrawal from the need to press CTRL-C

-a

Specifies the hostname resolution on the IP-address assignment. In the case of successful implementation of the name of the output node

Прослушать

На латинице

-n counter

Specifies the number of messages with echo-request sent. By Default - 4

-l size

Specifies the length (in bytes) of data fields in the messages they send with echo-request. Default - 32 bytes. Maximum Size - 65 527

-f

Specifies the posting of an echo-request from the flag «Don't Fragment» in IP-header is set to 1. Posts echo-request not fragmentize routers towards the destination. This option useful for troubleshooting problems that arise with the maximum block of data (Maximum Transmission Unit) for Posts with echo-request. Default - 32 bytes. Maximum Size - 65 527

-i

TTL

For messages with echo-request sent, sets field value TTL (Time to Live) in IP-header. Default takes the value TTL, the default node. For example, Windows XP units this value is usually 128. The maximum value of TTL - 255

-v

type

For messages with echo-request sent, sets value type field service (TOS) in the IP-header. A decimal value from 0 to 255. By default, this value is 0

-r

count

Specifies the record route option (Record Route) in the IP-header for entry way which passes messages from the echo-request and an appropriate message from an echo-response. Each transition (Intermediate router) in the way of using parameter routes. If possible, count is set equal to or greater than the number of transitions between source and destination. Option counter has a value from 1 to 9

-s

count

Specifies the time stamp option Internet (Internet Timestamp) in IP header to record the arrival time of messages from the echo- request and appropriate for the message-echo response for each transition. Option counter has a value from 1 to 4

Прослушать

На латинице

-j

list of nodes

For messages with echo-request parameter specifies the use of free routing in IP-header with a set of intermediate points purpose specified in the list of nodes. When free routing successive intermediate destination can be divided one or more routers. Maximum addresses or names in the list of nodes - 9. List of knots - a set of IP- addresses (in dotted-decimal notation) separated by spaces

-k

list of nodes

For messages with echo-request parameter specifies the use of strict routing in IP-header with a set of intermediate points purpose specified in the list of nodes. When strict Routing the next intermediate destination policy- available directly (it must be nearby in the interface router). Maximum number of addresses or names in the list nodes is 9. List of knots - a set of IP-addresses (in dotted-decimal notation) separated by spaces

-w

interval

Specifies the waiting time in milliseconds from receipt of the notice echo-reply message with the corresponding echo-request. If a message with an echo-response is not received within given interval, then an error message "Request timed out". The default interval is 4000 (four second)

Name of destination computer

Specifies the destination point identified IP-address or name node

-?

Displays help at the command line

The following example shows the results of the command ping:

C: \> ping-l 1964 www.nnm.ru Ping www.nnm.ru [213.248.7.66] with 64 bytes: Reply from 213.248.7.66: byte = 64 h = 491ms TTL = 44 Reply from 213.248.7.66: byte = 64 h = 711ms TTL = 44 Reply from 213.248.7.66: byte = 64 h = 831ms TTL = 44 Reply from 213.248.7.66: byte = 64 h = 471ms TTL = 44 Ping statistics for 213.248.7.66:     Packets: sent = 4 received = 4, Lost = 0 (0% loss), Estimated time of transmission and reception:     smallest = 471ms, largest = 831ms, average = 626ms

Tracert utility determines the path to the destination using reference point in Lung-purpose of ICMP messages with a constant increasing values of lifetime (TTL) in the header packet. Derived path - a list of the nearest router that is on the road junction between the source and destination. Closer interface is a router interface that is closest to the sender node way. Launched without parameters, tracert displays help team.

Syntax tracert [-d] [-h maximum number of conversion] [-j list of nodes] [-w interval] [Name of destination computer]

Parameters Options of Tracert utilities are presented in Table 2.2

Parameter identifier

Purpose

-d

Prevents the transformation of IP-address intermediate routers named. Increases the speed of output results tracert command

-h

max number of conversion

Specifies the maximum number of points on the way in finding finite object. The default value is 30

-j list of node

For messages with echo-request parameter specifies the use of free routing in the IP header for a set of intermediate purpose mentioned in the list of nodes. When free routing successful intermediate destinations can be separated by one or more routers. Maximum number of addresses or names on the list - 9. List of nodes represents a set of IP-addresses (in dotted-decimal notation) separated by spaces

Прослушать

На латинице

-w

interval

Specifies in milliseconds while waiting to get answers Lung- ICMP protocol or ICMP-messages about the time that has passed, that meet this echo-request message. If message is not received within a specified time, output asterisk (*). Timeout default 4000 (4 seconds)

Name of destination computer

Specifies the destination specified IP-address or host name

-?

Displays help at the command line

Note. Each router through which the path is obliged to further forward the packets to reduce the TTL field value in its header to 1. In fact, TTL - meter units. Assumed that when TTL parameter is 0, the router sends the source systems ICMP message about the time that has passed.

Tracert command determines the route, sending the first echo-request from field TTL, which is 1. Further, this value will increase by unit for each echo packet is sent, as long until the final site will answer or until the Maximum the field TTL. Maximum Conversion Default is 30 and can be changed with the option-h. Way determined from analysis of ICMP messages elapsed time obtained from intermediate routers, and Lung-answer destination. However, some Routers do not send messages about the time that has elapsed for packages zero TTL values and therefore does not see team tracert. In this case for conversion is a series of asterisks (*).

Example: C: \> tracert-h 10 www.aport.ru Tracing route to aport.ru [194.67.18.8]  with the maximum number conversion 10:

 1120 ms 120 ms 121 ms max3.farlep.net [213.130.1.251]   2130 ms 120 ms 120 ms teller-10mb-gw.farlep.net [213.130.1.254]   3120 ms 120 ms 791 ms core-0-0FE.farlep.net [213.130.0.28]   4141 ms 140 ms 160 ms core-0-pa4T-1-0-201fr.kiev.farlep.[213.130.0.102]   5801 ms 150 ms 150 ms router113.ukrsat.com [212.35.171.113]   6161 ms 150 ms 160 ms cyclone.ukrsat.com [212.35.160.97]   7731 ms 731 ms 751 ms NO-NIT-TN-6.taide.net [193.219.192.6]   8711 ms 711 ms 701 ms NO-NIT-TN-8.taide.net [193.219.193.138]   9711 ms 701 ms 711 ms oso-okr-i1-pos1-1.telia.net [213.248.78.49]  10 701 ms 711 ms 691 ms s-bb1-pos0-0-0.telia.net [213.248.66.89]

Trace complete.

3 KEY QUESTIONS 1.3 List the basic tools built into OS, designed for analysis configuration and state of the network based on TCP / IP. 2.3 Specify the purpose and main parameters of utility ping 3.3 Specify the parameters and the basic utilities tracert. 3.3 What does the command ping 127.0.0.1? 4.3 Specify the purpose utility nslookup. 3.5 For what we need to use utility netstat? 6.3 What outputs utility ipconfig by default? 3.7For what do we use the utility Telnet?

4 Homework 4.1 Investigate, using this guidance, the main built-in facilities intended for the analysis of configuration and status network based on TCP / IP. 2.4 Prepare a protocol of the laboratory work, which reflect the theme purpose of the work, a brief description of utilities designed to analyze configuration and state of the network based on TCP / IP. 4.3 Prepare answers to key questions

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]