daan5000 wrote: » Hi there While studying for my CCNA cert, I came up with a question to which I think I know the answer, but I just want to be absolutely sure. In case a switch is connected to a hub, it will automatically go into half-duplex mode on the interface the hub is connected to. This means it will have to use CSMA/CD. Now, if a hub receives a frame on one of its ports that is destined for one of the hosts in the hub network, it will buffer the frame until the medium is idle. Now, will the switch: a) Keep the frame buffered after forwarding it in case the frame ends up in a collision anyway? b) just remove the frame from its buffer the moment it forwards the frame and rely on the sending host to retransmit the frame? (in that case, dunno how the sending host knows its frame ended up in a collision in another network segment). Answer a looks the most logical to me, but then again, won't this cause the buffer to overflow? Thanks in advance
OctalDump wrote: » It's a good question, and I can't answer it. But to correct what the other posts have said, the NIC will handle retransmission in a Collision Detected event. TCP retransmission only happens if the maximum retries is exceeded, or if it is a "late collision", after the first 512 octets, which CSMA/CD cannot handle. That is to say that the retransmission is handled at layer 2 under CSMA/CD. I have actually an answer now:https://learningnetwork.cisco.com/message/281319#281319 It appears that the switch DOES retransmit the frame, since it knows about CSMA/CD. Not sure if that is sufficient answer. In the case of B (where a switch doesn't properly handle CSMA/CD or late collisions), the upper layer protocols will need to handle retransmission, so TCP can do that, or if using UDP it will happen in the application or maybe not care (like VoIP).