when to use switch or router code example Example: router vs switch switch connect hosts, router connects switches to networks beyond