China has long been North Korea's largest trading partner and main lifeline to buffer international sanctions.