TOKYO - Iran and Saudi Arabia have agreed to re-establish diplomatic relations and reopen their respective embassies after years of hostility, in a diplomatic breakthrough brokered by China.