Termination and routing of fibre optic cables in the network