Week 6 - Verifying Connectivity* Flashcards

1
Q

What does ICMP stand for?

A

Internet Control Message Protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How is ICMP mainly used? What uses it?

A

ICMP is mainly used by a router or remote host to communicate why the transmission failed back to the origin of the message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many sections does an ICMP packet contain?

A

5 sections

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the sections of a ICMP packet?

A
  1. Type (of message)
  2. Code (details, different codes)
  3. Checksum
  4. Rest of Header (optionally used by Type and Code field)
  5. Data Payload (contains entire IP header, first 8 bytes of error packet)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is ping? What type of message is it?

A

Ping is a command in a program that sends out an ICMP echo request to a destination that asks if it’s there.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an echo request?

A

An Echo request asks the destination if it’s there, able to communicate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In what OS are you able to use ping?

A

All major OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you ping something?

A

Type ping command to an IP address or domain name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are some command line flags you can use to control Ping’s behavior?

A

The size of the ICMP request, the number sent, and how quickly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you interrupt a ping command event on macOS and Linux?

A

Control + C

Windows by default gives you 4 ICMP echo replies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an ICMP echo reply?

A

The destination, if functioning and able to communicate, sends a reply

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a useful utility to help you determine where in a long chain of router hops the problems are?

A

Traceroute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is traceroute?

A

Traceroute is a utility that allows us to track the path/hops between 2 nodes to identify bottlenecks and problems in the network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are 2 tools similar to traceroute? What OS do they work on?

A

mtr - Linux, MacOS
pathping - Windows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe the 2 tools similar to traceroute’s functions

A

mtr - works in real time, continuous updates on output
pathping - runs for 50 seconds, displays final data at once

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What’s the utility command to enable following the path of a packet from node to node on each OS?

A

Linux: traceroute
MacOS: traceroute
Windows: tracert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Describe the way traceroute manipulates TTL field on the IP level

A

traceroute manipulates TTL by duplicating each packet by 3 and assigning each packet a TTL that corresponds with the packet number

There will be a time-exceeded message at each router hop since TTL is short

18
Q

What information is displayed with traceroute? 4

A
  1. number of the hop
  2. roundtrip time for all 3 packets
  3. IP of the device at each hop
  4. hostname if traceroute can resolve one
19
Q

What’s included in a ping’s output? 4

A
  1. address sending the ICMP echo reply’
  2. how long it took for a roundtrip
  3. TTL
  4. how big the message is in bytes
20
Q

What are 2 powerful Transport Layer utilities?

A
  1. netcat
  2. Test-NetConnection
21
Q

What’s the difference between the 2 powerful Transport Layer tools in terms of OS?

A

netcat - Linux, MacOS
Test-NetConnection - Windows

22
Q

What is the command for netcat?

A

nc

23
Q

What are the 2 parts to netcat?

A

nc host and nc port

24
Q

What’s the command if you’re only curious about a port status using netcat?

A

nc -z -v google.com 80

25
Q

How do you initiate the netcat command for verbose? What does verbose do?

A

-v

verbose makes the output friendly for humans to read

26
Q

What’s the command on Windows to test a connection?

A

Test-NetConnection

27
Q

How do you test a port connection on Windows?

A

Test-NetConnection -port (#)

28
Q

What type of request does Test-NetConnection send by default when only typing the host name (domain)?

A

ICMP echo request (like ping but with more data)

also displays what data link layer protocol is being used

29
Q

The protocol used to communicate network errors is known as?

A

ICMP

Internet Control Message Protocol

30
Q

By default, the ping utility sends what type of message?

A

Echo request

31
Q

On which operating system does traceroute send UDP packets to very high port number?

A

Linux/Mac OS

32
Q

What is the name resolution tool that displays what server was used to perform the request and the name resolution result?

A

nslookup

33
Q

what OS is nslookup available on?

A

all 3 of them

34
Q

how do you start interactive mode for nslookup?

A

enter nslookup without a host name until angle bracket appears

35
Q

What tool would you use to find the IP address for a domain?

A

nslookup

nslookup twitter.com -> A record is returned

36
Q

what happens if you type server (address) in nslookup interactive mode?

A

all the name resolution queries will try to be made using THAT server instead of default name server

37
Q

what’s the command to return different resource records for a name resolution query?

A

set type=(resource record type) in nslookup interactive mode

38
Q

What command displays the full response packets including any intermediary requests for the transport layer?

A

set debug

39
Q

What protocol layer is nslookup?

A

Transport layer

40
Q

What protocol layer is ping?

A

Internet layer