Pergunta de entrevista da empresa AMD

How hash works? Difference between udp and tcp