Viasat Interview Question

What is a diode,what is tcp protocol,diff between router and switch