China has canceled a series of military and diplomatic contacts with the United States to protest a planned $6.5 billion package of American arms sales to Taiwan, American officials said Monday. China has told the United States that it will not proceed with several senior-level visits and other plans for military cooperation, said a Defense Department spokesman, Maj. Stewart Upton of the Marines. The actions will not affect China’s participation in nuclear talks with North Korea and Iran, American officials said.