There is a (prototype) BB unit in Star Wars: Aftermath 2: Life Debt named QT-9.
The real world explanation for BB-8's name is that JJ Abrams loves the Beastie Boys and they have released 8 albums.
I think R2-D2 is on a secret spy mission and his under cover code name is C2-B5.