Here is the simple view
TTP works in Pakistan against Pakistan and supported by Afghan as well as Indian secret agencies.
Afghan Taliban works in Afghanistan and belong to Afghanistan, do not interfere in Pakistan business.
Haqqanis works in Afghanistan and belongs to Pakistan as well as Afghanistan and are supported by pro Pakistan forces (not going to mention the names) and do not spread terrorism in Pakistan and commonly confused as allay of TTP. They are ''apne loog'' kind of.
Alqaeda is global organization composing of militants from every country and they also operate in every country including Pakistan.