1. A routing system comprising: a host router running a common operating system; and a plurality of virtual router domains which share the common operating system; wherein a first subset of global variables associated with networking functions in the common operating system are replicated for the virtual router domains, a respective set of replicated variables being used for a respective virtual router domain; and wherein a second subset of the global variables are not replicated and are shared by the virtual router domains.