130 likes | 729 Views
Switch vs. Router. Switch: Def. 1: A network node that forwards packets from inputs to outputs based on header information in each packet. It differs from a router mainly in that it typically does not interconnect networks of different types . (Peterson)
E N D
Switch vs. Router • Switch: • Def. 1: A network node thatforwards packets from inputs to outputs based on header information in each packet. It differs from a router mainly in that it typically does not interconnect networks of different types. (Peterson) • Switch fabric: The component of a switch that directs packets from their inputs to the correct outputs. (Peterson) • Router: • Def. 1: A network node connected to two or more networks that forwards packets form on network to another. (Peterson) • Def. 2: An internetworking device that connects two computer networks. It makes use of an internet protocol and assumes that all of the attached devices on the networks use the same communications architecture and protocols. Arouter operates at OSI layer 3. (Stallings) Spring 2004
(a) (b) A A A A Trunk group B B B MUX DMUX B C C C C Cost-Effective Resource Sharing • Must share (multiplex) network resources (nodes and links) among multiple users Spring 2004
Conventional Multiplexing Strategies • Frequency-Division Multiplexing (FDM) • With FDM, each channel continuously gets a fraction of the bandwidth • Synchronous Time-Division Multiplexing (STDM) • With TDM, each channel gets all of the bandwidth periodically during brief intervals of time. Spring 2004
(a) router PPP Ethernet (b) PC HTTP HTTP TCP Router TCP IP IP IP Net Interface Net Interface Net Interface Ethernet PPP Spring 2004
socket interface socket interface Application 1 Application 2 user user kernel kernel Socket Socket Underlying communication Protocols Underlying communication Protocols Communications network Socket API Spring 2004
Server socket() bind() listen() Client accept() socket() blocks until server receives a connect request from client connect negotiation connect() data write() read() data write() read() close() close() Socket API Spring 2004