improving the www: caching or multicast?

22
Improving the WWW: Caching or Multicast? Pablo Rodriguez Ernst W. Biersack Keith W. Ross Institut EURECOM 2229, route des Cretes. BP 1 93 06904, Sophia Antipolis Cedex, FRANCE 元元元元 元元元元元元元 元元元元元 元元元 March, 2, 1999

Upload: gita

Post on 19-Jan-2016

18 views

Category:

Documents


0 download

DESCRIPTION

Improving the WWW: Caching or Multicast?. Pablo RodriguezErnst W. BiersackKeith W. Ross Institut EURECOM 2229, route des Cretes. BP 193 06904, Sophia Antipolis Cedex, FRANCE 元智大學 資訊工程研究所 系統實驗室 陳桂慧 March, 2, 1999. Outline. Caching Continuous multicast push (CMP) Model - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Improving the WWW:  Caching or Multicast?

Improving the WWW: Caching or Multicast?

Pablo Rodriguez Ernst W. Biersack Keith W. Ross

Institut EURECOM 2229, route des Cretes. BP 193

06904, Sophia Antipolis Cedex, FRANCE

元智大學 資訊工程研究所 系統實驗室陳桂慧

March, 2, 1999

Page 2: Improving the WWW:  Caching or Multicast?

Outline

• Caching• Continuous multicast push (CMP)• Model• Total Latency time Ttot

– First-Packet Time Tf– Completion Time Tc

• pure multicast• CMP-Cache• Pure Cache

• Caching and Multicast: Push Caching• Caching-Multicast Cooperation

Page 3: Improving the WWW:  Caching or Multicast?

Caching• Caching

– reduces the bandwidth– decrease the latency to the receivers– take place at the application layer

• Open issues of Caching– requires additional resources– cooperate together to increase the hit rate– maintain document consistency and provide the most recent

update• Additional delays that a multicast distribution has not

– resolution delay– TCP delay– queuing delay– server delay

Page 4: Improving the WWW:  Caching or Multicast?

Caching (2)

• Different kinds of misses– First-Access– capacity– updates– uncacheable

• Given that a cache keeps all previously requested document– the first requests for a document travels all the caching

hierarchy until the original server accounting for the First-Access miss.

– When the document expires a new request needs to travel again to the original server accounting for an Update miss.

Page 5: Improving the WWW:  Caching or Multicast?

CMP

• The CMP distribution works as follows:– A web server monitors the number of requests for a doc

ument to decide which document to multicast.

– The server takes the popular document and sends it cyclicly in a multicast address.

– Receivers obtain a mapping of the document’s name (URL) into a multicast address and then join the multicast group.

– The server keeps monitoring the number of requests and stops multicasting the document if there are no more receiver.

Page 6: Improving the WWW:  Caching or Multicast?

CMP(2)• CMP take place at the transport layer

– with reliability and congestion control ensured by the end systems (server and clients)

– requires that the network connecting a server with its clients is multicast capable

• a single packet sent by a server will be forwarded along the multicast tree, Fig 1

Page 7: Improving the WWW:  Caching or Multicast?

CMP (3)

• A continuous multicast distribution also requires some additional mechanisms:– Session servers or a similar mechanism are need to map the

document’s name into a multicast address.

– A Web Server needs to monitor the number of document request and their rate of change to decide which document to multicast and when to stop multicast them.

– There is an overhead in the multicast capable routers to maintain state information for each active multicast group.

– There is also an overhead due to the join and prune messages needed for the multicast tree to grow and shrink depending on the location of the receivers.

– Multicast congestion control is still an open issue.

Page 8: Improving the WWW:  Caching or Multicast?

ModelNational Network

International Path

Regional Network

Institutional Network

Page 9: Improving the WWW:  Caching or Multicast?

Model (2)

Page 10: Improving the WWW:  Caching or Multicast?

Latency

• Total Latency time Ttot

– First-Packet Time Tf

• The time between one receiver makes a request and the time the first packet arrives at that receiver.

– Completion Time Tc

• The time between the arrival of the first packet and the time that the receiver completes the reception of the most up-to-date document version.

– Ttot = Tf + Tc

Page 11: Improving the WWW:  Caching or Multicast?

First-Packet Time

• The expected first-packet time for a multicast and a caching distribution is:– Ecmp[Tf] = 2d * Ecmp[L]– Ecache[Tf] = 2d * Ecache[L]

• L: The number of links a new request has to travel on the multicast tree or on the caching hierarchy to meet the document.

• d: The propagation and transmission delay on one link, homogeneous for all links.

• The average number of links trversed by a request on a multicast tree Ecmp[L] or on a caching hierarchy Ecache[L] depending on,– total number of requests for a document– document size– document’s rate of change

Page 12: Improving the WWW:  Caching or Multicast?

First-Packet Time (2)

The multicast transmission rate seen by a receiver

S: the web document size T: the period of change of the document

Page 13: Improving the WWW:  Caching or Multicast?

Completion Time

Assume that: no other kind of traffic more than web traffic going through these networks

Indicative values of capacities

Page 14: Improving the WWW:  Caching or Multicast?

Completion Time - Pure Multicast

• The completion time for one Hot-Changing document

SOzHCap

NSTE

H

LAN

C

LAN

SH

FHccmp

2, )()12(][

,

The capacity needed to answer the Hot-Stable and Cold request from all LANs.

Page 15: Improving the WWW:  Caching or Multicast?

Completion Time - CMP-Cache

Page 16: Improving the WWW:  Caching or Multicast?

Completion Time - CMP-Cache (2)

Page 17: Improving the WWW:  Caching or Multicast?

Completion Time - Pure Cache

• The average completion time,

– Percentages of requests for a Hot-Changing document that see a document update.

}][{max)1(][][}12,12,1,1{

1

ccache

l

zHHHlcccache TETETE

cache

10,1,

T

LAN

FH

Page 18: Improving the WWW:  Caching or Multicast?

Completion Time - Pure Cache (2)

Page 19: Improving the WWW:  Caching or Multicast?

Completion Time - Pure Cache (3)

Page 20: Improving the WWW:  Caching or Multicast?

Caching and Multicast: Push Caching

• The solutions to improve the completion time on a caching hierarchy– increase the bandwidth of channel

– reduce the request rate at every cache by distributing the document over many caches.

– use bandwidth more efficiently.

Page 21: Improving the WWW:  Caching or Multicast?

Caching-Multicast Cooperation• A final Web server is the only one that certainly knows when a

document has changed. Only popular and changing documents should be pushed.

• Every time that a popular document changes, the web server can take the decision to multicast the document update towards all the national caches.

• The national caches themselves forward the document update to all regional caches.

• The regional caches keep track of which documents are popular for their children, decide to keep or remove the document.

• The regional caches that have interested receivers in that document update, will forward it towards all institutional caches.

• The institutional caches will do the same process as the regional caches.

Page 22: Improving the WWW:  Caching or Multicast?

Conclusions

• The use of caching and multicast together gives better performances results (latency, bandwidth) than each of them alone.