Antrian (Queuing)M. Sitepu1Antrian
Queuing is techniques developed by the study of people standing in line to determine the optimum level of service provision. In queuing theory, mathematical formulae, or simulations, are used to calculate variables such as length of time spent standing in line and average service time, which depend on the frequency and number of arrivals and the facilities available. The results enable decisions to be made on the most cost-effective level of facilities and the most efficient organization of the process. Early developments in queuing theory were applied to the provision of telephone switching equipment but the techniques are now used in a wide variety of contexts, including machine maintenance, production lines, and air transportation.M. Sitepu2Antrian
Queuing theory deals with problems that involve queuing (or waiting). Some examples of queuing include:Banks or supermarkets—customers waiting for service
Computers—users waiting for a response
Public transportation—riders waiting for a bus/train
Failure situations—machinery owners waiting for a failure to occurQueues form because resources are limited. In fact, it makes economic sense to have queues.In designing queuing systems, a balance is needed between service to customers (which means short queues and implies many servers) and cost (too many servers waste funds).Most queuing systems can be divided into individual sub-systems, consisting of entities queuing for some activity.M. Sitepu3Antrian
Queuing theory applies to any system in equilibrium, as long as nothing in the black box is creating or destroying tasks (arrivals=departures).M. Sitepu4Antrian
Queuing theory mathematics gets very complicated because it applies probability and statistics to queuing systems.What is the probability that the arriving task will find a device busy?On average, how many tasks are ahead of the task that just entered the system?The Early DerivationsA single server queue is a combination of a servicing facility that accommodates one customer at a time (server) + a waiting area (queue).These components together are called a system.M. Sitepu5Antrian
The early queuing work treated the system as a single homogeneous “server,” without regard to discrete components or types of workloads. These systems were called M/M/1 queues.Later, this work was expanded to include multiple homogeneous servers inside the black box.Queuing MethodsFour types of queuing techniques commonly implementedFirst in First Out (FIFO).Weighted Fair QueuingCustom QueuingPriority QueuingM. Sitepu6Antrian
First In First Out (FIFO)Packets are transmitted in the order in which they arrive.Single Queue, Packet droppingWeighted Fair Queuing (WFQ)Packets are classified into different "conversation messages“
Each queue has some priority value or weight assigned to it.
Low volume traffic is given higher priority over high volume traffic
After accounting for high priority traffic the remaining bandwidth is divided fairly among multiple queues (if any) of low priority traffic.M. Sitepu7Antrian
Custom QueuingSeparate queues maintained for separate classes of traffic.
The algorithm requires a byte count to be set per queue.
That many bytes rounded of to the nearest packet is scheduled for delivery.
This ensures that the minimum bandwidth requirement by the various classes of traffic is met.
CQ round robins through the queues, picking the required number of packets from each.
If a queue is of length 0 then the next queue is serviced.M. Sitepu8Antrian
Priority Queuing4 traffic priorities Defined.- high, medium, normal and low.
Incoming traffic is classified and enqueued in either of the 4 queues.
Classification criteria
Unclassified packets are put in the normal queue.
The queues are emptied in the order of - high, medium, normal and low. In each queue, packets are in the FIFO orderM. Sitepu9Antrian
Queuing Networks After much more work in the queuing theory field (approximately 20 years), a new technique was developed that divided computer system into networks of queues.MVAThis new technique is called Mean Value Analysis. It allowed a computer system to be segregated by workload classes(transactions, arrival rates, numbers of clients) as well as components (CPU, disk, etc.)Systems were also delineated as being “open” or “closed.”M. Sitepu10Antrian
Mean value analysis is an iterative approach of solving three primary equations for class “r” workload at queue “i.”The three equations provide solutions for the residence time (response time, per class, per queue), the throughput, and the queue length (number of class “r” tasks at queue “i”).Software and hardware contention can be modeled using these techniques.M. Sitepu11Antrian
Model AntrianSederhana1.Pendahuluan2.Struktur Model Antrian (The Structure of Queuing Model)3. Single-Channel Model4. Multiple-Channel Model5. Model BiayaMinimum (Cost Minimization Models)6. Non-Poisson Model7. Model Self Service Facilities8. Model Network (Queuing Network)M. Sitepu12Antrian
1. PendahuluanSistem antrian sangat diperlukan ketika para pelanggan (konsumen) menungguuntukmendapatkanjasapelayananContohpenggunaansistemantriandalammelancarkanpelayanankepadapelangganataukonsumen :Mahasiswamenungguuntukregistrasidanpembayaranuangkuliah
Pelangganmenunggupelayanandidepankasir
Para calonpenumpang KA menunggupelayanandiloketpenjualantiket
Para pengendarakendaraanmenungguuntukmendapatkanpelayananpengisianbahanbakardi SPBUTeoriantriandiciptakanoleh A.K. Erlang (ahlimatematikDenmark) padatahun 1909.M. Sitepu13Antrian
2. Struktur Model Antrian (The Structure of Queuing Model)Gambar 1. Struktur sistem antrianM. Sitepu14Antrian
Gambar 1 menunjukkan struktur umum suatu model antrian yang memiliki 2 komponen :1) Garis tungguatauantrian (queue)2) Fasilitaspelayanan (servicefacility)Gambar 2. Pelayanan nasabah di bankM. Sitepu15Antrian
M. Sitepu16Antrian
ProsedurteknikantrianLangkah 1 : Tentukansistemantrianapa yang harusdipelajari.Langkah 2 : Tentukan model antrian yang sesuaidalammenggambarkansistem.ContohdalamkasuspompabensindiSPBU,terdapattiga model yang dapat digunakan :tigapompauntuk premium dengansatugaristunggu
tigapompauntuk premium denganmasing-masingmemilikigaristunggu

