I don't think we understand China's implicit sovereignty over that part of Asia.  An attack on North Korea will be considered an attack on them.  Anything short of that, China will try to assist their US trading partner.