So I understand many of basic concepts behind signaling such as blocks ect but what I want to know is how is a trains route managed throughout it's journey? How do signallers identify trains and how do they know where to send them? Also how was this done in the age before electronics? And do trains sometimes get sent to incorrect destinations?
Sorry if this is a duplicate post.
I'll try to tackle the modern situation first.
Since about the 1960s every train has carried a "headcode" or "train description" comprising a number, letter, number, number. The first digit denotes the type of train and the letter gives some idea of the destination or route. There aren't enough codes to give each train a unique one but the assignment tries to ensure that there is no duplication in a particular control area.
The panel signal boxes built from the 60s onwards were fitted with "train describer" systems. There is a display near each signal, either on the main panel or a separate screen, that shows the headcode of the train (if there is one) approaching that signal. When the train passes the signal the system notes the occupation of the next track and "steps" the description to the next signal (according to which route is set, if there is more than one). There are facilities to edit discriptions manually but when a train enters or leaves the area of control the description is automatically transmitted between signalling centres. Signallers can also view maps of wider areas showing train desriptions and positions, and this is also the means by which train running information is fed to passenger information systems.
From around 1990 most new signalling centres used VDU displays instead of panels, but included the same train desciber functionality. Some of the larger centres have Automatic Route Setting, which can set routes for most trains depending on their position, the position of other trains, and the timetable. In others, including all the panel boxes, signallers have to know the route the train takes from the train description and the working timetable, and set it up manually.
In traditional signalling none of this exists (although a traditional box acting as a "fringe box" to a signalling centre will have a terminal to enter data into the train describer). The signalman asks the next signalman to confirm the line is clear by means of a code on the box to box bell, and different codes are used according to the type of train. For boxes on the approach to major junctions there would often be different bell codes for each route. The signalmen at these boxes would determine the route of an approaching train by means including listening out for the driver sounding a particular whistle sequence, or in some regions and eras reading the description that was displayed on the front of the locomotive. In very complex and busy areas electromechanical train describers were used to indicate the route of the train approaching a particular signal box.