By DAVID E. SANGER and THOM SHANKER

WASHINGTON — The conflict that ended, for now, in a cease-fire between Hamas and Israel seemed like the latest episode in a periodic showdown. But there was a second, strategic agenda unfolding, according to American and Israeli officials: The exchange was something of a practice run for any future armed confrontation with Iran, featuring improved rockets that can reach Jerusalem and new antimissile systems to counter them.It is Iran, of course, that most preoccupies Prime Minister Benjamin Netanyahu and President Obama. While disagreeing on tactics, both have made it clear that time is short, probably measured in months, to resolve the standoff over Iran’s nuclear program.And one key to their war-gaming has been cutting off Iran’s ability to slip next-generation missiles into the Gaza Strip or Lebanon, where they could be launched by Iran’s surrogates, Hamas, Hezbollah and Islamic Jihad, during any crisis over sanctions or an Israeli strike on Iran’s nuclear facilities.Michael B. Oren, the Israeli ambassador to the United States and a military historian, likened the insertion of Iranian missiles into Gaza to the Cuban missile crisis.“In the Cuban missile crisis, the U.S. was not confronting Cuba, but rather the Soviet Union,” Mr. Oren said Wednesday, as the cease-fire was declared. “In Operation Pillar of Defense,” the name the Israel Defense Force gave the Gaza operation, “Israel was not confronting Gaza, but Iran.”It is an imprecise analogy. What the Soviet Union was slipping into Cuba 50 years ago was a nuclear arsenal. In Gaza, the rockets and parts that came from Iran were conventional, and, as the Israelis learned, still have significant accuracy problems. But from one point of view, Israel was using the Gaza battle to learn the capabilities of Hamas and Islamic Jihad — the group that has the closest ties to Iran — as well as to disrupt those links.Indeed, the first strike in the eight-day conflict between Hamas and Israel arguably took place nearly a month before the fighting began — in Khartoum, the capital of Sudan, as another mysterious explosion in the shadow war with Iran.

source