The Southern Song and Jin alternate between fierce warfare and negotiated peace as each seeks security, legitimacy and control of the contested frontier.