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