IPv4 Flashcards

1
Q

What is a subnet?

A

Device interfaces with same subnet part of IP address

Can physically reach each other without intervening router

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

What is CIDR?

A

It is “Classless InterDomain Routing) - arbitrary subnet lengths
A.b.c.d/X where x is the number of bits for the subnet part

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

Why is classful routing inefficient?

A

Class C: 256 addresses: to small for small enterprises
Class B: 65536 addresses: too small for large enterprises and universities
Class A: 16 mio addresses: too large

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

Where is ICMP located (OSI)?

A

It resides in IP datagrams but is considered part of the IP layer

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

What 2 classes of icmp messages exist?

A
Query messages: generate another icmp message
Error messages: contain IP and first 8 bytes of erroneous ip datagram; allows receiving icmp module to map message to protocol&port
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

When should a host send ARP requests?

A

When an IP address does not appear in the host-local ARP table.

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

How does ARP deal with hosts that change their address?

A
  • Expiration timer

- some implementations send ARP request to revalidate to-be-removed table entries

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

What are gratuitous ARP requests?

A

A host sends ARP request for its own IP address; this can check if the ip is already in use in the LAN

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

Vulnerabilities of ARP?

A
  • No authentication - packets can be forged
  • Stateless: replies can be send without request
  • Receiving ARP packet must update local cache
  1. Option: Force overwrite (ARP Poisoning) - can redirect traffic
    ARP manipulation can also happen in WPA2 Wifi!
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the difference between routers and switches?

A

Router: forwarding tables, routing protocols
Forwards IP packets based on FWD table & dst IP

Switch: switching tables, filtering & learning algorithms, spanning tree protocols
Switch L2 frames based on sw table & dst MAC

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

What are forwarding and routing?

A

Forwarding: data plane
- direct data packet to link
uses fwd table

Routing: control plane
- compute the paths the packet will follow
Creates fwd table

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

Name 3 routing protocols

A

RIP
OSPF
BGP

Routers talk amongst themselves

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

How does routing in SDN (software defined networking) work?

A

A router receives forwarding and routing information via SDN control plane

Control plane can be external

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