2 hours at Frankfurt Airport should be enough unless you are intending to check-in baggage or have booked an international long haul flight, in which case 2 hrs 30 mins is recommended.