India and China have reached a deal on patrolling their disputed frontier to end a four-year military stand-off, the