Tps04

  • 1.
  • 2.
    Queuing is techniquesdeveloped by the study of people standing in line to determine the optimum level of service provision. In queuing theory, mathematical formulae, or simulations, are used to calculate variables such as length of time spent standing in line and average service time, which depend on the frequency and number of arrivals and the facilities available. The results enable decisions to be made on the most cost-effective level of facilities and the most efficient organization of the process. Early developments in queuing theory were applied to the provision of telephone switching equipment but the techniques are now used in a wide variety of contexts, including machine maintenance, production lines, and air transportation.M. Sitepu2Antrian
  • 3.
    Queuing theory dealswith problems that involve queuing (or waiting). Some examples of queuing include:Banks or supermarkets—customers waiting for service
  • 4.
  • 5.
  • 6.
    Failure situations—machinery ownerswaiting for a failure to occurQueues form because resources are limited. In fact, it makes economic sense to have queues.In designing queuing systems, a balance is needed between service to customers (which means short queues and implies many servers) and cost (too many servers waste funds).Most queuing systems can be divided into individual sub-systems, consisting of entities queuing for some activity.M. Sitepu3Antrian
  • 7.
    Queuing theory appliesto any system in equilibrium, as long as nothing in the black box is creating or destroying tasks (arrivals=departures).M. Sitepu4Antrian
  • 8.
    Queuing theory mathematicsgets very complicated because it applies probability and statistics to queuing systems.What is the probability that the arriving task will find a device busy?On average, how many tasks are ahead of the task that just entered the system?The Early DerivationsA single server queue is a combination of a servicing facility that accommodates one customer at a time (server) + a waiting area (queue).These components together are called a system.M. Sitepu5Antrian
  • 9.
    The early queuingwork treated the system as a single homogeneous “server,” without regard to discrete components or types of workloads. These systems were called M/M/1 queues.Later, this work was expanded to include multiple homogeneous servers inside the black box.Queuing MethodsFour types of queuing techniques commonly implementedFirst in First Out (FIFO).Weighted Fair QueuingCustom QueuingPriority QueuingM. Sitepu6Antrian
  • 10.
    First In FirstOut (FIFO)Packets are transmitted in the order in which they arrive.Single Queue, Packet droppingWeighted Fair Queuing (WFQ)Packets are classified into different "conversation messages“
  • 11.
    Each queue hassome priority value or weight assigned to it.
  • 12.
    Low volume trafficis given higher priority over high volume traffic
  • 13.
    After accounting forhigh priority traffic the remaining bandwidth is divided fairly among multiple queues (if any) of low priority traffic.M. Sitepu7Antrian
  • 14.
    Custom QueuingSeparate queuesmaintained for separate classes of traffic.
  • 15.
    The algorithm requiresa byte count to be set per queue.
  • 16.
    That many bytesrounded of to the nearest packet is scheduled for delivery.
  • 17.
    This ensures thatthe minimum bandwidth requirement by the various classes of traffic is met.
  • 18.
    CQ round robinsthrough the queues, picking the required number of packets from each.
  • 19.
    If a queueis of length 0 then the next queue is serviced.M. Sitepu8Antrian
  • 20.
    Priority Queuing4 trafficpriorities Defined.- high, medium, normal and low.
  • 21.
    Incoming traffic isclassified and enqueued in either of the 4 queues.
  • 22.
  • 23.
    Unclassified packets areput in the normal queue.
  • 24.
    The queues areemptied in the order of - high, medium, normal and low. In each queue, packets are in the FIFO orderM. Sitepu9Antrian
  • 25.
    Queuing Networks Aftermuch more work in the queuing theory field (approximately 20 years), a new technique was developed that divided computer system into networks of queues.MVAThis new technique is called Mean Value Analysis. It allowed a computer system to be segregated by workload classes(transactions, arrival rates, numbers of clients) as well as components (CPU, disk, etc.)Systems were also delineated as being “open” or “closed.”M. Sitepu10Antrian
  • 26.
    Mean value analysisis an iterative approach of solving three primary equations for class “r” workload at queue “i.”The three equations provide solutions for the residence time (response time, per class, per queue), the throughput, and the queue length (number of class “r” tasks at queue “i”).Software and hardware contention can be modeled using these techniques.M. Sitepu11Antrian
  • 27.
    Model AntrianSederhana1.Pendahuluan2.Struktur ModelAntrian (The Structure of Queuing Model)3. Single-Channel Model4. Multiple-Channel Model5. Model BiayaMinimum (Cost Minimization Models)6. Non-Poisson Model7. Model Self Service Facilities8. Model Network (Queuing Network)M. Sitepu12Antrian
  • 28.
    1. PendahuluanSistem antriansangat diperlukan ketika para pelanggan (konsumen) menungguuntukmendapatkanjasapelayananContohpenggunaansistemantriandalammelancarkanpelayanankepadapelangganataukonsumen :Mahasiswamenungguuntukregistrasidanpembayaranuangkuliah
  • 29.
  • 30.
    Para calonpenumpang KAmenunggupelayanandiloketpenjualantiket
  • 31.
  • 32.
    2. Struktur ModelAntrian (The Structure of Queuing Model)Gambar 1. Struktur sistem antrianM. Sitepu14Antrian
  • 33.
    Gambar 1 menunjukkanstruktur umum suatu model antrian yang memiliki 2 komponen :1) Garis tungguatauantrian (queue)2) Fasilitaspelayanan (servicefacility)Gambar 2. Pelayanan nasabah di bankM. Sitepu15Antrian
  • 34.
  • 35.
    ProsedurteknikantrianLangkah 1 :Tentukansistemantrianapa yang harusdipelajari.Langkah 2 : Tentukan model antrian yang sesuaidalammenggambarkansistem.ContohdalamkasuspompabensindiSPBU,terdapattiga model yang dapat digunakan :tigapompauntuk premium dengansatugaristunggu
  • 36.