Chapter 10 Packet Switching Packet Switching Principles Switching






















- Slides: 22

Chapter 10 Packet Switching • Packet Switching Principles Ø Switching Techniques Ø Packet Size Ø Comparison of Circuit Switching & Packet Switching • Routing ØLeast-Cost Routing Algorithms ØDijkstra’s Algorithm ØBellman-Ford ØRouting Algorithm Strategies 9/25/2020 Spring, 2003 EE 4272

Principles • Circuit switching designed for voice Resources dedicated to a particular call Ø Much of the time a data connection is idle Ø Data rate is fixed: Both ends must operate at the same rate Ø Not efficient Ø • Packet Switching: suit better for data network application 9/25/2020 Spring, 2003 EE 4272

Basic Operation of Packet Switching • Data transmitted in small packets Maximum Size 1000 Bytes Ø Longer messages split into series of packets Ø Each packet contains a portion of user data plus some control info Ø • Control info: Routing (addressing) info • Packets are received, stored briefly (buffered) and passed on to the next node Ø Store-and-forward 9/25/2020 Spring, 2003 EE 4272

Advantages • Line efficiency Single node to node link can be shared by many packets over time Ø Packets queued and transmitted as fast as possible Ø • Data rate conversion Each station connects to the local node at its own speed Ø Nodes buffer data if required to equalize rates Ø • Packets are accepted even when network is busy Ø Delivery may slow down • Priorities can be used 9/25/2020 Spring, 2003 EE 4272

Switching Technique • Host breaks long message into packets • Packets sent one at a time to the network • Packets handled in two ways Datagram Ø Virtual circuit Ø 9/25/2020 Spring, 2003 EE 4272

Datagram • • • Each packet treated independently Packets can take any practical route Packets may arrive out of order Packets may go missing Up to receiver to re-order packets and recover from missing packets 9/25/2020 Spring, 2003 EE 4272

Virtual Circuit • Preplanned route established before any packets sent • Call request and call accept packets establish connection (handshake) • Each packet contains a virtual circuit identifier instead of destination address • No routing decisions required for each packet • Clear request to drop circuit • Not a dedicated path though! 9/25/2020 Spring, 2003 EE 4272

X. 25: Use of Virtual Circuits 9/25/2020 Spring, 2003 EE 4272

Virtual Circuits vs. Datagram • Virtual circuits Network can provide sequencing and error control Ø Packets are forwarded more quickly Ø Ø No Ø routing decisions to make Less reliable Ø Loss of a node looses all circuits through that node • Datagram Ø No call setup phase Ø Better Ø if few packets More flexible Ø Routing 9/25/2020 Spring, 2003 can be used to avoid congested parts of the network EE 4272

Packet Size Store-and-forward 9/25/2020 Spring, 2003 EE 4272 cut-through

Circuit vs. Packet Switching • Performance Propagation delay Ø Transmission time Ø Node delay Ø (E. g. , packet waiting in buffer) (E. g. , switch setup connection) • Reading Assignment: P 312: table 10. 1 9/25/2020 Spring, 2003 EE 4272

Routing in Packet Switching Networks • Complex, crucial aspect of packet switched networks • Characteristics required Correctness Ø Simplicity Ø Robustness Ø Stability Ø Fairness Ø Optimality Ø Efficiency Ø 9/25/2020 Spring, 2003 EE 4272

Performance Criteria • Used for selection of route: e. g. Minimum hop Costing of Routes • Least cost (appendix 10 A) Dijkstra’s Algorithm Ø Bellman-Ford Algorithm Ø 9/25/2020 Spring, 2003 EE 4272

Dijkstra’s Algorithm • A greedy algorithm finding shortest paths from source node to all other nodes • Define: N: set of nodes in the network S: source node T: set of nodes so far incorporated in the algorithm W(i, j): link cost from node i to node j; W(i, i)=0; w(i, j)= for two none directly connected nodes w(i, j) =c L(n): least cost path from node s to node n that is currently known to the algorithm. At the end, this is the final least cost path 9/25/2020 Spring, 2003 EE 4272

Dijkstra’s Algorithm (Con’t) Step 1: Initialization T = {s} : at initial stage, only source node included L(n) = w(i, j) for all n s Step 2: Find the neighboring node x not in T that has the least-cost path from source node s and include that node into T, i. e. , add node x to set T Step 3: Update least-cost paths due to node x included L(n) = min [L(n), L(x) +w(x, n)] Step 4: algorithm terminates when all nodes included in T, otherwise, go back to step 2 9/25/2020 Spring, 2003 EE 4272

Dijkstra’s Algorithm (con’t) Source node 9/25/2020 Spring, 2003 EE 4272

Example for Dijkstra’s Algorithm Iteration 1 2 3 4 5 6 T {1} {1, 4} {1, 2, 4, 5} {1, 2, 3, 4, 5, 6} L(2) 2 2 Path 1 2 9/25/2020 Spring, 2003 L(3) 5 4 4 3 Path L(4) 1 3 1 4 5 3 1 EE 4272 Path 1 4 L(5) 2 2 Path 1 4 5 L(6) 4 4 Path 1 4 5 6

Bellman-Ford Algorithm Idea: Find the shortest paths from a given source node subject to the constraint that the paths contain at most one link; then find the shortest paths with a constraint of at most two links, and so on. Algorithm terminates when the increase of the maximum link number brings no improvement. Define: S: source node W(i, j): link cost from node i to node j; W(i, i)=0; w(i, j)= for two none directly connected nodes w(i, j) =c Lh(n): least cost path from node s to node n under the constraint of no more than h links 9/25/2020 Spring, 2003 EE 4272

Bellman-Ford Algorithm: Step 1: Initialization L 0(n) = , for all n s Lh(s) = 0, for all h Step 1: Update when Lh+1(n) less than Lh(n) For each successive h 0: For each n s, compute Lh+1(n) = min [ Lh(j) + w(j, n)] for all predecessor node j Step 3: Terminate when increase of h brings no improvement 9/25/2020 Spring, 2003 EE 4272

Bellman-Ford Algorithm 9/25/2020 Spring, 2003 EE 4272

Network Information Source and Update Timing • Routing decisions usually based on knowledge of network (not always) • Distributed routing Nodes use local knowledge Ø May collect info from adjacent nodes Ø May collect info from all nodes on a potential route Ø • Central routing: Collect info from all nodes • Update timing When network info nodes updated Ø Fixed - never updated Ø Adaptive - regular updates Ø 9/25/2020 Spring, 2003 EE 4272

Routing Strategies • Fixed • Flooding • Random • Adaptive Reading Assignment: p 318 – pp 329 9/25/2020 Spring, 2003 EE 4272
Message switching and packet switching
Cell switching vs packet switching
Cell switching vs packet switching
Packet switching vs circuit switching
Cell switching vs packet switching
Principles of packet switching
Packet switching principles
Datagram switching
Wan packet switching
Pengertian packet switching
Circuit switching timing diagram
Optical packet switching
Caravan analogy
Optical packet switching
Frame relay packet switching
Sexual reproduction
Teknik switching adalah
Three generations of packet switches
Cell cycle analysis
Mpls basics tutorial
Each packet is treated independently
What is a private wan
Circuit switched wan