(Ranging technology is a key technology introduced in passive optical network (PON) to avoid uplink service conflict. According to the characteristics of PON access network pairs, this paper proposes an implementation mechanism of in band distance measurement, and gives the implementation principle and implementation process. The implementation of the scheme in APON and EPON is also introduced.)