Tunneling Flashcards

1
Q

What is tunneling?

A

Tunneling is encapsulating one datagram in another.
The outer packet is used for routing/switching in the underlay network, the inner packet is used in the overlay network.
Can be used at any layer

ich bin hexmex hexmeister (hexxor)

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

Name adv/disadv of tunneling

A

+ build overlay struct
+ deal with heterogeneous protocols
+ protect traffic
+ isolate customers

  • more oferhead
  • config effort
  • much room for missconfig
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What performance & security issues arise from tunneling?

A

Perf: - processing overhead
- smaller mtu -> possible fragmentation

Sec: - correct config & setup not trivial

  • inner & outer headers require verification
  • circuumvent security policies (firewalls)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a VPN

A

Tunneling protocol, usually encrypted -> secure connections between nodes

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

What is a vlan?

A

Virtual lan
Incorporated inside eth header
Tunnel endpoints are managed switches
Overlay over phy network

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

What are tpid, pcp, dei and vid (vlan header)

A

Tpid: indication that its a vlan packet
Pcp: priority code point: priorization
Dei: drop eligible indicator: can frame be dropped in case of congestion?
Vid: vlan id 1-4094

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

What are access and trunk ports?

A

Access port: tx/rx not tagged, all network connections are logically in one vlan

Trunk ports: can tx/rx traffic from mult vlans
Tagged frames are forwarded unchanged
Untagged frames are tagged using native vlan
Switch-to-switch link
Use with vlan aware hosts

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

What is q-in-q?

A

Stacked vlans - 2 headers

Use case: provider (aws)
Lower vlan: provide
Upper vlan: customer

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

What is the difference in consumer vs enterprise vlan switches?

A

Consumer: vlan for wan and one for lan, cpu only for wan

Enterprise: dedicated hw for routing and cpu for special cases

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

What is vxlan and what does it do?

A

Very large scale q-in-q.

Encapsulates into udp packets + vxlan header

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

What are the benefits of vxlan?

A

Layer 3: cna be used in lan and internet (multiplexing in layer 4)
Can use l3 routing protocols
Better multipath support

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

What is ipsec

A

It is a secure implementation of ip

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

What modes does ipsec offer?

A

Tunnel mode: subnet to subnet (via secure gateways)

Transport mode: host to host

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

What are the 2 phases of ipsec?

A

Handshake: establish SAs (security association) IKEv2

Data transfer: uses SAs to enc/sign - Encapsulated security Payload and Authentication Header

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

What are SPs?

A

Security policies which configure security associations

Can be: protect, bypass or discard
SAs are identified by security parameter indices

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

What does the SP database contain?

A
For each entry:
Discard, bypass or protect
Direction
Selector (ip, next layer proto,packet flag)
Name fqdn
Ipsec mode
Ipsec proto
17
Q

What does the SA db contain?

A
Security parameter index
64 bit sequence 
Anti replay window
Algorithm keys, IVs
Lifetime 
Ipsec mode
18
Q

Name 4 traffic selectors and 6 sa protocols

A

Ts: ip version, ip proto, port range or icmp code/type, ip addr range

Sa proto: ike/esp/ah
Spi, size
Enc algo
Integrety protect algo
Dh group, rand family
19
Q

Explain the 5 security protocols and modes

A
Plain ip: ip - tcp - l7
Esp tunnel: ip - esp - ip - tcp - l7 - esp. (2x ip)
Esp transport: ip - esp - tcp - l7 - esp
Ah tunnel: ip - ah - ip - tcp - l7
Ah ttansport: ip - ah - tcp - l7
20
Q

Name protocols for these usecases:

  • l2 nw administration
  • connect remote workers to company lan
  • evade firewalls
A

L2: vlan, vxlan
Remote worker: ipsec, ssl based vpn
Firewalls: ip-over-(http, dns, icmp)

21
Q

Look and learn the figure

A

in apple photos