Let's say two hosts are connected with an Ethernet connection. There is a similar sounding question that talks about how the two LAN cards determine the link speed by sending and receiving auto-negotiation pulses where both cards advertise their capabilities.
However, how is the cable taken into account? Let's say that both LAN cards are identical and support a much higher speed than the cable, how do they "sense" that they need to settle for a slower speed?