In case of cancellation of trains:
In the case of I-tickets, you can cancel the ticket up to 72 hours after the scheduled departure of the train from its source station at any PRS counter.
In the case of E-tickets, an automatic refund is granted. Hence, filing TDR is not necessary.