The term refers to the city in which a state ruler resided and conducted government affairs. The difference between a du (都) and a yi (邑) was that the former had an ancestral temple to enshrine the memorial tablets of ancestors and previous rulers while the latter did not. An ancestral temple used to be a place where rulers, the nobility, and senior officials made offerings to their ancestors. Therefore, an ancestral temple was a product of ancestral worshipping and a symbol of the patriarchal clan system. It is the defining structure of a du. During the Zhou Dynasty, the political center of all ducal states was called du. From the Qin and Han dynasties onward, du referred to the place where the emperor lived. Later, all cities large in scale and population were called du.
This term refers to the place where the Son of Heaven resided and conducted state affairs. Jing (京) originally meant a big hill or mound, representing the idea of being big or grand, and shi (师) meant a lot of people. To name the place where the the Son of Heaven resided and conducted state affairs jing or jingshi (京师) suggests that the capital is huge in size and expresses reverence towards the Son of Heaven.
Cheng (城) is a city with walls surrounding it. The Chinese character for cheng originally referred to inner and outer city walls built of earth, with military defense and flood control functions. Usually, it was surrounded by a moat. In ancient times, the state capital of a monarch, the fief of a prince, and a manor estate granted by a monarch to a minister or a senior official all had a walled settlement as the center, hence the name cheng. The Chinese character for cheng is pronounced the same way as another character meaning accommodating. Here, cheng means having the capacity to accommodate people. The primary function of a cheng is to protect its residents. This is a concrete manifestation of the political notion that people are the foundation of the state.