Presentation is loading. Please wait.

Presentation is loading. Please wait.

Communication concepts (Continued) Week 2 Lecture 2.

Similar presentations


Presentation on theme: "Communication concepts (Continued) Week 2 Lecture 2."— Presentation transcript:

1 Communication concepts (Continued) Week 2 Lecture 2

2 Agenda Yesterday, we covered Media Analogue & digital transmission Multiplexing Today we will cover Circuit & packet switching Virtual circuits & datagrams Latency & bandwidth

3 Multiplexing Transmission capacity of the media is often much greater than the needs of any one user This capacity can be shared by allowing simultaneous transmission of multiple signals on a single data link This technique is known as multiplexing There is one device to combine the signals – a mux and one to separate them again – a demux – at each end of the link

4 Wide Area Network Local Area Network Home ISP ISP & Telco (IBP) The last kilometre Business WiFi Network

5 Home computer ISP PC is in Sydney Web server is in New York How do our messages get through to New York? Hong Kong London New York Sydney

6 How do we connect two hosts across the world? Circuit switching Packet switching

7 Circuit switching The resources required for a connection are reserved for the duration of the connection. Good for voice, with low bandwidth and relatively constant usage Set up time to establish a circuit While the circuit is reserved this does not imply physical resources totally reserved (multiplexing) When used by data, transfer rate is constant

8 Packet switching Data is bursty, often high data rates for short periods, and low usage for other parts of the connection. Inefficient use of circuits Packet switching breaks the message into small packets, wraps an electronic envelope with address and sends it through the network with other packets from other users

9 Circuit switching Packet switching

10 Packets can be routed through the network

11 Packet switching like public road usage Driveway Many vehicles share the road Junctions allow cars to change direction Map determines which roads to take to get to destination Telephone connects to PSTN Data packets share the link with data from other connects Switches allow data also to change direction Packet address instructs switch as to which links should be taken

12 Multiplexing is not the same as Packet switching Multiplexing allows a physical link to carry multiple circuits Any one circuit can carry packets for a number of user “connections” Think of how a road can be divided into multiple lanes One lane can carry a large number of cars going to different destinations Another lane may be only available to buses going from A to B.

13 Two types of addressing Virtual circuit – the path is established at the beginning defining each segment the data is to be passed along for the period of the connection Each of the switches must maintain state information about the connection X.25, Frame relay and ATM use this form of addressing

14

15 Two types of addressing (cont) Datagram The packet has a final address in a hierarchical form similar to that on an envelope Switches maintain tables that map destination addresses to outbound links and use this to send the message along IP uses datagram addressing IP can be carried over virtual circuit protocol links like X.25 & ATM

16 Packets can go via any path Packets thus can get out of sequence Assembled in right order at end

17 Store & Forward Packets are routed through a number of switches in their journey Each switch uses a store & forward mechanism The packet must be totally received and checked before being sent on the outward link Sometimes the outward link is busy, thus the packet must be buffered Sometimes buffers are full and the packet is dropped, and must be sent again This delay is called latency, and the uncertain nature of this latency is one of the problems with packet switching

18 Packet V Message switching Why break the message into packets? Messages can be quite long – eg on a file transfer In packets you get a parallel processing through each switch Many messages fit into a packet But packets have an overhead of data and processing

19 Quick quiz You have a 10 second message to transmit through two switches. Will sending it as one whole message, or as 10x1 second packets take longer, end to end? 10 second file transfer A B C D

20 A B C D Message switch A to B10 B to C10 C to D10 Total transmit time is30 Packet switch (10 x 1) A-BB-C C-D 1 sec A-BB-C C-D 1 sec A-BB-C C-D 1 sec P1 P2 P3 Total transmit time is 10+2= 12 seconds

21 Latency & Bandwidth Bandwidth is the speed at which data is passed down a specific link. Usually expressed in bits per second – bps Latency is the collective delay from all of the switches in the trip to the final destination As bandwidth increases, then latency becomes more of an issue Read Kurose pages 41 to 49 for a more complete discussion


Download ppt "Communication concepts (Continued) Week 2 Lecture 2."

Similar presentations


Ads by Google