doc/Network: Markdown syntax fixups
[noc.git] / doc / Network.mdwn
1 # Network infrastructure
2
3 ## Networks
4
5 NOC operates a number of networks, available as tagged VLANs on the core
6 switches (one in each half of the hackerspace).  These networks are:
7
8 | Network    | VLAN id | Extra subnets    |
9 |------------|---------|------------------|
10 | Management |      23 | --               |
11 | IoT        |      33 | --               |
12 | Services   |      34 | --               |
13 | Public     |      36 | 89.106.211.64/27 |
14 | Guests     |     127 | --               |
15 | Members    |     128 | 89.106.211.32/27 |
16 | `0xFF`     |     255 | --               |
17
18
19 ### Conventions
20
21 We use a number of conventions to make things more consistent:
22
23 - The DNS zone for a given network is `NET.realraum.at`, with the exception
24   of the public services network (which uses `realraum.at`) and of the Funkfeuer
25   VLAN (which has no `realraum.at` zone).
26 - Networks using RFC 1918 IP space use the 192.168.VID.0/24 subnet;
27 - The gateway for a network is on the last IP for the subnet.
28
29
30 ### Routing and firewall rules
31
32 This network diagram represents networks, and the connection flows between them:
33 an arrow from A to B means that a connection can be opened from network A to
34 network B.  In all cases, a subset of ICMP (ECHO, ...) is allowed.
35
36 Note that any given system might have interfaces in several of these networks.
37
38 [[!img Network/overview.svg alt="r³ network overview"]]
39
40
41 ## WiFi
42
43 Each location has a single AP, `ap{0,1}.mgmt.realraum.at`, which provides SSIDs
44 for the IoT network (`realstuff`) and the LAN (`realraum` and `realraum5`);
45 we use Ubiquity hardware running OpenWRT.
46
47
48 ## Physical locations
49
50 The switches have hostnames `sw{0,1}.mgmt.realraum.at`, and the WiFi access
51 points are similarly `ap{0,1}.mgmt.realraum.at`. `0` denotes the main room, and
52 `1` denotes Wöhnung 2.
53
54
55 ### Wöhnung 2
56
57 #### Raum 1
58
59 r1w2 has two fiber connections: one to the main room, and one to the radio room.
60 (We use fiber to avoid creating a ground loop between the locations.)
61
62 In r1w2, we have a rack hosting a number of devices:
63
64 - the patch panel and core switch (`sw1.mgmt.realraum.at`) for W2;
65 - the `alfred` virtualization server;
66 - miscelaneous devices:
67   - RIPE ATLAS probe;
68   - some Raspberry Pi belonging to members;
69   - ...
70
71 **Note:** members setting up devices that only need power and network access
72           should do so in this rack (or even better, run a VM or a container
73           on `alfred`).
74
75
76 #### realfunk
77
78 realfunk receives the `0xFF` and LAN VLANs trunked on a single fiber;
79 the switch there, `sw2.mgmt.realraum.at`, provides untagged ports on either VLAN.
80
81 Moreover, there is a Funkfeuer node there; it *does not* advertise the realraum
82 SSIDs.
83
84
85 ### Main room
86
87 The main room has its patch panel and core switch (`sw0.mgmt.realraum.at`) in
88 Cx. The patch panel has a fiber link to r2w1, and a copper link to an external
89 antenna for our link to Funkfeuer.
90
91 The network shelf in Cx also houses some important devices:
92
93 - `gw.realraum.at`;
94 - `smsgw.mgmt.realraum.at`, plus its mobile phone;
95 - the PoE injectors for `ap0.mgmt.realraum.at` and `sch24.r3.ffgraz.net`;
96 - `test.r3.ffgraz.net`, which is a test Funkfeuer node.