|
14 | 14 |
|
15 | 15 | ## Slide: The aim
|
16 | 16 |
|
17 |
| -* Aim to model the Kubernetes model. |
| 17 | +* Aim to model the Kubernetes model (LHS diagram). |
18 | 18 | * Each container (pod) has its own unique IP.
|
19 | 19 | * No NAT'ing going on.
|
20 | 20 | * Host can talk to containers, and vice versa.
|
21 | 21 |
|
22 |
| -* Contrast this with the default docker approach. |
| 22 | +* Contrast this with the default docker approach (RHS diagram). |
23 | 23 | * i.e. Only containers on a node have unique IP addresses.
|
24 | 24 | * Processes inside containers accessed via port mapping (IP tables).
|
25 | 25 |
|
@@ -152,12 +152,21 @@ sudo ip netns exec con1 ping 10.0.0.10
|
152 | 152 | * When we ping between the network namespaces:
|
153 | 153 | * Highlight the TTL. Should be the default value, thus no routing is going on here!
|
154 | 154 | * Describe what the TTL is, and what happens when the TTL reaches zero.
|
155 |
| - * Can also describe how the TTL is used, e.g. in the implementation of traceroute. |
| 155 | + * Describe how the TTL is used, e.g. in the implementation of traceroute. |
156 | 156 | * When we ping network namespace from node:
|
157 | 157 | * Highlight the TTL. Should be the same.
|
158 | 158 | * Mention that currently we cant get external traffic to the namespaces, as we are not fowarding IP packets.
|
159 | 159 | However, we will set this up in the next example.
|
160 | 160 |
|
| 161 | +## Slide: Quick recap: L2 vs L3 networks |
| 162 | + |
| 163 | +* Before we move on to the multinode cases, lets have a quick |
| 164 | + recap on the difference between a L2 (ethernet) and L3 (IP) network, we are going to need to know |
| 165 | + this in order to understand the next 2 cases. |
| 166 | +* Appologies if I'm telling you stuff you already know though! |
| 167 | +* On a L2 network, each node can send a packet to any other node in a single hop (ethernet packet). |
| 168 | +* If it requires more than one hop, then it needs to be routed (multiple ethernet packetes), thus it is an L3 network. |
| 169 | + |
161 | 170 | ## Slide: Diagram of multiple network namespaces on different nodes but same subnet
|
162 | 171 |
|
163 | 172 | * 2 nodes on the same subnet, each setup the same as 2 but with containing different network namespace subnets.
|
|
0 commit comments