CSC 581 Communication Networks II Chapter 7c: Congestion Control Dr. Cheer-Sun Yang.

Slides:



Advertisements
Similar presentations
CSE 413: Computer Networks
Advertisements

Switching Techniques In large networks there might be multiple paths linking sender and receiver. Information may be switched as it travels through various.
TELE202 Lecture 7 X.25 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Routing in WAN »Source: chapter 10 ¥This Lecture »X.25 »Source: chapter 10 ¥Next.
1 CONGESTION CONTROL. 2 Congestion Control When one part of the subnet (e.g. one or more routers in an area) becomes overloaded, congestion results. Because.
EE 4272Spring, 2003 Chapter 12 Congestion in Data Networks Effect of Congestion Control  Ideal Performance  Practical Performance Congestion Control.
TELE202 Lecture 8 Congestion control 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »X.25 »Source: chapter 10 ¥This Lecture »Congestion control »Source:
The Network Layer Functions: Congestion Control
CS 456: Computer Networks: Congestion Control/QoS Prof. Varsha Apte Slides based on William Stallings+Tanenbaum.
Review: Routing algorithms Distance Vector algorithm. –What information is maintained in each router? –How to distribute the global network information?
William Stallings Data and Computer Communications 7 th Edition Chapter 13 Congestion in Data Networks.
24-1 Chapter 24. Congestion Control and Quality of Service (part 1) 23.1 Data Traffic 23.2 Congestion 23.3 Congestion Control 23.4 Two Examples.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 10 – Circuit Switching and Packet Switching.
William Stallings Data and Computer Communications 7th Edition
CS 408 Computer Networks Congestion Control (from Chapter 05)
1 Frame Relay u Packet switching system with low overhead u Assumes very reliable high-quality physical network u Developed for use in ISDN networks u.
Congestion in Data Networks
Chapter 10 Congestion Control in Data Networks1 Congestion Control in Data Networks and Internets COMP5416 Chapter 10.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 13 – Congestion in Data Networks.
Semester Copyright USM EEE442 Computer Networks Congestion En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room.
Leon-Garcia & Widjaja: Communication Networks Copyright ©2000 The McGraw Hill Companies A Little More on Chapter 7 And Start Chapter 8 TCP/IP.
Answers of Exercise 7 1. Explain what are the connection-oriented communication and the connectionless communication. Give some examples for each of the.
NETWORK LAYER. CONGESTION CONTROL In congestion control we try to avoid traffic congestion. Traffic Descriptor Traffic descriptors are qualitative values.
Data Communications Packet Switching.
1 K. Salah Module 5.0: Internetworking & Network Layer Basic concepts Congestion Control Routing Protocols –Flooding –Source routing –Distance vector routing.
Data Communication and Networks
Transport Layer3-1 Data Communication and Networks Lecture 8 Congestion Control October 28, 2004.
Semester Copyright USM EEE449 Computer Networks Congestion En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room.
Computer Networks Set 9 Congestion in Data Networks.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 10 – Circuit Switching and Packet Switching.
Chapter 2 – X.25, Frame Relay & ATM. Switched Network Stations are not connected together necessarily by a single link Stations are typically far apart.
Leon-Garcia & Widjaja: Communication Networks Copyright ©2000 The McGraw Hill Companies CS490 Chapter 7b, Leon-Garcia Packet Switching Networks.
TELE202 Lecture 5 Packet switching in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lectures »C programming »Source: ¥This Lecture »Packet switching in Wide.
Data and Computer Communications Circuit Switching and Packet Switching.
Chapter 12 Transmission Control Protocol (TCP)
Computer Networks with Internet Technology William Stallings
Lecture 12 X.25. X.25 is a packet switching wide area network developed by ITU-T in Originally it was designed for private use Definition : X.25.
Lecture # 03 Switching Course Instructor: Engr. Sana Ziafat.
K. Salah 1 Module 3.0: ATM & Frame Relay. K. Salah 2 Protocol Architecture Similarities between ATM and packet switching – Transfer of data in discrete.
Department of Computer and IT Engineering University of Kurdistan
WAN – Packet and Cell-switched Networks
Frame Relay. Why to use Frame Relay? Frame Relay is a virtual-circuit technology that provides low-level (physical and data link layer) service in response.
Switching. Circuit switching Message switching Packet Switching – Datagrams – Virtual circuit – source routing Cell Switching – Cells, – Segmentation.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
Computer Communication & Networks Lecture # 03 Circuit Switching, Packet Switching Nadeem Majeed Choudhary
William Stallings Data and Computer Communications Chapter 12 Congestion in Data Networks.
Chapter 10 Congestion Control in Data Networks and Internets 1 Chapter 10 Congestion Control in Data Networks and Internets.
1 Congestion and Congestion Control in Packet- Switched Networks.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 10 – Circuit Switching and Packet Switching.
The Network Layer Role Services Main Functions Standard Functions
Congestion Control in Data Networks and Internets
Packet Switching Networks & Frame Relay
Point-to-Point Network Switching
Topics discussed in this section:
William Stallings Data and Computer Communications
CONGESTION CONTROL.
William Stallings Data and Computer Communications
Chapter 4 Frame Relay Chapter 4 Frame Relay.
Congestion Control in Data Networks and Internets
Congestion Control (from Chapter 05)
Congestion Control (from Chapter 05)
Chapter 11. Frame Relay Background Frame Relay Protocol Architecture
Congestion Control (from Chapter 05)
Chapter 2 Switching.
Congestion Control (from Chapter 05)
Chapter 3 outline 3.1 Transport-layer services
Congestion Control (from Chapter 05)
Congestion Control (from Chapter 05)
Congestion Control (from Chapter 05)
Congestion Control (from Chapter 05)
Presentation transcript:

