Hi Ayush,
The main difference between the PE and the CE is that the former runs MPLS and the latter not. The PE is also part of the SP core igp, which is not the case for the CE. Sometimes SP deliver l3vpn services where the CE is not needed. Just a L2 device drectly connected to the PE.
The difference between a P and a PE is more subtle. A P router technically does not perform label imposition and dispotion, therefore only label swapping. Not sure how you would identify that via SNMP though.
I am not sure I answered your question. let me know if not.
Regards
Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México