https://nationalinterest.org/blog/buzz/behold-irans-mini-submarine-force-dangerous-partly-thanks-north-korea-59562
The National Interest previously looked at this nuanced question with overviews of Iran’s air force and surface navy. We now turn to what is arguably the core of Iran’s conventional military strength, and the reason why it boasts the fourth-strongest navy in the world: its submarine force.
Perhaps the most striking aspect of Iran’s submarine roster is its sheer size, especially in relation to the rest of its navy. Whereas Iran’s combined output of operational corvettes, frigates, and destroyers hardly exceeds 10, it currently fields a whopping 34 submarines. The vast majority of these are midget-class–or “littoral”–diesel-electric vessels, with roughly two dozen from Iran’s homemade Ghadir class and several more from the North Korean Yugo class. Impressively, the Ghadir is much smaller but still has strong offensive capabilities; Ghadir vessels boast the same 533 mm torpedo tubes as the handful of Iran’s much larger Kilo vessels, only fewer at two versus six.
https://csbaonline.org/uploads/documents/CSBA_SWA_FNL-WEB.pdf
From the article above, we really do need to update our military doctrine
Should the United States choose to intervene in spite of Iran’s A2/AD capabilities, Iran would likely hope to inflict significant losses on U.S. forward-deployed forces at the outset of a conflict while preventing the U.S. military from reinforcing those forces by sea and air. This may help create the time and space needed for Iran to consolidate its gains and force the United States to choose between fighting its way into the Persian Gulf at great cost and with little or no support from regional states, or accepting a new regional balance of power that favors Iran. Tehran may hope that the United States, faced with the prospect of a long and costly campaign to reopen the Gulf, may ultimately balk at defending autocratic Gulf regimes that have never been particularly popular with the American public
The difficult acoustic conditions in the Persian Gulf and its approaches complicate anti-submarine warfare (ASW) operations;