introduce maxDepth for network links