“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 Forces 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.

A factory said to be producing light arms blew up in spectacular fashion on Oct. 22, and within two days the Sudanese charged that it had been hit by four Israeli warplanes that easily penetrated the country’s airspace. Israelis will not talk about it. But Israeli and American officials maintain that Sudan has long been a prime transit point for smuggling Iranian Fajr rockets, the kind that Hamas launched against Tel Aviv and Jerusalem over recent days.

The missile defense campaign that ensued over Israeli territory is being described as the most intense yet in real combat anywhere — and as having the potential to change warfare in the same way that novel applications of air power in the Spanish Civil War shaped combat in the skies ever since.