Tariff
A tariff is called an optimal tariff if it's set to maximize the welfare of the country imposing the tariff. It is a tariff derived by the intersection between the "trade indifference curve" of that country and the offer curve of another country. In this case, the welfare of the other country grows worse simultaneously, thus the policy is a kind of "beggar thy neighbor policy". If the offer curve of the other country is a line through the origin point, the original country is in the "condition of a small country", so any tariff worsens the welfare of the original country.
Common external tariff
A common external tariff must be introduced when a group of countries forms a customs union. The same customs duties, import quotas, preferences or other non-tariff barriers to trade apply to all goods entering the area, regardless of which country within the area they are entering. It is designed to end re-exportation; but it may also inhibit imports from countries outside the customs union and thereby diminish consumer choice and support protectionism of industries based within the customs union]]
The common external tariff is a mild form of economic union but may lead to further types of economic integration. In addition to having the same customs duties, the countries may have other common trade policies, such as having the same quotas, preferences or other non-tariff trade regulations apply to all goods entering the area, regardless of which country, within the area, they are entering.