Routers route packets based on the destination IP address: a 32-bit number included in the header of every IP packet.  Historically, "large" sites were allocated IP address blocks starting with 0 (binary).  Medium sites were allocated address blocks starting with the bits 10.  "Small" sites were allocated address blocks starting with the bits 110.