The experiment of testing the optical fiber transmission characteristic is offered in the optical fiber communication experimental teaching. Generally we employ the method of inserting tested fiber to measure its loss. This particle introduced a method based on the optical time domain reflectometer (OTDR). The intensity of backscattered light is measured and used to determine the fiber loss. The result is got by comparing the two methods. Students can understand and master the essential principle and basic operation of OTDR in the experiment.