What is was the relationship of north Vietnam with the communist movements led by the soviet unin and china?

The communist super-power's goal was expanding communism; Hanoi was trying to expand communism by attempting to take over the "Republic" of South Vietnam, a non-communist country (nation). North Vietnam was in keeping with communist expansion; which is why the Chinese Communists/USSR supplied Hanoi with war material & training.