Chapter 7: TCP/IP Basics Flashcards

1
Q

Protocol Stack

A

The software installed on a system that enables a specific protocol suite to function

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

Internet Protocol (IP)

A

Works at the Internet layer, taking data chunks from the Transport layer, adding addressing, and creating the final IP packet.

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

ICMP

A

Internet Control Message Protocol (ICMP) is an error reporting and diagnostic utility and is considered a required part of any IP implementation.

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

ping

A
  • Command used to query if a host is reachable

- Shows the round trip time (RTT) for the ICMP packet it sends

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

What is the structure of a simple IP header?

A

version -> 32 bits (Header Length) -> DSCP -> TTL -> Protocol

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

Version field of an IP header

A

Defines the IP address type, i.e. 4 for IPv4 and 6 for IPv6

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

Header Length field of an IP header

A

The total size of the IP portion of the packet, which happens to be 32 bits

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

DSCP field of an IP header

A
  • Differentiated Services Code Point

- Contains data used by bandwidth-sensitive applications

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

TTL field of an IP packet

A
  • Time To Live
  • A counter that decrements by one every time a packet goes through a router.
  • Usually 128, can’t be higher than 256
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Protocol field of an IP packet

A

Usually either TCP or UDP, and identifies what’s encapsulated inside the packet

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

What percentage of TCP/IP applications use TCP?

A

~95%

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

ACK/NACK

A

TCP’s communication rule that requires both the sending and receiving machines to acknowledge the other’s presence and readiness to send and receive data.

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

Port Number

A

Used by systems to determine what application needs the received data.

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

Structure of a simple TCP header

A

Source p# -> Dest p# -> Sequence # -> ACK

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

Sequence Number and ACK fields of a TCP header

A

Enable the sending and receiving computers to keep track of the various pieces of data.

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

Flags

A

An optional portion of a header that gives both sides detailed info about the state of the connection

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

Checksum

A

A portion of a TCP header that checks it for errors

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

Application Layer Protocols

A

Used by TCP/IP applications to move data back and forth between servers and clients

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

Universal MAC Address

A

FF-FF-FF-FF-FF-FF

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

In Windows -> ipconfig

In UNIX/Linux/OSX -> ifconfig

A

Provide lots of info regarding a system’s TCP/IP settings

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

Netword ID

A

The part of an IP address that every computer on a network starts with

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

Host ID

A

The part of an IP address that distinguishes each computer from each other

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

Default Gateway

A
  • The IP address of the router that interconnects the LAN to a wider network.
  • Usually the lowest host ID in the network
24
Q

Subnet Mask

A

The 32 bit number used to divide the IP address of a host into its network ID and host ID.

25
Q

ARP

A
  • Address Resolution Protocol

- Used to determine the MAC address that corresponds to a particular IP address.

26
Q

IANA

A
  • Internet Assigned Numbers Authority

- Formed to track and disperse IP addresses

27
Q

RIR

A
  • Regional Internet Registry
  • Parcels out IP address to large ISPs and major corporations
  • Controlled by IANA
28
Q

ARIN

A
  • American Registry for Internet Numbers

- The RIR for North America

29
Q

Class A

A

1-126

30
Q

Class B

A

128-191

31
Q

Class C

A

192-223

32
Q

Class D

A

224-239

33
Q

Class E

A

240-254

34
Q

Subnetting

A

Taking a single class of IP addresses and chopping it up into multiple smaller groups

35
Q

Calculating Hosts Formula

A

2^(# of zeroes in subnet mask) - 2

36
Q

Calculating Subnets Formula

A

2^(# of ones added to the subnet mask)

37
Q

Static Addressing

A

Typing in all of the IP info into each of your clients manually

38
Q

What should you always do after statically assigning IP info?

A

Ping the IP address

39
Q

Dynamic Host Configuration Protocol (DHCP)

A

Automatically assigns an IP address whenever a computer connects to the network

40
Q

DHCP ports

A

UDP 67 (servers) and 68 (clients)

41
Q

DHCP Client

A

A computer configured to use DHCP

42
Q

When a DHCP client boots up, it automatically sends out a special ________________ over the broadcast address.

A

DHCP Discover Packet

43
Q

DHCP server

A

A server running DHCP server software

44
Q

When a DHCP client sends a DHCP server a DHCP Discover Request, it responds with a __________.

A

DHCP Offer

45
Q

DHCP Scope

A

The range of IP address a DHCP server pulls from.

46
Q

A DHCP Client sends out a _________ to accept a DHCP Offer.

A

DHCP Request

47
Q

When a DHCP Client accepts a DHCP offer, the DHCP Server sends out a ____________.

A

DHCP Acknowledgement

48
Q

DHCP Lease

A

Created by the DHCP server to allow a system requesting DHCP IP info to use that info for a certain amount of time.

49
Q

Automatic Private IP Addressing (APIPA)

A

Enables DHCP clients to self-configure an IP address and subnet mask automatically when a DHCP server isn’t available.

50
Q

APIPA cannot issue a __________.

A

Default gateway

51
Q

A situation where there probably is a DHCP problem

A

You can communicate with other computers on your network that came up after the DHCP server went down (since you all have APIPA addresses), but you can’t get to the Internet or access computers that retain the DHCP-given address

52
Q

Command to reestablish a DHCP lease in Windows

A

ipconfig /renew

53
Q

Command to reestablish a DHCP lease in UNIX/Linux/OS X

A

sudo ifconfig eth0 up

54
Q

Command to release a DHCP release in Windows

A

ipconfig /release

55
Q

Command to release a DHCP release in UNIX/Linux/OS X

A

sudo ifconfig eth0 down

56
Q

Loopback address

A

127.0.0.1

57
Q

Private IP Address Ranges

A
  1. 0.0.0 through 10.255.255.255
  2. 16.0.0 through 172.31.255.255
  3. 168.0.0 through 192.168.255.255