This page contains design notes for how the handoff software works.
This is a state diagram for how vrouted chooses the base station to connect to.