0

Let's say for example there is an Ethernet switch, and there are four PCs connected to this switch. PC1 and PC2 are communicating with each other, and at the same time PC3 and PC4 are also communicating with each other. Obviously there is no Statistical TDM here. Also, there is only one node - the switch, so there cannot be multiple paths from source to destination.

So how does Ethernet become packet-switched? Is it because the data being exchanged are broken into packets? What are the conditions that must be satisfied to say that a network is a packet-switched network?

2 Answers 2

4

Ethernet has always used packet switching.

Packet switching works by multiplexing a physical connection on a packet basis. Each packet (or frame on the data link layer) is atomic but consecutive frames can come from or go to completely different sources or destinations (MAC addresses).

The essential distinction of a packet-switched network is that each packet is forwarded on its own and in a stateless fashion (=the forwarder does not remember any previous packets and there are no 'connections' [*]).

In a circuit-switched network, a connection is set up before any data can be transferred. Bandwidth for the connection is reserved as long as it's "up". When you need to run multiple, simultaneous connections on a physical link you need some kind of multiplexing, e.g. FDM or TDM.

Note that "multiple paths from source to destination" can be true in the IP (network) layer but not on Ethernet's data link layer. An Ethernet network is essentially bridged, and multiple paths between nodes mean you've got bridge loops - without correcting measures like the spanning-tree protocol (STP), these loops will quickly take down your network.

[*] 'Connections' are a concept that may be present in a higher layer, e.g. the transport layer (L4). The network (L3) and the data link (L2) layers have no such concept with packet switching, they are connectionless.

2
  • Thanks for answering. But what about ATM? Doesn't it use connections since it uses virtual circuit identifiers and packets travel through same path?
    – Noob_Guy
    Sep 1, 2019 at 2:07
  • Yes, ATM is basically circuit-switched, but does have some packet-switching properties to simplify multiplexing. ATM's cells can be thought of as a form of TDM.
    – Zac67
    Sep 1, 2019 at 7:53
3

TDM is a circuit-switched network, where the circuit (path) is set up at the beginning, and it is up until it is torn down. It does not vary, and no other devices can use that circuit until it is freed. Traffic put in one end of the circuit comes out at the other end of the circuit. TDM frames are always put in one end of the circuit and sent to the other end of the circuit, following the same path.

An ethernet switch is just that, as switch. Frames entering the switch on any of the interfaces could be sent to any other interface (switched), and that is controlled by the addressing on the frames. Each ethernet frame is switched independently, based on the addressing on the frame.

A switch is smart enough that it will build a MAC address table and maintain it as a frame enters the switch. The switch will look at the source MAC address on the frame, and it will build an entry for that MAC address that tells the switch on which interface the MAC address is connected. It only takes a single frame entering the switch on an interface to add an entry in the MAC address table for the source MAC address, and switches rapidly learn which MAC addresses are connected to which interfaces.

The switch will then look at the destination MAC address and try to find it in its MAC address table to switch the frame to the correct interface for the destination MAC address. If it does not find an entry in the table, it will flood the frame to all other interfaces.

5
  • Thank you for answering. But I think you explained how an ethernet switch works. So do you mean a switch use TDM and not Statistical TDM?
    – Noob_Guy
    Sep 1, 2019 at 2:13
  • No, TDM has nothing to do with ethernet or an ethernet switch. TDM is a circuit-switched network.
    – Ron Maupin
    Sep 1, 2019 at 2:13
  • So the fact that it uses MAC address and MAC table makes it packet-switched? Can we say that packet switching occurs when there is an addressing of packets/frames?
    – Noob_Guy
    Sep 1, 2019 at 3:09
  • No. The packets are switched based on the address. There are other switched layer-2 protocols that use other addressing, but packet switching requires addressing in order to know where to send each packet. Circuit switching does not require that because there are only two endpoints to a circuit, so anything leaving one end of the circuit goes to the other end of the circuit.
    – Ron Maupin
    Sep 1, 2019 at 3:12
  • @Noob_Guy, circuit switching can only send data to the other end of the circuit. Packet switching can switch the packets to any other address on the network for which it knows the address. I think you are mixing up the network layers. With the layer-2 protocol, TDM is circuit-switched, where ethernet is packet-switched, but if you throw in layer-3 (IP) then you mean packet switching at the network layer, across different networks, and that can work with circuit- or packet-switched layer-2 networks.
    – Ron Maupin
    Sep 1, 2019 at 3:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.