Pakistan is a front-line state in the US-led war on terrorism, and faces deteriorating security on the Afghan border.