Which of the following is used to connect a computer to the internet?

A. Modem 

B. Router

C. Switch

D. Hub