KSR stands for Kalka–Shimla Railway. ZDM refers to a class of locomotives in Indian Railways where Z denotes narrow gauge, D indicates diesel haulage, and M means the locomotive is designed to handle both passenger and freight services though freight trains do not operate on this section. Official Website