CSC 581 Communication Networks II Chapter 7c: Congestion Control Dr. Cheer-Sun Yang

2 What Is Congestion? Congestion occurs when the number of packets being transmitted through the network approaches the packet handling capacity of the network Congestion control aims to keep number of packets below level at which performance falls off dramatically Data network is a network of queues Generally 80% utilization is critical Finite queues mean data may be lost

3 Queues at a Node

4 Effects of Congestion Packets arriving are stored at input buffers Routing decision made Packet moves to output buffer Packets queued for output transmitted as fast as possible –Statistical time division multiplexing If packets arrive to fast to be routed, or to be output, buffers will fill Can discard packets Can use flow control –Can propagate congestion through network

5 Interaction of Queues

6 Ideal Performance

7 Practical Performance Ideal assumes infinite buffers and no overhead Buffers are finite Overheads occur in exchanging congestion control messages

8 Effects of Congestion - No Control

9 Mechanisms for Congestion Control

10 Congestion Control Techniques Packet elimination (implicit congestion signaling) Flow control: using backpressure to regulate the flow. Buffer allocation: used with virtual circuit (connection-oriented) networks. Buffer size is considered a credit-based technique. Choke packets

11 Implicit Congestion Signaling Transmission delay may increase with congestion Packet may be discarded Source can detect these as implicit indications of congestion Useful on connectionless (datagram) networks –e.g. IP based (TCP includes congestion and flow control - see chapter 17) Used in frame relay LAPF

12 Flow Control:Backpressure If node becomes congested it can slow down or halt flow of packets from other nodes May mean that other nodes have to apply control on incoming packet rates Propagates back to source Can restrict to logical connections generating most traffic Used in connection oriented that allow hop by hop congestion control (e.g. X.25) Not used in ATM nor frame relay Only recently developed for IP

13 Explicit Congestion Signaling Network alerts end systems of increasing congestion End systems take steps to reduce offered load Backwards –Congestion avoidance in opposite direction to packet required Forwards –Congestion avoidance in same direction as packet required

