A huge display of China's military might in Beijing caps off four days of high level diplomacy with the leaders of more than twenty countries.