UP and DN are abbreviations for Up and Down, which indicate the direction of the train. When a train is designated as Down, it means that it is departing from its zonal or divisional headquarters, that is the home railway. Likewise, Up denotes that the train is travelling to its zonal or divisional headquarters.
For example, the 12301 DN Howrah Rajdhani Express is a Down train, as it leaves from Howrah, the headquarters of Eastern Railway. The 12302 UP Howrah Rajdhani Express is an Up train, as it returns to Howrah from New Delhi.
Up and Down directions are generally reflected in the use of odd and even numbers, respectively. For instance, most Down trains have odd numbers, while most Up trains have even numbers. However, there are some exceptions to this rule, such as the 12951/12952 Mumbai Rajdhani Express, which has the same number for both directions.
The 5-digit number on the train indicates the type, zone, and category of the train. The first digit shows the type of train, such as 0 for special trains, 1 or 2 for long-distance trains, 3 for Kolkata suburban trains, 4 for other suburban trains, 5 for passenger trains, 6 for MEMU trains, 7 for DMU trains, 8 for Suvidha trains, and 9 for Mumbai EMU trains.
The second digit shows the zone or division of the train, such as 0 for Konkan Railway, 1 for Central, West Central, and North Central Railways, 2 for superfast trains, 3 for Eastern and East Central Railways, 4 for Northern, North Central, and North Western Railways, 5 for North Eastern and Northeast Frontier Railways, 6 for Southern and South Western Railways, 7 for South Central and South Western Railways, 8 for South Eastern and East Coast Railways, and 9 for Western, North Western, and West Central Railways.
The last three digits show the category or class of the train, such as 001-025 for AC First Class, 026-050 for Composite 1 AC + AC-2T, 051-100 for AC-2T, 101-150 for AC-3T, 151-200 for CC (AC Chair Car), 201-400 for SL (Second Class Sleeper), 401-600 for GS (General 2nd Class), 601-700 for 2S (2nd Class Sitting/Jan Shatabdi Chair Class), 701-800 for Sitting Cum Luggage Rake, and 801+ for Pantry Car, Generator or Mail.
By knowing the meaning of UP and DN and the 5-digit number on the train, you can easily identify the direction, type, zone, and category of any Indian Railway train.