Hi,
This is the full setup I'm trying to configure:
modem
--router a
----devices
----switch a
------devices
------router b
--------devices
------switch b
--------devices
--------router c
----------devices
Switches: d-link dgs-1005d
Routers: tp-link 671c (5g)
In short, it comes down to...