14 Categories of Explicit Signaling Binary –A bit set in a packet indicates congestion Credit based: such as a buffer size –Indicates how many packets source may send –Common for end to end flow control Rate based –Supply explicit data rate limit –e.g. ATM

15 Choke Packet Control packet –Generated at congested node –Sent to source node –e.g. ICMP source quench From router or destination Source cuts back until no more source quench message Sent for every discarded packet, or anticipated Rather crude mechanism

16 Two kinds of deadlocks Store-and-forward deadlock Reassembly deadlock

17 A C C’s buffers containing Packets destined for A are full B’s buffers containing Packets destined for C are full A’s buffers containing Packets destined for B are full B

18

19

20 Public Data Networks: The X series protocols X.25 X.3 X.28 X.29

21 Packet-Switched Network Modes Virtual circuits Datagram

22

23

24

25

26 Example of Packet Switching Protocol: X Interface between host and packet switched network Almost universal on packet switched networks and packet switching in ISDN Defines three layers –Physical –Link –Packet

27

28 X.21 – Physical Layer Interface between attached station and link to node Data terminal equipment DTE (user equipment) Data circuit terminating equipment DCE (node) Uses physical layer specification X.21 Reliable transfer across physical link Sequence of frames

29 LAPB – Data Link Layer Link Access Protocol Balanced (LAPB) –Subset of HDLC –see chapter 5

30 X.25 Network Layer A PDU is called a packet. External virtual circuits Logical connections (virtual circuits) between subscribers

31

32 X.25 Use of Virtual Circuits

33 Virtual Circuit Service Virtual Call –Dynamically established Permanent virtual circuit –Fixed network assigned virtual circuit

34 Packet Format

35

36 X.25 Packet Types Refer to Table 7.8

37

38 Virtual Call

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks Congestion Figure 7.50

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 40 Offered load Throughput Controlled Uncontrolled Figure 7.51

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 41 Time Bits per second Peak rate Average rate Figure 7.52

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 42 Water drains at a constant rate Leaky bucket Water poured irregularly Figure 7.53

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 43 Arrival of a packet at time t a X’ = X - (t a - LCT) X’ < 0? X’ > L? X = X’ + I LCT = t a conforming packet X’ = 0 Nonconforming packet X = value of the leaky bucket counter X’ = auxiliary variable LCT = last conformance time Yes No Yes No Figure 7.54

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 44 I L+I Bucket content Time Packet arrival Nonconforming ********* Figure 7.55

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 45 Time MBS TLI Figure 7.56

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 46 Tagged or dropped Untagged traffic Incoming traffic Untagged traffic Leaky bucket 1 PCR and CDVT Leaky bucket 2 SCR and MBS Tagged or dropped Figure 7.57

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 47 Time Kbps Time Kbps 100 Kbps (a) (b) (c) Figure 7.58

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 48 Incoming traffic Shaped traffic Size N Packet Server Figure 7.59

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 49 Incoming traffic Shaped traffic Size N Size K Tokens arrive periodically Server Packet Token Figure 7.60

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 50 b bytes instantly t r bytes per second Figure 7.61

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 51 A(t) = b+rt R(t) No backlog of packets bRbR b R - r (a) (b) Buffer 1 0 empty t t Figure 7.62

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 52 Congestion window Round-trip times Slow start Congestion avoidance Congestion occurs Threshold Figure 7.63

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 53 CBR VBR ABR Total bandwidth Time Figure 7.64

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 54 SD Data cell Forward RM cell Backward RM cell Switch S = source D = destination Figure 7.65

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 55 SD Congested switch Data cell EFCI=0 Data cell EFCI=1 RM cell CI=0 RM cell CI=1 Figure 7.66

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 56 SD Can only support 5 Mbps ER = 5 MbpsER = 10 Mbps ER = 1 Mbps Can only support 1 Mbps ER = 1 Mbps Figure 7.67

57 Suggested Reading Chapter 7.8