320 likes | 485 Views
TLMN 625. CLASS 3 SPRING 2003 Circuit Switching Packet Switching Cell Switching. USER PERSPECTIVE INTERACTIVE COMMUNICATION. No. Yes. No. No. Yes. No. Yes. Yes. No. Maybe. Yes. Yes. Circuit Switching. Nodes function as switches Uses dedicated path Requires 3 phases
E N D
TLMN 625 CLASS 3 SPRING 2003 Circuit Switching Packet Switching Cell Switching
USER PERSPECTIVE INTERACTIVE COMMUNICATION No Yes No No Yes No Yes Yes No Maybe Yes Yes
Circuit Switching • Nodes function as switches • Uses dedicated path • Requires 3 phases • Establishment (set-up) • Data transfer • Termination (tear-down)
Circuit-Switching • Long-haul telecom network designed for voice • Network resources dedicated to one call • Shortcomings when used for data: • Inefficient (high idle time, i.e. gaps in message) • Constant data rate
Packet Switching • Messages broken into “packets” and routed through network • Two services offered • Virtual circuit (connection oriented) • Datagram (connectionless) • Key concepts of packet networks • Routing, Traffic control, Error control • Internet (Datagram- Best effort)
Hardware Utilized in Packet Switching Transmission link Packet switch “Router” Network Figure 7.9
Packet switching demo http://www.pbs.org/opb/nerds2.0.1/geek_glossary/packet_switching_flash.html
Packet Switching Network Access Hardware for Cable Modems, LANs CPU I/O Bus 1 NIC Card 2 NIC Card NIC Card 3 Main Memory … … N NIC Card Figure 7.11
Advantages of Packet Network Packet Switch PACKET CLOUD LEASED LINES
Advantages over Circuit-Switching • Greater line efficiency (packets from multiple sources can go over shared link) • Data rate conversions • Non-blocking under heavy traffic (but increased delays)
Disadvantages Relative to Circuit-Switching • Packets incur additional delay with every node they pass through • Jitter: variation in packet delay • Data overhead in every packet for routing information, etc • Processing overhead for every packet at every node traversed
Packet-Switching Characteristics • Data transmitted in short blocks, or packets • Packet length < 1000 octets • Each packet contains user data plus control info (routing) • Store and forward
Elements of a packet and packet size Packet No. Addressing Message Error control Size of Message: Examples: Ethernet 1500 bytes ATM 48 bytes X.25 128 bytes
Packet SizeUltimately it is the capacity of routers that determine packet size for a WAN If fragmentation of packet not allowed packet is dropped ROUTER MTU- message transport unit Source: CISCO
Packet size • It is fairly common for implementations to use 576-byte packets whenever they can't verify that the entire path is able to handle larger packets
Observation:Internet Packet Size Almost half of the packets are less than 44 bytes, Another 18% are either 552 or 576 bytes. Almost 18% are 1500 bytes, Note this difference in packet and byte distribution: while there are many teeny packets, they do not account for much of the overall payload: while over half of the packets are 44 bytes or less, over half of the byte volume is carried by 1500 byte packets.
Figure 14-13 The McGraw-Hill Companies, Inc., 1998 WCB/McGraw-Hill
Datagram (connectionless) routing Packet 1 Packet 1 Packet 2 Packet 2 Packet 2 Figure 7.15
Datagrams (Connectionless) • No connection setup phase • Best effort, no guaranteed delivery • Each packet forwarded independently • Analogy: postal system • Sometimes called connectionless model • Each switch maintains a forwarding (routing) table
Virtual Circuit Switching • Subsequent packets follow same circuit • Analogy: phone call • Sometimes called connection-oriented model Each switch maintains a VC table.
Virtual Circuit The McGraw-Hill Companies, Inc., 1998 WCB/McGraw-Hill
Alternative Switching Question: Is there some method which contains the elements of both types of switching?
Cell Relay, Statistical Multiplexing Voice Data packets MUX Wasted bandwidth Images TDM 4 3 2 1 4 3 2 1 4 3 2 1 ATM ` 4 3 1 3 2 2 1 Figure 7.37
Switching: How long will auser get to use a transmission segment? • For the duration of the conversation? Circuit Switching • For a tiny, variable length, portion of the conversation? Packet Switching • For a tiny, fixed length, portion of the conversation? Cell Switching
Circuit vs. PacketComparison • (a)What key disadvantage of circuit switched Time Division Multiplexing (TDM) does packet switching fix? • (b) Does this create new problems?
Homework Problem to compare datagram and virtual circuit packet switching • Do problem 21 p. 539 in the text