How to detect if the given signal is Data or Clock signal type?
Clocks are very regular, i.e. all the up and down transitions are equally spaced. Data tends  to more irregular, i.e. spacing between transitions varies.