You can enable loopback tests at the SONET/SDH level. You can also test for connectivity between an interface and the SONET/SDH interface at the other end of the line.