TOKYO - Japan and China have largely agreed on how to implement a maritime and aerial communication mechanism aimed at averting unintended clashes in and above the East China Sea, despite a long-running territorial row over a group of small islands in the area, sources close to bilateral ties said Wednesday.