AS_PATH
AS_PATH is a well known mandatory attribute. It identifies all autonomous systems on the path to a destination. When a BGP speaker forwards routing information to a peer in a separate AS, it attaches its own AS number to the beginning of the AS_PATH.
The AS_PATH of the route to A, which D receives from C, is {C,B,A}.
Here is a Java applet to show how this works: