Lab 2 questions Flashcards

1
Q

What is the purpose on an ARP-request?

A

Its purpose is to find the MAC-address of the destination host from the given IP-address.

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

What layer is the ARP operating on?

A

It operates between the second layer (data link layer) and the third layer (network layer)

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

Does ARP use IP-headers?

A

No, they have their own ARP-header.

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

When a packet needs to be transmitted to a host on another subnet, what IP address will be
used in the destination field of the IP header?

A

The IP-address of the host on the other subnet

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

When a packet needs to be transmitted to a host on another subnet, what MAC address will
be used in the destination field of the MAC header?

A

The MAC address used will be the MAC address of the router which will transfer it to the subnet.

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

What MAC destination address is an ARP request ALWAYS sent to?

A

It gets sent to the broadcast MAC address

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

What MAC destination address is an ARP reply sent to?

A

It gets sent to address of the destination which matches the MAC address of the original ARP request.

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

Exactly what information does an ARP request contain?

A

Kolla på slides?

Hardware type (HTYPE)
- the network link protocol type, eg Ethernet.
Protocol type (PTYPE)
This field specifies the internetwork protocol for which the ARP request is intended. For IPv4, this has the value 0x0800. The permitted PTYPE values share a numbering space with those for EtherType.
Hardware length (HLEN)
Length (in octets) of a hardware address. Ethernet address length is 6.
Protocol length (PLEN)
Length (in octets) of internetwork addresses. The internetwork protocol is specified in PTYPE. Example: IPv4 address length is 4.
Operation
Specifies the operation that the sender is performing: 1 for request, 2 for reply.
Sender hardware address (SHA)
Media address of the sender. In an ARP request this field is used to indicate the address of the host sending the request. In an ARP reply this field is used to indicate the address of the host that the request was looking for.
Sender protocol address (SPA)
Internetwork address of the sender.
Target hardware address (THA)
Media address of the intended receiver. In an ARP request this field is ignored. In an ARP reply this field is used to indicate the address of the host that originated the ARP request.
Target protocol address (TPA)
Internetwork address of the intended receiver.

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

Exactly what information does an ARP reply contain?

A

Kolla slides?
The MAC-address for the destination and its IP-addresses.

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

What is the purpose of a DNS request?

A

A Domain name system request is used to obtain information from a DNS-server sent from a user’s computer (DNS-client). Most often the request is about the IP-address associated with a domain name.

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

When a DNS request is sent to a DNS server on another subnet, what IP destination address
will be used in the IP header?

A

The IP destination address used will be the IP for the DNS server on the other subnet server.

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

When a DNS reply is sent by a DNS server to a host on another subnet, what IP destination
address will be used in the IP header?

A

The IP destination address used will be the IP of the host on the other subnet.

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

When a DNS reply is sent by a DNS server to a host on another subnet, what MAC
destination address will be used in the MAC header?

A

The MAC destination address used in the MAC header will be the MAC-address of the router connecting the subnets.

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

What is the difference between a hub, a switch and a router?

A

A hub is used to recieve all transmitting signals and then broadcasts it to everyone.
A switch recieves a signal and reroutes it to the correct route.
A router is used to connect different networks together. (Operates on the network layer)

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

When a switch relays a packet, how will the destination MAC address be affected?

A

It should not be affected.

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

When a router relays a packet, how will the destination MAC address be affected?

A

The MAC address will be changed to the next router the packet is to be relayed.

17
Q

When a switch relays a packet, how will the destination IP address be affected?

A

It will not be changed.

18
Q

When a router relays a packet, how will the destination IP address be affected?

A

It remains unchanged

19
Q

Describe the classful addressing method.

A

Depending on how the IP starts (after the first 0), the host is the next x following bits which depends on the class of the network. The rest of the bits are the host bits. Class A has few networks available but a large amount of hosts. Class C has the opposite relation with many networks with few hosts each.

20
Q

Describe the classless addressing method.

A

The classless addressing method use arbitrary subnet masks which devides the subnet number and the host number by and operation with the original IP-address.