Nomadic empire
The Xiongnu were a confederation of nomadic tribes from Central Asia with a ruling class of unknown origin and other subjugated tribes. They lived on the Mongolian Plateau between the 3rd century BC and the 460s AD, their territories including modern day Mongolia, southern Siberia, western Manchuria, and the modern Chinese provinces of Inner Mongolia, Gansu, and Xinjiang. The Xiongnu was the first unified empire of nomadic peoples. Relations between early Chinese dynasties and the Xiongnu were complicated and included military conflict, exchanges of tribute and trade, and marriage treaties. When Emperor Qin Shihuang drove them away from the south of the Yellow River, he built the famous Great Wall to prevent the Xiongnu from coming back.
Jiangqu
In 51 BCE a pretender to the Xiongnu's throne Huhanye re-established the "heqin" peace and kinship treaty with the Han empire, and fled to China with a fraction of the Xiongnu, partitioning the Xiongnu state into the Northern Xiongnu and Southern Xiongnu, and establishing a new polity allied with China. The Southern Xiongnu retained a title "Chanyu" for their leader, and started a new dynastic line beginning with Huhanye. Huhanye himself belonged to the 8th generation of the Maodun line of the dynastic paternal Luanti tribe, the tribe Qiang ("Kiyan") was a maternal dynastic tribe of the Southern Xiongnu. During the existence of the Southern Xiongnu state, its Xiongnu population greatly varied depending on the events in the steppe, at times it was swelling with numerous Xiongnu tribes fleeing trouble events, and at times it was losing Xiongnu tribes when they returned after return of peaceful times. The Chinese policies also affected the in and out flows. Until the event with Zhang Xiu in 179 CE, the Southern Xiongnu continued electing their Chanyus without explicit Chinese intervention, Jiangqu was the first Southern Xiongnu Chanyu who broke the traditional Xiongnu succession laws, undermining the integrity of the Southern fraction. Tribes that did not want to recognise a non-eligible leader either revolted against him, or left the area under his control.