That both countries are nominally ideologically Communist has little to do with the state of their relationship: it is their shared geography that has defined relations. Viewed from Beijing, Vietnam is only a minor threat and a problem that can be managed.