WK1 Local and Network Wide Communication Flashcards

1
Q

IP stands for

A

Internet Protocol

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

What is An internet protocol address (IP address)

A

An internet protocol address, or IP address, is a unique string of characters that identifies a location of a device on the internet.

Each device on the internet has a unique IP address, just like every house on a street has its own mailing address.

Key takeaway: Security analysts can use packet capturing tools, or PCAP, to inspect packets while they’re in transit. Analyzing the different fields in an IP address packet can be used to find out important security information about the packet. Some examples of security-related information found in IP address packets: where the packet is coming from, where it’s going, and which protocol it’s using. Understanding the data in an IPv4 data packet will allow you to make critical decisions about the security implications of packets that you inspect.

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

What are the are two types of IP addresses

A
  1. IP version 4, or IPv4,
  2. IP version 6, or IPv6.

IPv4 addresses are written as four, 1, 2, or 3-digit numbers separated by a decimal point. In the early days of the internet, IP addresses were all IPV4. But as the use of the internet grew, all the IPv4 addresses started to get used up, so IPv6 was developed.

IPv6 addresses are made up of 32 characters. The length of the IPv6 address will allow for more devices to be connected to the internet without running out of addresses as quickly as IPv4.

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

Public IP address

A

IP addresses can be either public or private. Your internet service provider assigns a public IP address that is connected to your geographic location. When network communications goes out from your device on the internet, they all have the same public-facing address. Just like all the roommates in one home share the same mailing address, all the devices on a network share the same public-facing IP address.

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

Private IP address

A

Private IP addresses are only seen by other devices on the same local network. This means that all the devices on your home network can communicate with each other using unique IP addresses that the rest of the internet can’t see.

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

MAC address

A

A MAC address is a unique alphanumeric identifier that is assigned to each physical device on a network.

When a switch receives a data packet, it reads the MAC address of the destination device and maps it to a port. It then keeps this information in a MAC address table.

Think of the MAC address table like an address book that the switch uses to direct data packets to the appropriate device.

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

Layer 3 of the OSI model: The Network Layer

Operations at the network layer

A

Functions at the network layer organize the addressing and delivery of data packets across the network and internet from the host device to the destination device. This includes directing the packets from one router to another router across the internet, based on the internet protocol (IP) address of the destination network. The destination IP address is contained within the header of each data packet. This address will be stored for future routing purposes in routing tables along the packet’s path to its destination.

All data packets include an IP address; this is referred to as an IP packet or datagram. A router uses the IP address to route packets from network to network based on information contained in the IP header of a data packet. Header information communicates more than just the address of the destination. It also includes information such as the source IP address, the size of the packet, and which protocol will be used for the data portion of the packet.

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

Layer 3 of the OSI model: The Network Layer

Format of an IPv4 packet

A

IPv4 packet is made up of two sections, the header and the data:

The size of the IP header ranges from 20 to 60 bytes. The header includes the IP routing information that devices use to direct the packet. The format of an IP packet header is determined by the IPv4 protocol.

The length of the data section of an IPv4 packet can vary greatly in size. However, the maximum possible size of an IP packet is 65,536 bytes. It contains the message being transferred to the transmission, like website information or email text.

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

There are 13 fields within the header of an IPv4 packet:

  1. Version
A

Version: The first 4-bit header tells receiving devices what protocol the packet is using. The packet used in the illustration above is an IPv4 packet.

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

There are 13 fields within the header of an IPv4 packet:

  1. IP Header Length (HLEN)
A

HLEN is the packet’s header length. This value indicates where the packet header ends and the data segment begins.

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

There are 13 fields within the header of an IPv4 packet:

Type of Service (ToS)

A

Type of Service (ToS): Routers prioritize packets for delivery to maintain quality of service on the network. The ToS field provides the router with this information.

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

There are 13 fields within the header of an IPv4 packet:

Total Length

A

Total Length: This field communicates the total length of the entire IP packet, including the header and data. The maximum size of an IPv4 packet is 65,535 bytes.

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

There are 13 fields within the header of an IPv4 packet:

Identification

A

Identification: For IPv4 packets that are larger than 65, 535 bytes, the packets are divided, or fragmented, into smaller IP packets. The identification field provides a unique identifier for all the fragments of the original IP packet so that they can be reassembled once they reach their destination.

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

There are 13 fields within the header of an IPv4 packet:

Flags

A

Flags: This field provides the routing device with more information about whether the original packet has been fragmented and if there are more fragments in transit.

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

There are 13 fields within the header of an IPv4 packet:

Fragmentation Offset

A

Fragmentation Offset: The fragment offset field tells routing devices where in the original packet the fragment belongs.

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

There are 13 fields within the header of an IPv4 packet:

Time to Live (TTL):

A

Time to Live (TTL): TTL prevents data packets from being forwarded by routers indefinitely. It contains a counter that is set by the source. The counter is decremented by one as it passes through each router along its path. When the TTL counter reaches zero, the router currently holding the packet will discard the packet and return an ICMP Time Exceeded error message to the sender.

17
Q

There are 13 fields within the header of an IPv4 packet:

Protocol

A

Protocol: The protocol field tells the receiving device which protocol will be used for the data portion of the packet.

18
Q

There are 13 fields within the header of an IPv4 packet:

Header Checksum

A

Header Checksum: The header checksum field contains a checksum that can be used to detect corruption of the IP header in transit. Corrupted packets are discarded.

19
Q

There are 13 fields within the header of an IPv4 packet:

Source IP Address

A

Source IP Address: The source IP address is the IPv4 address of the sending device.

20
Q

There are 13 fields within the header of an IPv4 packet:

Destination IP Address:

A

Destination IP Address: The destination IP address is the IPv4 address of the destination device.

21
Q

There are 13 fields within the header of an IPv4 packet:

Options

A

Options: The options field allows for security options to be applied to the packet if the HLEN value is greater than five. The field communicates these options to the routing devices.

22
Q

Difference between IPv4 and IPv6

A

One of the key differences between IPv4 and IPv6 is the length of the addresses. IPv4 addresses are numeric, made of 4 bytes, and allow for up to 4.3 billion possible addresses. IPv4 addresses are made up of four strings and the numbers range from 0 to 255. An example of an IPv4 address would be: 198.51.100.0. IPv6 addresses are hexadecimal, made up of 16 bytes, and allow for up to 340 undecillion addresses (340 followed by 36 zeros). An example of an IPv6 address would be: 2002:0db8:0000:0000:0000:ff21:0023:1234.

There are also some differences in the layout of an IPv6 packet header. The IPv6 header format is much simpler than IPv4. For example, the IPv4 Header includes the HLEN, Identification, and Flags fields, whereas the IPv6 does not. The IPv6 header introduces different fields not included in IPv4 headers, such as the Flow Label and Traffic Class.

There are some important security differences between IPv4 and IPv6. IPv6 offers more efficient routing and eliminates private address collisions that can occur on IPv4 when two devices on the same network are attempting to use the same address.