How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

To transmit information over a transmission line, the load impedance must equal the characteristic impedance of the line. If this condition isn't met and the load impedance at the end of the line is high, the signal energy, having reached the end of the line, can't leave it and is reflected back. After some time the reflected signal returns to the input of the line and adds to the signal being sent into the line; as a result, the shape of the transmitted signal is distorted and the information is lost.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

Knowing the time the signal spent traveling and its speed, you can calculate the distance it covered. The signal propagation speed in a coaxial cable is 2/3 of the speed of light; on average it's assumed that a signal travels 20 cm in 1 nS, though in fact slightly less.
For this experiment we'll need to build a square wave generator with a steep edge.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

The rise time of the signal in this circuit is a few nS (I got 3.4), and the frequency varies from 2 to 6 KHz depending on the chip batch.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

The circuit is made from two pieces of PCB laminate: the chip is soldered on one, and a BNC connector is mounted on the other.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

Using a BNC T-connector, we connect the generator and the cable under test to the oscilloscope; the cable is 157 cm long.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

The oscillogram shows a certain delay on the rising edge. It occurs where the amplitude of the signal sent into the line is at its maximum and the amplitude of the reflected signal is zero. By the time the reflected signal reached the beginning of the line, it had traveled 314 cm. So the delay time should be 15.7 nS; the measured delay is 15.2 nS, and the difference is due to the method's error.

Let's connect a trimmer resistor to the other end of the cable and see how the oscillogram changes depending on the resistance.
When the resistor's resistance matches the cable's characteristic impedance, all the signal energy will pass freely from the line into the resistor, and the "step" caused by the reflected signal should disappear.
Resistor value 0 Ohm.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

Resistor value 50 Ohm.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

Resistor value 75 Ohm.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

Resistor value 100 Ohm.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

From these oscillograms it's impossible to say for sure what this cable's characteristic impedance is.

If you increase the cable length, the delay time increases, and the change of resistance at the end of the line becomes more visible. I don't have a long piece of cable at hand, but there's a cable running along the baseboard from one room to another. I connected this cable to the oscilloscope and the generator.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

The length of the "step" increased; we solder a resistor to the other end and start turning it.
Resistor value 0 Ohm.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

Resistor value 50 Ohm.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

Resistor value 75 Ohm.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

Resistor value 100 Ohm.
How to Measure the Length of a Coaxial Cable and Its Characteristic Impedance with an Oscilloscope.

The oscillograms show that the cable's characteristic impedance is 75 Ohm; at other resistance values the "step" appeared again.
Based on this knowledge, you can calculate the signal propagation speed in any other transmission line by measuring the delay in a two-meter piece. And knowing the speed, you can use the method described to calculate the length of a longer cable.
Now we know how to measure a cable's length and its characteristic impedance with an oscilloscope.