Border fence is a good deterrent. In fact the subcontinent since history has had natural border acting as protection. Massive Himalaya mountain range on top and then mountainous region on West. But there are passes and choke points through which trade has kept happening since early years. These choke points are the main entry points or area that is still not covered.
If those areas are fenced and monitored, TTP can never establish a strong network inside Pakistan. I believe they are here because there was some kind of deal, to allow these people to return which is starting to backfire. So now you have to perform an operation again clean them out again. Balochistan is completely a different agenda.
Problem is, TTP is comprised alot of with even central asian people from Uzbeks, Tajiks etc. And India can use money to target instability in Pakistan. So it's a massive mistake to even try to have dialogue with them. In the past years, this seemed like it was being done with a political insurgency using people like Manzoor Pashteen. They are also probably being facilitated by Afghan Taliban just like we facilitated Afghan Taliban. Some people in the faction will have connections to people in TTP and its not easy to get rid of those connections.
This is the whole reason why Army is so involved in politics, because the state has an existential threat, and economy, good governance are all important to protect that ideology.
-------------------------------------------------------
Also the thing about Taliban not losing to Americans. In the start Americans pounded them so hard, that they were basically done. It was our ISI that helped them. Again because there were elements in the ISI that had relationships established with the Taliban. That's why Americans have always blamed Pakistan. And now we are learning from our mistake. Taliban however are not a threat to us, it's any faction that can get paid and handled by R&W to create separatist movements and insurgency in Balochistan or NWFP.
We sided with general Muslim ummah, but have to understand that some of these people don't follow Islam but follow money. Hell most of them fought the Russians for money. Got massive paychecks from USA.
But you can't make deals with TTP, they are nothing but paid shills.