differences between layer-based and node-based